-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathapp-shell.css
More file actions
2673 lines (2458 loc) · 102 KB
/
app-shell.css
File metadata and controls
2673 lines (2458 loc) · 102 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
/* ============================================================
247420 design system — component sheet
Tonal surfaces over borders. Indicator rails over hairlines.
Friendly rounded sans body; mono only on real code.
============================================================ */
/* ============================================================
Base
============================================================ */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
button, input, select, textarea { font: inherit; }
/* ============================================================
Accessibility — Skip Link
============================================================ */
.skip-link {
position: absolute;
top: -40px;
left: 0;
background: var(--accent);
color: var(--accent-fg);
padding: 8px 16px;
text-decoration: none;
z-index: 100;
border-radius: var(--r-pill);
font-weight: 600;
font-size: var(--fs-sm);
}
.skip-link:focus {
top: 10px;
outline: 2px solid var(--accent);
outline-offset: 2px;
}
body {
background: var(--bg);
color: var(--fg);
font-family: var(--ff-body);
font-size: var(--fs-body);
line-height: var(--lh-base);
-webkit-font-smoothing: antialiased;
text-rendering: optimizeLegibility;
}
::selection { background: var(--mascot); color: var(--ink); }
/* Every root has a CQ container so fluid type can resolve to a meaningful inline-size. */
.app, [class*="kit-"], .ds-stage {
container-type: inline-size;
overflow-x: clip;
min-width: 0;
}
.app *, [class*="kit-"] * { min-width: 0; }
/* ============================================================
Typography
============================================================ */
h1, .t-h1 { font-family: var(--ff-body); font-size: var(--fs-h1); line-height: var(--lh-snug); letter-spacing: var(--tr-tight); font-weight: 600; margin: 0; }
h2, .t-h2 { font-family: var(--ff-body); font-size: var(--fs-h2); line-height: var(--lh-snug); letter-spacing: var(--tr-tight); font-weight: 600; margin: 0; }
h3, .t-h3 { font-family: var(--ff-body); font-size: var(--fs-h3); line-height: var(--lh-snug); letter-spacing: -0.01em; font-weight: 600; margin: 0; }
h4, .t-h4 { font-family: var(--ff-body); font-size: var(--fs-h4); line-height: var(--lh-snug); font-weight: 600; margin: 0; }
/* App/chrome typescale opt-in: compact heading ceiling for application UIs. */
[data-typescale="app"] h1, [data-typescale="app"] .t-h1 { font-size: var(--fs-h1-app); line-height: 1.15; }
[data-typescale="app"] h2, [data-typescale="app"] .t-h2 { font-size: var(--fs-h2-app); }
[data-typescale="app"] h3, [data-typescale="app"] .t-h3 { font-size: var(--fs-h3-app); }
[data-typescale="app"] h4, [data-typescale="app"] .t-h4 { font-size: var(--fs-h4-app); }
.t-hero { font-family: var(--ff-body); font-size: var(--fs-hero); line-height: var(--lh-tight); letter-spacing: var(--tr-tighter); font-weight: 600; margin: 0; }
.t-mega { font-family: var(--ff-body); font-size: var(--fs-mega); line-height: 0.95; letter-spacing: var(--tr-tighter); font-weight: 600; margin: 0; }
.t-display { font-family: var(--ff-body); font-weight: 600; letter-spacing: var(--tr-tight); }
.t-mono { font-family: var(--ff-mono); }
.t-body { font-family: var(--ff-body); }
.t-label { font-family: var(--ff-mono); font-size: var(--fs-tiny); text-transform: uppercase; letter-spacing: var(--tr-label); font-weight: 500; }
.t-micro { font-family: var(--ff-mono); font-size: var(--fs-micro); text-transform: uppercase; letter-spacing: var(--tr-label); color: var(--fg-3); }
.t-meta { font-family: var(--ff-body); font-size: var(--fs-sm); color: var(--fg-3); }
.lede, .t-lede {
font-family: var(--ff-body); font-size: var(--fs-xl);
line-height: var(--lh-tall); max-width: 38ch; font-weight: 400; color: var(--fg-2);
margin: 0;
}
.eyebrow {
font-family: var(--ff-body);
font-size: var(--fs-tiny);
font-weight: 600;
letter-spacing: var(--tr-caps);
text-transform: uppercase;
color: var(--accent);
display: inline-flex; align-items: center; gap: 10px;
}
.eyebrow::before {
content: '';
width: 18px; height: 2px; background: currentColor;
}
.ds-prose {
font-family: var(--ff-body);
font-size: var(--fs-lg);
line-height: var(--lh-long);
max-width: var(--measure);
text-wrap: pretty;
}
.ds-prose p { margin: 0 0 var(--space-4); }
.ds-prose h1 { font-size: clamp(34px, 5.4cqi, 64px); margin-bottom: var(--space-3); }
.ds-prose h2 { margin: var(--space-6) 0 var(--space-3); }
.ds-prose h3 { margin: var(--space-5) 0 var(--space-2); font-size: var(--fs-lg); font-weight: 600; }
.dim { color: var(--fg-3); }
/* Links */
a { color: inherit; text-decoration: none; }
a.ds-link-accent, .ds-prose a {
color: var(--accent);
text-decoration: underline;
text-underline-offset: 4px;
text-decoration-thickness: 2px;
}
a.ds-link-accent:hover, .ds-prose a:hover {
background: var(--accent); color: var(--accent-fg); text-decoration-color: transparent;
}
kbd {
font-family: var(--ff-mono); font-size: 0.85em;
background: var(--bg-2); padding: 2px 6px; border-radius: var(--r-1);
}
code {
font-family: var(--ff-mono); font-size: 0.92em;
background: var(--bg-2); padding: 0.15em 0.5em; border-radius: var(--r-1);
}
pre {
font-family: var(--ff-mono);
background: var(--panel-bg);
color: var(--panel-text, inherit);
padding: var(--space-5);
overflow-x: auto;
line-height: 1.55;
font-size: var(--fs-sm);
margin: 0;
border-radius: var(--r-3);
}
pre .k { color: var(--mascot); }
pre .s { color: var(--sun); }
pre .c { color: var(--fg-3); }
pre .n { color: var(--green-2); }
/* ============================================================
AppShell — page frame. The topbar floats above a soft background;
the body sits inside a rounded inner shell for a friendlier feel.
============================================================ */
.app {
display: flex; flex-direction: column;
min-height: 100vh;
/* Definite height so the flex column resolves height:100% for descendants
(e.g. a full-height chat) at every breakpoint, not just where a desktop
media override happened to set explicit heights. dvh tracks mobile chrome. */
min-height: 100dvh;
height: 100dvh;
background: var(--bg);
color: var(--fg);
/* Notched-device safe area padding (no-op on devices without notches) */
padding-top: env(safe-area-inset-top);
padding-bottom: env(safe-area-inset-bottom);
padding-left: env(safe-area-inset-left);
padding-right: env(safe-area-inset-right);
}
/* When the app shell is embedded inside a windowed surface (e.g. the freddie
dashboard mounted in a WM window via .fd-root) it is NOT a full-page app:
`min-height:100vh` and the absence of an explicit width make it collapse to
0 width at desktop, where the responsive single-column @media rules don't
apply. Inside .fd-root it must fill its container instead. (At <=767px the
grid already linearizes, which is why the bug only showed at desktop width.) */
.fd-root .app { width: 100%; height: 100%; min-height: 0; flex: 1 1 auto; }
.fd-root .app-body { min-width: 0; }
:root {
--app-status-h: var(--size-base);
--app-topbar-h: var(--size-lg);
--app-crumb-h: var(--size-sm);
}
.app-topbar {
position: sticky; top: 0; z-index: var(--z-header);
display: flex; flex-wrap: wrap;
align-items: center; gap: var(--space-4);
min-height: var(--app-topbar-h);
padding: 10px var(--pad-x);
background: color-mix(in oklab, var(--bg) 88%, transparent);
backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
/* Merged chrome: when AppShell gets both a topbar and a crumb it wraps them
in .app-chrome and they share ONE sticky band instead of stacking as two
bars. The breadcrumb provides the left identity (it already begins with the
brand), so the topbar's standalone brand is hidden to avoid showing the name
twice; nav and the crumb's right slot sit together on the right. */
.app-chrome {
position: sticky; top: 0; z-index: var(--z-header);
display: flex; flex-wrap: wrap; align-items: center;
gap: var(--space-2) var(--space-4);
padding: 8px var(--pad-x);
background: color-mix(in oklab, var(--bg) 88%, transparent);
backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.app-chrome > .app-topbar,
.app-chrome > .app-crumb {
position: static; background: none; backdrop-filter: none;
-webkit-backdrop-filter: none; padding: 0; min-height: 0;
flex: 1 1 auto;
}
.app-chrome > .app-crumb { order: 1; flex: 1 1 auto; }
.app-chrome > .app-topbar { order: 2; flex: 0 0 auto; }
.app-chrome > .app-topbar > .brand { display: none; }
.app-chrome > .app-topbar > nav { margin-left: 0; }
.app-chrome > .app-crumb > .crumb-right { margin-left: auto; }
.app-topbar > .brand { flex: 0 0 auto; }
.app-topbar > .app-search { flex: 1 1 auto; }
.app-topbar > nav { margin-left: auto; }
.app-topbar nav { display: flex; gap: 4px; font-size: var(--fs-sm); flex-wrap: wrap; }
.app-topbar nav a { flex: 0 0 auto; }
.app-topbar nav a {
color: var(--fg-2);
padding: 12px 14px;
min-height: 44px;
display: flex;
align-items: center;
border-radius: var(--r-pill);
transition: background var(--dur-snap) var(--ease), color var(--dur-snap) var(--ease);
}
.app-topbar nav a:hover { background: var(--bg-2); color: var(--fg); }
.app-topbar nav a:focus-visible {
outline: 2px solid var(--accent);
outline-offset: 2px;
}
.app-topbar nav a.active {
color: var(--accent-fg);
background: var(--accent);
font-weight: 600;
}
.brand {
font-family: var(--ff-body);
font-weight: 700; font-size: var(--fs-sm);
letter-spacing: -0.01em;
}
.brand .slash { color: var(--fg-3); font-weight: 400; margin: 0 2px; }
.app-search {
display: inline-flex; align-items: center; gap: 10px;
padding: 9px 16px; background: var(--bg-2);
border-radius: var(--r-pill);
font-size: var(--fs-sm); color: var(--fg-3);
max-width: 360px;
}
.app-search .icon { opacity: 0.6; }
.app-search input {
border: 0; background: transparent;
font-family: inherit; font-size: inherit; color: var(--fg);
width: 100%;
}
.app-search:focus-within {
outline: 2px solid var(--accent);
outline-offset: 2px;
}
.app-crumb {
min-height: var(--app-crumb-h);
padding: 6px var(--pad-x);
display: flex; align-items: center; gap: 8px;
font-size: var(--fs-sm); color: var(--fg-3);
}
.app-crumb .sep { opacity: 0.5; }
.app-crumb .leaf { color: var(--fg); font-weight: 600; }
.app-crumb .crumb-right { margin-left: auto; color: var(--fg-3); }
.app-side-shell { background: var(--bg); }
.app-body { display: grid; grid-template-columns: var(--sidebar-width) minmax(0, 1fr); grid-template-rows: minmax(0, 1fr); align-items: stretch; align-content: stretch; flex: 1; min-height: 0; }
.app-body.no-side { grid-template-columns: minmax(0, 1fr); }
/* When there is no sidebar, the empty side-shell must not occupy a grid row,
otherwise main wraps to a second (collapsed) row. Remove it from layout. */
.app-body.no-side .app-side-shell { display: none; }
.app-side {
display: flex; flex-direction: column; gap: var(--space-4);
padding: var(--space-5) var(--space-3);
font-size: var(--fs-sm);
}
.app-side .group {
font-size: var(--fs-xs); font-weight: 600;
color: var(--fg-3); padding: 0 var(--space-3);
margin-bottom: 6px;
}
.app-side a {
display: grid; grid-template-columns: 18px 1fr auto;
gap: 10px; align-items: center;
padding: 12px 14px;
min-height: 44px;
border-radius: var(--r-pill);
color: var(--fg-2);
margin-bottom: 2px;
}
.app-side a:hover { background: var(--bg-2); color: var(--fg); }
.app-side a:focus-visible {
outline: 2px solid var(--accent);
outline-offset: 2px;
}
.app-side a.active {
color: var(--accent-fg);
background: var(--accent);
font-weight: 600;
}
.app-side .count {
background: var(--mascot); color: var(--ink);
padding: 3px 10px; font-size: var(--fs-micro); font-weight: 700;
border-radius: var(--r-pill);
}
.app-main {
padding: var(--space-5) var(--pad-x) 0;
min-width: 0;
/* Full-height flex column so a single flex:1 child (e.g. .chat) fills the
region between crumb and status instead of floating at content height. */
display: flex; flex-direction: column;
min-height: 0;
align-self: stretch;
height: 100%;
}
.app-main > * { min-height: 0; }
/* The main region scrolls its own overflow at every breakpoint (previously
only ≥901px), so a fixed-height .app never clips route content and inner
panels don't fight the page scroll. */
.app-main { overflow-y: auto; }
/* Reserve the scrollbar track so routes with/without overflow don't shift
the layout horizontally when the bar appears. */
.app-main { scrollbar-gutter: stable; }
/* Jump-target anchors clear the inner-scroll top edge (no chrome overlap,
but a little breathing room when deep-linked within .app-main). */
.app-main [id] { scroll-margin-top: var(--space-4); }
/* Full-height route children fill the region instead of scrolling the page. */
.app-main > .chat,
.app-main > .chat-area,
.app-main > .ds-file-stage,
.app-main > .grow { flex: 1 1 auto; min-height: 0; }
.app-main.narrow { max-width: var(--measure-narrow); margin: 0 auto; }
@media (min-width: 1400px) {
.app { max-width: 1400px; margin-left: auto; margin-right: auto; }
.app-main .chat,
.app-main > .chat-area,
.app-main > .main-content { max-width: none; margin: 0; width: 100%; }
/* Status bar inherits the .app max-width cap above and stretches edge-to-edge
within it; no separate width constraint (which previously narrowed it). */
.app-status { width: 100%; }
}
.app-status {
display: flex; align-items: center; gap: var(--space-3);
width: 100%;
min-height: var(--app-status-h);
padding: 10px var(--pad-x);
font-family: var(--ff-mono); font-size: var(--fs-xs);
color: var(--fg-3);
border-top: 1px solid var(--rule);
}
.app-status .item { color: inherit; }
.app-status .item:first-of-type { color: var(--accent); }
.app-status .spread { flex: 1; }
/* ============================================================
Primitives
============================================================ */
.btn, .btn-primary, .btn-ghost {
display: inline-flex; align-items: center; gap: 8px;
padding: 13px 22px;
font-family: var(--ff-body);
font-weight: 600; font-size: var(--fs-sm);
text-decoration: none;
cursor: pointer;
border-radius: var(--r-pill);
border: 0;
transition: transform var(--dur-snap) var(--ease), background var(--dur-snap) var(--ease), color var(--dur-snap) var(--ease);
}
.btn { background: var(--bg-2); color: var(--fg); }
.btn:hover { background: var(--bg-3); color: var(--fg); }
.btn-primary { background: var(--accent); color: var(--accent-fg); }
.btn-primary:hover { background: var(--fg); color: var(--bg); }
.btn-ghost { background: transparent; color: var(--fg); box-shadow: inset 0 0 0 1.5px var(--rule-strong); }
.btn-ghost:hover { background: var(--bg-2); }
.btn:active, .btn-primary:active, .btn-ghost:active { transform: translateY(1px); }
.btn:focus-visible, .btn-primary:focus-visible, .btn-ghost:focus-visible {
outline: 2px solid var(--accent);
outline-offset: 2px;
}
/* ============================================================
IconButton — square icon-only button
============================================================ */
.ds-icon-btn {
display: inline-flex; align-items: center; justify-content: center;
padding: 0; border: none; cursor: pointer;
border-radius: var(--r-1, 6px);
background: transparent; color: var(--fg);
width: 32px; height: 32px;
}
.ds-icon-btn-xs { width: 22px; height: 22px; }
.ds-icon-btn-sm { width: 26px; height: 26px; }
.ds-icon-btn-base { width: 32px; height: 32px; }
.ds-icon-btn-lg { width: 40px; height: 40px; }
.ds-icon-btn-xl { width: 48px; height: 48px; }
.ds-icon-btn-ghost { background: transparent; }
.ds-icon-btn-ghost:hover { background: var(--bg-2); }
.ds-icon-btn-primary { background: var(--accent); color: var(--accent-fg); }
.ds-icon-btn-primary:hover { background: var(--fg); color: var(--bg); }
.ds-icon-btn-danger { background: var(--flame); color: var(--paper); }
.ds-icon-btn-danger:hover { filter: brightness(1.1); }
.ds-icon-btn:active { transform: translateY(1px); }
.ds-icon-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.ds-icon-btn:disabled, .ds-icon-btn.is-disabled {
opacity: 0.5; cursor: not-allowed; pointer-events: none;
}
/* ============================================================
Badge — small inline count/status pill
============================================================ */
.ds-badge {
display: inline-flex; align-items: center; justify-content: center;
min-width: 18px; height: 18px; padding: 0 6px;
font-size: var(--fs-micro); font-weight: 600; line-height: 1;
border-radius: 999px;
background: var(--bg-3); color: var(--fg-2);
}
.ds-badge.tone-green { background: var(--green-tint); color: var(--green-deep); }
.ds-badge.tone-purple { background: var(--purple-tint); color: var(--purple-deep); }
.ds-badge.tone-mascot { background: var(--mascot-tint); color: var(--ink); }
.ds-badge.tone-sun { background: var(--sun); color: var(--ink); }
.ds-badge.tone-flame { background: var(--flame); color: var(--paper); }
.ds-badge.tone-live { background: var(--green-tint); color: var(--green-deep); }
.ds-badge.tone-wip { background: var(--bg-3); color: var(--fg-2); }
.ds-badge.tone-error { background: var(--flame); color: var(--paper); }
.ds-badge.tone-success { background: var(--green-tint); color: var(--green-deep); }
.ds-badge.tone-neutral { background: var(--bg-3); color: var(--fg-2); }
.chip {
display: inline-flex; align-items: center; gap: 6px;
padding: 3px 10px;
background: var(--bg-2); color: var(--fg-2);
font-family: var(--ff-body);
font-size: var(--fs-tiny); font-weight: 600;
letter-spacing: var(--tr-caps); text-transform: uppercase;
border-radius: var(--r-pill);
}
.chip.tone-green { background: var(--green-tint); color: var(--green-deep); }
.chip.tone-purple { background: var(--purple-tint); color: var(--purple-deep); }
.chip.tone-mascot { background: var(--mascot-tint); color: var(--ink); }
.chip.tone-sun { background: var(--sun); color: var(--ink); }
.chip.tone-flame { background: var(--flame); color: var(--paper); }
.chip.tone-live { background: var(--green-tint); color: var(--green-deep); }
.chip.tone-wip { background: var(--bg-3); color: var(--fg-2); }
.chip.tone-error { background: var(--flame); color: var(--paper); }
.chip.tone-success { background: var(--green-tint); color: var(--green-deep); }
.chip.tone-disabled { background: var(--bg-3); color: var(--fg-3); }
.chip.tone-ok { background: var(--green-tint); color: var(--green-deep); }
.chip.tone-miss { background: var(--flame); color: var(--paper); }
.chip.tone-neutral { background: var(--bg-3); color: var(--fg-2); }
.glyph {
display: inline-flex; align-items: center; justify-content: center;
width: 18px; height: 18px;
font-family: var(--ff-mono); font-size: 13px;
opacity: 0.8;
}
/* ============================================================
Panel — soft tonal container, no border decoration
============================================================ */
.panel {
background: var(--panel-1, var(--bg-2));
border-radius: var(--r-3);
margin: 0 0 var(--space-5);
padding: var(--space-3);
box-shadow: var(--panel-shadow);
position: relative;
}
.panel.panel-inline { background: var(--bg-2); padding: var(--space-3) var(--space-3); }
.panel.panel-wide { background: transparent; }
.panel-head {
display: flex; align-items: baseline; justify-content: space-between;
padding: var(--space-4) var(--space-5) var(--space-3);
font-size: var(--fs-xs); font-weight: 600;
color: var(--fg-3);
letter-spacing: var(--tr-caps); text-transform: uppercase;
}
.panel-head > :last-child {
font-weight: 500; color: var(--fg-3);
font-family: var(--ff-mono); letter-spacing: 0;
}
.panel-body { padding: var(--space-2) var(--space-3) var(--space-3); }
.panel.panel-wide .panel-body { padding: 0; }
/* ============================================================
Row — primary list pattern. Indicator rail on the left,
no hairlines between rows.
============================================================ */
.row {
display: grid;
grid-template-columns: minmax(80px, 12ch) minmax(0, 1fr) auto;
gap: var(--space-3);
align-items: baseline;
padding: 18px 22px;
background: var(--bg);
border-radius: var(--r-2);
color: var(--fg);
position: relative;
transition: background var(--dur-snap) var(--ease), padding var(--dur-base) var(--ease);
}
.row + .row { margin-top: 4px; }
.row::before {
content: '';
position: absolute; left: 6px; top: 22%; bottom: 22%; width: 3px;
background: transparent; border-radius: 3px;
transition: background var(--dur-snap) var(--ease);
}
.row:hover { background: var(--bg-2); }
.row:hover::before { background: var(--rule-strong); }
.row.active { background: color-mix(in oklab, var(--accent) 10%, var(--bg-2)); }
.row.active::before { background: var(--accent); }
.row.row-state-disabled { opacity: 0.5; pointer-events: none; }
.row.row-state-error { background: color-mix(in oklab, var(--flame) 10%, var(--bg-2)); }
.row.row-state-error::before { background: var(--flame); }
.row-grid { /* explicit grid-template-columns set inline */ }
.row .code { font-family: var(--ff-mono); font-size: var(--fs-xs); color: var(--fg-3); }
.row .title { font-family: var(--ff-body); font-weight: 600; font-size: var(--fs-lg); display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.row .sub { font-family: var(--ff-body); font-weight: 400; font-size: var(--fs-sm); color: var(--fg-3); }
.row .meta { font-family: var(--ff-mono); font-size: var(--fs-xs); color: var(--fg-3); text-align: right; }
a.row { text-decoration: none; }
/* ============================================================
Hero
============================================================ */
.ds-hero {
padding: var(--space-9) 0 var(--space-8);
display: grid; gap: var(--space-5);
max-width: var(--measure-wide);
}
.ds-hero-title {
font-family: var(--ff-body); font-weight: 600;
font-size: clamp(34px, 6.4cqi, 80px);
line-height: 1.05; letter-spacing: var(--tr-tight);
margin: 0; max-width: 18ch;
}
.ds-hero-body {
font-family: var(--ff-body); font-size: var(--fs-xl);
line-height: 1.45; margin: 0; max-width: 52ch;
color: var(--fg-2);
}
.ds-hero-accent { color: var(--accent); font-weight: 500; }
.ds-hero-actions { display: flex; gap: var(--space-2, 10px); flex-wrap: wrap; margin-top: var(--space-2, 8px); }
.ds-chat-title { margin: 0; font-size: inherit; }
/* ============================================================
Section grouping
============================================================ */
.ds-section { margin: var(--space-8) 0; }
.ds-section > h3 {
font-family: var(--ff-body); font-weight: 600; font-size: var(--fs-h3);
margin: 0 0 var(--space-5);
letter-spacing: -0.01em;
}
/* ============================================================
Install — single CLI command card
============================================================ */
.cli {
display: flex; align-items: center; gap: 14px;
padding: 20px 24px;
background: var(--ink); color: var(--paper);
border-radius: var(--r-3);
font-family: var(--ff-mono); font-size: var(--fs-lg);
}
.cli .prompt { color: var(--green-2); }
.cli .cmd { flex: 1; min-width: 0; overflow-x: auto; white-space: nowrap; color: var(--paper); }
.cli .copy {
padding: 8px 16px; background: transparent; color: var(--paper);
font-size: var(--fs-tiny); text-transform: uppercase; letter-spacing: var(--tr-caps);
cursor: pointer; box-shadow: inset 0 0 0 1px var(--rule-strong);
border-radius: var(--r-pill);
}
.cli .copy:hover { background: var(--fg-3); }
/* Multi-line CLI block: when .cli holds .cli-line / .cli-cmt children
(quickstart scripts, multi-command snippets) it stacks as a column
instead of the single-line install row. */
.cli:has(.cli-line),
.cli:has(.cli-cmt) {
flex-direction: column; align-items: stretch; gap: 0;
font-size: var(--fs-sm); line-height: 1.6;
}
.cli-line {
display: flex; gap: 10px;
font-family: var(--ff-mono); font-size: 13px; line-height: 1.6;
padding: 3px 0;
}
.cli-line .prompt { color: var(--green-2); flex: 0 0 auto; user-select: none; }
.cli-line .cmd { flex: 1 1 auto; white-space: pre-wrap; word-break: break-word; color: var(--paper); }
.cli-cmt {
color: var(--fg-3);
font-family: var(--ff-mono); font-size: var(--fs-tiny); line-height: 1.6;
padding: 3px 0; white-space: pre-wrap; word-break: break-word;
}
/* ============================================================
Receipt — key/value table
============================================================ */
table.kv { width: 100%; border-collapse: collapse; }
table.kv td {
padding: 8px 0;
font-family: var(--ff-body); font-size: var(--fs-sm);
}
table.kv tr + tr td { border-top: 1px solid var(--rule); }
table.kv td:first-child {
color: var(--fg-3);
font-size: var(--fs-xs);
text-transform: uppercase; letter-spacing: var(--tr-caps);
width: 14ch;
}
table.kv td:last-child {
font-weight: 600;
}
/* ============================================================
Generic table
============================================================ */
table {
width: 100%; border-collapse: collapse;
font-family: var(--ff-body); font-size: var(--fs-sm);
border-radius: var(--r-3); overflow: hidden;
}
table th {
text-align: left;
padding: 12px 16px;
font-size: var(--fs-xs); font-weight: 600;
color: var(--fg-3); text-transform: uppercase; letter-spacing: var(--tr-caps);
background: var(--bg-2);
}
table td { padding: 14px 16px; border-top: 1px solid var(--rule); }
table tr.clickable { cursor: pointer; }
table tr.clickable:hover td { background: var(--bg-2); }
table tr.clickable:focus-visible {
outline: 2px solid var(--accent);
outline-offset: -2px;
}
table tr.clickable:focus-visible td { background: var(--bg-2); }
/* ============================================================
Changelog
============================================================ */
.ds-changelog-row {
grid-template-columns: minmax(110px, 14ch) minmax(60px, 9ch) minmax(0, 1fr) !important;
}
.ds-changelog-ver {
font-family: var(--ff-body); font-weight: 600; font-size: var(--fs-sm);
}
/* ============================================================
Works
============================================================ */
.work-detail {
padding: var(--space-4) var(--space-5) var(--space-5);
margin: 4px 0 var(--space-2);
background: var(--bg-2);
border-radius: var(--r-3);
display: flex; flex-direction: column; gap: var(--space-3);
}
.ds-work-body { margin: 0; max-width: 60ch; }
.ds-work-actions { display: flex; gap: 10px; flex-wrap: wrap; }
/* ============================================================
Manifesto / pull moment
============================================================ */
.ds-manifesto { max-width: 60ch; }
.ds-manifesto-para {
font-family: var(--ff-body); font-size: var(--fs-lg);
line-height: var(--lh-long); margin: 0 0 var(--space-3);
}
.ds-manifesto-para.dim { color: var(--fg-3); }
/* ============================================================
Currently shipping dots
============================================================ */
.ds-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: currentColor; flex-shrink: 0; vertical-align: middle; }
.ds-dot-on { color: var(--green-2); }
.ds-dot-off { color: var(--fg-3); }
.ds-dot-live { color: var(--green-2); }
.ds-dot-idle { color: var(--fg-3); }
/* ============================================================
KPI
============================================================ */
.kpi {
display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
gap: var(--space-2);
}
.kpi-card {
padding: var(--space-5);
background: var(--bg-2);
border-radius: var(--r-3);
}
.kpi-card .num {
font-family: var(--ff-body); font-weight: 600;
font-size: clamp(30px, 3.6cqi, 48px); line-height: 1;
letter-spacing: var(--tr-tight);
}
.kpi-card .lbl {
font-size: var(--fs-xs); color: var(--fg-3);
font-weight: 600; margin-top: 8px;
letter-spacing: var(--tr-caps); text-transform: uppercase;
}
/* ============================================================
Empty state
============================================================ */
.empty {
padding: var(--space-8);
text-align: center;
color: var(--fg-3);
background: var(--bg-2);
border-radius: var(--r-3);
font-size: var(--fs-sm);
}
/* ============================================================
Form
============================================================ */
.row-form {
display: grid; gap: 12px;
padding: var(--space-5);
background: var(--bg-2);
border-radius: var(--r-3);
}
.row-form input,
.row-form textarea {
font-family: inherit; font-size: var(--fs-sm);
padding: 12px 16px;
background: var(--bg); color: var(--fg);
border: 0; border-radius: var(--r-2);
box-shadow: inset 0 0 0 1px var(--rule);
}
.row-form input:focus,
.row-form textarea:focus { box-shadow: inset 0 0 0 2px var(--accent); }
/* Field char counter (TextField maxLength) */
.ds-field-count {
font-size: var(--fs-tiny, 12px);
color: var(--fg-3, var(--fg-2));
text-align: right;
}
/* Multi-column form layout (Form columns prop) */
.row-form[data-columns="2"] { grid-template-columns: repeat(2, 1fr); }
.row-form[data-columns="3"] { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 600px) {
.row-form[data-columns="2"],
.row-form[data-columns="3"] { grid-template-columns: 1fr; }
}
/* ============================================================
Responsive Design — Mobile (480px), Tablet (1024px), Desktop (1440px+)
============================================================ */
/* ────────────────────────────────────────────────────────────────────
Mobile Portrait Breakpoint (480px and below)
────────────────────────────────────────────────────────────────────── */
@media (max-width: 480px) {
/* App Layout: single-column + drawer is handled once in the ≤900px block;
no need to re-declare grid-template-columns here (was a redundant !important). */
/* Topbar Navigation: stack the nav onto its own full-width row below the
brand and let it scroll horizontally. The brand stays on the first row;
nav wraps to a second row at 100% width (flex-wrap on .app-topbar). */
.app-topbar {
gap: var(--space-2); padding: 12px var(--space-3);
}
.app-topbar > nav {
flex: 1 1 100%; margin-left: 0; order: 3;
display: flex; gap: 2px; flex-wrap: nowrap;
overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.app-topbar nav::-webkit-scrollbar { display: none; }
.app-topbar nav a {
flex: 0 0 auto; padding: 10px 12px; min-height: 44px; white-space: nowrap;
}
.brand { font-size: var(--fs-tiny); font-weight: 600; }
/* Search */
.app-search {
display: none; /* Hide search on mobile unless explicitly pinned */
}
/* Main Content */
.app-main { padding: var(--space-4) var(--space-2); }
.app-main.narrow { max-width: 100%; margin: 0; }
/* Headings stay on the fluid base clamps (cqi) — no mobile re-clamp. */
/* Panel & Row */
.panel { margin: 0 0 var(--space-3); }
.panel-head { padding: var(--space-3) var(--space-2); gap: var(--space-2); }
.panel-body { padding: var(--space-2); overflow-x: auto; -webkit-overflow-scrolling: touch; }
.panel-body > table { min-width: 100%; }
.row {
grid-template-columns: minmax(0, 1fr) auto !important;
gap: var(--space-2); padding: 12px 16px;
row-gap: 4px !important;
}
.row .sub { grid-column: 1 / -1; order: 3; }
.row .title { font-size: var(--fs-sm); }
/* Buttons */
.btn, .btn-primary, .btn-ghost {
padding: 11px 16px; font-size: var(--fs-tiny);
min-height: 44px; /* Touch target minimum */
}
/* File Grid */
.ds-file-grid {
display: flex;
flex-direction: column;
gap: 3px;
}
.ds-file-row {
grid-template-columns: 22px minmax(0, 1fr) auto;
gap: 10px; padding: 10px 12px;
font-size: var(--fs-xs);
}
/* On mobile, fold meta under the title and keep actions inline. */
.ds-file-row .ds-file-meta { font-size: var(--fs-micro); }
.ds-file-row .ds-file-actions { opacity: 1; }
/* Chat */
.chat-stack { max-width: 100%; min-width: 0; }
.chat-bubble {
padding: 10px 12px; font-size: var(--fs-sm);
}
.chat-avatar { width: 28px; height: 28px; font-size: 11px; }
.chat-msg:hover { padding: 4px 0; margin: 0; background: transparent; }
.chat-composer { padding: 8px; gap: 6px; }
.chat-composer textarea { padding: 10px 12px; font-size: var(--fs-sm); }
.chat-composer .send,
.chat-composer button { width: 40px; height: 40px; font-size: 16px; }
/* KPI Cards */
.kpi {
grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
gap: var(--space-2);
}
.kpi-card { padding: var(--space-3); }
.kpi-card .num { font-size: clamp(22px, 5vw, 32px); }
/* Empty State */
.empty { padding: var(--space-5); font-size: var(--fs-xs); }
/* Form */
.row-form { gap: 10px; padding: var(--space-3); }
.row-form input,
.row-form textarea { padding: 11px 12px; font-size: var(--fs-sm); }
/* Hero Section — keep fluid base font-size, just unconstrain width on mobile. */
.ds-hero { padding: var(--space-6) 0 var(--space-5); }
.ds-hero-title { max-width: 100%; }
.ds-hero-body { max-width: 100%; }
/* Table Responsiveness */
table { font-size: var(--fs-xs); }
table th,
table td { padding: 10px 12px; }
/* CLI Block */
.cli {
flex-direction: column; align-items: flex-start; gap: 10px;
padding: 16px 12px; font-size: var(--fs-xs);
}
.cli .copy { padding: 6px 12px; font-size: var(--fs-micro); }
}
/* ────────────────────────────────────────────────────────────────────
Container Query Responsive (720px and below)
────────────────────────────────────────────────────────────────────── */
@container (max-width: 760px) {
.app-body { grid-template-columns: 1fr !important; }
.app-side-shell { border-right: 0; border-bottom: 1px solid var(--rule); }
.app-topbar { grid-template-columns: 1fr auto; }
.app-topbar nav { font-size: var(--fs-xs); gap: 14px; }
.row { grid-template-columns: minmax(0, 1fr) auto !important; row-gap: 4px !important; }
.row .sub { grid-column: 1 / -1; order: 3; }
}
/* ────────────────────────────────────────────────────────────────────
Tablet Landscape Breakpoint (768px to 1024px)
────────────────────────────────────────────────────────────────────── */
@media (min-width: 481px) and (max-width: 1024px) {
/* App Layout — side handled by 900px drawer block; restore for 901-1024 */
.app-side a {
padding: 12px 12px; gap: 8px;
grid-template-columns: 16px 1fr auto;
font-size: var(--fs-xs);
min-height: 44px;
}
/* Topbar Navigation */
.app-topbar {
grid-template-columns: auto 1fr auto;
gap: var(--space-3); padding: 12px var(--space-4);
}
.app-topbar nav {
display: flex; gap: 8px; font-size: var(--fs-xs);
flex-wrap: wrap;
}
.app-topbar nav a {
padding: 12px 12px; font-size: var(--fs-xs);
min-height: 44px;
}
.brand { font-size: var(--fs-sm); }
/* Search */
.app-search {
display: inline-flex;
max-width: 280px; font-size: var(--fs-xs);
padding: 8px 14px;
}
/* Main Content */
.app-main { padding: var(--space-6) var(--space-4); }
.app-main.narrow { max-width: 100%; }
/* Headings stay on the fluid base clamps (cqi) — no tablet re-clamp. */
/* File list — single column rows on tablet (cards only via data-columns) */
.ds-file-row {
grid-template-columns: 24px minmax(0, 1fr) auto auto;
gap: 12px; padding: 12px 14px;
}
/* Chat Bubbles */
.chat-stack { max-width: min(75%, 420px); }
.chat-bubble {
padding: 11px 14px; font-size: var(--fs-sm);
}
.chat-avatar { width: 32px; height: 32px; font-size: 12px; }
/* KPI Cards */
.kpi {
grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
gap: var(--space-3);
}
/* Buttons */
.btn, .btn-primary, .btn-ghost {
padding: 12px 18px; font-size: var(--fs-sm);
}
/* Panel */
.panel-head { padding: var(--space-4) var(--space-4); }
.panel-body { padding: var(--space-2) var(--space-3); }
/* Hero — fluid base font-size; only width unconstrained on tablet. */
.ds-hero { padding: var(--space-7) 0 var(--space-6); max-width: 100%; }
.ds-hero-title { max-width: 100%; }
/* Row */
.row {
grid-template-columns: minmax(90px, 12ch) minmax(0, 1fr) auto;
gap: var(--space-2); padding: 14px 16px;
}
}
/* ────────────────────────────────────────────────────────────────────
Mid Breakpoint (768px and below) — collapse sidebar + simplify row grid
────────────────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
/* Sidebar stacks above main rather than sitting beside it */
.app-body { grid-template-columns: 1fr; }
.app-side { width: 100%; max-width: none; }
/* Row drops the leading code column; title + meta share the line */
.row {
grid-template-columns: minmax(0, 1fr) auto;
gap: var(--space-2);
}
.row .code { display: none; }
.row .sub { grid-column: 1 / -1; }
}