@jaetask/toolkit 0.0.0-stage → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,1143 @@
1
+ /* @jaetask/toolkit: tokens and component styles. Import once at the app's root:
2
+ import "@jaetask/toolkit/styles.css";
3
+ Dark values apply under .dark or [data-theme="dark"] on any ancestor. */
4
+
5
+ /* Inter (SIL Open Font License, fonts/OFL.txt), served next to this file. */
6
+ @font-face {
7
+ font-family: "Inter Variable";
8
+ font-style: normal;
9
+ font-display: swap;
10
+ font-weight: 100 900;
11
+ src: url("./fonts/inter-latin-ext-wght-normal.woff2") format("woff2-variations");
12
+ unicode-range:
13
+ U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329,
14
+ U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113,
15
+ U+2C60-2C7F, U+A720-A7FF;
16
+ }
17
+ @font-face {
18
+ font-family: "Inter Variable";
19
+ font-style: normal;
20
+ font-display: swap;
21
+ font-weight: 100 900;
22
+ src: url("./fonts/inter-latin-wght-normal.woff2") format("woff2-variations");
23
+ unicode-range:
24
+ U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308,
25
+ U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
26
+ }
27
+
28
+ :root {
29
+ --tk-ink: #1f2328;
30
+ --tk-muted: #6b6a63;
31
+ --tk-line: #e6e4dd;
32
+ --tk-line-strong: #c9c7bf;
33
+ --tk-panel: #f0efe9;
34
+ --tk-card: #ffffff;
35
+ --tk-page: #ffffff;
36
+ --tk-side: #fafafa;
37
+ --tk-side-fill: #f2f2f2;
38
+ --tk-side-text: #737373;
39
+ --tk-side-line: #e6e6e6;
40
+ --tk-primary: #262626;
41
+ --tk-on-primary: #ffffff;
42
+ --tk-todo: #c9c7bf;
43
+ --tk-doing: #d97706;
44
+ --tk-done: #1a7f37;
45
+ --tk-danger: #b42318;
46
+ --tk-focus: #1f2328;
47
+
48
+ /* The six named colours: labels, project colours, avatars. */
49
+ --tk-c-blue: #0b5cad;
50
+ --tk-c-blue-soft: #e3eefb;
51
+ --tk-c-teal: #0f766e;
52
+ --tk-c-teal-soft: #dcf2ef;
53
+ --tk-c-green: #1a7f37;
54
+ --tk-c-green-soft: #e3f2e7;
55
+ --tk-c-amber: #a6400c;
56
+ --tk-c-amber-soft: #fdf0dc;
57
+ --tk-c-purple: #6f42c1;
58
+ --tk-c-purple-soft: #efe7fb;
59
+ --tk-c-pink: #b4237a;
60
+ --tk-c-pink-soft: #fbe5f1;
61
+
62
+ --tk-font: "Inter Variable", "Inter", ui-sans-serif, system-ui, sans-serif;
63
+
64
+ --tk-radius-panel: 20px;
65
+ --tk-radius-edit: 16px;
66
+ --tk-radius-card: 14px;
67
+ --tk-radius-button: 10px;
68
+ --tk-radius-input: 8px;
69
+ --tk-radius-row: 6px;
70
+
71
+ --tk-sidebar-width: 17.25rem;
72
+ --tk-sidebar-collapsed: 3.25rem;
73
+ --tk-content-width: 75rem;
74
+ }
75
+
76
+ .dark,
77
+ [data-theme="dark"] {
78
+ --tk-ink: #e6edf3;
79
+ --tk-muted: #9a9890;
80
+ --tk-line: #3a3935;
81
+ --tk-line-strong: #5a5952;
82
+ --tk-panel: #222220;
83
+ --tk-card: #2d2d2b;
84
+ --tk-page: #181818;
85
+ --tk-side: #222222;
86
+ --tk-side-fill: #292929;
87
+ --tk-side-text: #999999;
88
+ --tk-side-line: #333333;
89
+ --tk-primary: #bfbfbf;
90
+ --tk-on-primary: #1a1a1a;
91
+ --tk-todo: #5a5952;
92
+ --tk-doing: #d97706;
93
+ --tk-done: #3fb950;
94
+ --tk-danger: #f97066;
95
+ --tk-focus: #e6edf3;
96
+
97
+ --tk-c-blue: #8cb8ef;
98
+ --tk-c-blue-soft: #10233d;
99
+ --tk-c-teal: #5ec8bc;
100
+ --tk-c-teal-soft: #0f2a27;
101
+ --tk-c-green: #3fb950;
102
+ --tk-c-green-soft: #12361f;
103
+ --tk-c-amber: #f0a268;
104
+ --tk-c-amber-soft: #3a2512;
105
+ --tk-c-purple: #c3a6f5;
106
+ --tk-c-purple-soft: #2a1d45;
107
+ --tk-c-pink: #f28bc4;
108
+ --tk-c-pink-soft: #3d1630;
109
+ }
110
+
111
+ /* ---------- Base ---------- */
112
+ .tk-root {
113
+ font-family: var(--tk-font);
114
+ font-feature-settings: "cv02", "cv03", "cv04", "cv11";
115
+ color: var(--tk-ink);
116
+ background: var(--tk-page);
117
+ font-size: 14px;
118
+ line-height: 1.5;
119
+ }
120
+ .tk-root *,
121
+ .tk-root *::before,
122
+ .tk-root *::after {
123
+ box-sizing: border-box;
124
+ }
125
+ .tk-root :focus-visible {
126
+ outline: 2px solid var(--tk-focus);
127
+ outline-offset: 2px;
128
+ }
129
+ .tk-muted {
130
+ color: var(--tk-muted);
131
+ }
132
+
133
+ /* ---------- Shell ---------- */
134
+ .tk-shell {
135
+ display: grid;
136
+ grid-template-columns: var(--tk-sidebar-width) minmax(0, 1fr);
137
+ min-height: 100dvh;
138
+ }
139
+ .tk-shell[data-collapsed="true"] {
140
+ grid-template-columns: var(--tk-sidebar-collapsed) minmax(0, 1fr);
141
+ }
142
+ .tk-side {
143
+ position: sticky;
144
+ top: 0;
145
+ height: 100dvh;
146
+ display: flex;
147
+ flex-direction: column;
148
+ min-width: 0;
149
+ background: var(--tk-side);
150
+ border-right: 1px solid var(--tk-side-line);
151
+ color: var(--tk-side-text);
152
+ }
153
+ .tk-side-scroll {
154
+ flex: 1;
155
+ min-height: 0;
156
+ overflow-y: auto;
157
+ padding-bottom: 16px;
158
+ }
159
+ .tk-mark {
160
+ display: flex;
161
+ align-items: center;
162
+ gap: 8px;
163
+ padding: 14px 16px 10px;
164
+ color: var(--tk-ink);
165
+ font-weight: 600;
166
+ text-decoration: none;
167
+ min-width: 0;
168
+ }
169
+ .tk-mark-icon {
170
+ display: grid;
171
+ place-items: center;
172
+ flex: none;
173
+ width: 22px;
174
+ height: 22px;
175
+ border-radius: 6px;
176
+ background: var(--tk-primary);
177
+ color: var(--tk-on-primary);
178
+ font-size: 12px;
179
+ font-weight: 800;
180
+ }
181
+ .tk-nav {
182
+ display: grid;
183
+ gap: 2px;
184
+ padding: 4px 12px;
185
+ }
186
+ .tk-nav-item,
187
+ .tk-group-item,
188
+ .tk-side-link {
189
+ display: flex;
190
+ align-items: center;
191
+ gap: 8px;
192
+ min-width: 0;
193
+ padding: 6px 12px;
194
+ border-radius: var(--tk-radius-row);
195
+ color: var(--tk-side-text);
196
+ text-decoration: none;
197
+ }
198
+ .tk-nav-item:hover,
199
+ .tk-group-item:hover,
200
+ .tk-side-link:hover {
201
+ background: var(--tk-side-fill);
202
+ }
203
+ .tk-nav-item[aria-current="page"] {
204
+ background: var(--tk-side-fill);
205
+ color: var(--tk-ink);
206
+ font-weight: 500;
207
+ }
208
+ .tk-nav-icon {
209
+ display: inline-flex;
210
+ flex: none;
211
+ width: 16px;
212
+ height: 16px;
213
+ }
214
+ .tk-nav-icon > svg {
215
+ width: 16px;
216
+ height: 16px;
217
+ }
218
+ .tk-label {
219
+ overflow: hidden;
220
+ text-overflow: ellipsis;
221
+ white-space: nowrap;
222
+ }
223
+ .tk-group-label {
224
+ display: block;
225
+ padding: 14px 22px 6px;
226
+ font-size: 11px;
227
+ font-weight: 800;
228
+ letter-spacing: 0.08em;
229
+ text-transform: uppercase;
230
+ color: var(--tk-side-text);
231
+ text-decoration: none;
232
+ }
233
+ a.tk-group-label:hover {
234
+ color: var(--tk-ink);
235
+ }
236
+ .tk-group {
237
+ display: grid;
238
+ gap: 2px;
239
+ }
240
+ .tk-group-item {
241
+ margin: 0 12px;
242
+ color: var(--tk-ink);
243
+ }
244
+ .tk-group-item .tk-dot {
245
+ margin-left: auto;
246
+ }
247
+ .tk-avatar {
248
+ display: grid;
249
+ place-items: center;
250
+ flex: none;
251
+ width: 22px;
252
+ height: 22px;
253
+ border-radius: 50%;
254
+ overflow: hidden;
255
+ background: var(--tk-line);
256
+ color: var(--tk-ink);
257
+ font-size: 11px;
258
+ font-weight: 700;
259
+ }
260
+ .tk-group-row {
261
+ display: flex;
262
+ align-items: center;
263
+ gap: 2px;
264
+ margin: 0 12px;
265
+ border-radius: var(--tk-radius-row);
266
+ }
267
+ .tk-group-row > .tk-group-item {
268
+ flex: 1;
269
+ margin: 0;
270
+ }
271
+ .tk-chevron > svg {
272
+ transition: transform 120ms ease;
273
+ }
274
+ .tk-chevron[aria-expanded="true"] > svg {
275
+ transform: rotate(90deg);
276
+ }
277
+ .tk-group-open > .tk-group-row {
278
+ margin: 0 6px;
279
+ }
280
+ .tk-group-open {
281
+ margin: 2px 12px;
282
+ padding: 6px 0 10px;
283
+ border-radius: 10px;
284
+ background: var(--tk-panel);
285
+ }
286
+ .tk-group-open > .tk-group-item {
287
+ margin: 0 6px;
288
+ font-weight: 600;
289
+ }
290
+ .tk-side-section {
291
+ display: grid;
292
+ gap: 1px;
293
+ }
294
+ .tk-side-section > .tk-group-label {
295
+ padding: 10px 18px 4px;
296
+ font-size: 10.5px;
297
+ }
298
+ .tk-side-link {
299
+ justify-content: space-between;
300
+ margin: 0 6px;
301
+ padding: 5px 12px;
302
+ color: var(--tk-ink);
303
+ font-size: 13px;
304
+ }
305
+ .tk-side-link[aria-current="page"] {
306
+ background: var(--tk-card);
307
+ font-weight: 500;
308
+ }
309
+ .tk-side-link-text {
310
+ display: flex;
311
+ flex-direction: column;
312
+ min-width: 0;
313
+ }
314
+ .tk-side-link-line {
315
+ color: var(--tk-side-text);
316
+ font-size: 11px;
317
+ font-weight: 400;
318
+ line-height: 1.3;
319
+ }
320
+ .tk-side-empty {
321
+ padding: 6px 24px;
322
+ font-size: 12px;
323
+ color: var(--tk-side-text);
324
+ }
325
+ .tk-nav-bottom {
326
+ padding-block: 8px;
327
+ border-top: 1px solid var(--tk-side-line);
328
+ }
329
+ .tk-side-foot {
330
+ display: flex;
331
+ align-items: center;
332
+ gap: 4px;
333
+ padding: 10px 12px 10px 16px;
334
+ border-top: 1px solid var(--tk-side-line);
335
+ color: var(--tk-ink);
336
+ font-size: 13px;
337
+ }
338
+ .tk-side-foot > .tk-settings {
339
+ flex: 1;
340
+ color: inherit;
341
+ text-decoration: none;
342
+ }
343
+ .tk-icon-button {
344
+ display: inline-grid;
345
+ place-items: center;
346
+ width: 28px;
347
+ height: 28px;
348
+ border: 0;
349
+ border-radius: var(--tk-radius-row);
350
+ background: transparent;
351
+ color: var(--tk-side-text);
352
+ cursor: pointer;
353
+ }
354
+ .tk-icon-button:hover {
355
+ background: var(--tk-side-fill);
356
+ color: var(--tk-ink);
357
+ }
358
+ .tk-icon-button > svg {
359
+ width: 16px;
360
+ height: 16px;
361
+ }
362
+ .tk-shell[data-collapsed="true"] .tk-label,
363
+ .tk-shell[data-collapsed="true"] .tk-group-label,
364
+ .tk-shell[data-collapsed="true"] .tk-group-open > :not(.tk-group-item):not(.tk-group-row),
365
+ .tk-shell[data-collapsed="true"] .tk-dot,
366
+ .tk-shell[data-collapsed="true"] .tk-chevron,
367
+ .tk-shell[data-collapsed="true"] .tk-settings,
368
+ .tk-shell[data-collapsed="true"] .tk-side-empty {
369
+ display: none;
370
+ }
371
+ .tk-shell[data-collapsed="true"] .tk-nav,
372
+ .tk-shell[data-collapsed="true"] .tk-group-item,
373
+ .tk-shell[data-collapsed="true"] .tk-group-open {
374
+ margin-inline: 4px;
375
+ padding-inline: 4px;
376
+ }
377
+ .tk-shell[data-collapsed="true"] .tk-nav-item,
378
+ .tk-shell[data-collapsed="true"] .tk-group-item,
379
+ .tk-shell[data-collapsed="true"] .tk-mark {
380
+ justify-content: center;
381
+ padding-inline: 0;
382
+ }
383
+ .tk-shell[data-collapsed="true"] .tk-side-foot {
384
+ flex-direction: column;
385
+ padding-inline: 0;
386
+ }
387
+
388
+ .tk-main {
389
+ display: flex;
390
+ flex-direction: column;
391
+ min-width: 0;
392
+ }
393
+ .tk-top {
394
+ display: flex;
395
+ align-items: center;
396
+ gap: 8px;
397
+ min-height: 52px;
398
+ padding: 10px 24px;
399
+ }
400
+ .tk-top-title {
401
+ font-weight: 500;
402
+ }
403
+ .tk-top-app {
404
+ color: var(--tk-muted);
405
+ font-size: 13px;
406
+ }
407
+ .tk-top-aside {
408
+ margin-left: auto;
409
+ display: flex;
410
+ align-items: center;
411
+ gap: 8px;
412
+ }
413
+ .tk-content {
414
+ flex: 1;
415
+ min-width: 0;
416
+ padding: 12px 24px 40px;
417
+ }
418
+
419
+ @media (max-width: 760px) {
420
+ .tk-shell,
421
+ .tk-shell[data-collapsed="true"] {
422
+ grid-template-columns: 1fr;
423
+ }
424
+ .tk-side {
425
+ position: static;
426
+ height: auto;
427
+ border-right: 0;
428
+ border-bottom: 1px solid var(--tk-side-line);
429
+ }
430
+ .tk-side-scroll {
431
+ max-height: 50dvh;
432
+ }
433
+ .tk-top,
434
+ .tk-content {
435
+ padding-inline: 16px;
436
+ }
437
+ }
438
+
439
+ /* ---------- Page kit ---------- */
440
+ .tk-page {
441
+ display: flex;
442
+ flex-direction: column;
443
+ gap: 28px;
444
+ max-width: var(--tk-content-width);
445
+ }
446
+ .tk-page-head {
447
+ display: flex;
448
+ flex-wrap: wrap;
449
+ align-items: flex-start;
450
+ justify-content: space-between;
451
+ gap: 16px;
452
+ }
453
+ .tk-page-title {
454
+ margin: 0;
455
+ font-size: 26px;
456
+ font-weight: 800;
457
+ line-height: 1.15;
458
+ }
459
+ .tk-page-line {
460
+ margin: 4px 0 0;
461
+ color: var(--tk-muted);
462
+ font-size: 14px;
463
+ }
464
+ .tk-panel {
465
+ display: flex;
466
+ flex-direction: column;
467
+ gap: 14px;
468
+ padding: 22px 24px 24px;
469
+ border-radius: var(--tk-radius-panel);
470
+ background: var(--tk-panel);
471
+ scroll-margin-top: 96px;
472
+ }
473
+ .tk-panel-head {
474
+ display: flex;
475
+ flex-wrap: wrap;
476
+ align-items: flex-start;
477
+ justify-content: space-between;
478
+ gap: 12px;
479
+ }
480
+ .tk-panel-title {
481
+ margin: 0;
482
+ font-size: 20px;
483
+ font-weight: 800;
484
+ line-height: 1.25;
485
+ }
486
+ .tk-panel-line {
487
+ margin: 4px 0 0;
488
+ color: var(--tk-muted);
489
+ font-size: 14px;
490
+ line-height: 1.35;
491
+ }
492
+ .tk-card {
493
+ padding: 20px 24px;
494
+ border: 1px solid var(--tk-line);
495
+ border-radius: var(--tk-radius-card);
496
+ background: var(--tk-card);
497
+ }
498
+ .tk-kicker {
499
+ font-size: 12px;
500
+ font-weight: 700;
501
+ letter-spacing: 0.08em;
502
+ text-transform: uppercase;
503
+ color: var(--tk-muted);
504
+ }
505
+ .tk-list {
506
+ margin: 0;
507
+ padding: 0;
508
+ list-style: none;
509
+ overflow: hidden;
510
+ border: 1px solid var(--tk-line);
511
+ border-radius: var(--tk-radius-card);
512
+ background: var(--tk-card);
513
+ }
514
+ .tk-list-row {
515
+ display: flex;
516
+ align-items: center;
517
+ gap: 12px;
518
+ padding: 13px 20px;
519
+ border-top: 1px solid var(--tk-line);
520
+ }
521
+ .tk-list-row:first-child {
522
+ border-top: 0;
523
+ }
524
+ .tk-list-body {
525
+ display: flex;
526
+ flex: 1;
527
+ flex-direction: column;
528
+ gap: 4px;
529
+ min-width: 0;
530
+ color: inherit;
531
+ text-decoration: none;
532
+ }
533
+ a.tk-list-body:hover {
534
+ opacity: 0.8;
535
+ }
536
+ .tk-list-aside {
537
+ display: flex;
538
+ flex: none;
539
+ align-items: center;
540
+ gap: 8px;
541
+ }
542
+ .tk-empty {
543
+ display: flex;
544
+ flex-wrap: wrap;
545
+ align-items: center;
546
+ justify-content: space-between;
547
+ gap: 12px;
548
+ padding: 16px 20px;
549
+ border: 1px dashed var(--tk-line-strong);
550
+ border-radius: var(--tk-radius-card);
551
+ }
552
+ .tk-empty > p {
553
+ margin: 0;
554
+ color: var(--tk-muted);
555
+ }
556
+ .tk-dot {
557
+ display: inline-block;
558
+ flex: none;
559
+ width: 8px;
560
+ height: 8px;
561
+ border-radius: 50%;
562
+ }
563
+ .tk-dot[data-status="not-started"] {
564
+ background: var(--tk-todo);
565
+ }
566
+ .tk-dot[data-status="in-progress"] {
567
+ background: var(--tk-doing);
568
+ }
569
+ .tk-dot[data-status="done"] {
570
+ background: var(--tk-done);
571
+ }
572
+ .tk-status {
573
+ display: inline-flex;
574
+ align-items: center;
575
+ gap: 6px;
576
+ color: var(--tk-muted);
577
+ font-size: 13px;
578
+ }
579
+ .tk-chip {
580
+ display: inline-block;
581
+ padding: 4px 10px;
582
+ border-radius: 999px;
583
+ background: var(--tk-panel);
584
+ color: var(--tk-ink);
585
+ font-size: 13px;
586
+ }
587
+ .tk-chips {
588
+ display: flex;
589
+ flex-wrap: wrap;
590
+ gap: 6px;
591
+ }
592
+
593
+ /* ---------- Buttons and inputs ---------- */
594
+ .tk-button {
595
+ display: inline-flex;
596
+ align-items: center;
597
+ justify-content: center;
598
+ gap: 6px;
599
+ padding: 8px 14px;
600
+ border: 0;
601
+ border-radius: var(--tk-radius-button);
602
+ background: var(--tk-card);
603
+ color: var(--tk-ink);
604
+ font: 600 13px / 1.25 var(--tk-font);
605
+ text-decoration: none;
606
+ white-space: nowrap;
607
+ cursor: pointer;
608
+ }
609
+ .tk-button:hover {
610
+ background: var(--tk-line);
611
+ }
612
+ .tk-button[data-surface="white"] {
613
+ background: var(--tk-panel);
614
+ }
615
+ .tk-button[data-surface="white"]:hover {
616
+ background: var(--tk-line);
617
+ }
618
+ .tk-button[data-variant="primary"] {
619
+ background: var(--tk-primary);
620
+ color: var(--tk-on-primary);
621
+ }
622
+ .tk-button[data-variant="primary"]:hover {
623
+ opacity: 0.9;
624
+ }
625
+ .tk-button[data-variant="danger"] {
626
+ background: var(--tk-danger);
627
+ color: #ffffff;
628
+ }
629
+ .tk-button:disabled,
630
+ .tk-button[aria-disabled="true"] {
631
+ opacity: 0.5;
632
+ cursor: default;
633
+ pointer-events: none;
634
+ }
635
+ .tk-input,
636
+ .tk-textarea,
637
+ .tk-select {
638
+ width: 100%;
639
+ padding: 9px 11px;
640
+ border: 1px solid var(--tk-line);
641
+ border-radius: var(--tk-radius-input);
642
+ background: var(--tk-card);
643
+ color: var(--tk-ink);
644
+ font: 14px / 1.4 var(--tk-font);
645
+ }
646
+ .tk-textarea {
647
+ min-height: 80px;
648
+ resize: vertical;
649
+ }
650
+ .tk-input:focus-visible,
651
+ .tk-textarea:focus-visible,
652
+ .tk-select:focus-visible {
653
+ outline: 2px solid var(--tk-focus);
654
+ outline-offset: 0;
655
+ border-color: transparent;
656
+ }
657
+ .tk-pick {
658
+ padding: 6px 12px;
659
+ border: 0;
660
+ border-radius: 999px;
661
+ background: var(--tk-panel);
662
+ color: var(--tk-ink);
663
+ font: 600 13px / 1.25 var(--tk-font);
664
+ cursor: pointer;
665
+ }
666
+ .tk-pick[aria-checked="true"] {
667
+ background: var(--tk-ink);
668
+ color: var(--tk-page);
669
+ }
670
+
671
+ /* ---------- Edit page ---------- */
672
+ .tk-edit {
673
+ display: flex;
674
+ flex-direction: column;
675
+ gap: 24px;
676
+ max-width: var(--tk-content-width);
677
+ }
678
+ .tk-edit-card {
679
+ padding: 4px 32px 8px;
680
+ border: 1px solid var(--tk-line);
681
+ border-radius: var(--tk-radius-edit);
682
+ background: var(--tk-card);
683
+ }
684
+ .tk-edit-bar {
685
+ display: flex;
686
+ flex-wrap: wrap;
687
+ align-items: center;
688
+ justify-content: flex-end;
689
+ gap: 8px;
690
+ }
691
+ .tk-edit-extra {
692
+ margin-right: auto;
693
+ }
694
+ .tk-row {
695
+ display: grid;
696
+ grid-template-columns: 200px minmax(0, 1fr);
697
+ gap: 24px;
698
+ padding: 22px 0;
699
+ border-top: 1px solid var(--tk-line);
700
+ }
701
+ .tk-row:first-child {
702
+ border-top: 0;
703
+ }
704
+ .tk-row-label {
705
+ display: flex;
706
+ flex-direction: column;
707
+ gap: 4px;
708
+ }
709
+ .tk-row-title {
710
+ font-size: 15px;
711
+ font-weight: 800;
712
+ }
713
+ .tk-row-line {
714
+ color: var(--tk-muted);
715
+ font-size: 12px;
716
+ line-height: 1.35;
717
+ }
718
+ .tk-row-fields {
719
+ display: flex;
720
+ flex-direction: column;
721
+ gap: 12px;
722
+ min-width: 0;
723
+ }
724
+ @media (max-width: 760px) {
725
+ .tk-row {
726
+ grid-template-columns: 1fr;
727
+ gap: 10px;
728
+ }
729
+ .tk-edit-card {
730
+ padding-inline: 18px;
731
+ }
732
+ }
733
+
734
+ /* ---------- Confirm delete ---------- */
735
+ .tk-dialog {
736
+ max-width: 28rem;
737
+ padding: 24px;
738
+ border: 1px solid var(--tk-line);
739
+ border-radius: var(--tk-radius-card);
740
+ background: var(--tk-card);
741
+ color: var(--tk-ink);
742
+ font-family: var(--tk-font);
743
+ }
744
+ .tk-dialog::backdrop {
745
+ background: rgb(0 0 0 / 0.35);
746
+ }
747
+ .tk-dialog-form {
748
+ display: flex;
749
+ flex-direction: column;
750
+ gap: 14px;
751
+ }
752
+ .tk-dialog-title {
753
+ margin: 0;
754
+ font-size: 18px;
755
+ font-weight: 800;
756
+ }
757
+
758
+ @media (prefers-reduced-motion: reduce) {
759
+ .tk-chevron > svg {
760
+ transition: none;
761
+ }
762
+ }
763
+
764
+ /* ---------- Named colours ---------- */
765
+ [data-colour="blue"] {
766
+ --tk-tint: var(--tk-c-blue);
767
+ --tk-tint-soft: var(--tk-c-blue-soft);
768
+ }
769
+ [data-colour="teal"] {
770
+ --tk-tint: var(--tk-c-teal);
771
+ --tk-tint-soft: var(--tk-c-teal-soft);
772
+ }
773
+ [data-colour="green"] {
774
+ --tk-tint: var(--tk-c-green);
775
+ --tk-tint-soft: var(--tk-c-green-soft);
776
+ }
777
+ [data-colour="amber"] {
778
+ --tk-tint: var(--tk-c-amber);
779
+ --tk-tint-soft: var(--tk-c-amber-soft);
780
+ }
781
+ [data-colour="purple"] {
782
+ --tk-tint: var(--tk-c-purple);
783
+ --tk-tint-soft: var(--tk-c-purple-soft);
784
+ }
785
+ [data-colour="pink"] {
786
+ --tk-tint: var(--tk-c-pink);
787
+ --tk-tint-soft: var(--tk-c-pink-soft);
788
+ }
789
+ .tk-chip[data-colour] {
790
+ background: var(--tk-tint-soft);
791
+ color: var(--tk-tint);
792
+ font-weight: 600;
793
+ }
794
+ .tk-avatar[data-colour] {
795
+ background: var(--tk-tint);
796
+ color: var(--tk-page);
797
+ }
798
+ .tk-avatar[data-emoji="true"] {
799
+ font-size: 13px;
800
+ }
801
+ .tk-avatar[data-emoji="true"][data-colour] {
802
+ background: var(--tk-tint-soft);
803
+ }
804
+ .tk-avatar > img {
805
+ width: 100%;
806
+ height: 100%;
807
+ object-fit: cover;
808
+ }
809
+
810
+ /* ---------- Counts ---------- */
811
+ .tk-count {
812
+ margin-left: auto;
813
+ min-width: 20px;
814
+ padding: 1px 7px;
815
+ border-radius: 999px;
816
+ background: var(--tk-side-fill);
817
+ color: var(--tk-muted);
818
+ font-size: 12px;
819
+ font-weight: 600;
820
+ text-align: center;
821
+ font-variant-numeric: tabular-nums;
822
+ }
823
+ .tk-tab .tk-count,
824
+ .tk-column-head .tk-count {
825
+ margin-left: 6px;
826
+ background: var(--tk-panel);
827
+ }
828
+
829
+ /* ---------- Rows: drag, blocked ---------- */
830
+ .tk-list-row[draggable="true"] {
831
+ cursor: grab;
832
+ }
833
+ .tk-list-row[draggable="true"]:active {
834
+ cursor: grabbing;
835
+ }
836
+ .tk-list-row[data-blocked="true"] .tk-list-body {
837
+ color: var(--tk-muted);
838
+ }
839
+ .tk-group-slot[data-over="true"],
840
+ .tk-group-open[data-over="true"] {
841
+ box-shadow: inset 0 2px 0 var(--tk-ink);
842
+ border-radius: var(--tk-radius-row);
843
+ }
844
+ .tk-group-slot[draggable="true"],
845
+ .tk-group-open[draggable="true"] {
846
+ cursor: grab;
847
+ }
848
+
849
+ /* ---------- Board ---------- */
850
+ .tk-board {
851
+ display: grid;
852
+ grid-auto-flow: column;
853
+ grid-auto-columns: minmax(260px, 1fr);
854
+ gap: 14px;
855
+ overflow-x: auto;
856
+ padding-bottom: 4px;
857
+ }
858
+ .tk-column {
859
+ display: flex;
860
+ flex-direction: column;
861
+ gap: 10px;
862
+ min-width: 0;
863
+ padding: 14px;
864
+ border-radius: var(--tk-radius-card);
865
+ background: var(--tk-panel);
866
+ outline: 2px dashed transparent;
867
+ outline-offset: -2px;
868
+ }
869
+ .tk-column[data-over="true"] {
870
+ outline-color: var(--tk-line-strong);
871
+ }
872
+ .tk-column-head {
873
+ display: flex;
874
+ align-items: center;
875
+ gap: 8px;
876
+ min-width: 0;
877
+ }
878
+ .tk-column-title {
879
+ margin: 0;
880
+ font-size: 15px;
881
+ font-weight: 800;
882
+ }
883
+ .tk-column-action {
884
+ margin-left: auto;
885
+ }
886
+ .tk-column-list .tk-list-row {
887
+ padding: 11px 14px;
888
+ }
889
+ .tk-column-empty {
890
+ margin: 0;
891
+ padding: 14px;
892
+ border: 1px dashed var(--tk-line-strong);
893
+ border-radius: var(--tk-radius-card);
894
+ color: var(--tk-muted);
895
+ font-size: 13px;
896
+ }
897
+
898
+ /* ---------- Thread ---------- */
899
+ .tk-thread,
900
+ .tk-replies {
901
+ margin: 0;
902
+ padding: 0;
903
+ list-style: none;
904
+ }
905
+ .tk-thread {
906
+ display: flex;
907
+ flex-direction: column;
908
+ gap: 14px;
909
+ }
910
+ .tk-comment {
911
+ display: flex;
912
+ gap: 10px;
913
+ align-items: flex-start;
914
+ }
915
+ .tk-comment-main {
916
+ display: flex;
917
+ flex: 1;
918
+ flex-direction: column;
919
+ gap: 4px;
920
+ min-width: 0;
921
+ }
922
+ .tk-comment-head {
923
+ display: flex;
924
+ align-items: baseline;
925
+ gap: 8px;
926
+ }
927
+ .tk-comment-author {
928
+ font-weight: 700;
929
+ }
930
+ .tk-comment-time {
931
+ color: var(--tk-muted);
932
+ font-size: 12px;
933
+ }
934
+ .tk-comment-text {
935
+ overflow-wrap: anywhere;
936
+ white-space: pre-wrap;
937
+ }
938
+ .tk-comment-foot {
939
+ display: flex;
940
+ flex-wrap: wrap;
941
+ align-items: center;
942
+ gap: 8px;
943
+ }
944
+ .tk-replies {
945
+ display: flex;
946
+ flex-direction: column;
947
+ gap: 12px;
948
+ margin-top: 8px;
949
+ padding-left: 14px;
950
+ border-left: 2px solid var(--tk-line);
951
+ }
952
+ .tk-reactions {
953
+ display: inline-flex;
954
+ flex-wrap: wrap;
955
+ gap: 4px;
956
+ }
957
+ .tk-reaction {
958
+ padding: 2px 8px;
959
+ border: 1px solid var(--tk-line);
960
+ border-radius: 999px;
961
+ background: var(--tk-card);
962
+ color: var(--tk-ink);
963
+ font: 500 12px / 1.5 var(--tk-font);
964
+ cursor: pointer;
965
+ }
966
+ .tk-reaction[aria-pressed="true"] {
967
+ border-color: var(--tk-ink);
968
+ background: var(--tk-panel);
969
+ }
970
+ .tk-activity {
971
+ display: flex;
972
+ flex-wrap: wrap;
973
+ align-items: center;
974
+ gap: 8px;
975
+ color: var(--tk-muted);
976
+ font-size: 13px;
977
+ }
978
+ .tk-activity-dot {
979
+ width: 6px;
980
+ height: 6px;
981
+ margin: 0 8px;
982
+ border-radius: 50%;
983
+ background: var(--tk-line-strong);
984
+ }
985
+ .tk-activity-action {
986
+ margin-left: auto;
987
+ }
988
+
989
+ /* ---------- Facts, notices, inline ---------- */
990
+ .tk-facts {
991
+ display: grid;
992
+ grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
993
+ gap: 16px;
994
+ margin: 0;
995
+ }
996
+ .tk-fact {
997
+ display: flex;
998
+ flex-direction: column;
999
+ gap: 4px;
1000
+ min-width: 0;
1001
+ }
1002
+ .tk-fact > dd {
1003
+ margin: 0;
1004
+ overflow-wrap: anywhere;
1005
+ }
1006
+ .tk-notice {
1007
+ display: flex;
1008
+ align-items: center;
1009
+ gap: 10px;
1010
+ padding: 10px 12px 10px 16px;
1011
+ border-radius: var(--tk-radius-button);
1012
+ background: var(--tk-panel);
1013
+ color: var(--tk-ink);
1014
+ }
1015
+ .tk-notice[data-tone="done"] {
1016
+ background: var(--tk-c-green-soft);
1017
+ }
1018
+ .tk-notice[data-tone="refused"] {
1019
+ background: var(--tk-c-amber-soft);
1020
+ }
1021
+ .tk-notice-text {
1022
+ flex: 1;
1023
+ min-width: 0;
1024
+ }
1025
+ .tk-notice[data-floating="true"] {
1026
+ position: fixed;
1027
+ right: max(16px, env(safe-area-inset-right, 0px));
1028
+ bottom: calc(16px + env(safe-area-inset-bottom, 0px));
1029
+ z-index: 50;
1030
+ max-width: min(28rem, calc(100vw - 32px));
1031
+ box-shadow: 0 6px 24px rgb(0 0 0 / 0.12);
1032
+ }
1033
+ .tk-inline {
1034
+ display: flex;
1035
+ flex-wrap: wrap;
1036
+ align-items: center;
1037
+ gap: 8px;
1038
+ }
1039
+ .tk-inline > .tk-input,
1040
+ .tk-inline > .tk-select {
1041
+ width: auto;
1042
+ flex: 1 1 10rem;
1043
+ }
1044
+
1045
+ /* ---------- Centred page ---------- */
1046
+ .tk-centered {
1047
+ display: grid;
1048
+ place-items: center;
1049
+ min-height: 100dvh;
1050
+ padding: 16px;
1051
+ }
1052
+ .tk-centered-panel {
1053
+ width: min(100%, 30rem);
1054
+ }
1055
+
1056
+ /* ---------- Tabs, composer, filters ---------- */
1057
+ .tk-tabs {
1058
+ display: flex;
1059
+ flex-wrap: wrap;
1060
+ gap: 4px;
1061
+ padding: 4px;
1062
+ border-radius: 12px;
1063
+ background: var(--tk-panel);
1064
+ width: fit-content;
1065
+ max-width: 100%;
1066
+ }
1067
+ .tk-tab {
1068
+ display: inline-flex;
1069
+ align-items: center;
1070
+ padding: 6px 12px;
1071
+ border: 0;
1072
+ border-radius: 8px;
1073
+ background: transparent;
1074
+ color: var(--tk-muted);
1075
+ font: 600 13px / 1.25 var(--tk-font);
1076
+ text-decoration: none;
1077
+ cursor: pointer;
1078
+ }
1079
+ .tk-tab:hover {
1080
+ color: var(--tk-ink);
1081
+ }
1082
+ .tk-tab[aria-selected="true"],
1083
+ .tk-tab[aria-current="page"] {
1084
+ background: var(--tk-card);
1085
+ color: var(--tk-ink);
1086
+ }
1087
+ .tk-composer {
1088
+ display: flex;
1089
+ gap: 8px;
1090
+ }
1091
+ .tk-filter {
1092
+ display: flex;
1093
+ flex-wrap: wrap;
1094
+ align-items: center;
1095
+ gap: 8px;
1096
+ }
1097
+ .tk-filter > .tk-search {
1098
+ flex: 1 1 14rem;
1099
+ width: auto;
1100
+ }
1101
+ .tk-filter > .tk-select {
1102
+ width: auto;
1103
+ }
1104
+ .tk-pick[aria-pressed="true"] {
1105
+ background: var(--tk-ink);
1106
+ color: var(--tk-page);
1107
+ }
1108
+
1109
+ /* ---------- Thumbnails ---------- */
1110
+ .tk-thumbs {
1111
+ display: grid;
1112
+ grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
1113
+ gap: 10px;
1114
+ margin: 0;
1115
+ padding: 0;
1116
+ list-style: none;
1117
+ }
1118
+ .tk-thumb {
1119
+ position: relative;
1120
+ overflow: hidden;
1121
+ aspect-ratio: 1;
1122
+ max-width: 100%;
1123
+ border: 1px solid var(--tk-line);
1124
+ border-radius: var(--tk-radius-card);
1125
+ background: var(--tk-panel);
1126
+ }
1127
+ .tk-thumb > img {
1128
+ width: 100%;
1129
+ height: 100%;
1130
+ object-fit: cover;
1131
+ }
1132
+ .tk-thumb-remove {
1133
+ position: absolute;
1134
+ right: 6px;
1135
+ bottom: 6px;
1136
+ padding: 4px 8px;
1137
+ border: 0;
1138
+ border-radius: 8px;
1139
+ background: var(--tk-card);
1140
+ color: var(--tk-ink);
1141
+ font: 600 12px / 1.25 var(--tk-font);
1142
+ cursor: pointer;
1143
+ }