File size: 33,229 Bytes
386af66
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1696c5a
 
 
 
 
 
 
 
 
 
 
 
386af66
 
 
 
 
 
1696c5a
 
 
386af66
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
5c83c68
386af66
5c83c68
386af66
5c83c68
386af66
 
 
5c83c68
386af66
 
 
5c83c68
386af66
5c83c68
 
386af66
5c83c68
 
386af66
5c83c68
 
1696c5a
 
 
 
 
 
 
 
 
 
386af66
5c83c68
386af66
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1696c5a
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
386af66
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
b4cfd61
 
386af66
 
 
 
1696c5a
386af66
 
 
 
 
 
 
1696c5a
386af66
 
 
 
1696c5a
386af66
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1696c5a
 
 
 
 
386af66
 
 
 
 
 
 
 
 
 
 
 
 
 
d7e086e
 
 
1696c5a
 
 
 
 
f6805e1
 
1696c5a
 
 
 
f6805e1
 
1696c5a
 
f6805e1
1696c5a
 
f6805e1
 
 
 
 
386af66
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
e9f725a
 
 
 
 
 
 
 
 
 
1696c5a
386af66
 
 
1696c5a
 
 
 
 
386af66
 
 
1696c5a
 
 
 
 
 
 
 
 
 
 
 
 
 
386af66
 
 
b4cfd61
386af66
 
b4cfd61
386af66
 
b4cfd61
 
 
 
 
 
 
 
 
 
 
 
5c83c68
b4cfd61
 
 
 
 
386af66
b4cfd61
386af66
 
 
 
 
 
 
 
 
 
b4cfd61
386af66
 
 
 
 
 
 
b4cfd61
386af66
 
 
 
 
 
 
4a9dc73
 
 
b4cfd61
4a9dc73
 
 
 
 
 
 
b4cfd61
4a9dc73
 
b4cfd61
 
4a9dc73
 
 
 
386af66
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1696c5a
d7e086e
 
 
 
 
1696c5a
 
 
 
 
 
 
d7e086e
 
 
 
 
 
 
 
1696c5a
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
d7e086e
 
 
 
 
1696c5a
 
 
 
 
 
 
 
 
 
a7ef3e5
 
 
 
 
 
 
 
 
 
 
 
