dsh-remote-vs 0.25.0 → 0.26.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (85) hide show
  1. package/README.en.md +11 -7
  2. package/README.md +10 -7
  3. package/THIRD-PARTY-NOTICES.md +188 -0
  4. package/lib/client.js +6512 -79961
  5. package/lib/index.js +1283 -992
  6. package/lib/p2-router-fs.js +1 -1
  7. package/lib/types/client/CodeEditor.d.ts +8 -0
  8. package/lib/types/client/RemoteExplorer.d.ts +53 -0
  9. package/lib/types/client/api.d.ts +37 -2
  10. package/lib/types/client/changes/review-state.d.ts +19 -0
  11. package/lib/types/client/connection.d.ts +16 -0
  12. package/lib/types/client/request-gate.d.ts +110 -0
  13. package/lib/types/client/scm/DiffView.d.ts +45 -7
  14. package/lib/types/client/scm/actions.d.ts +31 -3
  15. package/lib/types/client/store.d.ts +53 -0
  16. package/lib/types/client/vsc/FindWidget.d.ts +6 -0
  17. package/lib/types/client/vsc/change-marks.d.ts +16 -6
  18. package/lib/types/client/vsc/editor-keymap.d.ts +35 -1
  19. package/lib/types/client/vsc/kit.d.ts +11 -0
  20. package/lib/types/client/vsc/save-shortcut.d.ts +21 -0
  21. package/lib/types/client/vsc/terminal-theme.d.ts +28 -2
  22. package/lib/types/forward.d.ts +12 -0
  23. package/lib/types/fs-ops.d.ts +42 -0
  24. package/lib/types/http.d.ts +2 -0
  25. package/lib/types/keygen.d.ts +9 -0
  26. package/lib/types/monitor.d.ts +8 -0
  27. package/lib/types/notices.d.ts +16 -1
  28. package/lib/types/p2/helper-rpc.d.ts +45 -0
  29. package/lib/types/routes.d.ts +2 -0
  30. package/lib/types/store.d.ts +7 -0
  31. package/lib/types/terminal.d.ts +8 -0
  32. package/lib/types/view-settings.d.ts +5 -0
  33. package/lib/{worlds-B7gEDBzC.js → worlds-RG8K5eom.js} +113 -15
  34. package/package.json +2 -1
  35. package/src/client/CodeEditor.tsx +151 -8
  36. package/src/client/DirectoryFlow.tsx +16 -0
  37. package/src/client/DoctorPanel.tsx +70 -7
  38. package/src/client/EditorPane.tsx +63 -14
  39. package/src/client/HostsView.tsx +12 -3
  40. package/src/client/RemoteDirectoryPicker.tsx +12 -0
  41. package/src/client/RemoteExplorer.tsx +929 -40
  42. package/src/client/RemoteRoot.tsx +147 -22
  43. package/src/client/SearchView.tsx +8 -0
  44. package/src/client/TerminalSnippets.tsx +83 -8
  45. package/src/client/api.ts +106 -13
  46. package/src/client/changes/ChangesDock.tsx +188 -6
  47. package/src/client/changes/changes.css +10 -3
  48. package/src/client/changes/review-state.ts +34 -0
  49. package/src/client/connection.ts +29 -0
  50. package/src/client/downloads.ts +49 -4
  51. package/src/client/i18n.ts +82 -8
  52. package/src/client/request-gate.ts +221 -0
  53. package/src/client/scm/CommitPane.tsx +20 -2
  54. package/src/client/scm/DiffView.tsx +343 -117
  55. package/src/client/scm/HistoryPanel.tsx +23 -2
  56. package/src/client/scm/RepoPicker.tsx +1 -1
  57. package/src/client/scm/ScmPanel.tsx +391 -87
  58. package/src/client/scm/actions.ts +95 -12
  59. package/src/client/store.tsx +372 -9
  60. package/src/client/ui.tsx +4 -0
  61. package/src/client/vsc/FindWidget.tsx +24 -9
  62. package/src/client/vsc/breadcrumb.tsx +91 -3
  63. package/src/client/vsc/change-marks.ts +93 -44
  64. package/src/client/vsc/editor-keymap.ts +59 -1
  65. package/src/client/vsc/file-icons.tsx +17 -3
  66. package/src/client/vsc/kit.tsx +26 -9
  67. package/src/client/vsc/save-shortcut.ts +47 -1
  68. package/src/client/vsc/terminal-theme.ts +44 -18
  69. package/src/client/vsc/vsc.css +411 -153
  70. package/src/forward.ts +47 -9
  71. package/src/fs-ops.ts +124 -4
  72. package/src/git-ops.ts +20 -3
  73. package/src/http.ts +35 -4
  74. package/src/keygen.ts +55 -4
  75. package/src/monitor.ts +13 -0
  76. package/src/notices.ts +23 -1
  77. package/src/p2/helper-rpc.ts +113 -7
  78. package/src/p2/worlds.ts +14 -1
  79. package/src/routes.ts +212 -43
  80. package/src/sftp.ts +51 -14
  81. package/src/store.ts +10 -0
  82. package/src/terminal.ts +73 -26
  83. package/src/view-settings.ts +50 -10
  84. package/lib/types/client/Dialog.d.ts +0 -14
  85. package/src/client/Dialog.tsx +0 -76
@@ -8,7 +8,8 @@
8
8
  * (dsh-solution-explorer): 13px/20px panel type, 5px/10px tree rows with a
9
9
  * 10px radius, a 30px activity button with the badge tucked into the icon's
10
10
  * bottom-right corner, GitHub-Dark token colors, and the
11
- * `--e2b714 / #4ec9b0 / #f14c4c` modified/added/deleted triple.
11
+ * `--e2b714 / #4ec9b0 / #ff8b8b` modified/added/deleted triple (the light
12
+ * scheme gets the GitHub-Light set from the `body:not(...)` block below).
12
13
  */
13
14
 
