-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathelectron-control.html
More file actions
7245 lines (6566 loc) · 328 KB
/
electron-control.html
File metadata and controls
7245 lines (6566 loc) · 328 KB
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
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
<!DOCTYPE html>
<html lang="ru">
<head>
<meta charset="UTF-8">
<meta http-equiv="Content-Security-Policy" content="default-src 'self'; script-src 'self' 'unsafe-inline'; style-src 'self' 'unsafe-inline'; img-src 'self' data:; media-src 'self' data:; font-src 'self' data:; connect-src 'self'; object-src 'none'; base-uri 'self'">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Управление Таймером</title>
<link rel="stylesheet" href="styles.css">
<link rel="stylesheet" href="components.css">
<link rel="stylesheet" href="design-tokens.css">
<style>
/* Inter: latin + cyrillic, weights 200/300/400/500/600/700 */
@font-face { font-family: 'Inter'; font-weight: 200; font-style: normal; font-display: swap; src: url('fonts/inter-latin-200-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Inter'; font-weight: 200; font-style: normal; font-display: swap; src: url('fonts/inter-cyrillic-200-normal.woff2') format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Inter'; font-weight: 300; font-style: normal; font-display: swap; src: url('fonts/inter-latin-300-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Inter'; font-weight: 300; font-style: normal; font-display: swap; src: url('fonts/inter-cyrillic-300-normal.woff2') format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Inter'; font-weight: 400; font-style: normal; font-display: swap; src: url('fonts/inter-latin-400-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Inter'; font-weight: 400; font-style: normal; font-display: swap; src: url('fonts/inter-cyrillic-400-normal.woff2') format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Inter'; font-weight: 500; font-style: normal; font-display: swap; src: url('fonts/inter-latin-500-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Inter'; font-weight: 500; font-style: normal; font-display: swap; src: url('fonts/inter-cyrillic-500-normal.woff2') format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Inter'; font-weight: 600; font-style: normal; font-display: swap; src: url('fonts/inter-latin-600-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Inter'; font-weight: 600; font-style: normal; font-display: swap; src: url('fonts/inter-cyrillic-600-normal.woff2') format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Inter'; font-weight: 700; font-style: normal; font-display: swap; src: url('fonts/inter-latin-700-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Inter'; font-weight: 700; font-style: normal; font-display: swap; src: url('fonts/inter-cyrillic-700-normal.woff2') format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
/* JetBrains Mono: latin + cyrillic, weights 300/400/500/700 */
@font-face { font-family: 'JetBrains Mono'; font-weight: 300; font-style: normal; font-display: swap; src: url('fonts/jetbrains-mono-latin-300-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'JetBrains Mono'; font-weight: 300; font-style: normal; font-display: swap; src: url('fonts/jetbrains-mono-cyrillic-300-normal.woff2') format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'JetBrains Mono'; font-weight: 400; font-style: normal; font-display: swap; src: url('fonts/jetbrains-mono-latin-400-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'JetBrains Mono'; font-weight: 400; font-style: normal; font-display: swap; src: url('fonts/jetbrains-mono-cyrillic-400-normal.woff2') format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'JetBrains Mono'; font-weight: 500; font-style: normal; font-display: swap; src: url('fonts/jetbrains-mono-latin-500-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'JetBrains Mono'; font-weight: 500; font-style: normal; font-display: swap; src: url('fonts/jetbrains-mono-cyrillic-500-normal.woff2') format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'JetBrains Mono'; font-weight: 700; font-style: normal; font-display: swap; src: url('fonts/jetbrains-mono-latin-700-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'JetBrains Mono'; font-weight: 700; font-style: normal; font-display: swap; src: url('fonts/jetbrains-mono-cyrillic-700-normal.woff2') format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
/* =============================================
TimerWidget — Control Panel · VisionOS v2
Dark glass · tokens from design-tokens.css
============================================= */
* { box-sizing: border-box; }
html, body {
margin: 0;
padding: 0;
overflow: hidden;
font-family: var(--tw-font-sans);
color: var(--tw-fg);
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
/* Solid dark base so the panel reads as dark glass even during the
brief gap before `.control-window` on <body> paints its gradient.
Without this, the white BrowserWindow surface shows through the
translucent .control-panel (`rgba(28,28,30,0.72)`) → the whole
UI looks like a light theme. Matches design-tokens --tw-bg-void. */
background: #000000;
}
/* Subtle noise texture for glass depth */
body::after {
content: '';
position: fixed;
inset: 0;
z-index: 9999;
pointer-events: none;
opacity: 0.03;
background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
background-repeat: repeat;
}
.control-window {
background: var(--tw-bg-void);
background-image:
radial-gradient(ellipse at 30% 20%, rgba(88, 86, 214, 0.18) 0%, transparent 55%),
radial-gradient(ellipse at 70% 80%, rgba(0, 122, 255, 0.12) 0%, transparent 55%);
height: 100vh;
padding: 0;
overflow: hidden;
display: flex;
flex-direction: column;
color: var(--tw-fg-secondary);
}
/* App shell — single column for the control panel. The drawer is an
overlay (absolutely positioned), so the panel never gets squished
on narrow windows. */
.app-shell {
display: grid;
grid-template-columns: 1fr;
grid-template-rows: 1fr;
min-height: 100vh;
width: 100%;
position: relative;
overflow: hidden;
}
.control-panel {
background: var(--tw-bg-surface);
backdrop-filter: var(--tw-blur);
-webkit-backdrop-filter: var(--tw-blur);
border-radius: var(--tw-r-2xl);
border: 1px solid var(--tw-border);
padding: 0;
box-shadow: var(--tw-shadow-panel);
min-width: 0;
width: 100%;
max-width: 560px;
justify-self: center;
align-self: center;
margin: 8px;
overflow: hidden;
display: flex;
flex-direction: column;
height: max-content;
max-height: calc(100vh - 16px);
}
/* When drawer is open, panel docks to the left so the two sit side-by-side.
Main guarantees the control window is wide enough (~716px) before opening
the drawer, so the old narrow-mode overlay + backdrop is unreachable. */
.app-shell.drawer-open .control-panel {
justify-self: start;
}
@media (min-width: 700px) {
.app-shell.drawer-open .control-panel {
max-width: calc(100vw - clamp(300px, 32vw, 360px) - 24px);
}
}
/* ============ Settings drawer (slide-out right) ============
Styled after TimerWidget Design System v2 — sound-tab reference:
- rgba(22,22,28,0.7) panel, blur(40px) saturate(180%)
- Inter 600/18px head, 11px uppercase crumb
- 12–14px radii, 0.055 inner borders, subtle card nesting
- Tight 8–10px rhythm inside the 336px column */
.settings-drawer {
position: absolute;
top: 8px;
right: 8px;
bottom: 8px;
width: clamp(300px, 32vw, 360px);
max-width: calc(100vw - 16px);
min-width: 0;
background: rgba(22, 22, 28, 0.72);
backdrop-filter: blur(40px) saturate(180%);
-webkit-backdrop-filter: blur(40px) saturate(180%);
border: 1px solid rgba(255, 255, 255, 0.08);
border-radius: 22px;
box-shadow:
0 0 0 0.5px rgba(255, 255, 255, 0.04),
0 24px 60px rgba(0, 0, 0, 0.55),
inset 0 1px 0 rgba(255, 255, 255, 0.05);
display: flex;
flex-direction: column;
opacity: 0;
transform: translateX(calc(100% + 16px));
transition: opacity 200ms var(--tw-ease), transform 240ms var(--tw-ease-out);
pointer-events: none;
overflow: hidden;
z-index: 50;
}
.settings-drawer.open {
opacity: 1;
transform: translateX(0);
pointer-events: auto;
}
.drawer-head {
padding: 16px 18px 12px;
display: flex;
align-items: center;
gap: 10px;
border-bottom: 1px solid rgba(255, 255, 255, 0.05);
flex: 0 0 auto;
}
/* Kit-style breadcrumb: НАСТРОЙКИ / <Tab> */
.drawer-head::before {
content: "НАСТРОЙКИ /";
font-size: 10.5px;
font-weight: 700;
color: rgba(255, 255, 255, 0.42);
text-transform: uppercase;
letter-spacing: 0.6px;
flex: 0 0 auto;
}
.drawer-title {
font-size: 17px;
font-weight: 600;
color: var(--tw-fg);
letter-spacing: -0.2px;
flex: 1 1 auto;
}
.drawer-close {
width: 26px;
height: 26px;
border: 1px solid rgba(255, 255, 255, 0.06);
border-radius: 8px;
background: rgba(255, 255, 255, 0.04);
color: rgba(255, 255, 255, 0.55);
font-size: 16px;
line-height: 1;
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
flex: 0 0 auto;
transition: background var(--tw-dur-fast) var(--tw-ease),
color var(--tw-dur-fast) var(--tw-ease),
border-color var(--tw-dur-fast) var(--tw-ease);
}
.drawer-close:hover {
background: rgba(255, 255, 255, 0.08);
border-color: rgba(255, 255, 255, 0.14);
color: var(--tw-fg);
}
.drawer-close:focus-visible { outline: none; box-shadow: var(--tw-focus-ring); }
.drawer-body {
flex: 1 1 auto;
min-height: 0;
overflow-y: auto;
overflow-x: hidden;
padding: 14px 14px 14px 16px;
}
.drawer-body::-webkit-scrollbar { width: 6px; }
.drawer-body::-webkit-scrollbar-track { background: transparent; }
.drawer-body::-webkit-scrollbar-thumb {
background: rgba(255, 255, 255, 0.12);
border-radius: 3px;
}
.drawer-body::-webkit-scrollbar-thumb:hover {
background: rgba(255, 255, 255, 0.22);
}
/* Tab-content inside drawer body — flat single-column list */
.drawer-body .tab-content { display: none; }
.drawer-body .tab-content.active {
display: flex;
flex-direction: column;
gap: 10px;
max-height: none;
padding: 0;
overflow: visible;
}
/* Softer settings-group cards inside drawer */
.drawer-body .settings-group {
background: rgba(255, 255, 255, 0.03);
border: 1px solid rgba(255, 255, 255, 0.05);
border-radius: 14px;
padding: 12px;
margin: 0;
}
.drawer-body .settings-group-title {
font-size: 11px;
font-weight: 700;
letter-spacing: 0.5px;
text-transform: uppercase;
color: rgba(255, 255, 255, 0.55);
margin: 0 0 10px;
display: flex;
align-items: center;
gap: 6px;
}
.drawer-body .settings-group-title .icon {
font-size: 12px;
opacity: 0.8;
}
.drawer-body .toggle-row {
padding: 6px 2px;
}
.drawer-body .toggle-label {
font-size: 12.5px;
font-weight: 500;
color: rgba(255, 255, 255, 0.88);
}
/* Segmented control — tighter variant inside drawer */
.drawer-body .segmented {
border-radius: 10px;
padding: 2px;
background: rgba(0, 0, 0, 0.28);
border: 1px solid rgba(255, 255, 255, 0.04);
gap: 0;
}
.drawer-body .segmented button {
padding: 6px 8px;
font-size: 11px;
border-radius: 8px;
}
/* Inline hint card — explains display-only gestures (Alt-drag, Ctrl+wheel)
to users who are configuring from the control panel. */
.settings-hint {
display: flex;
align-items: flex-start;
gap: 8px;
margin: 8px 0;
padding: 9px 11px;
background: rgba(10, 132, 255, 0.07);
border: 1px solid rgba(10, 132, 255, 0.18);
border-radius: 10px;
font-size: 11.5px;
line-height: 1.45;
color: rgba(255, 255, 255, 0.78);
}
.settings-hint .hint-icon {
flex: 0 0 auto;
font-size: 13px;
line-height: 1.3;
opacity: 0.9;
}
.settings-hint .hint-text { flex: 1 1 auto; }
.settings-hint kbd {
display: inline-block;
padding: 1px 5px;
margin: 0 1px;
font-family: var(--tw-font-mono);
font-size: 10px;
font-weight: 600;
color: rgba(255, 255, 255, 0.95);
background: rgba(255, 255, 255, 0.1);
border: 1px solid rgba(255, 255, 255, 0.14);
border-radius: 4px;
box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.25);
}
/* Scrollable content area — shrinks to content on tall windows so the
panel doesn't stretch into giant blank space; scrolls when needed. */
.scrollable-content {
flex: 0 1 auto;
min-height: 0;
overflow-y: auto;
overflow-x: hidden;
}
.scrollable-content::-webkit-scrollbar { width: 4px; }
.scrollable-content::-webkit-scrollbar-track { background: transparent; }
.scrollable-content::-webkit-scrollbar-thumb {
background: var(--tw-overlay-medium);
border-radius: 2px;
}
.scrollable-content::-webkit-scrollbar-thumb:hover {
background: rgba(255, 255, 255, 0.22);
}
/* Custom titlebar — traffic light style */
.custom-titlebar {
-webkit-app-region: drag;
display: flex;
align-items: center;
justify-content: space-between;
padding: var(--tw-s-3) var(--tw-s-4);
background: transparent;
border-radius: var(--tw-r-2xl) var(--tw-r-2xl) 0 0;
flex-shrink: 0;
min-height: 40px;
border-bottom: 1px solid var(--tw-divider);
}
.custom-titlebar .titlebar-right {
display: flex;
gap: var(--tw-s-2);
-webkit-app-region: no-drag;
min-width: 52px;
justify-content: flex-end;
}
.custom-titlebar .titlebar-help {
width: 22px;
height: 22px;
border: 1px solid var(--tw-border);
border-radius: 50%;
background: var(--tw-overlay-light);
color: var(--tw-fg-muted);
font-size: 11px;
font-weight: 600;
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
transition: background var(--tw-dur-base) var(--tw-ease),
color var(--tw-dur-base) var(--tw-ease);
padding: 0;
}
.custom-titlebar .titlebar-help:hover {
background: var(--tw-overlay-medium);
color: var(--tw-fg);
}
.custom-titlebar .title-text {
color: var(--tw-fg-muted);
font-size: var(--tw-t-tiny);
font-weight: 600;
text-transform: uppercase;
letter-spacing: 0.5px;
pointer-events: none;
}
.custom-titlebar .window-controls {
display: flex;
gap: 7px;
-webkit-app-region: no-drag;
}
.custom-titlebar .win-btn {
width: 12px;
height: 12px;
border: none;
border-radius: 50%;
background: rgba(255, 255, 255, 0.12);
color: transparent;
font-family: -apple-system, 'SF Pro Text', 'Segoe UI', sans-serif;
font-size: 9px;
font-weight: 700;
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
transition: filter var(--tw-dur-fast) var(--tw-ease),
color var(--tw-dur-fast) var(--tw-ease);
line-height: 1;
padding: 0;
box-shadow: inset 0 0 0 0.5px rgba(0, 0, 0, 0.18);
}
.custom-titlebar .win-btn::before {
content: attr(data-glyph);
display: block;
transform: translateY(-0.5px);
}
.custom-titlebar .window-controls:hover .win-btn {
color: rgba(0, 0, 0, 0.65);
}
.custom-titlebar .win-btn:hover {
filter: brightness(1.08);
}
.custom-titlebar .win-btn:active {
filter: brightness(0.92);
}
.custom-titlebar .win-btn.close-btn,
.custom-titlebar .win-btn:nth-child(1) { background: #ff5f57; }
.custom-titlebar .win-btn.minimize-btn,
.custom-titlebar .win-btn:nth-child(2) { background: #febc2e; }
.custom-titlebar .win-btn:nth-child(3) { background: #28c840; }
/* =======================================================
Timer hero — VisionOS signature
======================================================= */
.timer-header {
background: linear-gradient(180deg, rgba(255,255,255,0.02) 0%, transparent 100%);
padding: 24px 16px 14px;
text-align: center;
position: relative;
flex-shrink: 0;
border-bottom: 1px solid var(--tw-divider);
}
.timer-header h1 {
color: var(--tw-fg-dim);
font-size: var(--tw-t-tiny);
font-weight: 600;
margin: 0 0 12px 0;
text-transform: uppercase;
letter-spacing: 0.5px;
}
.timer-display-main {
font-family: var(--tw-font-display);
font-weight: 200;
font-size: var(--tw-t-timer-panel);
letter-spacing: 0.05em;
color: var(--tw-fg);
font-variant-numeric: tabular-nums;
line-height: 1;
margin-bottom: var(--tw-s-3);
transition: color var(--tw-dur-slow) var(--tw-ease),
text-shadow var(--tw-dur-slow) var(--tw-ease);
text-shadow: 0 2px 4px rgba(0,0,0,0.5), var(--tw-glow-blue);
}
/* Fixed-width sign slot — keeps digits optically centered whether
the minus is visible (overtime) or not. The gap is deliberate: with
the thin display font a minus sitting directly next to a digit looks
glued — add ~0.25ch of breathing room. */
.timer-display-main .tm-sign {
display: inline-block;
width: 0.6ch;
text-align: right;
margin-right: 0.25ch;
}
.timer-display-main.danger {
color: var(--tw-red);
text-shadow: 0 2px 4px rgba(0,0,0,0.5), var(--tw-glow-red);
}
.timer-display-main.warning {
color: var(--tw-yellow);
text-shadow: 0 2px 4px rgba(0,0,0,0.5), 0 0 30px rgba(255, 214, 10, 0.45);
}
/* Status chip — neutral · success · attention (glyph carried by dot) */
.timer-status {
display: inline-flex;
align-items: center;
gap: var(--tw-s-2);
padding: 6px 14px;
background: var(--tw-overlay-medium);
border-radius: var(--tw-r-pill);
border: 1px solid transparent;
color: var(--tw-fg-secondary);
font-size: var(--tw-t-tiny);
font-weight: 600;
text-transform: uppercase;
letter-spacing: 1px;
backdrop-filter: blur(5px);
-webkit-backdrop-filter: blur(5px);
}
.status-dot {
width: 8px;
height: 8px;
border-radius: 50%;
background: var(--tw-fg-dim);
flex-shrink: 0;
}
.status-dot.running {
background: var(--tw-green);
box-shadow: 0 0 8px rgba(48, 209, 88, 0.7);
animation: pulse-dot 1.5s infinite;
}
.status-dot.paused {
background: var(--tw-yellow);
}
.status-dot.finished {
background: var(--tw-red);
animation: pulse-dot 0.5s infinite;
}
.status-dot.overtime {
background: var(--tw-red);
box-shadow: 0 0 8px rgba(255, 69, 58, 0.8);
animation: pulse-dot 0.6s infinite;
}
@keyframes pulse-dot {
0%, 100% { opacity: 1; transform: scale(1); }
50% { opacity: 0.55; transform: scale(1.25); }
}
/* =======================================================
Transport row — pause · START · reset
======================================================= */
.main-controls {
display: flex;
justify-content: center;
gap: var(--tw-s-4);
padding: var(--tw-s-3) var(--tw-s-4) var(--tw-s-4);
background: transparent;
border-bottom: 1px solid var(--tw-divider);
flex-shrink: 0;
}
.main-btn {
width: 56px;
height: 56px;
border: none;
border-radius: 50%;
cursor: pointer;
font-size: 20px;
display: flex;
align-items: center;
justify-content: center;
transition: background var(--tw-dur-base) var(--tw-ease),
transform var(--tw-dur-fast) var(--tw-ease),
box-shadow var(--tw-dur-base) var(--tw-ease),
filter var(--tw-dur-base) var(--tw-ease);
color: var(--tw-fg);
background: var(--tw-overlay-medium);
-webkit-backdrop-filter: var(--tw-blur-xs);
backdrop-filter: var(--tw-blur-xs);
}
.main-btn.start {
width: 64px;
height: 64px;
font-size: 24px;
background: var(--tw-green);
color: var(--tw-fg);
box-shadow: 0 4px 20px rgba(48, 209, 88, 0.3);
}
.main-btn:hover:not(:disabled) {
background: rgba(255, 255, 255, 0.18);
transform: translateY(-1px);
}
.main-btn.start:hover:not(:disabled) {
background: #34d65c;
box-shadow: 0 6px 24px rgba(48, 209, 88, 0.42);
transform: translateY(-1px);
}
.main-btn:active:not(:disabled) { transform: scale(0.98); }
.main-btn:disabled {
opacity: 0.4;
cursor: not-allowed;
filter: grayscale(0.6);
}
.main-btn:focus-visible {
outline: none;
box-shadow: var(--tw-focus-ring);
}
.main-btn.pause {
background: var(--tw-overlay-medium);
color: var(--tw-fg);
}
.main-btn.reset {
background: var(--tw-overlay-medium);
color: var(--tw-fg);
}
.main-btn.reset:hover:not(:disabled) {
background: rgba(255,255,255,0.18);
}
/* Content section */
.content-section {
padding: var(--tw-s-3) var(--tw-s-4);
}
/* =======================================================
Tabs — settings tab strip
======================================================= */
.group-title {
font-size: var(--tw-t-tiny);
font-weight: 600;
color: var(--tw-fg-dim);
letter-spacing: 0.5px;
text-transform: uppercase;
margin-bottom: 10px;
margin-top: 4px;
}
.segmented {
display: inline-flex;
background: rgba(255,255,255,0.04);
border: 1px solid rgba(255,255,255,0.06);
border-radius: 10px;
padding: 3px;
gap: 2px;
}
.segmented button {
padding: 6px 14px;
border-radius: 7px;
background: transparent;
border: none;
color: var(--tw-fg-muted);
font-family: inherit;
font-size: var(--tw-t-label);
font-weight: 500;
cursor: pointer;
transition: color 150ms var(--tw-ease), background 150ms var(--tw-ease);
}
.segmented button:hover { color: var(--tw-fg); }
.segmented button.active {
color: var(--tw-fg);
background: rgba(255,255,255,0.1);
box-shadow: inset 0 1px 0 rgba(255,255,255,0.07);
}
.segmented button:focus-visible { outline: none; box-shadow: var(--tw-focus-ring); }
.footer-hints {
text-align: center;
padding: 12px 16px 4px;
font-size: var(--tw-t-tiny);
color: var(--tw-fg-dim);
letter-spacing: 0.2px;
border-top: 1px solid var(--tw-divider);
margin-top: 8px;
}
.tabs-row {
display: flex;
background: rgba(255,255,255,0.04);
border: 1px solid rgba(255,255,255,0.05);
border-radius: 12px;
padding: 3px;
gap: 2px;
margin-bottom: 16px;
}
.tab-btn {
flex: 1;
padding: 9px 4px;
border-radius: 9px;
text-align: center;
font-size: var(--tw-t-label);
font-weight: 500;
color: var(--tw-fg-muted);
cursor: pointer;
background: transparent;
border: none;
font-family: inherit;
transition: color 150ms var(--tw-ease), background 150ms var(--tw-ease);
}
.tab-btn:hover { color: var(--tw-fg); }
.tab-btn.active {
color: var(--tw-fg);
background: rgba(255,255,255,0.1);
box-shadow: 0 2px 10px rgba(0,0,0,0.25), inset 0 1px 0 rgba(255,255,255,0.07);
}
.tab-btn:focus-visible { outline: none; box-shadow: var(--tw-focus-ring); }
.tab-btn .icon { display: none; }
.tab-content { display: none; }
.tab-content.active {
display: flex;
flex-direction: column;
gap: var(--tw-s-3);
animation: fadeIn var(--tw-dur-slow) var(--tw-ease-out);
overflow-y: auto;
overflow-x: hidden;
padding-right: 4px;
max-height: calc(100vh - 500px);
}
.tab-content.active::-webkit-scrollbar { width: 4px; }
.tab-content.active::-webkit-scrollbar-track { background: transparent; }
.tab-content.active::-webkit-scrollbar-thumb {
background: var(--tw-overlay-medium);
border-radius: 2px;
}
.tab-content .settings-group { margin: 0; }
/* Sound tab — single full-width column for library-style layout */
#tab-sound.active {
display: grid;
grid-template-columns: 1fr;
gap: var(--tw-s-3);
overflow-y: auto;
overflow-x: hidden;
max-height: calc(100vh - 500px);
}
#tab-sound .settings-group {
padding: var(--tw-s-4);
min-width: 0;
overflow: hidden;
}
#tab-sound .settings-column {
min-width: 0;
overflow: hidden;
}
#tab-sound .settings-group-title {
margin-bottom: var(--tw-s-3);
}
/* Single-row sound items — one signal per row for dense drawer layout */
.sound-list {
display: flex;
flex-direction: column;
gap: 4px;
}
.sound-item {
display: flex;
align-items: center;
gap: 6px;
padding: 7px 8px;
background: rgba(0, 0, 0, 0.28);
border: 1px solid rgba(255, 255, 255, 0.04);
border-radius: 10px;
min-width: 0;
}
.sound-check {
display: inline-flex;
align-items: center;
gap: 6px;
flex: 0 0 88px;
min-width: 0;
font-size: 12px;
color: rgba(255, 255, 255, 0.88);
cursor: pointer;
user-select: none;
}
.sound-check input[type="checkbox"] {
width: 14px;
height: 14px;
accent-color: var(--tw-blue);
flex-shrink: 0;
cursor: pointer;
}
.sound-check .sound-name {
font-weight: 500;
color: var(--tw-fg);
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.sound-item .select-wrap { flex: 1 1 auto; min-width: 0; }
.sound-item .sound-select {
padding: 7px 26px 7px 10px;
font-size: 12px;
border-radius: 9px;
width: 100%;
background: rgba(255, 255, 255, 0.05);
color: var(--tw-fg);
border: 1px solid rgba(255, 255, 255, 0.08);
appearance: none;
-webkit-appearance: none;
cursor: pointer;
outline: none;
font-weight: 500;
}
.sound-item .sound-select:focus-visible { box-shadow: var(--tw-focus-ring); }
.sound-item .select-wrap::after {
content: "";
position: absolute;
right: 9px;
top: 50%;
width: 6px;
height: 6px;
border-right: 1.2px solid rgba(255, 255, 255, 0.55);
border-bottom: 1.2px solid rgba(255, 255, 255, 0.55);
transform: translateY(-70%) rotate(45deg);
pointer-events: none;
}
.sound-item .sound-preview {
width: 30px;
height: 30px;
font-size: 11px;
flex: 0 0 auto;
border: none;
border-radius: 9px;
background: linear-gradient(135deg, var(--tw-blue), var(--tw-green));
color: #fff;
cursor: pointer;
display: inline-flex;
align-items: center;
justify-content: center;
font-weight: 600;
transition: transform var(--tw-dur-fast) var(--tw-ease),
filter var(--tw-dur-base) var(--tw-ease),
background var(--tw-dur-base) var(--tw-ease);
box-shadow: 0 3px 10px rgba(10, 132, 255, 0.25);
}
.sound-item .sound-preview:hover { filter: brightness(1.1); transform: scale(1.06); }
.sound-item .sound-preview:focus-visible { outline: none; box-shadow: var(--tw-focus-ring); }
.sound-item .sound-preview.playing {
background: linear-gradient(135deg, #f5576c, var(--tw-red));
box-shadow: 0 2px 6px rgba(245, 87, 108, 0.3);
}
.sound-item.disabled { opacity: 0.4; pointer-events: none; }
.sound-sub-item {
background: transparent;
border: none;
padding: 2px 8px 2px 8px;
gap: 6px;
}
.sound-sub-name {
flex: 0 0 88px;
font-size: 10px;
color: var(--tw-fg-dim);
white-space: nowrap;
padding-left: 18px;
}
.sound-preview-placeholder {
width: 28px;
height: 28px;
flex: 0 0 auto;
pointer-events: none;
display: inline-block;
}
/* ============ Sound tab inside drawer — compact reflow ============
Section layout flows naturally in drawer-body (no flex stretching).
Dropzone is one horizontal row: icon · (title / sub) instead of the
oversized vertical card used in the legacy 2-column layout. */
.drawer-body #tab-sound.active {
display: flex;
flex-direction: column;
gap: 10px;
max-height: none;
overflow: visible;
}
.drawer-body #tab-sound .settings-group { padding: 10px 12px 12px; }
.drawer-body #tab-sound .settings-group-title { margin-bottom: 10px; }
/* Master toggle in "Звуки" header — compact variant */
.drawer-body #tab-sound .settings-group-title .toggle-switch {
width: 32px;
height: 18px;
}
.drawer-body #tab-sound .settings-group-title .toggle-slider {
border-radius: 10px;
}
.drawer-body #tab-sound .settings-group-title .toggle-slider::before {
width: 14px;
height: 14px;
left: 2px;
bottom: 2px;
}
.drawer-body #tab-sound .settings-group-title input:checked + .toggle-slider::before {
transform: translateX(14px);
}
/* Caption inside the "Ваши звуки" header (mp3 · wav · …) */
.sound-formats {
margin-left: auto;
font-size: 9.5px;
font-weight: 500;
font-family: var(--tw-font-mono);
letter-spacing: 0.4px;
color: rgba(255, 255, 255, 0.44);
text-transform: none;
}
/* Empty state for custom sounds list */
.sound-empty {
display: flex;
align-items: center;
justify-content: center;
gap: 8px;
padding: 14px 12px;
border-radius: 10px;
background: rgba(255, 255, 255, 0.02);
border: 1px solid rgba(255, 255, 255, 0.05);
color: rgba(255, 255, 255, 0.48);
font-size: 11.5px;
font-weight: 500;
}
.sound-empty::before {
content: "♪";
font-size: 14px;
color: rgba(255, 255, 255, 0.35);
}
/* Spacing between custom list and dropzone */
.drawer-body #tab-sound .custom-sound-list { margin-bottom: 10px; }
.drawer-body #tab-sound .custom-sound-list:empty { margin-bottom: 0; }
/* Compact horizontal dropzone: icon left, title+sub stacked right */
.drawer-body #tab-sound .add-sound-row { display: block; margin-top: 10px; }
.drawer-body #tab-sound .add-sound-btn {
width: 100%;
display: grid;
grid-template-columns: auto 1fr;
grid-auto-rows: auto;
align-items: center;
column-gap: 10px;
row-gap: 1px;
padding: 10px 12px;
border: 1.5px dashed rgba(10, 132, 255, 0.36);
background: rgba(10, 132, 255, 0.045);
color: var(--tw-fg);
border-radius: 11px;
text-align: left;
min-height: 0;
}
.drawer-body #tab-sound .add-sound-btn:hover {
border-color: var(--tw-blue);
background: rgba(10, 132, 255, 0.1);
}
.drawer-body #tab-sound .add-sound-btn .drop-icon {
grid-column: 1;
grid-row: 1 / span 2;
width: 30px;
height: 30px;
border-radius: 9px;
background: rgba(10, 132, 255, 0.2);
color: var(--tw-blue);
align-self: center;
}
.drawer-body #tab-sound .add-sound-btn:hover .drop-icon {
background: rgba(10, 132, 255, 0.28);
}
.drawer-body #tab-sound .add-sound-btn .drop-icon svg {
width: 14px;
height: 14px;
stroke-width: 2.2;
}
.drawer-body #tab-sound .add-sound-btn .drop-title {
grid-column: 2;
grid-row: 1;
font-size: 12px;
font-weight: 600;
line-height: 1.2;
color: var(--tw-fg);
}
.drawer-body #tab-sound .add-sound-btn .drop-sub {
grid-column: 2;
grid-row: 2;
font-size: 10px;
line-height: 1.2;
color: var(--tw-fg-dim);
letter-spacing: 0.2px;
}
/* Display tab compact layout */
#tab-display .settings-group { padding: 10px; }
#tab-display .settings-group-title { margin-bottom: 4px; font-size: 10px; }
#tab-display .toggle-row { padding: 4px 0; }
#tab-display .toggle-label { font-size: var(--tw-t-caption); }
#tab-display .settings-column { gap: 6px; }
#tab-display .local-bg-preview { height: 80px; }