386af66
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1696c5a
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
/* Global Scrollbar Customization */
/* The entire scrollbar */
::-webkit-scrollbar {
	width: 6px !important;
	height: 6px !important;
	cursor: pointer !important;;
}
/* The scrollbar track (background) */
::-webkit-scrollbar-track {
	background: none transparent !important;
	border-radius: 6px !important;
}
/* The scrollbar thumb (scroll handle) */
::-webkit-scrollbar-thumb {
	background: #c09340 !important;
	border-radius: 6px !important;
}
/* The scrollbar thumb on hover */
::-webkit-scrollbar-thumb:hover {
	background: #ff8c00 !important;
}
/* Firefox scrollbar styling */
html {
	scrollbar-width: thin !important;
	scrollbar-color: #c09340 transparent !important
}
button:disabled {
	pointer-events: none;
}
button div.wrap span {
	display: none !important;
}
/* gradio's "- or -" between "Drop File Here" and "Click to Upload": the rule above hid it with the icon span */
button div.wrap span.or {
	display: inline !important;
	color: var(--body-text-color-subdued) !important;
}
/* upload icon and text on one line: gradio stacks them in a column */
button div.wrap {
	flex-direction: row !important;
	flex-wrap: wrap !important;
	align-content: center !important;
	column-gap: 0.35em !important;
}
button div.wrap::after {
	content: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231E90FF' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4'/><polyline points='17 8 12 3 7 8'/><line x1='12' y1='3' x2='12' y2='15'/></svg>") !important;
	width: 24px !important;
	height: 24px !important;
	display: inline-block !important;
	vertical-align: middle !important;
	/* on the text line, before the text: the drop zones are one line high */
	order: -1 !important;
	margin: 0 0.25em 0 0 !important;
}
table.file-preview tr {
	padding: 0 !important;
}
body:has(#gr_convert_btn:disabled) table.file-preview button.label-clear-button {
	display: none !important;
}
span[data-testid="block-info"] {
	font-size: 12px !important;
}
/* Classes */
.wrap-inner {
	border: 1px solid #666666;
}
.no-wrap {
	flex-wrap: nowrap !important;
}
.selected {
	color: var(--secondary-500) !important;
	text-shadow: 0.3px 0.3px 0.3px #303030;
}
.gr-glass-mask {
	z-index: 9999 !important;
	position: fixed !important;
	top: 0 !important;
	left: 0 !important;
	width: 100vw !important; 
	height: 100vh !important;
	background: rgba(0,0,0,0.5) !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	font-size: 1.2rem !important;
	color: #ffffff !important;
	text-align: center !important;
	border: none !important;
	opacity: 1;
	pointer-events: all !important;
}
.gr-glass-mask.hide {
	animation: fadeOut 2s ease-out 2s forwards !important;
}
.small-btn-red, .small-btn-purple, .small-btn-green, .small-btn-orange, .small-btn-blue {
	background: var(--block-background-fill) !important;
	font-size: 18px !important;
	width: 60px !important;
	height: 60px !important;
	margin: 0 !important;
	padding: 0 !important;
}
.small-btn-green:hover {
	background: var(--button-primary-background-fill-hover) !important;
}
.small-btn-red:hover {
	background: #ff5050 !important;
}
.small-btn-purple:hover {
	background: #752eb2 !important;
}
.small-btn-orange:hover {
	background: #ff8c1a !important;
}
.small-btn-blue:hover {
	background: #2e7bff !important;
}
/* icon color readable on each hover color (the emoji had their own colors) */
.small-btn-green:hover:not(:active) {
	color: var(--button-primary-text-color) !important;
}
.small-btn-purple:hover:not(:active), .small-btn-blue:hover:not(:active) {
	color: #ffffff !important;
}
.small-btn-orange:hover:not(:active), .gr-abs-search-btn:not(:active) {
	color: #1f2937 !important;
}
.small-btn-green:active, .small-btn-red:active, .small-btn-purple:active, .small-btn-orange:active, .small-btn-blue:active {
	background: var(--body-text-color) !important;
	color: var(--body-background-fill) !important;
}
.micro-btn{
	font-size: 16px !important;
	background: var(--block-background-fill) !important;
	width: 26px !important;
	height: 26px !important;
	margin: 0 !important;
	padding: 0 !important;
	border-radius: var(--radius-full) !important;
}
.micro-btn:hover {
	background-color: #ff5050 !important;
}
.micro-btn:active {
	background: var(--body-text-color) !important;
	color: var(--body-background-fill) !important;
}
.file-preview-holder {
	height: 116px !important;
	overflow: auto !important;
}
.progress-bar.svelte-ls20lj {
	background: var(--secondary-500) !important;
}
.progress-level {
	flex-direction: column-reverse !important;
}
.progress-level-inner {
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
	height: 3lh;
	overflow: hidden;
}
.wrap:has(> .progress-level) {
	justify-content: flex-start !important;
	padding-top: var(--size-2) !important;
}
.file-preview-holder {
	height: auto !important;
	min-height: 0 !important;
	max-height: none !important;
}
.gr-tab {
	padding: 0 3px 0 3px !important;
	margin: 0 !important;
	border: none !important;
}
.gr-col {
	padding: 0 6px 0 6px !important;
	margin: 0 !important;
	border: none !important;
}
.gr-group-main > div {
	background: none !important;
	border-radius: var(--radius-md) !important;
}
.gr-group > div {
	background: none !important;
	padding: 0 !important;
	margin: 0 !important;
	border-radius: 0 var(--radius-md) var(--radius-md) var(--radius-md) !important;
}
.gr-group-no-col{
	background: none !important;
	padding-right: 15px !important;
	margin: 0 var(--size-2) 0 var(--size-2)!important;;
	border-radius: 0 var(--radius-md) var(--radius-md) var(--radius-md) !important;
}
.gr-group-convert-btn{
	margin: var(--size-2) !important;;
	padding-right: 15px !important;
	border-radius: var(--radius-md) !important;
}
.gr-label textarea[data-testid="textbox"]{
	padding: 0 0 0 3px !important;
	margin: 0 !important;
	text-align: left !important;
	font-weight: normal !important;
	height: auto !important;
	font-size: 12px !important;
	border: none !important;
	overflow-y: hidden !important;
	line-height: 12px !important;
}
.gr-markdown p {
	margin-top: 8px !important;
	width: 90px !important;
	padding: 0 !important;
	border-radius: var(--radius-md) var(--radius-md) 0 0 !important;
	background: var(--block-background-fill) !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	text-align: center !important;
}
.gr-markdown-span {
	margin-top: 8px !important;
	width: 90px !important;
	padding: 0 !important;
	border-radius: var(--radius-md) var(--radius-md) 0 0 !important;
	background: var(--block-background-fill) !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	text-align: center !important;            
}
.gr-markdown-output-split-hours {
	overflow: hidden !important;
	background: var(--block-background-fill) !important;
	border-radius: 0 !important; 
	font-size: 12px !important;
	text-align: center !important;
	vertical-align: middle !important;
	padding-top: 4px !important;
	padding-bottom: 4px !important;
	white-space: nowrap !important;
}
/* TTS engine rating (lib/gradio.py _show_rating): on a narrow row the table goes on its own line above the
   tab label instead of breaking each cell in two. wrap-reverse swaps the cross axis: flex-start is the bottom */
