-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.scss
More file actions
1649 lines (1421 loc) · 35.4 KB
/
Copy pathstyle.scss
File metadata and controls
1649 lines (1421 loc) · 35.4 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
/**
* Saddle admin styles — calm, modern, person-first.
*
* Powered by the PlugPress design system (@plugpress/ui). Saddle overrides the
* shared --pp-* tokens below to carry its own brand, and every
* --s-* token then aliases one of those. Light-only (the design system dropped
* dark mode in v0.2.0). See DESIGN-ALIGNMENT.md for the palette and the rules
* that govern where the accent is allowed to land.
*/
// ---------------------------------------------------------------------------
// Brand tokens — Saddle's palette, written over the design system's.
//
// The DS defines its tokens inside :where(), which has ZERO specificity, so a
// plain class selector wins with no !important. Both .pp-app and the body class
// are needed: portaled overlays (Dialog, DropdownMenu, Select, Tooltip, toasts)
// render OUTSIDE .pp-app and would lose every token without the body half.
//
// This is a consumer-side override, not a library edit. Never change anything
// under node_modules/@plugpress/ui — see the consumer agent guide.
//
// THE RULE THAT GOVERNS THE WHOLE PALETTE: every color has a bright value for
// FILLS and a darker same-hue value for TEXT. Three of the four brand hexes
// cannot carry text at all — lime is 1.98:1 on white, cyan 2.43, coral 3.67 —
// so using the bright value for a label is an accessibility regression, not a
// style choice. The DS mandates this same split for the accent
// (--pp-accent = surfaces, 3:1; --pp-accent-text = links and labels, 4.5:1).
// ---------------------------------------------------------------------------
body.toplevel_page_saddle,
body.pp-scope,
.saddle-app,
.pp-app {
// Neutral ramp. No DS component reads --pp-n-* directly — all eleven are
// consumed only by the ten semantic aliases below them — so warming the
// ramp warms the entire neutral system in one place. Same lightness steps
// as the DS ramp, so nothing about the visual hierarchy moves.
--pp-n-50: #fafafa;
--pp-n-100: #fbfbfa; // Warm White -> --pp-canvas, the page ground
--pp-n-200: #efeeec;
--pp-n-300: #e7e6e4;
--pp-n-400: #d4d2cf;
--pp-n-500: #aaa8a4;
--pp-n-600: #767471; // --pp-text-muted — 4.50 on page (DS ships 4.40)
--pp-n-700: #64625d; // --pp-text-secondary — 5.88 on page
--pp-n-800: #444341;
--pp-n-900: #292928;
--pp-n-950: #111111; // Near Black -> --pp-text, 18.24 on page
// Cards stay pure white against the warm page, a 1.04:1 step, so the
// hairline border carries the separation rather than a tonal shift.
--pp-surface: #ffffff;
// Accent. --pp-accent paints surfaces and needs 3:1; --pp-accent-text
// paints links and labels and needs 4.5:1 measured against the TINT, not
// just white.
//
// The brand colour is 3.31:1 on white: comfortably enough to be SEEN, not
// enough to be READ. So it is the fill everywhere a fill belongs — dots,
// the focus ring, the active nav row, bar fills — and the darker step of
// the same hue carries every label. The violet this replaced cleared both
// at 5.84, which made the two tokens nearly interchangeable and hid how
// load-bearing the split is; here it is doing real work.
--pp-accent: #da5cc7; // the brand colour, exactly as given
--pp-accent-hover: #a82595;
--pp-accent-text: #bd2ba7; // 4.99 on the page, 4.80 on the tint
--pp-accent-tint: #fdf4fc;
--pp-accent-muted: rgba( 218, 92, 199, 0.12 );
--pp-on-accent: #ffffff;
// Primary buttons. The DS guide reserves these for near-black and says the
// accent is for links and nav only; Saddle deviates deliberately (Fahim,
// 2026-08-25 — see DESIGN-ALIGNMENT.md). They take the readable step, not
// the brand colour itself: white on #da5cc7 is 3.31:1, which is a button
// label people cannot read. White on this is 5.16.
--pp-action: #bd2ba7;
--pp-action-hover: #a82595;
--pp-on-action: #ffffff;
// --pp-focus is NOT part of the accent contract: it is a separate literal
// in ui.css that no accent file touches, which is why Saddle shipped a
// monochrome accent with a WordPress-blue focus ring until #153. A ring is
// a mark, so it takes the brand colour.
--pp-focus: #da5cc7;
// Status. These paint MARKS — status dots, rings, small fills — so each has
// to clear 3:1 on a white card to be seen at all. The brand palette's lime
// (#84cc16) and cyan (#06b6d4) are the -500 step of their ramps and sit at
// 1.98:1 and 2.43:1 on white: invisible as a dot, and far worse than what
// the DS ships. Each is moved one step down its own ramp, so the family and
// the hue are the brand's but the mark can actually be seen. Coral is
// already at 3.67:1 and is used exactly as given. Labels never use these —
// they use the -text partners at the tone layer below.
--pp-success: #65a30d; // Lime, one step down — 3.09 on white
--pp-success-bg: #f7fee7;
--pp-info: #0891b2; // Cyan, one step down — 3.68 on white
--pp-info-bg: #ecfeff;
--pp-warning: #d97706; // Amber — 3.19 on white
--pp-warning-bg: #fffbeb;
--pp-danger: #f43f5e; // Coral, exactly as given — 3.67 on white
--pp-danger-hover: #be123c;
--pp-danger-bg: #fff1f2;
// Geometry. Tighter than the DS ships, to sit closer to wp-admin's own
// square-ish register — core buttons are 3px and its boxes are 0-4px —
// while staying a hair softer than core so it still reads as modern.
// The pill is untouched: badges, dots and status chips stay fully round.
--pp-r-sm: 3px;
--pp-r: 4px;
--pp-r-lg: 6px;
// Flatter surfaces. wp-admin draws structure with hairlines, not elevation,
// so cards lean on the border and keep shadow for things that genuinely
// float. Overlays (dialogs, menus, toasts) keep the DS's own md/lg shadows.
--pp-shadow-xs: none;
--pp-shadow-sm: 0 1px 2px rgba( 17, 17, 17, 0.04 );
}
// The DS derives --pp-tone-text from --pp-tone for the status tones, so a
// bright --pp-success would mean lime badge TEXT at 1.9:1. Put the readable
// partner back at the tone layer — the same seam the accent tone already uses
// (--pp-tone-text: var( --pp-accent-text )). All four clear AA on their own
// tint: 4.82 / 5.15 / 4.84 / 5.72.
.pp-tone--success {
--pp-tone-text: #4d7c0f;
}
.pp-tone--info {
--pp-tone-text: #0e7490;
}
.pp-tone--warning {
--pp-tone-text: #b45309;
}
.pp-tone--danger {
--pp-tone-text: #be123c;
}
// Code panels read --pp-code-bg from --pp-action, but hard-code their border,
// muted and body colors — so an accent-coloured action token would leave 35
// CodeBlock / Snippet instances on that ground with muted text far below AA.
// Pin the ground
// back to near-black: code blocks look exactly as they did, and stop being
// coupled to the button color. Upstream fix belongs in plugpress-ui.
.pp-code--dark {
--pp-code-bg: var( --s-code-bg );
}
// Every --s-* token aliases a shared design-system --pp-* token, so Saddle's
// whole stylesheet rides the palette above. The old s-palette-light/dark mixins
// and saddle-theme-* classes are retired.
//
// Requires the page body to carry .pp-scope and .saddle-app to carry .pp-app
// (both are applied) so the --pp-* tokens resolve here.
body.toplevel_page_saddle,
.saddle-app {
// Neutrals + status — resolve straight to the shared tokens.
--s-canvas: var( --pp-canvas );
--s-bg: var( --pp-surface );
--s-fg: var( --pp-text );
--s-fg-muted: var( --pp-text-secondary );
--s-fg-subtle: var( --pp-text-muted );
--s-border: var( --pp-border );
--s-border-strong: var( --pp-border-strong );
--s-surface-2: var( --pp-surface-alt );
--s-surface-3: var( --pp-surface-hover );
--s-action: var( --pp-action );
--s-on-action: var( --pp-on-action );
--s-accent: var( --pp-accent );
--s-accent-text: var( --pp-accent-text );
// Status, in fill/text pairs. Reach for -text whenever the color lands on
// a label, and for the plain token whenever it fills a shape.
--s-safe: var( --pp-success );
--s-safe-bg: var( --pp-success-bg );
--s-safe-text: #4d7c0f;
--s-active: var( --pp-warning );
--s-active-bg: var( --pp-warning-bg );
--s-active-text: #b45309;
--s-danger: var( --pp-danger );
--s-danger-text: #be123c;
// Thin elements are the exception to "bright fills": a 2px rail or a
// hairline at 1.9:1 is simply not there. The Permissions lane rails are how
// that screen is scanned, so they take the readable step.
--s-rail-safe: var( --s-safe-text );
--s-rail-change: var( --pp-accent );
--s-rail-remove: var( --s-active-text );
--s-focus: var( --pp-focus );
// Code panels stay dark by design, and are deliberately NOT the action
// color — see the .pp-code--dark rule above.
--s-code-bg: #171717;
--s-shadow-sm: var( --pp-shadow-sm );
--s-shadow-md: var( --pp-shadow-md );
}
// ---------- App shell: Saddle owns its canvas on this screen ----------
// Scoped to the page body class, so nothing leaks to the rest of wp-admin.
body.toplevel_page_saddle {
#wpcontent {
padding-inline-start: 0;
background: var(--s-canvas);
}
#wpbody-content {
padding-bottom: 0;
background: var(--s-canvas);
min-height: calc( 100vh - var( --wp-admin--admin-bar--height, 32px ) );
box-sizing: border-box;
}
.wrap {
margin: 0;
}
// The app provides its own quiet ending; wp-admin's footer breaks the calm.
#wpfooter {
display: none;
}
}
// The skip link needs no override here: @plugpress/ui v0.11.3 hides it by
// clipping rather than by a percentage transform, which is what made it show
// up over wp-admin's admin bar. Fixed at source — see saddle#74.
.saddle-app {
--s-radius: var( --pp-r );
--s-radius-lg: var( --pp-r-lg );
--s-radius-pill: var( --pp-r-pill );
--s-ease: cubic-bezier( 0.4, 0, 0.2, 1 );
--s-dur: 160ms;
box-sizing: border-box;
// The DS AppShell owns the layout: sticky rail + centered AppContent
// column. This wrapper only carries tokens and typography.
color: var(--s-fg);
-webkit-font-smoothing: antialiased;
&--loading {
display: flex;
justify-content: center;
padding: 120px 0;
}
// Onboarding is a separate return branch (no shell) — same 960 column as
// the app pages so finishing setup doesn't jump widths; the step content
// keeps a 640px centered reading measure (mirrors .saddle-wizard__step).
&--setup {
max-width: 960px;
margin: 0 auto;
padding: 28px 24px 72px;
.saddle-setup__body {
max-width: 640px;
margin-inline: auto;
}
}
button:focus-visible,
[role='radio']:focus-visible,
a:focus-visible {
outline: 2px solid var(--s-focus);
outline-offset: 2px;
box-shadow: none;
}
button {
touch-action: manipulation;
}
// wp-admin hardcodes heading and link colors for a light admin; inside
// the app they follow the theme tokens instead.
h1,
h2,
h3,
h4 {
color: inherit;
}
a:not( [class] ) {
color: var(--s-focus);
}
}
/* ---------- Foreign notices (quarantined wp-admin notices) ---------- */
// Parked in the top bar, not the content column: WordPress forces other
// plugins' notices onto every screen, and a strip above the page pushed the
// actual work down on arrival. The count stays visible so a real update or
// security warning is never silently swallowed.
.saddle-foreign {
max-width: min(520px, calc(100vw - 32px));
max-height: 60vh;
overflow-y: auto;
&__button {
display: inline-flex;
align-items: center;
gap: 6px;
height: 28px;
padding: 0 10px;
border: 1px solid var(--s-border);
border-radius: var( --s-radius-pill );
background: var(--s-bg);
color: var( --s-fg-muted );
font-size: 12px;
line-height: 1;
cursor: pointer;
svg {
width: 14px;
height: 14px;
}
&:hover {
color: var( --s-fg );
border-color: var(--s-border-strong);
}
}
&__head {
margin-bottom: 8px;
color: var( --s-fg-subtle );
font-size: 12px;
}
// Foreign notices were written for a light admin — keep them on a light
// island rather than restyling markup we don't own.
&__list {
color-scheme: light;
.notice,
div.updated,
div.error {
position: relative;
margin: 0 0 8px;
background: #fff;
color: #1e1e1e;
}
> *:last-child {
margin-bottom: 0;
}
}
}
// Right cluster of the top bar: notices sit beside the safety pill.
.saddle-topbar__right {
display: flex;
align-items: center;
gap: 10px;
}
/* ---------- Shell: DS AppShell sidebar variant ---------- */
// The rail, groups, footer pinning, and the <782px icon-rail collapse are all
// design-system behavior (.pp-shell / .pp-nav / .pp-content). Saddle only adds
// its accent-tinted active row, the safety pill, and the content rhythm.
// Refined active state: the DS already tints the icon accent; add a calm
// saddle-tinted chip so the active row reads at a glance (Waggle parity).
// The brand mark is a single `currentColor` path shared with the wp-admin menu
// icon, so it is recolored HERE rather than in the SVG — editing the file would
// break class-saddle-settings.php's `black` sentinel, which core's svg-painter
// needs to repaint the menu icon per the user's admin color scheme.
.pp-nav__brand svg {
color: var(--s-accent);
}
.saddle-app .pp-nav__item[aria-current='page'] {
background: color-mix(in srgb, var(--pp-accent) 12%, var(--pp-surface));
}
// Slim sticky context bar above the content column. pp-shell__main is not a
// scroll container (the document scrolls), so the bar sticks to the viewport
// below the wp-admin bar — the same offset the DS rail uses. Negative margins
// cancel pp-shell__main's padding so the bar runs edge-to-edge with a
// full-width hairline.
.saddle-topbar {
position: sticky;
top: var(--wp-admin--admin-bar--height, 32px);
z-index: var(--pp-z-sticky);
display: flex;
align-items: center;
justify-content: space-between;
gap: 16px;
height: 48px;
margin: calc(-1 * var(--pp-space-6)) calc(-1 * var(--pp-space-6))
var(--pp-space-5);
padding: 0 var(--pp-space-6);
background: var(--pp-surface-glass);
-webkit-backdrop-filter: saturate(180%) blur(8px);
backdrop-filter: saturate(180%) blur(8px);
border-bottom: 1px solid var(--s-border);
&__context {
display: flex;
align-items: center;
gap: 8px;
min-width: 0;
font-size: 13px;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
&__group,
&__sep {
color: var(--s-fg-subtle);
}
&__title {
font-weight: 600;
color: var(--s-fg);
}
}
// The safety-status pill on the topbar's right — the tone signal the old
// rail pill carried, now a button that jumps to Settings.
.saddle-status-pill {
appearance: none;
border: none;
cursor: pointer;
display: flex;
align-items: center;
flex: 0 0 auto;
gap: 7px;
padding: 5px 12px;
border-radius: var(--s-radius-pill);
font: inherit;
font-size: 12px;
font-weight: 550;
background: var(--s-surface-3);
color: var(--s-fg-muted);
&--safe {
background: var(--s-safe-bg);
color: var(--s-safe-text);
}
&--active {
background: var(--s-active-bg);
color: var(--s-active-text);
}
&--paused {
background: var(--s-surface-3);
color: var(--s-fg-subtle);
}
}
@media (max-width: 782px) {
.saddle-topbar {
padding: 0 var(--pp-space-4);
}
}
@media (max-width: 600px) {
.saddle-topbar__group,
.saddle-topbar__sep {
display: none;
}
}
// The content column stacks its direct children (notices, the page pane) with
// one rhythm. Pages keep their own internal spacing — they predate the shell.
.saddle-app .pp-content {
display: grid;
gap: var(--pp-space-5);
align-content: start;
}
// New pages built for the shell stack their cards on the same rhythm.
.saddle-integrations,
.saddle-settings,
.saddle-memory {
display: grid;
gap: var(--pp-space-5);
align-content: start;
}
/* Section switches ease in rather than snapping. */
.saddle-tabpane {
animation: saddle-step-in 0.24s var(--s-ease) both;
}
/* ---------- Onboarding ---------- */
.saddle-setup {
background: var(--s-bg);
border: 1px solid var(--s-border);
border-radius: var(--s-radius-lg);
box-shadow: var(--s-shadow-md);
padding: 28px 32px 32px;
margin-top: 24px;
&__head {
display: flex;
align-items: center;
gap: 10px;
padding-bottom: 24px;
border-bottom: 1px solid var(--s-border);
}
&__mark {
width: 30px;
height: 30px;
display: flex;
align-items: center;
justify-content: center;
background: var(--s-action);
color: var(--s-on-action);
border-radius: 8px;
font-weight: 650;
letter-spacing: -0.03em;
}
&__kicker {
font-weight: 600;
font-size: 14px;
}
&__steps {
margin-left: auto;
font-size: 13px;
color: var(--s-fg-subtle);
font-variant-numeric: tabular-nums;
}
&__body {
padding-top: 28px;
}
&__title {
margin: 0 0 12px;
font-size: 27px;
line-height: 1.2;
font-weight: 660;
letter-spacing: -0.02em;
text-wrap: balance;
}
&__lead {
margin: 0 0 24px;
font-size: 15px;
line-height: 1.6;
color: var(--s-fg-muted);
text-wrap: pretty;
}
&__actions {
display: flex;
align-items: center;
gap: 10px;
margin-top: 28px;
}
}
.saddle-promises {
margin: 0 0 8px;
padding: 0;
list-style: none;
display: flex;
flex-direction: column;
gap: 10px;
li {
position: relative;
padding-left: 28px;
font-size: 14px;
color: var(--s-fg);
&::before {
content: '';
position: absolute;
left: 0;
top: 3px;
width: 16px;
height: 16px;
border-radius: 50%;
background: var(--s-safe-bg);
box-shadow: inset 0 0 0 1.5px var(--s-safe-text);
}
&::after {
content: '✓';
position: absolute;
left: 3.5px;
top: 1px;
font-size: 11px;
font-weight: 700;
color: var(--s-safe-text);
}
}
}
/* ---------- Home ---------- */
// Hero, next-step callout, cards, and app rows come from the design system;
// only the compact activity list (no DS timeline primitive) stays ours.
// The Dashboard's lead. One sentence carrying the whole answer, so it gets the
// size and the room a heading would get — and the supporting counts get as
// little as they can while staying legible. No box: the statement is the
// content, and a card around it would be chrome competing with it.
.saddle-lede {
margin: 0 0 28px;
&__headline {
max-width: 34ch;
margin: 0;
font-size: 24px;
font-weight: 600;
line-height: 1.3;
letter-spacing: -0.02em;
color: var(--s-fg);
}
&__facts {
margin: 8px 0 0;
font-size: 13px;
line-height: 1.55;
color: var(--s-fg-subtle);
font-variant-numeric: tabular-nums;
}
}
.saddle-cards {
margin-top: 16px;
}
.saddle-card__empty {
margin: 0 0 12px;
font-size: 13px;
line-height: 1.55;
color: var(--s-fg-muted);
}
.saddle-activitylist {
list-style: none;
margin: 0 0 12px;
padding: 0;
display: flex;
flex-direction: column;
gap: 10px;
li {
display: flex;
align-items: center;
justify-content: space-between;
gap: 12px;
font-size: 14px;
}
&__summary {
min-width: 0;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
.pp-badge {
margin-right: 8px;
vertical-align: middle;
}
}
&__target {
flex: 0 0 auto;
color: var(--s-fg-subtle);
font-size: 12px;
font-variant-numeric: tabular-nums;
}
}
/* ---------- Permissions ---------- */
// Disclosures ("See everything…", "Connection details & health") ride the
// design system's Collapsible; give them breathing room above.
.saddle-perm__all,
.saddle-apps__more {
margin-top: 24px;
}
// Per-app setup guide drawer: three numbered sections with one rhythm.
.saddle-setup-guide {
display: grid;
gap: 20px;
&__app {
display: flex;
align-items: center;
gap: 10px;
font-weight: 600;
img {
width: 24px;
height: 24px;
}
}
&__step {
display: grid;
gap: 10px;
justify-items: start;
h3 {
margin: 0;
font-size: 13px;
font-weight: 640;
color: var(--s-fg);
}
p {
margin: 0;
font-size: 13px;
line-height: 1.55;
color: var(--s-fg-muted);
}
.pp-codeblock,
.pp-snippet {
width: 100%;
}
}
}
// The already-connected choice card on the wizard's pick step.
.saddle-wizard__duplicate {
margin-bottom: 20px;
}
// Quiet destructive row action (e.g. Disconnect) — link button, danger ink.
.saddle-link-danger {
color: var(--s-danger-text);
&:hover:not( :disabled ) {
color: var(--s-danger-text);
}
}
/* ---------- Guidance ---------- */
// Each guidance section is a DS Card; only the rhythm between them is ours.
.saddle-guide__block {
margin-bottom: 16px;
&:last-child {
margin-bottom: 0;
}
}
/* Readable rendering of the auto-context (vs the raw monospace view). */
.saddle-doc {
border: 1px solid var(--s-border);
border-radius: var(--s-radius);
background: var(--s-surface-2);
padding: 16px 18px;
max-height: 340px;
overflow: auto;
&__h {
margin: 18px 0 8px;
font-size: 13px;
font-weight: 640;
letter-spacing: 0.01em;
color: var(--s-fg);
&:first-child {
margin-top: 0;
}
&--sub {
font-size: 12px;
color: var(--s-fg-muted);
}
}
&__p {
margin: 0 0 8px;
font-size: 13px;
line-height: 1.6;
color: var(--s-fg-muted);
}
&__list {
margin: 0 0 10px;
padding-left: 18px;
display: flex;
flex-direction: column;
gap: 5px;
li {
font-size: 13px;
line-height: 1.55;
color: var(--s-fg-muted);
}
}
// Bare variant for drawer prose — typography only, no panel chrome.
&--bare {
border: none;
background: none;
padding: 0;
max-height: none;
overflow: visible;
}
}
/* ---------- Memory ---------- */
// Compose column — form reading measure, never card-wide at 960.
.saddle-memory__compose {
display: flex;
flex-direction: column;
gap: 12px;
align-items: flex-start;
width: 100%;
max-width: 560px;
.pp-field {
width: 100%;
}
}
.saddle-memory__empty {
margin: 0;
font-size: 13px;
color: var(--s-fg-subtle);
}
.saddle-guide__rawtoggle {
margin-top: 10px;
}
.saddle-guide__system {
margin-top: 0;
max-height: 320px;
overflow: auto;
white-space: pre-wrap;
color: var(--s-fg-muted);
}
.saddle-guide__actions {
margin-top: 12px;
}
.saddle-guide__actions--stack {
display: flex;
flex-direction: column;
gap: 12px;
align-items: flex-start;
}
/* ---------- Lanes + chips (Permissions detail) ---------- */
.saddle-lanes__hint {
margin: 10px 0 0;
font-size: 12px;
color: var(--s-fg-subtle);
}
.saddle-lanes__filter {
appearance: none;
margin-top: 12px;
width: 100%;
max-width: 320px;
padding: 7px 12px;
font: inherit;
font-size: 13px;
color: var(--s-fg);
background: var(--s-bg);
border: 1px solid var(--s-border);
border-radius: var(--s-radius-pill);
&:focus-visible {
outline: 2px solid var(--s-focus);
outline-offset: 2px;
}
}
.saddle-lanes {
margin-top: 16px;
display: grid;
grid-template-columns: repeat( 3, 1fr );
gap: 14px;
@media ( max-width: 900px ) {
grid-template-columns: 1fr;
}
}
.saddle-lane {
border: 1px solid var(--s-border);
border-radius: var(--s-radius-lg);
padding: 18px;
background: var(--s-bg);
transition: opacity var(--s-dur) var(--s-ease);
&.is-off {
opacity: 0.6;
background: var(--s-surface-2);
}
&__head {
display: flex;
justify-content: space-between;
align-items: center;
}
&__title {
margin: 0;
font-size: 14px;
font-weight: 620;
}
&__count {
font-size: 11px;
text-transform: uppercase;
letter-spacing: 0.04em;
color: var(--s-fg-subtle);
}
&__rail {
height: 2px;
border-radius: 2px;
margin: 12px 0;
background: var(--s-border);
}
// A 2px rail is a thin element: the bright status values sit at ~1.9:1 on
// white and would simply not be there. These take the readable step, which
// is what makes the three lanes scannable at a glance.
&--look.is-on &__rail {
background: var(--s-rail-safe);
}
&--change.is-on &__rail {
background: var(--s-rail-change);
}
&--remove.is-on &__rail {
background: var(--s-rail-remove);
}
}
.saddle-catgroup {
margin-top: 12px;
&__title {
display: flex;
align-items: center;
gap: 6px;
margin: 0 0 6px;
font-size: 11px;
font-weight: 620;
text-transform: uppercase;
letter-spacing: 0.04em;
color: var(--s-fg-subtle);
}
&__count {
display: inline-flex;
align-items: center;
justify-content: center;
min-width: 18px;
height: 16px;
padding: 0 5px;
font-size: 10px;
font-weight: 600;
letter-spacing: 0;
color: var(--s-fg-subtle);
background: var(--s-surface-2);
border-radius: var(--s-radius-pill);
}
}
.saddle-lane__empty {
margin: 8px 0 0;
font-size: 12px;
color: var(--s-fg-subtle);
}
.saddle-chips {
margin: 0;
display: flex;
flex-direction: column;
gap: 6px;
}
.saddle-chip {
appearance: none;
font: inherit;
color: inherit;
display: flex;
align-items: center;
justify-content: space-between;
gap: 8px;
width: 100%;
min-width: 0;
padding: 8px 10px;
border: 1px solid var(--s-border);
border-radius: 7px;
background: var(--s-bg);
cursor: pointer;