Repository navigation
Expand file tree
/
Copy pathstyles.css
More file actions
2064 lines (1982 loc) · 156 KB
/
Copy pathstyles.css
File metadata and controls
2064 lines (1982 loc) · 156 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
:root {
--bg: #f6f7f9;
--surface: #ffffff;
--surface-2: #eef0f4;
--text: #15171c;
--muted: #6b7180;
--line: #e2e5eb;
--accent: #5b4df0;
--accent-soft: #ebe8ff;
--due: #d63b3b;
--flag: #e8850c;
--ok: #1f9d55;
--radius: 14px;
--tabbar-h: 64px;
color-scheme: light;
}
@media (prefers-color-scheme: dark) {
:root {
--bg: #0d0f13;
--surface: #16191f;
--surface-2: #1f232b;
--text: #eef0f4;
--muted: #8b92a1;
--line: #262a33;
--accent: #7c6cff;
--accent-soft: #262245;
--due: #ff5c5c;
--flag: #ff9f1c;
--ok: #3ccf7a;
color-scheme: dark;
}
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
background: var(--bg);
color: var(--text);
font: 16px/1.4 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
-webkit-tap-highlight-color: transparent;
}
[hidden] { display: none !important; }
button, input, select, textarea { font: inherit; color: inherit; }
/* Auth */
.auth { min-height: 100%; display: grid; place-items: center; padding: 24px 16px; }
.auth-card {
width: 100%; max-width: 360px; display: grid; gap: 12px; text-align: center;
background: var(--surface); padding: 28px 20px; border-radius: 20px; border: 1px solid var(--line);
}
.auth-card img { justify-self: center; border-radius: 14px; }
.auth-card h1 { margin: 0 0 8px; font-size: 22px; }
.auth-msg { margin: 0; min-height: 1.4em; color: var(--muted); font-size: 14px; }
input[type=text], input[type=email], input[type=tel], input[type=url], input[type=password], input[type=date], input[type=number], input:not([type]), select, textarea {
width: 100%; padding: 12px 14px; border-radius: 10px;
border: 1px solid var(--line); background: var(--surface-2); outline: none;
}
input:focus, select:focus, textarea:focus { border-color: var(--accent); }
textarea { min-height: 80px; resize: vertical; }
.btn {
padding: 12px 16px; border-radius: 10px; border: 1px solid var(--line);
background: var(--surface-2); cursor: pointer; font-weight: 600;
}
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.danger { color: var(--due); }
.btn.link { background: none; border: none; color: var(--accent); font-weight: 500; }
.btn.small { padding: 6px 12px; font-size: 14px; }
/* A button answers the pointer: a hint of accent on hover, a press when clicked, and a disabled one says so. */
.btn { transition: background .12s, border-color .12s, transform .08s, opacity .12s; }
.btn:not(:disabled):hover { border-color: color-mix(in srgb, var(--accent) 55%, var(--line)); }
.btn:not(:disabled):active { transform: translateY(1px) scale(.98); }
.btn:disabled { opacity: .5; cursor: default; }
/* Layout */
.app { min-height: 100%; }
.view {
max-width: 760px; margin: 0 auto;
padding: calc(env(safe-area-inset-top) + 20px) 16px calc(var(--tabbar-h) + env(safe-area-inset-bottom) + 96px);
}
.view-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 4px; }
/* The title sits on its baseline; everything beside it (the search box, buttons, menus) is centred on the row, so they line up with each other. */
.view-head > :not(h1) { align-self: center; }
.view-head h1 { margin: 0; font-size: 34px; letter-spacing: -0.5px; }
.view-head h1.inbox { color: var(--accent); }
.view-head h1.today { color: var(--due); }
.view-head h1.tags { color: #a855f7; }
.view-sub { color: var(--muted); margin: 0 0 16px; font-size: 15px; }
.back { display: inline-block; margin-bottom: 8px; color: var(--accent); text-decoration: none; }
.tabs {
position: fixed; left: 0; right: 0; bottom: 0; z-index: 10;
display: flex; justify-content: space-around; align-items: stretch;
height: calc(var(--tabbar-h) + env(safe-area-inset-bottom));
padding-bottom: env(safe-area-inset-bottom);
background: color-mix(in srgb, var(--surface) 88%, transparent);
backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
border-top: 1px solid var(--line);
}
.tabs a {
position: relative; flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
gap: 2px; color: var(--muted); text-decoration: none; font-size: 12px; font-weight: 600;
}
.tabs a.active { color: var(--accent); }
.tab-icon { font-size: 22px; line-height: 1; }
.badge {
position: absolute; top: 6px; left: calc(50% + 6px);
min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px;
background: var(--accent); color: #fff; font-size: 11px; line-height: 18px; text-align: center;
}
.badge.due { background: var(--due); }
.badge:empty { display: none; }
.signout { display: none; }
.fab {
position: fixed; z-index: 11; right: 20px;
bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom) + 16px);
width: 56px; height: 56px; border-radius: 50%; border: none;
background: var(--accent); color: #fff; font-size: 30px; line-height: 1;
box-shadow: 0 6px 20px rgba(0,0,0,.25); cursor: pointer;
}
@media (min-width: 900px) {
.tabs {
top: 0; right: auto; width: 220px; height: auto; flex-direction: column; justify-content: flex-start;
padding: 24px 12px; gap: 4px; border-top: none; border-right: 1px solid var(--line);
}
.tabs a { flex: none; flex-direction: row; justify-content: flex-start; gap: 10px; padding: 10px 12px; border-radius: 10px; font-size: 15px; }
.tabs a.active { background: var(--accent-soft); }
.tab-icon { font-size: 18px; }
.badge { position: static; margin-left: auto; }
.signout { display: block; margin-top: auto; background: none; border: none; color: var(--muted); text-align: left; padding: 10px 12px; cursor: pointer; }
.view { margin-left: 220px; margin-right: 0; padding: 32px 40px 120px; max-width: 820px; }
.fab { bottom: 32px; right: 32px; }
}
/* Capture bar */
.capture { display: flex; gap: 8px; margin-bottom: 12px; }
.capture input { flex: 1; }
/* Lists */
.section-title { margin: 22px 0 6px; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .6px; color: var(--muted); }
.list { list-style: none; margin: 0; padding: 0; }
.row {
display: flex; gap: 12px; align-items: flex-start; padding: 12px 4px;
border-bottom: 1px solid var(--line); cursor: pointer;
}
.row:active { background: var(--surface-2); }
.check {
flex: none; width: 26px; height: 26px; margin-top: 1px; border-radius: 50%;
border: 2px solid var(--muted); background: none; cursor: pointer; padding: 0;
display: grid; place-items: center; color: transparent; font-size: 14px;
}
.check.flagged { border-color: var(--flag); }
.check.overdue { border-color: var(--due); }
.check.done { background: var(--ok); border-color: var(--ok); color: #fff; }
.check.dropped { border-style: dashed; color: var(--muted); }
.row-main { flex: 1; min-width: 0; }
.row-title { overflow-wrap: anywhere; }
.row.completed .row-title { color: var(--muted); text-decoration: line-through; }
.row-meta { display: flex; flex-wrap: wrap; gap: 6px 10px; margin-top: 4px; font-size: 13px; color: var(--muted); align-items: center; }
.chip { padding: 2px 9px; border-radius: 999px; background: var(--surface-2); color: var(--muted); font-size: 13px; }
.meta-due.overdue { color: var(--due); font-weight: 600; }
.meta-flag { color: var(--flag); }
.row-sub { padding-left: 38px; }
.empty { color: var(--muted); padding: 32px 0; text-align: center; }
.group-row { display: flex; align-items: center; gap: 12px; padding: 13px 4px; border-bottom: 1px solid var(--line); text-decoration: none; color: inherit; }
.group-row .count { margin-left: auto; color: var(--muted); font-size: 14px; }
.group-row .count.due { color: #fff; background: var(--due); padding: 0 7px; border-radius: 6px; }
.group-row.muted { color: var(--muted); }
.folder-title { display: flex; align-items: center; justify-content: space-between; margin: 22px 0 4px; font-weight: 700; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); flex: none; }
.tag-child { padding-left: 26px; }
.folder-actions { display: flex; gap: 4px; }
/* A folder's name opens the folder's own page (#projects/<id>, js/views/projects.js). */
.folder-link { color: inherit; text-decoration: none; border-radius: 6px; padding: 2px 6px; margin-left: -6px; }
.folder-link:hover, .folder-link:focus-visible { background: var(--accent-soft); color: var(--accent); outline: none; }
.folder-go { margin-left: 6px; color: var(--muted); font-weight: 400; }
.folder-link:hover .folder-go, .folder-link:focus-visible .folder-go { color: inherit; }
.folder-n { margin-left: 8px; color: var(--muted); font-weight: 400; font-size: 14px; }
.crumbs { display: flex; align-items: center; flex-wrap: wrap; gap: 0 8px; margin-bottom: 8px; }
.crumbs .back { margin-bottom: 0; }
.crumb-sep { color: var(--muted); }
.icon-btn {
width: 32px; height: 32px; border-radius: 8px; border: 1px solid transparent;
background: none; color: var(--muted); cursor: pointer; font-size: 16px; line-height: 1;
}
.icon-btn:hover { background: var(--surface-2); color: var(--text); }
.view-sub a { color: var(--accent); }
/* Sheet (task editor, quick entry) */
.sheet {
width: 100%; max-width: 560px; max-height: 92vh; margin: auto auto 0; padding: 0;
border: none; border-radius: 20px 20px 0 0; background: var(--surface); color: var(--text);
}
.sheet::backdrop { background: rgba(0,0,0,.45); }
@media (min-width: 900px) { .sheet { margin: auto; border-radius: 20px; } }
.sheet form { display: grid; gap: 12px; padding: 20px 16px calc(20px + env(safe-area-inset-bottom)); }
.sheet h2 { margin: 0; font-size: 18px; }
.sheet label { display: grid; gap: 6px; font-size: 13px; font-weight: 600; color: var(--muted); }
.sheet .grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.sheet .actions { display: flex; gap: 8px; justify-content: space-between; flex-wrap: wrap; }
.sheet .actions .right { display: flex; gap: 8px; margin-left: auto; }
/* Full-screen editor when there is a lot to read (long notes). Notes take the leftover height. */
.sheet.full {
width: 100vw; max-width: 100vw; height: 100vh; height: 100dvh; max-height: none;
margin: 0; border-radius: 0;
}
.sheet.full[open] { display: flex; }
.sheet.full form {
flex: 1; display: flex; flex-direction: column; min-height: 0;
width: 100%; max-width: 860px; margin: 0 auto;
padding-top: calc(env(safe-area-inset-top) + 20px);
}
.sheet.full .notes-field { flex: 1; display: flex; flex-direction: column; min-height: 0; }
.sheet.full .notes-field textarea { flex: 1; min-height: 200px; resize: none; line-height: 1.5; }
.tag-picker { display: flex; flex-wrap: wrap; gap: 6px; }
.tag-toggle { padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface-2); cursor: pointer; font-size: 14px; }
.tag-toggle.on { background: var(--accent); border-color: var(--accent); color: #fff; }
.sheet .flag-toggle { display: flex; align-items: center; gap: 8px; font-weight: 600; color: var(--text); }
.sheet .flag-toggle input { width: 20px; height: 20px; accent-color: var(--flag); }
.toast {
position: fixed; left: 50%; transform: translateX(-50%); z-index: 20;
bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom) + 84px);
background: var(--text); color: var(--bg); padding: 10px 16px; border-radius: 10px; font-size: 14px;
display: flex; gap: 12px; align-items: center; max-width: calc(100% - 32px);
}
.toast button { background: none; border: none; color: var(--accent); font-weight: 700; cursor: pointer; }
.folder-title.muted { color: var(--muted); }
/* Done (completed review) */
.view-head h1.done { color: var(--ok); }
.done-filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 12px; }
.done-filters select, .done-filters input { width: auto; padding: 8px 12px; }
.tally { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.tally .chip { text-decoration: none; }
.completed-row .check { cursor: default; }
.done-note { margin-top: 6px; padding: 6px 10px; border-left: 3px solid var(--ok); background: var(--surface-2); border-radius: 0 8px 8px 0; font-size: 14px; white-space: pre-wrap; overflow-wrap: anywhere; }
.done-box { display: grid; gap: 8px; padding: 12px; border-radius: 10px; background: color-mix(in srgb, var(--ok) 12%, transparent); }
.done-box b { color: var(--ok); font-size: 14px; }
@media (max-width: 420px) { .tabs a { font-size: 11px; } .tab-icon { font-size: 20px; } }
/* Search */
.desktop-only { display: none !important; }
.search-fab {
position: absolute; z-index: 11; /* scrolls with the page, so it never covers buttons below */ top: calc(env(safe-area-inset-top) + 14px); right: 16px;
width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
background: var(--surface-2); border: 1px solid var(--line); text-decoration: none; font-size: 18px;
}
input[type=search] { width: 100%; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface-2); outline: none; font-size: 17px; }
input[type=search]:focus { border-color: var(--accent); }
@media (min-width: 900px) {
.desktop-only { display: flex !important; }
.search-fab { display: none; }
}
@media (max-width: 899px) { .view-head { padding-right: 52px; } }
/* Date fields with one-tap buttons (defer / planned / due / estimate) */
.date-field { display: grid; gap: 6px; }
.sheet .date-field > label, .date-field > label { display: block; font-size: 13px; font-weight: 600; color: var(--muted); }
.date-field .hint { font-weight: 400; opacity: .75; margin-left: 6px; }
.date-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.date-row input { flex: 1 1 150px; min-width: 0; width: auto; }
.quick { display: inline-flex; gap: 4px; flex-wrap: wrap; }
.qbtn { padding: 8px 10px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface-2); color: var(--text); font-size: 13px; font-weight: 600; cursor: pointer; }
.qbtn:hover { border-color: var(--accent); }
.meta-planned { color: var(--accent); }
.meta-planned.past { color: var(--flag); }
/* Project types, availability, reorder */
.segmented { display: flex; border: 1px solid var(--line); border-radius: 10px; padding: 3px; gap: 3px; margin: 0; background: var(--surface-2); }
.field { display: grid; gap: 6px; }
.field-label { font-size: 13px; font-weight: 600; color: var(--muted); }
.sheet .segmented label { flex: 1; display: block; color: var(--text); }
.segmented input { position: absolute; opacity: 0; pointer-events: none; }
.segmented span { display: block; text-align: center; padding: 8px 6px; border-radius: 8px; font-size: 14px; font-weight: 600; cursor: pointer; }
.segmented input:checked + span { background: var(--accent); color: #fff; }
.segmented input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.row.blocked .row-title { color: var(--muted); }
.row.blocked .check { opacity: .5; }
.chip.next { background: var(--accent-soft); color: var(--accent); font-weight: 700; }
.project-props { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.reorder { display: flex; gap: 2px; margin-left: 4px; }
.group-main { display: flex; flex-direction: column; min-width: 0; }
.group-sub { font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kind-icon { color: var(--muted); font-size: 13px; }
.view-head { flex-wrap: wrap; }
.view-head > span { display: flex; gap: 6px; flex-wrap: wrap; }
/* Action groups */
.disclosure { flex: none; width: 28px; height: 28px; margin: -1px -8px 0 -6px; border: none; background: none; color: var(--text); font-size: 18px; cursor: pointer; padding: 0; border-radius: 6px; }
.disclosure:hover { background: var(--surface-2); }
.disclosure-spacer { flex: none; width: 14px; }
.row.group > .row-main .row-title { font-weight: 600; }
.chip.group-count { background: none; border: 1px solid var(--line); }
.row-sub { padding-left: calc(12px + var(--depth, 1) * 26px); }
/* Row signals: notes icon + tap-to-flag, estimates, project tags */
.row-signals { display: flex; align-items: center; gap: 2px; margin-left: auto; flex: none; }
.sig-note { font-size: 14px; opacity: .8; padding: 0 4px; }
.sig-link { font-size: 14px; padding: 0 5px; color: var(--link); text-decoration: none; border-radius: 6px; transition: background .12s; }
.sig-link:hover, .sig-link:focus-visible { background: var(--link-soft); outline: none; }
.flag-btn { width: 32px; height: 32px; border-radius: 8px; border: none; background: none; color: var(--muted); opacity: .45; font-size: 18px; cursor: pointer; line-height: 1; }
.flag-btn.on { opacity: 1; }
.flag-btn:hover { color: var(--muted); background: var(--surface-2); }
.flag-btn.on { color: var(--flag); }
.meta-estimate { color: var(--muted); }
.group-tags { display: flex; gap: 4px; flex-wrap: wrap; margin-top: 2px; }
.group-tags .chip { font-size: 11px; padding: 1px 7px; }
.hint { font-weight: 400; color: var(--muted); opacity: .8; font-size: 12px; }
a.chip { text-decoration: none; }
a.chip:hover { color: var(--text); }
/* View filter, Flagged, More */
.filter-bar { display: flex; gap: 8px; flex-wrap: wrap; margin: 4px 0 12px; }
.filter-bar label { display: inline-flex; align-items: center; gap: 4px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px; padding: 0 0 0 10px; }
.filter-bar select { border: none; background: transparent; padding: 7px 10px 7px 2px; width: auto; }
.filter-note { font-size: 13px; }
.view-head h1.flagged { color: var(--flag); }
.badge.flag { background: var(--flag); }
.section-title a { color: inherit; text-decoration: none; }
.mobile-only { display: none; }
@media (max-width: 899px) { .mobile-only { display: flex; } }
.more-tab { flex: 1; flex-direction: column; align-items: center; justify-content: center; gap: 2px; border: none; background: none; color: var(--muted); font-size: 12px; font-weight: 600; cursor: pointer; }
.more-tab.active { color: var(--accent); }
.more-links { display: grid; gap: 4px; }
.more-links a { display: flex; gap: 12px; align-items: center; padding: 14px 12px; border-radius: 10px; color: var(--text); text-decoration: none; font-size: 17px; background: var(--surface-2); }
.more-links a span { font-size: 20px; width: 28px; text-align: center; }
/* Forecast */
.fc-strip { display: grid; grid-template-columns: repeat(9, minmax(0, 1fr)); gap: 4px; margin: 6px 0 10px; }
.fc-day { display: grid; justify-items: center; gap: 1px; padding: 8px 2px 6px; border-radius: 10px; text-decoration: none; color: var(--muted); background: var(--surface-2); border: 1px solid transparent; }
.fc-day.on { border-color: var(--accent); color: var(--text); background: var(--accent-soft); }
.fc-label { font-size: 12px; font-weight: 700; }
.fc-sub { font-size: 12px; min-height: 1em; }
.fc-n { font-size: 15px; color: var(--text); min-height: 1.2em; }
.fc-day.late .fc-n, .fc-day.due .fc-n { color: var(--due); }
.fc-banner { display: block; margin: 0 0 8px; padding: 10px 12px; border-radius: 10px; background: color-mix(in srgb, var(--due) 12%, transparent); color: var(--text); text-decoration: none; font-size: 14px; }
.section-title .btn.small { margin-left: 8px; text-transform: none; letter-spacing: 0; font-size: 12px; padding: 4px 10px; }
@media (max-width: 480px) {
/* Keep 44px tap targets: the strip scrolls sideways inside itself instead of shrinking. */
.fc-strip { grid-template-columns: repeat(9, 46px); overflow-x: auto; scroll-snap-type: x proximity; padding-bottom: 4px; -webkit-overflow-scrolling: touch; }
.fc-day { scroll-snap-align: start; }
}
/* Review */
.review-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 4px; padding-right: 52px; }
.review-bar h1 { margin: 0; font-size: 34px; letter-spacing: -.5px; }
h1.review { color: #3b82f6; }
.review-count { color: var(--muted); font-weight: 600; }
.review-nav { display: flex; gap: 2px; }
.review-nav .icon-btn { font-size: 22px; }
.review-nav .icon-btn:disabled { opacity: .3; cursor: default; }
.review-bar .btn.primary { margin-left: auto; }
.review-title { margin: 6px 0 0; font-size: 24px; }
.review-title a { color: var(--text); text-decoration: none; }
.hints { list-style: none; margin: 12px 0; padding: 0; display: grid; gap: 6px; }
.hints li { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: space-between; padding: 10px 12px; border-radius: 10px; background: var(--surface-2); border-left: 4px solid var(--flag); font-size: 14px; }
.hints li.hint-bad { border-left-color: var(--due); }
.hint-fixes { display: flex; gap: 6px; flex-wrap: wrap; }
.hints-ok { color: var(--ok); font-size: 14px; margin: 12px 0; }
.review-props { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; margin: 8px 0 12px; }
.review-props label { display: grid; gap: 4px; font-size: 12px; font-weight: 600; color: var(--muted); }
.review-props select { width: auto; padding: 8px 10px; }
.review-notes { display: grid; gap: 4px; font-size: 12px; font-weight: 600; color: var(--muted); margin-bottom: 12px; }
.review-notes textarea { min-height: 60px; font-weight: 400; color: var(--text); }
.review-done { text-align: center; padding: 48px 0; }
.review-big { font-size: 28px; font-weight: 700; color: var(--ok); margin: 0 0 8px; }
.badge.review { background: #3b82f6; }
.badge.inline { position: static; display: inline-block; margin-left: 8px; }
/* Keep Mark Reviewed within reach while scrolling a long project. */
.review-bar { position: sticky; top: 0; z-index: 5; background: var(--bg); padding-top: calc(env(safe-area-inset-top) + 6px); padding-bottom: 6px; margin-top: calc(-1 * env(safe-area-inset-top) - 6px); }
/* Desktop inspector */
.inspector { display: none; }
@media (min-width: 1100px) {
body.has-inspector .view { margin-right: 380px; }
.inspector:not([hidden]) { display: block; position: fixed; top: 0; right: 0; bottom: 0; width: 380px; overflow-y: auto; z-index: 9;
background: var(--surface); border-left: 1px solid var(--line); padding: 20px 18px 40px; }
body.has-inspector .fab { right: 404px; }
body.has-inspector .toast { left: calc(50% - 80px); }
}
.inspector-form { display: grid; gap: 12px; }
.inspector-form label { display: grid; gap: 6px; font-size: 13px; font-weight: 600; color: var(--muted); }
.inspector-form .flag-toggle { display: flex; align-items: center; gap: 8px; color: var(--text); }
.inspector-form .flag-toggle input { width: 20px; height: 20px; accent-color: var(--flag); }
.inspector-form .segmented label { display: block; color: var(--text); }
.inspector-form textarea { min-height: 110px; }
.inspector-form input[name=title], .inspector-form input[name=name] { font-size: 18px; font-weight: 600; }
.inspector-head { display: flex; justify-content: space-between; align-items: center; }
.inspector-kind { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .6px; color: var(--muted); }
.save-state { font-size: 12px; color: var(--muted); }
.inspector-empty { color: var(--muted); text-align: center; padding-top: 40vh; }
.row.selected { background: var(--accent-soft); border-radius: 8px; }
.inspector-form .date-field > label { display: block; }
/* ---------- Location: Nearby, Places, place editor ---------- */
:root { --here: #16a36a; }
@media (prefers-color-scheme: dark) { :root { --here: #3fbf7f; } }
/* Links to the outside: link blue, so a URL reads as one, and they answer the pointer. */
:root { --link: #0b63ce; --link-soft: #e3efff; }
@media (prefers-color-scheme: dark) { :root { --link: #5aa9ff; --link-soft: #1a2a44; } }
.view-head h1.nearby { color: var(--here); }
.badge.here { background: var(--here); }
.head-actions { display: flex; gap: 8px; }
.head-actions a.btn { text-decoration: none; }
.meta-place { color: var(--muted); max-width: 22ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.meta-place.here { color: var(--here); font-weight: 600; }
.loc-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; margin: 8px 0 14px; }
.loc-card p { margin: 6px 0 10px; color: var(--muted); }
.nearby-map { height: 42vh; min-height: 240px; max-height: 460px; border-radius: var(--radius); overflow: hidden; margin: 8px 0 12px; background: var(--surface-2); }
.nearby-map-canvas { width: 100%; height: 100%; }
.place-section { margin-bottom: 8px; }
.place-title { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.place-title a { color: inherit; text-decoration: none; }
.place-title .icon-btn { margin-left: auto; }
.place-meta { font-weight: 500; color: var(--muted); text-transform: none; letter-spacing: 0; }
.here-now { color: var(--here); }
.place-section.here .place-title a { color: var(--here); }
.empty.small { padding: 8px 0; font-size: 14px; }
.empty-state { text-align: center; padding: 16px 0; }
.empty-state .hint { display: block; max-width: 46ch; margin: 0 auto 14px; font-size: 14px; }
.place-row { width: 100%; text-align: left; font: inherit; color: inherit; cursor: pointer; }
.place-form .place-map { height: 240px; border-radius: 12px; overflow: hidden; }
.place-tools { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.place-search gmp-place-autocomplete { width: 100%; color-scheme: light dark; }
.place-form input[type=range] { width: 100%; accent-color: var(--here); }
.form-error { color: var(--due); margin: 0; font-size: 14px; }
.sheet-top { z-index: 20; }
/* A one-line question (ask() in js/state.js) */
.ask-form .hint { margin: 0; }
/* Location field inside editors */
.loc-field { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px 12px; margin: 0; display: grid; gap: 10px; min-width: 0; }
.loc-field legend { font-size: 13px; font-weight: 600; color: var(--muted); padding: 0 4px; }
.loc-detail { display: grid; gap: 10px; }
.loc-detail[hidden] { display: none; }
.loc-inherited { margin: 0; }
.loc-radius { display: flex !important; align-items: center; gap: 8px; }
.loc-radius select { width: auto; flex: 1; }
/* Map pins */
.map-pin { display: flex; flex-direction: column; align-items: center; transform: translateY(4px); cursor: pointer; }
.map-pin-head { min-width: 30px; height: 30px; padding: 0 6px; border-radius: 15px; background: var(--here); color: #fff; display: grid; place-items: center; font: 700 14px/1 -apple-system, sans-serif; box-shadow: 0 2px 6px rgba(0,0,0,.35); border: 2px solid #fff; }
.map-pin.active .map-pin-head { transform: scale(1.2); box-shadow: 0 0 0 4px rgba(63,191,127,.35), 0 2px 6px rgba(0,0,0,.35); }
.map-pin-label { margin-top: 3px; padding: 2px 6px; border-radius: 6px; background: rgba(0,0,0,.65); color: #fff; font: 600 12px/1.2 -apple-system, sans-serif; white-space: nowrap; max-width: 160px; overflow: hidden; text-overflow: ellipsis; }
.map-you { width: 18px; height: 18px; border-radius: 50%; background: #4f8cff; border: 3px solid #fff; box-shadow: 0 0 0 6px rgba(79,140,255,.25), 0 1px 4px rgba(0,0,0,.4); }
/* Alerts setup */
.steps { list-style: none; padding: 0; margin: 8px 0 24px; display: grid; gap: 12px; }
.step { display: grid; grid-template-columns: 32px 1fr; gap: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; }
.step p { margin: 4px 0 8px; color: var(--muted); }
.step-n { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); font-weight: 700; }
.step.done .step-n { background: var(--here); color: #fff; }
.alert-places { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 10px; }
.alert-place { border-top: 1px solid var(--line); padding-top: 10px; }
.alert-urls { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 6px; }
/* Errand run */
.errand-btn { width: 100%; margin: 0 0 12px; }
.errand-list, .errand-order { margin: 0; padding-left: 0; display: grid; gap: 8px; }
.errand-list { list-style: none; }
.errand-order { padding-left: 22px; }
.errand-result { display: grid; gap: 10px; }
.errand-result a.btn { text-align: center; text-decoration: none; }
/* Added / Changed footer */
.stamps { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 4px 12px; margin: 4px 0 0; font-size: 12px; color: var(--muted); }
.review-block { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px 12px; margin: 0; display: grid; gap: 10px; min-width: 0; }
.review-block legend { font-size: 13px; font-weight: 600; color: var(--muted); padding: 0 4px; }
.review-every { display: flex; gap: 8px; align-items: center; }
.review-every input { width: 5.5em; }
.review-every select { width: auto; flex: 1; }
/* Repeat */
.repeat-field { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px 12px; margin: 0; display: grid; gap: 10px; min-width: 0; }
.repeat-field legend { font-size: 13px; font-weight: 600; color: var(--muted); padding: 0 4px; }
.repeat-custom { display: grid; gap: 10px; }
.repeat-custom[hidden], .weekday-picker[hidden] { display: none; }
.weekday-picker { display: flex; gap: 4px; }
.weekday-picker label { flex: 1; }
.weekday-picker input { position: absolute; opacity: 0; pointer-events: none; }
.weekday-picker span { display: block; text-align: center; padding: 7px 0; border-radius: 8px; border: 1px solid var(--line); background: var(--surface-2); font-size: 13px; font-weight: 600; cursor: pointer; color: var(--text); }
.weekday-picker input:checked + span { background: var(--accent); border-color: var(--accent); color: #fff; }
.repeat-summary { margin: 0; }
.review-every input[hidden] { display: none; }
.meta-repeat { opacity: .85; }
.sheet label.review-every, .inspector-form label.review-every { display: flex; align-items: center; gap: 8px; }
.sheet .review-every > .review-every { display: flex; gap: 8px; flex: 1; }
/* Notifications */
.notify-field { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px 12px; margin: 0; display: grid; gap: 8px; min-width: 0; }
.notify-field legend { font-size: 13px; font-weight: 600; color: var(--muted); padding: 0 4px; }
.notify-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.notify-list li { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 14px; color: var(--text); }
.notify-list .hint { margin-left: 4px; }
.notify-list .warn { color: var(--flag); opacity: 1; }
.notify-at { display: flex; gap: 8px; }
.notify-at[hidden] { display: none; }
.meta-bell { opacity: .85; }
/* Attachments */
.attach-field { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px 12px; margin: 0; display: grid; gap: 8px; min-width: 0; }
.attach-field legend { font-size: 13px; font-weight: 600; color: var(--muted); padding: 0 4px; }
.attach-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.attach-list li { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--text); min-width: 0; }
.attach-thumb { width: 40px; height: 40px; object-fit: cover; border-radius: 6px; background: var(--surface-2); flex: none; }
.attach-icon { width: 40px; text-align: center; font-size: 20px; flex: none; }
.attach-open { flex: 1; min-width: 0; text-align: left; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; background: none; border: none; color: var(--accent); font: inherit; cursor: pointer; padding: 0; }
.attach-add { justify-self: start; cursor: pointer; }
.sheet .attach-add, .inspector-form .attach-add { display: inline-flex; color: var(--text); font-weight: 600; }
/* Alerts setup */
.step.current { border-color: var(--accent); }
.step.waiting { opacity: .6; }
.btn.big { padding: 14px 18px; font-size: 17px; width: 100%; text-align: center; text-decoration: none; display: block; }
.mini-steps, .guide { margin: 6px 0 4px; padding-left: 20px; display: grid; gap: 8px; color: var(--text); }
.guide li { line-height: 1.45; }
.ios-share { vertical-align: -4px; color: #0a84ff; }
.progress { list-style: none; padding: 0; margin: 6px 0 0; display: grid; gap: 4px; color: var(--text); }
.alert-jobs { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 8px; }
.alert-jobs li { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: var(--text); }
.alert-jobs li.done span { opacity: .7; }
.copyable { background: var(--surface-2); border: 1px dashed var(--line); border-radius: 6px; padding: 1px 6px; cursor: pointer; }
.alerts-advanced { margin-top: 16px; }
.auto-guide details textarea { width: 100%; font-size: 12px; }
.nudge { display: flex; align-items: center; justify-content: space-between; gap: 8px; background: var(--accent-soft); border: 1px solid var(--accent); border-radius: var(--radius); padding: 10px 12px; margin: 0 0 12px; }
.nudge a { color: var(--text); text-decoration: none; }
/* Settings → Notifications */
.test-buttons { display: flex; gap: 8px; flex-wrap: wrap; margin: 10px 0; }
.test-status { background: var(--surface); border: 1px solid var(--accent); border-radius: 12px; padding: 10px 12px; margin: 0 0 10px; }
.test-status[hidden] { display: none; }
.delivery-log ul { list-style: none; padding: 0; margin: 8px 0; display: grid; gap: 10px; }
.delivery-result { font-size: 13px; margin-top: 2px; }
.ok { color: var(--ok); }
.warn { color: var(--flag); }
/* History */
.history-field { border: 1px solid var(--line); border-radius: 12px; padding: 8px 12px; }
.history-field summary { font-size: 13px; font-weight: 600; color: var(--muted); cursor: pointer; }
.history-field select { margin: 8px 0; width: auto; }
.history-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 14px; color: var(--text); }
.history-list li[hidden] { display: none; }
.history-list b { font-weight: 600; }
/* History + delivery polish */
.history-list .history-day { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); padding-top: 6px; border-top: 1px solid var(--line); }
.history-list .history-day:first-child { border-top: none; padding-top: 0; }
.history-list li { overflow-wrap: anywhere; }
.history-field [data-history-more] { margin-top: 8px; }
.why { display: inline; }
.why summary { display: inline; cursor: pointer; color: var(--muted); font-size: 12px; text-decoration: underline; list-style: none; }
.why summary::-webkit-details-marker { display: none; }
.why code { display: block; margin-top: 4px; font-size: 11px; color: var(--muted); white-space: pre-wrap; overflow-wrap: anywhere; }
.delivery-log li { overflow-wrap: anywhere; }
.delivery-title { line-height: 1.35; }
.device-row .row-title .chip { margin-left: 4px; }
.delivery-title .icon, .history-list .icon { margin-right: .35em; }
/* Steps (eat the elephant) */
.step-progress { height: 5px; border-radius: 3px; background: var(--surface-2); overflow: hidden; margin-top: 6px; max-width: 320px; }
.step-progress i { display: block; height: 100%; background: var(--ok); border-radius: 3px; transition: width .3s; }
.step-next { font-size: 13px; margin-top: 4px; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.step-next span { color: var(--muted); }
.meta-parent { color: var(--muted); max-width: 26ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.reorder .icon-btn[disabled] { opacity: .3; }
@media (max-width: 480px) { .row-sub { padding-left: calc(8px + var(--depth, 1) * 18px); } }
/* Break it down */
.breakdown-title { margin: -6px 0 0; font-weight: 600; color: var(--muted); overflow-wrap: anywhere; }
.breakdown-list { margin: 0; padding-left: 22px; display: grid; gap: 4px; }
.breakdown-list li { padding: 4px 0; border-bottom: 1px solid var(--line); }
.breakdown-list li > * { vertical-align: middle; }
.breakdown-list li { display: list-item; }
.breakdown-list .bd-title { display: inline-block; max-width: calc(100% - 110px); overflow-wrap: anywhere; }
.breakdown-list .bd-actions { float: right; display: inline-flex; gap: 2px; }
.breakdown-list .bd-spacer { display: inline-block; visibility: hidden; }
.breakdown-list li.done .bd-title { text-decoration: line-through; color: var(--muted); }
.breakdown-list li.new .bd-title::after { content: ' new'; font-size: 11px; color: var(--accent); margin-left: 4px; }
.bd-add { display: flex; gap: 8px; }
.bd-add input { flex: 1; }
/* Steps in the editor */
.steps-field, .part-of { min-width: 0; }
.steps-field { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px 12px; margin: 0; display: grid; gap: 8px; }
.steps-field legend { font-size: 13px; font-weight: 600; color: var(--muted); padding: 0 4px; }
.steps-field .step-progress { max-width: none; margin: 0; }
.steps-mini { margin: 0; padding-left: 20px; display: grid; gap: 2px; font-size: 14px; color: var(--text); }
.steps-mini li { overflow-wrap: anywhere; }
.steps-mini li.done { text-decoration: line-through; color: var(--muted); }
.steps-mini li.dropped { color: var(--muted); font-style: italic; }
.steps-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.part-of-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.part-of-row span { overflow-wrap: anywhere; min-width: 0; }
.part-of .field-label, .sheet .part-of .field-label { font-size: 13px; font-weight: 600; color: var(--muted); }
.part-of { display: grid; gap: 6px; }
select:disabled { opacity: .7; }
/* Part-of picker */
.po-list { list-style: none; margin: 0; padding: 0; max-height: 50vh; overflow-y: auto; display: grid; gap: 2px; }
.po-group { font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; padding: 10px 0 4px; }
.po-item { width: 100%; text-align: left; background: none; border: none; color: var(--text); font: inherit; padding: 8px 8px 8px calc(8px + var(--depth, 0) * 16px); border-radius: 8px; cursor: pointer; overflow-wrap: anywhere; }
.po-item:hover, .po-item:focus-visible { background: var(--surface-2); }
.po-item .hint { margin-left: 4px; }
/* Perspectives */
.nav-perspectives { display: none; }
@media (min-width: 900px) {
.tabs { overflow-y: auto; }
.nav-perspectives { display: contents; }
.tabs a.nav-section { margin-top: 10px; }
.tabs a.nav-persp { padding: 7px 12px 7px 22px; font-size: 14px; }
.tabs a.nav-persp .tab-icon { font-size: 15px; }
.tabs a.nav-persp span:nth-child(2) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}
.badge.persp { background: var(--muted); }
.more-links button { display: flex; gap: 12px; align-items: center; padding: 14px 12px; border-radius: 10px; color: var(--text); font-size: 17px; background: var(--surface-2); border: none; text-align: left; cursor: pointer; font: inherit; }
.more-links button span { font-size: 20px; width: 28px; text-align: center; }
.more-sheet h2 + .more-links { margin-bottom: 12px; }
.perspective-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.perspective-head .head-actions { margin-left: auto; display: flex; gap: 6px; }
.persp-warning { margin: 0 0 10px; padding: 8px 12px; border-radius: 10px; background: color-mix(in srgb, var(--due) 12%, transparent); color: var(--text); font-size: 14px; }
.persp-list .persp-row { display: flex; align-items: center; gap: 8px; padding: 4px 0; }
.persp-link { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; padding: 10px 4px; color: var(--text); text-decoration: none; }
.persp-icon { font-size: 22px; width: 30px; text-align: center; flex: none; }
.persp-main { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.persp-name { font-weight: 600; }
.persp-sub { color: var(--muted); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.persp-order { display: flex; }
.persp-row.archived { opacity: .7; }
.template-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.template { width: 100%; display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface-2); color: var(--text); text-align: left; cursor: pointer; font: inherit; }
.template:hover { border-color: var(--accent); }
.persp-editor { display: grid; gap: 12px; }
.persp-editor h2 { margin: 0; }
.icon-row { display: flex; flex-wrap: wrap; gap: 4px; }
.icon-pick { width: 36px; height: 36px; border-radius: 8px; border: 1px solid transparent; background: var(--surface-2); font-size: 18px; cursor: pointer; }
.icon-pick.on { border-color: var(--accent); background: var(--accent-soft); }
.rules-box { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px 12px; margin: 0; min-width: 0; }
.rules-box legend { padding: 0 6px; color: var(--muted); font-weight: 600; font-size: 13px; }
.rule-top, .rule-group { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 15px; }
.rule-group { margin: 6px 0 0 8px; padding-left: 10px; border-left: 2px solid var(--line); display: block; }
.rule-list { list-style: none; margin: 8px 0; padding: 0; display: grid; gap: 6px; }
.rule { background: var(--surface-2); border-radius: 10px; padding: 6px 6px 6px 8px; }
.rule .rule { background: var(--surface); }
.rule-line { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.rule-line select, .rule-top select, .rule-group select, .persp-opts select { width: auto; max-width: 100%; padding: 6px 8px; font-size: 14px; }
.rule-num { width: 72px !important; padding: 6px 8px !important; }
.rule-text { flex: 1; min-width: 120px; padding: 6px 8px !important; }
.rule-line input[type=date] { width: auto; padding: 6px 8px; }
.rule-x { margin-left: auto; }
.rule-chips { display: inline-flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.chip-x { border: none; background: none; color: var(--muted); cursor: pointer; padding: 0 0 0 4px; font-size: 12px; }
.rule-inline { display: inline-flex; gap: 4px; align-items: center; font-size: 13px; color: var(--muted); white-space: nowrap; font-weight: 400; }
.rule-inline input { width: auto; margin: 0; }
.persp-name-row input { font-size: 18px; font-weight: 600; }
.rule-add { display: flex; gap: 6px; }
.persp-opts { display: flex; flex-wrap: wrap; gap: 8px 14px; margin-bottom: 8px; }
.persp-opts label { display: flex; align-items: center; gap: 6px; font-size: 14px; color: var(--muted); }
.persp-preview { border-radius: 12px; background: var(--surface-2); padding: 10px 12px; font-size: 14px; }
.persp-preview-head { margin-bottom: 4px; }
.persp-preview-list { margin: 0; padding-left: 18px; color: var(--text); }
.btn.danger-text { color: var(--due); }
.filter-bar .save-persp { margin-left: auto; }
.rule select, .rule input[type=number], .rule input[type=text], .rule input[type=date] { background: var(--surface); }
.rule .rule select, .rule .rule input { background: var(--surface-2); }
.sheet .rule-line .rule-inline { display: inline-flex; flex-direction: row; margin: 0; gap: 6px; }
.sheet .rule-line .rule-inline input { width: 18px; height: 18px; }
/* Editor / inspector layout: sections of rows that open to edit (js/editors/props.js) */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.title-row { display: flex; align-items: center; gap: 8px; }
.title-row input[name=title] { flex: 1; min-width: 0; font-size: 18px; font-weight: 600; }
.title-row .check { flex: none; }
form label.flag-pill { display: inline-flex; flex: none; width: 40px; height: 40px; border-radius: 10px; align-items: center; justify-content: center; cursor: pointer; color: var(--muted); font-size: 18px; border: 1px solid var(--line); background: var(--surface-2); }
form label.flag-pill input { position: absolute; opacity: 0; width: 1px; height: 1px; }
form label.flag-pill:has(input:checked) { color: var(--flag, #f59e0b); border-color: currentColor; }
form label.flag-pill:has(input:focus-visible) { outline: 2px solid var(--accent); }
form label.notes-field { display: block; }
form label.notes-field textarea { min-height: 44px; font-size: 15px; }
.insp-sec { margin-top: 6px; min-width: 0; }
.sec-head { width: 100%; display: flex; align-items: baseline; gap: 8px; padding: 10px 2px 6px; border: none; border-bottom: 1px solid var(--line); background: none; color: var(--text); cursor: pointer; font: inherit; text-align: left; }
.sec-title { font-size: 14px; font-weight: 700; }
.sec-sum { flex: 1; min-width: 0; text-align: right; color: var(--muted); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sec-caret { color: var(--muted); font-size: 12px; transition: transform .15s; }
.insp-sec.closed .sec-caret { transform: rotate(-90deg); }
.insp-sec.closed .sec-body { display: none; }
.sec-body { display: grid; gap: 0; padding-top: 2px; }
.prop { min-width: 0; }
.prop-row { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 6px; border: none; border-radius: 8px; background: none; color: var(--text); cursor: pointer; font: inherit; font-size: 15px; text-align: left; }
.prop-row:hover, .prop.open .prop-row { background: var(--surface-2); }
.prop-label { color: var(--muted); flex: none; }
.prop-val { min-width: 0; text-align: right; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.prop-val.is-empty { color: var(--muted); opacity: .6; }
.prop-edit { display: none; padding: 6px 6px 12px; }
.prop.open .prop-edit { display: block; }
.prop-edit .date-field > label { display: none; }
.prop-edit fieldset { border: none; padding: 0; margin: 0; }
.prop-edit fieldset > legend { display: none; }
.prop-edit .tag-picker { margin-bottom: 8px; }
form label.prop-inline { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 5px 6px; font-size: 15px; font-weight: 400; color: var(--text); }
form label.prop-inline select { width: auto; max-width: 62%; padding: 7px 10px; font-size: 15px; }
.insp-sec .part-of { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 6px; }
.insp-sec .part-of .field-label { font-size: 15px; font-weight: 400; color: var(--muted); }
.insp-sec .part-of-row { justify-content: flex-end; min-width: 0; }
.insp-sec .part-of-row .hint { display: none; }
.insp-sec .part-of-row .btn { background: none; border: none; color: var(--accent); padding: 0; font-weight: 600; }
.link-btn { background: none; border: none; padding: 4px 0; color: var(--accent); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.link-btn.muted { color: var(--muted); font-weight: 500; }
.steps-field { border: none; padding: 4px 0 0; gap: 6px; }
.steps-field legend { padding: 0; font-size: 14px; font-weight: 700; color: var(--text); }
.steps-actions { gap: 16px; align-items: center; }
.steps-field .flag-toggle { font-weight: 500; }
.stamps { font-size: 12px; }
/* In the panel the stamps sit under the heading, where they are seen without scrolling. */
.inspector-head + .stamps { margin-top: -8px; }
/* The panel's own buttons (Drop, Tickle…, → Reading & watching): a row of small buttons that wraps with room
between them, with Drop set apart at the end. */
.inspector-form .actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 12px; }
.inspector-form .actions .btn { padding: 7px 12px; font-size: 14px; }
.inspector-form .actions .btn.danger { order: 1; margin-left: auto; }
.prop-note { margin: 2px 6px 6px; }
form label.prop-inline.review-every .review-every { display: flex; gap: 6px; }
form label.prop-inline.review-every input { width: 64px; padding: 7px 8px; }
form label.prop-inline.review-every select { width: auto; }
.kind-field { display: grid; gap: 4px; padding: 6px 6px 4px; }
.insp-sec .flag-toggle { padding: 6px; font-weight: 400; }
/* Import from OmniFocus */
.import-card { border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; margin: 0 0 14px; display: grid; gap: 10px; }
.import-card h2 { margin: 0; font-size: 17px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.import-card .hint { margin: 0; }
.import-steps { margin: 0; padding-left: 20px; display: grid; gap: 10px; }
.import-steps li { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.import-steps li::marker { color: var(--muted); font-weight: 700; }
.import-alt summary { cursor: pointer; color: var(--muted); font-size: 14px; }
.import-alt[open] { display: grid; gap: 8px; }
.import-card textarea { width: 100%; min-height: 120px; font-family: ui-monospace, monospace; font-size: 13px; }
.import-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 8px; }
.import-stats .stat { background: var(--surface-2); border-radius: 10px; padding: 8px 10px; display: grid; }
.import-stats .stat b { font-size: 22px; }
.import-stats .stat span { color: var(--muted); font-size: 13px; }
.import-notes { margin: 0; padding-left: 18px; color: var(--text); font-size: 14px; display: grid; gap: 4px; }
.import-notes:empty { display: none; }
.import-tree { list-style: none; margin: 0; padding: 8px 10px; border-radius: 10px; background: var(--surface-2); font-size: 14px; display: grid; gap: 3px; }
.import-tree li { padding-left: calc(var(--depth, 0) * 18px); overflow-wrap: anywhere; }
.import-ok { margin: 0; font-weight: 700; color: var(--ok, #22c55e); }
.import-next { display: flex; gap: 8px; flex-wrap: wrap; }
.import-busy { display: flex; align-items: center; gap: 10px; margin: 0; }
.spinner { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--line); border-top-color: var(--accent); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.import-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 2px; }
.import-row > span { display: grid; gap: 2px; min-width: 0; }
/* On-hold tags */
.chip.hold { background: color-mix(in srgb, var(--due) 14%, transparent); color: var(--text); border-color: transparent; }
.hold-note { margin: 0; padding: 8px 10px; border-radius: 10px; background: color-mix(in srgb, var(--due) 12%, transparent); font-size: 14px; }
.tag-toggle.is-on_hold { border-style: dashed; }
.tag-toggle.is-dropped { opacity: .6; text-decoration: line-through; }
.tag-status { display: grid; gap: 6px; margin: 0 0 12px; }
.tag-status .hint { margin: 0; }
.group-row.muted { opacity: .75; }
.dropped-tags summary { cursor: pointer; list-style: none; }
/* Project templates */
.templates-title { margin-top: 18px; }
.tpl-pick { display: grid; gap: 8px; }
.tpl-pick .field-label { margin: 6px 0 0; font-size: 13px; font-weight: 600; color: var(--muted); }
.template:disabled { opacity: .5; cursor: default; }
.tpl-use, .tpl-save { display: grid; gap: 10px; }
.tpl-preview-box { border-radius: 12px; background: var(--surface-2); padding: 10px 12px; }
.tpl-preview-name { margin: 0 0 6px; }
.tpl-preview { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; font-size: 14px; }
.tpl-preview li { padding-left: calc(var(--depth, 0) * 16px); display: flex; justify-content: space-between; gap: 8px; }
.tpl-preview li .hint { text-align: right; white-space: nowrap; }
.blank-row { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 14px; color: var(--muted); margin-bottom: 6px; }
.blank-row input { width: 130px !important; padding: 7px 10px !important; }
.tpl-head h1 { display: flex; align-items: center; gap: 10px; }
.tpl-kind { font-size: 13px; font-weight: 700; padding: 3px 9px; border-radius: 8px; background: var(--accent-soft); color: var(--accent); vertical-align: middle; }
.tpl-editor { display: grid; gap: 10px; }
.tpl-editor .prop-inline input[type=text] { width: auto; flex: 1; max-width: 70%; padding: 8px 10px; }
.tpl-settings { display: flex; flex-wrap: wrap; gap: 8px 16px; }
.tpl-settings label, .tpl-offs label { display: flex; align-items: center; gap: 6px; font-size: 14px; color: var(--muted); font-weight: 400; }
.tpl-settings select { width: auto; padding: 6px 8px; font-size: 14px; }
.tpl-off { display: inline-flex; align-items: center; gap: 6px; }
.tpl-off input, .tpl-min { width: 72px !important; padding: 6px 8px !important; }
.tpl-rows { list-style: none; margin: 0 0 8px; padding: 0; display: grid; gap: 4px; }
.tpl-row { margin-left: calc(var(--depth, 0) * 22px); border-radius: 10px; }
.tpl-row.open { background: var(--surface-2); padding: 6px; }
.tpl-line { display: flex; align-items: center; gap: 6px; }
.tpl-title { flex: 1; min-width: 0; padding: 8px 10px !important; }
.tpl-meta { font-size: 12px; color: var(--muted); padding: 2px 10px 0; }
.tpl-details { display: grid; gap: 8px; padding: 8px 2px 2px; }
.tpl-offs { display: grid; gap: 6px; }
.tpl-flags { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; }
.tpl-flags label { display: flex; align-items: center; gap: 6px; font-weight: 400; font-size: 14px; }
.tpl-details textarea { min-height: 50px; }
.tpl-moves { display: flex; gap: 4px; align-items: center; flex-wrap: wrap; }
.tpl-moves .danger-text { margin-left: auto; }
.from-template { margin-top: -8px; font-size: 14px; }
.prop-val.follows { color: var(--muted); font-size: 14px; }
/* Focus */
.focus-banner { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin: 0 0 14px; padding: 8px 12px; border-radius: 12px; background: var(--accent-soft); color: var(--text); font-size: 14px; }
.focus-banner .link-btn { margin-left: 12px; }
.focus-picker { display: grid; gap: 10px; }
.focus-list { display: grid; gap: 2px; max-height: 55vh; overflow: auto; }
.sheet label.focus-item, label.focus-item { display: flex; align-items: center; gap: 8px; padding: 7px 4px; font-size: 15px; font-weight: 400; color: var(--text); }
label.focus-item.indent { padding-left: 26px; }
label.focus-item input { width: 18px; height: 18px; margin: 0; }
.tabs .nav-focus { display: none; }
@media (min-width: 900px) {
.tabs button.nav-focus { display: flex; flex: none; flex-direction: row; justify-content: flex-start; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; font-size: 15px; font-weight: 600; background: none; border: none; color: var(--muted); cursor: pointer; font-family: inherit; }
body.is-focused .tabs .nav-focus { background: var(--accent-soft); color: var(--accent); }
}
.more-sheet .focus-more { width: 100%; justify-content: flex-start; margin-bottom: 8px; }
/* Settings cards, keyboard */
.settings-card { border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px; margin-bottom: 12px; display: grid; gap: 4px; }
.settings-card .prop-inline { flex-wrap: wrap; }
.settings-card .prop-inline .hint { flex: 1; min-width: 140px; font-size: 13px; }
.settings-card input[type=time] { width: auto; padding: 7px 10px; }
.settings-card select { width: auto; max-width: 50%; padding: 7px 10px; }
kbd { display: inline-block; min-width: 1.6em; padding: 1px 6px; border-radius: 6px; border: 1px solid var(--line); border-bottom-width: 2px; background: var(--surface-2); font: 600 13px ui-monospace, monospace; text-align: center; color: var(--text); }
.kbd { display: grid; gap: 5px; padding: 10px; border-radius: 12px; background: var(--surface-2); overflow-x: auto; }
.kbd-row { display: flex; gap: 5px; padding-left: calc(var(--indent, 0) * 12px); }
.kbd-row.arrows { justify-content: flex-end; }
.kbd-key { flex: 1 1 0; min-width: 26px; height: 36px; border-radius: 7px; border: 1px solid var(--line); border-bottom-width: 3px; background: var(--surface); color: var(--muted); font: 600 13px ui-monospace, monospace; cursor: pointer; padding: 0; }
.kbd-key.wide { flex: 1.8 1 0; font-size: 15px; }
.kbd-key.on { background: var(--accent-soft); color: var(--accent); border-color: color-mix(in srgb, var(--accent) 45%, transparent); }
.kbd-key.sel { outline: 2px solid var(--accent); outline-offset: 1px; }
.kbd-row.arrows .kbd-key { flex: 0 0 44px; }
.kbd-tip { min-height: 1.4em; font-size: 14px; color: var(--text); padding: 4px 2px 0; }
.kbd-lists { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 4px 20px; margin-top: 8px; }
.kbd-group { margin: 10px 0 4px; font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: .5px; grid-column: 1 / -1; }
.kbd-lists .kbd-group { grid-column: auto; }
.kbd-list { margin: 0; display: grid; grid-template-columns: max-content 1fr; gap: 6px 10px; align-items: baseline; font-size: 14px; }
.kbd-list dt { white-space: nowrap; }
.kbd-list dd { margin: 0; }
.kbd-sheet { display: grid; gap: 10px; }
@media (max-width: 520px) { .kbd-key { min-width: 20px; height: 30px; font-size: 11px; } .kbd-row { gap: 3px; } }
.settings-card label.set-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 2px; border-bottom: 1px solid var(--line); font-weight: 400; color: var(--text); font-size: 15px; }
.settings-card label.set-row:last-of-type { border-bottom: none; }
.set-text { display: grid; gap: 2px; min-width: 0; }
.set-text b { font-weight: 600; }
.set-text .hint { font-size: 13px; }
.kbd-row:first-child .kbd-key { flex: 0 0 64px; }
/* Calendars */
.fc-ev { display: block; font-size: 10px; color: var(--muted); line-height: 1.1; }
.cal-list { margin-bottom: 8px; }
.cal-event { display: flex; gap: 12px; align-items: flex-start; padding: 9px 4px 9px 12px; border-bottom: 1px solid var(--line); position: relative; }
.cal-event::before { content: ''; position: absolute; left: 0; top: 8px; bottom: 8px; width: 4px; border-radius: 2px; background: var(--cal, var(--accent)); }
.cal-event.free { opacity: .8; }
.cal-time { flex: 0 0 88px; color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; padding-top: 1px; }
.cal-main { display: grid; gap: 2px; min-width: 0; }
.cal-title { font-weight: 600; overflow-wrap: anywhere; }
.cal-meta { color: var(--muted); font-size: 13px; overflow-wrap: anywhere; }
.cal-row { display: flex; align-items: center; gap: 10px; padding: 8px 2px; border-bottom: 1px solid var(--line); }
.cal-row .set-text { flex: 1; }
.cal-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--cal); flex: none; }
.cal-ok { color: var(--ok, #22c55e); }
.cal-bad { color: var(--due); }
.cal-toggle { display: inline-flex; gap: 6px; align-items: center; font-size: 14px; color: var(--muted); font-weight: 400; }
.cal-add { display: grid; gap: 10px; padding-top: 8px; }
.cal-add label { display: grid; gap: 6px; font-size: 13px; font-weight: 600; color: var(--muted); }
.cal-colors { display: flex; gap: 8px; }
.cal-color { width: 26px; height: 26px; border-radius: 50%; border: 2px solid transparent; background: var(--cal); cursor: pointer; }
.cal-color.on { border-color: var(--text); }
.cal-help { font-size: 14px; }
.cal-help summary { cursor: pointer; color: var(--accent); }
.cal-help p { margin: 6px 0; }
.cal-check { padding: 8px 10px; border-radius: 10px; background: color-mix(in srgb, #22c55e 12%, transparent); font-size: 14px; }
/* Final viewport pass: nothing may push a sheet or card wider than the screen */
.sheet form, .settings-card, .persp-editor, .tpl-editor, .import-card { grid-template-columns: minmax(0, 1fr); }
.sheet { overflow-x: hidden; }
.template { min-width: 0; }
.done-filters select, .done-filters input { max-width: 100%; min-width: 0; }
.cal-row { flex-wrap: wrap; }
.cal-row .set-text { min-width: 0; flex: 1 1 160px; }
.cal-row .hint { overflow-wrap: anywhere; }
/* Bigger touch targets on phones */
.back { display: inline-flex; align-items: center; min-height: 36px; padding: 4px 0; }
.chip-x { padding: 4px 6px; margin: -4px -4px -4px 0; min-width: 24px; min-height: 24px; }
label.focus-item input, .sheet .flag-toggle input, .settings-card input[type=checkbox] { width: 22px; height: 22px; }
.part-of-row .btn, .insp-sec .part-of-row .btn { min-height: 32px; }
.template-list, .rule-list, .tpl-rows, .import-notes, .import-tree, .tpl-preview, .persp-preview-list { grid-template-columns: minmax(0, 1fr); }
.template-list > li { min-width: 0; }
label.flag-toggle { min-height: 32px; }
label.flag-toggle input { width: 22px; height: 22px; flex: none; }
@media (max-width: 520px) { .kbd { padding: 8px 6px; } .kbd-key { min-width: 0; } .kbd-row { padding-left: calc(var(--indent, 0) * 5px); } .kbd-key.wide { font-size: 12px; } }
/* ---------- GTD: Clarify, Tickler, Reference, Waiting For, People, Energy ---------- */
.view-head h1.waiting { color: #d97706; }
.view-head h1.tickler { color: #0ea5e9; }
.view-head h1.reference { color: #64748b; }
.late { color: var(--due); }
.av { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-size: 12px; font-weight: 700; margin-right: 8px; flex: none; vertical-align: middle; }
.person-title .av { width: 36px; height: 36px; font-size: 15px; }
.person-head a { color: inherit; text-decoration: none; display: inline-flex; align-items: center; }
.row-actions { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; align-items: center; flex: 0 1 auto; }
.row-actions .btn.small { padding: 5px 10px; font-size: 13px; min-height: 32px; }
.wait-row.late .row-meta .late { font-weight: 600; }
@media (max-width: 560px) { .wait-row, li.row:has(.row-actions) { flex-wrap: wrap; } .row-actions { flex-basis: 100%; padding-left: 40px; justify-content: flex-start; } }
.meta-wait.late { color: var(--due); font-weight: 600; }
.meta-tickler { color: #0ea5e9; }
.meta-energy { font-size: 12px; }
.chip-row { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0; }
.chip-btn { display: inline-flex; align-items: center; gap: 4px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface-2); color: var(--text); font: inherit; font-size: 14px; cursor: pointer; min-height: 36px; }
.chip-btn .av { width: 22px; height: 22px; font-size: 10px; margin-right: 2px; }
.chip-btn.on { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); }
.gtd-sheet .gtd-item { margin: 0; padding: 10px 12px; border-radius: 10px; background: var(--surface-2); font-weight: 600; overflow-wrap: anywhere; }
.gtd-sheet textarea { min-height: 90px; }
.gtd-sheet input[type=date] { margin-top: 6px; }
.secret-edit { display: flex; gap: 8px; align-items: center; }
.secret-edit input { flex: 1; min-width: 0; }
.waiting-field { display: grid; gap: 10px; }
.waiting-field label { display: grid; gap: 6px; }
.waiting-field .btn { justify-self: start; }
/* Clarify */
.cl-count { color: var(--text); font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; }
.cl-sub { display: flex; align-items: center; gap: 10px; margin: 6px 0 14px; font-size: 14px; color: var(--muted); }
.cl-sub .cl-progress { flex: 0 1 220px; margin: 0; }
.cl-progress { height: 5px; border-radius: 3px; background: var(--surface-2); margin: 4px 0 14px; overflow: hidden; }
.cl-progress i { display: block; height: 100%; background: var(--accent); border-radius: 3px; transition: width .25s; }
.cl-item { display: grid; gap: 4px; padding: 14px 16px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); margin-bottom: 12px; }
.cl-item b { font-size: 19px; overflow-wrap: anywhere; }
.cl-meta { color: var(--muted); font-size: 13px; }
.cl-notes { margin: 6px 0 0; white-space: pre-wrap; color: var(--muted); font-size: 14px; max-height: 9em; overflow: auto; overflow-wrap: anywhere; }
.cl-item .cl-gain-row { display: flex; align-items: center; gap: 12px; margin-top: 6px; padding: 0 12px; height: 44px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-2); }
.cl-item .cl-gain-row .gain-label { flex: none; margin: 0; font-size: 13px; color: var(--accent); white-space: nowrap; }
.cl-item .cl-gain-row input { flex: 1; min-width: 0; border: 0; background: transparent; padding: 0; font-size: 15px; outline: none; }
.cl-acts { display: flex; gap: 8px; justify-content: flex-end; margin-top: 6px; }
.cl-acts kbd { margin-left: 8px; font: 700 11px/18px -apple-system, system-ui, sans-serif; color: var(--muted); border: 1px solid var(--line); border-radius: 5px; padding: 0 5px; background: var(--surface); }
.cl-left { display: flex; flex-direction: column; gap: 12px; }
.cl-left .cl-item { margin-bottom: 0; }
.cl-cols { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
@media (min-width: 900px) { .cl-cols { grid-template-columns: minmax(0, 11fr) minmax(0, 9fr); gap: 24px; align-items: start; } }
.cl-sug { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 10px; width: 100%; min-height: 52px; padding: 10px 16px; border: 0; border-radius: 12px; background: var(--accent); color: #fff; font: inherit; font-size: 15px; font-weight: 700; text-align: left; cursor: pointer; }
.cl-sug:hover { filter: brightness(1.08); }
.cl-sug .chip { background: rgba(255,255,255,.18); color: #fff; font-size: 13px; font-weight: 600; }
.cl-sug kbd { margin-left: auto; font: 600 12px/18px -apple-system, system-ui, sans-serif; border: 1px solid rgba(255,255,255,.5); border-radius: 5px; padding: 0 6px; }
.cl-sug-ok { font-size: 16px; }
/* Claude's suggestion on the item: who, the note, the one-press Submit, Dismiss. The count line sits under the progress. */
.cl-claude { display: flex; flex-direction: column; gap: 8px; }
.cl-claude-head { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; font-size: 13px; color: var(--muted); }
.cl-claude-note { color: var(--text); }
.cl-claude-foot { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; font-size: 12px; }
.cl-draft { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin: -6px 0 12px; font-size: 13px; color: var(--muted); }
.cl-draft .link-btn { font-size: 13px; padding: 0; }
.cl-qrow { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin: 2px 0 2px; }
.cl-qrow .cl-keys { flex: none; text-align: right; }
.cl-q { margin: 0; color: var(--text); font-size: 15px; font-weight: 600; }
.cl-glabel { margin: 10px 0 6px; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.cl-glabel span { margin-left: 8px; font-weight: 500; letter-spacing: 0; text-transform: none; }
.cl-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.cl-choice, .ask-choice { position: relative; display: grid; gap: 2px; text-align: left; padding: 12px 12px 10px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--text); font: inherit; cursor: pointer; min-height: 64px; }
.cl-choice:hover, .ask-choice:hover { border-color: var(--accent); }
.cl-choice b, .ask-choice b { font-size: 15px; }
.cl-choice span, .ask-choice span { color: var(--muted); font-size: 12px; }
/* The choice rows: a keycap, then the name and what it means. The default is outlined, so the suggestion stays the loudest. */
.cl-choice { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 0 14px 0 12px; }
.cl-choice kbd { position: static; flex: none; width: 24px; height: 24px; border-radius: 6px; border: 1px solid var(--line); background: var(--surface-2); color: var(--muted); font: 700 12px/1 -apple-system, system-ui, sans-serif; display: grid; place-items: center; }
.cl-choice .cl-ct { display: grid; gap: 2px; min-width: 0; }
.cl-choice .cl-ct b { line-height: 1.15; }
.cl-choice.pri { background: var(--accent-soft); border-color: var(--accent); color: var(--text); }
.cl-choice.pri kbd { border-color: var(--accent); color: var(--text); }
.cl-choice.warn:hover { border-color: var(--due); }
.cl-bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; margin-top: 16px; }
.cl-bar .btn { white-space: nowrap; flex: none; }
.cl-keys { font-size: 12px; flex: 1 1 auto; min-width: 0; text-align: center; }
/* The Full Review's column is narrow at every width, so its keys sit under the buttons on a line of their
own; the other bars do the same once the window is narrow. Back and Skip keep the first line. */
.fr .cl-keys { order: 3; flex-basis: 100%; margin-top: 2px; }
@media (max-width: 820px) { .cl-keys { order: 3; flex-basis: 100%; margin-top: 2px; } }
@media (pointer: coarse) { .cl-keys, .cl-choice kbd, .cl-sug kbd, .cl-acts kbd { display: none; } }
.cl-form { display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); }
.cl-form label { display: grid; gap: 6px; font-size: 14px; font-weight: 600; color: var(--muted); }
.cl-form .segmented { flex-wrap: wrap; }
.cl-form .segmented label { flex: 1 1 auto; display: block; }
.cl-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.cl-foot > span { display: flex; gap: 8px; align-items: center; }
.cl-now { text-align: center; padding: 10px 0; }
.cl-timer { font-size: 64px; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: -1px; }
.cl-timer.over { color: var(--due); }
.cl-done { text-align: center; padding: 30px 0; }
.cl-big { font-size: 56px; }
.cl-done p { color: var(--muted); }
/* Buttons on a done screen sit in a row that wraps with room between them, never over each other. */
.cl-done p:has(.btn) { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
/* Tickler */
.tk-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; margin-bottom: 8px; }
.tk-grid.months { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.tk-cell { position: relative; display: grid; justify-items: center; gap: 0; padding: 6px 2px; min-height: 48px; border-radius: 10px; background: var(--surface-2); color: var(--muted); text-decoration: none; border: 1px solid transparent; }