@glassly/miniapp 0.4.3-dev.1242 → 0.4.3-dev.1258

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 (84) hide show
  1. package/README.md +32 -2
  2. package/dist/theme.css +856 -0
  3. package/dist/ui/index.d.ts +1 -0
  4. package/dist/ui/index.d.ts.map +1 -1
  5. package/dist/ui/index.js +1 -0
  6. package/dist/ui/index.js.map +1 -1
  7. package/dist/ui/kit/Badge.d.ts +8 -0
  8. package/dist/ui/kit/Badge.d.ts.map +1 -0
  9. package/dist/ui/kit/Badge.js +6 -0
  10. package/dist/ui/kit/Badge.js.map +1 -0
  11. package/dist/ui/kit/Button.d.ts +9 -0
  12. package/dist/ui/kit/Button.d.ts.map +1 -0
  13. package/dist/ui/kit/Button.js +7 -0
  14. package/dist/ui/kit/Button.js.map +1 -0
  15. package/dist/ui/kit/Card.d.ts +10 -0
  16. package/dist/ui/kit/Card.d.ts.map +1 -0
  17. package/dist/ui/kit/Card.js +21 -0
  18. package/dist/ui/kit/Card.js.map +1 -0
  19. package/dist/ui/kit/Dock.d.ts +29 -0
  20. package/dist/ui/kit/Dock.d.ts.map +1 -0
  21. package/dist/ui/kit/Dock.js +34 -0
  22. package/dist/ui/kit/Dock.js.map +1 -0
  23. package/dist/ui/kit/Feedback.d.ts +37 -0
  24. package/dist/ui/kit/Feedback.d.ts.map +1 -0
  25. package/dist/ui/kit/Feedback.js +21 -0
  26. package/dist/ui/kit/Feedback.js.map +1 -0
  27. package/dist/ui/kit/Field.d.ts +8 -0
  28. package/dist/ui/kit/Field.d.ts.map +1 -0
  29. package/dist/ui/kit/Field.js +16 -0
  30. package/dist/ui/kit/Field.js.map +1 -0
  31. package/dist/ui/kit/Page.d.ts +33 -0
  32. package/dist/ui/kit/Page.d.ts.map +1 -0
  33. package/dist/ui/kit/Page.js +77 -0
  34. package/dist/ui/kit/Page.js.map +1 -0
  35. package/dist/ui/kit/Section.d.ts +17 -0
  36. package/dist/ui/kit/Section.d.ts.map +1 -0
  37. package/dist/ui/kit/Section.js +22 -0
  38. package/dist/ui/kit/Section.js.map +1 -0
  39. package/dist/ui/kit/SetupGuide.d.ts +45 -0
  40. package/dist/ui/kit/SetupGuide.d.ts.map +1 -0
  41. package/dist/ui/kit/SetupGuide.js +40 -0
  42. package/dist/ui/kit/SetupGuide.js.map +1 -0
  43. package/dist/ui/kit/Switch.d.ts +7 -0
  44. package/dist/ui/kit/Switch.d.ts.map +1 -0
  45. package/dist/ui/kit/Switch.js +11 -0
  46. package/dist/ui/kit/Switch.js.map +1 -0
  47. package/dist/ui/kit/Tabs.d.ts +20 -0
  48. package/dist/ui/kit/Tabs.d.ts.map +1 -0
  49. package/dist/ui/kit/Tabs.js +53 -0
  50. package/dist/ui/kit/Tabs.js.map +1 -0
  51. package/dist/ui/kit/cx.d.ts +2 -0
  52. package/dist/ui/kit/cx.d.ts.map +1 -0
  53. package/dist/ui/kit/cx.js +4 -0
  54. package/dist/ui/kit/cx.js.map +1 -0
  55. package/dist/ui/kit/hooks.d.ts +17 -0
  56. package/dist/ui/kit/hooks.d.ts.map +1 -0
  57. package/dist/ui/kit/hooks.js +34 -0
  58. package/dist/ui/kit/hooks.js.map +1 -0
  59. package/dist/ui/kit/index.d.ts +14 -0
  60. package/dist/ui/kit/index.d.ts.map +1 -0
  61. package/dist/ui/kit/index.js +14 -0
  62. package/dist/ui/kit/index.js.map +1 -0
  63. package/dist/ui/kit/useWide.d.ts +4 -0
  64. package/dist/ui/kit/useWide.d.ts.map +1 -0
  65. package/dist/ui/kit/useWide.js +18 -0
  66. package/dist/ui/kit/useWide.js.map +1 -0
  67. package/package.json +12 -5
  68. package/src/ui/index.ts +2 -0
  69. package/src/ui/kit/Badge.tsx +19 -0
  70. package/src/ui/kit/Button.tsx +27 -0
  71. package/src/ui/kit/Card.tsx +29 -0
  72. package/src/ui/kit/Dock.tsx +77 -0
  73. package/src/ui/kit/Feedback.tsx +101 -0
  74. package/src/ui/kit/Field.tsx +38 -0
  75. package/src/ui/kit/Page.tsx +154 -0
  76. package/src/ui/kit/Section.tsx +80 -0
  77. package/src/ui/kit/SetupGuide.tsx +153 -0
  78. package/src/ui/kit/Switch.tsx +28 -0
  79. package/src/ui/kit/Tabs.tsx +108 -0
  80. package/src/ui/kit/cx.ts +3 -0
  81. package/src/ui/kit/hooks.ts +53 -0
  82. package/src/ui/kit/index.ts +51 -0
  83. package/src/ui/kit/useWide.ts +19 -0
  84. package/src/ui/theme.css +856 -0