.gr-rating {
	flex-wrap: wrap-reverse !important;
	align-items: flex-start !important;
	row-gap: 4px !important;
}
.gr-rating table {
	margin-left: auto !important;
	max-width: 100% !important;
}
/* cells as a wrapping row: narrower than the table, the next cell goes to the line below, each cell kept whole */
.gr-rating table, .gr-rating tbody, .gr-rating tr {
	display: flex !important;
	flex-wrap: wrap !important;
	justify-content: flex-end !important;
	align-items: flex-end !important;
}
/* gradio's prose margins/padding on tr and td, inert in a table layout, not in a flex one */
.gr-rating tr, .gr-rating td {
	margin: 0 !important;
}
.gr-rating tr {
	padding: 0 !important;
}
.gr-rating td {
	white-space: nowrap !important;
}
.gr-voice-player {
	margin: 0 !important;
	padding: 0 !important;
	width: 60px !important;
	height: 60px !important;
	background: var(--block-background-fill) !important;
}
#gr_row_language {
	align-items: stretch !important;
}
#gr_row_language > * {
	margin-top: 0 !important;
	margin-bottom: 0 !important;
}
#gr_translate_enabled {
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	padding: 0 !important;
}
#gr_translate_enabled > *,
#gr_translate_enabled label,
#gr_translate_enabled .wrap {
	margin: 0 !important;
	padding: 0 !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	width: 100% !important;
	height: 100% !important;
}
.play-pause-button:hover svg {
	fill: #ffab00 !important;
	stroke: #ffab00 !important;
	transform: scale(1.2) !important;
}
.gr-convert-btn {
	font-size: 30px !important;
}
.gr-convert-btn:hover { background-color: #34d058 !important; }
.gr-convert-btn:active{
	background: var(--body-text-color) !important;
	color: var(--body-background-fill) !important;
}
.gr-abs-search-btn {
	background-color: #D68215 !important;
	font-size: 18px !important;
	width: 60px !important;
	height: 60px !important;
	margin: 0 !important;
	padding: 0 !important;
}
.gr-abs-search-btn:hover {
	background-color: #FF950D !important;
}
.gr-abs-search-btn:active {
	background: var(--body-text-color) !important;
	color: var(--body-background-fill) !important;
}
.gr-abs-upload-btn {
	font-size: 30px !important;
}
.gr-abs-upload-btn:hover { background-color: #34d058 !important; }
.gr-abs-upload-btn:active{
	background: var(--body-text-color) !important;
	color: var(--body-background-fill) !important;
}
[id^="block_"]:has(input[type="checkbox"]:checked) {
	border-left: 3px solid #22c55e !important;
}
[id^="block_"]:has(input[type="checkbox"]:checked) > div {
	background-color: rgba(34, 197, 94, 0.08) !important;
}
[id^="block_"]:has(input[type="checkbox"]:not(:checked)) {
	border-left: 3px solid #ef4444 !important;
}
[id^="block_"]:has(input[type="checkbox"]:not(:checked)) > div {
	background-color: rgba(239, 68, 68, 0.08) !important;
}
/* Html elements */
#gr_ebook_textarea {
	height: auto !important;
	min-height: 55px !important;
	display: flex !important;
	flex-direction: column !important;
	align-items: center !important;
	justify-content: center !important;
}
#gr_ebook_textarea label, #gr_custom_model_file label {
	background: none !important;
	border: none !important;
}
#gr_audiobook_player label, #gr_audiobook_player div.top-panel,
#gr_audiobook_edit_player label, #gr_audiobook_edit_player div.top-panel {
	display: none !important;
}
#gr_ebook_src, #gr_custom_model_file, #gr_voice_file {
	height: auto !important;
	min-height: 56px !important;
	display: flex !important;
	flex-direction: column !important;
	align-items: center !important;
	justify-content: center !important;
	border-style: none !important;
}
#gr_ebook_src button>div, #gr_ebook_textarea button>div, #gr_custom_model_file button>div, #gr_voice_file button>div {
	font-size: 14px !important;
}
#gr_ebook_src .empty, #gr_ebook_textarea .empty, #gr_custom_model_file .empty, #gr_voice_file .empty,
#gr_ebook_src .wrap, #gr_ebook_textarea .wrap, #gr_custom_model_file .wrap, #gr_voice_file .wrap {
	height: 100% !important;
	min-height: 56px !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
}
#gr_ebook_src button[aria-label="common.upload"], #gr_ebook_textarea  button[aria-label="common.upload"], #gr_custom_model_file button[aria-label="common.upload"], #gr_voice_file button[aria-label="common.upload"] {
	display: none !important;
}
#gr_ebook_src .file-preview-holder {
	padding-top: 16px !important;
}
.gr-voice-highlight-css { display: none !important; }
#gr_ebook_src table.file-preview tbody > tr.file:hover {
	background: var(--color-accent-soft) !important;
}
#gr_voice_selected_filename, #gr_custom_model_train_link {
	display: flex !important;
	align-items: center !important;
	margin: auto !important;
	padding-left: 6px !important;
	overflow: hidden !important;
	text-overflow: ellipsis !important;
	white-space: nowrap !important;
	background: var(--block-background-fill) !important;
	width: 100% !important;
	height: 100% !important;
}
#gr_voice_selected_filename p, #gr_custom_model_train_link p {
	margin: auto !important;
	vertical-align: middle !important;
	overflow: hidden !important;
	text-overflow: ellipsis !important;
	background: var(--block-background-fill) !important;
	width: 100% !important;
	height: 100% !important;
}
#gr_voice_selected_filename a, #gr_custom_model_train_link a {
	text-decoration: none !important;
}
/* the custom model upload label above its one line drop zone, not over it, at the left as before */
#gr_custom_model_file label[data-testid="block-label"] {
	position: static !important;
	align-self: flex-start !important;
}
#gr_custom_model_file [aria-label="Clear"], #gr_voice_file [aria-label="Clear"] {
	display: none !important;
}               
#gr_voice_list {
	height: 60px !important;
}
#gr_row_output_split_hours {
	border-radius: 0 !important;
}
#gr_audiobook_sentence textarea{
	margin: auto !important;
	text-align: center !important;
	
}
#gr_audiobook_sentence textarea.interlude-cue{
	font-style: italic !important;
}
/* block and sentence of the cue playing (header.js show_cue_position): one line under the sentence. Its room is kept
   even empty or not created yet, the section does not move when a cue shows or goes */
