Repository navigation
Expand file tree
/
Copy pathstyle.css
More file actions
7142 lines (6589 loc) · 235 KB
/
Copy pathstyle.css
File metadata and controls
7142 lines (6589 loc) · 235 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
/* ============================================================================
* DeepLore — Styles
* ============================================================================ */
/* --- Theme-aware color variables (on :root so popups can inherit) --- */
:root {
/* Semantic colors — theme-aware where possible */
--dle-success: var(--SmartThemeQuoteColor, #4caf50);
--dle-error: color-mix(in srgb, #f44336 70%, var(--SmartThemeQuoteColor, #f44336));
--dle-warning: color-mix(in srgb, var(--SmartThemeQuoteColor, #ff9800) 70%, orange);
--dle-info: var(--SmartThemeUnderlineColor, #2196f3);
--dle-accent: color-mix(in srgb, var(--SmartThemeUnderlineColor, #9c27b0) 60%, purple); /* unslop-ignore: purple is DLE's deliberate brand accent, not an unspecified default */
--dle-border: var(--SmartThemeBorderColor, #444);
--dle-bg-surface: var(--SmartThemeBlurTintColor, #1a1a2e);
--dle-bg-2: color-mix(in srgb, var(--SmartThemeBlurTintColor, #1a1a2e) 80%, var(--SmartThemeBodyColor, #fff));
--dle-bg-hover: color-mix(in srgb, var(--SmartThemeBodyColor, #fff) 8%, transparent);
--dle-text-muted: var(--SmartThemeEmColor, #aaa);
/* f057: single high-contrast keyboard-focus token. Previously the focus ring was
hardcoded three different ways (success/green, accent/purple, raw QuoteColor) across
~35 :focus-visible rules with no contrast floor — a WCAG 2.4.7/2.4.11 hazard when the
user's theme color sits near their panel. Mix toward body color so the ring stays
visible against both the element fill and the surrounding surface in dark AND light.
Paired with --dle-focus-halo for a contrast-insurance second ring on the main blocks. */
--dle-focus: color-mix(in srgb, var(--SmartThemeUnderlineColor, #4c8dff) 65%, var(--SmartThemeBodyColor, #fff));
--dle-focus-halo: color-mix(in srgb, var(--dle-focus) 35%, transparent);
/* f058: text-safe foreground variants of the semantic palette. The base tokens above
are tuned for fills/borders/tints (orange/green) and fail WCAG AA as foreground text
on light themes (~2:1). These mix toward body color so they darken on light themes and
lighten on dark — mirrors the proven --dle-guide-fg split. Use for `color:` text;
keep the base tokens for background:/border:. */
--dle-success-fg: color-mix(in srgb, var(--dle-success) 65%, var(--SmartThemeBodyColor, #fff));
--dle-error-fg: color-mix(in srgb, var(--dle-error) 70%, var(--SmartThemeBodyColor, #fff));
--dle-warning-fg: color-mix(in srgb, var(--dle-warning) 65%, var(--SmartThemeBodyColor, #fff));
--dle-info-fg: color-mix(in srgb, var(--dle-info) 70%, var(--SmartThemeBodyColor, #fff));
--dle-accent-fg: color-mix(in srgb, var(--dle-accent) 70%, var(--SmartThemeBodyColor, #fff));
/* f060/f062: category identity hues promoted to named tokens so the graph tooltip
badges, browse temperature cues, and legend share one palette instead of each baking
its own hex. Fallbacks stay close to the prior inline values. */
--dle-cat-constant: var(--SmartThemeQuoteColor, #d4a847);
--dle-cat-seed: var(--SmartThemeUnderlineColor, #4c8dff);
--dle-cat-bootstrap: #9c6ade;
--dle-cat-error: var(--dle-error);
--dle-cat-warning: var(--dle-warning);
--dle-cat-pinned: var(--dle-info);
/* Wave A: previously-phantom surface/text tokens (consumed but never declared).
Theme-derived so light ST themes don't get a black island / wrong contrast.
On dark themes these resolve close to the prior inline fallbacks. */
--dle-bg-1: color-mix(in srgb, var(--SmartThemeBodyColor, #000) 12%, transparent);
--dle-bg-3: color-mix(in srgb, var(--SmartThemeBodyColor, #fff) 14%, transparent);
--dle-text: var(--SmartThemeBodyColor, #ddd);
/* f061: text drawn ON a filled semantic color. Previously --dle-on-accent was just the
body TEXT color, so on a LIGHT theme it became dark text on a saturated mid-tone accent
fill with no guaranteed contrast. DLE's accent/success/error fills are all saturated
mid-to-dark tones, so a near-white foreground is the contrast-safe pairing regardless
of theme. Shared so the scattered on-fill sites (accent button, librarian/error badges)
stop disagreeing (was: body-color vs raw SmartThemeBodyColor vs hardcoded #fff). The
small text-shadow keeps the glyph legible if a user's fill lands unusually light. */
--dle-on-accent: #fff;
/* f061 follow-up: --dle-success is a RAW passthrough of --SmartThemeQuoteColor (unlike
--dle-error/--dle-accent, which color-mix toward dark anchors), so it's often a pale
mid-tone on light themes — #fff text on it is unreadable (the pre-f061 code used
SmartThemeBodyColor here, which was contrast-correct). Track body color so the badge
text darkens on light themes and lightens on dark, restoring contrast on both. */
--dle-on-success: var(--SmartThemeBodyColor, #fff);
--dle-on-error: #fff;
/* BUG-215: brand accents — derived from theme so light themes don't kill
contrast. Fallbacks match the prior hardcoded values. */
--dle-guide-fg: color-mix(in srgb, var(--SmartThemeUnderlineColor, #b89cff) 75%, var(--SmartThemeBodyColor, #fff));
--dle-guide-bg: color-mix(in srgb, var(--SmartThemeUnderlineColor, #b89cff) 18%, transparent);
--dle-guide-border: color-mix(in srgb, var(--SmartThemeUnderlineColor, #b89cff) 40%, transparent);
--dle-librarian-accent: color-mix(in srgb, var(--SmartThemeQuoteColor, #d4a847) 70%, var(--SmartThemeBodyColor, #fff));
--dle-librarian-tint: var(--SmartThemeQuoteColor, #b8860b);
/* Type scale (minor third 1.2 ratio)
BUG-213: bumped `--dle-text-xs` from 0.7em to 0.78em so at ST's default 14px
base it renders ~10.9px → ~11px, above the old 9.8px floor. Still compact but
closer to WCAG 1.4.4 practical minimum.
Settings-overhaul: re-anchored from em to calc(--mainFontSize × ratio) at the
SAME ratios. em resolved against each element's inherited size, so nested
small/.dle-text-sm contexts silently compounded (0.85 × 0.85 = 0.72 …); calc
against the root var yields ONE fixed size per token everywhere while still
tracking ST's font-scale slider (rem would not — ST sizes body, not html). */
--dle-text-xs: calc(var(--mainFontSize, 15px) * 0.78);
--dle-text-sm: calc(var(--mainFontSize, 15px) * 0.85);
--dle-text-base: var(--mainFontSize, 15px);
--dle-text-lg: calc(var(--mainFontSize, 15px) * 1.1);
--dle-text-xl: calc(var(--mainFontSize, 15px) * 1.25);
/* f068: single ST-aware monospace stack + code size token so every
code/command/tool-output surface shares one face and one size instead
of three drifting fallback stacks (bare `monospace`, full, and short). */
--dle-font-mono: var(--monoFontFamily, ui-monospace, SFMono-Regular, Menlo, Consolas, monospace);
--dle-text-code: var(--dle-text-sm);
/* Spacing scale */
--dle-space-1: 4px;
--dle-space-2: 8px;
--dle-space-3: 12px;
--dle-space-4: 16px;
--dle-space-5: 24px;
/* Border radius scale */
--dle-radius-sm: 3px;
--dle-radius-md: 6px;
--dle-radius-lg: 10px;
--dle-radius-pill: 9999px;
/* Shadow / elevation */
--dle-shadow-sm: 0 1px 3px var(--SmartThemeShadowColor, rgba(0, 0, 0, 0.2));
--dle-shadow-md: 0 2px 8px var(--SmartThemeShadowColor, rgba(0, 0, 0, 0.3));
--dle-shadow-lg: 0 4px 24px var(--SmartThemeShadowColor, rgba(0, 0, 0, 0.4));
/* Opacity scale */
--dle-opacity-muted: 0.65;
--dle-opacity-faint: 0.45;
--dle-opacity-ghost: 0.25;
--dle-opacity-disabled: 0.4;
/* Transition-timing axis. Durations previously sprawled
100/120/150/200/250/300ms with no shared scale; v2.6 migrated the bulk
of transition/animation shorthands onto these three tokens so the whole
extension's motion tempo retunes from here.
Curve convention: incoming/reveal + hover feedback use `--dle-ease-out`
(strong decelerate); outgoing/dismiss motion uses `--dle-ease` (expo). */
--dle-dur-fast: 120ms;
--dle-dur-base: 200ms;
--dle-dur-slow: var(--animation-duration-slow, 320ms);
--dle-ease: cubic-bezier(0.32, 0.72, 0, 1);
--dle-ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}
/* --- Utility classes --- */
.dle-settings .dle-header-badge {
font-size: 0.75em;
color: var(--dle-text-muted);
margin-left: 8px;
}
.dle-stub-status { margin: 6px 0; font-size: var(--dle-text-sm); opacity: 0.7; }
.dle-open-settings-btn { margin-top: 8px; }
.dle-settings .dle-text-sm {
font-size: var(--dle-text-sm);
}
.dle-settings .dle-muted {
color: var(--dle-text-muted);
}
/* f007: single source of truth for section descriptions across BOTH surfaces —
the drawer stub (.dle-settings) and the real tabbed popup (.dle-settings-panel,
which holds every actual description). One font-size, one margin pair on the
token grid, and a muted COLOR (never opacity) so embedded <code>/<a> inside the
description keep their own full-strength color. Zone tiers vary only
--desc-emphasis (a mix toward the panel background), so lower tiers dim the
description text without fading its inline links/code. Replaces the old
duplicate .dle-settings-panel rule that used opacity:0.6 (which faded links). */
.dle-settings .dle-section-desc,
.dle-settings-panel .dle-section-desc {
--desc-emphasis: 0%;
font-size: var(--dle-text-sm);
color: color-mix(in srgb, var(--dle-text-muted), var(--dle-bg-surface) var(--desc-emphasis));
margin: var(--dle-space-1) 0 var(--dle-space-2);
}
.dle-settings-subsection-label {
font-size: var(--dle-text-sm);
font-weight: 700;
text-transform: uppercase;
letter-spacing: 0.5px;
opacity: 0.6;
margin: 8px 0 4px;
padding-bottom: 3px;
border-bottom: 1px solid color-mix(in srgb, var(--SmartThemeBorderColor) 50%, transparent);
}
/* --- Status indicators --- */
.dle-settings .dle-status {
display: inline-block;
margin-left: 10px;
font-size: var(--dle-text-sm);
}
.dle-settings .dle-status.success {
color: var(--dle-success);
}
.dle-settings .dle-status.success::before {
content: '\2713 ';
}
.dle-settings .dle-status.failure {
color: var(--dle-error);
}
.dle-settings .dle-status.failure::before {
content: '\2717 ';
}
/* Prompts tab uses a data-tone convention (ok|warn|info|err) for the status
line and the per-row badges. Map it onto the same colour + glyph language as
the .success/.failure class API above so the two status systems read
identically across the settings popup. `ok`/`err` mirror success/failure;
`warn` and `info` add the missing middle tones. */
.dle-settings .dle-status[data-tone="ok"] {
color: var(--dle-success);
}
.dle-settings .dle-status[data-tone="ok"]::before {
content: '\2713 ';
}
.dle-settings .dle-status[data-tone="err"] {
color: var(--dle-error);
}
.dle-settings .dle-status[data-tone="err"]::before {
content: '\2717 ';
}
.dle-settings .dle-status[data-tone="warn"] {
color: var(--dle-warning-fg);
}
.dle-settings .dle-status[data-tone="warn"]::before {
content: '\26A0 ';
}
.dle-settings .dle-status[data-tone="info"] {
color: var(--dle-text-muted);
}
.dle-settings .dle-status[data-tone="info"]::before {
content: '\24D8 ';
}
/* Prompts grid table — give it the card aesthetic the rest of the settings
popup uses instead of relying on inline style attributes. Zebra rows, a
weighted header, consistent cell padding. */
.dle-settings .dle-prompts-grid-table {
width: 100%;
border-collapse: collapse;
font-size: var(--dle-text-sm);
}
.dle-settings .dle-prompts-grid-table thead th {
font-weight: 700;
padding: 4px 8px;
border-bottom: 1px solid var(--dle-border);
color: var(--dle-text-muted);
}
.dle-settings .dle-prompts-grid-table tbody td {
padding: 4px 8px;
vertical-align: middle;
}
.dle-settings .dle-prompts-grid-table tbody tr:nth-child(even) {
background: color-mix(in srgb, var(--SmartThemeBorderColor) 12%, transparent);
}
.dle-settings .dle-prompts-grid-table th,
.dle-settings .dle-prompts-grid-table td { text-align: left; }
.dle-settings .dle-prompts-grid-table .dle-col-actions { text-align: right; }
.dle-settings .dle-prompts-grid-section { margin-top: var(--dle-space-2); }
.dle-prompt-row-error { margin-left: var(--dle-space-1); color: var(--dle-error); }
/* BUG-161: `.dle-settings .dle-ai-stats` removed — dead rule, `.dle-ai-stats`
only exists in drawer.html, never rendered inside `.dle-settings`. Drawer
definition at the bottom of this file is now the sole source. */
/* --- Advanced toggle --- */
.dle-settings .dle-advanced-toggle {
cursor: pointer;
color: var(--dle-accent);
font-size: var(--dle-text-sm);
font-weight: 500;
margin: 6px 0;
user-select: none;
display: flex;
align-items: center;
gap: var(--dle-space-1);
}
.dle-settings .dle-advanced-toggle:hover {
color: var(--SmartThemeBodyColor, #eee);
text-decoration: underline;
}
.dle-settings .dle-advanced-icon {
font-size: 0.8em;
margin-right: 4px;
}
/* --- Vault row --- */
.dle-settings .dle-vault-row {
border: 1px solid var(--dle-border);
border-radius: var(--dle-radius-md);
padding: 8px;
margin-bottom: 6px;
transition: background var(--dle-dur-fast, 120ms) var(--dle-ease-out, ease-out);
}
.dle-settings .dle-vault-row:hover {
background: var(--dle-bg-hover);
}
.dle-settings .dle-vault-remove {
color: var(--dle-error);
}
/* --- Disabled button class (for div-based buttons) --- */
.dle-settings .menu_button.disabled {
/* BUG-173: was 0.4 via --dle-opacity-disabled; ST uses 0.5. Match ST for visual consistency. */
opacity: 0.5;
pointer-events: none;
}
/* --- Diagnostics export button: ~20% larger to match its prominence --- */
#dle-sp-export-diagnostics {
font-size: 1.2em;
padding: 7px 14px;
}
#dle-sp-export-diagnostics i {
font-size: 1.1em;
}
/* --- Focus-visible styles (accessibility) --- */
.dle-settings button:focus-visible,
.dle-settings input:focus-visible,
.dle-settings select:focus-visible,
.dle-settings textarea:focus-visible,
.dle-settings .menu_button:focus-visible,
.dle-settings [tabindex="0"]:focus-visible {
outline: 2px solid var(--dle-focus);
outline-offset: 2px;
box-shadow: 0 0 0 4px var(--dle-focus-halo);
}
/* --- Focus-visible styles (drawer + popup) --- */
#deeplore-drawer button:focus-visible,
#deeplore-drawer input:focus-visible,
#deeplore-drawer select:focus-visible,
#deeplore-drawer a:focus-visible,
#deeplore-drawer [tabindex="0"]:focus-visible,
.dle-settings-popup button:focus-visible,
.dle-settings-popup input:focus-visible,
.dle-settings-popup select:focus-visible,
.dle-settings-popup [tabindex="0"]:focus-visible,
.dle-popup button:focus-visible,
.dle-popup input:focus-visible,
.dle-popup select:focus-visible,
.dle-popup textarea:focus-visible,
.dle-popup [tabindex="0"]:focus-visible,
.dle-graph-legend-item:focus-visible,
.dle-browse-nav-btn:focus-visible,
.dle-carto-browse-btn:focus-visible {
outline: 2px solid var(--dle-focus);
outline-offset: 2px;
box-shadow: 0 0 0 4px var(--dle-focus-halo);
}
/* --- Reduced motion support --- */
@media (prefers-reduced-motion: reduce) {
.dle-settings,
.dle-settings *,
#deeplore-drawer,
#deeplore-drawer *,
.dle-settings-popup,
.dle-settings-popup *,
.dle-popup,
.dle-popup * {
transition-duration: 0.01ms !important;
animation-duration: 0.01ms !important;
animation-iteration-count: 1 !important;
}
/* Explicitly disable status dot animation. (B1: the header token/entries-bar hazard
classes that used to be listed here were removed — those bars no longer animate.
The footer context-critical state uses a static glow only, so nothing to disable.) */
.dle-status-dot.dle-status-active {
animation: none !important;
}
.dle-shimmer { animation: none; opacity: 0.6; }
/* f091: skeleton stays a static neutral block (no shimmer, no opacity penalty) so it
still reads as "reserved, loading" rather than dim/error under reduced motion. */
.dle-skeleton {
animation: none !important;
background: color-mix(in srgb, var(--SmartThemeBorderColor) 22%, transparent);
}
/* #20: explicit motion-kill list (idempotent with the shimmer/skeleton kills above
and the wildcard duration clamp; named so the intent is unambiguous). */
.dle-shimmer, .dle-skeleton, .dle-indexing-shimmer,
.dle-entries-bar-container.dle-indexing-shimmer, .dle-stat-refreshing::after,
.dle-lib-status-thinking::after, .dle-pulse, .dle-pulse-attention, .dle-wizard-pulse,
.dle-librarian-badge.dle-visible, .dle-skip-tools-pulse,
.dle-status-dot.dle-status-changed, .dle-why-entry.dle-why-new { animation: none !important; }
.dle-shimmer { opacity: 0.6; }
.dle-skeleton { background: color-mix(in srgb, var(--SmartThemeBorderColor) 22%, transparent); }
.dle-indexing-shimmer, .dle-entries-bar-container.dle-indexing-shimmer { background-position: 0 0; }
/* BUG-202: drop backdrop-filter when user requested reduced motion */
#deeplore-panel.dle-overlay-mode {
backdrop-filter: none !important;
}
/* Wave G: explicit kill for the new tab-panel fade (the wildcard above already
clamps its duration; this makes the intent unambiguous). The :active press
feedback is an instantaneous state change, not timed motion, so it is left
intact under reduced motion by design. NOTE: this block is the canonical
motion-kill for the .dle-settings / #deeplore-drawer / .dle-popup subtrees;
the only DLE motion living OUTSIDE them is #dle-pipeline-status (in #form_sheld),
which carries its own reduced-motion block near its definition. */
.dle-tab-panel.active { animation: none !important; }
}
/* #21: stepped working-pulse — placed AFTER the #20 kill block so the wildcard
iteration-count:1 clamp doesn't neuter the deliberate reduced-motion heartbeat. */
@media (prefers-reduced-motion: reduce) {
.dle-status-dot.dle-status-active goo-spinner[data-motion-state="reduced"] {
animation: dle-rm-working-pulse 2s steps(2, jump-none) infinite;
}
}
@keyframes dle-rm-working-pulse { 0%{opacity:.55} 50%{opacity:1} 100%{opacity:.55} }
/* --- Section spacing between settings groups --- */
.dle-settings .inline-drawer-content > hr {
margin: 10px 0;
}
/* ============================================================================
* Popup Component Classes (Item 12)
* Reusable classes for popup content — available globally since vars are on :root
* ============================================================================ */
/* (type scale and spacing tokens consolidated into :root above) */
/* --- Connection Guidance Popup --- */
.dle-connection-guidance { line-height: 1.6; }
.dle-connection-guidance ol { padding-left: 1.5em; margin: var(--dle-space-2) 0; }
.dle-connection-guidance li { margin-bottom: var(--dle-space-1); }
.dle-guidance-option {
background: color-mix(in srgb, var(--SmartThemeQuoteColor, #2a4a6b) 10%, transparent);
border-radius: var(--dle-radius-md);
padding: var(--dle-space-3);
margin: var(--dle-space-3) 0;
}
.dle-guidance-option h4 {
margin: 0 0 var(--dle-space-2) 0;
font-size: var(--dle-text-lg);
}
.dle-guidance-option code {
background: color-mix(in srgb, var(--SmartThemeQuoteColor, #2a4a6b) 20%, transparent);
padding: 1px 4px;
border-radius: 3px;
}
/* --- Phase 4: Drawer UX additions --- */
/* Why? tab: rejection group sub-headers */
.dle-why-not-group-header {
display: flex; align-items: center; gap: var(--dle-space-2);
padding: var(--dle-space-1) var(--dle-space-2);
font-size: var(--dle-text-sm); font-weight: 600;
color: var(--dle-text-muted); border-top: 1px solid var(--dle-border);
margin-top: var(--dle-space-2);
}
.dle-why-not-group-header:first-child { border-top: none; margin-top: 0; }
.dle-why-not-group-count {
margin-left: auto; font-size: var(--dle-text-xs);
background: var(--dle-bg-2); border-radius: 8px; padding: 0 6px;
}
.dle-why-not-grouped { padding-left: var(--dle-space-4); }
/* Browse tab: active filter indicator */
.dle-filter-active {
/* BUG-175: dropped !important — was stomping the green injected-entry left border
on rows that were both filter-active and injected. Box-shadow ring is enough
signal on its own for filter-active state. */
border-color: var(--SmartThemeQuoteColor);
box-shadow: 0 0 0 1px var(--SmartThemeQuoteColor);
}
/* Why? tab: collapsible entry timers section */
.dle-why-timers-section {
border-top: 1px solid var(--dle-border);
margin-top: var(--dle-space-2);
padding-top: var(--dle-space-1);
}
.dle-why-timers-toggle {
cursor: pointer; user-select: none;
font-size: var(--dle-text-sm); color: var(--dle-text-muted);
padding: var(--dle-space-1) var(--dle-space-2);
}
.dle-why-timers-toggle i { margin-right: var(--dle-space-1); }
/* BUG-193: `<summary>` is natively keyboard-focusable — just add a focus ring. */
.dle-why-timers-toggle:focus-visible {
outline: 2px solid var(--dle-focus);
outline-offset: 2px;
border-radius: var(--dle-radius-sm);
}
/* Status mascot SVG sizing inside dot */
.dle-status-dot svg { display: block; }
/* --- Phase 9: Performance Perception --- */
/* Cold start shimmer animation */
@keyframes dle-shimmer {
0% { opacity: 0.4; }
50% { opacity: 1; }
100% { opacity: 0.4; }
}
.dle-shimmer { animation: dle-shimmer 1.5s ease-in-out infinite; color: var(--dle-text-muted); }
/* f091: content-shaped skeleton primitive. Reserves the eventual content's footprint
so the real number doesn't reflow the tile on first paint, and sweeps a neutral
gradient (reusing the dle-indexing-shimmer keyframe defined later in this file)
so the empty state reads as "reserved, loading" rather than a dim "…/error". */
.dle-skeleton {
display: inline-block;
vertical-align: middle;
height: 0.9em;
width: 2.2em;
border-radius: var(--dle-radius-sm, 3px);
background: linear-gradient(90deg,
color-mix(in srgb, var(--SmartThemeBorderColor) 22%, transparent) 25%,
color-mix(in srgb, var(--dle-accent) 24%, transparent) 50%,
color-mix(in srgb, var(--SmartThemeBorderColor) 22%, transparent) 75%) center / 200% auto;
animation: dle-indexing-shimmer 1.4s linear infinite;
}
/* --- Semantic color classes ---
f058: these are foreground TEXT, so they use the contrast-safe -fg variants (which mix
toward body color) instead of the raw fill tokens, which fail WCAG AA as text on light
themes. Base tokens remain for fills/borders elsewhere. */
.dle-success { color: var(--dle-success-fg); }
.dle-error { color: var(--dle-error-fg); }
.dle-warning { color: var(--dle-warning-fg); }
.dle-info { color: var(--dle-info-fg); }
.dle-accent { color: var(--dle-accent-fg); }
/* --- Connection card (visual grouping for repeated connection config blocks) --- */
.dle-connection-card {
border: 1px solid var(--dle-border);
border-radius: var(--dle-radius-md);
padding: var(--dle-space-2) var(--dle-space-3);
margin: var(--dle-space-2) 0;
}
.dle-connection-card-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: var(--dle-space-1);
}
.dle-connection-card .dle-copy-ai-btn {
font-size: var(--dle-text-xs);
cursor: pointer;
opacity: 0.7;
transition: opacity var(--dle-dur-fast, 120ms) var(--dle-ease-out, ease-out);
}
.dle-connection-card .dle-copy-ai-btn:hover {
opacity: 1;
}
/* --- Card container --- */
.dle-card {
border: 1px solid var(--dle-border);
border-radius: var(--dle-radius-md);
padding: var(--dle-space-1) var(--dle-space-2);
margin-bottom: 4px;
}
/* --- Card header (clickable flex row) --- */
.dle-card-header {
display: flex;
justify-content: space-between;
align-items: center;
cursor: pointer;
}
/* BUG-186: focus ring for keyboard users */
.dle-card-header:focus-visible {
outline: 2px solid var(--dle-focus);
outline-offset: 2px;
}
/* --- Content preview block --- */
.dle-preview {
white-space: pre-wrap;
font-size: var(--dle-text-sm);
max-height: 300px;
overflow-y: auto;
background: var(--dle-bg-surface);
padding: var(--dle-space-2);
border-radius: var(--dle-radius-md);
}
.dle-preview--short { max-height: 200px; }
.dle-preview--tall { max-height: 400px; }
/* --- AI Notebook: hide <dle-notes> in chat during streaming (extracted on generation end) --- */
dle-notes { display: none !important; }
/* --- Muted text variants --- */
.dle-muted { opacity: var(--dle-opacity-muted); }
.dle-faint { opacity: var(--dle-opacity-faint); }
.dle-ghost { opacity: var(--dle-opacity-ghost); }
/* --- Text size utilities --- */
.dle-text-xs { font-size: var(--dle-text-xs); }
.dle-text-sm { font-size: var(--dle-text-sm); }
.dle-text-lg { font-size: var(--dle-text-lg); }
.dle-text-xl { font-size: var(--dle-text-xl); }
/* --- Badge --- */
.dle-badge {
font-size: 0.8em;
font-weight: bold;
}
/* --- Popup root (left-aligned) --- */
.dle-popup {
text-align: left;
}
/* .dle-popup--mono removed — all popups use inherited/theme font */
/* --- Scrollable list region --- */
.dle-scroll-region {
max-height: 60vh;
overflow-y: auto;
}
/* --- Data table --- */
.dle-table {
width: 100%;
border-collapse: collapse;
font-size: 0.9em;
}
.dle-table th,
.dle-table td {
padding: var(--dle-space-1);
}
.dle-table th {
text-align: left;
border-bottom: 1px solid var(--dle-border);
}
/* --- Token bar fill --- */
/* Note: .dle-token-bar itself is defined under .dle-token-bar-container scope (~L1035) */
.dle-token-bar-fill {
height: 100%;
border-radius: var(--dle-radius-sm);
}
/* --- Cartographer token bar (per-entry, distinct from drawer's container/fill) --- */
.dle-carto-token-bar {
height: 6px;
background: var(--dle-border);
border-radius: var(--dle-radius-sm);
overflow: hidden;
margin: 4px 0;
}
.dle-carto-token-bar-fill {
height: 100%;
border-radius: var(--dle-radius-sm);
}
/* --- Keyword highlight --- */
.dle-highlight {
background: color-mix(in srgb, var(--SmartThemeQuoteColor) 30%, transparent);
padding: 0 2px;
border-radius: var(--dle-radius-sm);
}
/* --- Disabled / dimmed states --- */
.dle-disabled {
opacity: var(--dle-opacity-disabled);
pointer-events: none;
}
.dle-dimmed { opacity: 0.5; }
/* --- Danger button --- */
.dle-danger-btn {
border-color: var(--dle-error, #f44336) !important;
color: var(--dle-error, #f44336) !important;
}
.dle-danger-btn:hover {
background: color-mix(in srgb, var(--dle-error, #f44336) 15%, transparent);
}
/* --- About tab logo --- */
.dle-about-logo {
width: 64px;
height: 64px;
margin: 0 auto 8px;
cursor: pointer;
color: var(--SmartThemeBodyColor);
opacity: 0.85;
transition: opacity var(--dle-dur-base, 200ms) var(--dle-ease-out, ease-out);
}
.dle-about-logo:hover { opacity: 1; }
.dle-about-logo svg { width: 100%; height: 100%; fill: currentColor; }
/* --- Info notices --- */
.dle-notice {
padding: 12px 16px;
margin-bottom: 12px;
border-radius: var(--dle-radius-md);
background: color-mix(in srgb, var(--SmartThemeQuoteColor, #2a4a6b) 20%, var(--SmartThemeBlurTintColor, #1a1a2e));
color: var(--SmartThemeBodyColor, #eee);
font-size: 0.95em;
line-height: 1.4;
display: flex;
align-items: center;
gap: 10px;
}
/* AI disabled overlay */
.dle-ai-content-wrap {
position: relative;
}
/* BUG-199: applying filter:blur to the wrap itself created a new stacking
context that re-scoped the .dle-overlay-notice (z-index:10) and forced
compound compositing with the notice card. Push the blur down to the
wrap's non-overlay children so the wrap stays a normal stacking context
and the overlay notice composites at the page level. */
.dle-ai-content-wrap.dle-blurred {
pointer-events: none;
user-select: none;
}
.dle-ai-content-wrap.dle-blurred > *:not(.dle-overlay-notice) {
filter: blur(3px);
opacity: 0.5;
}
.dle-ai-content-wrap.dle-blurred .dle-overlay-notice {
pointer-events: auto;
}
.dle-overlay-notice {
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
z-index: 10;
display: flex;
align-items: flex-start;
justify-content: center;
padding-top: 60px;
}
.dle-overlay-notice-card {
background: var(--SmartThemeBlurTintColor, rgba(20, 20, 35, 0.95));
border: 1px solid var(--SmartThemeBorderColor, #444);
border-radius: var(--dle-radius-md);
padding: 24px 32px;
text-align: center;
max-width: 360px;
color: var(--SmartThemeBodyColor, #ddd);
font-size: 0.95em;
line-height: 1.5;
/* BUG-204: dropped backdrop-filter — parent already has filter: blur(3px)
so the backdrop is already blurred. Double-blur was compounding GPU cost. */
box-shadow: var(--dle-shadow-lg);
}
.dle-overlay-notice-card p {
margin: 6px 0;
}
.dle-overlay-notice-card p:first-of-type {
font-size: 1.05em;
opacity: 0.7;
}
.dle-notice-link {
color: var(--SmartThemeUnderlineColor, #9c9cff);
text-decoration: underline;
cursor: pointer;
}
.dle-notice-link:hover {
opacity: 0.8;
}
@keyframes dle-pulse-glow {
0%, 100% { box-shadow: none; }
50% { box-shadow: 0 0 8px 2px var(--SmartThemeUnderlineColor, #9c9cff); }
}
.dle-pulse {
animation: dle-pulse-glow 0.6s ease-in-out 3;
}
/* --- Screen reader only (DLE-scoped to avoid FA `.sr-only` collision, BUG-171) --- */
.dle-sr-only {
position: absolute;
width: 1px;
height: 1px;
padding: 0;
margin: -1px;
overflow: hidden;
clip: rect(0, 0, 0, 0);
white-space: nowrap;
border-width: 0;
}
/* ============================================================================
* Zone Architecture (Item 13)
* Settings panel tier hierarchy — visual neighborhoods
* ============================================================================ */
/* Tier 1: Spotlight — essential setup (Enable, Quick Actions, Vaults, Tags) */
.dle-settings h4[data-zone="a"] {
font-size: var(--dle-text-lg);
}
.dle-settings h4[data-zone="a"] + .dle-section-desc,
.dle-settings-panel h4[data-zone="a"] + .dle-section-desc {
--desc-emphasis: 0%;
}
/* Tier 2: Key Light — core matching (Search Mode, Matching, Injection, Cartographer) */
.dle-settings h4[data-zone="b"] {
font-size: var(--dle-text-base);
}
.dle-settings h4[data-zone="b"] + .dle-section-desc,
.dle-settings-panel h4[data-zone="b"] + .dle-section-desc {
--desc-emphasis: 18%;
}
/* Tier 3: Ambient — AI & automation, infrastructure, reference */
.dle-settings h4[data-zone="c"],
.dle-settings h4[data-zone="d"] {
font-size: 0.95em;
}
.dle-settings h4[data-zone="c"] + .dle-section-desc,
.dle-settings h4[data-zone="d"] + .dle-section-desc,
.dle-settings-panel h4[data-zone="c"] + .dle-section-desc,
.dle-settings-panel h4[data-zone="d"] + .dle-section-desc {
--desc-emphasis: 32%;
}
/* Zone boundary separators (thicker hr between major zones) */
.dle-settings hr.dle-zone-separator {
border: none;
border-top: 2px solid var(--dle-border);
margin: var(--dle-space-5) 0 var(--dle-space-3);
opacity: 0.5;
}
/* ============================================================================
* Transitions (Item 23)
* ============================================================================ */
/* BUG-172: removed `.dle-settings .menu_button { transition: background-color 120ms ease }`.
It was clobbering ST's shorthand `transition: var(--animation-duration-2x)` which animates
`filter: grayscale()` on hover. Inherit ST's default instead. */
/* Advanced section expand/collapse */
.dle-settings .dle-advanced-section {
overflow: hidden;
transition: max-height var(--dle-dur-base, 200ms) var(--dle-ease-out, ease-out), opacity var(--dle-dur-base, 200ms) var(--dle-ease-out, ease-out);
}
/* Entry card expand in popups */
.dle-card {
transition: border-color var(--dle-dur-fast, 120ms) var(--dle-ease-out, ease-out);
}
/* --- Browse popup table --- */
.dle-browse-table {
width: 100%;
border-collapse: collapse;
font-size: var(--dle-text-base);
table-layout: fixed;
}
.dle-browse-table thead th {
font-size: var(--dle-text-sm);
color: var(--dle-text-muted);
font-weight: 500;
text-transform: uppercase;
letter-spacing: 0.3px;
padding: 4px 8px;
border-bottom: 1px solid var(--dle-border);
position: sticky;
top: 0;
background: var(--SmartThemeBlurTintColor, #1a1a1a);
z-index: 1;
}
.dle-browse-table-row {
cursor: pointer;
transition: background-color var(--dle-dur-fast, 120ms) var(--dle-ease-out, ease-out);
}
.dle-browse-table-row:hover {
background: var(--dle-bg-hover);
}
.dle-browse-table-row:focus-visible {
outline: 2px solid var(--dle-focus);
outline-offset: -2px;
}
.dle-browse-table-row td {
padding: 4px 6px;
border-bottom: 1px solid color-mix(in srgb, var(--dle-border) 40%, transparent);
font-size: var(--dle-text-base);
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.dle-browse-table-keys {
color: var(--dle-text-muted);
font-size: var(--dle-text-sm);
}
.dle-browse-table-detail {
padding: 8px 12px !important;
border-bottom: 1px solid var(--dle-border);
background: color-mix(in srgb, var(--dle-bg-hover) 50%, transparent);
}
/* Focus-visible transition */
.dle-settings [tabindex="0"] {
transition: outline-color var(--dle-dur-fast, 120ms) var(--dle-ease-out, ease-out);
}
/* ============================================================================
* Drawer Panel (Phase 0 mockup)
* ============================================================================ */
/* --- Drawer z-index: lower than native drawers so they layer on top when DLE is pinned --- */
#deeplore-panel.pinnedOpen {
z-index: 2999;
}
/* Fix for dynamically-injected drawers: @starting-style transition from height:0 → height:100%
doesn't complete reliably for elements added after page load. Use explicit calc instead. */
/* BUG-212: avoid 100vh on iOS Safari (counts URL bar, causes scroll bounce).
Use 100% as the safe fallback for ancient browsers; modern browsers use
100dvh via the @supports gate below. */
#deeplore-panel.openDrawer {
height: calc(100% - var(--topBarBlockSize, 35px));
/* Issue #39: in inline (fillRight) mode the panel isn't position:fixed, so over-scroll
at a sub-list's edge chains into ST's chat log behind it. Contain it. */
overscroll-behavior: contain;
touch-action: pan-y;
}
@supports (height: 100dvh) {
#deeplore-panel.openDrawer {
height: calc(100dvh - var(--topBarBlockSize, 35px));
}
}
/* --- Drawer controls row (pin + close, side by side) --- */
.dle-drawer-controls {
display: flex;
align-items: center;
gap: 2px;
align-self: flex-start;
}
/* --- Drawer pin (matches ST native: top-left, inline after drag grabber) --- */
.dle-drawer-pin {
align-self: flex-start;
}
.dle-drawer-pin input[type="checkbox"] {
display: none;
}
/* Show unlock when unchecked, lock when checked */
.dle-drawer-pin .checked {
display: none;
}
.dle-drawer-pin .unchecked {
display: block;
}
.dle-drawer-pin input:checked ~ label .checked {
display: block;
}
.dle-drawer-pin input:checked ~ label .unchecked {
display: none;
}
/* --- Drawer close button — inline next to lock, matches lock icon style --- */
.dle-drawer-close {
background: none;
border: none;
margin: 0;
color: var(--SmartThemeBodyColor, #ccc);
cursor: pointer;
opacity: 0.7;
transition: opacity var(--dle-dur-fast, 120ms) var(--dle-ease-out, ease-out);
padding: 8px;
font-size: inherit;
font-family: inherit;
line-height: 1;
}
.dle-drawer-close:hover {
opacity: 1;
}
.dle-drawer-close:focus-visible {
outline: 2px solid var(--dle-focus);
outline-offset: 2px;
opacity: 1;
}
.dle-drawer-settings {
background: none;
border: none;
margin: 0;
color: var(--SmartThemeBodyColor, #ccc);
cursor: pointer;
opacity: 0.5;
transition: opacity var(--dle-dur-fast, 120ms) var(--dle-ease-out, ease-out), color var(--dle-dur-fast, 120ms) var(--dle-ease-out, ease-out);