diffdesk 0.1.0__py3-none-any.whl

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 (59) hide show
  1. diffdesk/__init__.py +3 -0
  2. diffdesk/agent.py +414 -0
  3. diffdesk/agent_guide.md +112 -0
  4. diffdesk/cli.py +329 -0
  5. diffdesk/config.py +130 -0
  6. diffdesk/gitio.py +391 -0
  7. diffdesk/index.py +635 -0
  8. diffdesk/mcp.py +472 -0
  9. diffdesk/server.py +750 -0
  10. diffdesk/static/app.js +402 -0
  11. diffdesk/static/index.html +129 -0
  12. diffdesk/static/js/api.js +58 -0
  13. diffdesk/static/js/boot.js +12 -0
  14. diffdesk/static/js/diffview.js +359 -0
  15. diffdesk/static/js/dom.js +82 -0
  16. diffdesk/static/js/editor-cm.js +225 -0
  17. diffdesk/static/js/editor-monaco.js +116 -0
  18. diffdesk/static/js/flow.js +227 -0
  19. diffdesk/static/js/hunks.js +40 -0
  20. diffdesk/static/js/markdown.js +102 -0
  21. diffdesk/static/js/settings.js +228 -0
  22. diffdesk/static/js/subject.js +127 -0
  23. diffdesk/static/js/tree.js +492 -0
  24. diffdesk/static/js/treemap.js +217 -0
  25. diffdesk/static/style.css +508 -0
  26. diffdesk/static/vendor/LICENSES.txt +603 -0
  27. diffdesk/static/vendor/codemirror.js +24 -0
  28. diffdesk/static/vendor/fonts/KaTeX_AMS-Regular.woff2 +0 -0
  29. diffdesk/static/vendor/fonts/KaTeX_Caligraphic-Bold.woff2 +0 -0
  30. diffdesk/static/vendor/fonts/KaTeX_Caligraphic-Regular.woff2 +0 -0
  31. diffdesk/static/vendor/fonts/KaTeX_Fraktur-Bold.woff2 +0 -0
  32. diffdesk/static/vendor/fonts/KaTeX_Fraktur-Regular.woff2 +0 -0
  33. diffdesk/static/vendor/fonts/KaTeX_Main-Bold.woff2 +0 -0
  34. diffdesk/static/vendor/fonts/KaTeX_Main-BoldItalic.woff2 +0 -0
  35. diffdesk/static/vendor/fonts/KaTeX_Main-Italic.woff2 +0 -0
  36. diffdesk/static/vendor/fonts/KaTeX_Main-Regular.woff2 +0 -0
  37. diffdesk/static/vendor/fonts/KaTeX_Math-BoldItalic.woff2 +0 -0
  38. diffdesk/static/vendor/fonts/KaTeX_Math-Italic.woff2 +0 -0
  39. diffdesk/static/vendor/fonts/KaTeX_SansSerif-Bold.woff2 +0 -0
  40. diffdesk/static/vendor/fonts/KaTeX_SansSerif-Italic.woff2 +0 -0
  41. diffdesk/static/vendor/fonts/KaTeX_SansSerif-Regular.woff2 +0 -0
  42. diffdesk/static/vendor/fonts/KaTeX_Script-Regular.woff2 +0 -0
  43. diffdesk/static/vendor/fonts/KaTeX_Size1-Regular.woff2 +0 -0
  44. diffdesk/static/vendor/fonts/KaTeX_Size2-Regular.woff2 +0 -0
  45. diffdesk/static/vendor/fonts/KaTeX_Size3-Regular.woff2 +0 -0
  46. diffdesk/static/vendor/fonts/KaTeX_Size4-Regular.woff2 +0 -0
  47. diffdesk/static/vendor/fonts/KaTeX_Typewriter-Regular.woff2 +0 -0
  48. diffdesk/static/vendor/fonts/OFL.txt +102 -0
  49. diffdesk/static/vendor/katex.css +2 -0
  50. diffdesk/static/vendor/katex.js +258 -0
  51. diffdesk/static/vendor/marked.js +72 -0
  52. diffdesk/subject.schema.json +59 -0
  53. diffdesk-0.1.0.dist-info/METADATA +520 -0
  54. diffdesk-0.1.0.dist-info/RECORD +59 -0
  55. diffdesk-0.1.0.dist-info/WHEEL +4 -0
  56. diffdesk-0.1.0.dist-info/entry_points.txt +2 -0
  57. diffdesk-0.1.0.dist-info/licenses/LICENSE +21 -0
  58. diffdesk-0.1.0.dist-info/licenses/src/diffdesk/static/vendor/LICENSES.txt +603 -0
  59. diffdesk-0.1.0.dist-info/licenses/src/diffdesk/static/vendor/fonts/OFL.txt +102 -0
