@jgb-solutions/kit 0.2.3 → 0.3.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.
Files changed (35) hide show
  1. package/CHANGELOG.md +6 -0
  2. package/README.md +120 -2
  3. package/dist/admin/blocks/ActivityFeed.d.ts +20 -0
  4. package/dist/admin/blocks/BarChart.d.ts +26 -0
  5. package/dist/admin/blocks/ChartPoints.d.ts +24 -0
  6. package/dist/admin/blocks/DataTable.d.ts +58 -0
  7. package/dist/admin/blocks/Filters.d.ts +12 -0
  8. package/dist/admin/blocks/Hero.d.ts +22 -0
  9. package/dist/admin/blocks/LineChart.d.ts +24 -0
  10. package/dist/admin/blocks/Pagination.d.ts +30 -0
  11. package/dist/admin/blocks/Segmented.d.ts +15 -0
  12. package/dist/admin/blocks/Stat.d.ts +35 -0
  13. package/dist/admin/blocks/Status.d.ts +22 -0
  14. package/dist/admin/blocks/Tile.d.ts +20 -0
  15. package/dist/admin/blocks/sorting.d.ts +29 -0
  16. package/dist/admin/contrast.d.ts +12 -0
  17. package/dist/admin/forms/ConfirmDialog.d.ts +25 -0
  18. package/dist/admin/forms/Field.d.ts +48 -0
  19. package/dist/admin/forms/People.d.ts +28 -0
  20. package/dist/admin/forms/Toast.d.ts +17 -0
  21. package/dist/admin/icons.d.ts +31 -0
  22. package/dist/admin/index.d.ts +33 -0
  23. package/dist/admin/shell/AdminShell.d.ts +31 -0
  24. package/dist/admin/shell/Dock.d.ts +8 -0
  25. package/dist/admin/shell/PageHeader.d.ts +19 -0
  26. package/dist/admin/shell/Sidebar.d.ts +27 -0
  27. package/dist/admin/shell/ThemeToggle.d.ts +10 -0
  28. package/dist/admin/shell/nav.d.ts +33 -0
  29. package/dist/admin/styles.css +1677 -0
  30. package/dist/admin/theme.d.ts +30 -0
  31. package/dist/admin/ui/Avatar.d.ts +14 -0
  32. package/dist/admin/ui/Button.d.ts +19 -0
  33. package/dist/admin.d.ts +2 -0
  34. package/dist/admin.js +2168 -0
  35. package/package.json +36 -7