#gr_audiobook_sentence :has(> textarea){
	position: relative !important;
	padding-bottom: 18px !important;
}
#gr_audiobook_sentence .cue-position{
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	padding: 0 10px;
	font-size: 11px;
	line-height: 16px;
	text-align: center;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	opacity: 0.7;
}
#gr_audiobook_sentence .cue-position[hidden]{
	display: none !important;
}
#gr_session textarea, #gr_progress textarea, #gr_audiobook_sentence textarea {
	overflow: hidden !important;
	overflow-y: auto !important;
	scrollbar-width: none !important;
}
#gr_group_progress .progress-bar, #gr_group_progress [role="progressbar"] > div {
	background-color: #ff007f !important;
	background-image: none !important;
}
#gr_progress {
	height: 100px !important;
	min-height: 100px !important;
	max-height: 100px !important;
	resize: none;
}
#gr_session textarea::-webkit-scrollbar, #gr_progress textarea::-webkit-scrollbar {
	display: none !important; 
}
#gr_ebook_mode span[data-testid="block-info"],
#gr_language span[data-testid="block-info"],
#gr_voice_list span[data-testid="block-info"],
#gr_device span[data-testid="block-info"],
#gr_tts_engine_list span[data-testid="block-info"],
#gr_output_split_hours span[data-testid="block-info"],
#gr_session span[data-testid="block-info"],
#gr_custom_model_list span[data-testid="block-info"],
#gr_audiobook_sentence span[data-testid="block-info"],
#gr_audiobook_list span[data-testid="block-info"],
#gr_progress span[data-testid="block-info"],
#gr_abs_library span[data-testid="block-info"] {
	display: none !important;
}
#gr_row_ebook_mode {
	display: flex !important;
	align-items: center !important;
}
#gr_interlude_enabled {
	align-self: center !important; 
	overflow: visible !important;
	padding: 20px 0 20px 30px !important;
}
#gr_blocks_preview {
	align-self: center !important;
	overflow: visible !important;
	padding: 20px 0 20px 10px !important;
}
/* gradio gives them min-width 0: on a narrow row they clipped their label instead of wrapping to the next line.
   min-content: at least their longest word, in any ui language (Kapitelvorschau, Zwischenspiel...) */
