Repository navigation
Expand file tree
/
Copy pathstyles.css
More file actions
1907 lines (1871 loc) · 181 KB
/
Copy pathstyles.css
File metadata and controls
1907 lines (1871 loc) · 181 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
/* styles.css keeps each component together, in this order (search for "==== <name>"): Base; Window chrome; Fields;
Table view; Filter row; Header buttons; Pills and their menus; Page scroll and sidebar; Rows; Timeline; Chat;
Row content; Agent badge and proposal buttons; Children, empty notes, group headings; Loading; Selection toolbar; Login;
Palette and toast; Key recorder; Dark theme; Presence; Motion; Help tour. docs/UI-PATTERNS.md lists the tokens and
the component classes. */
/* ==== Base: reset, tokens (motion, hue, theme), the page body ==== */
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
/* The Nucleo set built into the app draws its strokes at var(--nucleo-stroke-width, 1.5); the app's own glyphs are
1, so one declaration puts 3500 icons on the same line weight as the rest instead of rewriting them. */
html { --nucleo-stroke-width: 1; }
/* Motion: every move the app makes is one of a few patterns, and each is written once — the durations and curves
here, the keyframes in the Motion section at the end, and the moves a script plays in renderer/motion.js, which
reads these same numbers. Press (a button answers the finger), Surface (what floats over the page arrives and
leaves), Reveal (what opens in place), Glide (what changes place), Flash (a tint saying "this changed"), Pop (a
small thing changing state), Page (going somewhere) and Ambient (only while something works). Exits take the
quicker duration and the ease-in curve; entrances the base one and ease-out. Reduced motion is one switch: every
duration goes to nought, so a CSS move ends where it starts (and still reports that it ended), and motion.js
plays nothing at all. Endless loops stay behind their own no-preference guard, since nought would spin them. */
:root {
--dur-quick: 160ms; --dur-base: 240ms; --dur-slow: 420ms; --dur-flash: 800ms; --dur-loop: 1400ms; --stagger: 30ms;
--ease-out: cubic-bezier(.2, .8, .2, 1); --ease-in: cubic-bezier(.4, 0, 1, 1);
--ease-spring: cubic-bezier(.34, 1.56, .64, 1); --ease-move: cubic-bezier(.3, 0, .2, 1);
/* a damped spring (ratio .5), sampled: it overshoots a sixth of the way and settles, where a cubic curve can only
overshoot once and stop dead. What a pressed button springs back on (Press). */
--ease-settle: linear(0, 0.049, 0.172, 0.337, 0.517, 0.691, 0.844, 0.969, 1.061, 1.122, 1.154, 1.163, 1.154, 1.134, 1.107, 1.077, 1.049, 1.024, 1.004, 0.989, 0.98, 0.975, 0.973, 0.975, 0.978, 0.983, 0.988, 0.992, 0.996, 0.999, 1.002, 1.003, 1);
--flash-in: rgba(52, 168, 83, .16); --flash-out: rgba(217, 48, 37, .16); --flash-here: rgba(80, 143, 187, .2);
/* secondary text (meta, subtext, headings, hints, placeholders, done rows): the one grey for words, at WCAG AA —
5.7:1 on white, 4.6:1 on a grey pill under the pointer. Icons keep their lighter greys (3:1 is theirs); disabled rows too. */
--muted: #666;
--working-ink: #1b4a8f; /* an agent at work: the working badge's words, and the sweep over "Thinking..." in a chat */
--chat-width: 860px; /* a chat's column, its message box and question card: lines the eye can follow (renderer/chat.js) */
interpolate-size: allow-keywords; /* heights go to and from auto (a row arriving, a section closing) without measuring */
}
@media (prefers-reduced-motion: reduce) { :root { --dur-quick: 0ms; --dur-base: 0ms; --dur-slow: 0ms; --dur-flash: 0ms; --stagger: 0ms; --loader-wait: 0ms; } }
[data-theme="dark"] { --flash-in: rgba(90, 190, 120, .2); --flash-out: rgba(240, 90, 80, .2); --flash-here: rgba(110, 168, 220, .22); }
[data-theme="dark"] { --muted: #a0a5a8; --working-ink: #9dc2f5; } /* muted: 6.8:1 on the page, 6:1 on menus and ⌘K, 5.6:1 on the grey pills, 4.6:1 on the active ⌘K row */
/* A type's colour is Tana's `appearance.hue`, and it is an **OKLCH** hue, not an HSL one: the Organization type's
232 draws as #58aad2 in Tana, which is oklch(0.7 0.1 232) — read as an HSL angle the same number lands 42° away
and half as light (a navy #2b336f instead of that blue). So every hued rule below is oklch(L C var(--hue)), with
the lightness the only thing the dark theme moves. The colour is written out in each rule rather than held in
one `--hue-color` token on <html>: a custom property substitutes its own var() where it is *declared*, and
<html> has no `--hue` (the renderer sets it per element), so such a token computes invalid and every hued thing
on the page loses its colour entirely. */
/* Theme tokens: the surface everything floating is drawn on (menus, the toolbar, ⌘K, the dialogs), the scrim behind a
dialog, their two shadows, the focus colour, and the layers that stack over the page. The dark theme below gives
the same names its own values, so a rule written with them needs no dark twin. docs/UI-PATTERNS.md lists them. */
:root {
--surface: #fff; --scrim: rgba(0, 0, 0, .12); --focus: #b5d0ee;
--shadow-menu: 0 8px 30px rgba(0, 0, 0, .16), 0 0 0 1px rgba(0, 0, 0, .06); /* a menu, a dropdown */
--shadow-card: 0 12px 40px rgba(0, 0, 0, .18), 0 0 0 1px rgba(0, 0, 0, .05); /* a dialog's card */
--z-toolbar: 9; --z-palette: 10; --z-recorder: 11; --z-toast: 12; --z-drag: 15; --z-lightbox: 20; /* over the page, lowest first */
}
[data-theme="dark"] {
--surface: #242729; --scrim: rgba(0, 0, 0, .52); --focus: #58768a;
--shadow-menu: 0 8px 30px rgba(0, 0, 0, .45), 0 0 0 1px rgba(255, 255, 255, .08);
--shadow-card: 0 12px 40px rgba(0, 0, 0, .5), 0 0 0 1px rgba(255, 255, 255, .08);
}
body {
font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
font-size: 16px; color: #1a1a1a; background: #fff;
display: flex; flex-direction: row; -webkit-font-smoothing: antialiased;
}
.app { position: relative; flex: 1; min-width: 0; height: 100%; display: flex; flex-direction: column; } /* relative: the loading animation fills it */
body { overflow: clip; } /* the window never scrolls itself; the sidebar sliding out past its edge must not make it */
button { font: inherit; }
.sensitive {
color: transparent !important;
opacity: .14;
text-decoration: line-through #696d73 !important;
text-decoration-thickness: .72em !important;
text-decoration-skip-ink: none;
}
.sensitive * { color: transparent !important; text-decoration: none !important; }
.sensitive .chip, .chip.sensitive { display: none; }
.outline .body.sensitive { text-decoration-thickness: 12px !important; }
.outline .body.sensitive .meta { font-size: inherit; }
/* ==== Window chrome and the page head: drag regions, title, crumbs, error line ==== */
/* Frameless window (titleBarStyle: hiddenInset): the chrome -- the title bar and the sidebar's own background,
header area and padding -- drags the window, and everything interactive opts out once, here, not per element.
[tabindex] covers the sidebar rows, section heads and focusable outline blocks. */
.titlebar, .rail { -webkit-app-region: drag; }
.palette { -webkit-app-region: no-drag; } /* its scrim covers both: Electron would take a click there as a window drag, and it never reaches the mousedown that closes the palette */
button, input, a, [contenteditable], [tabindex], .error, .fields { -webkit-app-region: no-drag; }
.titlebar { padding: 16px 32px 6px; user-select: none; position: relative; } /* the traffic lights are in the window's header (shell.html); 6px: the 4px the scroll area took, so the outline sits where it did */
html.tabbed.listing:not(.renaming) :is(#pagehead, #taskInfo) { display: none; } /* a view, saved search, app page or chat is named by its tab (renderer/render.js), and the chips under a heading go with it; Rename on the tab brings it back */
html.chatpage:not(.renaming) :is(#pagehead, #taskInfo) { display: none; } /* a chat, with a tab bar or without one: the conversation is the page */
/* with no heading, the icons on both sides sit 19px from the pane's edge, the left ones over the section chevrons
below, and the gap the heading left under the crumbs closes */
html.tabbed.listing:not(.renaming) .navbtns { right: 16px; }
html.tabbed.listing:not(.renaming) .titlebar { padding-left: 19px; }
html.tabbed.listing:not(.renaming) .crumbs { margin-bottom: 4px; }
.titlebar h1 { margin: 0; font-size: 34px; font-weight: 700; letter-spacing: -0.5px; color: #1c2024; } /* the page title is a heading: the same near-black */
.titlebar h1[contenteditable] { outline: none; user-select: text; min-height: 1lh; }
.titlebar h1[tabindex]:not([contenteditable]):focus { outline: none; border-radius: 4px; box-shadow: 0 0 0 2px var(--focus); } /* a read-only title reached by ↑ (renderer/edit.js focusAbove): the ring a field's chips take */
.titlebar h1[contenteditable]:empty { display: inline-block; min-width: 1px; }
.pagehead { display: flex; align-items: flex-start; }
.pagehead[hidden] { display: none; } /* its flex would otherwise win over [hidden] */
.pagehead h1 { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.pagehead .check { width: 22px; height: 22px; margin: 11px 12px 0 0; border-radius: 6px; }
.pagehead h1.done { color: var(--muted); text-decoration: line-through; }
.pagehead .cbadge { margin-top: 12px; } /* the title's first line, not its top edge */
/* the type chip line under a zoomed title: a block, so it lines up with the title, and it may wrap. The 6px a chip
carries is the gap from whatever precedes it, which at the start of this line is nothing — so the first chip
starts flush with the title and the rest keep their spacing. */
#taskInfo { margin-left: 0; margin-top: 6px; white-space: normal; }
#taskInfo .chip:first-child { margin-left: 0; }
/* only the two buttons block the drag; the empty band beside them moves the window */
.crumbs { font-size: 13px; min-height: 1lh; margin-bottom: 6px; } /* the line the buttons on the right sit on, empty now that ⌘K and Help are in the window's header */
.text a.url { color: #508fbb; text-decoration: underline; cursor: pointer; }
[data-theme="dark"] .text a.url { color: #7fb8dd; }
.error { font-size: 13px; color: #c0392b; margin-top: 6px; }
.error button { margin-left: 8px; padding: 0; border: 0; background: none; color: inherit; font: inherit; text-decoration: underline; cursor: pointer; }
.error[hidden] { display: none; }
/* ==== Fields (renderer/fields.js) ==== */
/* a zoomed node's fields (type attributes), under the title */
/* The zoomed page's fields sit in a block of their own between two hairlines under the title and its tag, laid
out as a property list: icon, label and value in three columns shared by every row, so the labels line up. */
/* Three columns — glyph, label, value — and all three start at the top of the field's first line: a baseline
cannot line them up now that a value is rows rather than one line box, and the label drifted below the name
beside it. Each column is given the same 22px line as a row, so the three tops agree. */
.fields { margin-top: 18px; padding: 3px 0; border-top: 1px solid #e6e6e6; border-bottom: 1px solid #e6e6e6; display: grid; grid-template-columns: 14px max-content 1fr; align-items: start; }
#fields { margin: 8px 0 12px 16px; } /* in .scroll: its 16px more puts the fields under the title, 8px + the 10px above it is the 18px they had in the header; 12px below keeps the first row off the rule */
.fields .field { display: contents; color: #1a1a1a; }
/* A page's fields read as a table: a hairline between one field and the next, under the icon, the label and the value
alike. The grid's gaps become padding inside the cells for that, since a border cannot cross a gap. The inline
fields under an expanded row are the same table, only placed under the row. */
.fields .field > * { padding-top: 7px; padding-bottom: 7px; border-top: 1px solid #efefef; }
.fields .field:first-child > * { border-top: 0; }
.fields .field > .ricon { margin-top: 0; padding-top: 10px; } /* the glyph's 3px offset, inside the cell so its line stays level */
.fields .field > .flabel { padding-left: 10px; padding-right: 18px; } /* the two gaps, and the value's own 8px */
[data-theme="dark"] .fields .field > * { border-top-color: #2e3234; }
.fields[hidden] { display: none; } /* the grid's own display would otherwise win over [hidden] and leave the two lines on a page with no fields */
.fields a { color: #508fbb; text-decoration: underline; cursor: pointer; }
.inline-fields { margin-top: 0; margin-left: 17px; margin-bottom: 6px; }
.inline-fields .field > .ricon { transform: translateX(-1px); }
/* The glyph belongs to the field, which begins at its first line: centred on the whole value it drifted to the
middle as lines were added, level with nothing. The offset centres it on that first line (22px), the way the
label beside it sits on the same baseline. */
.fields .ricon { width: 14px; height: 14px; color: #8a8a8a; align-self: start; margin-top: 3px; }
.fields .ricon svg { display: block; width: 14px; height: 14px; }
.fields .flabel { color: var(--muted); line-height: 20px; }
/* The value is the outline's own rows, drawn in the fields block: a field is a line or three, not a page, so the
rows sit tighter than they do below. They keep their gutter, though — the expand caret is drawn to the left of
the bullet, and pulling the rows flush with the label put it on top of the label. */
.fields .fvalues { display: flex; flex-direction: column; row-gap: 0; min-width: 0; padding-left: 2px; } /* a field holds what a node holds: one line per block */
.fields .fvalues:nth-child(2) { grid-column: 2 / 4; } /* an unreadable type names no field: the value takes the label's column too */
.fields .fvalue { outline: none; min-width: 40px; color: #1a1a1a; line-height: 22px; }
/* The space between rows is the row's own padding, never a margin. A margin on the first row inside `.children`
collapses straight through that container — it has no padding or border at the top to stop it — so a child row
arrived flush under its parent however large the margin was. A page never had the problem because its rows are
spaced with padding (.line above); a field now does the same, at its own size: 22px of line and 8px above it is
the page's 24 + 3 + 3, one row tall either way. */
.fields .fvalues .node > .line { padding: 8px 0 0; line-height: 22px; }
.fields .fvalues > .node:first-child > .line { padding-top: 0; } /* the block's own padding is already above it */
/* the bullet box is a page's (24px): in a field it is the line it sits on, or every row is taller than its words */
.fields .fvalues .chev, .fields .fvalues .bullet { height: 22px; }
.fields .fvalues .text { line-height: 22px; }
/* One rhythm for every row, whatever kind it is and however deep it sits: a page gives a paragraph space below it
and a bullet none, which is right for a document and wrong for a list of values. The space itself is the row's
padding (above), so neither the page's paragraph margin nor a collapsing one decides it here. */
.fields .fvalues .node { margin-top: 0; margin-bottom: 0; }
.fields .fvalues > .node { margin-left: 0; }
.fields .fvalues .meta { font-size: 13px; } /* a row's facts are a note beside a name here, not half the line */
/* The placeholder says "this field has nothing in it", so it belongs to an empty field and not to every empty
line: a line just added with Enter is being typed into, not waiting to be filled. */
.fields .fvalue:only-child:empty::before { content: '…'; color: #bbb; }
/* A row that is not a list row carries no marker in a field either, in any state. The page hides the dot for a
plain row unless it is collapsed — a collapsed row's dot is the halo saying it has children — but in a field
that exception has nowhere useful to show itself and read as a bullet appearing under the pointer. A plain line
stays a plain line here whatever its state; the chevron is still how a row with children is opened. */
.fields .fvalues .node.block:not(.t-bullet):not(.t-numbered) > .line > .bullet::before { visibility: hidden; }
/* A field that holds choices or links (renderer/fields.js): one focusable line of chips, no editor. A label the type
no longer offers is greyed and struck, a link to the wrong type carries a small warning mark. */
.fields .fchoice { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; min-height: 22px; border-radius: 4px; cursor: default; margin-left: 16px; }
/* One column for every value: a text value's words start after its row's 16px gutter, and so does a line of people,
links or faces, which carry no chip around them (a person is a mention, as anywhere else). An options chip keeps
its 6px of padding outside the column, so its words land in it too; a hint that starts the line has no chip either,
and one after a value keeps its 6px of air. */
.fields .fchoice:has(> .fchip:not(.fref):first-child) { margin-left: 10px; }
.fields .fchoice > .fhint { margin-left: 6px; }
.fields .fchoice > .fhint:first-child { margin-left: 0; }
.fields .fchoice:focus { outline: none; box-shadow: 0 0 0 2px var(--focus); }
.fields .fchip { padding: 0 6px; border-radius: 4px; background: rgba(0, 0, 0, 0.05); line-height: 20px; }
.fields .fchip.fref { padding: 0; background: none; } /* a link field's value is a reference, drawn as every reference is */
.fields .fchip.fref + .fchip.fref { margin-left: 8px; }
.fields .fattendees > .fvalue { margin-left: 16px; line-height: 26px; } /* in line with the values of the fields around it (.fchoice's margin); a list of names reads easier a little apart */
.fields .fattendees > .fvalue:first-child { margin-top: -2px; } /* the extra leading above the first name: it stays on the label's line, the divider where it was */
.fields .fattendees > .fvalue.foutside { color: var(--muted); } /* someone not in Tana: the member glyph, greyed, no link; above the dark theme's .fields .fvalue */
.fields .fattendees > .fvalue.foutside svg { width: 1em; height: 1em; vertical-align: -0.15em; margin-right: 3px; } /* as a mention's */
.fields .fchip.gone { color: var(--muted); text-decoration: line-through; }
.fields .fchip.wrong::after { content: ' ⚠'; color: #c8841c; }
.fields .fhint, .fields .fkind { color: var(--muted); line-height: 22px; }
.fields .fmore { cursor: pointer; align-self: flex-start; border-radius: 4px; } /* a meeting's "And n more" attendees */
.fields .fmore:hover { color: #1a1a1a; }
.fields .fmore:focus { outline: none; box-shadow: 0 0 0 2px var(--focus); }
.fields .fkind { color: var(--muted); padding: 0 6px; border-radius: 4px; background: rgba(0, 0, 0, 0.05); }
/* a row's field values on its grey line (renderer/views.js subtextEl): the same chip, a step quieter */
[data-theme="dark"] .fields .fchip, [data-theme="dark"] .fields .fkind { background: rgba(255, 255, 255, 0.08); }
[data-theme="dark"] .fields .fchip.fref { background: none; }
/* ==== Table view (renderer/views.js) ==== */
/* a list page as a table (renderer/views.js tableCells): each row's body is a grid, its grey line's cells are the
columns after the title, and the header uses the same columns. The body starts at one fixed gutter on every row —
the widest a row's own gutter gets, chevron 24 + marker 18 + a task's checkbox 23 — so a meeting or a doc without a
checkbox has the same title column as a task, and a table grouped by type has one set of columns, not one per group.
The fact columns are one fixed width each; the ones the page has no room for ride on the title's line instead, in
.fold, a grey run of values right after the title (renderer/views.js fitTable). The last column is the row's
icons (visibility, pinned, link, watched — renderer/tasks.js taskMetaEl without the name, which has its own column):
90px holds all four 10px apart, right-aligned so they end the row as they do in the outline. That column, and the
agent badge's slot below, are only kept on a page where some row has them: otherwise they were empty space at the end. */
/* --fcols: Title (and the title's line, while columns are folded) and the fact columns, each at the width it was dragged to (renderer/views.js tableCols) */
.outline.table-view { --slot: 0px; --tcols: var(--fcols); } /* px: the header's type is smaller than a row's */
/* only a row with something in its icons keeps their column: Display can leave every row's empty (no Assigned words in a table, Visible to off) */
.outline.table-view:has(> .node > .line > .body > .tmeta:not(:empty)) { --tcols: var(--fcols) var(--iconw, 90px); } /* --iconw: as wide as the widest (renderer/views.js sizeIcons) */
.outline.table-view > .node > .line > .body > .tmeta:empty { display: none; }
.outline.table-view:has(> .node > .line > .body > .tmeta .people) { --tcols: var(--fcols) var(--iconw, 190px); } /* room for who can see a row: glyph, faces, the rest in words */
/* while columns ride on the title's line the row reads as a list, and who can see it is its glyph alone, as the
video's narrow rows end in one small avatar: the words are in the glyph's tooltip, and it turns red when someone
assigned cannot see the row. renderer/views.js fitTable reserves the full 190px all the same. */
.outline.table-view.folded:has(> .node > .line > .body > .tmeta .people) { --tcols: var(--fcols) 90px; }
.outline.table-view.folded > .node > .line > .body > .tmeta .people > :not(.audience) { display: none; }
.outline.table-view.folded > .node > .line > .body > .tmeta .people:has(> .hiddenfrom) > .audience { color: #b35068; }
[data-theme="dark"] .outline.table-view.folded > .node > .line > .body > .tmeta .people:has(> .hiddenfrom) > .audience { color: #de8499; }
.outline.table-view:not(:has(> .node > .line > .body > .tmeta:not(:empty))) > .thead > span:last-child { display: none; } /* the header's blank over the icons */
.outline.table-view:has(> .node > .line > .cbadge) { --slot: 40px; }
.outline.table-view > .node > .line > .body, .outline.table-view > .thead { display: grid; grid-template-columns: var(--tcols); column-gap: 16px; align-items: center; }
/* The local agent's badge ends a row (renderer/render.js codexBadgeEl). Taking its width from that row's grid shifted
every column on it, so each row keeps the badge's slot at its right end, empty or not, and the badge is put in it. */
.outline.table-view > .node > .line { position: relative; }
.outline.table-view > .node > .line > .body { flex: 0 1 calc(100% - 65px - var(--slot)); margin: 0 var(--slot) 0 auto; }
.outline.table-view > .node > .line > .cbadge { position: absolute; top: 3px; right: 0; }
.outline.table-view > .node > .line > .body > .subtext { display: contents; }
.outline.table-view > .node > .line > .body > :not(.text, .subtext, .meta) { display: none; }
/* a row's own grey words (a meeting's date and time, renderer/render.js metaText) go under its title, in the title's
cell: a second grid row in column 1, so the columns beside it stay where they are */
.outline.table-view > .node > .line > .body > .meta:not(.tmeta) { grid-column: 1; grid-row: 2; margin: 0; line-height: 18px; overflow: hidden; text-overflow: ellipsis; }
.outline.table-view.folded > .node > .line > .body > .meta:not(.tmeta) { grid-column: 1 / span 2; } /* across the title's line too: in column 1 alone its width would push the folded values away from the title */
/* the folded columns: the second track, right after the title (its max-content), in grey, each cut on its own */
.outline.table-view > .node > .line > .body .fold { grid-row: 1; display: flex; gap: 12px; min-width: 0; margin-left: -6px; overflow: hidden; color: var(--muted); }
.outline.table-view > .node > .line > .body .fold > .cell { flex: 0 1 auto; min-width: 0; }
.outline.table-view > .node > .line > .body .fold > .cell:empty { display: none; }
.outline.table-view.gliding > .node > .line > .body .fold { overflow: visible; } /* a value gliding in from its column is seen on its way (renderer/views.js glideCells) */
/* on the title's line, not centred on both; the title placed too, or the grid seats the row-1 cells first and it lands last */
.outline.table-view > .node > .line > .body > .text { grid-column: 1; grid-row: 1; }
.outline.table-view > .node > .line > .body .cell, .outline.table-view > .node > .line > .body > .tmeta { grid-row: 1; }
.outline.table-view > .node > .line > .body > .tmeta { order: 1; grid-column: -2; min-width: 0; overflow: hidden; white-space: nowrap; margin: 0; text-align: right; line-height: 18px; } /* cut at its column: "Not visible to …" ran past the row */
.outline.table-view:not(.folded) > .node > .line > .body > .tmeta { text-align: left; } /* a column like the others, under its Visible to (renderer/views.js tableHeadEl) */
.outline.table-view > .node > .line > .body > .tmeta > .mtext { display: none; }
.outline.table-view > .node > .line > .body > .tmeta > :not(.mtext) ~ :not(.mtext) { margin-left: 10px; } /* wider than .ticon's 6px: alone in a column they read as cramped */
.outline.table-view > .node > .line > .body > .text, .outline.table-view .cell { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.outline.table-view .cell.pick { min-height: 18px; cursor: pointer; } /* an options value: a click picks it (renderer/fields.js openCellChooser) */
.outline.table-view > .node { border-bottom: 1px solid #f0f0f0; }
.outline.table-view > .thead { margin-top: 16px; padding: 0 var(--slot) 6px 70px; border-bottom: 1px solid #ececec; color: var(--muted); font-size: 13px; line-height: 18px; user-select: none; } /* 65 + the body's own 5; --slot: the badge's; 16px: clear of the title above */
.outline.table-view.folded > .thead > span:first-child { grid-column: span 2; } /* Title over the title's line too: a folded column has no header of its own */
/* the folded columns named after Title, quieter than it; a click gives one its own column (renderer/views.js undockColumn) */
.outline.table-view > .thead .tdocked { opacity: .6; cursor: pointer; }
.outline.table-view > .thead .tdocked::before { content: '·'; margin: 0 6px; }
.outline.table-view > .thead .tdocked:hover { opacity: 1; }
.outline.table-view > .thead > span:last-child { grid-column: -2; } /* the blank over the icons */
.outline.table-view > .thead > span { position: relative; min-width: 0; }
.outline.table-view > .thead .tlabel { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
/* in the middle of the 16px gap after its column, as wide as the gap so it is easy to catch */
.outline.table-view > .thead .tgrip { position: absolute; top: -4px; bottom: -4px; right: -16px; width: 16px; cursor: col-resize; }
.outline.table-view > .thead .tgrip::after { content: ''; position: absolute; top: 0; bottom: 0; left: 7px; width: 2px; border-radius: 1px; }
.outline.table-view > .thead .tgrip:hover::after, .outline.table-view > .thead .tgrip.dragging::after { background: #d0d0d0; }
[data-theme="dark"] .outline.table-view > .thead .tgrip:hover::after, [data-theme="dark"] .outline.table-view > .thead .tgrip.dragging::after { background: #4a5053; }
[data-theme="dark"] .outline.table-view > .node, [data-theme="dark"] .outline.table-view > .thead { border-color: #2b2f31; }
/* ==== Filter row (⌘F) ==== */
.filter { position: relative; margin: 4px 32px 14px; width: 260px; }
.filter[hidden] { display: none; }
.filter input {
width: 100%; height: 36px; padding: 0 36px 0 14px; border: 0; border-radius: 8px;
background: #f2f2f2; font: inherit; color: #1a1a1a; outline: none;
}
.filter input:focus { background: #ebebeb; }
.filter .clear {
position: absolute; right: 6px; top: 6px; width: 24px; height: 24px; border: 0;
background: none; color: #777; font-size: 18px; line-height: 1; cursor: pointer; border-radius: 4px;
}
.filter .clear:hover { background: #ddd; }
.filter.empty .clear { display: none; }
/* ==== Header buttons (renderer/pills.js, app.js) ==== */
/* The header buttons (back and forward, the page's switches, the sidebar toggle last): top right of the
header band, absolute against .titlebar so they never shift as the crumbs, task meta or fields rows appear and
disappear beneath them. One row from the right edge, so a button that is not offered (the sidebar toggle on a page
without a sidebar) leaves no gap: the others move up to the edge. */
.navbtns { position: absolute; top: 12px; right: 32px; z-index: 1; display: flex; gap: 2px; }
.navbtns[hidden] { display: none; } /* its flex would otherwise win over [hidden] */
/* The top row (Home and Cmd+K, and the buttons on the right) shows only while the mouse is over this page: each half
of a split is a page of its own, so the half you are not pointing at is just its title and rows. Not :hover: the
header is a window drag region, where the page hears nothing of the mouse, so hover ended as the pointer reached
the buttons (renderer/app.js pointer-in). The fade is the one .titlebar's children already have (below). */
html:not(.pointer-in) :is(#crumbs, .navbtns) { opacity: 0; }
/* In the window (html.framed) the shell draws the buttons, in the page's tab bar or, with one page, in the window's
header (shell.js drawNav), and the empty line they sat on goes. The row stays laid out, unseen, so its animations
still end: Clean up hides once its exit has played. */
html.framed .navbtns { visibility: hidden; }
html.framed #crumbs { display: none; }
html.framed .titlebar { padding-top: 18px; }
html.framed #pagehead { margin-top: 14px; } /* a page's title starts where a page without one starts its first heading (the Timeline's Today): its letters level with that heading's, in every pane */
.navbtn {
display: flex; align-items: center; justify-content: center;
width: 24px; height: 24px; padding: 0; border: 0;
background: none; color: #777; cursor: pointer; border-radius: 4px;
opacity: .4;
}
.navbtn:hover:not(:disabled) { background: #ddd; opacity: 1; }
.navbtn:disabled { opacity: .15; cursor: default; } /* nowhere to go: still there, saying so */
#navLinks[aria-pressed="true"] { opacity: 1; } /* the Graph pane is open (renderer/rail.js drawLinksBtn) */
/* Back and forward are always there; Refresh and the fold button are offered only on a saved search, and their
own display would otherwise win over the browser's rule for [hidden] and leave a blank, glyphless slot. */
.navbtn[hidden] { display: none; }
.navbtn svg { display: block; width: 18px; height: 18px; }
/* Clean up comes and goes with the rows a status change keeps in place, so it pops in and shrinks away again (Pop)
rather than appearing and disappearing between two frames. The classes are put on by renderer/pills.js, which also
waits for the leaving one before hiding the button. */
.navbtn.in { animation: pop-in var(--dur-base) var(--ease-spring) backwards; }
.navbtn.out { animation: pop-out var(--dur-quick) var(--ease-in) forwards; }
/* ==== Pills and their menus (renderer/pills.js) ==== */
/* filter pills (Tasks / Library): "Status <Inbox, In Progress>", "Assigned to <You>", "<Type>"; each opens a menu below it */
/* z-index: the row, not each menu, is what stacks over the page. A pressed pill is transformed while it springs back
(the Press rule below), which traps its menu in the pill's own stacking context, and a table's outline is one too
(container-type): without it the table drew over the menu until the spring settled. */
.pills { position: relative; z-index: 5; display: flex; flex-wrap: wrap; gap: 8px; margin: 2px 32px 12px; }
.pills[hidden] { display: none; }
.pill { position: relative; border: 0; border-radius: 999px; padding: 6px 14px; background: #e8f1fb; color: #2765b7; font-weight: 600; font-size: 15px; cursor: pointer; display: flex; align-items: center; gap: 6px; }
/* ...and the same spring would put the pills of a second line over the menu, so the pill carrying one (arriving or
leaving) sits above its neighbours */
.pill:has(> .menu) { z-index: 1; }
.pill b { color: #2257a3; font-weight: 700; } /* label 4.7:1, value 5.7:1 on the pill, hovered or open (AA); the same hue, a step darker */
.pill svg { width: 16px; height: 16px; }
/* Refresh is a header button beside the fold one (renderer/pills.js), and it answers the press before the query
does: one turn of the glyph, on transform alone, and only where motion is welcome — under reduced motion the
class selects nothing and the icon stands still. */
@media (prefers-reduced-motion: no-preference) { .navbtn svg.spin { animation: turn calc(var(--dur-slow) * 2) var(--ease-move); transform-origin: 50% 50%; } }
/* A saved search folds its pills away behind the header button (renderer/pills.js). They arrive and leave one after
another, left to right -- --i is the pill's place in the row -- and the row's own height follows them, so what is
under it slides rather than jumping the moment the last pill has gone. The height travels to and from auto
(interpolate-size), which is why nothing has to be measured in JS; it is clipped only while it moves, or a pill
menu could not hang out of the row. Under reduced motion none of it is declared, and the row simply appears and
disappears -- which is what pills.js falls back to. */
@media (prefers-reduced-motion: no-preference) {
.pills { interpolate-size: allow-keywords; } /* declared on the row, not on .sliding: the height it opens from is read before that class lands */
.pills > .pill.in { animation: pop-in var(--dur-base) var(--ease-spring) backwards; animation-delay: calc(var(--i, 0) * var(--stagger)); }
.pills.out > .pill { animation: pop-out var(--dur-quick) var(--ease-in) forwards; animation-delay: calc(var(--i, 0) * var(--stagger)); }
.pills.sliding { overflow: hidden; transition: height var(--dur-base) var(--ease-move), margin-bottom var(--dur-base) var(--ease-move); }
.pills.folding { height: 0; margin-bottom: 0; }
}
.pill:hover, .pill.open { background: #d9e8fa; }
.pill:focus { outline: none; box-shadow: 0 0 0 2px var(--focus); }
/* Sort and Group arrange the rows the view already has, so they sit beside the filters in grey rather than filter blue */
.pill[data-id="sort"], .pill[data-id="group"], .pill[data-id="display"] { background: #f1f1f1; color: var(--muted); }
.pill[data-id="sort"] b, .pill[data-id="group"] b, .pill[data-id="display"] b { color: #444; }
.pill[data-id="sort"]:hover, .pill[data-id="sort"].open, .pill[data-id="group"]:hover, .pill[data-id="group"].open,
.pill[data-id="display"]:hover, .pill[data-id="display"].open { background: #e6e6e6; }
/* Saving a query — keeping this one, or keeping a view's as a new search — makes something rather than narrowing
something, so it reads green instead of filter blue, and says what it does in words rather than a glyph. */
.pill.save, .pill.savesearch { background: #e6f4ea; color: #2b7449; } /* 4.6:1 hovered (AA) */
.pill.save:hover, .pill.savesearch:hover { background: #d7ecdd; }
.pill.save:focus, .pill.savesearch:focus { box-shadow: 0 0 0 2px #a8d8ba; }
.menu { position: absolute; left: 0; top: calc(100% + 6px); z-index: 5; min-width: 260px; max-height: min(400px, calc(100dvh - 96px)); overflow-y: auto; overscroll-behavior-y: contain; padding: 8px; background: var(--surface); border-radius: 10px; box-shadow: var(--shadow-menu); font-weight: 400; color: #1a1a1a; text-align: left; }
.menu.up { top: auto; bottom: calc(100% + 6px); } /* no room under the button: the menu opens upwards instead */
.menu .mrow { display: flex; align-items: center; gap: 12px; padding: 8px 12px; border-radius: 8px; font-size: 16px; cursor: pointer; user-select: none; }
.menu .mrow.active { background: #d6e6fa; }
.menu .mrow:hover { background: #edf5ff; }
.menu .mrow.active:hover { background: #d6e6fa; }
.menu .mrow .micon { flex: none; width: 18px; height: 18px; color: #555; }
.menu .mrow .micon svg { display: block; width: 18px; height: 18px; }
.menu .mrow .mlabel { flex: 1; }
.menu .mrow .tick { color: #1a1a1a; font-size: 15px; }
.menu .mrow.disabled { color: #aaa; cursor: default; } /* offered but not available here, e.g. Text on a child node */
.menu .mrow.disabled:hover { background: none; }
.menu .mrow.disabled .micon { color: #bbb; }
.menu .mhead { padding: 10px 12px 4px; font-size: 13px; font-weight: 600; color: var(--muted); user-select: none; }
/* a searchable menu's typing line (renderer/pills.js menuEl): pinned above the rows it narrows */
.menu .msearch { position: sticky; top: -8px; z-index: 1; display: flex; align-items: center; gap: 12px; margin: -8px -8px 6px; padding: 14px 20px 10px; background: inherit; border-bottom: 1px solid #ececec; font-size: 16px; user-select: none; }
.menu .msearch.empty { color: var(--muted); }
.menu .msearch .micon { flex: none; width: 18px; height: 18px; color: var(--muted); }
.menu .msearch .micon svg { display: block; width: 18px; height: 18px; }
/* where the typing goes: the pill has the focus and takes the keys (renderer/pills.js pillKeys), so the caret is drawn */
/* right after what is typed, or at the start of the placeholder, as an input's own caret sits (the gap is 12px) */
.menu .msearch .mcaret { display: none; flex: none; width: 1.5px; height: 1.2em; margin-left: -12px; background: currentColor; }
.menu .msearch.empty .mcaret { margin: 0 -13.5px 0 0; }
/* a searchable menu lists Tana nodes by their titles, long ones: smaller and wider, so a title reads on one or two lines */
.menu.search { min-width: 340px; }
.menu.search .msearch { font-size: 14px; padding: 11px 18px 9px; gap: 10px; }
.menu.search .msearch .mcaret { margin-left: -10px; }
.menu.search .msearch.empty .mcaret { margin: 0 -11.5px 0 0; }
.menu.search .msearch .micon, .menu.search .msearch .micon svg { width: 15px; height: 15px; }
.menu.search .mrow { font-size: 14px; padding: 6px 10px; }
.pill:focus .menu .msearch .mcaret { display: block; }
@media (prefers-reduced-motion: no-preference) { .menu .msearch .mcaret { animation: blink 1s steps(1) infinite; } }
.menu .mdiv { height: 1px; margin: 6px 4px; background: #e6e6e6; }
/* ==== Page scroll and sidebar (renderer/rail.js, app.js) ==== */
.scroll { position: relative; flex: 1; overflow-y: auto; padding: 4px 32px 40px 16px; } /* 4px at the top: the first row's focus ring (2px, 2px out) is drawn outside the row, and a scroll box clips at its edge; relative: the loading animation fills it */
html:not(.listing) .scroll { padding-bottom: 50vh; } /* a document scrolls on past its last row, so the line being typed at the end can sit mid-window */
/* Classic scrollbars drawn as the overlay's narrow line (renderer/theme.js checkScrollbars): no track, a 5px rounded
thumb, hidden until its area is hovered or scrolled. Overlay scrollbars get none of this. */
.classic-scroll :not(.scroll-probe)::-webkit-scrollbar { width: 11px; height: 11px; background: transparent; }
.scroll-probe { position: absolute; top: -200px; width: 60px; height: 60px; overflow: scroll; } /* measures what macOS gives, for a moment */
.classic-scroll :not(.scroll-probe)::-webkit-scrollbar-corner { background: transparent; }
.classic-scroll :not(.scroll-probe)::-webkit-scrollbar-thumb { border: 3px solid transparent; border-radius: 6px; background-clip: padding-box; background-color: transparent; }
.classic-scroll :is(:hover, .scrolling):not(.scroll-probe)::-webkit-scrollbar-thumb { background-color: rgb(0 0 0 / 0.28); }
[data-theme="dark"].classic-scroll :is(:hover, .scrolling):not(.scroll-probe)::-webkit-scrollbar-thumb { background-color: rgb(255 255 255 / 0.28); }
/* The Graph pane (renderer/rail.js, issue #462): a page that is only its rail, full width, holding the followed
document's relationships (edges, never editable). Every other page leaves the rail hidden. */
html.links .app { display: none; }
.rail { flex: 1; min-width: 0; height: 100%; box-sizing: border-box; overflow-y: auto; user-select: none; padding: 12px 16px 32px; }
.rail .rempty { padding: 10px 6px; font-size: 14px; color: var(--muted); }
.rail .rhead { display: flex; align-items: center; gap: 6px; width: 100%; border: 0; background: none; margin-top: 18px; padding: 10px 6px 4px; cursor: pointer;
font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.rail .rhead:first-child { margin-top: 0; } /* the three groups read as separate blocks, the first one starts at the top */
.rail .rhead svg { width: 12px; height: 12px; transition: transform var(--dur-quick) var(--ease-out); }
.rail .rhead.closed svg { transform: rotate(-90deg); }
.rail .rrow { display: flex; align-items: baseline; gap: 6px; padding: 4px 6px; border-radius: 4px; cursor: pointer; outline: none; }
.rail .rrow:hover { background: #f4f6f8; }
.rail .rrow:focus { background: #e8f1fb; }
/* the icon sits in the same box as a task row's checkbox (18px + its 2px/8px margins), so every title starts at one x */
.rail .rrow .ricon { flex: none; display: flex; align-items: center; justify-content: center; width: 18px; height: 18px; margin: 0 8px 0 2px; color: #8a8a8a; align-self: center; }
.rail .rrow .ricon svg { display: block; width: 15px; height: 15px; }
.rail .rrow .ricon.hue { color: oklch(0.7 0.1 var(--hue)); } /* a hued node keeps its colour in the sidebar too */
/* collapsed, the chip shows its "#" alone; the label appears only while the row expands it */
.rail .rrow .chip { flex: none; max-width: 1.63em; overflow: hidden; white-space: nowrap; transition: max-width var(--dur-quick) var(--ease-out); }
.rail .rrow .chip-label { display: none; }
.rail .rrow:hover .chip, .rail .rrow:focus .chip { max-width: 12em; }
.rail .rrow:hover .chip-label, .rail .rrow:focus .chip-label { display: inline; }
.rail .rrow .check { align-self: center; }
/* task metadata rows (assignees, visibility) above the first group; plain like every other row */
.rail .rrow.rmeta .rtitle { color: #555; }
.rail .rrow.rmeta.fixed { cursor: default; }
.rail .rrow.rmeta.fixed:hover { background: none; }
/* Assigned to someone who cannot see it (renderer/tasks.js, rail.js): crimson */
/* Assigned to someone who cannot see it (#622): a soft rose, not the error red — it asks for a share, nothing broke */
.meta .hiddenfrom, .subtext .hiddenfrom { color: #b35068; }
/* a history entry: the kind of change as a glyph, then what it is about with "who · when" under it. It opens
nothing, so it does not answer the pointer the way the rows that do. */
.rail .rrow.rchange { align-items: flex-start; cursor: default; }
.rail .rrow.rchange:hover { background: none; }
.rail .rrow.rchange .ricon { align-self: flex-start; margin-top: 1px; }
.rail .rrow .rtext { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 0; }
.rail .rrow .rsub { font-size: 12px; line-height: 16px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rail .rrow .rtitle { flex: 1; min-width: 0; font-size: 14px; line-height: 19px; color: #1a1a1a; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.rail .rrow.done .rtitle { color: var(--muted); text-decoration: line-through; }
/* ==== Rows: line, chevron, marker, dragging (renderer/render.js, drag.js) ==== */
.line { display: flex; align-items: flex-start; line-height: 24px; padding: 3px 0; }
.chev, .bullet { flex: none; width: 18px; height: 24px; border: 0; background: none; padding: 0; cursor: pointer; position: relative; }
/* chevron: 14px Outliner-style circle in a 24px gutter left of the icon slot (8px clear of the icon), shown only while hovering the line; down = expanded, right = collapsed */
.chev { visibility: hidden; width: 24px; transform-origin: 9px 12px; } /* the circle's centre: renderer/motion.js turns the whole chevron about it */
.chev::before {
content: ""; position: absolute; left: 2px; top: 5px; width: 14px; height: 14px;
border-radius: 50%; border: 1px solid #d0d0d0; background: #fff;
}
.chev::after {
content: ""; position: absolute; left: 6.5px; top: 8px; width: 5px; height: 5px;
border: solid #888; border-width: 0 1.2px 1.2px 0; transform: rotate(45deg);
}
.chev:hover::before { border-color: #bbb; }
.chev.closed::after { transform: rotate(-45deg); left: 4.75px; top: 9.5px; }
.node > .line:hover > .chev { visibility: visible; } /* every node can expand: an empty one opens onto a draft child */
/* the chevron gutter is never removed from the layout: a row's bullet keeps its x in every state (collapsed, expanded, empty, read-only, draft) */
.chev.off, .node > .line:hover > .chev.off, .draft > .line > .chev, .draft > .line:hover > .chev { visibility: hidden; cursor: default; pointer-events: none; }
.draft > .line > .bullet { cursor: default; }
.draft > .line > .bullet::before, .draft > .line > .bullet:hover::before { background: #c4c4c4; } /* placeholder: not in Tana until typed into */
.bullet::before {
content: ""; position: absolute; left: 6px; top: 9px; width: 6px; height: 6px;
border-radius: 50%; background: #7f838d; /* Tana's marker grey (rgb 127,131,141): quieter than the text beside it */
}
.bullet:hover::before { background: #1c2024; }
/* typed node without its own icon: the plain bullet takes the type hue (same colour as .bullet.icon.hue) */
.bullet.hue::before, .bullet.hue:hover::before { background: oklch(0.7 0.1 var(--hue)); }
.collapsed > .line > .bullet::before { box-shadow: 0 0 0 6px #e6e6e6; } /* collapsed with children: dot on an 18px halo */
/* a notification not read yet: Tana's blue dot, in the bullet's place (renderer/inbox.js) */
.node.unread > .line > .bullet::before, .node.unread > .line > .bullet:hover::before { background: #0090ff; }
/* Only a list row carries a marker, the way Tana draws it: a bulletList/orderedList item has one, and text,
headings, quotes and code have none — not on hover either, so a heading reads as a heading whatever the mouse
is over. The dot is hidden rather than removed, so the gutter keeps its width in every row state. A collapsed
row keeps its dot: that is the halo saying it has children, which is a state and not a hover. */
.node.block:not(.t-bullet):not(.t-numbered):not(.collapsed) > .line > .bullet::before { visibility: hidden; }
/* And a row with no marker is not indented for one either: its text starts where the document title starts. What
is left of its gutter is still the row's zoom target, silent now rather than drawn under the pointer. The
gutter is narrowed, never taken out of the layout (no display: none on a chevron — that is what used to move
rows between states): .scroll's 16px + 11px of gutter + the body's 5px is the 32px .titlebar reserves for the
title, so a heading and the title share a left edge. A row with children keeps the full gutter: it has a
chevron to show, and in Tana's schema it is a list row anyway. A full reference is laid out as a list row
whatever block holds it, so its icon sits where the bullets beside it sit. */
.node.block:not(.t-bullet):not(.t-numbered):not(.fullref):not(.has) > .line > .chev,
.node.block:not(.t-bullet):not(.t-numbered):not(.fullref):not(.has) > .line:hover > .chev { width: 0; visibility: hidden; }
.node.block:not(.t-bullet):not(.t-numbered):not(.fullref):not(.has) > .line > .bullet { width: 11px; }
/* A list marker or full-reference icon sits where a plain row's words sit: the plain row gives up its gutter (11px of
bullet plus the body's 5px), so the marker — 6px into an 18px bullet box, behind an 18px chevron — has to come back the
difference for the two left edges to agree. Without it a bulleted row reads as indented from the lines around
it when it is only carrying a marker. The chevron travels with it into the padding it is drawn over anyway. */
.node.block.t-bullet > .line, .node.block.t-numbered > .line, .node.block.fullref > .line { margin-left: -10px; }
/* The guide line under a list row hangs off the row's box, not off its line, so it stayed where it was when the
line moved: the same 8px, or it no longer runs under the bullet it belongs to. */
.node.block.t-bullet > .children, .node.block.t-numbered > .children, .node.block.fullref > .children { margin-left: 23px; }
/* Dragging a row (renderer/drag.js). A marker or icon is the handle. A marker-less row keeps the 11px gutter and
nothing to grab, so the dotted grip appears there on hover — inside the gutter it already has, so nothing moves.
A collapsed row is left alone: its dot is back, and that is the thing to grab. */
.bullet[draggable="true"] { cursor: grab; } /* a marker that can be picked up says so, wherever it is drawn */
.bullet[draggable="true"]:active { cursor: grabbing; }
.node.block:not(.t-bullet):not(.t-numbered):not(.collapsed) > .line:hover > .bullet[draggable="true"]:not(.icon)::after {
content: ''; position: absolute; left: 0; top: 7px; width: 9px; height: 11px;
background-image: radial-gradient(circle at center, #b9bbbe 1.1px, transparent 1.3px); background-size: 4.5px 4px;
}
.node.dragging > .line { opacity: .45; transition: opacity var(--dur-quick) var(--ease-out); }
/* Where it will land, at the level it will land on: a line across the outline from that level's left edge, with a
dot on the end the row will start at. Fixed, because it is drawn from what the rows measure on screen. */
/* It glides from gap to gap rather than jumping (Glide); shown again after a drop it starts where it is put. */
#dropline { position: fixed; z-index: var(--z-drag); height: 2px; margin-top: -1px; border-radius: 2px; background: #5b9bd5; pointer-events: none;
transition: left var(--dur-quick) var(--ease-move), top var(--dur-quick) var(--ease-move), width var(--dur-quick) var(--ease-move); }
#dropline::before { content: ''; position: absolute; left: -5px; top: -3px; width: 8px; height: 8px; border-radius: 50%; background: inherit; }
.drop-into { border-radius: 6px; box-shadow: 0 0 0 2px #5b9bd5; animation: ring-in var(--dur-base) var(--ease-spring); } /* the group a task dropped here joins (renderer/drag.js groupAt) */
.bullet.icon::before { display: none; }
.bullet.still { cursor: default; } /* a member's or a type's glyph: nothing to zoom into */
.bullet.still.icon:hover svg { color: #8a8a8a; }
.bullet.icon svg { position: absolute; left: 0; top: 4px; width: 16px; height: 16px; color: #8a8a8a; }
/* one colour whether or not the row has children: a saved search draws its rows before their children are known,
so they all counted as collapsed and their icons came out darker than the same rows in a view */
.bullet.icon:hover svg { color: #333; }
.bullet.meeting svg { color: #c99b1b; }
.bullet.meeting:hover svg { color: #8a6a17; }
/* Renderer contract: appearance-driven icons add .hue and set --hue, including 0. */
.bullet.icon.hue svg, .bullet.icon.hue:hover svg { color: oklch(0.7 0.1 var(--hue)); }
/* ==== Timeline (renderer/timeline.js) ==== */
/* Timeline (renderer/timeline.js): a time column, a rail down the page, a marker on it for each entry, then what
happened. The rail is each entry's own left line, so a group's tasks sit along it too. Every marker is a 20px circle
over the rail: finished a filled green one with a white check, an edit a grey pen, accepted a grey plus, put off or sent back to the Inbox a grey arrow (Nucleo's outline circles, drawn at 22.5px because the
glyph's circle is 16 of its 18). Only finished work is a filled marker: every other one is a grey outline with no fill, and a new task a light dotted ring, since it matters least. */
.node.tl { position: relative; }
/* a row's line starts 10px left of its node (the gutter's negative margin), so the rail is placed on the marker's centre */
.node.tl::before { content: ''; position: absolute; left: 101px; top: 0; bottom: 0; border-left: 1px solid #e6e6e6; }
/* above the days (renderer/timeline.js timelineTop): no time column, the rail 73px further left, under the page's
title, starting at the first marker; it curves into the days' rail (.tl-bend), as on the phones */
.node.tl-top::before { left: 28px; }
#outline > .node.tl-top:first-child::before { top: 26px; }
.node.tl.tl-top > .line { padding-left: 29px; }
.node.tl-top > .line > .body > .meta { display: none; }
.node.block.t-bullet.tl.tl-top > .children { margin-left: 59px; }
.tl-bend { height: 64px; }
.tl-bend svg { display: block; width: 74px; height: 64px; margin-left: 28px; overflow: visible; }
.tl-bend path { fill: none; stroke: #e6e6e6; }
/* the first day's heading where the bend lands: a stop on the days' rail, a small ring, its words in line with the
entries' and its chevron in the time column, there while the pointer is on it */
.tl-bend + .ghead { position: relative; margin-top: 0; padding-left: 127px; }
.tl-bend + .ghead svg { position: absolute; left: 76px; opacity: 0; }
.tl-bend + .ghead:is(:hover, :focus-visible) svg { opacity: 1; }
.tl-bend + .ghead::before { content: ''; position: absolute; left: 101px; top: 0; bottom: -10px; border-left: 1px solid #e6e6e6; } /* on through the room under it to the first entry */
.tl-bend + .ghead[aria-expanded="false"]::before { bottom: 50%; }
.tl-bend + .ghead::after { content: ''; position: absolute; left: 96px; top: 50%; width: 11px; height: 11px; margin-top: -5.5px; box-sizing: border-box; border: 1.5px solid #c4c4c4; border-radius: 50%; background: #fff; }
.ghead + .node.tl { margin-top: 10px; } /* room under a day's heading */
.node.tl > .line { position: relative; padding: 14px 0 14px 102px; } /* room around each entry: inside it, so the rail runs on */
.node.tl > .line > .chev { width: 0; }
.node.tl > .line > .body > .meta { position: absolute; left: 34px; top: 14px; margin: 0; line-height: 24px; font-variant-numeric: tabular-nums; }
.node.tl > .line > .bullet { position: relative; z-index: 1; }
.node.tl > .line > .bullet::before { display: none; }
.node.tl > .line > .bullet.icon svg, .node.tl > .line > .bullet.icon:hover svg { width: 22.5px; height: 22.5px; left: -2.25px; top: 0.75px; color: #8e9297; background: #fff; border-radius: 50%; }
.node.tl-done > .line > .bullet { width: 20px; height: 20px; margin: 2px 0 0 -1px; border-radius: 50%; background: #5a9670; }
.node.tl-done > .line > .bullet.icon svg, .node.tl-done > .line > .bullet.icon:hover svg { width: 12px; height: 12px; left: 4px; top: 4px; color: #fff; background: none; }
.node.tl-done > .line > .bullet.icon svg g { stroke-width: 2.5; } /* the check drawn at 12px: heavier than the line icons' 1, so it reads */
/* line glyphs (the edit's pen, an agent's robot, Tana's prism) are drawn at their own 18px in the 20px marker's place */
.node.tl > .line > .bullet.icon:is(.updated, .robot, .tana, .meeting, .pinRoute) svg { width: 18px; height: 18px; left: 0; top: 3px; }
/* tl-faint: a meeting that is over and left no write-up (main/timeline.js), as quiet as a new-task line */
.node:is(.tl-new, .tl-faint) > .line > .bullet.icon svg, .node:is(.tl-new, .tl-faint) > .line > .bullet.icon:hover svg { color: #c4c4c4; }
.node.tl-new > .line > .bullet.icon:is(.robot, .tana) svg { color: #aeb1b5; }
/* A meeting under way that is recording (main/timeline.js): its marker blue, a blue ring pulsing out from behind it */
.node.tl-recording > .line > .bullet.icon svg, .node.tl-recording > .line > .bullet.icon:hover svg { color: #0090ff; }
/* the glyph's own disc (the one that hides the rail) goes under the ring, so the ring shows through the glyph instead
of around a white disc: disc, ring, glyph, in that order inside the bullet */
.node.tl-recording > .line > .bullet.icon svg, .node.tl-recording > .line > .bullet.icon:hover svg { background: transparent; }
.node.tl-recording > .line > .bullet.icon::before { display: block; left: 0; top: 3px; width: 18px; height: 18px; z-index: -2; background: #fff; box-shadow: none; }
.node.tl-recording > .line > .bullet::after { content: ''; position: absolute; left: 0; top: 3px; width: 18px; height: 18px; z-index: -1; border-radius: 50%; background: #0090ff; opacity: .25; }
@media (prefers-reduced-motion: no-preference) { .node.tl-recording > .line > .bullet::after { animation: rec-pulse var(--dur-loop) ease-out infinite; } }
.node.tl > .line > .body { margin-left: 11px; } /* room between the rail and what happened: 16px with the body padding */
.tl-detail { margin: 18px 0 -6px 8px; /* placed as the tasks a group lists are: its edge in line with their checkboxes, 20px under the line above, 25px over the next entry */ padding: 6px 12px; max-width: 640px; border-left: 3px solid #dcdcdc; border-radius: 0 6px 6px 0; background: #f6f6f6; color: #555; font-size: 15px; line-height: 21px; }
.tl-detail strong { display: block; color: #333; font-weight: 600; }
[data-theme="dark"] .tl-detail strong { color: #d4d6d8; }
[data-theme="dark"] .tl-detail { border-left-color: #45484b; background: #242628; color: #b4b6b8; }
.node:is(.tl-new, .tl-faint) > .line .text { color: var(--muted); }
.node:is(.tl-today, .tl-upcoming) > .line .text { color: inherit; } /* Today's Tasks and Upcoming meetings read as titles, their markers still quiet */
.node.tl-done > .line .text s, .node.tl-done > .line .text del { color: var(--muted); }
.node.tl > .line > .body > .subtext { margin-top: 2px; }
.node.tl > .line > .body > .tl-detail + .subtext { margin-top: 14px; } /* clear of the card: its -6px bottom margin otherwise pulls the grey line against it */
/* a group's rows hang under its words (block + t-bullet: the list rule it overrides): a task by its type's glyph and its
box, anything else by its type's glyph */
.node.block.t-bullet.tl > .children { margin-left: 132px; padding-bottom: 8px; border-left: 0; }
.node.tl > .children .node > .line { padding: 1px 0; }
.node.tl > .children .node > .line > .chev { width: 0; }
.node.tl .line > .chev, .node.tl .line:hover > .chev { visibility: hidden; pointer-events: none; } /* a record, not an outline: nothing here expands */
.node.tl > .children .node > .line:not(:has(> .check)) > .bullet { margin: 0 2px 0 3px; } /* a glyph alone: centred where a box would be */
.node.tl > .children:has(.check) .node > .line:not(:has(> .check)) > .bullet { margin: 0 23px 0 0; } /* beside tasks: the box's room kept, so the titles stay in line */
.node.tl > .children .text { font-size: 15px; } /* in the page's own colour: a completed one greys itself (.document.done) */
/* The Timeline's glyphs are one grey, the markers' own: a row under an entry keeps its glyph and drops its colour — a
meeting's gold, a type's hue — so the page stays monochrome */
.node.tl > .children .bullet.icon svg, .node.tl > .children .bullet.icon:hover svg { color: #8e9297; }
/* Join (renderer/timeline.js): the Tana glyph after a meeting's title, in the page's grey until it is pointed at */
.tl-join { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 22px; margin-left: 0; padding: 0; /* the glyph sits 4px from the title: the button's own room around it */ border: 0; border-radius: 4px; background: none; color: #8e9297; vertical-align: -3px; cursor: pointer; }
.tl-join svg { width: 16px; height: 16px; }
/* A task from a meeting (renderer/meeting.js meetingLinkEl): a grey glyph after the title, a little further off than
the Join glyph, always there so a list shows which tasks came from a meeting (faint as every row icon is, below) */
.meeting-link { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 22px; margin-left: 2px; padding: 0; border: 0; border-radius: 4px; background: none; color: #8a8a8a; vertical-align: -3px; cursor: pointer; }
.meeting-link svg { width: 16px; height: 16px; }
/* among the row's facts, beside Pinned (renderer/tasks.js taskMetaEl): a fact icon, its size and its grey */
.meeting-link.ticon { width: 14px; height: 14px; margin-left: 0; border-radius: 0; color: inherit; vertical-align: -2px; }
.meeting-link.ticon svg { width: 14px; height: 14px; }
.tmeta > .meeting-link.ticon:not(:first-child) { margin-left: 6px; }
/* Row icons, one rule: the small glyphs a row carries (its facts' icons: assignee, audience, bell, pin; the Join glyph;
the meeting link) are faint on the rows you are not on and in full on the one under the pointer or with the caret,
fading between the two (at once under reduced motion). No background on hover: only the glyph's own colour moves.
Who can see a row (.audience, its visibility icon) and a warning (assigned to someone who cannot see it) stay in
full everywhere: they are there to be seen. */
.line :is(.ticon, .tl-join, .meeting-link) { opacity: .45; transition: opacity var(--dur-base) var(--ease-out), color var(--dur-quick) var(--ease-out); }
.line:is(:hover, :focus-within) :is(.ticon, .tl-join, .meeting-link), .line .ticon:is(.audience, .hiddenfrom) { opacity: 1; }
:is(.tl-join, .meeting-link):hover { color: #1c2024; }
.node.tl > .children .meta { display: none; } /* assigned to you and private: true of every one, so said by none */
/* a row that opens on a click shows the pointer over what it draws, and only there: the empty width beside it is no
target (renderer/nodes.js onRowBlank). An "added to your Inbox" line opens nothing itself, so it has no .opens; its rows do. */
.node.tl .line { cursor: default; } /* no caret on the Timeline: a click there never edits */
.node.opens > .line > .body > * { cursor: pointer; }
.node.tl.unread > .line::after { content: ''; position: absolute; left: 84px; top: 23px; /* centred between the time and the marker, on the time's middle */ width: 6px; height: 6px; border-radius: 50%; background: #0090ff; }
[data-theme="dark"] .node.tl::before { border-left-color: #34373a; }
[data-theme="dark"] .tl-bend + .ghead::before { border-left-color: #34373a; }
[data-theme="dark"] .tl-bend path { stroke: #34373a; }
[data-theme="dark"] .tl-bend + .ghead::after { border-color: #5a5d60; background: #1b1d1e; }
[data-theme="dark"] .node.tl > .line > .bullet.icon svg { background: #1b1d1e; color: #8a8f95; }
[data-theme="dark"] .node.tl-recording > .line > .bullet.icon svg { color: #3b9eff; background: transparent; }
[data-theme="dark"] .node.tl-recording > .line > .bullet.icon::before { background: #1b1d1e; }
[data-theme="dark"] .tl-join, [data-theme="dark"] .meeting-link { color: #8a8f95; }
[data-theme="dark"] .tl-join:hover, [data-theme="dark"] .meeting-link:hover { color: #e8eaec; }
[data-theme="dark"] .node.tl > .children .bullet.icon svg, [data-theme="dark"] .node.tl > .children .bullet.icon:hover svg { color: #8a8f95; }
[data-theme="dark"] .node.tl-done > .line > .bullet.icon svg { color: #fff; background: none; }
[data-theme="dark"] .node:is(.tl-new, .tl-faint) > .line > .bullet.icon svg { color: #5a5d60; }
/* ==== Chat (renderer/chat.js): a conversation in the Codex app's style, and the composer under it ==== */
/* Yours in a light blue bubble on the right; Tana's as plain text across the page; the composer a rounded card whose
round blue button sends. --chat-send is that blue, --chat-mine and --chat-mine-text your bubble (dark twins below). */
:root { --chat-mine: #eaf3fd; --chat-mine-text: #1b2b41; --chat-send: #3b82f6; }
/* a short conversation sits on the composer at the bottom of the window */
/* the conversation fades out under the header and into the composer, as in Codex: a mask, so it works on any theme */
.scroll.chatting { display: flex; flex-direction: column; padding-top: 28px; padding-bottom: 24px; padding-left: max(48px, calc((100% - var(--chat-width)) / 2)); padding-right: max(48px, calc((100% - var(--chat-width)) / 2)); /* a centred column no wider than --chat-width, never nearer either side than 48px */
-webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 36px, #000 calc(100% - 28px), transparent 100%); mask-image: linear-gradient(to bottom, transparent 0, #000 36px, #000 calc(100% - 28px), transparent 100%); }
.scroll.chatting > .outline { flex: 1 0 auto; display: flex; flex-direction: column; justify-content: flex-end; }
.chat-msg { display: flex; flex-direction: column; margin: 0 0 24px; font-size: 16px; line-height: 1.6; }
.chat-msg.mine { align-items: flex-end; }
.chat-msg.theirs { align-items: stretch; }
.chat-msg .bubble { max-width: 100%; overflow-wrap: anywhere; counter-reset: chat-num; }
.chat-msg.mine .bubble { max-width: min(80%, 620px); padding: 12px 22px; border-radius: 13px; background: var(--chat-mine); color: var(--chat-mine-text); }
.bubble > * + * { margin-top: 8px; }
.translated-line { display: flex; align-items: center; gap: 6px; margin: 8px 0 10px; font-size: 14px; color: var(--muted); } /* a page shown in English (renderer/translate.js) */
.translated-line[hidden] { display: none; }
.translated-line svg, .subtext .translated svg { width: 13px; height: 13px; flex: none; }
.translated-line button { padding: 0; border: 0; background: none; font: inherit; color: inherit; text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.subtext .translated { display: inline-flex; align-items: center; gap: 4px; vertical-align: bottom; cursor: pointer; } /* a list row's: its first fact, a click switches it */
.subtext .translated:not(.translating):hover .tlabel { text-decoration: underline; text-underline-offset: 2px; } /* the words, not the " · " after them */
.translating { animation: translating-late 0s .4s backwards; } /* only once it takes a moment: an answer from the cache or a text this Mac finds already in the language never shows it, nor takes its room */
@keyframes translating-late { from { display: none; } }
.fields .chat-context { grid-column: 1 / -1; } /* the whole width, not the glyph's column */
.fields:has(> .chat-context:only-child) { border: 0; padding: 0; }
.chat-context { margin: 0 0 28px; text-align: right; font-size: 14px; color: var(--muted); } /* who can see a chat, and its meeting (renderer/chat.js chatContextEl, #543) */
.chat-context .chat-add { padding: 0; border: 0; background: none; font: inherit; color: inherit; text-decoration: underline; text-underline-offset: 2px; cursor: pointer; } /* Add participants: a link in the line's own grey, as Show original is */
.chat-context .chat-add:hover { color: #1c2024; }
[data-theme="dark"] .chat-context .chat-add:hover { color: #e8eaec; }
.chat-context > span:first-child > svg, .chat-context .people svg { width: 14px; height: 14px; vertical-align: -2px; margin-right: 5px; }
.chat-context .mention svg { width: 1em; height: 1em; vertical-align: -0.15em; margin-right: 3px; }
.chat-name { font-size: 14px; font-weight: 600; margin: 0 0 2px; } /* who said a reply: in the text's colour, bold */
.chat-note { font-size: 14px; color: var(--muted); margin: 0 0 6px; }
/* "Thought for 1m 28s ›" as Codex draws its "Worked for": grey, a chevron, and a hairline under it across the message */
.chat-thought { margin: 0 0 16px; padding: 0 0 12px; border-bottom: 1px solid rgba(0, 0, 0, .08); font-size: 15px; }
.chat-thought-head { display: flex; align-items: center; gap: 8px; padding: 0; border: 0; background: none; color: inherit; font: inherit; text-align: left; }
/* the chevron only where something folds under the line (renderer/chat.js chatThoughtEl): right, and down while open */
button.chat-thought-head { cursor: pointer; }
button.chat-thought-head::after { content: ''; width: 5px; height: 5px; border: solid currentColor; border-width: 1.5px 1.5px 0 0; rotate: 45deg; transition: rotate var(--dur-quick) var(--ease-out); }
button.chat-thought-head[aria-expanded="true"]::after { rotate: 135deg; translate: 0 -2px; }
/* "Thinking..." while Tana is still at work (sdk/chat.js): the working badge's sweep, crossing the letters instead of a tag.
Its pass and pause (cbadge-sweep's stops) and its blue over the line's grey, clipped to the words so the line never
moves; the chevron keeps its own colour. It stops when the line says what it thought, and stands still under reduced motion. */
@media (prefers-reduced-motion: no-preference) {
.chat-thought.thinking .chat-thought-head { width: fit-content; background: linear-gradient(100deg, var(--muted) 40%, var(--working-ink) 50%, var(--muted) 60%) 100% 0 / 300% 100% no-repeat;
background-clip: text; -webkit-text-fill-color: transparent; animation: thinking-sweep calc(var(--dur-loop) * 2) ease-in-out infinite; }
}
.chat-sub { margin: 8px 0 0; font-size: 14px; }
.chat-sub[hidden] { display: none; }
/* a proposal in an answer (renderer/chat.js chatProposalEl): a card with the proposed thing's glyph and name, its kind
and state under it in grey, approve and reject at its end (the Proposals page's .pbuttons) */
.chat-proposal { display: flex; align-items: center; gap: 12px; padding: 12px 12px 12px 16px; border: 1px solid rgba(0, 0, 0, .12); border-radius: 13px; cursor: pointer; }
.chat-proposal:hover { background: rgba(0, 0, 0, .025); } /* it opens what was proposed */
.bubble > .chat-proposal { margin-top: 16px; } /* a step apart from the words above it; stacked cards keep the bubble's 8px */
.bubble > .chat-proposal + .chat-proposal { margin-top: 8px; }
/* an action's approve, which runs it: its words, "Send to Slite", in the approve's grey, green when pointed at */
.pbutton.send { padding: 3px 12px; border: 1px solid rgba(0, 0, 0, .14); border-radius: 999px; font: inherit; font-size: 14px; font-weight: 500; color: #555; white-space: nowrap; }
.pbutton.send:hover:not(:disabled) { border-color: transparent; }
[data-theme="dark"] .pbutton.send { border-color: rgba(255, 255, 255, .16); color: #c9cccf; }
[data-theme="dark"] .chat-proposal:hover { background: rgba(255, 255, 255, .03); }
.chat-proposal > span svg { display: block; width: 16px; height: 16px; color: var(--muted); }
.chat-proposal-text { flex: 1; min-width: 0; }
.chat-proposal-title { font-weight: 500; overflow-wrap: anywhere; }
.chat-proposal-sub { font-size: 14px; color: var(--muted); }
.chat-proposal.rejected .chat-proposal-title { color: var(--muted); text-decoration: line-through; } /* settled: quiet, as a done row is */
[data-theme="dark"] .chat-proposal { border-color: rgba(255, 255, 255, .12); }
/* a subagent's chat under the line: a quiet link in the line's grey, its glyph the size of the text (outside a bubble,
the .bubble .mention rules below do not reach it, and an unsized glyph filled the page) */
.chat-sub .mention { color: inherit; cursor: pointer; }
.chat-sub .mention:hover { text-decoration: underline; text-underline-offset: 2px; }
.chat-sub .mention svg { width: 14px; height: 14px; vertical-align: -2px; margin-right: 5px; }
[data-theme="dark"] .chat-thought { border-bottom-color: rgba(255, 255, 255, .09); }
.chat-paragraph { white-space: pre-wrap; }
.chat-heading1 { font-size: 1.25em; font-weight: 700; }
.chat-heading2 { font-size: 1.1em; font-weight: 600; }
.chat-heading3 { font-weight: 600; }
.chat-bullet, .chat-numbered { padding-left: 20px; text-indent: -20px; }
.chat-bullet::before { content: '•'; display: inline-block; width: 20px; text-indent: 0; }
.chat-numbered { counter-increment: chat-num; }
.chat-numbered::before { content: counter(chat-num) '.'; display: inline-block; width: 20px; text-indent: 0; }
.chat-quote { border-left: 3px solid #d6d6d6; padding-left: 10px; color: var(--muted); }
.chat-code { margin: 8px 0 0; padding: 8px 10px; border-radius: 8px; background: rgba(0, 0, 0, .05); font: 13px/1.5 ui-monospace, Menlo, monospace; white-space: pre-wrap; }
.chat-divider { border-top: 1px solid #e3e3e3; }
.bubble .mention, .bubble a.link, .bubble a.url { color: #508fbb; text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.mine .bubble :is(.mention, a.link, a.url) { color: inherit; }
.bubble .mention svg { width: 14px; height: 14px; vertical-align: -2px; margin-right: 3px; }
.theirs .bubble .mention.hue { color: oklch(0.55 0.12 var(--hue)); }
.bubble .mention.gone { color: inherit; text-decoration: line-through; cursor: default; }
/* an @Codex question and its answer (renderer/chat.js agentAskEls): the question on your side, grey where your own
bubble is blue, the answer as a reply in grey text; the cloud-slash glyph as a badge on the bubble's top-right corner and plain after Codex's name */
.chat-msg.agent-local:not(.answer) { margin-bottom: 12px; } /* the question sits with its answer */
.chat-msg.agent-local .bubble { position: relative; }
.chat-msg.theirs.agent-local .bubble, .chat-name.agent-local { color: var(--muted); } /* Codex's answer and its name: grey */
/* on the question bubble's top-right corner, centred on the curve */
.agent-badge { position: absolute; top: -7px; right: -7px; margin: 0; /* not .bubble > * + *'s gap */ display: grid; place-items: center; width: 22px; height: 22px; border: 1px solid rgba(127, 127, 127, .25); border-radius: 50%; background: var(--surface); color: var(--muted); }
.agent-badge svg { width: 13px; height: 13px; }
.chat-name > svg { width: 13px; height: 13px; margin-left: 5px; vertical-align: -2px; color: var(--muted); } /* after Codex's name */
/* Add to message, after them on Codex's name line: in its grey, underlined when pointed at */
.agent-add { display: inline-flex; align-items: center; gap: 4px; margin: 0; padding: 0; border: 0; background: none; font: inherit; font-weight: 400; color: inherit; cursor: pointer; vertical-align: top; }
.agent-sep { margin: 0 7px 0 10px; font-weight: 400; }
.agent-add { opacity: .6; } /* quieter than the name it follows, full when pointed at */
.agent-add:hover { opacity: 1; text-decoration: underline; text-underline-offset: 2px; }
.agent-add svg { width: 14px; height: 14px; }
.chat-msg[data-key] { scroll-margin: 44px 0 36px; } /* scrolled into view clear of the column's faded edges */
.chat-msg[data-key]:focus { outline: none; } /* a message selected by ↑↓ (renderer/chat.js selectMsg): the ring goes on what it looks like, and stays while Cmd+K is open */
.chat-msg.mine.chat-sel .bubble { box-shadow: 0 0 0 2px var(--focus); }
.chat-msg.theirs.chat-sel { outline: 2px solid var(--focus); outline-offset: 6px; border-radius: 8px; }
.chat-msg.mine.agent-local .bubble { background: rgba(127, 127, 127, .13); color: inherit; }
.chat-dots { display: inline-flex; gap: 4px; padding: 8px 0; color: var(--muted); }
.chat-dots i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; opacity: .35; }
@media (prefers-reduced-motion: no-preference) { .chat-dots i { animation: chat-dot var(--dur-loop) infinite; } .chat-dots i:nth-child(2) { animation-delay: .2s; } .chat-dots i:nth-child(3) { animation-delay: .4s; } }
@keyframes chat-dot { 0%, 60%, 100% { opacity: .35; transform: none; } 30% { opacity: .8; transform: translateY(-2px); } }
/* the window's last row under a chat, outside the scroll, so it never moves: Codex's soft card, the text on top and the
round send button under it at the right */
.composer { flex: none; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; margin: 0 max(48px, calc((100% - var(--chat-width)) / 2)) 18px max(48px, calc((100% - var(--chat-width)) / 2)); padding: 14px 14px 14px 22px;
border: 1px solid rgba(0, 0, 0, .12); border-radius: 13px; background: var(--surface); box-shadow: 0 6px 28px rgba(0, 0, 0, .07), 0 1px 3px rgba(0, 0, 0, .04); }
.composer[hidden] { display: none; } /* its flex would otherwise win over [hidden] */
.composer.dropping { outline: 2px solid var(--chat-send); outline-offset: -1px; } /* rows dragged over the chat land in the message (renderer/chat.js) */
.composer:focus-within { box-shadow: 0 8px 32px rgba(0, 0, 0, .09), 0 1px 3px rgba(0, 0, 0, .05); }
.composer .ctext { flex: 1 0 100%; min-height: 2em; max-height: 40vh; overflow-y: auto; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 16px; line-height: 1.5; outline: none; }
.composer .ctext:empty::before { content: attr(data-placeholder); color: #9a9a9a; pointer-events: none; }
.composer .ctext .mention { color: #508fbb; cursor: default; }
.composer .ctext .mention svg { width: 14px; height: 14px; vertical-align: -2px; margin-right: 3px; }
/* the skill the message runs ("/" first): a pill in front of the text; clicking it, or Backspace at the start, drops it */
.composer-skill { flex: none; display: inline-flex; align-items: center; gap: 5px; margin-right: auto; padding: 2px 10px; border-radius: 12px; background: var(--chat-mine); color: var(--chat-mine-text); font-size: 13px; font-weight: 500; cursor: pointer; }
.composer-skill[hidden] { display: none; }
.composer.readonly { opacity: .6; } /* a chat you can only read: the card stays, saying so, and takes no typing */
.composer.readonly .composer-send { visibility: hidden; }
.composer-skill svg { width: 14px; height: 14px; }
.composer-send { flex: none; width: 40px; height: 40px; border: 0; border-radius: 50%; background: var(--chat-send); color: #fff; font-size: 20px; font-weight: 600; line-height: 1; cursor: pointer; }
.composer.empty .composer-send { opacity: .4; cursor: default; }
/* Tana's questions (renderer/chat.js): Codex's question card in the composer's place, the same soft card; the question
bold with "‹ 2 of 3 ›" at its right, the options numbered, the highlighted one on a grey band with ↑↓, the last row a
free answer, then Dismiss (esc) and a pale blue Continue (↩). */
.qcard { flex: none; display: flex; flex-direction: column; gap: 2px; margin: 0 max(48px, calc((100% - var(--chat-width)) / 2)) 18px max(48px, calc((100% - var(--chat-width)) / 2)); padding: 14px 12px 12px; border: 1px solid rgba(0, 0, 0, .06); border-radius: 13px;
background: var(--surface); box-shadow: 0 6px 28px rgba(0, 0, 0, .07), 0 1px 3px rgba(0, 0, 0, .04); outline: none; }
.qcard[hidden] { display: none; }
.qhead { display: flex; align-items: baseline; gap: 12px; padding: 2px 10px 8px; }
.qtext { flex: 1; font-size: 16px; font-weight: 600; line-height: 1.4; white-space: pre-wrap; }
.qnav { flex: none; display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 13px; }
.qstep { border: 0; background: none; color: inherit; font-size: 16px; line-height: 1; padding: 0 4px; cursor: pointer; }
.qstep:disabled { opacity: .35; cursor: default; }
.qhint { padding: 0 10px 6px; color: var(--muted); font-size: 13px; }
.qopt { display: flex; align-items: baseline; gap: 8px; padding: 9px 12px; border-radius: 12px; font-size: 15px; cursor: pointer; }
.qopt.active { background: rgba(0, 0, 0, .05); }
.qnum { flex: none; min-width: 18px; color: var(--muted); }
.qlabel { font-weight: 500; }
.qdesc { color: var(--muted); font-size: 14px; }
.qcheck { margin-left: auto; color: var(--chat-send); font-weight: 600; }
.qarrows { margin-left: auto; color: var(--muted); font-size: 12px; letter-spacing: 2px; }
.qcheck + .qarrows { margin-left: 8px; }
.qopt.chosen .qlabel { color: var(--chat-send); }
.qfoot { display: flex; align-items: center; gap: 8px; }
.qother { flex: 1; min-width: 0; }
.qinput { flex: 1; min-width: 0; border: 0; background: transparent; color: inherit; font: inherit; font-size: 15px; outline: none; }
.qinput::placeholder { color: var(--muted); }
.qdismiss, .qcontinue { flex: none; display: inline-flex; align-items: center; gap: 6px; border: 0; border-radius: 16px; font: inherit; font-size: 14px; cursor: pointer; }
.qdismiss { padding: 6px 8px; background: none; color: var(--muted); }
.qcontinue { padding: 6px 10px 6px 14px; background: #bcdcff; color: #0b3a75; font-weight: 500; }
.qdismiss:disabled, .qcontinue:disabled { opacity: .5; cursor: default; }
.qdismiss kbd, .qcontinue kbd { padding: 1px 6px; border-radius: 6px; background: rgba(0, 0, 0, .07); font: 11px -apple-system, sans-serif; }
.qcontinue kbd { background: rgba(255, 255, 255, .55); }
/* a status line between the messages ("Sam was added to the chat."): small, grey, centred, as Tana shows it */
.chat-status { margin: 4px 0 20px; text-align: center; color: var(--muted); font-size: 12px; }
/* ==== Row content: checkbox, text, facts, chips, images, references, marks, blocks ==== */
.check {
flex: none; width: 18px; height: 18px; margin: 3px 8px 0 2px; border-radius: 5px; background: #e4e4e4;
border: 0; padding: 0; cursor: pointer; -webkit-appearance: none; appearance: none; position: relative;
--check-on: #6fae82;
}
.check:hover { background: #d6d6d6; }
/* the tick is a background layer under a green cover of the same colour that is 0 wide: completing a task here
plays the cover shrinking from the left (render.js playTick), so the tick appears stroke by stroke. A layer on
the input itself rather than ::after, whose animation a render's replaceChildren cuts short. */
.check:checked {
background: linear-gradient(var(--check-on), var(--check-on)) right / 0 100% no-repeat,
url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 8.7l3.3 3.3 6.9-6.9'/%3E%3C/svg%3E") center / 100% 100% no-repeat var(--check-on);
}
/* an Inbox task is not accepted yet: the grey box becomes a dashed outline (square-dashed, cropped to its outer edge
so the dashes sit where the box's edge is, at every checkbox size) */
.check.inbox:not(:checked) {
background: #c8c8c8; border-radius: 0;
-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='2.25 2.25 13.5 13.5' fill='none' stroke='black' stroke-width='1' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2.75 4.75c0-1.105.895-2 2-2M13.25 2.75c1.105 0 2 .895 2 2M15.25 13.25c0 1.105-.895 2-2 2M4.75 15.25c-1.105 0-2-.895-2-2M7.75 2.75h2.5M7.75 15.25h2.5M15.25 7.75v2.5M2.75 7.75v2.5'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
}
.body { flex: 1; min-width: 0; padding-left: 5px; }
/* Sampled from the same document in Tana: a heading is the near-black (rgb 28,32,36) the page title uses, so the
headings carry the page and the prose sits back a step. The prose is a little blacker than Tana's own grey
(rgb 73,75,79) by choice — enough of a step to stay behind the headings, dark enough to read as text. */
.text { display: inline; outline: none; white-space: pre-wrap; overflow-wrap: anywhere; color: #3c3e42; }
.text:empty { display: inline-block; min-width: 1px; min-height: 1lh; vertical-align: top; } /* an empty node still has a box, so the caret shows */
/* a read-only row takes focus but shows no caret, so the ring is the only sign the keyboard is on it (images ring their own <img>) */
.text[tabindex]:not(.image):focus { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 3px; }
.check + .body { padding-left: 0; }
.document.done > .line .text { color: var(--muted); text-decoration: line-through; }
.meta { margin-left: 8px; color: var(--muted); font-size: 14px; white-space: nowrap; user-select: none; }
.subtext { width: fit-content; color: var(--muted); font-size: 14px; line-height: 18px; user-select: none; } /* the space a node is shared with */
/* the row's facts, moved down by fitRowMeta when the title left them no room: already grey and 14px, so they only
need the 8px that separated them from the title taken back off */
.subtext .tmeta { margin-left: 0; }
/* who can see a row, at the start of its subtext (renderer/tasks.js peopleEl): the audience glyph, a bubble per person, how many */
.people { display: inline-flex; align-items: center; gap: 6px; vertical-align: top; } /* who can see a row: in its subtext, or in a table row's icons */
.subtext:has(> .people) { padding: 3px 0 4px; } /* a row whose subtext has faces: a little air above and below them */
.faces { display: inline-flex; vertical-align: -4px; } /* on a row's subtext and in a page's Visible to field */
.face { width: 18px; height: 18px; margin-left: -2px; border-radius: 50%; display: grid; place-items: center; font-size: 8px; font-weight: 650; line-height: 1; /* its own: a taller line where it sits (a field's 22px) pushed the initials off centre */
color: #666; background: oklch(calc(0.89 + var(--tone, 0) * 0.012) 0 0); box-shadow: 0 0 0 1.5px #fff; } /* light greys, a small step apart per person: no colour */
.face:first-child { margin-left: 0; }
.face.more { background: #eee; color: #666; }
[data-theme="dark"] .face { color: #bbb; background: oklch(calc(0.28 + var(--tone, 0) * 0.015) 0 0); box-shadow: 0 0 0 1.5px #1b1d1e; }
[data-theme="dark"] .face.more { background: #33383b; color: #bbb; }
/* one of a row's facts (renderer/tasks.js taskMetaEl): a 14px glyph, 6px from whatever stands before it. The first
needs no gap of its own: the 8px the .meta span carries is already there, and 14px reads as a hole. */
.ticon { display: inline-block; width: 14px; height: 14px; vertical-align: -2px; }
.ticon svg { width: 14px; height: 14px; }
.tmeta > .ticon:not(:first-child) { margin-left: 6px; }
.tmeta .mtext > .ticon { margin-right: 4px; } /* Unassigned's glyph, in front of the word */
.tmeta [role="button"] { cursor: pointer; }
button.ticon { padding: 0; border: 0; background: none; color: inherit; }
/* the visibility icon arrives after the row does, so the row holds its place with a dashed outline of one */
.meta.pending { color: #d5d5d5; }
.chip {
display: inline-block; margin-left: 6px; border-radius: 4px; padding: 1px 6px;
font-size: 12px; line-height: 16px; vertical-align: 2px; white-space: nowrap; user-select: none;
}
.chip.grey { background: #f1f1f1; color: #6b6b6b; }
.chip.gold { background: #fbf3d9; color: #8a6a17; }
.chip.hue { background: oklch(0.95 0.04 var(--hue)); color: oklch(0.45 0.12 var(--hue)); } /* type colour: --hue 0-360 set per chip */
/* image block: not editable, focus = selected frame; .loading = placeholder box until api.image resolves */
.text.image { display: block; cursor: default; }
.text.image img { display: block; max-width: 100%; max-height: 360px; height: auto; border-radius: 6px; cursor: zoom-in; }
.text.image.loading img { visibility: hidden; }
/* demo mode (renderer/render.js demoImageEl): a picture's place at its size, the privacy glyph on it */
.demo-image { display: flex; align-items: center; justify-content: center; box-sizing: border-box; width: min(100%, 360px); max-width: 100%; aspect-ratio: 3 / 1; border-radius: 6px; background: #f1f1f1; color: #aeb1b5; }
.demo-image svg { width: 28px; height: 28px; }
.text.image.loading { min-height: 120px; max-height: 360px; background: #f1f1f1; border-radius: 6px; width: min(100%, 360px); }
/* a picture on its way, and a file on its way up: the same shimmer and breath the loading skeleton has (Ambient) */
@media (prefers-reduced-motion: no-preference) {
.text.image.loading:not(.demo) { background-image: linear-gradient(90deg, #f1f1f1 0%, #fafafa 50%, #f1f1f1 100%); background-size: 200% 100%; animation: shimmer var(--dur-loop) ease-in-out infinite; }
.text.upload { animation: breathe var(--dur-loop) ease-in-out infinite; }
}
.text.image:focus img, .selected .text.image img { outline: 2px solid var(--focus); outline-offset: 2px; }
.text.upload { display: inline-block; padding: 6px 10px; border-radius: 6px; background: #f1f1f1; color: var(--muted); cursor: default; } /* renderer/upload.js: a file on its way up */
/* no caret shows beside a lone mention chip or in a read-only reference row, so the focus is drawn around them instead */
/* A lone chip (Tana's full-reference presentation) keeps its caret: renderSegs anchors a position before it, so the
caret can be put there and typing prepends text, which is what turns the block into an inline reference. */
.text.chiponly:focus .mention, .selected .text.chiponly .mention, .reference .text:not([contenteditable]):focus { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 3px; }
/* A resolved full reference stands in for the node it points at — its box, its status, its tags — so the focus and
the selection are drawn around the whole row rather than around the chip alone. */
.node.fullref .text.chiponly .mention { outline: none; }
/* the row is the node, so its title reads as a title: the blue link is for a reference sitting among text, which is
the only place it says "this word is somewhere else". The pointer stays, since clicking it still opens the node. */
.node.fullref :is(.text, .fvalue) .mention { color: inherit; text-decoration: none; }
/* the row's own line, not `:focus-within` on the row: the children below it are another document's, and a caret
down there is not the caret on the reference */
.node.fullref > .line:focus-within, .selected.node.fullref > .line { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
/* what hangs under a reference belongs to the node it points at, not to this outline: the guide line says so. It is
the same line as every other guide, dashed — a background-painted one was tried for a longer dash and gave itself
away: a border snaps to device pixels and a 1px background column does not, so it came out wider and washed out. */
.node.fullref > .children { border-left-style: dashed; }
.node.fullref.done > .line .text { color: var(--muted); text-decoration: line-through; }
:is(.text, .fvalue) .mention { color: #508fbb; text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.fields .fghost { display: inline-flex; align-items: center; gap: 3px; margin-left: 6px; padding: 0 8px; border: 1px dashed #e3b7c1; border-radius: 11px; background: none; font: inherit; font-size: 14px; line-height: 20px; color: #b35068; cursor: default; } /* who the page shuts out, among who can see it (#622) */
.fields button.fghost { padding-left: 6px; cursor: pointer; }
.fields button.fghost:hover { background: #fbf0f2; }
.fields .fghost b { font-weight: 500; }
/* a reference that knows what it points at draws its icon in front, in the link's own colour; the underline is
moved onto the label so it runs under the words rather than under the icon */
:is(.text, .fvalue) .mention:has(svg) { text-decoration: none; }
:is(.text, .fvalue) .mention .mlabel { text-decoration: underline; text-underline-offset: 2px; }
/* the underline is a tint of the link rather than the link colour itself: it marks the words without competing
with them, and the rule covers both shapes because .mlabel redeclares the decoration */
:is(.text, .fvalue) .mention, :is(.text, .fvalue) .mention .mlabel { text-decoration-color: #cbddeb; }
:is(.text, .fvalue) .mention svg { width: 1em; height: 1em; vertical-align: -0.15em; margin-right: 3px; }
:is(.text, .fvalue) .mention:hover { color: #3a75a3; }
/* a reference wears its target's colour: the type hue when it has one (the same oklch its chip and bullet use), and
a meeting the gold its bullet has; the underline follows, paler, the way the blue one does */
:is(.text, .fvalue) .mention.hue, :is(.text, .fvalue) .mention.hue .mlabel { color: oklch(0.55 0.12 var(--hue)); text-decoration-color: oklch(0.85 0.06 var(--hue)); }
:is(.text, .fvalue) .mention.hue:hover { color: oklch(0.45 0.12 var(--hue)); }
:is(.text, .fvalue) .mention[data-icon="meeting"]:not(.hue):not(.gone), :is(.text, .fvalue) .mention[data-icon="meeting"]:not(.hue):not(.gone) .mlabel { color: #8a6a17; text-decoration-color: #e8dcb3; }
:is(.text, .fvalue) .mention[data-icon="meeting"]:not(.hue):not(.gone):hover { color: #6b5212; }
/* A mention of a node that has been deleted: the words stay — they are what was written — struck through, in the
ordinary text colour behind a trash glyph, and the pointer goes back to the caret, since there is nowhere to go.
The strike is declared on both shapes for the same reason the underline is: .mlabel redeclares the decoration. */
:is(.text, .fvalue) .mention.gone, :is(.text, .fvalue) .mention.gone .mlabel { color: var(--muted); text-decoration: line-through; text-decoration-color: var(--muted); cursor: text; }
:is(.text, .fvalue) .mention.gone:hover { color: var(--muted); }
/* and a whole row that references something deleted (a reference row, or a lone chip): the same struck-through grey,
with the trash glyph as its bullet */
.node.gone > .line .text { color: var(--muted); text-decoration: line-through; }
/* one trash glyph, not two: on such a row the bullet is already the trash, and the row's whole text is the chip that
would draw a second one right beside it. Inside a line of other words a chip keeps its own glyph — there is no
bullet standing for it there. */
.node.gone > .line :is(.text, .fvalue) .mention.gone svg { display: none; }
/* inline marks on a text run (readOutline segments): bold, italic, strike, code, and link marks */
.text strong { font-weight: 700; }
.text em { font-style: italic; }
.text s { text-decoration: line-through; }
.text code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .92em; background: #f1f1f1; border-radius: 4px; padding: 0 4px; }
.text a.link { color: #508fbb; text-decoration: underline; cursor: pointer; }
.text a.link:hover { color: #3a75a3; }
/* block types (api.setBlockType). A bullet row keeps the plain bullet; a numbered row counts in the same gutter. */
#outline, .children { counter-reset: ol; }
/* any other row between them ends the list: numbering starts again under the next heading, as in Tana */
.node:not(.t-numbered) { counter-reset: ol; }
.node.t-numbered { counter-increment: ol; }
.node.t-numbered > .line > .bullet { width: 32px; }
.node.t-numbered > .line > .bullet::before {
content: counter(ol) "."; left: 0; top: 0; width: 26px; height: 24px; border-radius: 0;
background: none; color: var(--muted); font-size: 12px; line-height: 24px; text-align: right;
}
.node.t-numbered > .line > .bullet:hover::before { background: none; color: #1a1a1a; }
.node.t-code > .line .text { display: block; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 14px; background: #f5f5f5; border-radius: 6px; padding: 6px 10px; }
.node.t-quote > .line .text { display: block; border-left: 3px solid #d8d8d8; padding-left: 12px; color: #555; }
/* divider: an atomic block, focusable like an image so the keyboard can still reach and delete it */
/* a full view of an image, over everything: Space on the row or a click on it, and a click anywhere closes it */
/* The scrim fades in over the page and the picture grows out of its row (renderer/render.js openImage); closing plays it back. */
.lightbox { position: fixed; inset: 0; z-index: var(--z-lightbox); display: flex; align-items: center; justify-content: center; background: rgba(20, 22, 24, .72); cursor: zoom-out; outline: none;
transition: opacity var(--dur-base) var(--ease-out); }
@starting-style { .lightbox { opacity: 0; } }
.lightbox.out { opacity: 0; transition-duration: var(--dur-quick); transition-timing-function: var(--ease-in); }
.lightbox img { max-width: 92vw; max-height: 92vh; border-radius: 6px; box-shadow: 0 20px 60px rgba(0, 0, 0, .45); }
.text.divider { display: block; cursor: default; }
.text.divider hr { border: 0; border-top: 1px solid #dcdcdc; margin: 10px 0; }
.text.divider:focus hr, .selected .text.divider hr { border-top-color: var(--focus); }
/* a table block (renderer/table.js): the row focuses like an image, the cells are where the caret goes */
.text.table { display: block; cursor: default; overflow-x: auto; }
.text.table table { border-collapse: collapse; margin: 4px 0; }
.text.table th, .text.table td { border: 1px solid #dcdcdc; padding: 3px 8px; vertical-align: top; text-align: left; min-width: 48px; }
.text.table .cellimg { display: block; max-width: 100%; max-height: 240px; margin-top: 4px; border-radius: 3px; cursor: zoom-in; }
.text.table .cellimg.demo-image { max-height: 240px; cursor: default; }
.text.table th { background: #f6f6f6; font-weight: 600; }
.text.table .cell { outline: none; min-height: 1.4em; white-space: pre-wrap; cursor: text; }
.text.table .more { color: var(--muted); }
.text.table th:focus-within, .text.table td:focus-within { box-shadow: inset 0 0 0 2px var(--focus); }
.text.table:focus table, .selected .text.table table { outline: 2px solid var(--focus); outline-offset: 2px; }
.h1 > .line .text { font-size: 24px; font-weight: 700; line-height: 30px; }
.h2 > .line .text { font-size: 20px; font-weight: 700; line-height: 28px; }
.h3 > .line .text { font-weight: 700; }
.h1 > .line .text, .h2 > .line .text, .h3 > .line .text { color: #1c2024; }
/* A heading opens a section, so it gets air above it and a little under it, the way the same document reads in
Tana. The space is on the node, not the line, so a selected or focused heading keeps its tight highlight, and
the first row of a page takes none — the title above it is already the space. */
.node.h1 { margin-top: 30px; }
.node.h2 { margin-top: 24px; }
.node.h3 { margin-top: 20px; }
.node.h1, .node.h2, .node.h3 { margin-bottom: 6px; }
/* A plain row is prose rather than a list row, and Tana gives it air underneath: measured against the same
document, the gap from a paragraph to the row after it is 1.42x the pitch between two list rows, which at our
30px row is 12px more. Margins collapse, so a paragraph in front of a heading still takes the heading's. */
.node.t-paragraph { margin-bottom: 12px; }
/* A full reference carries its grey facts line, so the plain row after it would read as part of it at a list row's
pitch: a little air in between (#645). A paragraph reference already has more, and the margins collapse into it. */
.node.fullref + .node:not(.fullref) { margin-top: 8px; }
#outline > .node:first-child, .children > .node:first-child { margin-top: 0; }
.selected { background: #e8f1fb; } /* the whole node: a selected parent takes its children with it, so they show as selected too */
.selected .line { border-radius: 0; }
.selected .text { caret-color: transparent; }
/* a list row selected by a click on it (render.js topListRow): the blue ring a focused read-only row has, editable or
not, in place of the band; a selection made with ⇧ or ⌘ keeps the band */
.node.selected.picked, [data-theme="dark"] .node.selected.picked { background: transparent; }
.node.selected.picked > .line > .body > .text { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 3px; }
/* a list's or the Timeline's row before it is selected (render.js .selectfirst): a press on its words is a press on the