@@ -0,0 +1,1677 @@
1
+ /*
2
+ * @jgb-solutions/admin: design tokens. "Bento + Daylight's details" (owner, 2026-11-24).
3
+ *
4
+ * Everything lives under .ja-root (AdminShell's element), so the admin never restyles the rest of
5
+ * the app. The app sets --brand (AdminShell's `brand` prop); every other token is the kit's.
6
+ * Light by default; dark with data-theme="dark", or with the system's dark mode while the theme is
7
+ * "system" (no data-theme="light").
8
+ */
9
+ .ja-root {
10
+ --brand: #6b4ce6;
11
+ --brand-ink: #ffffff;
12
+ --brand-soft: color-mix(in oklab, var(--brand) 14%, white);
13
+ --sun: #ffc84a;
14
+ --sun-ink: #4a3500;
15
+ --canvas: #eceaf6;
16
+ --tile: #ffffff;
17
+ --tile-sunk: #f6f5fb;
18
+ --night: #1f1b33;
19
+ --night-muted: #a9a3cc;
20
+ --night-ink: #ffffff;
21
+ --ink: #1c1930;
22
+ --muted: #6b6785; /* the mockup's #6d6987 is 4.39:1 on the canvas; this is the nearest that meets AA */
23
+ --line: #e4e1f0;
24
+ --good: #158150; /* the mockup's #18915a is 3.7:1 on --tile-sunk; this is the nearest that meets AA */
25
+ --warn: #946200;
26
+ --bad: #b42318;
27
+ --good-soft: #e3f5ec;
28
+ --warn-soft: #fff3d6;
29
+ --bad-soft: #fde7e5;
30
+ --bad-ink: #ffffff;
31
+ --focus: var(--brand);
32
+
33
+ --r-tile: 24px;
34
+ --r-control: 12px;
35
+ --r-row: 16px;
36
+ --r-pill: 999px;
37
+ --gap: 14px;
38
+ --pad: 18px 20px;
39
+
40
+ --font-display: 'Bricolage Grotesque', Figtree, ui-sans-serif, system-ui, sans-serif;
41
+ --font-body: Figtree, ui-sans-serif, system-ui, sans-serif;
42
+
43
+ color-scheme: light;
44
+ }
45
+
46
+ .ja-root[data-theme='dark'] {
47
+ --brand-soft: color-mix(in oklab, var(--brand) 22%, var(--tile));
48
+ --canvas: #121022;
49
+ --tile: #1c1930;
50
+ --tile-sunk: #24203a;
51
+ --night: #0d0b18;
52
+ --ink: #f1effa;
53
+ --muted: #a39fbf;
54
+ --line: #2e2a47;
55
+ --good: #4cc38a;
56
+ --warn: #f0b429;
57
+ --bad: #ff7a6b;
58
+ --bad-ink: #1c1930;
59
+ --good-soft: color-mix(in oklab, #4cc38a 18%, var(--tile));
60
+ --warn-soft: color-mix(in oklab, #f0b429 18%, var(--tile));
61
+ --bad-soft: color-mix(in oklab, #ff7a6b 18%, var(--tile));
62
+ --focus: color-mix(in oklab, var(--brand) 60%, white);
63
+ color-scheme: dark;
64
+ }
65
+
66
+ @media (prefers-color-scheme: dark) {
67
+ .ja-root:not([data-theme='light']) {
68
+ --brand-soft: color-mix(in oklab, var(--brand) 22%, var(--tile));
69
+ --canvas: #121022;
70
+ --tile: #1c1930;
71
+ --tile-sunk: #24203a;
72
+ --night: #0d0b18;
73
+ --ink: #f1effa;
74
+ --muted: #a39fbf;
75
+ --line: #2e2a47;
76
+ --good: #4cc38a;
77
+ --warn: #f0b429;
78
+ --bad: #ff7a6b;
79
+ --bad-ink: #1c1930;
80
+ --good-soft: color-mix(in oklab, #4cc38a 18%, var(--tile));
81
+ --warn-soft: color-mix(in oklab, #f0b429 18%, var(--tile));
82
+ --bad-soft: color-mix(in oklab, #ff7a6b 18%, var(--tile));
83
+ --focus: color-mix(in oklab, var(--brand) 60%, white);
84
+ color-scheme: dark;
85
+ }
86
+ }
87
+
88
+ @media (max-width: 760px) {
89
+ .ja-root {
90
+ --r-tile: 20px;
91
+ --gap: 10px;
92
+ --pad: 14px 16px;
93
+ }
94
+ }
95
+
96
+ /* Base: the canvas, type, focus, and the buttons every other part uses. */
97
+ .ja-root {
98
+ min-height: 100vh;
99
+ min-height: 100dvh;
100
+ background: var(--canvas);
101
+ color: var(--ink);
102
+ font: 15px/1.5 var(--font-body);
103
+ -webkit-font-smoothing: antialiased;
104
+ }
105
+ .ja-root *,
106
+ .ja-root *::before,
107
+ .ja-root *::after {
108
+ box-sizing: border-box;
109
+ }
110
+ .ja-root :where(h1, h2, h3, p) {
111
+ margin: 0;
112
+ }
113
+ .ja-root :where(a) {
114
+ color: inherit;
115
+ }
116
+ .ja-root :where(button, input, select, textarea) {
117
+ font: inherit;
118
+ color: inherit;
119
+ }
120
+ .ja-root :focus-visible {
121
+ outline: 3px solid var(--focus);
122
+ outline-offset: 2px;
123
+ }
124
+ .ja-root svg {
125
+ flex: none;
126
+ }
127
+
128
+ /* Screen-reader-only text. */
129
+ .ja-sr {
130
+ position: absolute;
131
+ width: 1px;
132
+ height: 1px;
133
+ margin: -1px;
134
+ padding: 0;
135
+ overflow: hidden;
136
+ clip: rect(0 0 0 0);
137
+ white-space: nowrap;
138
+ border: 0;
139
+ }
140
+
141
+ .ja-display {
142
+ font-family: var(--font-display);
143
+ }
144
+
145
+ /* Buttons: primary (the brand), quiet (a tile), danger. One primary per page area. */
146
+ .ja-button {
147
+ display: inline-flex;
148
+ align-items: center;
149
+ justify-content: center;
150
+ gap: 8px;
151
+ min-height: 42px;
152
+ border: 0;
153
+ border-radius: var(--r-pill);
154
+ padding: 10px 18px;
155
+ font-weight: 600;
156
+ font-size: 15px;
157
+ line-height: 1.2;
158
+ text-decoration: none;
159
+ white-space: nowrap;
160
+ cursor: pointer;
161
+ background: var(--brand);
162
+ color: var(--brand-ink);
163
+ }
164
+ .ja-button:hover {
165
+ background: color-mix(in oklab, var(--brand) 88%, black);
166
+ }
167
+ .ja-button[data-variant='quiet'] {
168
+ background: var(--tile);
169
+ color: var(--ink);
170
+ box-shadow: inset 0 0 0 1px var(--line);
171
+ }
172
+ .ja-button[data-variant='quiet']:hover {
173
+ background: var(--tile-sunk);
174
+ }
175
+ .ja-button[data-variant='danger'] {
176
+ background: var(--bad);
177
+ color: var(--bad-ink);
178
+ }
179
+ .ja-button[data-variant='danger']:hover {
180
+ background: color-mix(in oklab, var(--bad) 88%, black);
181
+ }
182
+ .ja-button[data-size='small'] {
183
+ min-height: 32px;
184
+ padding: 6px 12px;
185
+ font-size: 13.5px;
186
+ }
187
+ .ja-button:disabled,
188
+ .ja-button[aria-disabled='true'] {
189
+ opacity: 0.55;
190
+ cursor: not-allowed;
191
+ }
192
+ .ja-button svg {
193
+ width: 18px;
194
+ height: 18px;
195
+ }
196
+
197
+ /* Round icon buttons (theme, notifications): always with an accessible name. */
198
+ .ja-icon-button {
199
+ position: relative;
200
+ display: inline-grid;
201
+ place-items: center;
202
+ width: 42px;
203
+ height: 42px;
204
+ border: 0;
205
+ border-radius: 50%;
206
+ background: var(--tile);
207
+ color: var(--ink);
208
+ cursor: pointer;
209
+ }
210
+ .ja-icon-button:hover {
211
+ background: var(--tile-sunk);
212
+ }
213
+ .ja-icon-button svg {
214
+ width: 19px;
215
+ height: 19px;
216
+ }
217
+ .ja-icon-button[data-tone='night'] {
218
+ background: transparent;
219
+ color: var(--night-muted);
220
+ }
221
+ .ja-icon-button[data-tone='night']:hover {
222
+ background: rgb(255 255 255 / 0.08);
223
+ color: var(--night-ink);
224
+ }
225
+ .ja-icon-button .ja-dot {
226
+ position: absolute;
227
+ top: 9px;
228
+ right: 10px;
229
+ width: 9px;
230
+ height: 9px;
231
+ border-radius: 50%;
232
+ background: var(--bad);
233
+ box-shadow: 0 0 0 2px var(--tile);
234
+ }
235
+
236
+ /* Avatars: initials on a soft colour picked from the name, or a picture. */
237
+ .ja-avatar {
238
+ display: inline-grid;
239
+ place-items: center;
240
+ flex: none;
241
+ width: var(--size, 38px);
242
+ height: var(--size, 38px);
243
+ border-radius: var(--avatar-radius, 50%);
244
+ font-weight: 600;
245
+ font-size: calc(var(--size, 38px) * 0.34);
246
+ overflow: hidden;
247
+ }
248
+ .ja-avatar img {
249
+ width: 100%;
250
+ height: 100%;
251
+ object-fit: cover;
252
+ }
253
+
254
+ @media (prefers-reduced-motion: reduce) {
255
+ .ja-root *,
256
+ .ja-root *::before,
257
+ .ja-root *::after {
258
+ animation-duration: 0.01ms !important;
259
+ transition-duration: 0.01ms !important;
260
+ }
261
+ }
262
+
263
+ /*
264
+ * The shell: on desktop, Bento's floating dark sidebar (Daylight's labelled sections) next to the
265
+ * page; it collapses to an icon rail. At 760 px and below: a top bar and the floating dark dock.
266
+ */
267
+ .ja-shell {
268
+ display: grid;
269
+ grid-template-columns: auto minmax(0, 1fr);
270
+ min-height: 100vh;
271
+ min-height: 100dvh;
272
+ }
273
+
274
+ /* Sidebar */
275
+ .ja-sidebar {
276
+ position: sticky;
277
+ top: 16px;
278
+ width: 236px;
279
+ height: calc(100vh - 32px);
280
+ height: calc(100dvh - 32px);
281
+ min-height: 480px;
282
+ margin: 16px 0 16px 16px;
283
+ padding: 18px 14px;
284
+ border-radius: 26px;
285
+ background: var(--night);
286
+ color: var(--night-ink);
287
+ display: flex;
288
+ flex-direction: column;
289
+ gap: 18px;
290
+ overflow-y: auto;
291
+ overscroll-behavior: contain;
292
+ }
293
+ .ja-sidebar[data-collapsed='true'] {
294
+ width: 76px;
295
+ padding: 18px 12px;
296
+ }
297
+ .ja-brandrow {
298
+ display: flex;
299
+ align-items: center;
300
+ gap: 10px;
301
+ min-height: 38px;
302
+ padding: 0 6px;
303
+ font: 700 18px/1.1 var(--font-display);
304
+ }
305
+ .ja-sidebar[data-collapsed='true'] .ja-brandrow {
306
+ flex-direction: column;
307
+ padding: 0;
308
+ }
309
+ .ja-brandrow .ja-brand-name {
310
+ min-width: 0;
311
+ overflow: hidden;
312
+ text-overflow: ellipsis;
313
+ white-space: nowrap;
314
+ }
315
+ .ja-mark {
316
+ display: grid;
317
+ place-items: center;
318
+ flex: none;
319
+ width: 38px;
320
+ height: 38px;
321
+ border-radius: 13px;
322
+ background: var(--sun);
323
+ color: var(--sun-ink);
324
+ font: 800 18px/1 var(--font-display);
325
+ overflow: hidden;
326
+ }
327
+ .ja-mark img,
328
+ .ja-mark svg {
329
+ width: 100%;
330
+ height: 100%;
331
+ }
332
+ .ja-collapse {
333
+ margin-left: auto;
334
+ width: 32px;
335
+ height: 32px;
336
+ border-radius: 10px;
337
+ }
338
+ .ja-sidebar[data-collapsed='true'] .ja-collapse {
339
+ margin-left: 0;
340
+ }
341
+ .ja-collapse svg {
342
+ width: 18px;
343
+ height: 18px;
344
+ }
345
+ .ja-sidebar-nav {
346
+ flex: 1;
347
+ display: flex;
348
+ flex-direction: column;
349
+ gap: 18px;
350
+ }
351
+ .ja-nav-end {
352
+ margin-top: auto;
353
+ }
354
+ .ja-navlabel {
355
+ color: var(--night-muted);
356
+ font-size: 13px;
357
+ padding: 0 10px;
358
+ margin-bottom: 6px;
359
+ }
360
+ .ja-nav {
361
+ display: grid;
362
+ gap: 4px;
363
+ margin: 0;
364
+ padding: 0;
365
+ list-style: none;
366
+ }
367
+ .ja-navlink {
368
+ display: flex;
369
+ align-items: center;
370
+ gap: 12px;
371
+ min-height: 42px;
372
+ padding: 10px 12px;
373
+ border-radius: 14px;
374
+ color: #d6d2ee;
375
+ text-decoration: none;
376
+ font-weight: 500;
377
+ }
378
+ .ja-navlink:hover {
379
+ background: rgb(255 255 255 / 0.07);
380
+ color: var(--night-ink);
381
+ }
382
+ .ja-navlink svg {
383
+ width: 20px;
384
+ height: 20px;
385
+ }
386
+ .ja-navlink[aria-current='page'] {
387
+ background: var(--brand);
388
+ color: var(--brand-ink);
389
+ }
390
+ .ja-count {
391
+ margin-left: auto;
392
+ font-size: 12px;
393
+ font-weight: 600;
394
+ background: rgb(255 255 255 / 0.1);
395
+ border-radius: var(--r-pill);
396
+ padding: 1px 8px;
397
+ font-variant-numeric: tabular-nums;
398
+ }
399
+ .ja-navlink[aria-current='page'] .ja-count {
400
+ background: rgb(255 255 255 / 0.22);
401
+ }
402
+ .ja-sidebar[data-collapsed='true'] .ja-navlink {
403
+ position: relative;
404
+ justify-content: center;
405
+ padding: 10px;
406
+ }
407
+ .ja-sidebar[data-collapsed='true'] .ja-navlink .ja-count {
408
+ position: absolute;
409
+ top: -2px;
410
+ right: -4px;
411
+ line-height: 16px;
412
+ padding: 0 5px;
413
+ font-size: 10.5px;
414
+ background: var(--sun);
415
+ color: var(--sun-ink);
416
+ }
417
+ .ja-sidebar-bottom {
418
+ display: grid;
419
+ gap: 10px;
420
+ }
421
+ .ja-me {
422
+ display: flex;
423
+ align-items: center;
424
+ gap: 10px;
425
+ padding: 10px;
426
+ border-radius: 18px;
427
+ background: rgb(255 255 255 / 0.06);
428
+ min-width: 0;
429
+ }
430
+ .ja-me > span:last-child {
431
+ min-width: 0;
432
+ }
433
+ .ja-me b {
434
+ display: block;
435
+ font-weight: 500;
436
+ overflow: hidden;
437
+ text-overflow: ellipsis;
438
+ white-space: nowrap;
439
+ }
440
+ .ja-me small {
441
+ display: block;
442
+ color: var(--night-muted);
443
+ font-size: 12.5px;
444
+ line-height: 1.2;
445
+ }
446
+ .ja-sidebar[data-collapsed='true'] .ja-me {
447
+ justify-content: center;
448
+ padding: 6px;
449
+ }
450
+
451
+ /* In dark mode the panels sit on a dark canvas: a faint edge keeps them apart. */
452
+ .ja-root[data-theme='dark'] :is(.ja-sidebar, .ja-dock, .ja-tile[data-tone='night']) {
453
+ box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.07);
454
+ }
455
+ @media (prefers-color-scheme: dark) {
456
+ .ja-root:not([data-theme='light']) :is(.ja-sidebar, .ja-dock, .ja-tile[data-tone='night']) {
457
+ box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.07);
458
+ }
459
+ }
460
+
461
+ /* The page area */
462
+ .ja-main {
463
+ min-width: 0;
464
+ padding: 22px 26px 48px 22px;
465
+ }
466
+ .ja-mobile-top {
467
+ display: none;
468
+ }
469
+
470
+ /* The page's header: title, one line of context, then search, buttons and the main action. */
471
+ .ja-page-header {
472
+ display: flex;
473
+ align-items: center;
474
+ flex-wrap: wrap;
475
+ gap: 10px 12px;
476
+ margin-bottom: 18px;
477
+ }
478
+ .ja-page-header > div:first-child {
479
+ min-width: 0;
480
+ margin-right: auto;
481
+ }
482
+ .ja-page-title {
483
+ font: 800 34px/1.08 var(--font-display);
484
+ letter-spacing: -0.02em;
485
+ text-wrap: balance;
486
+ }
487
+ .ja-page-header p {
488
+ margin-top: 4px;
489
+ color: var(--muted);
490
+ }
491
+ .ja-actions {
492
+ display: flex;
493
+ align-items: center;
494
+ gap: 10px;
495
+ }
496
+ .ja-topsearch {
497
+ display: flex;
498
+ align-items: center;
499
+ gap: 8px;
500
+ min-width: 260px;
501
+ border-radius: var(--r-pill);
502
+ padding: 0 16px;
503
+ background: var(--tile);
504
+ color: var(--muted);
505
+ }
506
+ .ja-topsearch svg {
507
+ width: 17px;
508
+ height: 17px;
509
+ }
510
+ .ja-topsearch input {
511
+ flex: 1;
512
+ min-width: 0;
513
+ min-height: 42px;
514
+ border: 0;
515
+ background: none;
516
+ color: var(--ink);
517
+ outline: none;
518
+ }
519
+ .ja-topsearch input::placeholder {
520
+ color: var(--muted);
521
+ }
522
+ .ja-topsearch:focus-within {
523
+ outline: 3px solid var(--focus);
524
+ outline-offset: 2px;
525
+ }
526
+
527
+ /* Dock: the phone's navigation, floating above the page. */
528
+ .ja-dock {
529
+ display: none;
530
+ }
531
+
532
+ @media (max-width: 760px) {
533
+ .ja-shell {
534
+ grid-template-columns: minmax(0, 1fr);
535
+ }
536
+ .ja-sidebar {
537
+ display: none;
538
+ }
539
+ /* The dock floats over the page: the page ends, focused fields and toasts stay clear of it. */
540
+ .ja-root {
541
+ --ja-dock-height: 64px;
542
+ --ja-dock-bottom: max(16px, env(safe-area-inset-bottom));
543
+ --ja-dock-clear: calc(var(--ja-dock-height) + var(--ja-dock-bottom) + 16px);
544
+ }
545
+ .ja-root :where(a, button, input, select, textarea, [tabindex]) {
546
+ scroll-margin-bottom: var(--ja-dock-clear);
547
+ }
548
+ .ja-main {
549
+ padding: 14px 14px var(--ja-dock-clear);
550
+ }
551
+ .ja-mobile-top {
552
+ display: flex;
553
+ align-items: center;
554
+ gap: 10px;
555
+ margin-bottom: 16px;
556
+ font: 700 18px/1.1 var(--font-display);
557
+ }
558
+ .ja-mobile-top .ja-mark {
559
+ width: 34px;
560
+ height: 34px;
561
+ font-size: 16px;
562
+ border-radius: 12px;
563
+ }
564
+ .ja-mobile-top .ja-actions {
565
+ margin-left: auto;
566
+ gap: 8px;
567
+ }
568
+ .ja-mobile-top .ja-icon-button {
569
+ width: 38px;
570
+ height: 38px;
571
+ }
572
+ .ja-page-title {
573
+ font-size: 28px;
574
+ }
575
+ .ja-page-header .ja-desktop-only {
576
+ display: none;
577
+ }
578
+ .ja-topsearch {
579
+ min-width: 0;
580
+ flex: 1 1 100%;
581
+ }
582
+ .ja-dock {
583
+ position: fixed;
584
+ z-index: 20;
585
+ left: 14px;
586
+ right: 14px;
587
+ bottom: var(--ja-dock-bottom);
588
+ display: flex;
589
+ align-items: center;
590
+ height: var(--ja-dock-height);
591
+ justify-content: space-around;
592
+ gap: 4px;
593
+ padding: 8px;
594
+ border-radius: 24px;
595
+ background: var(--night);
596
+ box-shadow: 0 10px 30px rgb(13 11 24 / 0.28);
597
+ }
598
+ .ja-docklink {
599
+ display: grid;
600
+ justify-items: center;
601
+ gap: 1px;
602
+ flex: 1 1 0;
603
+ max-width: 80px;
604
+ padding: 6px 0;
605
+ border-radius: 16px;
606
+ color: var(--night-muted);
607
+ text-decoration: none;
608
+ font-size: 11.5px;
609
+ font-weight: 500;
610
+ }
611
+ .ja-docklink svg {
612
+ width: 22px;
613
+ height: 22px;
614
+ }
615
+ .ja-docklink[aria-current='page'] {
616
+ background: var(--brand);
617
+ color: var(--brand-ink);
618
+ }
619
+ }
620
+
621
+ /* The theme switch: three choices (light, dark, the system's). Names show in the sidebar; in a
622
+ collapsed sidebar it's one button that goes to the next choice. */
623
+ .ja-theme {
624
+ display: inline-flex;
625
+ }
626
+ .ja-theme-options {
627
+ display: inline-flex;
628
+ gap: 2px;
629
+ padding: 3px;
630
+ border-radius: var(--r-pill);
631
+ background: var(--tile);
632
+ }
633
+ .ja-theme-options button {
634
+ display: inline-flex;
635
+ align-items: center;
636
+ justify-content: center;
637
+ gap: 6px;
638
+ min-width: 34px;
639
+ height: 34px;
640
+ padding: 0 8px;
641
+ border: 0;
642
+ border-radius: var(--r-pill);
643
+ background: transparent;
644
+ color: var(--muted);
645
+ font: inherit;
646
+ font-size: 12.5px;
647
+ cursor: pointer;
648
+ }
649
+ .ja-theme-options button:hover {
650
+ color: var(--ink);
651
+ }
652
+ .ja-theme-options button[aria-checked='true'] {
653
+ background: var(--tile-sunk);
654
+ color: var(--ink);
655
+ }
656
+ .ja-theme-options svg {
657
+ width: 17px;
658
+ height: 17px;
659
+ flex: none;
660
+ }
661
+ .ja-theme-options span {
662
+ display: none;
663
+ }
664
+ .ja-theme[data-tone='night'] {
665
+ display: flex;
666
+ }
667
+ .ja-theme[data-tone='night'] .ja-theme-options {
668
+ flex: 1;
669
+ background: rgb(255 255 255 / 0.06);
670
+ }
671
+ .ja-theme[data-tone='night'] .ja-theme-options button {
672
+ /* As wide as its name, so "System" keeps its padding in the sidebar's width. */
673
+ flex: 1 1 auto;
674
+ min-width: 0;
675
+ gap: 5px;
676
+ padding: 0 5px;
677
+ color: var(--night-muted);
678
+ }
679
+ .ja-theme[data-tone='night'] .ja-theme-options button:hover {
680
+ color: var(--night-ink);
681
+ }
682
+ .ja-theme[data-tone='night'] .ja-theme-options button[aria-checked='true'] {
683
+ background: rgb(255 255 255 / 0.14);
684
+ color: var(--night-ink);
685
+ }
686
+ .ja-theme[data-tone='night'] .ja-theme-options span {
687
+ display: inline;
688
+ }
689
+ .ja-theme-cycle {
690
+ display: none;
691
+ }
692
+ .ja-sidebar[data-collapsed='true'] .ja-theme {
693
+ justify-content: center;
694
+ }
695
+ .ja-sidebar[data-collapsed='true'] .ja-theme-options {
696
+ display: none;
697
+ }
698
+ .ja-sidebar[data-collapsed='true'] .ja-theme-cycle {
699
+ display: inline-grid;
700
+ }
701
+
702
+ /*
703
+ * Data blocks: the bento grid and its tiles, stat tiles, the dark hero chart tile, the data table,
704
+ * the activity feed, badges, meters and avatar stacks.
705
+ */
706
+
707
+ /* Bento: 12 columns on desktop, 2 on phones. Tiles take spans. */
708
+ .ja-bento {
709
+ display: grid;
710
+ grid-template-columns: repeat(12, minmax(0, 1fr));
711
+ grid-auto-flow: row dense;
712
+ gap: var(--gap);
713
+ }
714
+ .ja-tile {
715
+ grid-column: span var(--span, 12);
716
+ grid-row: span var(--row-span, 1);
717
+ min-width: 0;
718
+ padding: var(--pad);
719
+ border-radius: var(--r-tile);
720
+ background: var(--tile);
721
+ color: var(--ink);
722
+ }
723
+ .ja-tile[data-tone='night'] {
724
+ background: var(--night);
725
+ color: var(--night-ink);
726
+ }
727
+ .ja-tile[data-tone='sun'] {
728
+ background: var(--sun);
729
+ color: var(--sun-ink);
730
+ }
731
+ .ja-tile-title {
732
+ font: 700 18px/1.25 var(--font-display);
733
+ }
734
+ .ja-tile-head {
735
+ display: flex;
736
+ align-items: center;
737
+ flex-wrap: wrap;
738
+ gap: 8px;
739
+ margin-bottom: 8px;
740
+ }
741
+ .ja-tile-head > .ja-tile-title {
742
+ margin-right: 4px;
743
+ }
744
+
745
+ /* Stat tiles */
746
+ .ja-label {
747
+ color: var(--muted);
748
+ font-size: 14px;
749
+ }
750
+ .ja-tile[data-tone='night'] .ja-label {
751
+ color: #b9b3dd;
752
+ }
753
+ .ja-tile[data-tone='sun'] :is(.ja-label, .ja-note) {
754
+ color: var(--sun-ink);
755
+ }
756
+ .ja-number {
757
+ font: 700 34px/1.1 var(--font-display);
758
+ letter-spacing: -0.02em;
759
+ font-variant-numeric: tabular-nums;
760
+ }
761
+ .ja-note {
762
+ margin-top: 6px;
763
+ color: var(--muted);
764
+ font-size: 13px;
765
+ }
766
+ .ja-delta {
767
+ font-weight: 600;
768
+ white-space: nowrap;
769
+ }
770
+ .ja-delta[data-good='true'] {
771
+ color: var(--good);
772
+ }
773
+ .ja-delta[data-good='false'] {
774
+ color: var(--bad);
775
+ }
776
+ .ja-tile[data-tone='night'] .ja-delta[data-good] {
777
+ color: var(--sun);
778
+ }
779
+ .ja-tile[data-tone='sun'] .ja-delta[data-good] {
780
+ color: var(--sun-ink);
781
+ }
782
+
783
+ /* Meter: a rounded bar, filled with the brand colour. */
784
+ .ja-meter {
785
+ height: 10px;
786
+ margin-top: 12px;
787
+ overflow: hidden;
788
+ border-radius: var(--r-pill);
789
+ background: var(--tile-sunk);
790
+ box-shadow: inset 0 0 0 1px var(--line);
791
+ }
792
+ .ja-meter > span {
793
+ display: block;
794
+ height: 100%;
795
+ border-radius: var(--r-pill);
796
+ background: var(--brand);
797
+ }
798
+
799
+ /* Avatar stack: overlapping faces, then "+313". */
800
+ .ja-avatar-stack {
801
+ display: flex;
802
+ margin-top: 12px;
803
+ padding-left: 8px;
804
+ }
805
+ .ja-avatar-stack > span {
806
+ margin-left: -8px;
807
+ border: 3px solid var(--tile);
808
+ box-sizing: content-box;
809
+ }
810
+ .ja-avatar-stack .ja-more {
811
+ display: inline-grid;
812
+ place-items: center;
813
+ height: 34px;
814
+ min-width: 34px;
815
+ padding: 0 6px;
816
+ border-radius: var(--r-pill);
817
+ background: var(--brand-soft);
818
+ color: var(--ink);
819
+ font-size: 12px;
820
+ font-weight: 600;
821
+ }
822
+
823
+ /* The hero: a dark tile with the big number, its delta, a period switch and a line chart. */
824
+ .ja-hero {
825
+ display: flex;
826
+ flex-direction: column;
827
+ }
828
+ .ja-hero .ja-number {
829
+ font-size: 56px;
830
+ margin: 6px 0 2px;
831
+ }
832
+ .ja-hero-chart {
833
+ margin-top: auto;
834
+ padding-top: 12px;
835
+ }
836
+
837
+ /* Segmented control (the hero's period switch, filters). */
838
+ .ja-segmented {
839
+ display: inline-flex;
840
+ gap: 4px;
841
+ margin-left: auto;
842
+ padding: 3px;
843
+ border-radius: var(--r-pill);
844
+ background: var(--tile-sunk);
845
+ }
846
+ .ja-segmented button {
847
+ min-height: 30px;
848
+ padding: 3px 12px;
849
+ border: 0;
850
+ border-radius: var(--r-pill);
851
+ background: none;
852
+ color: var(--muted);
853
+ font-size: 13px;
854
+ font-weight: 500;
855
+ cursor: pointer;
856
+ }
857
+ .ja-segmented button[aria-pressed='true'] {
858
+ background: var(--sun);
859
+ color: var(--sun-ink);
860
+ }
861
+ .ja-tile[data-tone='night'] .ja-segmented {
862
+ background: rgb(255 255 255 / 0.08);
863
+ }
864
+ .ja-tile[data-tone='night'] .ja-segmented button {
865
+ color: var(--night-muted);
866
+ }
867
+ .ja-tile[data-tone='night'] .ja-segmented button[aria-pressed='true'] {
868
+ color: var(--sun-ink);
869
+ }
870
+
871
+ /* Filter tabs above a table (All / Admins / Suspended). */
872
+ .ja-filters {
873
+ display: inline-flex;
874
+ flex-wrap: wrap;
875
+ gap: 4px;
876
+ }
877
+ .ja-filters button {
878
+ min-height: 32px;
879
+ padding: 6px 14px;
880
+ border: 0;
881
+ border-radius: var(--r-pill);
882
+ background: none;
883
+ color: var(--muted);
884
+ font-size: 14px;
885
+ font-weight: 500;
886
+ cursor: pointer;
887
+ }
888
+ .ja-filters button:hover {
889
+ color: var(--ink);
890
+ }
891
+ .ja-filters button[aria-pressed='true'] {
892
+ background: var(--night);
893
+ color: var(--night-ink);
894
+ }
895
+ .ja-filter-search {
896
+ margin-left: auto;
897
+ min-width: 220px;
898
+ background: var(--tile-sunk);
899
+ }
900
+
901
+ /* Status: a dot and a word, in the status colour. */
902
+ .ja-status {
903
+ display: inline-flex;
904
+ align-items: center;
905
+ gap: 6px;
906
+ font-weight: 600;
907
+ font-size: 13.5px;
908
+ white-space: nowrap;
909
+ }
910
+ .ja-status::before {
911
+ content: '';
912
+ width: 8px;
913
+ height: 8px;
914
+ border-radius: 50%;
915
+ background: currentColor;
916
+ }
917
+ .ja-status[data-tone='good'] {
918
+ color: var(--good);
919
+ }
920
+ .ja-status[data-tone='warn'] {
921
+ color: var(--warn);
922
+ }
923
+ .ja-status[data-tone='bad'] {
924
+ color: var(--bad);
925
+ }
926
+ .ja-status[data-tone='neutral'] {
927
+ color: var(--muted);
928
+ }
929
+
930
+ /* Data table: Daylight's real table, in Bento's rounded rows; cards on phones. */
931
+ .ja-table-wrap {
932
+ min-width: 0;
933
+ }
934
+ .ja-table {
935
+ width: 100%;
936
+ border-collapse: separate;
937
+ border-spacing: 0 6px;
938
+ font-size: 14.5px;
939
+ }
940
+ .ja-table caption {
941
+ text-align: left;
942
+ }
943
+ .ja-table th {
944
+ padding: 6px 12px 2px;
945
+ color: var(--muted);
946
+ font-size: 13px;
947
+ font-weight: 500;
948
+ text-align: left;
949
+ white-space: nowrap;
950
+ }
951
+ /* Sortable headers: the whole header is a button; the arrow shows the direction (faint until sorted). */
952
+ .ja-sort {
953
+ display: inline-flex;
954
+ align-items: center;
955
+ gap: 4px;
956
+ margin: -4px -6px;
957
+ padding: 4px 6px;
958
+ border: 0;
959
+ border-radius: 8px;
960
+ background: none;
961
+ color: inherit;
962
+ font: inherit;
963
+ cursor: pointer;
964
+ }
965
+ .ja-sort:hover,
966
+ .ja-sort[data-sorted] {
967
+ color: var(--ink);
968
+ }
969
+ .ja-sort-arrow {
970
+ display: inline-grid;
971
+ opacity: 0;
972
+ }
973
+ .ja-sort-arrow svg {
974
+ width: 14px;
975
+ height: 14px;
976
+ }
977
+ .ja-sort:hover .ja-sort-arrow,
978
+ .ja-sort:focus-visible .ja-sort-arrow {
979
+ opacity: 0.5;
980
+ }
981
+ .ja-sort[data-sorted] .ja-sort-arrow {
982
+ opacity: 1;
983
+ }
984
+ th[data-align='end'] .ja-sort {
985
+ flex-direction: row-reverse;
986
+ }
987
+ /* The phone's "Sort by" list (headers are hidden there). */
988
+ .ja-sort-phone {
989
+ display: none;
990
+ }
991
+ .ja-table td {
992
+ padding: 10px 12px;
993
+ background: var(--tile-sunk);
994
+ vertical-align: middle;
995
+ }
996
+ .ja-table :is(th, td)[data-align='end'] {
997
+ text-align: right;
998
+ }
999
+ .ja-table td:first-child {
1000
+ border-radius: var(--r-row) 0 0 var(--r-row);
1001
+ }
1002
+ .ja-table td:last-child {
1003
+ border-radius: 0 var(--r-row) var(--r-row) 0;
1004
+ }
1005
+ .ja-table tr[data-flash='true'] td {
1006
+ animation: ja-flash 1s ease-out;
1007
+ }
1008
+ @keyframes ja-flash {
1009
+ from {
1010
+ background: var(--brand-soft);
1011
+ }
1012
+ }
1013
+ .ja-who {
1014
+ display: flex;
1015
+ align-items: center;
1016
+ gap: 12px;
1017
+ min-width: 0;
1018
+ }
1019
+ .ja-who > span:last-child {
1020
+ min-width: 0;
1021
+ }
1022
+ .ja-who b {
1023
+ display: block;
1024
+ font-weight: 500;
1025
+ }
1026
+ .ja-who small {
1027
+ display: block;
1028
+ color: var(--muted);
1029
+ font-size: 13px;
1030
+ overflow-wrap: anywhere;
1031
+ }
1032
+ .ja-muted {
1033
+ color: var(--muted);
1034
+ font-size: 13.5px;
1035
+ }
1036
+ .ja-row-action {
1037
+ min-height: 32px;
1038
+ border: 0;
1039
+ border-radius: var(--r-pill);
1040
+ padding: 6px 12px;
1041
+ background: var(--tile);
1042
+ color: var(--ink);
1043
+ font-size: 13.5px;
1044
+ font-weight: 600;
1045
+ white-space: nowrap;
1046
+ cursor: pointer;
1047
+ }
1048
+ .ja-row-action:hover {
1049
+ box-shadow: inset 0 0 0 1px var(--line);
1050
+ }
1051
+ .ja-row-action[data-variant='danger'] {
1052
+ color: var(--bad);
1053
+ }
1054
+ .ja-empty {
1055
+ padding: 28px 16px;
1056
+ border-radius: var(--r-row);
1057
+ background: var(--tile-sunk);
1058
+ color: var(--muted);
1059
+ text-align: center;
1060
+ }
1061
+ .ja-skeleton {
1062
+ display: block;
1063
+ height: 14px;
1064
+ border-radius: var(--r-pill);
1065
+ background: linear-gradient(90deg, var(--line), var(--tile-sunk), var(--line));
1066
+ background-size: 200% 100%;
1067
+ animation: ja-shimmer 1.4s linear infinite;
1068
+ }
1069
+ @keyframes ja-shimmer {
1070
+ to {
1071
+ background-position: -200% 0;
1072
+ }
1073
+ }
1074
+
1075
+ /* Pagination */
1076
+ .ja-pager {
1077
+ display: flex;
1078
+ align-items: center;
1079
+ justify-content: space-between;
1080
+ gap: 10px;
1081
+ margin-top: 8px;
1082
+ color: var(--muted);
1083
+ font-size: 14px;
1084
+ }
1085
+ .ja-page-size {
1086
+ display: flex;
1087
+ align-items: center;
1088
+ gap: 8px;
1089
+ margin-left: auto;
1090
+ white-space: nowrap;
1091
+ }
1092
+ .ja-page-size .ja-select-wrap {
1093
+ display: inline-block;
1094
+ }
1095
+ .ja-page-size .ja-select {
1096
+ width: auto;
1097
+ min-height: 36px;
1098
+ padding: 6px 34px 6px 12px;
1099
+ font-size: 14px;
1100
+ }
1101
+ .ja-pages {
1102
+ display: flex;
1103
+ gap: 6px;
1104
+ margin: 0;
1105
+ padding: 0;
1106
+ list-style: none;
1107
+ }
1108
+ .ja-pages button {
1109
+ display: grid;
1110
+ place-items: center;
1111
+ min-width: 36px;
1112
+ height: 36px;
1113
+ border: 0;
1114
+ border-radius: 12px;
1115
+ background: var(--tile-sunk);
1116
+ color: var(--ink);
1117
+ font-weight: 600;
1118
+ font-variant-numeric: tabular-nums;
1119
+ cursor: pointer;
1120
+ }
1121
+ .ja-pages button[aria-current='page'] {
1122
+ background: var(--night);
1123
+ color: var(--night-ink);
1124
+ }
1125
+ .ja-pages button:disabled {
1126
+ opacity: 0.45;
1127
+ cursor: default;
1128
+ }
1129
+ .ja-pages svg {
1130
+ width: 16px;
1131
+ height: 16px;
1132
+ }
1133
+
1134
+ /* Activity feed */
1135
+ .ja-feed {
1136
+ display: grid;
1137
+ gap: 14px;
1138
+ margin: 12px 0 0;
1139
+ padding: 0;
1140
+ list-style: none;
1141
+ }
1142
+ .ja-feed-day {
1143
+ margin-top: 4px;
1144
+ color: var(--muted);
1145
+ font-size: 13px;
1146
+ font-weight: 600;
1147
+ }
1148
+ .ja-feed-item {
1149
+ display: flex;
1150
+ gap: 12px;
1151
+ font-size: 14.5px;
1152
+ }
1153
+ .ja-feed-item small {
1154
+ display: block;
1155
+ color: var(--muted);
1156
+ font-size: 13px;
1157
+ }
1158
+ .ja-feed-icon {
1159
+ display: grid;
1160
+ place-items: center;
1161
+ flex: none;
1162
+ width: 32px;
1163
+ height: 32px;
1164
+ border-radius: 11px;
1165
+ background: var(--brand-soft);
1166
+ color: var(--brand);
1167
+ }
1168
+ .ja-feed-icon svg {
1169
+ width: 17px;
1170
+ height: 17px;
1171
+ }
1172
+ .ja-feed-icon[data-tone='good'] {
1173
+ background: var(--good-soft);
1174
+ color: var(--good);
1175
+ }
1176
+ .ja-feed-icon[data-tone='warn'] {
1177
+ background: var(--warn-soft);
1178
+ color: var(--warn);
1179
+ }
1180
+ .ja-feed-icon[data-tone='bad'] {
1181
+ background: var(--bad-soft);
1182
+ color: var(--bad);
1183
+ }
1184
+
1185
+ @media (max-width: 760px) {
1186
+ .ja-bento {
1187
+ grid-template-columns: repeat(2, minmax(0, 1fr));
1188
+ }
1189
+ .ja-tile {
1190
+ grid-column: span var(--phone-span, 2);
1191
+ grid-row: auto;
1192
+ }
1193
+ .ja-number {
1194
+ font-size: 26px;
1195
+ }
1196
+ .ja-hero .ja-number {
1197
+ font-size: 44px;
1198
+ }
1199
+ .ja-filter-search {
1200
+ flex: 1 1 100%;
1201
+ margin-left: 0;
1202
+ }
1203
+
1204
+ /* Table rows become cards: two columns, each column placed by its `phone` setting. */
1205
+ .ja-table thead {
1206
+ display: none;
1207
+ }
1208
+ .ja-sort-phone {
1209
+ display: flex;
1210
+ align-items: center;
1211
+ gap: 10px;
1212
+ margin-bottom: 8px;
1213
+ color: var(--muted);
1214
+ font-size: 14px;
1215
+ white-space: nowrap;
1216
+ }
1217
+ .ja-sort-phone .ja-select-wrap {
1218
+ flex: 1;
1219
+ min-width: 0;
1220
+ }
1221
+ .ja-table,
1222
+ .ja-table tbody {
1223
+ display: block;
1224
+ }
1225
+ .ja-table tr {
1226
+ display: grid;
1227
+ grid-template-columns: minmax(0, 1fr) auto;
1228
+ gap: 8px 10px;
1229
+ margin-bottom: 8px;
1230
+ padding: 12px;
1231
+ border-radius: var(--r-row);
1232
+ background: var(--tile-sunk);
1233
+ }
1234
+ .ja-table td,
1235
+ .ja-table td:first-child,
1236
+ .ja-table td:last-child {
1237
+ display: block;
1238
+ padding: 0;
1239
+ border-radius: 0;
1240
+ background: none;
1241
+ text-align: left;
1242
+ order: var(--phone-order, 0);
1243
+ }
1244
+ .ja-table td[data-phone-align='end'] {
1245
+ justify-self: end;
1246
+ text-align: right;
1247
+ }
1248
+ .ja-table td[data-phone='hidden'] {
1249
+ display: none;
1250
+ }
1251
+ .ja-table td[data-phone='full'] {
1252
+ grid-column: 1 / -1;
1253
+ }
1254
+ .ja-pager > span {
1255
+ display: none;
1256
+ }
1257
+ /* A changed row lights up as one card. */
1258
+ .ja-table tr[data-flash='true'] {
1259
+ animation: ja-flash 1s ease-out;
1260
+ }
1261
+ .ja-table tr[data-flash='true'] td {
1262
+ animation: none;
1263
+ }
1264
+ }
1265
+
1266
+ /* Charts */
1267
+ .ja-chart svg {
1268
+ display: block;
1269
+ overflow: visible;
1270
+ }
1271
+ .ja-chart-labels {
1272
+ display: flex;
1273
+ justify-content: space-between;
1274
+ margin-top: 6px;
1275
+ color: var(--muted);
1276
+ font-size: 12px;
1277
+ }
1278
+ .ja-tile[data-tone='night'] .ja-chart-labels {
1279
+ color: var(--night-muted);
1280
+ }
1281
+ .ja-chart {
1282
+ margin: 0;
1283
+ }
1284
+ .ja-chart-plot {
1285
+ position: relative;
1286
+ }
1287
+ .ja-chart-dot {
1288
+ position: absolute;
1289
+ width: 12px;
1290
+ height: 12px;
1291
+ margin: -6px 0 0 -6px;
1292
+ border-radius: 50%;
1293
+ }
1294
+ /* Values on hover and focus: invisible columns over the plot, a guide and a small tooltip. */
1295
+ .ja-chart-points {
1296
+ position: absolute;
1297
+ inset: 0;
1298
+ }
1299
+ .ja-chart-point {
1300
+ position: absolute;
1301
+ top: 0;
1302
+ bottom: 0;
1303
+ border-radius: 10px;
1304
+ cursor: crosshair;
1305
+ }
1306
+ .ja-chart-point:focus-visible {
1307
+ outline-offset: -3px;
1308
+ }
1309
+ .ja-chart-guide {
1310
+ position: absolute;
1311
+ top: 0;
1312
+ bottom: 0;
1313
+ width: 0;
1314
+ border-left: 1.5px dashed color-mix(in oklab, currentColor 35%, transparent);
1315
+ pointer-events: none;
1316
+ }
1317
+ .ja-chart-tip {
1318
+ position: absolute;
1319
+ z-index: 2;
1320
+ display: grid;
1321
+ gap: 1px;
1322
+ translate: -50% calc(-100% - 12px);
1323
+ min-width: 64px;
1324
+ padding: 6px 10px;
1325
+ border-radius: 12px;
1326
+ background: var(--night);
1327
+ color: var(--night-ink);
1328
+ box-shadow: 0 6px 18px rgb(13 11 24 / 0.22);
1329
+ font-size: 12px;
1330
+ line-height: 1.3;
1331
+ white-space: nowrap;
1332
+ pointer-events: none;
1333
+ }
1334
+ .ja-chart-tip[data-side='start'] {
1335
+ translate: -12px calc(-100% - 12px);
1336
+ }
1337
+ .ja-chart-tip[data-side='end'] {
1338
+ translate: calc(-100% + 12px) calc(-100% - 12px);
1339
+ }
1340
+ .ja-chart-tip[data-side='after'] {
1341
+ translate: 0 0;
1342
+ }
1343
+ .ja-chart-tip[data-side='before'] {
1344
+ translate: -100% 0;
1345
+ }
1346
+ .ja-chart-tip > span {
1347
+ color: var(--night-muted);
1348
+ }
1349
+ .ja-chart-tip strong {
1350
+ display: flex;
1351
+ align-items: center;
1352
+ gap: 6px;
1353
+ font: 700 14px/1.25 var(--font-display);
1354
+ }
1355
+ .ja-chart-tip i {
1356
+ width: 9px;
1357
+ height: 9px;
1358
+ border-radius: 3px;
1359
+ box-shadow: 0 0 0 1px rgb(255 255 255 / 0.4);
1360
+ }
1361
+ .ja-tile[data-tone='night'] .ja-chart-tip {
1362
+ background: var(--tile);
1363
+ color: var(--ink);
1364
+ }
1365
+ .ja-tile[data-tone='night'] .ja-chart-tip > span {
1366
+ color: var(--muted);
1367
+ }
1368
+ .ja-bar-labels > span {
1369
+ flex: 1 1 0;
1370
+ text-align: center;
1371
+ }
1372
+ .ja-legend {
1373
+ display: flex;
1374
+ flex-wrap: wrap;
1375
+ gap: 6px 16px;
1376
+ margin-bottom: 10px;
1377
+ color: var(--muted);
1378
+ font-size: 13px;
1379
+ }
1380
+ .ja-legend span {
1381
+ display: inline-flex;
1382
+ align-items: center;
1383
+ gap: 6px;
1384
+ }
1385
+ .ja-legend i {
1386
+ width: 12px;
1387
+ height: 12px;
1388
+ border-radius: 4px;
1389
+ }
1390
+
1391
+ /* Forms and actions: fields, selects, checks and switches, the confirm dialog, toasts. */
1392
+ .ja-field {
1393
+ display: grid;
1394
+ gap: 6px;
1395
+ margin-bottom: 14px;
1396
+ }
1397
+ .ja-field-label {
1398
+ font-size: 14px;
1399
+ font-weight: 600;
1400
+ }
1401
+ .ja-field-hint {
1402
+ display: block;
1403
+ color: var(--muted);
1404
+ font-size: 13px;
1405
+ font-weight: 400;
1406
+ }
1407
+ .ja-field-error {
1408
+ display: flex;
1409
+ align-items: center;
1410
+ gap: 6px;
1411
+ color: var(--bad);
1412
+ font-size: 13.5px;
1413
+ font-weight: 600;
1414
+ }
1415
+ .ja-error-mark {
1416
+ display: inline-grid;
1417
+ place-items: center;
1418
+ width: 16px;
1419
+ height: 16px;
1420
+ border-radius: 50%;
1421
+ background: var(--bad);
1422
+ color: var(--bad-ink);
1423
+ font-size: 11px;
1424
+ font-weight: 800;
1425
+ }
1426
+ .ja-input,
1427
+ .ja-select {
1428
+ width: 100%;
1429
+ min-height: 44px;
1430
+ padding: 10px 14px;
1431
+ border: 1px solid var(--line);
1432
+ border-radius: var(--r-control);
1433
+ background: var(--tile);
1434
+ color: var(--ink);
1435
+ font-size: 15px;
1436
+ }
1437
+ .ja-input::placeholder {
1438
+ color: var(--muted);
1439
+ }
1440
+ textarea.ja-input {
1441
+ resize: vertical;
1442
+ min-height: 88px;
1443
+ }
1444
+ :is(.ja-input, .ja-select):hover {
1445
+ border-color: color-mix(in oklab, var(--line) 60%, var(--muted));
1446
+ }
1447
+ :is(.ja-input, .ja-select)[aria-invalid='true'] {
1448
+ border-color: var(--bad);
1449
+ }
1450
+ .ja-select-wrap {
1451
+ position: relative;
1452
+ display: block;
1453
+ }
1454
+ .ja-select {
1455
+ appearance: none;
1456
+ padding-right: 38px;
1457
+ cursor: pointer;
1458
+ }
1459
+ .ja-select-wrap svg {
1460
+ position: absolute;
1461
+ right: 12px;
1462
+ top: 50%;
1463
+ width: 18px;
1464
+ height: 18px;
1465
+ margin-top: -9px;
1466
+ color: var(--muted);
1467
+ pointer-events: none;
1468
+ }
1469
+ /* Inline in a table row: compact, sized to its text. */
1470
+ .ja-select-inline {
1471
+ display: inline-block;
1472
+ }
1473
+ .ja-select-inline .ja-select {
1474
+ width: auto;
1475
+ min-height: 34px;
1476
+ padding: 6px 32px 6px 12px;
1477
+ font-size: 14px;
1478
+ font-weight: 500;
1479
+ }
1480
+ .ja-select-inline svg {
1481
+ right: 9px;
1482
+ width: 16px;
1483
+ height: 16px;
1484
+ margin-top: -8px;
1485
+ }
1486
+
1487
+ .ja-check {
1488
+ display: flex;
1489
+ align-items: flex-start;
1490
+ gap: 10px;
1491
+ margin-bottom: 12px;
1492
+ }
1493
+ .ja-check input {
1494
+ width: 20px;
1495
+ height: 20px;
1496
+ margin: 1px 0 0;
1497
+ accent-color: var(--brand);
1498
+ flex: none;
1499
+ }
1500
+ .ja-check label {
1501
+ font-weight: 500;
1502
+ }
1503
+
1504
+ .ja-switch-row {
1505
+ display: flex;
1506
+ align-items: center;
1507
+ justify-content: space-between;
1508
+ gap: 16px;
1509
+ padding: 10px 0;
1510
+ }
1511
+ .ja-switch-row > span {
1512
+ font-weight: 500;
1513
+ }
1514
+ .ja-switch {
1515
+ position: relative;
1516
+ flex: none;
1517
+ width: 48px;
1518
+ height: 28px;
1519
+ border: 0;
1520
+ border-radius: var(--r-pill);
1521
+ background: color-mix(in oklab, var(--muted) 45%, var(--tile));
1522
+ cursor: pointer;
1523
+ transition: background 0.15s;
1524
+ }
1525
+ .ja-switch > span {
1526
+ position: absolute;
1527
+ top: 3px;
1528
+ left: 3px;
1529
+ width: 22px;
1530
+ height: 22px;
1531
+ border-radius: 50%;
1532
+ background: #ffffff;
1533
+ box-shadow: 0 1px 3px rgb(0 0 0 / 0.25);
1534
+ transition: transform 0.15s;
1535
+ }
1536
+ .ja-switch[aria-checked='true'] {
1537
+ background: var(--brand);
1538
+ }
1539
+ .ja-switch[aria-checked='true'] > span {
1540
+ transform: translateX(20px);
1541
+ }
1542
+ .ja-switch:disabled {
1543
+ opacity: 0.5;
1544
+ cursor: not-allowed;
1545
+ }
1546
+
1547
+ /* The confirm dialog: the browser's own <dialog>, in a tile. */
1548
+ .ja-dialog {
1549
+ /* Opened from a table row, it would inherit the cell's alignment and type: reset them. */
1550
+ text-align: left;
1551
+ white-space: normal;
1552
+ font: 15px/1.5 var(--font-body);
1553
+ width: min(440px, calc(100vw - 28px));
1554
+ padding: 0;
1555
+ border: 0;
1556
+ border-radius: var(--r-tile);
1557
+ background: var(--tile);
1558
+ color: var(--ink);
1559
+ box-shadow: 0 24px 60px rgb(13 11 24 / 0.35);
1560
+ }
1561
+ .ja-dialog[open] {
1562
+ animation: ja-dialog-in 0.16s ease-out;
1563
+ }
1564
+ .ja-dialog::backdrop {
1565
+ background: rgb(13 11 24 / 0.55);
1566
+ }
1567
+ @keyframes ja-dialog-in {
1568
+ from {
1569
+ opacity: 0;
1570
+ transform: scale(0.98);
1571
+ }
1572
+ }
1573
+ .ja-dialog-box {
1574
+ display: grid;
1575
+ gap: 12px;
1576
+ padding: 22px;
1577
+ }
1578
+ .ja-dialog-text {
1579
+ color: var(--muted);
1580
+ }
1581
+ .ja-dialog-actions {
1582
+ display: flex;
1583
+ flex-wrap: wrap;
1584
+ justify-content: flex-end;
1585
+ gap: 10px;
1586
+ margin-top: 4px;
1587
+ }
1588
+
1589
+ /* Toasts: dark, short, with the sun tick. */
1590
+ .ja-toasts {
1591
+ position: fixed;
1592
+ z-index: 30;
1593
+ right: 24px;
1594
+ bottom: 24px;
1595
+ display: grid;
1596
+ justify-items: end;
1597
+ gap: 8px;
1598
+ pointer-events: none;
1599
+ }
1600
+ .ja-toast {
1601
+ display: flex;
1602
+ align-items: center;
1603
+ gap: 10px;
1604
+ max-width: 420px;
1605
+ padding: 12px 16px;
1606
+ border-radius: 18px;
1607
+ background: var(--night);
1608
+ color: var(--night-ink);
1609
+ font-size: 14.5px;
1610
+ box-shadow: 0 10px 30px rgb(13 11 24 / 0.28);
1611
+ pointer-events: auto;
1612
+ animation: ja-toast-in 0.2s ease-out;
1613
+ }
1614
+ @keyframes ja-toast-in {
1615
+ from {
1616
+ opacity: 0;
1617
+ transform: translateY(8px);
1618
+ }
1619
+ }
1620
+ .ja-toast-mark {
1621
+ display: grid;
1622
+ place-items: center;
1623
+ flex: none;
1624
+ width: 24px;
1625
+ height: 24px;
1626
+ border-radius: 50%;
1627
+ background: var(--sun);
1628
+ color: var(--sun-ink);
1629
+ font-weight: 800;
1630
+ }
1631
+ .ja-toast-mark svg {
1632
+ width: 15px;
1633
+ height: 15px;
1634
+ }
1635
+ .ja-toast[data-tone='error'] .ja-toast-mark {
1636
+ background: #ff7a6b;
1637
+ color: #1c1930;
1638
+ }
1639
+ .ja-toast-close {
1640
+ display: grid;
1641
+ place-items: center;
1642
+ width: 28px;
1643
+ height: 28px;
1644
+ margin-left: 4px;
1645
+ border: 0;
1646
+ border-radius: 50%;
1647
+ background: rgb(255 255 255 / 0.1);
1648
+ color: var(--night-ink);
1649
+ cursor: pointer;
1650
+ }
1651
+ .ja-toast-close svg {
1652
+ width: 14px;
1653
+ height: 14px;
1654
+ }
1655
+
1656
+ @media (max-width: 760px) {
1657
+ .ja-toasts {
1658
+ left: 14px;
1659
+ right: 14px;
1660
+ bottom: calc(var(--ja-dock-height) + var(--ja-dock-bottom) + 12px);
1661
+ justify-items: stretch;
1662
+ }
1663
+ .ja-toast {
1664
+ max-width: none;
1665
+ }
1666
+ .ja-dialog-actions {
1667
+ flex-direction: column-reverse;
1668
+ }
1669
+ .ja-dialog-actions .ja-button {
1670
+ width: 100%;
1671
+ }
1672
+ }
1673
+
1674
+ /* A form inside a tile: spaced from the text above it and from what follows. */
1675
+ .ja-form {
1676
+ margin: 14px 0 20px;
1677
+ }