#gr_blocks_preview, #gr_interlude_enabled, #gr_translate_enabled {
	min-width: min-content !important;
}
#gr_group_output_split {
	border-radius: 0 !important;
}
/* split file as high as format and channel beside it (it left a gap under it) */
#gr_row_output_format {
	align-items: stretch !important;
}
#gr_group_output_split > div, #gr_group_output_split .styler, #gr_group_output_split .styler > .form, #gr_output_split {
	flex-grow: 1 !important;
}
#gr_output_split {
	display: flex !important;
	align-items: center !important;
	align-self: stretch !important;
	margin-top: 0 !important;
	margin-bottom: 0 !important;
}
#gr_tts_rating {
	overflow: hidden !important;
}
#gr_row_voice_player, #gr_row_custom_model_list, #gr_row_session, #gr_row_audiobook_list, #gr_row_audiobook_edit {
	height: 60px !important;
}
#gr_audiobook_player, #gr_audiobook_edit_player {
	border-style: none !important;
}
#gr_row_audiobook_edit {
	align-items: center !important;
}
#gr_audiobook_sentence textarea:not(:disabled) {
	outline: 2px solid var(--button-primary-background-fill-hover) !important;
	outline-offset: -2px !important;
	caret-color: #ff007f !important;
}
#gr_audiobook_sentence textarea:not(:disabled),
#gr_audiobook_sentence:has(textarea:not(:disabled)),
#gr_audiobook_sentence:has(textarea:not(:disabled)) label,
#gr_row_audiobook_edit,
#gr_row_audiobook_edit :is(.small-btn-green, .small-btn-red):not(:hover):not(:active) {
	background: color-mix(in srgb, var(--block-background-fill) 80%, #ff007f) !important;
}
#gr_audiobook_edit_player, #gr_audiobook_edit_player :is(.block, .container) {
	background: transparent !important;
}
#gr_audiobook_player :is(.volume, .empty, .source-selection, .control-wrapper, .settings-wrapper, label), 
#gr_audiobook_edit_player :is(.volume, .empty, .source-selection, .control-wrapper, .settings-wrapper, label),
#gr_audiobook_player button[aria-label="Download"],
#gr_audiobook_player button[aria-label="Share"],
#gr_audiobook_player .download-button,
#gr_audiobook_player .share-button,
#gr_audiobook_files {
	border-style: none !important;
}
#gr_audiobook_files label[data-testid="block-label"] {
	display: none !important;
}
#gr_audiobook_player audio, #gr_audiobook_edit_player audio {
	width: 100% !important;
	padding-top: 10px !important;
	padding-bottom: 10px !important;
	border-radius: 0px !important;
	background-color: #ebedf0 !important;
	color: #ffffff !important;
}
#gr_audiobook_player audio::-webkit-media-controls-panel, #gr_audiobook_edit_player audio::-webkit-media-controls-panel {
	width: 100% !important;
	padding-top: 10px !important;
	padding-bottom: 10px !important;
	border-radius: 0px !important;
	background-color: #ebedf0 !important;
	color: #ffffff !important;
}
/* Firefox only: :-moz-read-only is Firefox's alias of :read-only (always true on audio/div), Chrome/Safari drop these rules.
   No @supports here: Gradio's prefix_css() silently discards @supports blocks from css_paths. */
