-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
838 lines (814 loc) · 57.2 KB
/
Copy pathindex.html
File metadata and controls
838 lines (814 loc) · 57.2 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1, viewport-fit=cover, user-scalable=no">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="default">
<title>TaskBoard — Prototype</title>
<style>
:root{
--bg:#f6f7f9; --surface:#ffffff; --ink:#1a1d23; --ink-2:#5b626e; --ink-3:#9aa1ac;
--line:#e7e9ee; --accent:#3b6ef6; --accent-soft:#e8eeff;
--green:#27a468; --green-soft:#e3f5ec;
--amber:#e8930c; --amber-soft:#fdf1dc;
--red:#e2483d; --red-soft:#fde8e6;
--r:14px; --shadow:0 1px 3px rgba(20,24,35,.06),0 6px 20px rgba(20,24,35,.05);
}
*{margin:0;padding:0;box-sizing:border-box;-webkit-tap-highlight-color:transparent}
html,body{height:100%}
body{
font-family:-apple-system,BlinkMacSystemFont,"SF Pro Text","Segoe UI",Roboto,sans-serif;
background:var(--surface); color:var(--ink); padding-left:62px;
-webkit-font-smoothing:antialiased; overscroll-behavior:none;
}
button{font:inherit;border:none;background:none;color:inherit;cursor:pointer}
/* ---------- left icon sidebar (collapsible) ---------- */
body{transition:padding-left .22s ease}
.sidebar{position:fixed;left:0;top:0;bottom:0;width:62px;background:#191c22;z-index:45;
display:flex;flex-direction:column;align-items:center;gap:7px;padding:16px 0;
transition:transform .22s ease}
.sbtoggle{color:#7c828d}
body.sbhide{padding-left:0}
body.sbhide .sidebar{transform:translateX(-100%)}
/* floating reopen button, shown only when the rail is hidden */
.sbshow{position:fixed;left:10px;top:12px;z-index:46;width:38px;height:38px;border-radius:11px;
background:#191c22;color:#fff;display:none;align-items:center;justify-content:center;
box-shadow:0 5px 16px rgba(20,24,35,.32)}
.sbshow:hover{background:#23262e}
body.sbhide .sbshow{display:flex}
.sblogo{width:30px;height:30px;border-radius:9px;background:linear-gradient(135deg,#3b6ef6,#9b8cff);margin-bottom:12px;flex:none}
.sbicon{width:40px;height:40px;border-radius:12px;display:flex;align-items:center;justify-content:center;color:#9aa1ac;flex:none}
.sbicon:hover{background:rgba(255,255,255,.08);color:#fff}
.sbicon.active{background:rgba(255,255,255,.13);color:#fff}
.sbsettings{margin-top:auto}
.sbpop{position:absolute;z-index:55;display:none;background:var(--surface);border:1px solid var(--line);
border-radius:14px;box-shadow:0 18px 48px rgba(20,24,35,.26)}
.sbpop.show{display:block}
.sbsearchpop{left:72px;top:56px;width:320px;padding:8px}
.sbsearchpop input{width:100%;min-height:42px;border:none;border-radius:11px;background:#eceef2;
padding:0 15px;font:inherit;font-size:15px;color:var(--ink)}
.sbsearchpop input:focus{outline:2px solid var(--accent)}
.sbsettingspop{left:72px;bottom:14px;width:300px;padding:16px 18px}
.sbset-h{font-size:15px;font-weight:800;color:var(--ink);margin-bottom:13px}
.sbset-l{display:block;font-size:12px;font-weight:700;color:var(--ink-3);margin-bottom:6px}
.sbsettingspop input{width:100%;min-height:40px;border:1px solid var(--line);border-radius:10px;
padding:0 13px;font:inherit;font-size:14px;color:var(--ink);background:#fafbfc}
.sbsettingspop input:focus{outline:none;border-color:var(--accent)}
.sbset-note{font-size:11.5px;color:var(--ink-3);margin:7px 1px 0}
.sbset-btn{margin-top:14px;width:100%;background:#eef0f4;color:var(--ink-2);font-weight:700;
font-size:13px;border-radius:10px;padding:10px}
.sbset-btn:hover{background:#e4e7ec}
/* ---------- top bar ---------- */
header{
position:sticky;top:0;z-index:30;background:rgba(255,255,255,.9);
backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);
border-bottom:1px solid var(--line);
padding:calc(env(safe-area-inset-top) + 10px) 24px 10px;
display:flex;align-items:center;gap:18px;
}
.logo{font-size:19px;font-weight:700;letter-spacing:-.02em;display:flex;align-items:center;gap:9px}
.logo .dot{width:11px;height:11px;border-radius:4px;background:var(--accent)}
.spacer{flex:1}
.me{display:flex;align-items:center;gap:10px;font-size:14px;color:var(--ink-2)}
main{padding:4px 6px calc(env(safe-area-inset-bottom) + 16px);max-width:none;margin:0}
.cols{display:flex;flex-direction:column}
/* landscape: filter + scale stay put on the left, timeline scrolls vertically on the right */
@media (min-width:1100px) and (orientation:landscape){
main{max-width:none;height:100vh;height:100dvh;
overflow:hidden;display:flex;flex-direction:column;padding-bottom:10px}
.cols{display:flex;flex-direction:column;flex:1;min-height:0}
.cols section{min-height:0;display:flex;flex-direction:column;flex:1}
/* the chart's own box no longer scrolls — its inner scroller does, so the date ribbon
inside can stick to the top */
.gantt{flex:1;min-height:0;overflow:hidden;display:flex;flex-direction:column}
#gantt{flex:1;min-height:0;display:flex;flex-direction:column}
.gscroll{flex:1;min-height:0;overflow:auto}
}
h2.section{font-size:13px;font-weight:700;text-transform:uppercase;letter-spacing:.07em;color:var(--ink-3);margin:26px 2px 12px}
h2.section:first-child{margin-top:4px}
/* ---------- avatars / chips ---------- */
.av{width:32px;height:32px;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;
font-size:12.5px;font-weight:700;color:#fff;flex:none}
.av.sm{width:26px;height:26px;font-size:11px}
.av.xs{width:20px;height:20px;font-size:9px}
.trow{display:flex;align-items:center;gap:12px;padding:9px 0;border-bottom:1px solid var(--line)}
.trow:last-child{border-bottom:none}
.trow .tname{flex:1;font-size:15px;font-weight:600}
.tbtn{font-size:12.5px;font-weight:700;color:var(--accent);background:var(--accent-soft);border-radius:8px;padding:7px 12px;cursor:pointer}
.tbtn.tdel{color:var(--red);background:var(--red-soft)}
.av.lg{width:46px;height:46px;font-size:17px}
.chip{display:inline-flex;align-items:center;gap:5px;font-size:12.5px;font-weight:600;
padding:3px 10px;border-radius:999px}
.chip.p-high{background:var(--red-soft);color:var(--red)}
.chip.p-med{background:var(--amber-soft);color:var(--amber)}
.chip.p-low{background:var(--accent-soft);color:var(--accent)}
.chip.due{background:#eef0f4;color:var(--ink-2)}
.chip.due.overdue{background:var(--red-soft);color:var(--red)}
.chip.due.soon{background:var(--amber-soft);color:var(--amber)}
/* ---------- progress bar / pills ---------- */
.bar{height:7px;border-radius:99px;background:#eef0f4;overflow:hidden}
.bar i{display:block;height:100%;border-radius:99px;background:var(--accent);transition:width .35s ease}
.bar i.done{background:var(--green)}
.pill{border-radius:999px;font-weight:600;display:inline-flex;align-items:center;gap:8px;max-width:100%}
.pill .t{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:165px}
.pill .szb{font-size:10px;font-weight:800;opacity:.6}
.pill .pop{flex:none;width:19px;height:19px;border-radius:50%;border:2px solid currentColor;opacity:.5;
display:flex;align-items:center;justify-content:center;font-size:10px;padding:0;color:inherit}
.pill .pop:active{transform:scale(.85)}
.pill .pop.on{background:var(--green);border-color:var(--green);color:#fff;opacity:1}
.pill .pbody{display:inline-flex;align-items:center;gap:7px;color:inherit;font:inherit;min-width:0;padding:0}
.pill .pbody:active{opacity:.6}
.pill.sz-s {font-size:12px; padding:6px 12px}
.pill.sz-m {font-size:13.5px;padding:9px 16px}
.pill.sz-l {font-size:15.5px;padding:13px 22px}
.pill.sz-xl{font-size:17px; padding:17px 28px}
.pill.late {background:var(--red-soft);color:var(--red)}
.pill.today{background:var(--accent-soft);color:var(--accent)}
.pill.soon {background:var(--green-soft);color:var(--green)}
.pill.done {background:#eef0f4;color:var(--ink-3);text-decoration:line-through}
.scalewrap{position:relative;height:235px;overflow:visible}
.beam{position:absolute;left:50%;top:158px;width:96%;transform-origin:50% 100%;
transition:transform .7s cubic-bezier(.34,1.3,.5,1)}
.beam .bar{height:7px;background:var(--ink);border-radius:4px}
/* pills live ON the plank (inside the rotated beam): they lie parallel to it,
slide along it, and heap against the card wall / fulcrum */
.pile{position:absolute;inset:0;pointer-events:none}
.pile .pill{position:absolute;pointer-events:auto;
transition:left .7s cubic-bezier(.34,1.3,.5,1),bottom .7s cubic-bezier(.34,1.3,.5,1)}
.fulcrum{position:absolute;left:50%;top:164px;width:0;height:0;transform:translateX(-50%);
border-left:16px solid transparent;border-right:16px solid transparent;border-bottom:48px solid var(--ink)}
.verdict{text-align:center;font-size:12.5px;font-weight:600;color:var(--ink-2);margin:10px 0 6px}
/* ---------- checks & drag ghost ---------- */
.check{
width:26px;height:26px;flex:none;border-radius:50%;border:2px solid #cdd2da;
display:flex;align-items:center;justify-content:center;color:#fff;font-size:13px;transition:all .15s;
}
.check.on{background:var(--green);border-color:var(--green)}
.dragghost{position:fixed;z-index:100;pointer-events:none;background:var(--accent);color:#fff;
box-shadow:0 12px 32px rgba(20,24,35,.35);border-radius:999px;
padding:9px 18px;font-size:13px;font-weight:700;max-width:300px;
white-space:nowrap;overflow:hidden;text-overflow:ellipsis;transform:rotate(-2deg)}
.toolbar{display:flex;gap:10px;margin-bottom:14px;align-items:center;flex-wrap:wrap}
.seg{display:flex;background:#eceef2;border-radius:10px;padding:3px}
.seg button{padding:8px 16px;border-radius:8px;font-size:13.5px;font-weight:600;color:var(--ink-2);min-height:38px}
.seg button.active{background:var(--surface);color:var(--ink);box-shadow:0 1px 3px rgba(20,24,35,.12)}
/* ---------- cards / modal task rows ---------- */
.pcard{background:var(--surface);border-radius:var(--r);box-shadow:var(--shadow);padding:20px}
.ptask{display:flex;align-items:center;gap:10px;padding:10px 0;border-top:1px solid var(--line)}
.ptask .t{flex:1;min-width:0;font-size:14px;font-weight:500;
white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ptask .proj{font-size:11.5px;color:var(--ink-3);display:block;margin-top:2px}
/* per-task weight control in the project view: editable size on leaves, rolled-up pts on parents */
.ptask .rowsz{flex:none;font:inherit;font-size:12px;font-weight:700;color:var(--ink-2);background:#eef0f4;
border:none;border-radius:8px;padding:5px 7px;-webkit-appearance:none;appearance:none;cursor:pointer}
.ptask .rowsz:hover{background:#e4e7ec;color:var(--ink)}
.ptask .rowpts{flex:none;font-size:11px;font-weight:700;color:var(--ink-3);background:#eef0f4;border-radius:8px;padding:5px 8px}
/* ---------- detail sheet ---------- */
.scrim{position:fixed;inset:0;background:rgba(20,24,35,.32);z-index:40;opacity:0;pointer-events:none;transition:opacity .22s}
.scrim.show{opacity:1;pointer-events:auto}
.tmodal{position:fixed;inset:0;z-index:50;display:none;align-items:center;justify-content:center;padding:22px}
.tmodal.show{display:flex}
.tbox{background:var(--surface);border-radius:20px;box-shadow:0 24px 80px rgba(20,24,35,.3);
width:min(540px,94vw);max-height:88vh;overflow-y:auto;padding:22px 24px;position:relative;
-webkit-overflow-scrolling:touch}
.crumb{font-size:12.5px;color:var(--ink-3);margin:0 30px 6px 0;font-weight:600}
.crumb button{color:var(--accent);font-weight:600;font-size:12.5px}
.dtitle{width:100%;font:inherit;font-size:20px;font-weight:800;letter-spacing:-.02em;border:none;
background:transparent;color:var(--ink);padding:0;margin-bottom:6px}
.dtitle:focus{outline:none;border-bottom:2px solid var(--accent)}
.tbox .frow select,.tbox .frow input{flex:1;font:inherit;font-size:15px;border:none;background:transparent;
color:var(--ink);min-height:34px;-webkit-appearance:none;appearance:none}
.tbox .frow select:focus,.tbox .frow input:focus{outline:none}
/* make the borderless selects (Owner / Size / Move to) read as editable dropdowns:
size to their value and show a caret + hover so it's clear you can change them */
.tbox .frow select{flex:0 1 auto;max-width:100%;cursor:pointer;min-height:32px;
padding:2px 24px 2px 9px;border-radius:9px;
background-image:url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 20 20" fill="none" stroke="%239aa1ac" stroke-width="1.9" stroke-linecap="round" stroke-linejoin="round"><path d="M6 8.5l4 4 4-4"/></svg>');
background-repeat:no-repeat;background-position:right 5px center;background-size:15px}
.tbox .frow select:hover{background-color:#f0f2f6}
.tbox .danger{color:var(--red);background:var(--red-soft);border-radius:11px;padding:12px 18px;
font-weight:700;font-size:14px;margin-top:18px;width:100%}
.closex{position:absolute;top:14px;right:16px;width:36px;height:36px;
border-radius:50%;background:#eef0f4;color:var(--ink-2);font-size:16px;font-weight:700;z-index:1}
.searchwrap{position:relative;flex:1;max-width:430px}
.searchwrap input{width:100%;min-height:40px;border:none;border-radius:11px;background:#eceef2;
padding:0 16px;font:inherit;font-size:14.5px;color:var(--ink)}
.searchwrap input:focus{outline:2px solid var(--accent)}
#searchres{position:absolute;top:46px;left:0;right:0;background:var(--surface);border-radius:12px;
box-shadow:0 12px 40px rgba(20,24,35,.18);display:none;overflow:hidden;z-index:60}
#searchres button{display:block;width:100%;text-align:left;padding:11px 16px;border-bottom:1px solid var(--line)}
#searchres button b{display:block;font-size:14px}
#searchres button span{font-size:12px;color:var(--ink-3)}
#searchres .nores{padding:13px 16px;font-size:13.5px;color:var(--ink-3)}
.gantt{background:var(--surface);padding:0 2px 16px;position:relative}
.ghead{display:flex;justify-content:space-between;align-items:center;gap:10px;margin:2px 0 8px}
/* floating control cluster, top-right of the chart — owners + timeline always visible, then
the no-background toggle pictograms; legend's swatches roll DOWN when its icon is clicked */
.gfloat{position:absolute;right:14px;top:96px;z-index:25;display:flex;flex-direction:column;
gap:8px;align-items:flex-end}
.gfloat .seg{box-shadow:0 4px 14px rgba(20,24,35,.13)}
.gficons{display:flex;flex-direction:column;align-items:flex-end;gap:4px}
.gfctl{position:relative;display:flex;align-items:center;justify-content:center}
.gficon{width:34px;height:34px;background:none;border:none;box-shadow:none;
color:var(--ink-3);display:flex;align-items:center;justify-content:center;flex:none;
transition:color .15s}
.gficon:hover{background:none;color:var(--ink)}
.gficon.on{background:none;color:var(--accent)}
/* roll-down panel (description for toggles, swatches for legend) — absolute so it overlays the chart */
.gfly{position:absolute;top:calc(100% + 8px);left:50%;z-index:40;display:flex;align-items:center;gap:7px;
background:var(--surface);border:1px solid var(--line);border-radius:12px;
box-shadow:0 14px 38px rgba(20,24,35,.22);padding:6px;white-space:nowrap;
opacity:0;transform:translate(-50%,-8px) scale(.97);transform-origin:top center;pointer-events:none;
transition:opacity .17s ease,transform .17s ease}
.gfctl.open .gfly{opacity:1;transform:translate(-50%,0) scale(1);pointer-events:auto}
/* the toggle labels (today / done / subtasks) show ONLY on hover, never on click,
and only after a 0.6s dwell (they hide immediately on leave) */
.gfctl.gtog:hover .gfly{opacity:1;transform:translate(-50%,0) scale(1);transition-delay:.6s}
.gfctl.gright .gfly{left:auto;right:0;transform:translate(0,-8px) scale(.97);transform-origin:top right}
.gfctl.gright.open .gfly{transform:translate(0,0) scale(1)}
/* owners + timeline roll their options out horizontally to the LEFT of their icon —
no white popover chrome; the segmented control carries its own background */
.gfly.gfleft{top:50%;left:auto;right:calc(100% + 8px);
background:none;border:none;box-shadow:none;padding:0;
transform:translate(8px,-50%) scale(.97);transform-origin:right center}
.gfctl.open .gfly.gfleft{transform:translate(0,-50%) scale(1)}
/* icon turns accent when its filter is actively narrowing the view */
.gficon.gactive{color:var(--accent)}
.gfdesc{padding:7px 12px;font-size:12.5px;font-weight:700;color:var(--ink);white-space:nowrap}
/* legend rolls down as a plain vertical list — no popover background, right-aligned under the icon */
.gflegend{background:none;border:none;box-shadow:none;flex-direction:column;align-items:flex-end;gap:6px;padding:8px 4px}
.gflegend span{display:inline-flex;align-items:center;gap:7px;font-size:12.5px;font-weight:700;color:var(--ink);white-space:nowrap}
.gflegend i{width:12px;height:12px;border-radius:4px;flex:none}
.gzoom button{padding:7px 13px;font-size:12.5px;min-height:34px;display:flex;align-items:center;justify-content:center}
/* owners shown as a compact segmented row of avatars */
.gpeople{padding:3px;gap:2px}
.gpeople button{padding:2px;min-height:0;width:38px;height:34px;border-radius:8px;display:flex;
align-items:center;justify-content:center}
.gpeople button.active{background:var(--surface);box-shadow:0 1px 3px rgba(20,24,35,.16)}
.gpeople .av{width:27px;height:27px;font-size:10px;flex:none}
.gscroll{overflow-x:auto;-webkit-overflow-scrolling:touch;padding-bottom:4px}
/* date ribbon (months + day axis) stays pinned to the top of the scroller on vertical scroll */
.gribbon{position:sticky;top:0;z-index:8;background:var(--surface)}
.ginner{position:relative}
.grip2{flex:none;width:28px;height:38px;display:flex;align-items:center;justify-content:center;
color:#878e9a;cursor:grab;touch-action:none;-webkit-user-select:none;user-select:none}
.grip2:active{cursor:grabbing;color:var(--accent)}
/* rows hug their per-bar track height (set inline in barRow) so subtask rows
aren't inflated by a fixed min-height — keeps task/subtask spacing even */
.grow{display:flex;align-items:center;gap:10px}
/* insertion line while reordering bars vertically on the gantt */
.grow.reinsb{box-shadow:inset 0 3px 0 -1px var(--accent)}
.grow.reinsa{box-shadow:inset 0 -3px 0 -1px var(--accent)}
.gtrack{position:relative;flex:1;height:26px}
/* project group: a thin summary bar spanning the project's task range, then its tasks */
.pgroup{position:relative;margin-top:22px;padding:2px 0 8px}
.pgroup:first-of-type{margin-top:0;padding-top:0}
/* project header: name on its own line, the progress bar on the line below it */
/* top-align so the row's extra height (the gap before the first task) stays BELOW the bar,
instead of being centered and pushing the project name down away from the ribbon */
.gsumrow{min-height:30px;align-items:flex-start}
/* project bar: a base track = the whole project duration, with a progress fill over it
(auto-computed from task completion weighted by size) */
.gsumline{position:absolute;top:18px;height:9px;border-radius:999px;background:#ccd4e2;pointer-events:none;z-index:0}
.gsumfill{position:absolute;top:18px;height:9px;border-radius:999px;background:#3b6ef6;pointer-events:none;z-index:1;min-width:0}
.gsumlbl{position:absolute;top:0;z-index:2;font-size:12.5px;font-weight:700;color:var(--ink-2);
background:none;padding:0 2px 0 1px;white-space:nowrap;cursor:grab;
touch-action:none;-webkit-user-select:none;user-select:none}
.gsumlbl:hover{color:var(--ink)}
.gsumpct{position:absolute;top:16px;transform:translateX(7px);font-size:11px;font-weight:700;
color:var(--ink-3);white-space:nowrap;pointer-events:none}
.pgroup.gdropover .gsumline{background:var(--accent)}
.pgroup.insb{box-shadow:0 -3px 0 0 var(--accent)}
.pgroup.insa{box-shadow:0 3px 0 0 var(--accent)}
.ptask.insb{box-shadow:0 -2px 0 0 var(--accent)}
.ptask.insa{box-shadow:0 2px 0 0 var(--accent)}
.gbar.gdropover{box-shadow:0 0 0 3px var(--accent)}
.pgroup.gdropover{background:var(--accent-soft);border-radius:12px}
.gbar{position:absolute;top:50%;transform:translateY(-50%);height:20px;border-radius:999px;min-width:16px;
display:flex;align-items:center;gap:6px;padding:0 12px 0 4px;overflow:hidden;
box-shadow:0 2px 7px rgba(20,24,35,.16);
cursor:grab;touch-action:none;-webkit-user-select:none;user-select:none;-webkit-touch-callout:none}
.gbar:hover{box-shadow:0 3px 11px rgba(20,24,35,.24)}
.gbar:active{cursor:grabbing}
/* owner avatar fills the round left cap with an even ~4px margin on every side, so the
space around it reads the same top, bottom and left regardless of bar height */
.gava{flex:none;position:relative;z-index:2;line-height:0}
.gava .av{box-shadow:0 0 0 2px rgba(255,255,255,.92)}
.gbar.gsz-s .gava .av{width:18px;height:18px;font-size:8.5px}
.gbar.gsz-m .gava .av{width:26px;height:26px;font-size:11px}
.gbar.gsz-l .gava .av{width:36px;height:36px;font-size:14px}
.gbar.gsz-xl .gava .av{width:48px;height:48px;font-size:18px}
.gbar.gsz-s{height:26px}.gbar.gsz-m{height:34px}.gbar.gsz-l{height:44px}.gbar.gsz-xl{height:56px}
.gbar .ttl{font-size:12px;font-weight:700;color:#fff;white-space:nowrap;overflow:hidden;
text-overflow:ellipsis;pointer-events:none;flex:1;min-width:0;text-align:left;padding-left:1px}
.gbar.gsz-s .ttl{font-size:10.5px}.gbar.gsz-l .ttl{font-size:13px}.gbar.gsz-xl .ttl{font-size:14px}
/* title rendered to the right of a too-narrow bar (plain black text, no background) */
.gttlout{position:absolute;top:50%;transform:translateY(-50%);font-size:12px;font-weight:700;
color:var(--ink);white-space:nowrap;pointer-events:none;z-index:3}
.gdot{flex:none;position:relative;z-index:2;width:16px;height:16px;border-radius:50%;padding:0;
border:2px solid rgba(255,255,255,.9);color:#fff;font-size:9px;
display:flex;align-items:center;justify-content:center;
opacity:0;width:0;margin:0;border-width:0;transition:opacity .12s}
.gbar:hover .gdot{opacity:1;width:16px;border-width:2px;margin-right:0}
.gbar.gsz-s:hover .gdot{width:13px}
.gdot.on{opacity:1;width:16px;border-width:2px;background:#fff;border-color:#fff;color:var(--green)}
.gbar.gsz-s .gdot{width:13px;height:13px}
.gavb{flex:none;position:relative;z-index:2;margin-left:auto;width:18px;height:18px;border-radius:50%;
background:#fff;font-size:8.5px;font-weight:800;pointer-events:none;
display:flex;align-items:center;justify-content:center}
.gbar.gsz-s .gavb{width:14px;height:14px;font-size:7px}
/* subtask-expand arrow sits OUTSIDE the bar, to its right */
.gexpw{position:absolute;top:50%;transform:translateY(-50%);z-index:4}
.gexp{width:26px;height:26px;border-radius:50%;padding:0;background:none;color:var(--ink-3);font-size:16px;
display:flex;align-items:center;justify-content:center}
.gexp:hover{color:var(--accent)}
/* subtasks are OUTLINED (light fill, coloured border + text) vs solid filled tasks */
.gbar.gsub{box-shadow:0 1px 4px rgba(20,24,35,.12)}
.gbar.gsub .ttl{color:inherit;font-size:11px}
.gbar.gsub .gava .av{width:15px;height:15px;font-size:7.5px;box-shadow:0 0 0 2px #fff}
/* subtask bars have a WHITE fill, so the white done-dot was invisible on them — give the dot
the bar's own colour on hover, and a solid green tick once checked */
.gbar.gsub .gdot{border-color:currentColor;color:currentColor}
.gbar.gsub .gdot.on{background:var(--green);border-color:var(--green);color:#fff}
.pflat{padding:12px 0 6px}
.gbar.gdone{opacity:.4}
.gbar.gdone .ttl{text-decoration:line-through}
.ear{position:absolute;top:0;bottom:0;width:13px;cursor:ew-resize;touch-action:none;
opacity:0;transition:opacity .15s}
.gbar:hover .ear,.gbar.dragging .ear{opacity:1}
.ear.el{left:0}.ear.er{right:0}
.ear::after{content:"";position:absolute;top:5px;bottom:5px;width:3px;border-radius:2px;background:rgba(255,255,255,.75)}
.ear.el::after{left:4px}.ear.er::after{right:4px}
/* month row over a tight day row, with a shadow divider below. The rows are transparent so the
separator lines show through: week lines rise into the day row, month lines all the way up.
Labels sit in these rows (z-index 6) so they always paint on top of the lines. */
.gmonths{position:relative;height:17px;background:transparent;z-index:6}
.gmonth{position:absolute;top:0;transform:translateX(-50%);font-size:13.5px;font-weight:800;color:var(--ink);white-space:nowrap}
.gaxis{height:22px;border-bottom:1px solid #e7e9ee;box-shadow:0 5px 8px -6px rgba(20,24,35,.16);
background:transparent;position:relative;z-index:6}
.gdaylbl{position:absolute;top:50%;transform:translate(-50%,-50%);
display:flex;align-items:center;gap:5px;white-space:nowrap}
.gdaylbl i{font-style:normal}
.gdaylbl .wd{font-size:12px;font-weight:600;color:var(--ink-3)}
.gdaylbl .num{font-size:12px;font-weight:700;color:var(--ink-2)}
.gdaylbl.wknd .wd,.gdaylbl.wknd .num{opacity:.45}
.gdaylbl.today{font-size:12.5px;font-weight:800;color:var(--accent);letter-spacing:.005em}
/* on-the-go quick menu (click or right-click a bar) */
.barmenu{position:fixed;z-index:120;display:none;background:var(--surface);border-radius:14px;
box-shadow:0 16px 48px rgba(20,24,35,.28);border:1px solid var(--line);padding:9px;width:236px}
.barmenu.show{display:block}
.bm-title{width:100%;font:inherit;font-size:14px;font-weight:700;border:none;background:#f4f6f9;border-radius:9px;
padding:8px 10px;color:var(--ink);box-sizing:border-box;margin-bottom:4px}
.bm-title:focus{outline:none;box-shadow:0 0 0 2px var(--accent-soft)}
.bm-item{display:block;width:100%;text-align:left;padding:9px 8px;border-radius:8px;font-size:14px;font-weight:600;color:var(--ink)}
.bm-item:hover{background:#f0f2f6}
.bm-item.on{color:var(--green)}
.bm-del{color:var(--red)}.bm-del:hover{background:var(--red-soft)}
.bm-lbl{font-size:10.5px;font-weight:800;text-transform:uppercase;letter-spacing:.05em;color:var(--ink-3);margin:7px 4px 4px}
.bm-chips{display:flex;flex-wrap:wrap;gap:5px;padding:0 2px 2px}
.bm-chip{width:28px;height:28px;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;border:2px solid transparent}
.bm-chip.on{border-color:var(--accent)}
.bm-rw{display:flex;align-items:center;gap:8px;padding:5px 4px}
.bm-rw .bm-lbl{margin:0;width:40px;flex:none}
.bm-rw input[type=date],.bm-rw select{flex:1;min-width:0;font:inherit;font-size:13px;border:1px solid var(--line);
border-radius:8px;padding:5px 8px;background:var(--bg);color:var(--ink)}
.bm-rw .szseg{flex:1;justify-content:space-between}
/* the "today" band: ends with a hard vertical line — left of it = needs doing today */
/* today = a wider column with a faint tint, no box */
/* today tint + week shading stay in the chart body (below the 41px header:
.gmonths 17 + .gaxis 22 + its 2px margin-bottom) */
.gband{position:absolute;top:39px;bottom:0;background:#dceafe;opacity:1;pointer-events:none;z-index:0}
.gwkband{position:absolute;top:39px;bottom:0;background:rgba(154,161,172,.07);pointer-events:none}
/* separators: week lines start at the day row (17px), month lines at the very top, faint day
lines stay in the body (41px) so only weeks/months reach up into the header */
.gweek{position:absolute;top:17px;bottom:0;width:1px;background:#cdd3dd;pointer-events:none}
.gmonthline{position:absolute;top:0;bottom:0;width:1px;background:#c2c8d2;pointer-events:none;z-index:1}
.gday{position:absolute;top:39px;bottom:0;width:1px;background:#edeff4;pointer-events:none}
#gtip{position:fixed;z-index:120;display:none;background:var(--ink);color:#fff;font-size:12.5px;font-weight:600;
padding:7px 12px;border-radius:9px;box-shadow:0 10px 28px rgba(20,24,35,.35);
pointer-events:none;max-width:360px;line-height:1.35}
.gaxis span{position:absolute;top:0;font-size:11px;color:var(--ink-3);transform:translateX(-50%);white-space:nowrap;font-weight:600}
.frow{display:flex;align-items:center;gap:12px;padding:13px 0;border-bottom:1px solid var(--line);font-size:14.5px}
.frow .lbl{width:92px;color:var(--ink-3);font-weight:600;font-size:13px;flex:none}
.subhdr{font-size:13px;font-weight:700;text-transform:uppercase;letter-spacing:.06em;color:var(--ink-3);margin:20px 0 8px}
.bigbar{margin:16px 0 4px}
.bigbar .bar{height:10px}
.bigbar .nums{display:flex;justify-content:space-between;font-size:13px;color:var(--ink-2);margin-top:7px}
.hint{font-size:13px;color:var(--ink-3);text-align:center;margin-top:26px}
/* ---------- voice capture ---------- */
.micfab{
position:fixed;right:26px;bottom:calc(env(safe-area-inset-bottom) + 26px);z-index:65;
width:64px;height:64px;border-radius:50%;background:var(--accent);color:#fff;font-size:26px;
box-shadow:0 6px 22px rgba(59,110,246,.45);display:flex;align-items:center;justify-content:center;
}
.micfab:active{transform:scale(.92)}
.micfab.live{background:var(--red);box-shadow:0 6px 22px rgba(226,72,61,.5);animation:pulse 1.1s infinite}
.vmodal{position:fixed;inset:0;z-index:60;display:none;align-items:center;justify-content:center;
padding:20px;background:rgba(20,24,35,.4)}
.vmodal.show{display:flex}
/* capture window: floating, docked bottom-right ABOVE the mic; no dimming, mic stays clickable (it sits at a higher z-index) */
#vmodal{background:transparent}
#vmodal.show{justify-content:flex-end;align-items:flex-end;padding:0 18px 102px 0}
/* minimized chat: collapse the window to a small restore pill above the mic */
.capmin{font-size:18px;line-height:1;font-weight:800;padding:5px 11px 8px}
.caprestore{display:none;align-items:center;gap:9px;background:var(--surface);color:var(--ink);
border-radius:15px;box-shadow:0 16px 50px rgba(20,24,35,.28);border:1px solid var(--line);
padding:14px 19px;font-size:14px;font-weight:700;cursor:pointer}
.caprestore:hover{background:#f6f7f9}
.cr-dot{width:9px;height:9px;border-radius:50%;background:var(--accent);flex:none}
#vmodal.min .capwrap{display:none}
#vmodal.min .caprestore{display:inline-flex}
.vbox{background:var(--surface);border-radius:22px;box-shadow:0 24px 80px rgba(20,24,35,.3);
width:min(560px,94vw);max-height:86vh;overflow-y:auto;padding:26px;position:relative}
.vbox h3{font-size:19px;font-weight:800;margin-bottom:4px}
.vbox .vsub{font-size:13.5px;color:var(--ink-2);margin-bottom:18px}
/* ---------- conversational capture ---------- */
.newbtn{background:var(--accent);color:#fff;font-weight:700;font-size:13.5px;
padding:8px 15px;border-radius:10px;box-shadow:0 2px 8px rgba(59,110,246,.3)}
.newbtn:active{transform:scale(.96)}
/* two-pane capture: creation card (middle) + chat (right), separated */
.capwrap{display:flex;justify-content:flex-end;gap:18px;align-items:stretch;width:min(960px,96vw);max-height:88vh}
.cappanel{background:var(--surface);border-radius:20px;box-shadow:0 24px 80px rgba(20,24,35,.3);
padding:22px 24px;display:flex;flex-direction:column;position:relative;min-height:0}
.cappanel.build{flex:1;min-width:0;overflow-y:auto}
.cappanel.chatp{width:380px;flex:none;min-width:0}
.cappanel h3{font-size:18px;font-weight:800;margin-bottom:14px}
@media (max-width:820px){
.capwrap{flex-direction:column;width:min(560px,96vw);overflow-y:auto}
.cappanel.chatp{width:auto}
.chat{max-height:30vh}
}
.captasks{flex:1;display:flex;flex-direction:column;min-width:0}
.tcard{padding:12px 2px;border-bottom:1px solid var(--line)}
.tcard:last-of-type{border-bottom:none}
.tc-top{display:flex;align-items:center;gap:8px}
.tc-title{flex:1;min-width:0;font:inherit;font-size:14.5px;font-weight:700;border:none;background:transparent;color:var(--ink)}
.tc-title:focus{outline:none}
.tc-x{flex:none;width:24px;height:24px;border-radius:7px;color:var(--ink-3);font-size:13px;opacity:.5;
display:inline-flex;align-items:center;justify-content:center}
.tc-top:hover .tc-x,.tc-sub:hover .tc-x{opacity:1}
.tc-x:hover{color:var(--red);background:var(--red-soft)}
.tc-meta{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin-top:9px}
/* owner pill with a colored dot */
.opill{display:inline-flex;align-items:center;gap:6px;background:#eef0f4;border-radius:999px;padding:4px 11px 4px 9px}
.opill .odot{width:9px;height:9px;border-radius:50%;background:var(--oc);flex:none}
.opill select{border:none;background:transparent;font:inherit;font-size:12px;font-weight:600;color:var(--ink-2);
-webkit-appearance:none;appearance:none;max-width:96px}
.opill select:focus{outline:none}
/* due pill */
.duepill{display:inline-flex;align-items:center;background:#eef0f4;border-radius:999px;padding:3px 11px}
.duepill input{border:none;background:transparent;font:inherit;font-size:12px;font-weight:600;color:var(--ink-2);width:104px}
.duepill input:focus{outline:none}
.duepill.sm input{width:96px;font-size:11.5px}
/* segmented t-shirt size */
.szseg{display:inline-flex;background:#eef0f4;border-radius:999px;padding:2px}
.szb{padding:3px 10px;border-radius:999px;font-size:11px;font-weight:800;color:var(--ink-3);line-height:1.5}
.szb.on{background:var(--accent);color:#fff}
.tc-sub{display:flex;align-items:center;gap:7px;margin-top:8px;padding-left:14px;position:relative}
.tc-sub::before{content:"";position:absolute;left:3px;top:4px;bottom:4px;width:2px;background:var(--line);border-radius:2px}
.tc-subt{flex:1;min-width:0;font:inherit;font-size:13px;font-weight:600;border:none;background:transparent;color:var(--ink)}
.tc-subt:focus{outline:none}
.addsubrow{display:flex;align-items:center;gap:7px;margin-top:8px;padding-left:14px}
.addsubinput{flex:1;border:1.5px solid var(--line);border-radius:9px;padding:6px 11px;font:inherit;font-size:12.5px;background:var(--bg);color:var(--ink)}
.addsubinput:focus{outline:none;border-color:var(--accent)}
.addsubbtn{flex:none;font-size:12px;font-weight:700;color:var(--accent);background:var(--accent-soft);border-radius:8px;padding:6px 11px}
.capt-empty{font-size:12.5px;color:var(--ink-3);padding:4px 0}
.capt-add{display:flex;gap:6px;align-items:center;padding:12px 0 2px}
.capt-add input{flex:1;border:1.5px solid var(--line);border-radius:10px;padding:8px 12px;font:inherit;font-size:13.5px;background:var(--bg);color:var(--ink)}
.capt-add input:focus{outline:none;border-color:var(--accent)}
.mini{flex:none;width:30px;height:30px;border-radius:9px;background:var(--accent-soft);color:var(--accent);font-size:16px;font-weight:700;
display:inline-flex;align-items:center;justify-content:center}
.mini:active{transform:scale(.92)}
.cappanel.chatp .caprow{flex:none} /* keep the mic row pinned & visible */
.crow.col{flex-direction:column;align-items:stretch;gap:7px}
.caphead{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:12px}
.ttsbtn{font-size:12px;font-weight:700;color:var(--ink-2);background:#eef0f4;border-radius:8px;padding:7px 11px}
.ttsbtn.on{background:var(--accent-soft);color:var(--accent)}
.chat{display:flex;flex-direction:column;gap:9px;max-height:38vh;overflow-y:auto;padding:2px}
.bub{max-width:84%;padding:10px 14px;border-radius:15px;font-size:14.5px;line-height:1.4}
.bub.bot{background:#eef0f4;color:var(--ink);border-bottom-left-radius:5px;align-self:flex-start}
.bub.me{background:var(--accent);color:#fff;border-bottom-right-radius:5px;align-self:flex-end}
.bub.think{color:var(--ink-3);font-style:italic}
.capcard{margin:14px 0 4px;border:1px solid var(--line);border-radius:14px;padding:6px 14px;display:none}
.capcard.show{display:block}
.capcard .crow{display:flex;align-items:center;gap:10px;padding:9px 0;border-bottom:1px solid var(--line);font-size:14px}
.capcard .crow:last-child{border-bottom:none}
.capcard .clbl{width:74px;flex:none;color:var(--ink-3);font-weight:600;font-size:12.5px}
.capcard .crow.miss{background:var(--amber-soft);margin:0 -14px;padding-left:14px;padding-right:14px;border-radius:8px}
.capcard .crow.miss .clbl{color:var(--amber)}
.capcard select,.capcard input{flex:1;font:inherit;font-size:14px;border:none;background:transparent;color:var(--ink);
min-height:30px;-webkit-appearance:none;appearance:none}
.capcard select:focus,.capcard input:focus{outline:none}
.ownerchips{flex:1;display:flex;flex-wrap:wrap;gap:6px;padding:3px 0}
.ochip{display:inline-flex;align-items:center;gap:6px;font-size:12.5px;font-weight:600;color:var(--ink-2);
background:#eef0f4;border:1.5px solid transparent;border-radius:999px;padding:4px 11px 4px 4px}
.ochip.on{background:var(--accent-soft);color:var(--accent);border-color:var(--accent)}
.ochip:active{transform:scale(.95)}
.capcard .cval{flex:1;color:var(--ink);font-weight:600}
.capcard .cval.empty{color:var(--ink-3);font-weight:400}
.caprow{display:flex;align-items:center;gap:9px;margin-top:14px}
.micbtn{flex:none;width:46px;height:46px;border-radius:50%;background:var(--accent-soft);color:var(--accent);
font-size:21px;display:flex;align-items:center;justify-content:center}
.micbtn.live{background:var(--red-soft);color:var(--red);animation:pulse 1.1s infinite}
.capinput{flex:1;min-height:46px;border:1.5px solid var(--line);border-radius:13px;padding:0 14px;
font:inherit;font-size:15px;background:var(--bg);color:var(--ink)}
.capinput:focus{outline:none;border-color:var(--accent)}
.capsend{flex:none;padding:0 18px;height:46px;border-radius:13px;background:#eef0f4;color:var(--ink-2);font-weight:700;font-size:14px}
.capclip{flex:none;width:44px;height:46px;border-radius:13px;background:#eef0f4;color:var(--ink-2);
display:inline-flex;align-items:center;justify-content:center;cursor:pointer}
.capclip:hover{background:#e4e7ec;color:var(--ink)}
.capclip:active{transform:scale(.94)}
.capactions{display:flex;gap:10px;margin-top:14px}
.capactions button{flex:1;min-height:46px;border-radius:13px;font-size:15px;font-weight:700}
.capactions .create{background:var(--accent);color:#fff}
.capactions .create:disabled{opacity:.4}
.capactions .ghost{background:#eef0f4;color:var(--ink-2)}
.capactions button:active{transform:scale(.97)}
.micbig{
width:84px;height:84px;border-radius:50%;background:var(--accent-soft);color:var(--accent);
font-size:34px;display:flex;align-items:center;justify-content:center;margin:6px auto 14px;
}
.micbig.live{background:var(--red-soft);color:var(--red);animation:pulse 1.1s infinite}
@keyframes pulse{0%{box-shadow:0 0 0 0 rgba(226,72,61,.35)}70%{box-shadow:0 0 0 22px rgba(226,72,61,0)}100%{box-shadow:0 0 0 0 rgba(226,72,61,0)}}
.vtranscript{
width:100%;min-height:84px;border:1.5px solid var(--line);border-radius:14px;padding:14px;
font:inherit;font-size:16px;resize:none;background:var(--bg);color:var(--ink);
}
.vtranscript:focus{outline:none;border-color:var(--accent)}
.vsamples{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}
.vsamples button{
font-size:12.5px;font-weight:600;color:var(--accent);background:var(--accent-soft);
padding:8px 13px;border-radius:999px;text-align:left;
}
.vactions{display:flex;gap:10px;margin-top:20px}
.vbtn{flex:1;min-height:48px;border-radius:13px;font-size:15.5px;font-weight:700}
.vbtn.primary{background:var(--accent);color:#fff}
.vbtn.ghost{background:#eef0f4;color:var(--ink-2)}
.vbtn:active{transform:scale(.97)}
.draft .frow input,.draft .frow select{
flex:1;font:inherit;font-size:15px;border:none;background:transparent;color:var(--ink);
min-height:34px;-webkit-appearance:none;appearance:none;
}
.draft .frow input:focus,.draft .frow select:focus{outline:none}
.aiNote{font-size:12px;color:var(--ink-3);margin-top:10px;display:flex;align-items:center;gap:6px}
.vbtn:disabled{opacity:.35}
.frow.flash{animation:fieldflash 1s ease}
@keyframes fieldflash{0%{background:var(--accent-soft)}100%{background:transparent}}
.subrow{display:flex;align-items:center;gap:8px;padding:7px 0;border-bottom:1px solid var(--line)}
.subrow .st{flex:1;font-size:14.5px;font-weight:500;min-width:0}
.subrow .mini{width:38px;height:38px;flex:none;border-radius:9px;background:#eef0f4;color:var(--ink-2);font-size:13px}
.subrow .mini:disabled{opacity:.25}
.subadd{display:flex;gap:8px;margin-top:10px}
.subadd input{flex:1;border:1.5px solid var(--line);border-radius:10px;padding:10px 12px;font:inherit;font-size:14.5px;background:var(--bg);color:var(--ink)}
.subadd input:focus{outline:none;border-color:var(--accent)}
.subadd button{flex:none;padding:0 18px;border-radius:10px;background:#eef0f4;color:var(--ink-2);font-weight:700;font-size:14px}
.subown{flex:none;max-width:118px;font:inherit;font-size:12.5px;font-weight:600;color:var(--ink-2);
background:#eef0f4;border:none;border-radius:8px;padding:8px 9px;-webkit-appearance:none;appearance:none}
.fcheck{flex:none;width:22px;height:22px;border-radius:50%;background:var(--green);color:#fff;font-size:12px;
display:none;align-items:center;justify-content:center}
.frow.filled .fcheck{display:flex;animation:pop .3s cubic-bezier(.34,1.56,.64,1)}
@keyframes pop{0%{transform:scale(.2)}70%{transform:scale(1.18)}100%{transform:scale(1)}}
.langbtn{font-size:12px;font-weight:800;width:64px;padding:6px 0;border-radius:8px;
background:#eef0f4;color:var(--ink-2);letter-spacing:.05em}
/* ---------- phones: slimmer rail, app-like full-height chart, compact controls ---------- */
@media (max-width:740px){
body{padding-left:48px}
.sidebar{width:48px;gap:5px;padding:12px 0}
.sblogo{width:26px;height:26px;margin-bottom:8px}
.sbicon{width:38px;height:38px}
.sbsearchpop{left:56px;width:min(290px,calc(100vw - 64px))}
.sbsettingspop{left:56px;width:min(280px,calc(100vw - 64px))}
/* the chart fills the screen and scrolls inside itself, like a native app */
main{height:100vh;height:100dvh;overflow:hidden;display:flex;flex-direction:column;
padding:8px 10px calc(env(safe-area-inset-bottom) + 8px)}
.cols{flex:1;min-height:0}
.cols section{min-height:0;display:flex;flex-direction:column;flex:1}
.gantt{flex:1;min-height:0;overflow:hidden;display:flex;flex-direction:column;padding:4px 6px 14px}
#gantt{flex:1;min-height:0;display:flex;flex-direction:column}
.gscroll{flex:1;min-height:0;overflow:auto}
/* shrink the floating cluster so it doesn't swallow the top-right of the chart */
.gfloat{gap:6px;right:8px}
.gpeople{padding:2px;gap:1px}
.gpeople button{width:30px;height:28px}
.gpeople .av{width:23px;height:23px;font-size:9px}
.gzoom button{padding:6px 9px;font-size:11.5px;min-height:30px}
.gficon{width:31px;height:31px}
.gficon svg{width:17px;height:17px}
/* capture + team sheets use the full width on a phone */
.micfab{right:18px;bottom:calc(env(safe-area-inset-bottom) + 18px);width:56px;height:56px;font-size:23px}
.caprestore{font-size:13px;padding:12px 16px}
}
/* ---------- transcript review & approve ---------- */
.rvbox{max-height:88vh;overflow-y:auto}
.rv-banner{font-size:14px;font-weight:700;color:var(--ink);background:var(--accent-soft);
border-radius:12px;padding:11px 14px;margin:4px 0 14px}
.rvproj{border:1px solid var(--line);border-radius:14px;padding:12px 14px;margin-bottom:12px;transition:opacity .15s}
.rvproj.off{opacity:.45}
.rv-prow{display:flex;align-items:center;gap:10px}
.rv-acc{flex:none;width:22px;height:22px;border-radius:7px;border:2px solid #cdd2da;background:var(--surface);
display:inline-flex;align-items:center;justify-content:center;color:#fff;font-size:13px;cursor:pointer}
.rv-acc.on{background:var(--green);border-color:var(--green)}
.rv-name{flex:1;min-width:0;font:inherit;font-size:15px;font-weight:800;border:none;background:transparent;color:var(--ink)}
.rv-name:focus{outline:none;border-bottom:2px solid var(--accent)}
.rv-badge{font-size:10px;font-weight:800;text-transform:uppercase;letter-spacing:.04em;border-radius:999px;padding:3px 9px;flex:none}
.rv-badge.eng{background:#eef0f4;color:var(--ink-2)}
.rv-badge.crm{background:var(--amber-soft);color:var(--amber)}
.rvtasks{margin:9px 0 0;padding-left:32px;display:flex;flex-direction:column;gap:8px}
.rvtask{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.rvtask.off{opacity:.4}
.rv-tt{flex:1;min-width:130px;font:inherit;font-size:13.5px;font-weight:600;border:none;background:transparent;
color:var(--ink);border-bottom:1px solid transparent}
.rv-tt:focus{outline:none;border-bottom-color:var(--accent)}
.rv-meta{display:inline-flex;align-items:center;gap:6px;flex-wrap:wrap}
.rv-meta select,.rv-meta input[type=date]{font:inherit;font-size:12px;border:1px solid var(--line);
border-radius:8px;padding:4px 7px;background:var(--bg);color:var(--ink)}
.rvsub{flex-basis:100%;display:flex;align-items:center;gap:7px;padding-left:18px;margin-top:2px}
.rvsub .rv-acc{width:18px;height:18px;font-size:11px;border-radius:6px}
.rvsub .rv-tt{font-size:12.5px;font-weight:500;min-width:90px}
</style>
</head>
<body>
<aside class="sidebar">
<div class="sblogo"></div>
<button class="sbicon" id="sbsearch" title="Search tasks" onclick="toggleSearch()">
<svg width="20" height="20" viewBox="0 0 20 20" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round"><circle cx="9" cy="9" r="5.4"/><path d="M13.4 13.4 17 17"/></svg>
</button>
<button class="sbicon active" title="Timeline">
<svg width="20" height="20" viewBox="0 0 20 20" fill="none" stroke="currentColor" stroke-width="1.9" stroke-linecap="round"><path d="M3.5 5h9"/><path d="M3.5 10h13"/><path d="M3.5 15h6"/></svg>
</button>
<button class="sbicon" title="Team photos" onclick="openTeam()">
<svg width="20" height="20" viewBox="0 0 20 20" fill="none" stroke="currentColor" stroke-width="1.7"><circle cx="7.5" cy="7" r="2.7"/><path d="M2.6 16.4c0-2.7 2.2-4.4 4.9-4.4s4.9 1.7 4.9 4.4"/><path d="M13.4 5.1a2.4 2.4 0 0 1 0 4.6M14.4 12.2c2 .4 3.3 1.9 3.3 4.2"/></svg>
</button>
<button class="sbicon" title="New project" onclick="addProject()">
<svg width="20" height="20" viewBox="0 0 20 20" fill="none" stroke="currentColor" stroke-width="1.7" stroke-linecap="round" stroke-linejoin="round"><path d="M3.5 6.2h5.2l1.4 1.6h6.4v8.6a1.6 1.6 0 0 1-1.6 1.6H5.1a1.6 1.6 0 0 1-1.6-1.6V6.2z"/><path d="M10 10.2v4.2M8 12.3h4"/></svg>
</button>
<button class="sbicon" title="New (talk to assistant)" onclick="micFabTap()">
<svg width="20" height="20" viewBox="0 0 20 20" fill="none" stroke="currentColor" stroke-width="1.9" stroke-linecap="round"><path d="M10 4.5v11M4.5 10h11"/></svg>
</button>
<button class="sbicon" title="Process a conversation transcript" onclick="openTranscript()">
<svg width="20" height="20" viewBox="0 0 20 20" fill="none" stroke="currentColor" stroke-width="1.7" stroke-linecap="round" stroke-linejoin="round"><rect x="4" y="2.6" width="12" height="14.8" rx="2"/><path d="M7 6.6h6M7 10h6M7 13.4h3.5"/></svg>
</button>
<button class="sbicon sbsettings" title="Settings" onclick="toggleSettings()">
<svg width="20" height="20" viewBox="0 0 20 20" fill="none" stroke="currentColor" stroke-width="1.55" stroke-linecap="round" stroke-linejoin="round"><circle cx="10" cy="10" r="2.6"/><path d="M10 2.6v2.2M10 15.2v2.2M2.6 10h2.2M15.2 10h2.2M4.7 4.7l1.6 1.6M13.7 13.7l1.6 1.6M15.3 4.7l-1.6 1.6M6.3 13.7l-1.6 1.6"/></svg>
</button>
<button class="sbicon sbtoggle" title="Hide sidebar" onclick="toggleSidebar()">
<svg width="20" height="20" viewBox="0 0 20 20" fill="none" stroke="currentColor" stroke-width="1.7" stroke-linecap="round" stroke-linejoin="round"><path d="M11 5l-5 5 5 5"/><path d="M15 5l-5 5 5 5"/></svg>
</button>
<div class="sbpop sbsearchpop" id="sbsearchpop">
<input id="searchbox" placeholder="Search tasks…" oninput="doSearch()"
onblur="setTimeout(()=>{const b=document.getElementById('searchres');if(b)b.style.display='none';},250)">
<div id="searchres"></div>
</div>
<div class="sbpop sbsettingspop" id="sbsettingspop">
<div class="sbset-h">Settings</div>
<label class="sbset-l">OpenAI API key</label>
<input id="setKeyInput" type="password" placeholder="sk-…" autocomplete="off" oninput="setKeyVal(this.value)">
<div class="sbset-note">Stored only in this browser session, sent only to OpenAI.</div>
<button class="sbset-btn" onclick="closeSettings();openTeam()">Manage team photos</button>
</div>
</aside>
<button class="sbshow" id="sbshow" title="Show sidebar" onclick="toggleSidebar()">
<svg width="20" height="20" viewBox="0 0 20 20" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round"><path d="M3.5 6h13M3.5 10h13M3.5 14h13"/></svg>
</button>
<main>
<div class="cols">
<section>
<div class="gantt">
<!-- floating control cluster, top-right of the chart: every control is a single
pictogram. Owners + timeline roll their options out to the LEFT when clicked;
the toggles flash a label; the legend rolls down. -->
<div class="gfloat" id="gfloat">
<div class="gficons">
<div class="gfctl gfexp gleft" id="ctl-people">
<button class="gficon" id="gpeoplebtn" title="Filter by owner" onclick="toggleFlyout('people')">
<svg width="19" height="19" viewBox="0 0 20 20" fill="none" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round"><circle cx="7.2" cy="7.4" r="2.6"/><path d="M2.6 16c0-2.6 2-4.3 4.6-4.3s4.6 1.7 4.6 4.3"/><path d="M13.2 5.3a2.3 2.3 0 0 1 0 4.6M14.2 11.8c1.9.4 3.1 1.8 3.1 4.1"/></svg>
</button>
<div class="gfly gfleft"><div class="seg gpeople" id="gfilterPop"></div></div>
</div>
<div class="gfctl gfexp gleft" id="ctl-zoom">
<button class="gficon" id="gzoombtn" title="Timeline range" onclick="toggleFlyout('zoom')">
<svg width="19" height="19" viewBox="0 0 20 20" fill="none" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round"><rect x="3" y="4.6" width="14" height="12" rx="2"/><path d="M3 8.2h14M7 3.2v2.6M13 3.2v2.6"/></svg>
</button>
<div class="gfly gfleft"><div class="seg gzoom" id="gzoom"></div></div>
</div>
<div class="gfctl gtog" id="ctl-focus">
<button class="gficon gfocus" id="gfocusbtn" title="Today's priorities" onclick="toggleFocus()">
<svg width="19" height="19" viewBox="0 0 20 20" fill="none" stroke="currentColor" stroke-width="1.6"><rect x="3" y="4.3" width="14" height="12.4" rx="2.3"/><path d="M3 8.1h14"/><path d="M6.8 4.3V2.7M13.2 4.3V2.7" stroke-linecap="round"/><rect x="5.8" y="10.4" width="3.1" height="3.1" rx="0.7" fill="currentColor" stroke="none"/></svg>
</button>
<div class="gfly"><span class="gfdesc" id="desc-focus">Today's priorities</span></div>
</div>
<div class="gfctl gtog" id="ctl-done">
<button class="gficon" id="gdonebtn" title="Show done tasks" onclick="toggleShowDone()">
<svg width="19" height="19" viewBox="0 0 20 20" fill="none" stroke="currentColor" stroke-width="1.6"><circle cx="10" cy="10" r="7.2"/><path d="M6.6 10.2l2.2 2.2 4.7-4.9" stroke-linecap="round" stroke-linejoin="round"/></svg>
</button>
<div class="gfly"><span class="gfdesc" id="desc-done">Show done tasks</span></div>
</div>
<div class="gfctl gtog" id="ctl-subs">
<button class="gficon" id="gsubbtn" title="Show subtasks" onclick="toggleSubs()">
<svg width="19" height="19" viewBox="0 0 20 20" fill="none" stroke="currentColor" stroke-width="1.7" stroke-linecap="round" stroke-linejoin="round"><path d="M4 4.5h12"/><path d="M8 10h8"/><path d="M8 15h8"/><path d="M5 8v7"/></svg>
</button>
<div class="gfly"><span class="gfdesc" id="desc-subs">Show subtasks</span></div>
</div>
<div class="gfctl gfexp gright" id="ctl-legend">
<button class="gficon" id="glegbtn" title="Legend" onclick="toggleFlyout('legend')">
<svg width="19" height="19" viewBox="0 0 20 20"><rect x="2.6" y="3" width="5.4" height="5.4" rx="1.4" fill="#ff5d5d"/><rect x="12" y="3" width="5.4" height="5.4" rx="1.4" fill="#2f80ff"/><rect x="2.6" y="11.6" width="5.4" height="5.4" rx="1.4" fill="#16c79a"/><rect x="12" y="11.6" width="5.4" height="5.4" rx="1.4" fill="#9b8cff"/></svg>
</button>
<div class="gfly gflegend" id="glegendPop">
<span><i style="background:#ff5d5d"></i>Late</span>
<span><i style="background:#2f80ff"></i>Due today</span>
<span><i style="background:#16c79a"></i>Work on today, due later</span>
<span><i style="background:#9b8cff"></i>Due later</span>
</div>
</div>
</div>
</div>
<div id="gantt"></div>
</div>
</section>
</div>
</main>
<button class="micfab" id="micFab" onclick="micFabTap()" aria-label="Talk to assistant">🎙</button>
<div class="vmodal" id="vmodal">
<div class="capwrap">
<div class="cappanel build">
<button class="closex" style="top:16px;right:16px" onclick="closeCapture()">✕</button>
<h3 id="buildTitle">New project</h3>
<div class="capcard" id="capCard"></div>
<div class="capactions" id="capActions"></div>
</div>
<div class="cappanel chatp">
<div class="caphead">
<h3>Assistant</h3>
<div style="display:flex;gap:8px">
<button class="ttsbtn" id="langBtn" onclick="toggleCapLang()" title="Input language (output is always English)">🌐 EN</button>
<button class="ttsbtn capmin" onclick="minimizeCapture()" title="Minimize">—</button>
</div>
</div>
<div class="chat" id="capChat"></div>
<div class="caprow">
<label class="capclip" title="Attach a meeting transcript (.txt, .md, .vtt, .srt)">
<input type="file" accept=".txt,.md,.vtt,.srt,.text,text/plain" style="display:none" onchange="attachTranscript(this)">
<svg width="19" height="19" viewBox="0 0 20 20" fill="none" stroke="currentColor" stroke-width="1.7" stroke-linecap="round" stroke-linejoin="round"><path d="M15.5 9.2l-5.4 5.4a3.3 3.3 0 0 1-4.7-4.7l6-6a2.2 2.2 0 0 1 3.1 3.1l-6 6a1.1 1.1 0 0 1-1.6-1.6l5.4-5.4"/></svg>
</label>
<input id="capInput" class="capinput" placeholder="Type, or tap the mic below…" autocomplete="off"
onkeydown="if(event.key==='Enter'){event.preventDefault();sendTurn();}">
<button class="capsend" id="capSend" onclick="sendTurn()">Send</button>
</div>
</div>
</div>
<button class="caprestore" id="capRestore" onclick="restoreCapture()"><span class="cr-dot"></span>Assistant — tap to expand</button>
</div>
<div class="vmodal" id="keyModal">
<div class="vbox" style="width:min(440px,94vw)">
<h3>Connect ChatGPT</h3>
<p class="vsub" style="margin:6px 0 14px">Paste your OpenAI API key to power capture with GPT. It’s kept only in this browser session — never written into the file — and is sent only to OpenAI. Leave blank to use the basic offline parser.</p>
<input id="keyInput" type="password" class="capinput" placeholder="sk-…" autocomplete="off" style="width:100%;box-sizing:border-box">
<div class="capactions">
<button class="ghost" onclick="skipKey()">Offline mode</button>
<button class="create" onclick="saveKey()">Save key</button>
</div>
<button class="ttsbtn" id="clearKey" onclick="clearKey()" style="margin-top:10px;display:none">Forget stored key</button>
</div>
</div>
<div class="vmodal" id="transcriptModal">
<div class="vbox" style="width:min(620px,94vw)">
<button class="closex" style="top:16px;right:16px" onclick="closeTranscript()">✕</button>
<h3>Process a conversation</h3>
<p class="vsub" style="margin:6px 0 12px">Paste a client or team conversation. I'll propose projects and tasks for you to review — nothing is created until you approve it.</p>
<textarea id="trInput" class="vtranscript" style="min-height:190px" placeholder="Paste the transcript here…"></textarea>
<div class="capactions">
<button class="ghost" onclick="closeTranscript()">Cancel</button>
<button class="create" id="trGo" onclick="runTranscript()">Process</button>
</div>
</div>
</div>
<div class="vmodal" id="reviewModal">
<div class="vbox rvbox" style="width:min(820px,96vw)">
<button class="closex" style="top:16px;right:16px" onclick="closeReview()">✕</button>
<h3>Review & approve</h3>
<div class="rv-banner" id="rvBanner"></div>
<div id="rvBody"></div>
<div class="capactions" id="rvActions" style="position:sticky;bottom:-2px;background:var(--surface);padding-top:12px"></div>
</div>
</div>
<div class="vmodal" id="teamModal">
<div class="vbox" style="width:min(440px,94vw)">
<button class="closex" style="top:16px;right:16px" onclick="closeTeam()">✕</button>
<h3>Team photos</h3>
<p class="vsub" style="margin:6px 0 14px">Upload a picture for each teammate. With no photo, their coloured initials are used.</p>
<div id="teamList"></div>
</div>
</div>
<div class="scrim" id="scrim" onclick="closeSheet()"></div>
<div class="tmodal" id="tmodal">
<div class="tbox">
<button class="closex" style="top:16px;right:16px" onclick="closeSheet()">✕</button>
<div class="crumb" id="dCrumb"></div>
<input class="dtitle" id="dTitle" aria-label="Task title">
<div id="dBody"></div>
</div>
</div>
<script type="module" src="src/app/main.js"></script>
</body>
</html>