14
15
  .rvs-root {
@@ -19,22 +20,39 @@
19
20
  --rvs-active: var(--dsw-alias-interactive-bg-active, rgba(77, 107, 254, .22));
20
21
  --rvs-border: var(--dsw-alias-border-l1, rgba(127, 127, 127, .25));
21
22
  --rvs-border2: var(--dsw-alias-border-l2, rgba(127, 127, 127, .38));
23
+ /* Region boundaries — panel header underline, activity-bar edge, diff gutter
24
+ columns, SCM sections. border-l1 is a 4%-black hairline: it composites to
25
+ 1.09–1.25:1 and reads as no line at all, so structure takes the l3 step
26
+ (1.31/1.67/1.41/1.98). Pure decoration keeps `--rvs-border`. */
27
+ --rvs-divider: var(--dsw-alias-border-l3, rgba(127, 127, 127, .32));
22
28
  --rvs-input: var(--dsw-alias-bg-input, rgba(127, 127, 127, .12));
23
29
  --rvs-overlay: var(--dsw-alias-bg-overlay, #24262e);
24
30
  --rvs-layer3: var(--dsw-alias-bg-layer-3, rgba(127, 127, 127, .16));
25
31
  --rvs-brand: var(--dsw-alias-brand-primary, #4d6bfe);
26
32
  --rvs-accent: var(--dsw-alias-button-info-fill, #4d6bfe);
27
33
  --rvs-danger: var(--dsw-alias-state-error-primary, #e05555);
28
- --rvs-ok: #2ea043;
34
+ /* The error colour as TEXT (banner copy, status read-outs). The state token
35
+ is tuned for a white plate: 4.30:1 on the panel and 3.08–3.43:1 on the
36
+ banner's own red tint, so text takes a deeper step of the same hue. */
37
+ --rvs-danger-text: #ff8b8b;
38
+ --rvs-error: var(--rvs-danger-text);
39
+ /* Dark scheme status colours. The dark leaves composite to #1b1b1c
40
+ (vanilla) / #222944 (island), where the GitHub-Dark steps measured
41
+ D 4.00, X 2.80, ok 4.24 — the light block below keeps its own (≥4.5) set. */
42
+ --rvs-ok: #3fb950;
29
43
  --rvs-git-m: #e2b714;
30
44
  --rvs-git-a: #4ec9b0;
31
- --rvs-git-d: #f14c4c;
45
+ --rvs-git-d: #ff8b8b;
32
46
  --rvs-git-r: #4ec9b0;
33
47
  --rvs-git-c: #58a6ff;
34
- --rvs-git-u: #f14c4c;
35
- --rvs-git-x: #6e6e6e;
48
+ --rvs-git-u: #ff8b8b;
49
+ --rvs-git-x: #9aa0a6;
36
50
  --rvs-add-bg: rgba(78, 201, 176, .15);
37
51
  --rvs-del-bg: rgba(241, 76, 76, .15);
52
+ /* Diff row text, kept apart from the git-* letter colours: a row sits on a
53
+ tint of its own hue, which costs ~1.1:1, so these two are a shade deeper. */
54
+ --rvs-diff-add: #146c2e;
55
+ --rvs-diff-del: #a40e26;
38
56
  /* Opaque equivalents, for elements that must not show what scrolls under
39
57
  them (the pinned diff line numbers). */
40
58
  --rvs-add-solid: #e4f6f1;
@@ -73,6 +91,8 @@ body[data-ds-dark-theme] .rvs-root {
73
91
  --rvs-code-bg: #1e1e1e;
74
92
  --rvs-code-fg: #d4d4d4;
75
93
  --rvs-code-gutter-fg: #858585;
94
+ --rvs-diff-add: #7ee2c6;
95
+ --rvs-diff-del: #ff8b8b;
76
96
  --rvs-add-solid: #16332e;
77
97
  --rvs-del-solid: #3b2325;
78
98
  --rvs-editor-panel-bg: #252526;
@@ -81,6 +101,47 @@ body[data-ds-dark-theme] .rvs-root {
81
101
  --rvs-editor-chrome-border: rgba(255, 255, 255, .12);
82
102
  }
83
103
 
104
+ /**
105
+ * Light scheme for the NON-code surfaces. The token block above is GitHub-Dark:
106
+ * on a white/cream panel its git triple reads 1.7–3.4:1, so light gets the
107
+ * GitHub-Light set (all ≥4.5:1 — measured 2026-11-23). The code surfaces are
108
+ * scheme-fixed rather than skin-fixed and are already flipped by the block
109
+ * above, so they are deliberately not repeated here.
110
+ */
111
+ body:not([data-ds-dark-theme]) .rvs-root {
112
+ --rvs-ok: #1a7f37;
113
+ --rvs-git-m: #8a5c00;
114
+ --rvs-git-a: #1a7f37;
115
+ --rvs-git-d: #cf222e;
116
+ --rvs-git-r: #1a7f37;
117
+ --rvs-git-c: #0969da;
118
+ --rvs-git-u: #cf222e;
119
+ --rvs-git-x: #57606a;
120
+ --rvs-add-bg: rgba(26, 127, 55, .10);
121
+ --rvs-del-bg: rgba(207, 34, 46, .10);
122
+ --rvs-danger-text: #a52a2a;
123
+ }
124
+
125
+ /**
126
+ * The sidebar panel gets its own base in the light schemes. Without one every
127
+ * text colour in this sheet is composited against whatever leaf the host — and,
128
+ * under a skin, the wallpaper behind it — paints under the sidebar: the skin's
129
+ * leaf is `rgba(250,247,234,.74)`, which already costs the tertiary step 0.2:1
130
+ * and drops it to 2.67:1 if a host mount paints no leaf at all.
131
+ *
132
+ * Light-only on purpose: the dark leaf is opaque and stable, and raising the
133
+ * dark panel to bg-layer-2 (#2c2c2e) would cost the python sheet icon 3.36:1 →
134
+ * 2.72:1 for no readability gain.
135
+ *
136
+ * The two other surfaces that carry `.rvs-root` paint their own base and must
137
+ * keep it: `.rvs-float-window` is an opaque code surface, and `.rvs-center` is
138
+ * documented as chrome-transparent so the full-width mount sits on the host's
139
+ * own background.
140
+ */
141
+ body:not([data-ds-dark-theme]) .rvs-root:not(.rvs-float-window):not(.rvs-center) {
142
+ background: var(--dsw-alias-bg-layer-2, #ffffff);
143
+ }
144
+
84
145
  .rvs-edge {
85
146
  background: var(--rvs-code-bg);
86
147
  color: var(--rvs-code-fg);
@@ -101,7 +162,7 @@ body[data-ds-dark-theme] .rvs-root {
101
162
  align-items: center;
102
163
  gap: 4px;
103
164
  padding: 8px 0;
104
- border-right: 1px solid var(--rvs-border);
165
+ border-right: 1px solid var(--rvs-divider);
105
166
  background: var(--dsw-specific-sidebar-fill, transparent);
106
167
  }
107
168
 
@@ -117,7 +178,7 @@ body[data-ds-dark-theme] .rvs-root {
117
178
  border: none;
118
179
  border-radius: 6px;
119
180
  background: transparent;
120
- color: var(--rvs-fg3);
181
+ color: var(--rvs-fg2);
121
182
  cursor: pointer;
122
183
  }
123
184
 
@@ -133,7 +194,7 @@ body[data-ds-dark-theme] .rvs-root {
133
194
  }
134
195
 
135
196
  .rvs-rail-btn.danger:hover {
136
- color: var(--rvs-danger);
197
+ color: var(--rvs-danger-text);
137
198
  }
138
199
 
139
200
  .rvs-rail-badge {
@@ -144,8 +205,11 @@ body[data-ds-dark-theme] .rvs-root {
144
205
  height: 14px;
145
206
  padding: 0 3px;
146
207
  border-radius: 7px;
147
- background: var(--rvs-accent);
148
- color: #fff;
208
+ /* Ink badge. A filled accent behind white text measures 2.1–3.0:1 under the
209
+ skins (4.2 in plain light), so the count rides the fg/code-bg pair, which
210
+ contrasts in every scheme and skin. */
211
+ background: var(--rvs-fg);
212
+ color: var(--rvs-code-bg);
149
213
  font-size: 9px;
150
214
  font-weight: 700;
151
215
  line-height: 14px;
@@ -158,7 +222,7 @@ body[data-ds-dark-theme] .rvs-root {
158
222
  width: 20px;
159
223
  height: 1px;
160
224
  margin: 4px 0;
161
- background: var(--rvs-border);
225
+ background: var(--rvs-divider);
162
226
  }
163
227
 
164
228
  /* -------------------------------------------------------- panel + editor */
@@ -221,7 +285,7 @@ body[data-ds-dark-theme] .rvs-root {
221
285
  gap: 6px;
222
286
  height: 34px;
223
287
  padding: 0 8px 0 10px;
224
- border-bottom: 1px solid var(--rvs-border);
288
+ border-bottom: 1px solid var(--rvs-divider);
225
289
  }
226
290
 
227
291
  .rvs-header .rvs-title {
@@ -234,7 +298,7 @@ body[data-ds-dark-theme] .rvs-root {
234
298
  font-weight: 700;
235
299
  letter-spacing: .04em;
236
300
  text-transform: uppercase;
237
- color: var(--rvs-fg3);
301
+ color: var(--rvs-fg2);
238
302
  }
239
303
 
240
304
  .rvs-hbtn {
@@ -248,7 +312,7 @@ body[data-ds-dark-theme] .rvs-root {
248
312
  border: none;
249
313
  border-radius: 5px;
250
314
  background: transparent;
251
- color: var(--rvs-fg3);
315
+ color: var(--rvs-fg2);
252
316
  cursor: pointer;
253
317
  }
254
318
 
@@ -258,8 +322,12 @@ body[data-ds-dark-theme] .rvs-root {
258
322
  }
259
323
 
260
324
  .rvs-hbtn.danger:hover {
261
- color: #fff;
262
- background: var(--rvs-danger);
325
+ /* Ink icon on the hover wash plus a 1px danger ring. White on the state token
326
+ measures 3.29:1 in dark and 2.71:1 under island-dark; the ring keeps the
327
+ destructive cue at ≥3.6:1 without depending on a filled red. */
328
+ color: var(--rvs-fg);
329
+ background: var(--rvs-hover);
330
+ box-shadow: inset 0 0 0 1px var(--rvs-danger);
263
331
  }
264
332
 
265
333
  .rvs-hbtn:disabled {
@@ -280,7 +348,7 @@ body[data-ds-dark-theme] .rvs-root {
280
348
  align-items: center;
281
349
  gap: 6px;
282
350
  padding: 4px 8px;
283
- border-bottom: 1px solid var(--rvs-border);
351
+ border-bottom: 1px solid var(--rvs-divider);
284
352
  font-size: 11px;
285
353
  }
286
354
 
@@ -332,7 +400,7 @@ body[data-ds-dark-theme] .rvs-root {
332
400
  }
333
401
 
334
402
  .rvs-conn-error {
335
- color: var(--rvs-danger);
403
+ color: var(--rvs-danger-text);
336
404
  }
337
405
 
338
406
  .rvs-conn-error .rvs-conn-dot {
@@ -429,7 +497,9 @@ body[data-ds-dark-theme] .rvs-root {
429
497
 
430
498
  .rvs-node.drop-target {
431
499
  background: var(--rvs-active);
432
- outline: 1px solid var(--rvs-brand);
500
+ /* The drop row's outline is the STATE cue, not decoration: the skin's mint
501
+ brand is 1.94:1 on the selected-row tint, the fg is 8.4–13.7:1. */
502
+ outline: 1px solid var(--rvs-fg);
433
503
  outline-offset: -1px;
434
504
  }
435
505
 
@@ -441,7 +511,7 @@ body[data-ds-dark-theme] .rvs-root {
441
511
  border: 1px dashed var(--rvs-brand);
442
512
  border-radius: 3px;
443
513
  font-size: 11px;
444
- color: var(--rvs-brand);
514
+ color: var(--rvs-fg);
445
515
  overflow: hidden;
446
516
  text-overflow: ellipsis;
447
517
  white-space: nowrap;
@@ -458,7 +528,7 @@ body[data-ds-dark-theme] .rvs-root {
458
528
  gap: 6px;
459
529
  padding: 3px 10px 4px;
460
530
  font-size: 11px;
461
- color: var(--dsw-alias-text-secondary, rgba(127, 127, 127, .95));
531
+ color: var(--dsw-alias-label-secondary, rgba(127, 127, 127, .95));
462
532
  }
463
533
 
464
534
  .rvs-upload-text {
@@ -481,6 +551,22 @@ body[data-ds-dark-theme] .rvs-root {
481
551
  color: var(--rvs-fg3);
482
552
  }
483
553
 
554
+ /**
555
+ * The file-type palette in `file-icons.tsx` is the dark-friendly set: on a white
556
+ * or cream tree 101 of its 109 `color:` uses measure below 3:1 (js #d5c93f
557
+ * 1.45, archive #d9b64a 1.66, shell #4ec9b0 1.73, tsx #4fc3f7 1.70). One
558
+ * paint-level step for the light schemes only takes the worst case to 3.01:1
559
+ * (python's #ffd75e mark) and the JS sheet to 3.64:1 — measured in-engine with
560
+ * `ctx.filter`, not hand-computed. The artwork is untouched and the dark
561
+ * schemes keep the palette as designed. Scoped to `.rvs-fi`, which only the
562
+ * coloured `FileTypeIcon` / `FolderGlyph` artwork carries: `.rvs-node-icon` is a
563
+ * layout wrapper shared with the neutral outline glyphs (search / SCM / commit),
564
+ * which must not be darkened.
565
+ */
566
+ body:not([data-ds-dark-theme]) .rvs-fi {
567
+ filter: brightness(.62) saturate(1.1);
568
+ }
569
+
484
570
  .rvs-node-name {
485
571
  flex: 1;
486
572
  min-width: 0;
@@ -535,7 +621,7 @@ body[data-ds-dark-theme] .rvs-root {
535
621
 
536
622
  .rvs-empty {
537
623
  padding: 18px 14px;
538
- color: var(--rvs-fg3);
624
+ color: var(--rvs-fg2);
539
625
  font-size: 12px;
540
626
  text-align: center;
541
627
  line-height: 1.7;
@@ -558,7 +644,7 @@ body[data-ds-dark-theme] .rvs-root {
558
644
 
559
645
  .rvs-banner.error {
560
646
  background: rgba(200, 60, 60, .16);
561
- color: var(--rvs-danger);
647
+ color: var(--rvs-danger-text);
562
648
  }
563
649
 
564
650
  .rvs-banner.warn {
@@ -600,14 +686,14 @@ body[data-ds-dark-theme] .rvs-root {
600
686
  position: sticky;
601
687
  top: 0;
602
688
  padding: 4px 8px;
603
- background: var(--rvs-panel, var(--rvs-hover));
689
+ background: var(--rvs-hover);
604
690
  border-bottom: 1px solid var(--rvs-border);
605
691
  font-family: inherit;
606
692
  }
607
693
 
608
694
  .rvs-conflict-hunk-head {
609
695
  padding: 2px 8px;
610
- color: var(--rvs-fg3);
696
+ color: var(--rvs-fg2);
611
697
  border-bottom: 1px solid var(--rvs-border);
612
698
  }
613
699
 
@@ -618,23 +704,23 @@ body[data-ds-dark-theme] .rvs-root {
618
704
 
619
705
  .rvs-conflict-row.add {
620
706
  background: rgba(78, 201, 176, .14);
621
- color: var(--rvs-git-a);
707
+ color: var(--rvs-diff-add);
622
708
  }
623
709
 
624
710
  .rvs-conflict-row.del {
625
711
  background: rgba(241, 76, 76, .12);
626
- color: var(--rvs-git-d);
712
+ color: var(--rvs-diff-del);
627
713
  }
628
714
 
629
715
  .rvs-conflict-more {
630
716
  padding: 4px 8px;
631
- color: var(--rvs-fg3);
717
+ color: var(--rvs-fg2);
632
718
  }
633
719
 
634
720
  /* --------------------------------------------------------- source control */
635
721
 
636
722
  .rvs-scm-section {
637
- border-bottom: 1px solid var(--rvs-border);
723
+ border-bottom: 1px solid var(--rvs-divider);
638
724
  }
639
725
 
640
726
  .rvs-scm-head {
@@ -661,7 +747,7 @@ body[data-ds-dark-theme] .rvs-root {
661
747
  font-size: 11px;
662
748
  font-weight: 600;
663
749
  letter-spacing: 0;
664
- color: var(--rvs-fg3);
750
+ color: var(--rvs-fg2);
665
751
  }
666
752
 
667
753
  .rvs-scm-head-actions {
@@ -718,7 +804,7 @@ body[data-ds-dark-theme] .rvs-root {
718
804
 
719
805
  .rvs-scm-dir {
720
806
  flex: none;
721
- color: var(--rvs-fg3);
807
+ color: var(--rvs-fg2);
722
808
  }
723
809
 
724
810
  .rvs-scm-actions {
@@ -735,7 +821,7 @@ body[data-ds-dark-theme] .rvs-root {
735
821
  .rvs-commit-box {
736
822
  flex: none;
737
823
  padding: 8px 10px;
738
- border-bottom: 1px solid var(--rvs-border);
824
+ border-bottom: 1px solid var(--rvs-divider);
739
825
  }
740
826
 
741
827
  .rvs-commit-input {
@@ -755,7 +841,9 @@ body[data-ds-dark-theme] .rvs-root {
755
841
  }
756
842
 
757
843
  .rvs-commit-input:focus {
758
- border-color: var(--rvs-brand);
844
+ /* Focus is a theme pair, not the brand hue: the skin's mint brand lands at
845
+ 2.22:1 on the input surface, the fg pair at 7.4–15.9:1 in every scheme. */
846
+ border-color: var(--rvs-fg);
759
847
  }
760
848
 
761
849
  .rvs-commit-row {
@@ -769,8 +857,9 @@ body[data-ds-dark-theme] .rvs-root {
769
857
  padding: 5px 8px;
770
858
  border: none;
771
859
  border-radius: 6px;
772
- background: var(--rvs-accent);
773
- color: #fff;
860
+ /* See .rvs-rail-badge: ink pair instead of accent + white. */
861
+ background: var(--rvs-fg);
862
+ color: var(--rvs-code-bg);
774
863
  font: inherit;
775
864
  font-size: 12.5px;
776
865
  font-weight: 600;
@@ -810,7 +899,7 @@ body[data-ds-dark-theme] .rvs-root {
810
899
  .rvs-repo-branch {
811
900
  flex: none;
812
901
  font-size: 11px;
813
- color: var(--rvs-fg3);
902
+ color: var(--rvs-fg2);
814
903
  }
815
904
 
816
905
  .rvs-pill {
@@ -830,7 +919,7 @@ body[data-ds-dark-theme] .rvs-root {
830
919
  .rvs-pill-cached {
831
920
  flex: none;
832
921
  font-weight: 500;
833
- color: var(--rvs-fg3);
922
+ color: var(--rvs-fg2);
834
923
  border: 1px solid var(--rvs-border2);
835
924
  background: transparent;
836
925
  }
@@ -869,15 +958,18 @@ body[data-ds-dark-theme] .rvs-root {
869
958
  }
870
959
 
871
960
  .rvs-chip.primary {
872
- background: var(--rvs-accent);
961
+ background: var(--rvs-fg);
873
962
  border-color: transparent;
874
- color: #fff;
963
+ color: var(--rvs-code-bg);
875
964
  }
876
965
 
877
966
  .rvs-chip.danger:hover {
878
- background: var(--rvs-danger);
879
- border-color: transparent;
880
- color: #fff;
967
+ /* Same call as `.rvs-hbtn.danger`: white on the state token is 2.7–3.3:1 in
968
+ the dark schemes; the ink pair plus a danger border keeps both halves
969
+ readable. */
970
+ background: var(--rvs-hover);
971
+ border-color: var(--rvs-danger);
972
+ color: var(--rvs-fg);
881
973
  }
882
974
 
883
975
  .rvs-input {
@@ -894,7 +986,7 @@ body[data-ds-dark-theme] .rvs-root {
894
986
  }
895
987
 
896
988
  .rvs-input:focus {
897
- border-color: var(--rvs-brand);
989
+ border-color: var(--rvs-fg);
898
990
  }
899
991
 
900
992
  .rvs-select {
@@ -1007,7 +1099,7 @@ body[data-ds-dark-theme] .rvs-root {
1007
1099
  border-right: 1px solid transparent;
1008
1100
  border-radius: 4px 4px 0 0;
1009
1101
  background: transparent;
1010
- color: var(--rvs-fg3);
1102
+ color: var(--rvs-fg2);
1011
1103
  font: inherit;
1012
1104
  font-size: 11px;
1013
1105
  white-space: nowrap;
@@ -1207,7 +1299,7 @@ body[data-ds-dark-theme] .rvs-root {
1207
1299
  align-items: center;
1208
1300
  gap: 4px;
1209
1301
  white-space: nowrap;
1210
- color: var(--rvs-fg3);
1302
+ color: var(--rvs-fg2);
1211
1303
  }
1212
1304
 
1213
1305
  .rvs-status-btn {
@@ -1225,7 +1317,7 @@ body[data-ds-dark-theme] .rvs-root {
1225
1317
  color: var(--rvs-fg);
1226
1318
  }
1227
1319
 
1228
- .rvs-status-error { color: var(--rvs-danger); }
1320
+ .rvs-status-error { color: var(--rvs-danger-text); }
1229
1321
 
1230
1322
  /* Conversation mount: the status line belongs to the editor, so it takes the
1231
1323
  panel's foreground instead of the sidebar's dimmer one. */
@@ -1319,7 +1411,7 @@ body[data-ds-dark-theme] .rvs-root {
1319
1411
  flex: 0 0 auto;
1320
1412
  padding: 3px 6px;
1321
1413
  border-bottom: 1px solid var(--rvs-editor-chrome-border);
1322
- color: var(--rvs-fg3);
1414
+ color: var(--rvs-fg2);
1323
1415
  font-size: 11px;
1324
1416
  }
1325
1417
 
@@ -1359,12 +1451,12 @@ body[data-ds-dark-theme] .rvs-root {
1359
1451
  .rvs-crumb-menu-note {
1360
1452
  padding: 6px 10px;
1361
1453
  font-size: 11px;
1362
- color: var(--rvs-fg3);
1454
+ color: var(--rvs-fg2);
1363
1455
  }
1364
1456
 
1365
1457
  /* The note doubles as the dropdown's error line (see `.rvs-status-error`);
1366
1458
  the compound selector outranks the note's own muted colour. */
1367
- .rvs-crumb-menu-note.rvs-status-error { color: var(--rvs-danger); }
1459
+ .rvs-crumb-menu-note.rvs-status-error { color: var(--rvs-danger-text); }
1368
1460
 
1369
1461
  .rvs-crumb-menu-item {
1370
1462
  display: flex;
@@ -1435,7 +1527,7 @@ body[data-ds-dark-theme] .rvs-root {
1435
1527
  gap: 10px;
1436
1528
  flex: none;
1437
1529
  font-size: 11px;
1438
- color: var(--rvs-fg3);
1530
+ color: var(--rvs-fg2);
1439
1531
  }
1440
1532
 
1441
1533
  .rvs-image-preview-hint { opacity: .75; }
@@ -1458,7 +1550,7 @@ body[data-ds-dark-theme] .rvs-root {
1458
1550
  gap: 6px;
1459
1551
  padding: 16px;
1460
1552
  font-size: 12px;
1461
- color: var(--rvs-fg3);
1553
+ color: var(--rvs-fg2);
1462
1554
  background: var(--rvs-code-bg);
1463
1555
  text-align: center;
1464
1556
  }
@@ -1480,7 +1572,7 @@ body[data-ds-dark-theme] .rvs-root {
1480
1572
  gap: 8px;
1481
1573
  padding: 24px;
1482
1574
  text-align: center;
1483
- color: var(--rvs-fg3);
1575
+ color: var(--rvs-fg2);
1484
1576
  }
1485
1577
 
1486
1578
  .rvs-editor-empty-glyph {
@@ -1509,7 +1601,7 @@ body[data-ds-dark-theme] .rvs-root {
1509
1601
 
1510
1602
  .rvs-empty-hint {
1511
1603
  font-size: 11px;
1512
- color: var(--rvs-fg3);
1604
+ color: var(--rvs-fg2);
1513
1605
  margin-top: 4px;
1514
1606
  }
1515
1607
 
@@ -1562,7 +1654,7 @@ body[data-ds-dark-theme] .rvs-root {
1562
1654
  border-left: 3px solid var(--rvs-border2);
1563
1655
  color: var(--rvs-fg2);
1564
1656
  }
1565
- .rvs-markdown a { color: var(--dsw-alias-label-link, #58a6ff); text-decoration: none; }
1657
+ .rvs-markdown a { color: var(--dsw-alias-link, #58a6ff); text-decoration: none; }
1566
1658
  .rvs-markdown a:hover { text-decoration: underline; }
1567
1659
  .rvs-markdown table { border-collapse: collapse; margin: 8px 0; font-size: 12px; }
1568
1660
  .rvs-markdown th, .rvs-markdown td { border: 1px solid var(--rvs-border2); padding: 4px 8px; }
@@ -1594,7 +1686,7 @@ body[data-ds-dark-theme] .rvs-root {
1594
1686
  padding: 3px 8px;
1595
1687
  border-bottom: 1px solid var(--rvs-border);
1596
1688
  font-size: 11px;
1597
- color: var(--rvs-fg3);
1689
+ color: var(--rvs-fg2);
1598
1690
  }
1599
1691
 
1600
1692
  /**
@@ -1616,7 +1708,7 @@ body[data-ds-dark-theme] .rvs-root {
1616
1708
  text-align: center;
1617
1709
  font-size: 11px;
1618
1710
  font-variant-numeric: tabular-nums;
1619
- color: var(--rvs-fg3);
1711
+ color: var(--rvs-fg2);
1620
1712
  user-select: none;
1621
1713
  }
1622
1714
 
@@ -1784,8 +1876,8 @@ body[data-ds-dark-theme] .rvs-root {
1784
1876
  .rvs-gutter-col {
1785
1877
  flex: none;
1786
1878
  width: 30px;
1787
- border-left: 1px solid var(--rvs-border);
1788
- border-right: 1px solid var(--rvs-border);
1879
+ border-left: 1px solid var(--rvs-divider);
1880
+ border-right: 1px solid var(--rvs-divider);
1789
1881
  user-select: none;
1790
1882
  }
1791
1883
 
@@ -1824,7 +1916,7 @@ body[data-ds-dark-theme] .rvs-root {
1824
1916
  .rvs-row-del .rvs-dline-text,
1825
1917
  .rvs-row-del .rvs-dline-num,
1826
1918
  .rvs-row-del .rvs-num {
1827
- color: #f14c4c;
1919
+ color: var(--rvs-diff-del);
1828
1920
  }
1829
1921
 
1830
1922
  .rvs-row-add {
@@ -1834,11 +1926,11 @@ body[data-ds-dark-theme] .rvs-root {
1834
1926
  .rvs-row-add .rvs-dline-text,
1835
1927
  .rvs-row-add .rvs-dline-num,
1836
1928
  .rvs-row-add .rvs-num {
1837
- color: #4ec9b0;
1929
+ color: var(--rvs-diff-add);
1838
1930
  }
1839
1931
 
1840
1932
  .rvs-row-empty {
1841
- color: var(--rvs-fg3);
1933
+ color: var(--rvs-fg2);
1842
1934
  opacity: .35;
1843
1935
  }
1844
1936
 
@@ -1848,8 +1940,8 @@ body[data-ds-dark-theme] .rvs-root {
1848
1940
  display: flex;
1849
1941
  align-items: center;
1850
1942
  justify-content: center;
1851
- border-left: 1px solid var(--rvs-border);
1852
- border-right: 1px solid var(--rvs-border);
1943
+ border-left: 1px solid var(--rvs-divider);
1944
+ border-right: 1px solid var(--rvs-divider);
1853
1945
  user-select: none;
1854
1946
  }
1855
1947
 
@@ -1875,7 +1967,7 @@ body[data-ds-dark-theme] .rvs-root {
1875
1967
  border: none;
1876
1968
  border-radius: 3px;
1877
1969
  background: transparent;
1878
- color: var(--rvs-fg3);
1970
+ color: var(--rvs-fg2);
1879
1971
  font-size: 11px;
1880
1972
  line-height: 1;
1881
1973
  cursor: pointer;
@@ -1925,6 +2017,8 @@ body:not([data-ds-dark-theme]) .rvs-t-variable { color: #001080; }
1925
2017
  body:not([data-ds-dark-theme]) .rvs-t-operator,
1926
2018
  body:not([data-ds-dark-theme]) .rvs-t-punct { color: #1f1f1f; }
1927
2019
  body:not([data-ds-dark-theme]) .rvs-t-meta { color: #af00db; }
2020
+ body:not([data-ds-dark-theme]) .rvs-t-insert { color: var(--rvs-diff-add); }
2021
+ body:not([data-ds-dark-theme]) .rvs-t-delete { color: var(--rvs-diff-del); }
1928
2022
 
1929
2023
  /**
1930
2024
  * CodeMirror token colors, applied through FIXED class names emitted by the
@@ -2299,7 +2393,9 @@ body:not([data-ds-dark-theme]) .rvs-edge .rvs-change-block-del {
2299
2393
  .rvs-change-nav-btn:hover {
2300
2394
  border-color: var(--rvs-border2);
2301
2395
  background: var(--rvs-hover);
2302
- color: var(--rvs-brand);
2396
+ /* The ball is a control users must find; the brand token is 2.6:1 under the
2397
+ island light skin, so the glyph rides the primary foreground instead. */
2398
+ color: var(--rvs-fg);
2303
2399
  }
2304
2400
 
2305
2401
  .rvs-change-nav-btn:active { background: var(--rvs-active); }
@@ -2341,7 +2437,8 @@ body:not([data-ds-dark-theme]) .rvs-edge .rvs-change-block-del {
2341
2437
  .rvs-undo-affordance:hover {
2342
2438
  background-color: #f85149;
2343
2439
  border-color: #f85149;
2344
- color: #fff;
2440
+ /* Dark ink, not white: white on #f85149 is 3.35:1. */
2441
+ color: #1e2229;
2345
2442
  }
2346
2443
 
2347
2444
  .rvs-undo-affordance:active {
@@ -2349,8 +2446,11 @@ body:not([data-ds-dark-theme]) .rvs-edge .rvs-change-block-del {
2349
2446
  }
2350
2447
 
2351
2448
  .rvs-undo-affordance:focus-visible {
2352
- outline: 2px solid #58a6ff;
2353
- outline-offset: 1px;
2449
+ /* The pill hangs off <body>, where `--rvs-*` does not resolve, so its focus
2450
+ ring comes from its own two-scheme pair: the pale ink of the dark pill
2451
+ (9.4:1 on the code surface) and the deep red of the light pill (7.9:1). */
2452
+ outline: 2px solid #ffb4ae;
2453
+ outline-offset: 2px;
2354
2454
  }
2355
2455
 
2356
2456
  /* 删除锚点:这一行其实已经不在了,虚线边框把它和"真实存在的行"分开。 */
@@ -2372,7 +2472,7 @@ body:not([data-ds-dark-theme]) .rvs-undo-affordance:hover {
2372
2472
  }
2373
2473
 
2374
2474
  body:not([data-ds-dark-theme]) .rvs-undo-affordance:focus-visible {
2375
- outline-color: #4d6bfe;
2475
+ outline-color: #a40e26;
2376
2476
  }
2377
2477
 
2378
2478
  /**
@@ -2400,7 +2500,7 @@ body:not([data-ds-dark-theme]) .rvs-undo-affordance:focus-visible {
2400
2500
  padding: 0 5px;
2401
2501
  border: 1px solid var(--rvs-border);
2402
2502
  border-radius: 4px;
2403
- color: var(--rvs-fg3);
2503
+ color: var(--rvs-fg2);
2404
2504
  font-size: 10px;
2405
2505
  font-family: var(--rvs-mono);
2406
2506
  opacity: .85;
@@ -2419,6 +2519,11 @@ body:not([data-ds-dark-theme]) .rvs-undo-affordance:focus-visible {
2419
2519
  --rvs-editor-panel-fg: #1f1f1f;
2420
2520
  --rvs-editor-input-bg: #ffffff;
2421
2521
  --rvs-editor-chrome-border: rgba(0, 0, 0, .12);
2522
+ /* The "no results" count. `.rvs-find` is portalled outside `.rvs-root`, so
2523
+ red tokens never resolved here: the `.none` rule silently inherited the
2524
+ panel fg instead of turning red. This local pair makes the state real and
2525
+ readable on the editor plate (7.1:1 light / 6.8:1 dark). */
2526
+ --rvs-danger-text: #a52a2a;
2422
2527
  position: absolute;
2423
2528
  top: 6px;
2424
2529
  right: 18px;
@@ -2440,6 +2545,7 @@ body[data-ds-dark-theme] .rvs-find {
2440
2545
  --rvs-editor-panel-fg: #cccccc;
2441
2546
  --rvs-editor-input-bg: #3c3c3c;
2442
2547
  --rvs-editor-chrome-border: rgba(255, 255, 255, .12);
2548
+ --rvs-danger-text: #ff8b8b;
2443
2549
  }
2444
2550
 
2445
2551
  .rvs-find-input {
@@ -2455,7 +2561,11 @@ body[data-ds-dark-theme] .rvs-find {
2455
2561
  }
2456
2562
 
2457
2563
  .rvs-find-input:focus {
2458
- border-color: var(--rvs-brand);
2564
+ /* `.rvs-find` is portalled away from `.rvs-root`, so `--rvs-brand` never
2565
+ resolved here (the declaration was invalid and fell back to currentColor):
2566
+ the editor's own fg is the pair that exists in this subtree. 16.5:1 light /
2567
+ 6.9:1 dark. */
2568
+ border-color: var(--rvs-editor-panel-fg);
2459
2569
  }
2460
2570
 
2461
2571
  .rvs-find-count {
@@ -2468,7 +2578,7 @@ body[data-ds-dark-theme] .rvs-find {
2468
2578
  }
2469
2579
 
2470
2580
  .rvs-find-count.none {
2471
- color: var(--rvs-git-d);
2581
+ color: var(--rvs-danger-text);
2472
2582
  }
2473
2583
 
2474
2584
  .rvs-code {
@@ -2539,7 +2649,7 @@ body[data-ds-dark-theme] .rvs-find {
2539
2649
  flex: none;
2540
2650
  font-family: var(--rvs-mono);
2541
2651
  font-size: 11px;
2542
- color: var(--rvs-fg3);
2652
+ color: var(--rvs-fg2);
2543
2653
  }
2544
2654
 
2545
2655
  .rvs-commit-msg {
@@ -2553,7 +2663,7 @@ body[data-ds-dark-theme] .rvs-find {
2553
2663
  .rvs-commit-date {
2554
2664
  flex: none;
2555
2665
  font-size: 11px;
2556
- color: var(--rvs-fg3);
2666
+ color: var(--rvs-fg2);
2557
2667
  }
2558
2668
 
2559
2669
  .rvs-ref-badge {
@@ -2589,7 +2699,7 @@ body[data-ds-dark-theme] .rvs-find {
2589
2699
  }
2590
2700
 
2591
2701
  .rvs-detail-meta {
2592
- color: var(--rvs-fg3);
2702
+ color: var(--rvs-fg2);
2593
2703
  font-size: 11px;
2594
2704
  margin-bottom: 6px;
2595
2705
  white-space: pre-wrap;
@@ -2704,7 +2814,7 @@ body[data-ds-dark-theme] .rvs-find {
2704
2814
  border: none;
2705
2815
  border-bottom: 2px solid transparent;
2706
2816
  background: transparent;
2707
- color: var(--rvs-fg3);
2817
+ color: var(--rvs-fg2);
2708
2818
  font: inherit;
2709
2819
  font-size: 12px;
2710
2820
  padding: 5px 8px 4px;
@@ -2730,7 +2840,7 @@ body[data-ds-dark-theme] .rvs-find {
2730
2840
  margin-right: 2px;
2731
2841
  font-family: var(--rvs-mono);
2732
2842
  font-size: 10.5px;
2733
- color: var(--rvs-fg3);
2843
+ color: var(--rvs-fg2);
2734
2844
  }
2735
2845
 
2736
2846
  /**
@@ -2768,7 +2878,7 @@ body[data-ds-dark-theme] .rvs-find {
2768
2878
  gap: 6px;
2769
2879
  min-height: 21px;
2770
2880
  font-size: 11.5px;
2771
- color: var(--rvs-fg3);
2881
+ color: var(--rvs-fg2);
2772
2882
  }
2773
2883
 
2774
2884
  .rvs-hmeta-icon {
@@ -2846,7 +2956,7 @@ body[data-ds-dark-theme] .rvs-find {
2846
2956
  .rvs-hhint {
2847
2957
  margin-bottom: 6px;
2848
2958
  font-size: 11px;
2849
- color: var(--rvs-fg3);
2959
+ color: var(--rvs-fg2);
2850
2960
  }
2851
2961
 
2852
2962
  /* One line: how many files, and the path filter that makes a 60-file commit
@@ -2861,7 +2971,7 @@ body[data-ds-dark-theme] .rvs-find {
2861
2971
  .rvs-hcount {
2862
2972
  flex: none;
2863
2973
  font-size: 11px;
2864
- color: var(--rvs-fg3);
2974
+ color: var(--rvs-fg2);
2865
2975
  }
2866
2976
 
2867
2977
  .rvs-hfilter {
@@ -2905,7 +3015,7 @@ body[data-ds-dark-theme] .rvs-find {
2905
3015
  .rvs-hfolder-count {
2906
3016
  flex: none;
2907
3017
  font-size: 10.5px;
2908
- color: var(--rvs-fg3);
3018
+ color: var(--rvs-fg2);
2909
3019
  }
2910
3020
 
2911
3021
  /* Files under a folder keep the editor tree's indent idiom. */
@@ -2936,7 +3046,7 @@ body[data-ds-dark-theme] .rvs-find {
2936
3046
  .rvs-commit-item:focus-visible,
2937
3047
  .rvs-patch-chevron:focus-visible,
2938
3048
  .rvs-vsplit-handle:focus-visible {
2939
- outline: 2px solid var(--rvs-brand);
3049
+ outline: 2px solid var(--rvs-fg);
2940
3050
  outline-offset: -2px;
2941
3051
  }
2942
3052
 
@@ -3153,7 +3263,7 @@ body[data-ds-dark-theme] .rvs-find {
3153
3263
  margin: 2px 0;
3154
3264
  border-top: 1px dashed var(--rvs-border);
3155
3265
  border-bottom: 1px dashed var(--rvs-border);
3156
- color: var(--rvs-fg3);
3266
+ color: var(--rvs-fg2);
3157
3267
  font-size: 11px;
3158
3268
  text-align: center;
3159
3269
  user-select: none;
@@ -3162,7 +3272,7 @@ body[data-ds-dark-theme] .rvs-find {
3162
3272
  .rvs-patch-note {
3163
3273
  padding: 6px 8px;
3164
3274
  font-size: 11px;
3165
- color: var(--rvs-fg3);
3275
+ color: var(--rvs-fg2);
3166
3276
  }
3167
3277
 
3168
3278
  /* ---------------------------------------------------- floating editor window */
@@ -3242,9 +3352,15 @@ body[data-ds-dark-theme] .rvs-find {
3242
3352
  outline: none;
3243
3353
  }
3244
3354
 
3245
- .rvs-float-ball:hover,
3355
+ .rvs-float-ball:hover {
3356
+ background: var(--rvs-hover);
3357
+ }
3358
+
3359
+ /* `outline: none` on the ball removed the only keyboard cue; restore it. */
3246
3360
  .rvs-float-ball:focus-visible {
3247
3361
  background: var(--rvs-hover);
3362
+ outline: 2px solid var(--rvs-fg);
3363
+ outline-offset: 2px;
3248
3364
  }
3249
3365
 
3250
3366
  .rvs-float-ball-glyph {
@@ -3301,7 +3417,7 @@ body[data-ds-dark-theme] .rvs-find {
3301
3417
  text-overflow: ellipsis;
3302
3418
  white-space: nowrap;
3303
3419
  font-size: 11.5px;
3304
- color: var(--rvs-fg3);
3420
+ color: var(--rvs-fg2);
3305
3421
  direction: rtl;
3306
3422
  unicode-bidi: plaintext;
3307
3423
  text-align: left;
@@ -3336,7 +3452,7 @@ body[data-ds-dark-theme] .rvs-find {
3336
3452
 
3337
3453
  .rvs-float-close:hover {
3338
3454
  background: rgba(241, 76, 76, .18);
3339
- color: var(--rvs-danger);
3455
+ color: var(--rvs-danger-text);
3340
3456
  }
3341
3457
 
3342
3458
  .rvs-float-body {
@@ -3385,7 +3501,7 @@ body[data-ds-dark-theme] .rvs-find {
3385
3501
  gap: 10px;
3386
3502
  padding: 24px;
3387
3503
  text-align: center;
3388
- color: var(--rvs-fg3);
3504
+ color: var(--rvs-fg2);
3389
3505
  font-size: 12.5px;
3390
3506
  }
3391
3507
 
@@ -3402,10 +3518,48 @@ body[data-ds-dark-theme] .rvs-find {
3402
3518
 
3403
3519
  /* --------------------------------------------------------- context menu */
3404
3520
 
3405
- .rvs-portal {
3521
+ /**
3522
+ * PORTALED surfaces (menu / modal / toast) mount on <body>, i.e. OUTSIDE
3523
+ * `.rvs-root` where the tokens are declared — without this block every var()
3524
+ * below resolves to nothing: the confirm button lost its fill and painted white
3525
+ * text straight on the light dialog plate (1.1–1.2:1, reported 2026-11-23 on
3526
+ * the git-push confirm), the menu had no border and no hover feedback, and the
3527
+ * toast fell back to inherited text colour. Keep this subset in sync with
3528
+ * `.rvs-root`; it lists exactly the tokens the `.rvs-menu*`, `.rvs-modal*`,
3529
+ * `.rvs-input`, `.rvs-toast*` and `.rvs-snips-panel` rules read.
3530
+ *
3531
+ * `.rvs-toasts` is NOT inside `.rvs-portal` (DialogHost portals the modal and
3532
+ * the toast stack as separate body children), so it carries the same block.
3533
+ */
3534
+ .rvs-portal,
3535
+ .rvs-toasts {
3536
+ --rvs-fg: var(--dsw-alias-label-primary, #e6e6e6);
3537
+ --rvs-fg2: var(--dsw-alias-label-secondary, #b9b9b9);
3538
+ --rvs-fg3: var(--dsw-alias-label-tertiary, #8b8b8b);
3539
+ --rvs-hover: var(--dsw-alias-interactive-bg-hover, rgba(127, 127, 127, .14));
3540
+ --rvs-active: var(--dsw-alias-interactive-bg-active, rgba(77, 107, 254, .22));
3541
+ --rvs-border: var(--dsw-alias-border-l1, rgba(127, 127, 127, .25));
3542
+ --rvs-border2: var(--dsw-alias-border-l2, rgba(127, 127, 127, .38));
3543
+ --rvs-input: var(--dsw-alias-bg-input, rgba(127, 127, 127, .12));
3544
+ --rvs-layer3: var(--dsw-alias-bg-layer-3, rgba(127, 127, 127, .16));
3545
+ --rvs-brand: var(--dsw-alias-brand-primary, #4d6bfe);
3546
+ --rvs-danger: var(--dsw-alias-state-error-primary, #e05555);
3547
+ /* The opaque "ink" pair filled buttons use: --rvs-fg and --rvs-code-bg
3548
+ contrast in every scheme/skin, which the accent tokens do not. */
3549
+ --rvs-code-bg: #ffffff;
3550
+ --rvs-mono: 'Cascadia Code', 'Fira Code', 'JetBrains Mono', Consolas, 'Courier New', monospace;
3406
3551
  font-family: inherit;
3407
3552
  }
3408
3553
 
3554
+ body[data-ds-dark-theme] .rvs-portal,
3555
+ body[data-ds-dark-theme] .rvs-toasts {
3556
+ --rvs-code-bg: #1e1e1e;
3557
+ /* The dark overlay plate is mid-grey (#61666b), not near-black: the host's
3558
+ secondary label token reads 3.85:1 there. Portal copy steps up to a value
3559
+ that clears AA on that plate (measured 4.9:1). */
3560
+ --rvs-fg2: #e9ebed;
3561
+ }
3562
+
3409
3563
  /**
3410
3564
  * Floating surfaces (menu / modal / toast) paint an OPAQUE base first and then
3411
3565
  * lay the skin's overlay token on top. The token is frequently translucent, so
@@ -3421,6 +3575,23 @@ body[data-ds-dark-theme] .rvs-find {
3421
3575
  color: var(--rvs-fg);
3422
3576
  }
3423
3577
 
3578
+ /*
3579
+ * Dark floating plates. The host dark `--dsw-alias-bg-overlay` is MID-GREY
3580
+ * (#61666b), not near-black: menu labels measured 2.5-3.4:1, the menu red
3581
+ * 3.41:1, and the body copy of the INLINE modals (which take `.rvs-root`
3582
+ * tokens) 3.85:1 there. The host paints its own menus on a dark elevated
3583
+ * surface, so every dark floating surface takes bg-layer-2 over the Canvas
3584
+ * base (#121212): labels then measure 7.9-13.3:1 and the modal body 9.6:1.
3585
+ * The error toast keeps its own dark-red plate (`:not(.error)` keeps the two
3586
+ * rules disjoint); light is untouched.
3587
+ */
3588
+ body[data-ds-dark-theme] .rvs-menu,
3589
+ body[data-ds-dark-theme] .rvs-modal-box,
3590
+ body[data-ds-dark-theme] .rvs-snips-panel,
3591
+ body[data-ds-dark-theme] .rvs-toast:not(.error) {
3592
+ background-image: linear-gradient(var(--dsw-alias-bg-layer-2, #2c2c2e), var(--dsw-alias-bg-layer-2, #2c2c2e));
3593
+ }
3594
+
3424
3595
  .rvs-menu {
3425
3596
  position: fixed;
3426
3597
  z-index: 1000;
@@ -3461,13 +3632,32 @@ body[data-ds-dark-theme] .rvs-find {
3461
3632
  }
3462
3633
 
3463
3634
  .rvs-menu-item.danger {
3464
- color: var(--vsc-danger, #f14c4c);
3635
+ color: var(--rvs-danger, #f14c4c);
3465
3636
  }
3466
3637
 
3638
+ /* The host error token targets a plain surface: on the menu's opaque overlay
3639
+ plate it reads 3.8 (vanilla light) / 4.4 (vanilla dark), so each scheme gets
3640
+ a local red that clears AA. */
3641
+ body:not([data-ds-dark-theme]) .rvs-menu-item.danger { color: #cf222e; }
3642
+ /* The dark plate is mid-grey: #ff7b72 reads 2.30 there, so use a lighter red
3643
+ that keeps the "danger" hue while clearing AA (measured 5.7). */
3644
+ body[data-ds-dark-theme] .rvs-menu-item.danger { color: #ffb3b3; }
3645
+
3467
3646
  .rvs-menu-item.danger:hover {
3468
3647
  background: rgba(241, 76, 76, .16);
3469
3648
  }
3470
3649
 
3650
+ /* The hover tint lightens the plate, so the danger label needs a deeper red on
3651
+ light schemes and a brighter one on dark. */
3652
+ body:not([data-ds-dark-theme]) .rvs-menu-item.danger:hover {
3653
+ background: rgba(207, 34, 46, .10);
3654
+ color: #a40e26;
3655
+ }
3656
+ body[data-ds-dark-theme] .rvs-menu-item.danger:hover {
3657
+ background: rgba(255, 255, 255, .10);
3658
+ color: #ffd7d5;
3659
+ }
3660
+
3471
3661
  .rvs-menu-item:disabled {
3472
3662
  opacity: .45;
3473
3663
  cursor: default;
@@ -3480,7 +3670,12 @@ body[data-ds-dark-theme] .rvs-find {
3480
3670
  .rvs-menu-hint {
3481
3671
  margin-left: auto;
3482
3672
  font-size: 11px;
3483
- opacity: .6;
3673
+ /* 11 px text on the menu plate: at .6 the shortcut hints measured 3.19:1 on
3674
+ island-light (light host plate) — below the 4.5 small-text floor. .8 lifts
3675
+ that to ~5.2:1 and leaves the light vanilla case (4.68 → ~6:1) and both
3676
+ dark plates above it. The colour stays the inherited `--rvs-fg`; only the
3677
+ alpha moves, so the approved ink/portal/fg2 scheme is untouched. */
3678
+ opacity: .8;
3484
3679
  }
3485
3680
 
3486
3681
  /* ------------------------------------------------------- modal + toast */
@@ -3545,18 +3740,29 @@ body[data-ds-dark-theme] .rvs-find {
3545
3740
  background: var(--rvs-hover);
3546
3741
  }
3547
3742
 
3743
+ /* Filled controls use the ink pair, never "accent fill + #fff": the accent
3744
+ under white text is 2.1–4.2:1 once the skins remap it (measured 2026-11-23).
3745
+ Danger keeps its red as the BORDER so the label stays on the plate's own
3746
+ foreground instead of white-on-red. */
3548
3747
  .rvs-modal-btn.primary {
3549
3748
  border-color: transparent;
3550
- background: var(--rvs-accent);
3551
- color: #fff;
3749
+ background: var(--rvs-fg);
3750
+ color: var(--rvs-code-bg);
3552
3751
  }
3553
3752
 
3554
3753
  .rvs-modal-btn.danger {
3754
+ /* Solid fill with an ink label, not a 1px red outline: the outline measured
3755
+ 1.76:1 on the dark mid-grey plate, i.e. the only "danger" cue vanished. */
3555
3756
  border-color: transparent;
3556
- background: var(--rvs-danger);
3757
+ background: #cf222e;
3557
3758
  color: #fff;
3558
3759
  }
3559
3760
 
3761
+ body[data-ds-dark-theme] .rvs-modal-btn.danger {
3762
+ background: #f25a5a;
3763
+ color: #1e2229;
3764
+ }
3765
+
3560
3766
  .rvs-toasts {
3561
3767
  position: fixed;
3562
3768
  right: 16px;
@@ -3586,6 +3792,10 @@ body[data-ds-dark-theme] .rvs-find {
3586
3792
  .rvs-toast.error {
3587
3793
  border-color: rgba(241, 76, 76, .6);
3588
3794
  background-image: linear-gradient(rgba(58, 31, 34, .92), rgba(58, 31, 34, .92));
3795
+ /* The error toast keeps its deliberately dark red plate in BOTH schemes, so
3796
+ its label cannot follow --rvs-fg (a near-black label in the light theme:
3797
+ 1.2–1.6:1). */
3798
+ color: #ffe3e0;
3589
3799
  }
3590
3800
 
3591
3801
  /* ------------------------------------------------------------- terminal */
@@ -3618,7 +3828,7 @@ body[data-ds-dark-theme] .rvs-find {
3618
3828
  border: none;
3619
3829
  border-radius: 6px;
3620
3830
  background: transparent;
3621
- color: var(--rvs-fg3);
3831
+ color: var(--rvs-fg2);
3622
3832
  font: inherit;
3623
3833
  font-size: 12px;
3624
3834
  cursor: pointer;
@@ -3755,10 +3965,10 @@ body[data-ds-dark-theme] .rvs-find {
3755
3965
  align-items: center;
3756
3966
  justify-content: center;
3757
3967
  padding: 0;
3758
- border: 1px solid var(--dsw-alias-brand-primary, #4d6bfe);
3968
+ border: 1px solid var(--rvs-fg2);
3759
3969
  border-radius: 5px;
3760
3970
  background: transparent;
3761
- color: var(--dsw-alias-brand-primary, #4d6bfe);
3971
+ color: var(--rvs-fg2);
3762
3972
  font: inherit;
3763
3973
  font-size: 14px;
3764
3974
  line-height: 1;
@@ -3766,8 +3976,10 @@ body[data-ds-dark-theme] .rvs-find {
3766
3976
  }
3767
3977
 
3768
3978
  .rvs-snips-add:hover {
3769
- background: var(--dsw-alias-brand-primary, #4d6bfe);
3770
- color: #fff;
3979
+ /* Same ink pair as the other filled controls: a brand fill behind #fff is
3980
+ 1.8–3.0:1 under the skins. */
3981
+ background: var(--dsw-alias-label-primary, CanvasText);
3982
+ color: var(--rvs-code-bg, Canvas);
3771
3983
  }
3772
3984
 
3773
3985
  .rvs-snips-list {
@@ -3782,7 +3994,7 @@ body[data-ds-dark-theme] .rvs-find {
3782
3994
 
3783
3995
  .rvs-snips-empty {
3784
3996
  padding: 10px 8px;
3785
- color: var(--dsw-alias-label-tertiary, #8b8b8b);
3997
+ color: var(--rvs-fg2);
3786
3998
  font-size: 11px;
3787
3999
  line-height: 1.6;
3788
4000
  }
@@ -3803,7 +4015,7 @@ body[data-ds-dark-theme] .rvs-find {
3803
4015
  .rvs-snips-grip {
3804
4016
  flex: none;
3805
4017
  padding: 0 2px;
3806
- color: var(--dsw-alias-label-tertiary, #8b8b8b);
4018
+ color: var(--rvs-fg2);
3807
4019
  font-size: 11px;
3808
4020
  cursor: grab;
3809
4021
  user-select: none;
@@ -3849,7 +4061,7 @@ body[data-ds-dark-theme] .rvs-find {
3849
4061
  overflow: hidden;
3850
4062
  text-overflow: ellipsis;
3851
4063
  white-space: nowrap;
3852
- color: var(--dsw-alias-label-secondary, #b9b9b9);
4064
+ color: var(--rvs-fg2);
3853
4065
  font-family: var(--rvs-mono, ui-monospace, monospace);
3854
4066
  font-size: 11px;
3855
4067
  }
@@ -3865,7 +4077,7 @@ body[data-ds-dark-theme] .rvs-find {
3865
4077
  border: 0;
3866
4078
  border-radius: 4px;
3867
4079
  background: transparent;
3868
- color: var(--dsw-alias-label-tertiary, #8b8b8b);
4080
+ color: var(--rvs-fg2);
3869
4081
  font: inherit;
3870
4082
  font-size: 12px;
3871
4083
  line-height: 1;
@@ -3883,7 +4095,7 @@ body[data-ds-dark-theme] .rvs-find {
3883
4095
  flex: none;
3884
4096
  padding: 4px 8px;
3885
4097
  border-top: 1px solid var(--dsw-alias-border-l1, rgba(127, 127, 127, .25));
3886
- color: var(--dsw-alias-label-tertiary, #8b8b8b);
4098
+ color: var(--rvs-fg2);
3887
4099
  font-size: 10.5px;
3888
4100
  }
3889
4101
 
@@ -3895,7 +4107,7 @@ body[data-ds-dark-theme] .rvs-find {
3895
4107
  flex-direction: column;
3896
4108
  gap: 4px;
3897
4109
  margin: 8px 0;
3898
- color: var(--dsw-alias-label-secondary, CanvasText);
4110
+ color: var(--rvs-fg2);
3899
4111
  font-size: 11.5px;
3900
4112
  }
3901
4113
 
@@ -3915,7 +4127,7 @@ body[data-ds-dark-theme] .rvs-find {
3915
4127
 
3916
4128
  .rvs-snips-field input:focus,
3917
4129
  .rvs-snips-field textarea:focus {
3918
- border-color: var(--dsw-alias-brand-primary, #4d6bfe);
4130
+ border-color: var(--rvs-fg);
3919
4131
  }
3920
4132
 
3921
4133
  .rvs-snips-command {
@@ -4006,7 +4218,7 @@ body[data-ds-dark-theme] .rvs-find {
4006
4218
  flex: none;
4007
4219
  align-self: center;
4008
4220
  font-size: 11px;
4009
- color: var(--rvs-fg3);
4221
+ color: var(--rvs-fg2);
4010
4222
  white-space: nowrap;
4011
4223
  }
4012
4224
 
@@ -4052,7 +4264,7 @@ body[data-ds-dark-theme] .rvs-find {
4052
4264
  font-size: 10.5px;
4053
4265
  line-height: 15px;
4054
4266
  text-align: center;
4055
- color: var(--rvs-fg3);
4267
+ color: var(--rvs-fg2);
4056
4268
  }
4057
4269
 
4058
4270
  .rvs-hit-lineno {
@@ -4082,7 +4294,7 @@ body[data-ds-dark-theme] .rvs-find {
4082
4294
 
4083
4295
  .rvs-hit-dir {
4084
4296
  flex: none;
4085
- color: var(--rvs-fg3);
4297
+ color: var(--rvs-fg2);
4086
4298
  font-size: 11px;
4087
4299
  }
4088
4300
 
@@ -4096,7 +4308,7 @@ body[data-ds-dark-theme] .rvs-find {
4096
4308
  border: 1px solid var(--rvs-border2);
4097
4309
  border-radius: 4px;
4098
4310
  font-size: 10px;
4099
- color: var(--rvs-fg3);
4311
+ color: var(--rvs-fg2);
4100
4312
  }
4101
4313
 
4102
4314
  /* --- SCM: repository directory row (git runs in THIS directory) ------------- */
@@ -4107,13 +4319,13 @@ body[data-ds-dark-theme] .rvs-find {
4107
4319
  gap: 4px;
4108
4320
  padding: 4px 8px 4px 10px;
4109
4321
  border-bottom: 1px solid var(--rvs-border);
4110
- background: var(--rvs-bg2, var(--dsw-alias-bg-layer-1, #1b1b1b));
4322
+ background: var(--dsw-alias-bg-layer-1, #1b1b1b);
4111
4323
  font-size: 11px;
4112
4324
  flex: none;
4113
4325
  }
4114
4326
 
4115
4327
  .rvs-repo-bar-label {
4116
- color: var(--rvs-fg3);
4328
+ color: var(--rvs-fg2);
4117
4329
  white-space: nowrap;
4118
4330
  }
4119
4331
 
@@ -4129,7 +4341,7 @@ body[data-ds-dark-theme] .rvs-find {
4129
4341
  padding: 2px 6px;
4130
4342
  border: 1px solid var(--rvs-border2);
4131
4343
  border-radius: 4px;
4132
- background: var(--rvs-bg3, rgba(255, 255, 255, .04));
4344
+ background: var(--rvs-input);
4133
4345
  color: var(--rvs-fg);
4134
4346
  font-family: var(--rvs-mono, ui-monospace, Consolas, monospace);
4135
4347
  font-size: 11px;
@@ -4138,7 +4350,7 @@ body[data-ds-dark-theme] .rvs-find {
4138
4350
 
4139
4351
  .rvs-repo-bar-path:hover {
4140
4352
  border-color: var(--rvs-brand);
4141
- color: var(--rvs-brand-fg, var(--rvs-fg));
4353
+ color: var(--rvs-fg);
4142
4354
  }
4143
4355
 
4144
4356
  .rvs-repo-bar-fix {
@@ -4185,13 +4397,13 @@ body[data-ds-dark-theme] .rvs-find {
4185
4397
  background: none;
4186
4398
  padding: 1px 3px;
4187
4399
  border-radius: 3px;
4188
- color: var(--rvs-brand-fg, var(--rvs-fg));
4400
+ color: var(--rvs-fg);
4189
4401
  font: inherit;
4190
4402
  cursor: pointer;
4191
4403
  }
4192
4404
 
4193
4405
  .rvs-crumb:hover {
4194
- background: var(--rvs-row-hover, rgba(255, 255, 255, .07));
4406
+ background: var(--rvs-hover);
4195
4407
  }
4196
4408
 
4197
4409
  .rvs-repopick-probe {
@@ -4199,7 +4411,7 @@ body[data-ds-dark-theme] .rvs-find {
4199
4411
  border-radius: 4px;
4200
4412
  font-size: 11.5px;
4201
4413
  border: 1px solid var(--rvs-border2);
4202
- background: var(--rvs-bg3, rgba(255, 255, 255, .04));
4414
+ background: var(--rvs-input);
4203
4415
  color: var(--rvs-fg2);
4204
4416
  }
4205
4417
 
@@ -4210,7 +4422,7 @@ body[data-ds-dark-theme] .rvs-find {
4210
4422
 
4211
4423
  .rvs-repopick-probe.inside {
4212
4424
  border-color: var(--rvs-brand);
4213
- color: var(--rvs-brand-fg, var(--rvs-fg));
4425
+ color: var(--rvs-fg);
4214
4426
  }
4215
4427
 
4216
4428
  .rvs-repopick-found {
@@ -4222,7 +4434,7 @@ body[data-ds-dark-theme] .rvs-find {
4222
4434
  }
4223
4435
 
4224
4436
  .rvs-repopick-found-label {
4225
- color: var(--rvs-fg3);
4437
+ color: var(--rvs-fg2);
4226
4438
  font-size: 11px;
4227
4439
  white-space: nowrap;
4228
4440
  }
@@ -4234,7 +4446,7 @@ body[data-ds-dark-theme] .rvs-find {
4234
4446
  overflow: auto;
4235
4447
  border: 1px solid var(--rvs-border);
4236
4448
  border-radius: 5px;
4237
- background: var(--rvs-bg-layer, rgba(0, 0, 0, .18));
4449
+ background: rgba(0, 0, 0, .18);
4238
4450
  padding: 2px;
4239
4451
  }
4240
4452
 
@@ -4255,7 +4467,7 @@ body[data-ds-dark-theme] .rvs-find {
4255
4467
  }
4256
4468
 
4257
4469
  .rvs-repopick-row:hover {
4258
- background: var(--rvs-row-hover, rgba(255, 255, 255, .07));
4470
+ background: var(--rvs-hover);
4259
4471
  }
4260
4472
 
4261
4473
  .rvs-repopick-row span {
@@ -4265,7 +4477,7 @@ body[data-ds-dark-theme] .rvs-find {
4265
4477
  }
4266
4478
 
4267
4479
  .rvs-repopick-dim {
4268
- color: var(--rvs-fg3);
4480
+ color: var(--rvs-fg2);
4269
4481
  font-size: 11.5px;
4270
4482
  padding: 6px;
4271
4483
  }
@@ -4310,6 +4522,7 @@ body[data-ds-dark-theme] .rvs-find {
4310
4522
  --rvs-overlay: var(--dsw-alias-bg-overlay, #24262e);
4311
4523
  --rvs-brand: var(--dsw-alias-brand-primary, #4d6bfe);
4312
4524
  --rvs-danger: var(--dsw-alias-state-error-primary, #e05555);
4525
+ --rvs-danger-text: #ff8b8b;
4313
4526
  --rvs-git-m: #e2b714;
4314
4527
  --rvs-git-a: #4ec9b0;
4315
4528
  --rvs-mono: 'Cascadia Code', 'Fira Code', 'JetBrains Mono', Consolas, 'Courier New', monospace;
@@ -4336,6 +4549,16 @@ body[data-ds-dark-theme] .rvs-execpanel {
4336
4549
  --rvs-code-fg: #d4d4d4;
4337
4550
  }
4338
4551
 
4552
+ /* The triple above is the DARK set: on the light overlay plate its mint "done"
4553
+ is 1.72:1 and its amber "cancelled" 1.61:1. The pair `.rvs-root` uses brings
4554
+ them to 5.52 / 4.91 (vanilla) and 6.01 / 5.35 (skin cream), declared here
4555
+ because this panel is portalled away from `.rvs-root`. */
4556
+ body:not([data-ds-dark-theme]) .rvs-execpanel {
4557
+ --rvs-git-m: #8a5c00;
4558
+ --rvs-git-a: #146c2e;
4559
+ --rvs-danger-text: #a52a2a;
4560
+ }
4561
+
4339
4562
 
4340
4563
  .rvs-execpanel-head {
4341
4564
  flex: none;
@@ -4358,12 +4581,12 @@ body[data-ds-dark-theme] .rvs-execpanel {
4358
4581
  .rvs-execpanel-status {
4359
4582
  flex: none;
4360
4583
  font-size: 11px;
4361
- color: var(--rvs-fg3);
4584
+ color: var(--rvs-fg2);
4362
4585
  font-variant-numeric: tabular-nums;
4363
4586
  }
4364
4587
 
4365
4588
  .rvs-execpanel-status.done { color: var(--rvs-git-a); }
4366
- .rvs-execpanel-status.error { color: var(--rvs-danger); }
4589
+ .rvs-execpanel-status.error { color: var(--rvs-danger-text); }
4367
4590
  .rvs-execpanel-status.cancelled { color: var(--rvs-git-m); }
4368
4591
 
4369
4592
  .rvs-execpanel-spacer {
@@ -4391,7 +4614,7 @@ body[data-ds-dark-theme] .rvs-execpanel {
4391
4614
  flex: none;
4392
4615
  padding: 4px 10px 6px;
4393
4616
  border-top: 1px solid var(--rvs-border);
4394
- color: var(--rvs-fg3);
4617
+ color: var(--rvs-fg2);
4395
4618
  font-size: 11px;
4396
4619
  }
4397
4620
 
@@ -4407,6 +4630,7 @@ body[data-ds-dark-theme] .rvs-execpanel {
4407
4630
  --rvs-overlay: var(--dsw-alias-bg-overlay, #24262e);
4408
4631
  --rvs-brand: var(--dsw-alias-brand-primary, #4d6bfe);
4409
4632
  --rvs-danger: var(--dsw-alias-state-error-primary, #e05555);
4633
+ --rvs-danger-text: #ff8b8b;
4410
4634
  --rvs-git-m: #e2b714;
4411
4635
  --rvs-git-a: #4ec9b0;
4412
4636
  position: fixed;
@@ -4432,6 +4656,12 @@ body[data-ds-dark-theme] .rvs-execpanel {
4432
4656
  box-shadow: 0 18px 60px rgba(0, 0, 0, .45), 0 2px 8px rgba(0, 0, 0, .28);
4433
4657
  }
4434
4658
 
4659
+ body:not([data-ds-dark-theme]) .rvs-downloads {
4660
+ --rvs-git-m: #8a5c00;
4661
+ --rvs-git-a: #146c2e;
4662
+ --rvs-danger-text: #a52a2a;
4663
+ }
4664
+
4435
4665
  .rvs-download {
4436
4666
  display: flex;
4437
4667
  flex-direction: column;
@@ -4469,11 +4699,11 @@ body[data-ds-dark-theme] .rvs-execpanel {
4469
4699
  .rvs-download-status {
4470
4700
  flex: none;
4471
4701
  font-size: 11px;
4472
- color: var(--rvs-fg3);
4702
+ color: var(--rvs-fg2);
4473
4703
  }
4474
4704
 
4475
4705
  .rvs-download-status.done { color: var(--rvs-git-a); }
4476
- .rvs-download-status.failed { color: var(--rvs-danger); }
4706
+ .rvs-download-status.failed { color: var(--rvs-danger-text); }
4477
4707
  .rvs-download-status.cancelled { color: var(--rvs-git-m); }
4478
4708
 
4479
4709
  .rvs-download-bar {
@@ -4508,13 +4738,13 @@ body[data-ds-dark-theme] .rvs-execpanel {
4508
4738
 
4509
4739
  .rvs-download-meta {
4510
4740
  overflow: hidden;
4511
- color: var(--rvs-fg3);
4741
+ color: var(--rvs-fg2);
4512
4742
  font-size: 11px;
4513
4743
  text-overflow: ellipsis;
4514
4744
  white-space: nowrap;
4515
4745
  }
4516
4746
 
4517
- .rvs-download-meta.failed { color: var(--rvs-danger); white-space: normal; word-break: break-word; }
4747
+ .rvs-download-meta.failed { color: var(--rvs-danger-text); white-space: normal; word-break: break-word; }
4518
4748
  .rvs-download-meta.done { color: var(--rvs-fg2); }
4519
4749
  .rvs-download-meta.cancelled { color: var(--rvs-git-m); }
4520
4750
 
@@ -4558,6 +4788,28 @@ body[data-ds-dark-theme] .rvs-execpanel {
4558
4788
  box-shadow: 0 8px 32px rgba(0, 0, 0, .35);
4559
4789
  }
4560
4790
 
4791
+ /* `ok` / `missing` on the light plate: #2ea043 is 3.09:1 on the skin's cream,
4792
+ #8a5c00 keeps the amber readable (5.35:1). Declared here because this sheet
4793
+ is portalled away from `.rvs-root`, whose light overrides cannot reach it. */
4794
+ body:not([data-ds-dark-theme]) .rvs-doctor {
4795
+ --rvs-ok: #146c2e;
4796
+ --rvs-git-m: #8a5c00;
4797
+ }
4798
+
4799
+ /*
4800
+ * Dark tool plates. The exec panel, download dock and doctor card carry
4801
+ * status colours from the dark git set, tuned for the #1b1b1c / #222944
4802
+ * leaves: on the mid-grey overlay plate they measured 1.7-3.0:1 (done
4803
+ * 2.85, cancelled 3.04, error 2.57, status 2.72). They are OPAQUE tool
4804
+ * windows, so dark paints the code surface (#1e1e1e, the log body colour)
4805
+ * and every status then measures 6.2-8.7:1. Light is unchanged.
4806
+ */
4807
+ body[data-ds-dark-theme] .rvs-execpanel,
4808
+ body[data-ds-dark-theme] .rvs-downloads,
4809
+ body[data-ds-dark-theme] .rvs-doctor {
4810
+ --rvs-overlay: #1e1e1e;
4811
+ }
4812
+
4561
4813
  .rvs-doctor-head {
4562
4814
  flex: none;
4563
4815
  display: flex;
@@ -4628,7 +4880,7 @@ body[data-ds-dark-theme] .rvs-execpanel {
4628
4880
  .rvs-doctor-badge.unknown { color: var(--rvs-fg3); }
4629
4881
 
4630
4882
  .rvs-doctor-detail {
4631
- color: var(--rvs-fg3);
4883
+ color: var(--rvs-fg2);
4632
4884
  font-family: var(--rvs-mono);
4633
4885
  font-size: 11px;
4634
4886
  word-break: break-word;
@@ -4639,7 +4891,7 @@ body[data-ds-dark-theme] .rvs-execpanel {
4639
4891
  flex: none;
4640
4892
  padding: 8px 12px;
4641
4893
  border-top: 1px solid var(--rvs-border);
4642
- color: var(--rvs-fg3);
4894
+ color: var(--rvs-fg2);
4643
4895
  font-size: 11px;
4644
4896
  }
4645
4897
 
@@ -4692,7 +4944,7 @@ body[data-ds-dark-theme] .rvs-execpanel {
4692
4944
  }
4693
4945
 
4694
4946
  .rvs-ports-label {
4695
- color: var(--rvs-fg3);
4947
+ color: var(--rvs-fg2);
4696
4948
  font-size: 11px;
4697
4949
  }
4698
4950
 
@@ -4732,7 +4984,7 @@ body[data-ds-dark-theme] .rvs-execpanel {
4732
4984
  padding: 0 6px;
4733
4985
  border-radius: 999px;
4734
4986
  background: var(--rvs-hover);
4735
- color: var(--rvs-fg3);
4987
+ color: var(--rvs-fg2);
4736
4988
  font-size: 10.5px;
4737
4989
  letter-spacing: 0;
4738
4990
  }
@@ -4773,7 +5025,7 @@ body[data-ds-dark-theme] .rvs-execpanel {
4773
5025
  overflow: hidden;
4774
5026
  text-overflow: ellipsis;
4775
5027
  white-space: nowrap;
4776
- color: var(--rvs-fg3);
5028
+ color: var(--rvs-fg2);
4777
5029
  font-size: 11px;
4778
5030
  }
4779
5031
 
@@ -4795,13 +5047,13 @@ body[data-ds-dark-theme] .rvs-execpanel {
4795
5047
  }
4796
5048
 
4797
5049
  .rvs-ports-conn {
4798
- color: var(--rvs-fg3);
5050
+ color: var(--rvs-fg2);
4799
5051
  font-size: 11px;
4800
5052
  white-space: nowrap;
4801
5053
  }
4802
5054
 
4803
5055
  .rvs-ports-err {
4804
- color: var(--rvs-danger);
5056
+ color: var(--rvs-danger-text);
4805
5057
  font-size: 11px;
4806
5058
  line-height: 1.45;
4807
5059
  overflow-wrap: anywhere;
@@ -4822,7 +5074,7 @@ body[data-ds-dark-theme] .rvs-execpanel {
4822
5074
 
4823
5075
  .rvs-ports-hint {
4824
5076
  margin-top: 4px;
4825
- color: var(--rvs-fg3);
5077
+ color: var(--rvs-fg2);
4826
5078
  font-size: 11px;
4827
5079
  line-height: 1.45;
4828
5080
  overflow-wrap: anywhere;
@@ -4877,7 +5129,7 @@ body[data-ds-dark-theme] .rvs-execpanel {
4877
5129
  }
4878
5130
 
4879
5131
  .rvs-monitor-settings-hint {
4880
- color: var(--rvs-fg3);
5132
+ color: var(--rvs-fg2);
4881
5133
  font-size: 10.5px;
4882
5134
  }
4883
5135
 
@@ -4938,7 +5190,7 @@ body[data-ds-dark-theme] .rvs-execpanel {
4938
5190
  text-overflow: ellipsis;
4939
5191
  white-space: nowrap;
4940
5192
  text-align: right;
4941
- color: var(--rvs-fg3);
5193
+ color: var(--rvs-fg2);
4942
5194
  font-size: 10.5px;
4943
5195
  }
4944
5196
 
@@ -4961,15 +5213,15 @@ body[data-ds-dark-theme] .rvs-execpanel {
4961
5213
  }
4962
5214
 
4963
5215
  .rvs-monitor-state.error {
4964
- color: var(--rvs-danger);
5216
+ color: var(--rvs-danger-text);
4965
5217
  }
4966
5218
 
4967
5219
  .rvs-monitor-state.unknown {
4968
- color: var(--rvs-fg3);
5220
+ color: var(--rvs-fg2);
4969
5221
  }
4970
5222
 
4971
5223
  .rvs-monitor-age {
4972
- color: var(--rvs-fg3);
5224
+ color: var(--rvs-fg2);
4973
5225
  font-variant-numeric: tabular-nums;
4974
5226
  }
4975
5227
 
@@ -5103,7 +5355,7 @@ body[data-ds-dark-theme] .rvs-execpanel {
5103
5355
  align-items: center;
5104
5356
  gap: 7px;
5105
5357
  flex: none;
5106
- color: var(--rvs-fg3);
5358
+ color: var(--rvs-fg2);
5107
5359
  font-size: 10px;
5108
5360
  }
5109
5361
 
@@ -5162,13 +5414,13 @@ body[data-ds-dark-theme] .rvs-execpanel {
5162
5414
  .rvs-monitor-spark-empty {
5163
5415
  padding: 8px 0 4px;
5164
5416
  text-align: center;
5165
- color: var(--rvs-fg3);
5417
+ color: var(--rvs-fg2);
5166
5418
  font-size: 10.5px;
5167
5419
  }
5168
5420
 
5169
5421
  .rvs-monitor-hint {
5170
5422
  margin-top: 8px;
5171
- color: var(--rvs-fg3);
5423
+ color: var(--rvs-fg2);
5172
5424
  font-size: 10.5px;
5173
5425
  line-height: 1.5;
5174
5426
  overflow-wrap: anywhere;
@@ -5182,7 +5434,7 @@ body[data-ds-dark-theme] .rvs-execpanel {
5182
5434
 
5183
5435
  .rvs-monitor-summary {
5184
5436
  padding: 0 2px 4px;
5185
- color: var(--rvs-fg3);
5437
+ color: var(--rvs-fg2);
5186
5438
  font-size: 11px;
5187
5439
  }
5188
5440
 
@@ -5233,7 +5485,7 @@ body[data-ds-dark-theme] .rvs-execpanel {
5233
5485
  overflow: hidden;
5234
5486
  text-overflow: ellipsis;
5235
5487
  white-space: nowrap;
5236
- color: var(--rvs-fg3);
5488
+ color: var(--rvs-fg2);
5237
5489
  font-size: 10.5px;
5238
5490
  }
5239
5491
 
@@ -5261,7 +5513,7 @@ body[data-ds-dark-theme] .rvs-execpanel {
5261
5513
  display: grid;
5262
5514
  grid-template-columns: repeat(3, minmax(0, 1fr));
5263
5515
  gap: 8px;
5264
- color: var(--rvs-fg3);
5516
+ color: var(--rvs-fg2);
5265
5517
  font-size: 10.5px;
5266
5518
  font-variant-numeric: tabular-nums;
5267
5519
  }
@@ -5310,6 +5562,7 @@ body[data-ds-dark-theme] .rvs-execpanel {
5310
5562
  --rvs-input: var(--dsw-alias-bg-input, rgba(127, 127, 127, .12));
5311
5563
  --rvs-brand: var(--dsw-alias-brand-primary, #4d6bfe);
5312
5564
  --rvs-danger: var(--dsw-alias-state-error-primary, #e05555);
5565
+ --rvs-danger-text: #ff8b8b;
5313
5566
  --rvs-git-m: #e2b714;
5314
5567
  --rvs-mono: 'Cascadia Code', 'Fira Code', 'JetBrains Mono', Consolas, 'Courier New', monospace;
5315
5568
  position: fixed;
@@ -5325,6 +5578,11 @@ body[data-ds-dark-theme] .rvs-execpanel {
5325
5578
  animation: rvsFade .12s ease;
5326
5579
  }
5327
5580
 
5581
+ body:not([data-ds-dark-theme]) .rvs-qo-mask {
5582
+ --rvs-git-m: #8a5c00;
5583
+ --rvs-danger-text: #a52a2a;
5584
+ }
5585
+
5328
5586
  /**
5329
5587
  * Opaque base first, skin overlay on top: the overlay token is frequently
5330
5588
  * translucent, and using it alone let the panel's text bleed through the sheet
@@ -5369,12 +5627,12 @@ body[data-ds-dark-theme] .rvs-execpanel {
5369
5627
  }
5370
5628
 
5371
5629
  .rvs-qo-input:focus {
5372
- border-color: var(--rvs-brand);
5630
+ border-color: var(--rvs-fg);
5373
5631
  }
5374
5632
 
5375
5633
  .rvs-qo-hint {
5376
5634
  flex: none;
5377
- color: var(--rvs-fg3);
5635
+ color: var(--rvs-fg2);
5378
5636
  font-size: 11px;
5379
5637
  white-space: nowrap;
5380
5638
  }
@@ -5411,7 +5669,7 @@ body[data-ds-dark-theme] .rvs-execpanel {
5411
5669
  min-width: 0;
5412
5670
  overflow: hidden;
5413
5671
  text-overflow: ellipsis;
5414
- color: var(--rvs-fg3);
5672
+ color: var(--rvs-fg2);
5415
5673
  font-size: 11.5px;
5416
5674
  }
5417
5675
 
@@ -5439,7 +5697,7 @@ body[data-ds-dark-theme] .rvs-execpanel {
5439
5697
  overflow-y: auto;
5440
5698
  padding: 6px 12px;
5441
5699
  border-top: 1px solid var(--rvs-border);
5442
- color: var(--rvs-fg3);
5700
+ color: var(--rvs-fg2);
5443
5701
  font-size: 11px;
5444
5702
  }
5445
5703
 
@@ -5450,7 +5708,7 @@ body[data-ds-dark-theme] .rvs-execpanel {
5450
5708
  }
5451
5709
 
5452
5710
  .rvs-qo-note.error {
5453
- color: var(--rvs-danger);
5711
+ color: var(--rvs-danger-text);
5454
5712
  }
5455
5713
 
5456
5714
  .rvs-qo-note.warn {