#gr_audiobook_player audio:-moz-read-only,
#gr_audiobook_edit_player audio:-moz-read-only,
audio:-moz-read-only {
	background-color: var(--block-background-fill, #1f2937) !important;
	border: none !important;
	outline: none !important;
	box-shadow: none !important;
}
#gr_audiobook_player:-moz-read-only,
#gr_audiobook_edit_player:-moz-read-only,
#gr_audiobook_player .block:-moz-read-only,
#gr_audiobook_player .container:-moz-read-only,
#gr_audiobook_edit_player .block:-moz-read-only,
#gr_audiobook_edit_player .container:-moz-read-only,
#gr_voice_player_hidden:-moz-read-only {
	background-color: transparent !important;
	border: none !important;
	box-shadow: none !important;
}
#gr_voice_player_hidden {
	z-index: -100 !important;
	position: absolute !important;
	overflow: hidden !important;
	margin: 0 !important;
	padding: 0 !important;
	width: 60px !important;
	height: 60px !important;
}
#gr_session_update, #gr_restore_session, #gr_save_session,
#gr_audiobook_vtt, #gr_playback_time, #gr_voice_player_hidden {
	display: none !important;
}
#gr_blocks_nav {
	overflow:hidden !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
}
#gr_blocks_nav p {
	white-space:nowrap !important;
	overflow:hidden !important;
	font-size: 16px !important;
	text-align: center !important;
}
#gr_row_buttons {
	justify-content: center !important;
	gap: 100px !important;
}
#gr_blocks_markdown {
	background: var(--body-background-fill) !important;
	width: 100% !important;
	text-align: center !important;
	display: flex !important;
	justify-content: center !important;
	align-items: center !important;
	padding-bottom: 20px !important;
}
#gr_blocks_markdown p {
	background: var(--body-background-fill) !important;
	width: 100% !important;
	font-size: 18px !important;
	font-weight: bold !important;
}
/* Target the main container and all internal wrapper elements of the UI language and theme dropdowns */
#gr_ui_language,
#gr_ui_language .wrap,
#gr_ui_language .wrap-inner,
#gr_ui_language .secondary-wrap,
#gr_ui_language input,
#gr_ui_language select,
#gr_theme,
#gr_theme .wrap,
#gr_theme .wrap-inner,
#gr_theme .secondary-wrap,
#gr_theme input,
#gr_theme select {
    margin: 0 !important;
    padding: 0 !important;
    min-height: 0 !important;
    height: auto !important;
    border: none !important;
    box-shadow: none !important;
    line-height: 1 !important;
}
/* Labels beside their dropdown, not above (theme, output format and channel): at the size of the value beside them,
   the labels above a field (sliders...) stay small */
