-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyles.css
More file actions
817 lines (718 loc) · 34.3 KB
/
Copy pathstyles.css
File metadata and controls
817 lines (718 loc) · 34.3 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
/* ---------------------------------------------------------------- tokens */
:root {
--accent: #f97316;
--accent-2: #ef470a;
--accent-gradient: linear-gradient(135deg, #ffa42e 0%, #ef470a 100%);
--danger: #ef4444;
--radius-lg: 14px;
--radius-md: 10px;
--font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
:root,
:root[data-theme="dark"] {
--bg: #09090d;
--bg-sidebar: rgba(15, 15, 23, 0.92);
--bg-panel: #14141f;
--bg-card: rgba(28, 28, 42, 0.7);
--bg-hover: rgba(255, 255, 255, 0.08);
--bg-sunken: rgba(0, 0, 0, 0.4);
--border: rgba(255, 255, 255, 0.09);
--text: #f3f4f6;
--text-muted: #9ca3af;
--text-dim: #6b7280;
--glow: 0 0 20px rgba(249, 115, 22, 0.35);
--shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
}
:root[data-theme="light"] {
--bg: #f4f4f7;
--bg-sidebar: rgba(255, 255, 255, 0.86);
--bg-panel: #ffffff;
--bg-card: rgba(255, 255, 255, 0.9);
--bg-hover: rgba(0, 0, 0, 0.06);
--bg-sunken: rgba(0, 0, 0, 0.04);
--border: rgba(0, 0, 0, 0.12);
--text: #111827;
--text-muted: #4b5563;
--text-dim: #6b7280;
--glow: 0 0 16px rgba(249, 115, 22, 0.25);
--shadow: 0 20px 50px rgba(0, 0, 0, 0.18);
}
* { box-sizing: border-box; margin: 0; padding: 0; user-select: none; }
html, body {
width: 100%; height: 100%; overflow: hidden;
font-family: var(--font);
background: var(--bg);
color: var(--text);
-webkit-font-smoothing: antialiased;
}
input, textarea, select { user-select: text; font-family: inherit; }
button { font-family: inherit; }
#app-container { display: flex; width: 100vw; height: 100vh; position: relative; }
/* macOS traffic-light drag strip.
Width is deliberately limited to the sidebar. It used to span the whole
window at z-index 101, which put an invisible drag region on top of every
toolbar button — clicks landed on the strip and the buttons never fired,
while Cmd+R still worked because menu accelerators bypass the DOM.
The toolbar is draggable in its own right (#topbar sets -webkit-app-region:
drag, with no-drag on the control groups), so nothing is lost. */
.drag-handle {
position: absolute; top: 0; left: 0; width: 76px; height: 44px;
-webkit-app-region: drag; z-index: 101; pointer-events: none;
}
body.platform-darwin .drag-handle { pointer-events: auto; }
/* --------------------------------------------------------------- sidebar */
#sidebar {
width: 76px; height: 100%;
background: var(--bg-sidebar);
backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
border-right: 1px solid var(--border);
display: flex; flex-direction: column; align-items: center;
padding: 12px 0 16px; z-index: 100;
}
body.platform-darwin #sidebar { padding-top: 44px; }
.workspace-chip {
display: flex; align-items: center; gap: 4px;
max-width: 62px; margin-bottom: 10px; padding: 3px 7px;
background: var(--bg-card); border: 1px solid var(--border);
border-radius: 999px; color: var(--text-muted);
font-size: 10px; font-weight: 600; cursor: pointer;
-webkit-app-region: no-drag;
}
.workspace-chip span {
overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.workspace-chip:hover { color: var(--text); border-color: var(--accent); }
#app-list {
display: flex; flex-direction: column; align-items: center; gap: 12px;
width: 100%; flex: 1; overflow-y: auto; padding: 4px 10px;
}
#app-list::-webkit-scrollbar { display: none; }
.app-tab-wrapper { position: relative; display: flex; align-items: center; }
.app-tab-wrapper.drag-over::before {
content: ''; position: absolute; left: 0; right: 0; top: -7px;
height: 2px; background: var(--accent); border-radius: 2px;
}
.app-tab-wrapper.dragging { opacity: 0.4; }
.app-tab {
position: relative; width: 52px; height: 52px;
border-radius: var(--radius-md);
background: var(--bg-card); border: 1px solid var(--border);
display: flex; align-items: center; justify-content: center;
cursor: pointer; transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
color: var(--text-muted); overflow: hidden;
}
.app-tab:hover { transform: translateY(-2px); color: var(--text); border-color: rgba(127,127,127,.4); }
.app-tab.active { border-color: var(--accent); box-shadow: var(--glow); color: var(--text); }
.app-tab.active::before {
content: ''; position: absolute; left: -11px; width: 4px; height: 24px;
background: var(--accent-gradient); border-radius: 0 4px 4px 0;
}
.app-tab.sleeping { opacity: .45; }
.app-tab img, .app-tab svg { width: 26px; height: 26px; object-fit: contain; pointer-events: none; }
.avatar {
width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
font-size: 17px; font-weight: 700; color: #fff; letter-spacing: -.02em;
text-shadow: 0 1px 2px rgba(0,0,0,.35);
}
.badge {
position: absolute; top: -5px; right: -5px; min-width: 18px; height: 18px;
padding: 0 5px; border-radius: 9px; background: var(--danger); color: #fff;
font-size: 10px; font-weight: 700; display: flex; align-items: center; justify-content: center;
box-shadow: 0 2px 6px rgba(0,0,0,.45); z-index: 5; pointer-events: none;
}
.badge.dot { min-width: 10px; height: 10px; padding: 0; }
.tab-delete-btn {
position: absolute; top: -6px; left: -6px; width: 18px; height: 18px;
border-radius: 50%; background: var(--danger); color: #fff;
display: flex; align-items: center; justify-content: center;
font-size: 11px; font-weight: 700; cursor: pointer;
opacity: 0; transform: scale(.8); transition: all .15s ease; z-index: 10;
}
.app-tab-wrapper:hover .tab-delete-btn { opacity: 1; transform: scale(1); }
.tab-delete-btn:hover { filter: brightness(1.15); }
.app-tooltip {
position: absolute; left: 66px; padding: 5px 10px;
background: var(--bg-panel); border: 1px solid var(--border);
color: var(--text); font-size: 12px; font-weight: 500;
border-radius: 6px; white-space: nowrap; pointer-events: none;
opacity: 0; transform: translateX(-5px); transition: all .15s ease;
z-index: 110; box-shadow: var(--shadow);
}
.app-tab-wrapper:hover .app-tooltip { opacity: 1; transform: translateX(0); }
.sidebar-footer { display: flex; flex-direction: column; gap: 10px; align-items: center; padding: 8px 10px 0; }
.btn-icon {
width: 52px; height: 52px; border-radius: var(--radius-md);
background: transparent; border: 1px dashed var(--border);
display: flex; align-items: center; justify-content: center;
cursor: pointer; color: var(--text-muted); transition: all .2s ease;
}
.btn-icon:hover { background: var(--accent-gradient); color: #fff; border-style: solid; border-color: transparent; }
/* ------------------------------------------------------------- workspace */
#workspace { flex: 1; height: 100%; display: flex; flex-direction: column; position: relative; background: var(--bg); }
#topbar {
height: 48px; flex-shrink: 0;
background: var(--bg-sidebar); backdrop-filter: blur(16px);
border-bottom: 1px solid var(--border);
display: flex; align-items: center; padding: 0 14px; gap: 10px;
z-index: 90; -webkit-app-region: drag;
}
.nav-buttons, .action-buttons, .url-bar { -webkit-app-region: no-drag; }
.nav-buttons, .action-buttons { display: flex; gap: 4px; }
.nav-btn {
width: 30px; height: 30px; border-radius: 6px; background: transparent;
border: none; color: var(--text-muted);
display: flex; align-items: center; justify-content: center;
cursor: pointer; transition: all .15s ease; font-size: 13px;
}
.nav-btn:hover { background: var(--bg-hover); color: var(--text); }
.nav-btn.on { color: var(--accent); background: var(--bg-hover); }
.nav-btn.off { opacity: .4; }
.url-bar {
flex: 1; display: flex; align-items: center; height: 32px;
background: var(--bg-sunken); border: 1px solid var(--border);
border-radius: 8px; padding: 0 12px; gap: 8px; color: var(--text-dim);
}
.url-bar svg { color: #10b981; flex-shrink: 0; }
.url-bar svg.insecure { color: var(--danger); }
.url-bar input {
flex: 1; background: transparent; border: none; outline: none;
color: var(--text); font-size: 12.5px; text-overflow: ellipsis;
}
#find-bar {
display: flex; align-items: center; gap: 6px; padding: 6px 14px;
background: var(--bg-panel); border-bottom: 1px solid var(--border); z-index: 89;
}
#find-bar[hidden] { display: none; }
#find-input {
flex: 1; height: 28px; padding: 0 10px; font-size: 13px;
background: var(--bg-sunken); border: 1px solid var(--border);
border-radius: 6px; color: var(--text); outline: none;
}
#find-input:focus { border-color: var(--accent); }
#find-count { font-size: 11px; color: var(--text-dim); min-width: 42px; text-align: center; }
#view-wrap { flex: 1; display: flex; position: relative; overflow: hidden; }
#view-container { flex: 1; position: relative; overflow: hidden; background: var(--bg); }
/* Visibility is owned by the pane wrapper now — see `.pane` below. The old
rules here predated panes and still keyed off `.active` on the webview
itself, which nothing sets any more. */
/* ------------------------------------------------------------ todo panel */
#todo-panel {
width: 280px; flex-shrink: 0; display: flex; flex-direction: column;
background: var(--bg-panel); border-left: 1px solid var(--border);
}
#todo-panel[hidden] { display: none; }
.panel-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; border-bottom: 1px solid var(--border); }
.panel-head h4 { font-size: 13px; font-weight: 600; }
#todo-form { padding: 12px 14px; }
#todo-input {
width: 100%; height: 32px; padding: 0 10px; font-size: 13px;
background: var(--bg-sunken); border: 1px solid var(--border);
border-radius: 6px; color: var(--text); outline: none;
}
#todo-input:focus { border-color: var(--accent); }
#todo-list { list-style: none; overflow-y: auto; padding: 0 14px 14px; display: flex; flex-direction: column; gap: 6px; }
#todo-list li {
display: flex; align-items: flex-start; gap: 8px; padding: 8px 10px;
background: var(--bg-sunken); border: 1px solid var(--border);
border-radius: 8px; font-size: 12.5px; line-height: 1.35;
}
#todo-list li.done span { text-decoration: line-through; color: var(--text-dim); }
#todo-list li span { flex: 1; word-break: break-word; }
#todo-list button { background: none; border: none; color: var(--text-dim); cursor: pointer; font-size: 13px; }
#todo-list button:hover { color: var(--danger); }
#todo-list input[type="checkbox"] { margin-top: 2px; accent-color: var(--accent); }
/* ---------------------------------------------------------------- modals */
.modal-overlay {
position: absolute; inset: 0; background: rgba(0,0,0,.6);
backdrop-filter: blur(6px);
display: flex; align-items: center; justify-content: center; z-index: 200;
opacity: 0; pointer-events: none; transition: opacity .2s ease;
}
.modal-overlay.active { opacity: 1; pointer-events: auto; }
.modal-card {
width: 540px; max-height: 86vh; overflow-y: auto;
background: var(--bg-panel); border: 1px solid var(--border);
border-radius: var(--radius-lg); padding: 22px;
box-shadow: var(--shadow); transform: translateY(16px); transition: transform .2s ease;
}
.modal-overlay.active .modal-card { transform: translateY(0); }
.modal-wide { width: 720px; }
.modal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.modal-header h3 { font-size: 17px; font-weight: 600; }
.search-input, .text-input, .num-input {
background: var(--bg-sunken); border: 1px solid var(--border);
border-radius: 8px; padding: 9px 12px; color: var(--text); font-size: 13px; outline: none;
}
.search-input { width: 100%; margin-bottom: 12px; }
.search-input:focus, .text-input:focus, .num-input:focus { border-color: var(--accent); }
.num-input { width: 78px; }
.text-input { width: 190px; }
.category-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.category-tabs button {
padding: 5px 11px; border-radius: 999px; font-size: 11.5px;
background: var(--bg-sunken); border: 1px solid var(--border);
color: var(--text-muted); cursor: pointer;
}
.category-tabs button.active { background: var(--accent-gradient); color: #fff; border-color: transparent; }
.preset-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 16px; }
.preset-item {
display: flex; flex-direction: column; align-items: center; gap: 8px;
padding: 12px 6px; background: var(--bg-card); border: 1px solid var(--border);
border-radius: var(--radius-md); cursor: pointer; transition: all .18s ease;
font-size: 11.5px; color: var(--text-muted); text-align: center;
}
.preset-item:hover { color: var(--text); border-color: var(--accent); transform: translateY(-2px); }
.preset-item svg, .preset-item img { width: 28px; height: 28px; }
.preset-item .avatar { width: 28px; height: 28px; border-radius: 7px; font-size: 12px; }
.preset-item span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.custom-block { border-top: 1px solid var(--border); padding-top: 14px; }
.custom-block summary { cursor: pointer; font-size: 13px; color: var(--text-muted); margin-bottom: 12px; }
.custom-block summary:hover { color: var(--text); }
.form-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.form-group label { font-size: 12px; color: var(--text-muted); }
.form-group input, .form-group textarea {
background: var(--bg-sunken); border: 1px solid var(--border);
border-radius: 8px; padding: 10px 12px; color: var(--text); font-size: 13px; outline: none;
}
.form-group textarea { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; resize: vertical; }
.form-group input:focus, .form-group textarea:focus { border-color: var(--accent); }
.warn { font-size: 11px; color: #f59e0b; line-height: 1.4; }
.hint { font-size: 12px; color: var(--text-dim); line-height: 1.5; margin-bottom: 14px; }
.btn-primary {
width: 100%; padding: 11px; background: var(--accent-gradient);
border: none; border-radius: 8px; color: #fff; font-weight: 600; font-size: 13.5px;
cursor: pointer; transition: opacity .2s ease;
}
.btn-primary:hover { opacity: .92; }
.btn-compact { width: auto; padding: 9px 16px; }
.btn-secondary {
flex: 1; padding: 10px; background: var(--bg-sunken); color: var(--text);
border: 1px solid var(--border); border-radius: 8px; font-size: 13px; cursor: pointer;
}
.btn-secondary:hover { border-color: var(--accent); }
.btn-delete-row {
background: rgba(239,68,68,.12); color: var(--danger);
border: 1px solid rgba(239,68,68,.3); padding: 7px 13px;
border-radius: 7px; font-size: 12px; cursor: pointer; transition: all .15s ease;
}
.btn-delete-row:hover { background: var(--danger); color: #fff; }
.button-row { display: flex; gap: 10px; margin-bottom: 12px; }
.inline-form { display: flex; gap: 8px; }
.inline-form input {
flex: 1; background: var(--bg-sunken); border: 1px solid var(--border);
border-radius: 8px; padding: 9px 12px; color: var(--text); font-size: 13px; outline: none;
}
/* ------------------------------------------------------------------ tabs */
.tab-strip { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin-bottom: 16px; }
.tab-btn {
padding: 8px 14px; background: none; border: none; border-bottom: 2px solid transparent;
color: var(--text-muted); font-size: 13px; cursor: pointer;
}
.tab-btn.active { color: var(--text); border-bottom-color: var(--accent); }
.tab-panel { display: none; }
.tab-panel.active { display: block; }
.setting-row {
display: flex; align-items: center; justify-content: space-between; gap: 16px;
padding: 11px 0; border-bottom: 1px solid var(--border);
}
.setting-row:last-child { border-bottom: none; }
.setting-row > div:first-child { display: flex; flex-direction: column; gap: 2px; }
.setting-row strong { font-size: 13px; font-weight: 600; }
.setting-row span { font-size: 11.5px; color: var(--text-dim); }
.setting-row select {
background: var(--bg-sunken); border: 1px solid var(--border); border-radius: 7px;
padding: 7px 10px; color: var(--text); font-size: 12.5px; outline: none;
}
.switch { position: relative; width: 40px; height: 22px; flex-shrink: 0; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch span {
position: absolute; inset: 0; background: var(--bg-hover);
border: 1px solid var(--border); border-radius: 999px; cursor: pointer; transition: .2s;
}
.switch span::before {
content: ''; position: absolute; width: 16px; height: 16px; left: 2px; top: 2px;
background: var(--text-muted); border-radius: 50%; transition: .2s;
}
.switch input:checked + span { background: var(--accent); border-color: transparent; }
.switch input:checked + span::before { transform: translateX(18px); background: #fff; }
.manage-app-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.manage-app-row {
display: flex; align-items: center; justify-content: space-between; gap: 10px;
padding: 9px 12px; background: var(--bg-sunken);
border: 1px solid var(--border); border-radius: 8px;
}
.manage-app-info { display: flex; align-items: center; gap: 11px; min-width: 0; }
.manage-app-info img, .manage-app-info svg { width: 24px; height: 24px; object-fit: contain; flex-shrink: 0; }
.manage-app-info .avatar { width: 24px; height: 24px; border-radius: 6px; font-size: 10px; flex-shrink: 0; }
.manage-app-details { display: flex; flex-direction: column; min-width: 0; }
.manage-app-title { font-size: 13px; font-weight: 600; }
.manage-app-url { font-size: 11px; color: var(--text-dim); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 320px; }
.row-actions { display: flex; gap: 6px; flex-shrink: 0; }
.task-table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.task-table th, .task-table td { text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--border); }
.task-table th { color: var(--text-dim); font-weight: 600; font-size: 11px; text-transform: uppercase; letter-spacing: .04em; }
.screen-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; max-height: 60vh; overflow-y: auto; }
.screen-item {
border: 1px solid var(--border); border-radius: 10px; padding: 8px;
background: var(--bg-sunken); cursor: pointer; transition: all .15s ease;
}
.screen-item:hover { border-color: var(--accent); }
.screen-item img { width: 100%; border-radius: 6px; display: block; background: #000; }
.screen-item span {
display: block; margin-top: 7px; font-size: 11px; color: var(--text-muted);
overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.popover {
position: absolute; z-index: 300; min-width: 230px; padding: 6px;
background: var(--bg-panel); border: 1px solid var(--border);
border-radius: 10px; box-shadow: var(--shadow);
}
.popover[hidden] { display: none; }
.popover-row { display: flex; align-items: center; gap: 2px; }
.popover-row > button:first-child {
flex: 1; text-align: left; padding: 8px 10px;
background: none; border: none; border-radius: 6px;
color: var(--text); font-size: 12.5px; cursor: pointer;
overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.popover-row:hover > button:first-child { background: var(--bg-hover); }
.popover-row > button.active { color: var(--accent); font-weight: 600; }
.popover-count {
font-size: 10px; color: var(--text-dim); padding: 1px 6px;
background: var(--bg-sunken); border-radius: 999px; flex-shrink: 0;
}
.popover-del {
width: 22px; height: 22px; flex-shrink: 0; border: none; background: none;
color: var(--text-dim); font-size: 11px; border-radius: 5px; cursor: pointer;
opacity: 0; transition: opacity .15s ease;
}
.popover-row:hover .popover-del { opacity: 1; }
.popover-del:hover { background: rgba(239,68,68,.15); color: var(--danger); }
.popover-sep { height: 1px; background: var(--border); margin: 6px 4px; }
.popover-form { display: flex; gap: 5px; padding: 0 4px 4px; }
.popover-form input {
flex: 1; min-width: 0; height: 30px; padding: 0 9px; font-size: 12.5px;
background: var(--bg-sunken); border: 1px solid var(--border);
border-radius: 6px; color: var(--text); outline: none;
}
.popover-form input:focus { border-color: var(--accent); }
.popover-form button {
width: 30px; height: 30px; flex-shrink: 0; border: none; border-radius: 6px;
background: var(--accent-gradient); color: #fff; font-size: 16px;
line-height: 1; cursor: pointer;
}
.popover-form button:hover { opacity: .9; }
.popover-manage {
display: block; width: 100%; text-align: left; padding: 7px 10px;
background: none; border: none; border-radius: 6px;
color: var(--text-muted); font-size: 11.5px; cursor: pointer;
}
.popover-manage:hover { background: var(--bg-hover); color: var(--text); }
/* ------------------------------------------------- groups (chips + empty) */
.sidebar-empty {
display: flex; flex-direction: column; align-items: center; gap: 8px;
padding: 18px 4px; text-align: center;
}
.sidebar-empty span { font-size: 10.5px; color: var(--text-dim); line-height: 1.3; }
.sidebar-empty button {
padding: 5px 11px; border-radius: 999px; font-size: 11px; cursor: pointer;
background: var(--accent-gradient); color: #fff; border: none;
}
.sidebar-empty button:hover { opacity: .9; }
.setting-block { padding: 12px 0; border-bottom: 1px solid var(--border); }
.setting-block > strong { display: block; font-size: 13px; font-weight: 600; }
.block-hint { display: block; font-size: 11.5px; color: var(--text-dim); margin-top: 2px; }
.chip-picker { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 9px; }
.chip {
padding: 5px 11px; border-radius: 999px; font-size: 11.5px; cursor: pointer;
background: var(--bg-sunken); border: 1px solid var(--border); color: var(--text-muted);
transition: all .15s ease;
}
.chip:hover { color: var(--text); border-color: var(--accent); }
.chip.on { background: var(--accent-gradient); color: #fff; border-color: transparent; }
.inline-rename {
background: transparent; border: 1px solid transparent; border-radius: 5px;
padding: 2px 5px; margin: -2px -5px 1px; color: var(--text);
font-size: 13px; font-weight: 600; font-family: inherit; outline: none;
width: 100%; max-width: 240px;
}
.inline-rename:hover { border-color: var(--border); }
.inline-rename:focus { border-color: var(--accent); background: var(--bg-sunken); }
.empty-state { padding: 24px; text-align: center; color: var(--text-dim); font-size: 13px; }
/* --------------------------------------------------------- update banner */
#update-banner {
position: absolute; top: 0; left: 0; right: 0; z-index: 400;
display: flex; align-items: center; gap: 12px;
padding: 9px 14px 9px 18px;
background: var(--accent-gradient); color: #fff;
font-size: 12.5px; box-shadow: 0 2px 12px rgba(0,0,0,.35);
-webkit-app-region: no-drag;
}
#update-banner[hidden] { display: none; }
#update-banner #update-text { flex: 1; }
#update-banner .nav-btn { color: rgba(255,255,255,.85); }
#update-banner .nav-btn:hover { background: rgba(255,255,255,.18); color: #fff; }
.btn-compact-primary {
padding: 5px 14px; border-radius: 999px; border: none; cursor: pointer;
background: rgba(255,255,255,.95); color: var(--accent);
font-size: 12px; font-weight: 600; font-family: inherit;
}
.btn-compact-primary:hover { background: #fff; }
#update-progress {
width: 130px; height: 5px; border-radius: 3px;
background: rgba(255,255,255,.28); overflow: hidden; flex-shrink: 0;
}
#update-progress[hidden] { display: none; }
#update-bar { width: 0; height: 100%; background: #fff; transition: width .25s ease; }
/* ------------------------------------------------ sidebar: drag + add tile */
/* Drag-to-reorder existed but had no affordance, so it read as dead. */
.app-tab-wrapper { cursor: grab; }
.app-tab-wrapper:active { cursor: grabbing; }
.app-tab-wrapper.dragging { cursor: grabbing; }
.app-tab { cursor: pointer; }
/* A clearer drop target than a 2px line. */
.app-tab-wrapper.drag-over::before {
content: ''; position: absolute; left: -4px; right: -4px; top: -8px;
height: 3px; background: var(--accent); border-radius: 3px;
box-shadow: 0 0 8px var(--accent);
}
.app-add-tile {
width: 52px; height: 52px; border-radius: var(--radius-md);
background: transparent; border: 1px dashed var(--border);
display: flex; align-items: center; justify-content: center;
cursor: pointer; color: var(--text-dim); transition: all .18s ease;
}
.app-add-tile:hover {
background: var(--accent-gradient); color: #fff;
border-style: solid; border-color: transparent;
transform: translateY(-2px);
}
.modal-sub { display: block; font-size: 11.5px; color: var(--text-dim); margin-top: 2px; }
/* ------------------------------------------------- toolbar feedback state */
/* A button that cannot do anything should not look like it can. Back and
forward with no history used to read as broken. */
.nav-btn:disabled {
opacity: 0.3;
cursor: default;
pointer-events: none;
}
/* Reloading a page that looks identical gives no signal, so spin the icon for
as long as the load actually takes. */
#btn-reload.loading svg {
animation: pb-spin 0.7s linear infinite;
color: var(--accent);
}
@keyframes pb-spin {
to { transform: rotate(360deg); }
}
/* ------------------------------------------------------- collapsible sidebar */
/* Cmd/Ctrl+B, same as an editor. Width animates so the workspace grows into
the space rather than snapping. */
#sidebar {
transition: width .16s ease, opacity .16s ease;
overflow: hidden;
}
body.sidebar-hidden #sidebar {
width: 0;
opacity: 0;
border-right-color: transparent;
pointer-events: none;
}
/* The traffic lights need their drag strip even with the sidebar collapsed. */
body.sidebar-hidden.platform-darwin #topbar { padding-left: 84px; }
/* While reordering, the tab follows the cursor and nothing else reacts. */
.app-tab-wrapper.dragging { opacity: .55; transform: scale(.94); }
.app-tab-wrapper.dragging .app-tooltip { display: none; }
body.reordering { cursor: grabbing; }
body.reordering .app-tab,
body.reordering .app-tab-wrapper { cursor: grabbing; }
body.reordering webview { pointer-events: none; }
/* Reorder handle in the settings service list. */
.row-grip {
cursor: grab; color: var(--text-dim); font-size: 15px; line-height: 1;
padding: 2px 4px; margin-right: 2px; user-select: none; flex-shrink: 0;
}
.row-grip:hover { color: var(--text); }
.manage-app-row.dragging { opacity: .5; background: var(--bg-hover); }
/* ------------------------------------------------------------- split view */
/* Each webview lives in a pane so grid mode can give it a header. In single
mode the pane is invisible chrome filling the workspace. */
.pane {
position: absolute; inset: 0;
display: flex; flex-direction: column;
visibility: hidden; min-width: 0; min-height: 0;
}
.pane.active { visibility: visible; }
.pane webview {
/* The original rule pinned every webview to position:absolute inset:0, which
inside a pane means it covers its own header — visible only once the page
paints, so the header appeared to exist and then vanish. */
position: relative; inset: auto;
flex: 1; min-height: 0; width: 100%; height: auto;
border: none;
/* Deliberately no `visibility` here. It inherits, so declaring `visible` let
every webview un-hide itself inside its hidden pane: all services rendered
at once, stacked, and you saw whichever painted last rather than the one
you clicked. It also meant Chromium never throttled the background ones. */
}
.pane-head { display: none; }
/* Grid mode: tiles sized like a video call, squarish and evenly divided. */
#view-container.split {
display: grid;
grid-template-columns: repeat(var(--grid-cols, 2), minmax(0, 1fr));
grid-auto-rows: minmax(0, 1fr);
gap: 8px; padding: 8px;
}
#view-container.split .pane {
position: relative; inset: auto;
border: 1px solid var(--border); border-radius: var(--radius-md);
overflow: hidden; background: var(--bg-panel);
transition: box-shadow .15s ease, border-color .15s ease;
}
#view-container.split .pane:not(.active) { display: none; }
#view-container.split .pane:hover { border-color: var(--accent); }
#view-container.split .pane-head {
display: flex; align-items: center; gap: 6px;
padding: 5px 6px 5px 10px; flex-shrink: 0;
background: var(--bg-sidebar); border-bottom: 1px solid var(--border);
font-size: 11.5px; color: var(--text-muted); cursor: default;
}
.pane-name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pane-btn {
width: 22px; height: 22px; flex-shrink: 0;
background: none; border: none; border-radius: 5px;
color: var(--text-dim); font-size: 12px; cursor: pointer; line-height: 1;
}
.pane-btn:hover { background: var(--bg-hover); color: var(--text); }
/* Spotlight: one pane takes the room, the rest become a strip underneath —
the same shape a call takes when someone shares their screen.
Two explicit rows: the focused pane spans every column of the first, and the
thumbnails auto-place across the second. A flex column was wrong here — the
thumbnails stacked and squeezed the focused pane down to a couple of pixels. */
#view-container.split.has-focus {
display: grid;
grid-template-columns: repeat(var(--thumb-count, 1), minmax(0, 1fr));
grid-template-rows: minmax(0, 1fr) 132px;
}
#view-container.split.has-focus .pane.focused {
grid-row: 1; grid-column: 1 / -1;
border-color: var(--accent); box-shadow: var(--glow);
}
#view-container.split.has-focus .pane.thumb { grid-row: 2; }
#view-container.split.has-focus .pane.thumb .pane-name { font-size: 11px; }
/* Which services are currently in the grid. */
.app-tab.in-split { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.app-tab.in-split::after {
content: ''; position: absolute; bottom: -3px; left: 50%; transform: translateX(-50%);
width: 14px; height: 3px; border-radius: 2px; background: var(--accent);
}
/* "+" control. Floats over the grid rather than taking a cell — as a cell it
left a large empty square next to two panes. */
#view-container .pane-add,
.pane-add {
display: none; position: absolute; right: 14px; bottom: 14px; z-index: 20;
align-items: center; gap: 7px; padding: 8px 14px;
background: var(--bg-panel); border: 1px solid var(--border);
border-radius: 999px; color: var(--text-muted);
cursor: pointer; font-family: inherit; font-size: 12px;
box-shadow: var(--shadow); transition: all .18s ease;
}
.pane-add svg { width: 15px; height: 15px; }
#view-container.split .pane-add.active {
display: flex; position: absolute;
right: 14px; bottom: 14px; left: auto; top: auto;
width: auto; height: auto; flex: 0 0 auto;
border-style: solid; background: var(--bg-panel);
}
#view-container.split .pane-add:hover { border-color: var(--accent); color: var(--accent); }
#view-container.split.has-focus .pane-add { display: none; }
/* Dragging a sidebar icon over the grid. */
#view-container.drop-target { outline: 2px dashed var(--accent); outline-offset: -6px; }
#view-container.drop-target::after {
content: 'Drop to add a pane';
position: absolute; left: 50%; top: 16px; transform: translateX(-50%);
padding: 6px 14px; border-radius: 999px; z-index: 30;
background: var(--accent); color: #fff; font-size: 12px; font-weight: 600;
pointer-events: none;
}
.popover-item {
display: flex; align-items: center; gap: 9px; width: 100%;
padding: 7px 10px; background: none; border: none; border-radius: 6px;
color: var(--text); font-size: 12.5px; font-family: inherit;
cursor: pointer; text-align: left;
}
.popover-item:hover { background: var(--bg-hover); }
.popover-icon, .popover-item .avatar {
width: 18px; height: 18px; flex-shrink: 0; border-radius: 4px; font-size: 8px;
}
#split-menu { max-height: 320px; overflow-y: auto; }
/* ---------------------------------------------------------- shortcuts tab */
.shortcut-heading {
font-size: 11px; font-weight: 600; text-transform: uppercase;
letter-spacing: .05em; color: var(--text-dim);
margin: 18px 0 6px; padding-bottom: 5px; border-bottom: 1px solid var(--border);
}
.shortcut-heading:first-child { margin-top: 0; }
/* Three columns: what it does, the macOS keys, the Windows/Linux keys. */
.shortcut-legend,
.shortcut-row {
display: grid;
grid-template-columns: minmax(0, 1fr) 118px 148px;
align-items: center; gap: 12px; padding: 8px 0;
}
.shortcut-legend {
padding: 0 0 4px; font-size: 10px; text-transform: uppercase;
letter-spacing: .05em; color: var(--text-dim);
}
.shortcut-legend .current { color: var(--accent); font-weight: 600; }
/* A gesture spans both key columns. */
.shortcut-row.gesture-row { grid-template-columns: minmax(0, 1fr) 278px; }
.shortcut-label { font-size: 13px; color: var(--text); }
.shortcut-keys { display: flex; align-items: center; gap: 4px; flex-shrink: 0; }
.shortcut-keys:not(.current) { opacity: .5; }
.shortcut-none { font-size: 12px; color: var(--text-dim); }
.shortcut-keys kbd {
display: inline-flex; align-items: center; justify-content: center;
min-width: 24px; height: 24px; padding: 0 7px;
background: var(--bg-sunken); border: 1px solid var(--border);
border-bottom-width: 2px; border-radius: 6px;
font-family: inherit; font-size: 12px; color: var(--text);
}
.shortcut-gesture {
font-size: 11.5px; color: var(--text-muted); text-align: right;
max-width: 260px; line-height: 1.35;
}
.btn-mini {
padding: 3px 10px; border-radius: 6px; cursor: pointer;
background: var(--bg-sunken); border: 1px solid var(--border);
color: var(--text-muted); font-size: 11px; font-family: inherit;
}
.btn-mini:hover { border-color: var(--accent); color: var(--accent); }
.task-table td:last-child { text-align: right; width: 1%; white-space: nowrap; }
/* ------------------------------------------- embedded sign-in explanation */
/* Google's rejection page blames your browser and offers nothing. This sits
over it with what actually happened. */
#signin-block {
position: absolute; inset: 48px 0 0 0; z-index: 60;
display: flex; align-items: center; justify-content: center;
padding: 24px; background: var(--bg);
}
#signin-block[hidden] { display: none; }
.block-card {
max-width: 460px; padding: 28px;
background: var(--bg-panel); border: 1px solid var(--border);
border-radius: var(--radius-lg); box-shadow: var(--shadow);
}
.block-card h3 { font-size: 17px; margin-bottom: 12px; }
.block-card p { font-size: 13px; line-height: 1.55; color: var(--text-muted); margin-bottom: 12px; }
.block-card .block-alt { color: var(--text); }
.block-card .button-row { margin: 18px 0 0; }
.block-card .btn-primary { width: auto; padding: 10px 18px; }
/* Catalog entries that will load but never let you sign in. */
.preset-item.needs-browser { position: relative; }
.preset-warn {
position: absolute; top: 5px; right: 5px;
padding: 1px 6px; border-radius: 999px;
background: rgba(245, 158, 11, .15); border: 1px solid rgba(245, 158, 11, .35);
color: #f59e0b; font-size: 9px; font-weight: 600; letter-spacing: .02em;
}