@@ -0,0 +1,856 @@
1
+ /*
2
+ * Glassly Miniapp SDK theme. Import once, after Tailwind if the app uses it:
3
+ * @import "@glassly/miniapp/theme.css";
4
+ * Tokens follow the Glassly App's Light/Dark setting through <html class="dark">
5
+ * (MiniappProvider sets it). Set --accent and --accent-foreground on :root for
6
+ * the app's own colour. Kit rules live in the base and components layers, so
7
+ * the app's own CSS and Tailwind utilities override them.
8
+ */
9
+
10
+ @layer base, components;
11
+
12
+ @layer base {
13
+ :root {
14
+ color-scheme: light;
15
+ --background: #ffffff;
16
+ --foreground: #0a0a0a;
17
+ --card: #f5f5f5;
18
+ --card-foreground: var(--foreground);
19
+ --muted: #f5f5f5;
20
+ --muted-foreground: #6b6b6b;
21
+ --secondary: #e9e9e9;
22
+ --secondary-foreground: var(--foreground);
23
+ --border: #e5e5e5;
24
+ --input: #d4d4d4;
25
+ --accent: #2563eb;
26
+ --accent-foreground: #ffffff;
27
+ --primary: var(--accent);
28
+ --primary-foreground: var(--accent-foreground);
29
+ --ring: var(--accent);
30
+ --destructive: #dc2626;
31
+ --destructive-foreground: #ffffff;
32
+ --success: #15803d;
33
+ --warning: #b45309;
34
+ --warning-surface: #fef3c7;
35
+ --error-surface: #fee2e2;
36
+ --switch-off: #d4d4d4;
37
+ --radius: 10px;
38
+ --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
39
+ --font-mono: ui-monospace, SFMono-Regular, Menlo, monospace;
40
+ }
41
+
42
+ :root.dark {
43
+ color-scheme: dark;
44
+ --background: #171717;
45
+ --foreground: #fafafa;
46
+ --card: #2e2e2e;
47
+ --muted: #2e2e2e;
48
+ --muted-foreground: #a3a3a3;
49
+ --secondary: #3d3d3d;
50
+ --border: #3a3a3a;
51
+ --input: #525252;
52
+ --accent: #86acff;
53
+ --accent-foreground: #0a0a0a;
54
+ --destructive: #b91c1c;
55
+ --success: #86efac;
56
+ --warning: #fcd34d;
57
+ --warning-surface: #422006;
58
+ --error-surface: #450a0a;
59
+ --switch-off: #525252;
60
+ }
61
+
62
+ html,
63
+ body {
64
+ background: var(--background);
65
+ color: var(--foreground);
66
+ }
67
+
68
+ body {
69
+ margin: 0;
70
+ font-family: var(--font-sans);
71
+ font-size: 14px;
72
+ line-height: 1.45;
73
+ overflow-wrap: anywhere;
74
+ -webkit-font-smoothing: antialiased;
75
+ -webkit-tap-highlight-color: transparent;
76
+ user-select: none;
77
+ -webkit-user-select: none;
78
+ }
79
+
80
+ input,
81
+ textarea,
82
+ [contenteditable="true"],
83
+ .gl-selectable {
84
+ user-select: text;
85
+ -webkit-user-select: text;
86
+ }
87
+
88
+ ::selection {
89
+ background: color-mix(in srgb, var(--accent) 35%, transparent);
90
+ }
91
+
92
+ * {
93
+ scrollbar-width: none;
94
+ }
95
+ *::-webkit-scrollbar {
96
+ display: none;
97
+ }
98
+
99
+ @media (prefers-reduced-motion: reduce) {
100
+ *,
101
+ *::before,
102
+ *::after {
103
+ transition-duration: 0s !important;
104
+ animation-duration: 0s !important;
105
+ scroll-behavior: auto !important;
106
+ }
107
+ }
108
+ }
109
+
110
+ @layer components {
111
+ .gl-page {
112
+ box-sizing: border-box;
113
+ display: flex;
114
+ flex-direction: column;
115
+ min-height: 100dvh;
116
+ background: var(--background);
117
+ color: var(--foreground);
118
+ }
119
+ .gl-page[data-fill] {
120
+ height: 100dvh;
121
+ min-height: 0;
122
+ overflow: hidden;
123
+ }
124
+ .gl-page-statusbar {
125
+ position: fixed;
126
+ z-index: 30;
127
+ top: 0;
128
+ right: 0;
129
+ left: 0;
130
+ background: var(--background);
131
+ pointer-events: none;
132
+ }
133
+ .gl-page-body {
134
+ box-sizing: border-box;
135
+ display: flex;
136
+ flex: 1;
137
+ flex-direction: column;
138
+ gap: 12px;
139
+ width: 100%;
140
+ min-height: 0;
141
+ margin: 0 auto;
142
+ }
143
+ .gl-page-main,
144
+ .gl-page-aside {
145
+ display: flex;
146
+ flex-direction: column;
147
+ gap: 12px;
148
+ min-width: 0;
149
+ min-height: 0;
150
+ }
151
+ .gl-page[data-fill] .gl-page-main {
152
+ flex: 1;
153
+ }
154
+ .gl-page-body[data-wide] {
155
+ display: grid;
156
+ grid-template-rows: auto minmax(0, 1fr);
157
+ align-items: start;
158
+ gap: 12px 0;
159
+ }
160
+
161
+ .gl-header {
162
+ display: flex;
163
+ flex-shrink: 0;
164
+ align-items: center;
165
+ gap: 8px;
166
+ min-width: 0;
167
+ }
168
+ .gl-header-title {
169
+ flex-shrink: 0;
170
+ max-width: 65%;
171
+ margin: 0;
172
+ overflow: hidden;
173
+ font-size: 17px;
174
+ font-weight: 600;
175
+ line-height: 1.2;
176
+ white-space: nowrap;
177
+ text-overflow: ellipsis;
178
+ }
179
+ .gl-header-trailing {
180
+ display: flex;
181
+ flex: 1;
182
+ align-items: center;
183
+ justify-content: flex-end;
184
+ gap: 8px;
185
+ min-width: 0;
186
+ }
187
+
188
+ .gl-footer {
189
+ margin-top: auto;
190
+ padding-top: 12px;
191
+ color: var(--muted-foreground);
192
+ font-family: var(--font-mono);
193
+ font-size: 11px;
194
+ text-align: center;
195
+ }
196
+
197
+ .gl-button {
198
+ box-sizing: border-box;
199
+ display: inline-flex;
200
+ flex-shrink: 0;
201
+ align-items: center;
202
+ justify-content: center;
203
+ gap: 6px;
204
+ height: 36px;
205
+ padding: 0 14px;
206
+ border: 1px solid transparent;
207
+ border-radius: var(--radius);
208
+ background: var(--primary);
209
+ color: var(--primary-foreground);
210
+ font: inherit;
211
+ font-size: 14px;
212
+ font-weight: 500;
213
+ line-height: 1;
214
+ white-space: nowrap;
215
+ cursor: pointer;
216
+ touch-action: manipulation;
217
+ transition:
218
+ opacity 0.15s,
219
+ transform 0.1s;
220
+ }
221
+ .gl-button:not(:disabled):active {
222
+ opacity: 0.8;
223
+ transform: scale(0.97);
224
+ }
225
+ .gl-button:disabled {
226
+ opacity: 0.45;
227
+ cursor: default;
228
+ }
229
+ .gl-button:focus-visible,
230
+ .gl-switch:focus-visible,
231
+ .gl-row:focus-visible {
232
+ outline: 2px solid var(--ring);
233
+ outline-offset: 2px;
234
+ }
235
+ .gl-button svg {
236
+ flex-shrink: 0;
237
+ width: 16px;
238
+ height: 16px;
239
+ }
240
+ .gl-button[data-variant="secondary"] {
241
+ background: var(--secondary);
242
+ color: var(--secondary-foreground);
243
+ }
244
+ .gl-button[data-variant="outline"] {
245
+ border-color: var(--input);
246
+ background: var(--background);
247
+ color: var(--foreground);
248
+ }
249
+ .gl-button[data-variant="ghost"] {
250
+ background: transparent;
251
+ color: var(--foreground);
252
+ }
253
+ .gl-button[data-variant="destructive"] {
254
+ background: var(--destructive);
255
+ color: var(--destructive-foreground);
256
+ }
257
+ .gl-button[data-size="sm"] {
258
+ height: 30px;
259
+ padding: 0 10px;
260
+ font-size: 13px;
261
+ }
262
+ .gl-button[data-size="lg"] {
263
+ height: 44px;
264
+ padding: 0 18px;
265
+ font-size: 15px;
266
+ }
267
+ .gl-button[data-size="icon"] {
268
+ width: 36px;
269
+ padding: 0;
270
+ }
271
+
272
+ .gl-switch {
273
+ box-sizing: border-box;
274
+ position: relative;
275
+ display: inline-flex;
276
+ flex-shrink: 0;
277
+ width: 40px;
278
+ height: 24px;
279
+ padding: 0;
280
+ border: 0;
281
+ border-radius: 999px;
282
+ background: var(--switch-off);
283
+ cursor: pointer;
284
+ transition: background-color 0.15s;
285
+ }
286
+ .gl-switch[aria-checked="true"] {
287
+ background: var(--accent);
288
+ }
289
+ .gl-switch::after {
290
+ content: "";
291
+ position: absolute;
292
+ top: 2px;
293
+ left: 2px;
294
+ width: 20px;
295
+ height: 20px;
296
+ border-radius: 999px;
297
+ background: #ffffff;
298
+ box-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
299
+ transition: transform 0.15s;
300
+ }
301
+ .gl-switch[aria-checked="true"]::after {
302
+ transform: translateX(16px);
303
+ }
304
+ .gl-switch:disabled {
305
+ opacity: 0.45;
306
+ cursor: default;
307
+ }
308
+
309
+ .gl-card {
310
+ box-sizing: border-box;
311
+ display: flex;
312
+ flex-direction: column;
313
+ gap: 10px;
314
+ padding: 14px;
315
+ border-radius: calc(var(--radius) + 4px);
316
+ background: var(--card);
317
+ color: var(--card-foreground);
318
+ }
319
+ .gl-card-header {
320
+ display: flex;
321
+ flex-direction: column;
322
+ gap: 2px;
323
+ }
324
+ .gl-card-title {
325
+ margin: 0;
326
+ font-size: 15px;
327
+ font-weight: 600;
328
+ line-height: 1.3;
329
+ }
330
+ .gl-card-description {
331
+ margin: 0;
332
+ color: var(--muted-foreground);
333
+ font-size: 13px;
334
+ }
335
+ .gl-card-footer {
336
+ display: flex;
337
+ align-items: center;
338
+ gap: 8px;
339
+ }
340
+
341
+ .gl-section {
342
+ display: flex;
343
+ flex-direction: column;
344
+ gap: 6px;
345
+ }
346
+ .gl-section-title {
347
+ margin: 0;
348
+ padding: 0 4px;
349
+ color: var(--muted-foreground);
350
+ font-size: 12px;
351
+ font-weight: 600;
352
+ letter-spacing: 0.04em;
353
+ text-transform: uppercase;
354
+ }
355
+ .gl-section-description {
356
+ margin: 0;
357
+ padding: 0 4px;
358
+ color: var(--muted-foreground);
359
+ font-size: 12px;
360
+ }
361
+ .gl-section-body {
362
+ display: flex;
363
+ flex-direction: column;
364
+ overflow: hidden;
365
+ border-radius: calc(var(--radius) + 4px);
366
+ background: var(--card);
367
+ }
368
+
369
+ .gl-row {
370
+ box-sizing: border-box;
371
+ display: flex;
372
+ align-items: center;
373
+ gap: 12px;
374
+ width: 100%;
375
+ min-height: 48px;
376
+ margin: 0;
377
+ padding: 8px 14px;
378
+ border: 0;
379
+ background: transparent;
380
+ color: var(--card-foreground);
381
+ font: inherit;
382
+ text-align: left;
383
+ }
384
+ .gl-row + .gl-row {
385
+ border-top: 1px solid var(--border);
386
+ }
387
+ button.gl-row {
388
+ cursor: pointer;
389
+ }
390
+ button.gl-row:not(:disabled):active {
391
+ background: var(--secondary);
392
+ }
393
+ .gl-row:has(:disabled),
394
+ .gl-row:disabled,
395
+ .gl-row[aria-disabled="true"] {
396
+ opacity: 0.45;
397
+ }
398
+ .gl-row-icon {
399
+ display: inline-flex;
400
+ flex-shrink: 0;
401
+ justify-content: center;
402
+ width: 22px;
403
+ color: var(--muted-foreground);
404
+ }
405
+ .gl-row-text {
406
+ display: flex;
407
+ flex: 1;
408
+ flex-direction: column;
409
+ min-width: 0;
410
+ }
411
+ .gl-row-description {
412
+ color: var(--muted-foreground);
413
+ font-size: 12px;
414
+ }
415
+ .gl-row-trailing {
416
+ display: inline-flex;
417
+ flex-shrink: 0;
418
+ align-items: center;
419
+ gap: 8px;
420
+ color: var(--muted-foreground);
421
+ }
422
+ .gl-badge {
423
+ box-sizing: border-box;
424
+ display: inline-flex;
425
+ min-width: 0;
426
+ max-width: 100%;
427
+ overflow: hidden;
428
+ align-items: center;
429
+ gap: 5px;
430
+ height: 22px;
431
+ padding: 0 8px;
432
+ border: 1px solid transparent;
433
+ border-radius: 999px;
434
+ background: var(--secondary);
435
+ color: var(--secondary-foreground);
436
+ font-size: 12px;
437
+ font-weight: 500;
438
+ line-height: 1;
439
+ white-space: nowrap;
440
+ }
441
+ .gl-badge[data-variant="default"] {
442
+ background: var(--accent);
443
+ color: var(--accent-foreground);
444
+ }
445
+ .gl-badge[data-variant="outline"] {
446
+ border-color: var(--border);
447
+ background: transparent;
448
+ color: var(--foreground);
449
+ }
450
+ .gl-badge[data-variant="destructive"] {
451
+ background: var(--destructive);
452
+ color: var(--destructive-foreground);
453
+ }
454
+ .gl-badge-label {
455
+ overflow: hidden;
456
+ text-overflow: ellipsis;
457
+ }
458
+ .gl-badge-dot {
459
+ flex-shrink: 0;
460
+ width: 6px;
461
+ height: 6px;
462
+ border-radius: 999px;
463
+ background: currentColor;
464
+ }
465
+ .gl-input {
466
+ box-sizing: border-box;
467
+ width: 100%;
468
+ min-width: 0;
469
+ height: 36px;
470
+ padding: 0 10px;
471
+ border: 1px solid var(--input);
472
+ border-radius: var(--radius);
473
+ background: var(--background);
474
+ color: var(--foreground);
475
+ font: inherit;
476
+ font-size: 15px;
477
+ }
478
+ .gl-input::placeholder {
479
+ color: var(--muted-foreground);
480
+ }
481
+ .gl-input:focus-visible {
482
+ border-color: var(--ring);
483
+ outline: 2px solid color-mix(in srgb, var(--ring) 35%, transparent);
484
+ outline-offset: 0;
485
+ }
486
+ .gl-input:disabled {
487
+ opacity: 0.45;
488
+ }
489
+ .gl-textarea {
490
+ height: auto;
491
+ min-height: 72px;
492
+ padding: 8px 10px;
493
+ resize: vertical;
494
+ }
495
+ .gl-select {
496
+ width: auto;
497
+ padding-right: 28px;
498
+ appearance: none;
499
+ -webkit-appearance: none;
500
+ background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
501
+ background-position: right 9px center;
502
+ background-repeat: no-repeat;
503
+ text-overflow: ellipsis;
504
+ }
505
+
506
+ .gl-tabs-list {
507
+ display: flex;
508
+ gap: 2px;
509
+ padding: 3px;
510
+ border-radius: var(--radius);
511
+ background: color-mix(in srgb, var(--foreground) 7%, transparent);
512
+ }
513
+ .gl-tabs-trigger {
514
+ flex: 1 0 auto;
515
+ height: 30px;
516
+ padding: 0 10px;
517
+ border: 0;
518
+ border-radius: calc(var(--radius) - 3px);
519
+ background: transparent;
520
+ color: color-mix(in srgb, var(--muted-foreground) 80%, var(--foreground));
521
+ font: inherit;
522
+ font-size: 13px;
523
+ font-weight: 500;
524
+ white-space: nowrap;
525
+ cursor: pointer;
526
+ }
527
+ .gl-tabs-trigger[aria-selected="true"] {
528
+ background: var(--background);
529
+ color: var(--foreground);
530
+ box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12);
531
+ }
532
+ :root.dark .gl-tabs-trigger[aria-selected="true"] {
533
+ background: color-mix(in srgb, var(--foreground) 18%, transparent);
534
+ }
535
+ .gl-tabs-trigger:focus-visible {
536
+ outline: 2px solid var(--ring);
537
+ outline-offset: 1px;
538
+ }
539
+
540
+ .gl-banner {
541
+ display: flex;
542
+ align-items: center;
543
+ gap: 10px;
544
+ padding: 10px 12px;
545
+ border: 1px solid var(--border);
546
+ border-radius: var(--radius);
547
+ background: var(--card);
548
+ font-size: 13px;
549
+ }
550
+ .gl-banner[data-variant="warning"] {
551
+ border-color: color-mix(in srgb, var(--warning) 45%, transparent);
552
+ background: var(--warning-surface);
553
+ }
554
+ .gl-banner[data-variant="error"] {
555
+ border-color: color-mix(in srgb, var(--destructive) 45%, transparent);
556
+ background: var(--error-surface);
557
+ }
558
+ .gl-banner-text {
559
+ display: flex;
560
+ flex: 1;
561
+ flex-direction: column;
562
+ gap: 2px;
563
+ min-width: 0;
564
+ }
565
+ .gl-banner-title {
566
+ font-weight: 600;
567
+ }
568
+
569
+ .gl-empty {
570
+ display: flex;
571
+ flex-direction: column;
572
+ align-items: center;
573
+ gap: 6px;
574
+ padding: 32px 16px;
575
+ color: var(--muted-foreground);
576
+ text-align: center;
577
+ }
578
+ .gl-empty-icon {
579
+ display: inline-flex;
580
+ margin-bottom: 4px;
581
+ }
582
+ .gl-empty-title {
583
+ margin: 0;
584
+ color: var(--foreground);
585
+ font-size: 15px;
586
+ font-weight: 600;
587
+ }
588
+ .gl-empty-description {
589
+ margin: 0;
590
+ max-width: 320px;
591
+ font-size: 13px;
592
+ }
593
+
594
+ .gl-spinner {
595
+ box-sizing: border-box;
596
+ display: inline-block;
597
+ flex-shrink: 0;
598
+ border: 2px solid color-mix(in srgb, currentColor 25%, transparent);
599
+ border-top-color: currentColor;
600
+ border-radius: 999px;
601
+ animation: gl-spin 0.8s linear infinite;
602
+ }
603
+ @keyframes gl-spin {
604
+ to {
605
+ transform: rotate(360deg);
606
+ }
607
+ }
608
+
609
+ .gl-stat {
610
+ display: flex;
611
+ flex-direction: column;
612
+ gap: 2px;
613
+ padding: 10px 12px;
614
+ border-radius: var(--radius);
615
+ background: var(--card);
616
+ }
617
+ .gl-stat-label {
618
+ color: var(--muted-foreground);
619
+ font-size: 11px;
620
+ font-weight: 600;
621
+ letter-spacing: 0.06em;
622
+ text-transform: uppercase;
623
+ }
624
+ .gl-stat-value {
625
+ font-size: 24px;
626
+ font-weight: 700;
627
+ font-variant-numeric: tabular-nums;
628
+ line-height: 1.15;
629
+ }
630
+ .gl-stat-hint {
631
+ color: var(--muted-foreground);
632
+ font-size: 12px;
633
+ }
634
+
635
+ .gl-separator {
636
+ flex-shrink: 0;
637
+ height: 1px;
638
+ background: var(--border);
639
+ }
640
+ .gl-separator[data-orientation="vertical"] {
641
+ width: 1px;
642
+ height: auto;
643
+ align-self: stretch;
644
+ }
645
+
646
+ .gl-dock {
647
+ position: fixed;
648
+ z-index: 20;
649
+ left: 0;
650
+ right: 0;
651
+ display: flex;
652
+ justify-content: center;
653
+ pointer-events: none;
654
+ }
655
+ /* In a two-column page the dock centres under the left column, off the open Duo's hinge. */
656
+ body:has(.gl-page-body[data-wide]) .gl-dock:not([data-rail]) {
657
+ right: calc(50vw + 20px);
658
+ }
659
+ .gl-dock[data-rail] {
660
+ left: auto;
661
+ right: auto;
662
+ }
663
+ .gl-dock-pill {
664
+ display: inline-flex;
665
+ align-items: center;
666
+ gap: 4px;
667
+ padding: 6px;
668
+ border: 1px solid var(--border);
669
+ border-radius: 999px;
670
+ background: var(--card);
671
+ box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
672
+ pointer-events: auto;
673
+ }
674
+ .gl-dock[data-rail] .gl-dock-pill {
675
+ flex-direction: column;
676
+ padding: 4px;
677
+ }
678
+ .gl-dock-item {
679
+ display: inline-flex;
680
+ align-items: center;
681
+ justify-content: center;
682
+ gap: 8px;
683
+ height: 40px;
684
+ min-width: 40px;
685
+ padding: 0 12px;
686
+ border: 0;
687
+ border-radius: 999px;
688
+ background: transparent;
689
+ color: var(--muted-foreground);
690
+ font: inherit;
691
+ font-size: 14px;
692
+ font-weight: 600;
693
+ cursor: pointer;
694
+ touch-action: manipulation;
695
+ }
696
+ .gl-dock[data-rail] .gl-dock-item {
697
+ width: 36px;
698
+ min-width: 0;
699
+ height: 36px;
700
+ padding: 0;
701
+ }
702
+ .gl-dock-item[aria-selected="true"] {
703
+ background: var(--accent);
704
+ color: var(--accent-foreground);
705
+ }
706
+ .gl-dock-item svg {
707
+ width: 20px;
708
+ height: 20px;
709
+ }
710
+ .gl-dock-item:focus-visible {
711
+ outline: 2px solid var(--ring);
712
+ outline-offset: 2px;
713
+ }
714
+ .gl-visually-hidden {
715
+ position: absolute;
716
+ width: 1px;
717
+ height: 1px;
718
+ overflow: hidden;
719
+ clip: rect(0 0 0 0);
720
+ white-space: nowrap;
721
+ }
722
+
723
+ .gl-guide-steps {
724
+ display: flex;
725
+ flex-direction: column;
726
+ gap: 2px;
727
+ margin: 0;
728
+ padding: 0;
729
+ list-style: none;
730
+ }
731
+ .gl-guide-steps li {
732
+ display: flex;
733
+ align-items: center;
734
+ gap: 10px;
735
+ padding: 6px 0;
736
+ color: var(--muted-foreground);
737
+ font-size: 14px;
738
+ }
739
+ .gl-guide-steps li[data-state="current"] {
740
+ color: var(--foreground);
741
+ font-weight: 600;
742
+ }
743
+ .gl-guide-mark {
744
+ display: inline-flex;
745
+ flex-shrink: 0;
746
+ align-items: center;
747
+ justify-content: center;
748
+ width: 22px;
749
+ height: 22px;
750
+ border: 1px solid var(--border);
751
+ border-radius: 999px;
752
+ font-size: 12px;
753
+ font-weight: 600;
754
+ }
755
+ .gl-guide-steps li[data-state="current"] .gl-guide-mark {
756
+ border-color: var(--accent);
757
+ background: var(--accent);
758
+ color: var(--accent-foreground);
759
+ }
760
+ .gl-guide-steps li[data-state="done"] .gl-guide-mark {
761
+ border-color: var(--success);
762
+ color: var(--success);
763
+ }
764
+ .gl-guide-current {
765
+ display: flex;
766
+ flex-direction: column;
767
+ gap: 10px;
768
+ padding: 14px;
769
+ border-radius: calc(var(--radius) + 4px);
770
+ background: var(--card);
771
+ }
772
+ .gl-guide-progress {
773
+ margin: 0;
774
+ color: var(--muted-foreground);
775
+ font-size: 12px;
776
+ font-weight: 600;
777
+ letter-spacing: 0.04em;
778
+ text-transform: uppercase;
779
+ }
780
+ .gl-guide-heading {
781
+ display: flex;
782
+ flex-wrap: wrap;
783
+ align-items: baseline;
784
+ gap: 4px 8px;
785
+ }
786
+ .gl-guide-title {
787
+ margin: 0;
788
+ font-size: 18px;
789
+ font-weight: 600;
790
+ outline: none;
791
+ }
792
+ .gl-guide-done {
793
+ flex-shrink: 0;
794
+ white-space: nowrap;
795
+ color: var(--success);
796
+ font-size: 13px;
797
+ font-weight: 600;
798
+ }
799
+ .gl-guide-description {
800
+ margin: 0;
801
+ color: var(--muted-foreground);
802
+ }
803
+ .gl-guide-nav {
804
+ display: grid;
805
+ grid-template-columns: 1fr 1fr;
806
+ gap: 8px;
807
+ margin-top: auto;
808
+ }
809
+
810
+ .gl-lens {
811
+ box-sizing: border-box;
812
+ display: flex;
813
+ flex-direction: column;
814
+ aspect-ratio: 2 / 1;
815
+ margin: 0;
816
+ padding: 10px 12px;
817
+ overflow: hidden;
818
+ border-radius: 14px;
819
+ background: #000000;
820
+ color: #39ff88;
821
+ font-family: var(--font-mono);
822
+ font-size: 12px;
823
+ line-height: 1.35;
824
+ }
825
+ .gl-lens-lines {
826
+ flex: 1;
827
+ min-height: 0;
828
+ overflow: hidden;
829
+ }
830
+ .gl-lens-lines p {
831
+ margin: 0;
832
+ overflow: hidden;
833
+ white-space: nowrap;
834
+ text-overflow: ellipsis;
835
+ }
836
+ .gl-lens-lines p[data-dim] {
837
+ opacity: 0.5;
838
+ }
839
+ .gl-lens-lines p[data-align="right"] {
840
+ text-align: right;
841
+ }
842
+ .gl-lens-lines p[data-marked] {
843
+ margin: 0 -4px;
844
+ padding: 0 4px;
845
+ border-radius: 3px;
846
+ background: rgba(57, 255, 136, 0.18);
847
+ }
848
+ .gl-lens-status {
849
+ display: flex;
850
+ justify-content: space-between;
851
+ gap: 8px;
852
+ margin-top: 6px;
853
+ padding-top: 4px;
854
+ border-top: 1px solid rgba(57, 255, 136, 0.35);
855
+ }
856
+ }