@@ -0,0 +1,508 @@
1
+ /* Themes: every colour is a variable on :root. data-theme is light, dark or contrast. */
2
+ :root {
3
+ --ui-font-size: 13px;
4
+ --code-font: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
5
+ --code-font-size: 12px;
6
+ --side-width: 340px;
7
+
8
+ --bg: #ffffff;
9
+ --bg-side: #f4f4f5;
10
+ --bg-hover: #e7e7ea;
11
+ --bg-active: #dbe7f7;
12
+ --fg: #1f1f1f;
13
+ --fg-dim: #5f5f66;
14
+ --border: #d4d4d8;
15
+ --accent: #0a66c2;
16
+ --ok: #1a7f37;
17
+ --bad: #c62828;
18
+ --warn: #9a6700;
19
+ --info: #6f42c1;
20
+ --code-bg: #eeeef0;
21
+ --st-pending: #b4b4bb;
22
+ --st-accepted: #2da44e;
23
+ --st-rejected: #d1242f;
24
+ --st-change: #d4a72c;
25
+ --active-line: rgba(10, 102, 194, 0.06);
26
+ --selection: rgba(10, 102, 194, 0.22);
27
+ --selection-match: rgba(10, 102, 194, 0.12);
28
+ --search-match: rgba(212, 167, 44, 0.35);
29
+ --diff-ins-line: rgba(45, 164, 78, 0.13);
30
+ --diff-del-line: rgba(209, 36, 47, 0.11);
31
+ --diff-ins-text: rgba(45, 164, 78, 0.32);
32
+ --diff-del-text: rgba(209, 36, 47, 0.28);
33
+ --syn-keyword: #a626a4;
34
+ --syn-function: #4078f2;
35
+ --syn-def: #0550ae;
36
+ --syn-type: #b45309;
37
+ --syn-number: #986801;
38
+ --syn-string: #2f7a1f;
39
+ --syn-comment: #6e7781;
40
+ --syn-meta: #8250df;
41
+ --syn-property: #0a6b79;
42
+ color-scheme: light;
43
+ }
44
+
45
+ :root[data-theme="dark"] {
46
+ --bg: #1e1e1e;
47
+ --bg-side: #252526;
48
+ --bg-hover: #2f3133;
49
+ --bg-active: #04395e;
50
+ --fg: #d4d4d4;
51
+ --fg-dim: #9d9d9d;
52
+ --border: #3c3c3c;
53
+ --accent: #4fa3f7;
54
+ --ok: #3fb950;
55
+ --bad: #f85149;
56
+ --warn: #d29922;
57
+ --info: #b392f0;
58
+ --code-bg: #2d2d2d;
59
+ --st-pending: #5a5a5f;
60
+ --st-accepted: #3fb950;
61
+ --st-rejected: #f85149;
62
+ --st-change: #d29922;
63
+ --active-line: rgba(255, 255, 255, 0.04);
64
+ --selection: rgba(79, 163, 247, 0.3);
65
+ --selection-match: rgba(79, 163, 247, 0.15);
66
+ --search-match: rgba(210, 153, 34, 0.35);
67
+ --diff-ins-line: rgba(63, 185, 80, 0.14);
68
+ --diff-del-line: rgba(248, 81, 73, 0.13);
69
+ --diff-ins-text: rgba(63, 185, 80, 0.38);
70
+ --diff-del-text: rgba(248, 81, 73, 0.36);
71
+ --syn-keyword: #c586c0;
72
+ --syn-function: #dcdcaa;
73
+ --syn-def: #9cdcfe;
74
+ --syn-type: #4ec9b0;
75
+ --syn-number: #b5cea8;
76
+ --syn-string: #ce9178;
77
+ --syn-comment: #8b949e;
78
+ --syn-meta: #d7ba7d;
79
+ --syn-property: #9cdcfe;
80
+ color-scheme: dark;
81
+ }
82
+
83
+ :root[data-theme="contrast"] {
84
+ --bg: #000000;
85
+ --bg-side: #000000;
86
+ --bg-hover: #1a1a1a;
87
+ --bg-active: #003a70;
88
+ --fg: #ffffff;
89
+ --fg-dim: #e0e0e0;
90
+ --border: #ffffff;
91
+ --accent: #ffd700;
92
+ --ok: #4cff6a;
93
+ --bad: #ff6b6b;
94
+ --warn: #ffd700;
95
+ --info: #d0a8ff;
96
+ --code-bg: #1a1a1a;
97
+ --st-pending: #8a8a8a;
98
+ --st-accepted: #4cff6a;
99
+ --st-rejected: #ff6b6b;
100
+ --st-change: #ffd700;
101
+ --active-line: rgba(255, 255, 255, 0.08);
102
+ --selection: rgba(255, 215, 0, 0.4);
103
+ --selection-match: rgba(255, 215, 0, 0.2);
104
+ --search-match: rgba(255, 215, 0, 0.5);
105
+ --diff-ins-line: rgba(76, 255, 106, 0.18);
106
+ --diff-del-line: rgba(255, 107, 107, 0.2);
107
+ --diff-ins-text: rgba(76, 255, 106, 0.5);
108
+ --diff-del-text: rgba(255, 107, 107, 0.5);
109
+ --syn-keyword: #ff9cf5;
110
+ --syn-function: #ffff8c;
111
+ --syn-def: #8cd8ff;
112
+ --syn-type: #6cf5d6;
113
+ --syn-number: #c8ff9c;
114
+ --syn-string: #ffb38c;
115
+ --syn-comment: #c0c0c0;
116
+ --syn-meta: #ffd98c;
117
+ --syn-property: #8cd8ff;
118
+ color-scheme: dark;
119
+ }
120
+
121
+ :root[data-motion="reduce"] *,
122
+ :root[data-motion="reduce"] *::before,
123
+ :root[data-motion="reduce"] *::after {
124
+ transition: none !important;
125
+ animation: none !important;
126
+ scroll-behavior: auto !important;
127
+ }
128
+
129
+ * { box-sizing: border-box; }
130
+
131
+ html, body {
132
+ margin: 0;
133
+ height: 100%;
134
+ background: var(--bg);
135
+ color: var(--fg);
136
+ font: var(--ui-font-size)/1.45 -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
137
+ }
138
+
139
+ [hidden] { display: none !important; }
140
+
141
+ button, select, input, textarea { font: inherit; color: inherit; }
142
+
143
+ button {
144
+ background: var(--bg-side);
145
+ border: 1px solid var(--border);
146
+ border-radius: 4px;
147
+ padding: 3px 10px;
148
+ cursor: pointer;
149
+ }
150
+ button:hover:not(:disabled) { background: var(--bg-hover); }
151
+ button:disabled { opacity: 0.45; cursor: default; }
152
+ button.icon { padding: 2px 8px; font-size: 1.15em; line-height: 1.2; }
153
+ button.link {
154
+ border: 0;
155
+ background: none;
156
+ padding: 0;
157
+ color: var(--accent);
158
+ text-decoration: underline;
159
+ }
160
+
161
+ :focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
162
+
163
+ input[type="search"], input[type="text"], input[type="number"], select, textarea {
164
+ background: var(--bg);
165
+ border: 1px solid var(--border);
166
+ border-radius: 4px;
167
+ padding: 4px 6px;
168
+ }
169
+
170
+ code, .mono, .sid, kbd { font-family: var(--code-font); }
171
+ code { font-size: 0.92em; }
172
+
173
+ .dim { color: var(--fg-dim); }
174
+ .error { color: var(--bad); }
175
+ .add { color: var(--ok); }
176
+ .del { color: var(--bad); }
177
+
178
+ #app {
179
+ display: flex;
180
+ height: 100vh;
181
+ overflow: hidden;
182
+ }
183
+
184
+ /* Side panel */
185
+ #side {
186
+ width: var(--side-width);
187
+ min-width: 220px;
188
+ max-width: 60vw;
189
+ resize: horizontal;
190
+ overflow: hidden;
191
+ display: flex;
192
+ flex-direction: column;
193
+ background: var(--bg-side);
194
+ border-right: 1px solid var(--border);
195
+ }
196
+ .side-head {
197
+ padding: 8px;
198
+ display: flex;
199
+ flex-direction: column;
200
+ gap: 6px;
201
+ border-bottom: 1px solid var(--border);
202
+ }
203
+ .side-title { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
204
+ .side-title h1 {
205
+ font-size: 1.08em;
206
+ margin: 0;
207
+ white-space: nowrap;
208
+ overflow: hidden;
209
+ text-overflow: ellipsis;
210
+ }
211
+ .counter { color: var(--fg-dim); white-space: nowrap; }
212
+
213
+ .segmented { display: inline-flex; }
214
+ .segmented button { border-radius: 0; margin-left: -1px; }
215
+ .segmented button:first-child { border-radius: 4px 0 0 4px; margin-left: 0; }
216
+ .segmented button:last-child { border-radius: 0 4px 4px 0; }
217
+ .segmented button[aria-selected="true"], .segmented button[aria-pressed="true"] {
218
+ background: var(--accent);
219
+ border-color: var(--accent);
220
+ color: var(--bg);
221
+ }
222
+ .side-head .segmented button { flex: 1; }
223
+ .side-head .segmented { display: flex; }
224
+
225
+ .filters { display: flex; gap: 6px; }
226
+ .filters input { flex: 1; min-width: 0; }
227
+ .pkg-filter { display: flex; justify-content: space-between; align-items: center; color: var(--fg-dim); }
228
+
229
+ .view { flex: 1; min-height: 0; position: relative; }
230
+
231
+ /* Tree (virtual list) */
232
+ .tree { overflow: auto; outline-offset: -2px; contain: strict; }
233
+ .vl-spacer { width: 1px; }
234
+ .vl-window { position: absolute; top: 0; left: 0; right: 0; will-change: transform; }
235
+ .row {
236
+ display: flex;
237
+ align-items: center;
238
+ gap: 6px;
239
+ height: calc(var(--ui-font-size) * 1.95);
240
+ padding-right: 8px;
241
+ white-space: nowrap;
242
+ cursor: default;
243
+ border-left: 2px solid transparent;
244
+ }
245
+ .row[role="treeitem"] { cursor: pointer; }
246
+ .row[role="treeitem"]:hover { background: var(--bg-hover); }
247
+ .row.active { background: var(--bg-active); }
248
+ .tree:focus-visible .row.focus, .tree:focus .row.focus { border-left-color: var(--accent); }
249
+ .row .caret { width: 1em; flex: none; text-align: center; color: var(--fg-dim); }
250
+ .row .name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
251
+ .row-package .name { font-weight: 600; }
252
+ .row .name.group { font-weight: 600; color: var(--fg-dim); font-size: 0.9em; text-transform: uppercase; letter-spacing: 0.03em; }
253
+ .row .sid { flex: none; font-size: 0.92em; }
254
+ .row .count { flex: none; color: var(--fg-dim); font-variant-numeric: tabular-nums; font-size: 0.92em; }
255
+ .row .bar { width: 44px; }
256
+
257
+ .bar {
258
+ display: inline-flex;
259
+ flex: none;
260
+ height: 6px;
261
+ border-radius: 3px;
262
+ overflow: hidden;
263
+ background: var(--st-pending);
264
+ }
265
+ .bar i { display: block; height: 100%; }
266
+ .st-pending { background: var(--st-pending); }
267
+ .st-accepted { background: var(--st-accepted); }
268
+ .st-rejected { background: var(--st-rejected); }
269
+ .st-change { background: var(--st-change); }
270
+
271
+ .mark {
272
+ flex: none;
273
+ font-size: 0.82em;
274
+ color: var(--accent);
275
+ border: 1px solid currentColor;
276
+ border-radius: 3px;
277
+ padding: 0 4px;
278
+ line-height: 1.35;
279
+ }
280
+ .mark.dirty { color: var(--warn); }
281
+
282
+ .badge, .tag {
283
+ display: inline-block;
284
+ font-size: 0.82em;
285
+ line-height: 1.5;
286
+ padding: 0 6px;
287
+ border-radius: 3px;
288
+ white-space: nowrap;
289
+ }
290
+ .badge { font-weight: 600; color: #000; }
291
+ .badge.st-pending { color: var(--fg); }
292
+ .badge.edited { background: none; color: var(--accent); border: 1px solid var(--accent); margin-left: 4px; }
293
+ .tag { border: 1px solid var(--border); color: var(--fg-dim); }
294
+
295
+ /* Flow */
296
+ .flow { overflow: auto; padding: 8px; }
297
+ .flow svg { display: block; }
298
+ .flow .node { cursor: pointer; }
299
+ .flow .node rect.box { fill: var(--bg); stroke: var(--border); }
300
+ .flow .node:hover rect.box, .flow .node:focus-visible rect.box { stroke: var(--accent); }
301
+ .flow .node.selected rect.box { stroke: var(--accent); stroke-width: 2; }
302
+ .flow .node text { fill: var(--fg); font-size: var(--ui-font-size); }
303
+ .flow .node text.sub { fill: var(--fg-dim); font-size: calc(var(--ui-font-size) * 0.85); }
304
+ .flow .edge { fill: none; stroke: var(--fg-dim); stroke-width: 1.2; }
305
+ .flow .arrow { fill: var(--fg-dim); }
306
+ .flow .seg-pending { fill: var(--st-pending); }
307
+ .flow .seg-accepted { fill: var(--st-accepted); }
308
+ .flow .seg-rejected { fill: var(--st-rejected); }
309
+ .flow .seg-change { fill: var(--st-change); }
310
+ .view-note { color: var(--fg-dim); padding: 6px 2px; margin: 0; }
311
+
312
+ /* Treemap */
313
+ .treemap { display: flex; flex-direction: column; }
314
+ .treemap .canvas-box { flex: 1; min-height: 0; position: relative; }
315
+ .treemap canvas { position: absolute; inset: 0; width: 100%; height: 100%; cursor: pointer; }
316
+ .treemap .view-note { padding: 6px 8px; }
317
+ .legend { display: flex; flex-wrap: wrap; gap: 4px 10px; padding: 6px 8px; color: var(--fg-dim); }
318
+ .legend span { display: inline-flex; align-items: center; gap: 4px; }
319
+ .legend i { width: 10px; height: 10px; border-radius: 2px; display: inline-block; }
320
+
321
+ .tooltip {
322
+ position: fixed;
323
+ z-index: 10;
324
+ max-width: 360px;
325
+ pointer-events: none;
326
+ background: var(--bg);
327
+ color: var(--fg);
328
+ border: 1px solid var(--border);
329
+ border-radius: 4px;
330
+ padding: 4px 8px;
331
+ box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
332
+ }
333
+
334
+ /* Main panel */
335
+ #main { flex: 1; min-width: 0; display: flex; flex-direction: column; container: main / inline-size; }
336
+ .toolbar {
337
+ display: flex;
338
+ align-items: center;
339
+ gap: 6px;
340
+ padding: 6px 10px;
341
+ border-bottom: 1px solid var(--border);
342
+ background: var(--bg-side);
343
+ }
344
+ .grow { flex: 1; }
345
+ .empty { margin: auto; color: var(--fg-dim); padding: 20px; }
346
+
347
+ #subject { flex: 1; min-height: 0; display: flex; flex-direction: column; }
348
+
349
+ #s-head {
350
+ padding: 8px 14px;
351
+ border-bottom: 1px solid var(--border);
352
+ max-height: 42vh;
353
+ overflow-y: auto;
354
+ resize: vertical;
355
+ flex-shrink: 0;
356
+ }
357
+ #subject.no-diff-mode #s-head { max-height: none; flex: 1; resize: none; }
358
+
359
+ .title-row { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
360
+ .title-row h2 { font-size: 1.22em; margin: 0; }
361
+ .title-row .sid { color: var(--fg-dim); }
362
+ .tags { display: flex; flex-wrap: wrap; gap: 4px; margin: 6px 0; }
363
+
364
+ .facts {
365
+ display: grid;
366
+ grid-template-columns: max-content 1fr;
367
+ gap: 2px 12px;
368
+ margin: 6px 0;
369
+ }
370
+ .facts dt { color: var(--fg-dim); }
371
+ .facts dd { margin: 0; overflow-wrap: anywhere; }
372
+ .facts code.json { white-space: pre-wrap; }
373
+ .rec { font-weight: 600; }
374
+ .rec-accept { color: var(--ok); }
375
+ .rec-reject { color: var(--bad); }
376
+ .rec-user-decision, .rec-change { color: var(--warn); }
377
+
378
+ .summary { margin: 6px 0; font-weight: 500; }
379
+ .summary code, .facts code { background: var(--code-bg); border-radius: 3px; padding: 0 3px; }
380
+
381
+ details > summary { cursor: pointer; font-weight: 600; margin: 4px 0; }
382
+
383
+ .markdown h1, .markdown h2, .markdown h3, .markdown h4 { font-size: 1.05em; margin: 12px 0 4px; }
384
+ .markdown p { margin: 6px 0; }
385
+ .markdown ul, .markdown ol { margin: 6px 0; padding-left: 22px; }
386
+ .markdown code { background: var(--code-bg); border-radius: 3px; padding: 1px 4px; }
387
+ .markdown pre { background: var(--code-bg); padding: 8px 10px; border-radius: 4px; overflow-x: auto; }
388
+ .markdown pre code { background: none; padding: 0; }
389
+ .markdown table { border-collapse: collapse; margin: 6px 0; }
390
+ .markdown th, .markdown td { border: 1px solid var(--border); padding: 3px 8px; }
391
+ .markdown blockquote { margin: 6px 0; padding-left: 10px; border-left: 3px solid var(--border); color: var(--fg-dim); }
392
+ .markdown a { color: var(--accent); }
393
+ .markdown .katex-display { overflow-x: auto; overflow-y: hidden; }
394
+
395
+ .no-diff {
396
+ margin: 10px 14px;
397
+ padding: 8px 10px;
398
+ border: 1px dashed var(--warn);
399
+ color: var(--warn);
400
+ border-radius: 4px;
401
+ flex-shrink: 0;
402
+ }
403
+
404
+ #diff-area { flex: 1; min-height: 0; display: flex; flex-direction: column; }
405
+ .file-tabs {
406
+ display: flex;
407
+ overflow-x: auto;
408
+ background: var(--bg-side);
409
+ border-bottom: 1px solid var(--border);
410
+ flex-shrink: 0;
411
+ }
412
+ .tab {
413
+ border: 0;
414
+ border-right: 1px solid var(--border);
415
+ border-top: 2px solid transparent;
416
+ border-radius: 0;
417
+ background: transparent;
418
+ padding: 5px 12px;
419
+ white-space: nowrap;
420
+ color: var(--fg-dim);
421
+ display: inline-flex;
422
+ align-items: center;
423
+ gap: 4px;
424
+ }
425
+ .tab.active { background: var(--bg); color: var(--fg); border-top-color: var(--accent); }
426
+ .file-info {
427
+ padding: 4px 14px;
428
+ color: var(--fg-dim);
429
+ font-size: 0.92em;
430
+ border-bottom: 1px solid var(--border);
431
+ flex-shrink: 0;
432
+ display: flex;
433
+ align-items: center;
434
+ gap: 4px;
435
+ flex-wrap: wrap;
436
+ }
437
+ .file-info:empty { display: none; }
438
+ .file-info .mode { font-weight: 600; color: var(--warn); }
439
+ .editor { flex: 1; min-height: 120px; position: relative; overflow: hidden; }
440
+ .editor > .cm-mergeView, .editor > .cm-editor { position: absolute; inset: 0; }
441
+ .editor > .cm-mergeView { overflow: auto; }
442
+ .editor > .cm-editor .cm-scroller { overflow: auto; }
443
+ .editor-note { padding: 14px; color: var(--fg-dim); }
444
+ .editor-note.error { color: var(--bad); }
445
+
446
+ #verdict-bar {
447
+ flex-shrink: 0;
448
+ border-top: 1px solid var(--border);
449
+ background: var(--bg-side);
450
+ padding: 8px 14px;
451
+ display: grid;
452
+ grid-template-columns: minmax(0, 1fr) auto;
453
+ gap: 6px 12px;
454
+ align-items: start;
455
+ }
456
+ @container main (max-width: 720px) {
457
+ #verdict-bar { grid-template-columns: minmax(0, 1fr); }
458
+ .message { text-align: left; }
459
+ }
460
+ #comment { resize: vertical; min-height: 34px; width: 100%; }
461
+ .buttons { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
462
+ .buttons .gap { width: 8px; }
463
+ button.accept { border-color: var(--ok); color: var(--ok); }
464
+ button.reject { border-color: var(--bad); color: var(--bad); }
465
+ button.change { border-color: var(--warn); color: var(--warn); }
466
+ button.save { border-color: var(--accent); color: var(--accent); }
467
+ .last-verdict { color: var(--fg-dim); overflow-wrap: anywhere; }
468
+ .comment-text { white-space: pre-wrap; }
469
+ .message { text-align: right; min-height: 1.4em; }
470
+ .message.error { color: var(--bad); }
471
+ .message.ok { color: var(--ok); }
472
+
473
+ /* Dialogs */
474
+ dialog {
475
+ background: var(--bg);
476
+ color: var(--fg);
477
+ border: 1px solid var(--border);
478
+ border-radius: 6px;
479
+ padding: 14px 18px;
480
+ max-width: min(640px, 94vw);
481
+ }
482
+ dialog::backdrop { background: rgba(0, 0, 0, 0.35); }
483
+ dialog h2 { font-size: 1.15em; margin: 0; }
484
+ dialog h3 { font-size: 1em; margin: 14px 0 6px; }
485
+ .dialog-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
486
+ .dialog-foot { display: flex; justify-content: flex-end; gap: 8px; margin-top: 14px; }
487
+ .settings-fields { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 8px 14px; align-items: start; }
488
+ .settings-fields input, .settings-fields select { max-width: 100%; }
489
+ @media (max-width: 560px) {
490
+ .settings-fields { grid-template-columns: minmax(0, 1fr); gap: 2px; }
491
+ .field .control { margin-bottom: 8px; }
492
+ }
493
+ .field { display: contents; }
494
+ .field label { padding-top: 4px; }
495
+ .field .control { display: flex; flex-direction: column; gap: 2px; align-items: flex-start; }
496
+ .field .control small { color: var(--fg-dim); }
497
+ .field-text input { width: 100%; }
498
+ .field-number input { width: 8em; }
499
+ .field-color .control { flex-direction: row; align-items: center; gap: 10px; }
500
+ .shortcuts { border-collapse: collapse; }
501
+ .shortcuts th { text-align: left; padding: 2px 14px 2px 0; font-weight: normal; }
502
+ kbd {
503
+ border: 1px solid var(--border);
504
+ border-radius: 3px;
505
+ padding: 0 4px;
506
+ font-size: 0.9em;
507
+ background: var(--code-bg);
508
+ }