#gr_theme .container, #gr_output_format_list .container, #gr_output_channel_list .container {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 6px !important;
}
#gr_output_format_list .container, #gr_output_channel_list .container {
    gap: 10px !important;
}
#gr_theme span[data-testid="block-info"], #gr_output_format_list span[data-testid="block-info"], #gr_output_channel_list span[data-testid="block-info"] {
    flex: 0 0 auto !important;
    margin: 0 !important;
    font-size: var(--input-text-size) !important;
    white-space: nowrap !important;
}
#gr_theme .wrap, #gr_output_format_list .container > .wrap, #gr_output_channel_list .container > .wrap {
    flex: 1 1 auto !important;
    min-width: 0 !important;
}
/* Remove any default gap spacing in its parent row if needed */
#gr_row_ui_language {
    gap: 0 !important;
    align-items: center !important;
}
#gr_row_ui_left, #gr_row_ui_right {
    align-items: center !important;
}
#gr_row_ui_right {
    justify-content: flex-end !important;
}
/* gradio renders min-width: 0 on a Markdown: on a narrow screen the sides squeezed the version out */
#gr_version_markdown {
    min-width: 160px !important;
}
#gr_tooltips,
#gr_tooltips .wrap,
#gr_tooltips .wrap-inner,
#gr_tooltips .secondary-wrap {
    margin: 0 !important;
    padding: 0 !important;
    min-height: 0 !important;
    height: auto !important;
    border: none !important;
    box-shadow: none !important;
    line-height: 1 !important;
}
/* Effects */
.fade-in {
	animation: fadeIn 1s ease-in !important;
	display: inline-block !important;
}
@keyframes fadeIn {
	from {
		opacity: 0;
		visibility: visible !important;
	}
	to {
		opacity: 1;
	}
}
@keyframes fadeOut {
	from {
		opacity: 1;
	}
	to {
		opacity: 0;
		visibility: hidden;
		pointer-events: none;
	}
}
/* Modal */
#custom-gr-modal-container,
#custom-gr-modal-container .gr-modal {
	position: fixed !important;
}
.hide-elem {
	z-index: -1 !important;
	position: absolute !important;
	top: 0 !important;
	left: 0 !important;
}
.gr-modal {
	position: fixed !important;
	top: 0 !important; left: 0 !important;
	width: 100% !important; height: 100% !important;
	background-color: rgba(0, 0, 0, 0.5) !important;
	z-index: 9999 !important;
	display: flex !important;
	justify-content: center !important;
	align-items: center !important;
}
.gr-modal-content {
	background-color: #333 !important;
	padding: 20px !important;
	border-radius: 9px !important;
	text-align: center !important;
	max-width: 300px !important;
	height: auto !important;
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5) !important;
	border: 2px solid #FFA500 !important;
	color: white !important;
	position: relative !important;
}
.gr-modal-content p {
	overflow-wrap: break-word;
	word-break: break-word;
	white-space: normal;
}
.confirm-buttons {
	display: flex !important;
	justify-content: space-evenly !important;
	margin-top: 20px !important;
}
.confirm-buttons button {
	padding: 10px 20px !important;
	border: none !important;
	border-radius: 6px !important;
	font-size: 16px !important;
	cursor: pointer !important;
}
.accordion-block-even > button, .accordion-block-odd > button {
	padding: 10px 0 10px 0 !important;
}
.accordion-block-even, .accordion-block-even div label textarea, .accordion-block-even .wrap {
	background: var(--table-even-background-fill) !important;
}
.accordion-block-odd, .accordion-block-odd div label textarea, .accordion-block-odd .wrap {
	background: var(--table-odd-background-fill) !important;
}
.accordion-block-even:hover,
.accordion-block-odd:hover {
	background: rgba(255, 200, 50, 0.3) !important;
}
.accordion-block-voice-list {
	margin: auto !important;
	padding: 0 16px 0 0 !important;
}
.gr-blocks-buttons {
	display: flex !important;
	justify-content: space-evenly !important;
	margin-top: 12px !important;
	margin-bottom: 12px !important;
}
.gr-blocks-buttons button {
	padding: 12px !important;
	border: none !important;
	border-radius: 9px !important;
	font-size: 16px !important;
	cursor: pointer !important;
}
.gr-blocks-buttons:hover { background-color: #34d058 !important; }
.gr-blocks-buttons:active {
	background: var(--body-text-color) !important;
	color: var(--body-background-fill) !important;
}
.accordion-block-keep, .accordion-block-keep .wrap{
	background: none !important;
}
.accordion-block-reset {
	margin-left: 30px !important;
	margin-right: 30px !important;
	border-radius: 9px !important;
}
.spinner {
	margin: 15px auto !important;
	border: 4px solid rgba(255, 255, 255, 0.2) !important;
	border-top: 4px solid #FFA500 !important;
	border-radius: 50% !important;
	width: 30px !important;
	height: 30px !important;
	animation: spin 1s linear infinite !important;
}
@keyframes spin {
	0% { transform: rotate(0deg); }
	100% { transform: rotate(360deg); }
}
/* Icons: header.js gives a glyph button (▶ 🗑 🔒 ✔...) its data-icon and keeps it in step when the glyph changes.
   The glyph stays the button text (screen readers) but is hidden, the icon is a mask in the button text color,
   so it follows every theme. Last in the file: same specificity as the font sizes above, it comes after them */
button[data-icon], .confirm-buttons .btn[data-icon] {
	font-size: 0 !important;
	/* the glyph, zero wide, stays a flex item: space-evenly (.gr-blocks-buttons) or a gap moved the icon off center */
	justify-content: center !important;
	gap: 0 !important;
}
button[data-icon]::before, .confirm-buttons .btn[data-icon]::before {
	content: "" !important;
	display: inline-block !important;
	flex: 0 0 auto !important;
	width: 24px !important;
	height: 24px !important;
	background-color: currentColor !important;
	-webkit-mask: var(--e2a-icon) center / contain no-repeat !important;
	mask: var(--e2a-icon) center / contain no-repeat !important;
}
.micro-btn[data-icon]::before {
	width: 15px !important;
	height: 15px !important;
}
.accordion-block-reset[data-icon]::before {
	width: 20px !important;
	height: 20px !important;
}
#gr_blocks_nav button[data-icon]::before {
	width: 28px !important;
	height: 28px !important;
}
.gr-convert-btn[data-icon]::before, .gr-abs-upload-btn[data-icon]::before {
	width: 34px !important;
	height: 34px !important;
}
/* the e2a logo (tools/icons/appLogo.png) as a line icon: open book, text on a page, level bars on the other */
[data-icon="logo"] {
	--e2a-icon: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M12 6.5C10 5 7 4.4 2.5 4.8v13.6c4.5-.4 7.5.2 9.5 1.6 2-1.4 5-2 9.5-1.6V4.8C17 4.4 14 5 12 6.5zM12 6.5V20'/><path d='M5 9h4.5M5 12h4.5M5 15h3.5'/><path d='M14.5 16v-2.5M17 16v-4.5M19.5 16V9'/></svg>");
}
[data-icon="play"] {
	--e2a-icon: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><path d='M7 4.5v15l12-7.5z'/></svg>");
}
[data-icon="pause"] {
	--e2a-icon: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><path d='M9 5v14M15 5v14'/></svg>");
}
[data-icon="trash"] {
	--e2a-icon: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><path d='M4 7h16M10 4h4M6 7l1 13h10l1-13M10 11v6M14 11v6'/></svg>");
}
[data-icon="lock"] {
	--e2a-icon: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><rect x='5' y='11' width='14' height='9' rx='2'/><path d='M8 11V8a4 4 0 0 1 8 0v3'/></svg>");
}
[data-icon="key"] {
	--e2a-icon: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><circle cx='8' cy='16' r='4'/><path d='M11 13l9-9M16 8l3 3M14 10l2 2'/></svg>");
}
[data-icon="preview"] {
	--e2a-icon: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><circle cx='12' cy='12' r='9'/><path d='M10 8.5v7l6-3.5z'/></svg>");
}
[data-icon="check"] {
	--e2a-icon: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><path d='M5 12.5l4.5 4.5L19 7.5'/></svg>");
}
[data-icon="x"] {
	--e2a-icon: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><path d='M6 6l12 12M18 6L6 18'/></svg>");
}
[data-icon="download"] {
	--e2a-icon: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><path d='M12 4v11M7 10l5 5 5-5M5 20h14'/></svg>");
}
[data-icon="edit"] {
	--e2a-icon: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><path d='M4 20h4L19 9l-4-4L4 16z'/><path d='M13 7l4 4'/></svg>");
}
[data-icon="rebuild"] {
	--e2a-icon: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><path d='M20 11a8 8 0 0 0-14.3-4.9L4 8M4 4v4h4M4 13a8 8 0 0 0 14.3 4.9L20 16M20 20v-4h-4'/></svg>");
}
[data-icon="reset"] {
	--e2a-icon: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><path d='M4 12a8 8 0 1 0 2.3-5.7L4 8.6M4 4v4.6h4.6'/></svg>");
}
[data-icon="search"] {
	--e2a-icon: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><circle cx='11' cy='11' r='6.5'/><path d='M16 16l4 4'/></svg>");
}
[data-icon="upload"] {
	--e2a-icon: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><path d='M12 20V9M7 14l5-5 5 5M5 4h14'/></svg>");
}
[data-icon="arrow-left"] {
	--e2a-icon: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><path d='M19 12H5M11 6l-6 6 6 6'/></svg>");
}
[data-icon="arrow-right"] {
	--e2a-icon: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><path d='M5 12h14M13 6l6 6-6 6'/></svg>");
}
[data-icon="chevron-left"] {
	--e2a-icon: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><path d='M15 6l-6 6 6 6'/></svg>");
}
[data-icon="chevron-right"] {
	--e2a-icon: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><path d='M9 6l6 6-6 6'/></svg>");
}