cortico-world-memory-core 0.4.4 → 0.12.1

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.
package/webui/style.css CHANGED
@@ -1,736 +1,815 @@
1
- /* 记忆地图 —— 深色为默认,浅色跟随系统或宿主主题快照。
2
- 颜色全部走 --paper/--ink 这一套 token,宿主点「继承主题」时会用内联变量覆盖。 */
3
-
4
- :root {
5
- --paper: #121312;
6
- --paper-2: #181a19;
7
- --sheet: #1d1f1e;
8
- --sheet-2: #242726;
9
- --sheet-3: #2c302e;
10
- --ink: #e9eae9;
11
- --ink-soft: #b0b2b1;
12
- --ink-dim: #828584;
13
- --line: #292c2b;
14
- --line-2: #383c3a;
15
- --line-strong: #535856;
16
- --accent: #2fd59b;
17
- --accent-2: #78cbae;
18
- --on-accent: #082a1e;
19
- --ok: #76ca9f;
20
- --warn: #c4a372;
21
- --danger: #d18c83;
22
- --chart-1: #2fd59b;
23
- --chart-2: #78cbae;
24
- --chart-3: #64b8ad;
25
- --chart-4: #91b99d;
26
- --chart-5: #c4a372;
27
- --chart-6: #b69b8c;
28
- --chart-7: #76afb9;
29
- --chart-8: #a8b17e;
30
-
31
- --k-fact: var(--chart-1);
32
- --k-self: var(--chart-2);
33
- --k-episode: var(--chart-3);
34
- --k-promise: var(--chart-5);
35
- --k-note: var(--chart-7);
36
-
37
- --radius: 10px;
38
- --radius-sm: 7px;
39
- --shadow: 0 12px 32px rgb(0 0 0 / 0.28);
40
- --mono: ui-monospace, "SF Mono", "Cascadia Mono", Menlo, Consolas, monospace;
41
- color-scheme: dark;
42
- }
43
-
44
- @media (prefers-color-scheme: light) {
45
- html[data-mode="auto"] {
46
- --paper: #f4f5f4;
47
- --paper-2: #eceeec;
48
- --sheet: #fbfbfb;
49
- --sheet-2: #f2f3f2;
50
- --sheet-3: #e8e9e8;
51
- --ink: #1b1a1e;
52
- --ink-soft: #5c5c60;
53
- --ink-dim: #8b8b8f;
54
- --line: #e3e4e3;
55
- --line-2: #d0d2d0;
56
- --line-strong: #aeb0ae;
57
- --accent: #00a870;
58
- --accent-2: #54b494;
59
- --on-accent: #ffffff;
60
- --ok: #19815e;
61
- --warn: #96743b;
62
- --danger: #b45950;
63
- --chart-1: #00a870;
64
- --chart-2: #54b494;
65
- --chart-3: #348f86;
66
- --chart-4: #72967f;
67
- --chart-5: #b59564;
68
- --chart-6: #9b8071;
69
- --chart-7: #4a8f9a;
70
- --chart-8: #889460;
71
- --shadow: 0 10px 28px rgb(20 24 22 / 0.12);
72
- color-scheme: light;
73
- }
74
- }
75
-
76
- html[data-mode="light"] {
77
- --paper: #f4f5f4;
78
- --paper-2: #eceeec;
79
- --sheet: #fbfbfb;
80
- --sheet-2: #f2f3f2;
81
- --sheet-3: #e8e9e8;
82
- --ink: #1b1a1e;
83
- --ink-soft: #5c5c60;
84
- --ink-dim: #8b8b8f;
85
- --line: #e3e4e3;
86
- --line-2: #d0d2d0;
87
- --line-strong: #aeb0ae;
88
- --accent: #00a870;
89
- --accent-2: #54b494;
90
- --on-accent: #ffffff;
91
- --ok: #19815e;
92
- --warn: #96743b;
93
- --danger: #b45950;
94
- --chart-1: #00a870;
95
- --chart-2: #54b494;
96
- --chart-3: #348f86;
97
- --chart-4: #72967f;
98
- --chart-5: #b59564;
99
- --chart-6: #9b8071;
100
- --chart-7: #4a8f9a;
101
- --chart-8: #889460;
102
- --shadow: 0 10px 28px rgb(20 24 22 / 0.12);
103
- color-scheme: light;
104
- }
105
-
106
- * { box-sizing: border-box; }
107
-
108
- html, body {
109
- margin: 0;
110
- height: 100%;
111
- background: var(--paper);
112
- color: var(--ink);
113
- font: 13px/1.55 -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
114
- -webkit-font-smoothing: antialiased;
115
- }
116
-
117
- button, input, textarea, select { font: inherit; color: inherit; }
118
- button { cursor: pointer; }
119
- ::selection { background: color-mix(in srgb, var(--accent) 30%, transparent); }
120
-
121
- .app {
122
- height: 100vh;
123
- display: grid;
124
- grid-template-rows: auto auto minmax(0, 1fr) auto;
125
- }
126
-
127
- /* ── 顶栏 ───────────────────────────────────────────── */
128
-
129
- .topbar {
130
- display: flex;
131
- align-items: center;
132
- gap: 14px;
133
- padding: 10px 14px;
134
- border-bottom: 1px solid var(--line);
135
- background: color-mix(in srgb, var(--paper-2) 88%, transparent);
136
- backdrop-filter: blur(8px);
137
- }
138
-
139
- .brand { display: flex; align-items: center; gap: 9px; min-width: 132px; }
140
- .brand-dot {
141
- width: 9px; height: 9px; border-radius: 50%;
142
- background: var(--accent);
143
- box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 16%, transparent);
144
- }
145
- .brand-text { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
146
- .brand-text strong { font-size: 13px; letter-spacing: .3px; white-space: nowrap; }
147
- .brand-text span { font-size: 11px; color: var(--ink-dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
148
-
149
- .searchbox {
150
- flex: 1 1 420px;
151
- max-width: 620px;
152
- display: flex;
153
- align-items: center;
154
- gap: 8px;
155
- padding: 0 8px 0 11px;
156
- height: 34px;
157
- background: var(--sheet-2);
158
- border: 1px solid var(--line);
159
- border-radius: 999px;
160
- transition: border-color .15s, background .15s;
161
- }
162
- .searchbox:focus-within { border-color: var(--accent); background: var(--sheet); }
163
- .searchbox svg { width: 15px; height: 15px; flex: none; fill: none; stroke: var(--ink-dim); stroke-width: 1.6; }
164
- .searchbox input {
165
- flex: 1; min-width: 0; height: 100%;
166
- background: none; border: 0; outline: none;
167
- }
168
- .searchbox input::-webkit-search-cancel-button { display: none; }
169
-
170
- .tabs { display: flex; gap: 2px; padding: 3px; background: var(--sheet-2); border-radius: 999px; border: 1px solid var(--line); }
171
- .tab {
172
- border: 0; background: none; color: var(--ink-soft);
173
- padding: 4px 11px; border-radius: 999px; font-size: 12px;
174
- white-space: nowrap;
175
- transition: background .15s, color .15s;
176
- }
177
- .tab:hover { color: var(--ink); }
178
- .tab.active { background: var(--sheet); color: var(--ink); box-shadow: 0 1px 3px rgb(0 0 0 / .12); }
179
-
180
- .top-actions { display: flex; align-items: center; gap: 6px; margin-left: auto; }
181
-
182
- .btn {
183
- border: 1px solid var(--line-2);
184
- background: var(--sheet-2);
185
- color: var(--ink);
186
- padding: 6px 12px;
187
- border-radius: 8px;
188
- white-space: nowrap;
189
- transition: background .15s, border-color .15s, transform .1s;
190
- }
191
- .btn:hover { background: var(--sheet-3); }
192
- .btn:active { transform: translateY(1px); }
193
- .btn.primary { background: var(--accent); border-color: transparent; color: var(--on-accent); font-weight: 600; }
194
- .btn.primary:hover { filter: brightness(1.06); }
195
- .btn.ghost { background: none; border-color: transparent; color: var(--ink-soft); }
196
- .btn.ghost:hover { background: var(--sheet-2); color: var(--ink); }
197
- .btn.danger { color: var(--danger); border-color: color-mix(in srgb, var(--danger) 40%, var(--line)); }
198
- .btn.tiny { padding: 3px 8px; font-size: 12px; }
199
-
200
- .icon-btn {
201
- width: 32px; height: 32px;
202
- display: inline-flex; align-items: center; justify-content: center;
203
- border: 1px solid transparent; border-radius: 8px;
204
- background: none; color: var(--ink-soft);
205
- transition: background .15s, color .15s;
206
- }
207
- .icon-btn:hover { background: var(--sheet-2); color: var(--ink); }
208
- .icon-btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; }
209
- .icon-btn.tiny { width: 22px; height: 22px; font-size: 15px; }
210
-
211
- /* ── 指标条 ─────────────────────────────────────────── */
212
-
213
- .metrics {
214
- display: flex; align-items: stretch; gap: 0;
215
- padding: 0 14px;
216
- border-bottom: 1px solid var(--line);
217
- background: var(--paper);
218
- overflow-x: auto;
219
- scrollbar-width: none;
220
- }
221
- .metrics::-webkit-scrollbar { display: none; }
222
- .metric {
223
- display: flex; flex-direction: column; justify-content: center;
224
- gap: 1px; padding: 8px 18px 8px 0; margin-right: 18px;
225
- border-right: 1px solid var(--line);
226
- white-space: nowrap;
227
- }
228
- .metric:last-child { border-right: 0; }
229
- .metric .label { font-size: 11px; color: var(--ink-dim); }
230
- .metric .value { font-size: 17px; font-weight: 600; font-variant-numeric: tabular-nums; }
231
- .metric .value small { font-size: 11px; font-weight: 400; color: var(--ink-dim); margin-left: 2px; }
232
- .metric.warn .value { color: var(--warn); }
233
- .metric.ok .value { color: var(--ok); }
234
- .spark { display: flex; align-items: flex-end; gap: 2px; height: 30px; margin-left: auto; padding-left: 18px; }
235
- .spark i {
236
- display: block; width: 6px; min-height: 2px; border-radius: 2px 2px 0 0;
237
- background: color-mix(in srgb, var(--accent) 55%, transparent);
238
- }
239
- .spark i.today { background: var(--accent); }
240
-
241
- /* ── 主体三栏 ───────────────────────────────────────── */
242
-
243
- .workspace {
244
- --rail-w: 232px;
245
- --insp-w: 348px;
246
- display: grid;
247
- grid-template-columns: var(--rail-w) minmax(0, 1fr) var(--insp-w);
248
- min-height: 0;
249
- overflow: hidden;
250
- transition: grid-template-columns .18s ease;
251
- }
252
- /* 没选中任何一条时,右栏收成一条 46px 的竖条,把宽度还给舞台 */
253
- body[data-insp="off"] .workspace { --insp-w: 46px; }
254
-
255
- .rail {
256
- border-right: 1px solid var(--line);
257
- padding: 12px;
258
- overflow-y: auto;
259
- background: var(--paper);
260
- }
261
- .rail h3, .inspector h3 {
262
- margin: 0 0 8px;
263
- font-size: 11px;
264
- letter-spacing: .8px;
265
- text-transform: uppercase;
266
- color: var(--ink-dim);
267
- font-weight: 600;
268
- }
269
- .rail section + section { margin-top: 16px; }
270
- .rail .hint { font-size: 11px; color: var(--ink-dim); margin-top: 6px; }
271
-
272
- .chip-list { display: flex; flex-wrap: wrap; gap: 5px; }
273
- .chip {
274
- display: inline-flex; align-items: center; gap: 6px;
275
- padding: 4px 9px;
276
- border: 1px solid var(--line);
277
- border-radius: 999px;
278
- background: var(--sheet);
279
- color: var(--ink-soft);
280
- font-size: 12px;
281
- transition: all .12s;
282
- }
283
- .chip:hover { border-color: var(--line-strong); color: var(--ink); }
284
- .chip.on { background: var(--sheet-3); border-color: var(--line-strong); color: var(--ink); }
285
- .chip .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ink-dim); }
286
- .chip .n { font-variant-numeric: tabular-nums; color: var(--ink-dim); font-size: 11px; }
287
- .chip.on .n { color: var(--ink-soft); }
288
-
289
- .field { display: flex; flex-direction: column; gap: 6px; }
290
- .field label { font-size: 11px; color: var(--ink-dim); }
291
- .field input[type="range"] { width: 100%; accent-color: var(--accent); }
292
- .field .row { display: flex; gap: 6px; }
293
- .seg { display: flex; gap: 2px; padding: 2px; background: var(--sheet-2); border: 1px solid var(--line); border-radius: 8px; }
294
- .seg button { flex: 1; border: 0; background: none; color: var(--ink-soft); padding: 4px 0; border-radius: 6px; font-size: 11.5px; }
295
- .seg button.on { background: var(--sheet); color: var(--ink); }
296
- .seg button .n { font-size: 10px; color: var(--ink-dim); margin-left: 3px; font-variant-numeric: tabular-nums; }
297
- .seg button.on .n { color: var(--ink-soft); }
298
-
299
- .status-card {
300
- border: 1px solid var(--line);
301
- border-radius: var(--radius-sm);
302
- background: var(--sheet);
303
- padding: 9px 10px;
304
- display: grid;
305
- gap: 5px;
306
- }
307
- .status-card .line { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; }
308
- .status-card .line b { font-weight: 600; font-variant-numeric: tabular-nums; }
309
- .meter { height: 4px; border-radius: 2px; background: var(--sheet-3); overflow: hidden; }
310
- .meter i { display: block; height: 100%; background: var(--accent); }
311
-
312
- /* ── 舞台 ───────────────────────────────────────────── */
313
-
314
- .stage { position: relative; min-width: 0; min-height: 0; background: var(--paper-2); }
315
- .view { position: absolute; inset: 0; }
316
- .view[hidden] { display: none; }
317
-
318
- #view-graph canvas { width: 100%; height: 100%; display: block; cursor: grab; }
319
- #view-graph canvas.dragging { cursor: grabbing; }
320
-
321
- .graph-hud {
322
- position: absolute; inset: auto 12px 12px 12px;
323
- display: flex; align-items: flex-end; justify-content: space-between;
324
- gap: 12px; pointer-events: none;
325
- }
326
- .graph-hud > * { pointer-events: auto; }
327
- .legend { display: flex; flex-wrap: wrap; gap: 7px; padding: 6px 9px; background: color-mix(in srgb, var(--sheet) 82%, transparent); border: 1px solid var(--line); border-radius: 999px; backdrop-filter: blur(6px); }
328
- .legend span { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; color: var(--ink-soft); }
329
- .legend i { width: 8px; height: 8px; border-radius: 50%; }
330
- .hud-actions { display: flex; align-items: center; gap: 6px; padding: 4px; background: color-mix(in srgb, var(--sheet) 82%, transparent); border: 1px solid var(--line); border-radius: 999px; backdrop-filter: blur(6px); }
331
- .chip-btn { border: 0; background: none; color: var(--ink-soft); padding: 3px 9px; border-radius: 999px; font-size: 11.5px; }
332
- .chip-btn:hover { background: var(--sheet-3); color: var(--ink); }
333
- .switch { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; color: var(--ink-soft); padding: 0 6px 0 2px; }
334
- .switch input { accent-color: var(--accent); }
335
-
336
- .empty {
337
- position: absolute; inset: 0;
338
- display: grid; place-content: center; gap: 4px; text-align: center;
339
- color: var(--ink-soft);
340
- }
341
- .empty[hidden] { display: none; }
342
- .empty .dim { color: var(--ink-dim); font-size: 12px; }
343
-
344
- /* 时间线 */
345
- #view-timeline { overflow-y: auto; padding: 14px 18px 40px; }
346
- .day-group { margin-bottom: 24px; }
347
- .day-head {
348
- position: sticky; top: 0; z-index: 2;
349
- display: flex; align-items: baseline; gap: 8px;
350
- padding: 6px 0 7px;
351
- background: linear-gradient(var(--paper-2) 70%, transparent);
352
- font-size: 11.5px; color: var(--ink-dim);
353
- }
354
- .day-head b { font-size: 13px; color: var(--ink); font-weight: 600; }
355
- .tl-item {
356
- display: grid;
357
- grid-template-columns: 20px minmax(0, 1fr) auto;
358
- gap: 10px;
359
- padding: 8px 10px 8px 4px;
360
- border-radius: 8px;
361
- cursor: default;
362
- transition: background .12s;
363
- }
364
- .tl-item:hover { background: var(--sheet-2); }
365
- .tl-item.sel { background: var(--sheet-3); box-shadow: inset 0 0 0 1px var(--line-strong); }
366
- .tl-dot { align-self: start; margin-top: 5px; width: 8px; height: 8px; border-radius: 50%; background: var(--ink-dim); }
367
- .tl-body { min-width: 0; }
368
- .tl-text { cursor: pointer; }
369
- .tl-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; font-size: 11px; color: var(--ink-dim); }
370
- .tl-meta .tag { color: var(--ink-soft); }
371
- .tl-right { text-align: right; font-size: 11px; color: var(--ink-dim); white-space: nowrap; }
372
- .wbar { width: 46px; height: 3px; border-radius: 2px; background: var(--sheet-3); overflow: hidden; margin-top: 4px; margin-left: auto; }
373
- .wbar i { display: block; height: 100%; background: var(--accent); }
374
-
375
- /* 表格 */
376
- #view-table { overflow: auto; scrollbar-width: thin; scrollbar-color: var(--line-2) transparent; }
377
- #view-table::-webkit-scrollbar { width: 9px; height: 9px; }
378
- #view-table::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 5px; border: 2px solid transparent; background-clip: padding-box; }
379
- #view-table::-webkit-scrollbar-thumb:hover { background: var(--line-strong); background-clip: padding-box; }
380
- table.grid { width: 100%; min-width: 820px; table-layout: fixed; border-collapse: collapse; font-size: 12.5px; }
381
- table.grid thead th {
382
- position: sticky; top: 0; z-index: 2;
383
- background: var(--paper-2);
384
- text-align: left; font-weight: 600; color: var(--ink-soft);
385
- padding: 8px 10px;
386
- border-bottom: 1px solid var(--line);
387
- cursor: pointer; user-select: none;
388
- white-space: nowrap;
389
- }
390
- table.grid thead th:hover { color: var(--ink); }
391
- table.grid thead th .arrow { opacity: .5; margin-left: 3px; font-size: 10px; }
392
- table.grid tbody tr { border-bottom: 1px solid color-mix(in srgb, var(--line) 60%, transparent); }
393
- table.grid tbody tr:hover { background: var(--sheet-2); }
394
- table.grid tbody tr.sel { background: var(--sheet-3); }
395
- table.grid tbody tr.sel td:first-child { box-shadow: inset 2px 0 0 var(--accent); }
396
- table.grid td { padding: 7px 10px; vertical-align: top; overflow: hidden; }
397
- table.grid td.text { white-space: normal; }
398
- table.grid td.nowrap { white-space: nowrap; }
399
- .kind-pill { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; color: var(--ink-soft); white-space: nowrap; }
400
- .kind-pill i { width: 7px; height: 7px; border-radius: 50%; }
401
- .tag-list { display: flex; flex-wrap: wrap; gap: 4px; }
402
- .tag { font-size: 11px; color: var(--ink-soft); background: var(--sheet-2); border: 1px solid var(--line); border-radius: 5px; padding: 0 5px; }
403
- tr.done td.text { color: var(--ink-dim); text-decoration: line-through; text-decoration-color: var(--line-strong); }
404
- tr.retired td { opacity: .55; }
405
- tr.retired td.text { text-decoration: line-through; text-decoration-color: var(--line-strong); }
406
- .tl-item.retired { opacity: .55; }
407
- .tl-item.retired .tl-text { text-decoration: line-through; text-decoration-color: var(--line-strong); }
408
- .card-kind.retired { background: color-mix(in srgb, var(--warn) 18%, var(--sheet-2)); color: var(--warn); }
409
-
410
- /* 权重:数字 + 微条,扫一眼就能比大小 */
411
- .wt { display: inline-flex; align-items: center; gap: 6px; }
412
- .wt-bar { width: 34px; height: 4px; border-radius: 2px; background: var(--sheet-3); overflow: hidden; flex: none; }
413
- .wt-bar b { display: block; height: 100%; border-radius: 2px; background: var(--accent); }
414
- .wt em { font-style: normal; font-variant-numeric: tabular-nums; color: var(--ink-soft); }
415
- td.src { color: var(--ink-dim); font-size: 11.5px; text-overflow: ellipsis; }
416
- td.time { color: var(--ink-dim); font-variant-numeric: tabular-nums; }
417
- td.time:hover { color: var(--ink-soft); }
418
- td .tag-list { max-height: 40px; overflow: hidden; }
419
-
420
- /* 原文 / 文件 */
421
- .turns-wrap, .docs-wrap { height: 100%; overflow-y: auto; padding: 14px 18px 40px; }
422
- .turns-more {
423
- display: block; width: 100%; margin: 6px 0 18px; padding: 9px;
424
- font: inherit; font-size: 12px; color: var(--ink-dim);
425
- background: transparent; border: 1px dashed var(--line-strong);
426
- border-radius: 8px; cursor: pointer;
427
- }
428
- .turns-more:hover { color: var(--ink); border-color: var(--ink-dim); }
429
- .turn { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 10px; padding: 5px 0; border-bottom: 1px dashed color-mix(in srgb, var(--line) 70%, transparent); }
430
- .turn time { font-size: 11px; color: var(--ink-dim); font-family: var(--mono); padding-top: 1px; }
431
- .turn .who { font-size: 10.5px; color: var(--ink-dim); }
432
- .turn .msg { font-size: 12.5px; color: var(--ink-soft); word-break: break-word; }
433
- mark { background: color-mix(in srgb, var(--warn) 32%, transparent); color: inherit; border-radius: 2px; padding: 0 1px; }
434
-
435
- .doc-item {
436
- display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px;
437
- padding: 9px 10px; border: 1px solid var(--line); border-radius: 8px;
438
- margin-bottom: 6px; background: var(--sheet); cursor: pointer;
439
- }
440
- .doc-item:hover { border-color: var(--line-strong); }
441
- .doc-item.sel { border-color: var(--accent); }
442
- .doc-item .name { font-size: 12.5px; }
443
- .doc-item .path { font-size: 11px; color: var(--ink-dim); word-break: break-all; }
444
- .doc-item .size { font-size: 11px; color: var(--ink-dim); white-space: nowrap; }
445
-
446
- /* ── 详情栏 ─────────────────────────────────────────── */
447
-
448
- .inspector {
449
- border-left: 1px solid var(--line);
450
- background: var(--paper);
451
- display: flex;
452
- flex-direction: column;
453
- min-width: 0;
454
- overflow: hidden;
455
- }
456
- .insp-body {
457
- flex: 1;
458
- min-height: 0;
459
- overflow-y: auto;
460
- padding: 14px;
461
- }
462
- .insp-stub {
463
- display: none;
464
- flex: 1;
465
- flex-direction: column;
466
- align-items: center;
467
- gap: 12px;
468
- width: 100%;
469
- border: 0;
470
- background: none;
471
- color: var(--ink-dim);
472
- padding: 12px 0;
473
- transition: color .15s, background .15s;
474
- }
475
- body[data-insp="off"] .insp-stub { display: flex; }
476
- body[data-insp="off"] .insp-body { display: none; }
477
- .insp-stub:hover { color: var(--ink); background: var(--sheet-2); }
478
- .stub-chev { font-size: 15px; line-height: 1; opacity: .55; }
479
- .stub-label { writing-mode: vertical-rl; letter-spacing: 3px; font-size: 11px; }
480
- .stub-count {
481
- writing-mode: horizontal-tb;
482
- font-size: 10.5px; padding: 0 5px;
483
- border: 1px solid var(--line); border-radius: 999px;
484
- color: var(--ink-soft); font-variant-numeric: tabular-nums;
485
- }
486
- .insp-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
487
- .card-kind {
488
- display: inline-flex; align-items: center; gap: 6px;
489
- padding: 2px 8px; border-radius: 999px; font-size: 11px;
490
- background: var(--sheet-2); color: var(--ink-soft);
491
- }
492
- .card-kind i { width: 7px; height: 7px; border-radius: 50%; }
493
- .card-text {
494
- font-size: 13.5px; line-height: 1.7;
495
- padding: 10px 12px;
496
- background: var(--sheet);
497
- border: 1px solid var(--line);
498
- border-radius: var(--radius-sm);
499
- white-space: pre-wrap; word-break: break-word;
500
- }
501
- .card-meta { margin-top: 10px; display: grid; gap: 6px; font-size: 12px; }
502
- .card-meta .kv { display: flex; justify-content: space-between; gap: 10px; color: var(--ink-dim); }
503
- .card-meta .kv b { color: var(--ink-soft); font-weight: 500; text-align: right; }
504
- .card-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
505
-
506
- .related { margin-top: 16px; }
507
- .related-item { display: block; width: 100%; text-align: left; border: 0; background: none; padding: 6px 8px; border-radius: 7px; color: var(--ink-soft); font-size: 12px; }
508
- .related-item:hover { background: var(--sheet-2); color: var(--ink); }
509
- .related-item .why { display: block; font-size: 10.5px; color: var(--ink-dim); }
510
-
511
- /* 版本链:这条接替了谁 / 被谁接替 */
512
- .lineage { margin-top: 16px; padding-top: 12px; border-top: 1px dashed color-mix(in srgb, var(--line) 80%, transparent); }
513
- .lineage h3 { margin: 0 0 6px; }
514
- .lineage-note { margin: 0; font-size: 11.5px; color: var(--ink-dim); }
515
-
516
- /* 维护面板 */
517
- .maint-tabs { display: flex; gap: 4px; margin-bottom: 10px; }
518
- .maint-tabs button {
519
- border: 1px solid var(--line); background: var(--sheet-2); color: var(--ink-soft);
520
- padding: 4px 10px; border-radius: 999px; font-size: 12px;
521
- display: inline-flex; align-items: center; gap: 5px;
522
- }
523
- .maint-tabs button.on { background: var(--sheet-3); border-color: var(--line-strong); color: var(--ink); }
524
- .maint-tabs button span { font-size: 10.5px; color: var(--ink-dim); font-variant-numeric: tabular-nums; }
525
- .maint-note { margin: 0 0 12px; font-size: 11px; color: var(--ink-dim); }
526
- .maint-body { display: grid; gap: 8px; }
527
- .maint-empty { margin: 12px 0; font-size: 12px; color: var(--ink-dim); text-align: center; }
528
- .maint-group { border: 1px solid var(--line); border-radius: 9px; padding: 6px; background: var(--paper); }
529
- .maint-group-head { font-size: 11px; color: var(--warn); padding: 2px 6px 6px; }
530
- .maint-row {
531
- display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: start;
532
- padding: 6px 6px; border-radius: 7px;
533
- }
534
- .maint-row + .maint-row { border-top: 1px dashed color-mix(in srgb, var(--line) 70%, transparent); }
535
- .maint-row:hover { background: var(--sheet-2); }
536
- .maint-main { min-width: 0; display: grid; gap: 2px; }
537
- .maint-text { font-size: 12.5px; color: var(--ink-soft); }
538
- .maint-meta { font-size: 10.5px; color: var(--ink-dim); }
539
- .maint-act { display: flex; gap: 4px; }
540
-
541
- .editor { display: grid; gap: 10px; margin-top: 8px; }
542
- .editor textarea {
543
- width: 100%; min-height: 108px; resize: vertical;
544
- padding: 9px 10px; border-radius: var(--radius-sm);
545
- border: 1px solid var(--line-2); background: var(--sheet); outline: none;
546
- line-height: 1.65;
547
- }
548
- .editor textarea:focus { border-color: var(--accent); }
549
- .editor .row { display: flex; gap: 8px; align-items: center; }
550
- .editor .row > * { flex: 1; }
551
- .editor input[type="text"], .editor input[type="datetime-local"], .editor select {
552
- width: 100%; padding: 6px 9px; border-radius: 7px;
553
- border: 1px solid var(--line-2); background: var(--sheet); outline: none;
554
- }
555
- .editor input:focus, .editor select:focus { border-color: var(--accent); }
556
- .editor .label { font-size: 11px; color: var(--ink-dim); }
557
-
558
- .dist { display: grid; gap: 6px; }
559
- .dist .row { display: grid; grid-template-columns: 62px 1fr 26px; gap: 8px; align-items: center; font-size: 11.5px; color: var(--ink-dim); }
560
- .dist .track { height: 5px; border-radius: 3px; background: var(--sheet-3); overflow: hidden; }
561
- .dist .track i { display: block; height: 100%; }
562
-
563
- .recent-list { display: grid; gap: 2px; }
564
- .recent-list button {
565
- text-align: left; border: 0; background: none; color: var(--ink-soft);
566
- padding: 6px 8px; border-radius: 7px; font-size: 12px;
567
- overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
568
- }
569
- .recent-list button:hover { background: var(--sheet-2); color: var(--ink); }
570
-
571
- /* ── 状态栏 ─────────────────────────────────────────── */
572
-
573
- .statusbar {
574
- display: flex; align-items: center; gap: 10px;
575
- padding: 5px 14px;
576
- border-top: 1px solid var(--line);
577
- font-size: 11px; color: var(--ink-dim);
578
- background: var(--paper-2);
579
- min-height: 26px;
580
- }
581
- .statusbar .sep { width: 1px; height: 11px; background: var(--line-2); }
582
- .statusbar .grow { flex: 1; }
583
- .statusbar .dim { color: var(--ink-dim); }
584
- .kbd-hints { display: flex; align-items: center; gap: 4px; }
585
- kbd {
586
- font-family: var(--mono); font-size: 10px;
587
- border: 1px solid var(--line-2); border-bottom-width: 2px;
588
- border-radius: 4px; padding: 0 4px; color: var(--ink-soft);
589
- background: var(--sheet);
590
- }
591
-
592
- /* ── 弹层 ───────────────────────────────────────────── */
593
-
594
- .modal {
595
- position: fixed; inset: 0; z-index: 50;
596
- display: grid; place-items: center;
597
- background: color-mix(in srgb, var(--paper) 55%, transparent);
598
- backdrop-filter: blur(3px);
599
- }
600
- .modal[hidden] { display: none; }
601
- .modal-panel {
602
- width: min(560px, calc(100vw - 40px));
603
- max-height: calc(100vh - 80px);
604
- display: flex; flex-direction: column;
605
- background: var(--sheet);
606
- border: 1px solid var(--line-2);
607
- border-radius: 14px;
608
- box-shadow: var(--shadow);
609
- overflow: hidden;
610
- }
611
- .modal-panel header { display: flex; align-items: center; justify-content: space-between; padding: 13px 16px; border-bottom: 1px solid var(--line); }
612
- .modal-panel header h2 { margin: 0; font-size: 14px; font-weight: 600; }
613
- .modal-body { padding: 14px 16px; overflow-y: auto; }
614
- .modal-panel footer { display: flex; justify-content: flex-end; gap: 8px; padding: 12px 16px; border-top: 1px solid var(--line); background: var(--paper); }
615
-
616
- .shortcuts { display: grid; grid-template-columns: auto 1fr; gap: 7px 16px; font-size: 12.5px; }
617
- .shortcuts kbd { font-size: 10.5px; padding: 1px 6px; }
618
-
619
- .toast {
620
- position: fixed; left: 50%; bottom: 34px; transform: translateX(-50%);
621
- z-index: 60;
622
- padding: 8px 14px; border-radius: 999px;
623
- background: var(--sheet-3); border: 1px solid var(--line-2);
624
- color: var(--ink); font-size: 12px;
625
- box-shadow: var(--shadow);
626
- animation: toast-in .18s ease-out;
627
- }
628
- .toast[hidden] { display: none; }
629
- .toast.err { border-color: var(--danger); color: var(--danger); }
630
- @keyframes toast-in { from { opacity: 0; transform: translate(-50%, 6px); } }
631
-
632
- .menu {
633
- position: fixed; z-index: 55;
634
- min-width: 190px;
635
- padding: 5px;
636
- background: var(--sheet);
637
- border: 1px solid var(--line-2);
638
- border-radius: 10px;
639
- box-shadow: var(--shadow);
640
- }
641
- .menu[hidden] { display: none; }
642
- .menu button {
643
- display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 12px;
644
- border: 0; background: none; color: var(--ink-soft);
645
- padding: 7px 9px; border-radius: 7px; font-size: 12.5px; text-align: left;
646
- }
647
- .menu button:hover { background: var(--sheet-2); color: var(--ink); }
648
- .menu hr { border: 0; border-top: 1px solid var(--line); margin: 5px 2px; }
649
-
650
- @media (max-width: 1180px) {
651
- .workspace { --rail-w: 200px; --insp-w: 300px; }
652
- .brand { min-width: 0; }
653
- .brand-text span { display: none; }
654
- }
655
- @media (max-width: 980px) {
656
- .workspace { --rail-w: 0px; --insp-w: 300px; }
657
- .rail { display: none; }
658
- .tabs .tab span { display: none; }
659
- .tabs .tab::after { content: attr(data-letter); }
660
- }
661
- @media (max-width: 760px) {
662
- .workspace { --insp-w: 0px; grid-template-columns: minmax(0, 1fr); }
663
- .inspector { display: none; }
664
- .kbd-hints { display: none; }
665
- }
666
-
667
- /* ── 体检 ───────────────────────────────────────────── */
668
- .toast { display: inline-flex; align-items: center; gap: 8px; }
669
- .toast-undo {
670
- background: transparent; border: 1px solid currentColor; color: inherit;
671
- border-radius: 6px; font-size: 12px; padding: 2px 8px; cursor: pointer;
672
- }
673
- .health-wrap { height: 100%; overflow-y: auto; padding: 16px 18px 48px; display: grid; gap: 18px; align-content: start; }
674
- .h-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
675
- .h-card { border: 1px solid var(--line); border-radius: var(--radius); background: var(--sheet); padding: 12px 14px; }
676
- .h-card.warn { border-color: color-mix(in srgb, var(--warn) 45%, var(--line)); }
677
- .h-label { font-size: 11px; color: var(--ink-dim); }
678
- .h-value { font-size: 26px; line-height: 1.3; font-family: var(--mono); color: var(--ink); }
679
- .h-card.warn .h-value { color: var(--warn); }
680
- .h-hint { font-size: 11px; color: var(--ink-dim); margin-top: 2px; }
681
- .h-block h3 {
682
- font-size: 12px; font-weight: 500; color: var(--ink-soft);
683
- margin: 0 0 8px; display: flex; align-items: center; gap: 10px;
684
- }
685
- .h-chart { display: flex; align-items: flex-end; gap: 4px; height: 112px; border-bottom: 1px solid var(--line); padding-bottom: 4px; }
686
- .h-bar { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 3px; height: 100%; }
687
- .h-bar i { display: block; width: 100%; max-width: 26px; border-radius: 3px 3px 0 0; background: color-mix(in srgb, var(--accent) 55%, transparent); }
688
- .h-bar b { font-size: 10px; font-weight: 400; color: var(--ink-dim); }
689
- .h-bar span { font-size: 9.5px; color: var(--ink-dim); }
690
- .h-line { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; font-size: 12px; color: var(--ink-soft); }
691
- .h-line b { color: var(--ink); font-family: var(--mono); }
692
- .h-line .warn { color: var(--warn); }
693
- .h-line .dim { color: var(--ink-dim); font-size: 11px; }
694
- .maint-list { display: grid; gap: 2px; }
695
- .maint-row.wide { grid-template-columns: minmax(0, 1fr); }
696
- .maint-row.wide .maint-act { justify-content: flex-end; padding-top: 2px; }
697
- .due-input {
698
- background: var(--paper); border: 1px solid var(--line-2); color: var(--ink);
699
- font-size: 11px; border-radius: 6px; padding: 3px 6px; font-family: var(--mono);
700
- width: 188px;
701
- }
702
-
703
- /* ── 原文页:含归档开关 ───────────────────────────────── */
704
- .turns-bar {
705
- position: sticky; top: 0; z-index: 2;
706
- display: flex; align-items: center; gap: 12px;
707
- padding: 2px 0 10px; margin-bottom: 2px;
708
- background: linear-gradient(var(--paper) 72%, transparent);
709
- font-size: 11.5px;
710
- }
711
- .turns-bar .dim { color: var(--ink-dim); }
712
- .turns-none { padding: 14px 2px; font-size: 12px; }
713
- .day-group.archive .day-head b { color: var(--warn); }
714
- .day-group.archive .turn { opacity: 0.92; }
715
- .archive-head {
716
- display: flex; align-items: center; gap: 8px;
717
- margin: 18px 0 6px; padding-top: 12px;
718
- border-top: 1px dashed var(--line-2);
719
- font-size: 11px; color: var(--warn);
720
- }
721
- .archive-head span { color: var(--ink-dim); }
722
-
723
- /* ── 原文单条删除 ───────────────────────────────────── */
724
- .turn { position: relative; padding-right: 22px; }
725
- .turn-del {
726
- position: absolute; right: 4px; top: 6px;
727
- width: 20px; height: 20px; padding: 0;
728
- display: grid; place-items: center;
729
- border: 1px solid transparent; border-radius: 6px;
730
- background: transparent; color: var(--ink-dim);
731
- font-size: 14px; line-height: 1; cursor: pointer;
732
- opacity: 0; transition: opacity .12s ease;
1
+ /* 记忆地图 —— 深色为默认,浅色跟随系统或宿主主题快照。
2
+ 颜色全部走 --paper/--ink 这一套 token,宿主点「继承主题」时会用内联变量覆盖。 */
3
+
4
+ :root {
5
+ --paper: #121312;
6
+ --paper-2: #181a19;
7
+ --sheet: #1d1f1e;
8
+ --sheet-2: #242726;
9
+ --sheet-3: #2c302e;
10
+ --ink: #e9eae9;
11
+ --ink-soft: #b0b2b1;
12
+ --ink-dim: #828584;
13
+ --line: #292c2b;
14
+ --line-2: #383c3a;
15
+ --line-strong: #535856;
16
+ --accent: #2fd59b;
17
+ --accent-2: #78cbae;
18
+ --on-accent: #082a1e;
19
+ --ok: #76ca9f;
20
+ --warn: #c4a372;
21
+ --danger: #d18c83;
22
+ --chart-1: #2fd59b;
23
+ --chart-2: #78cbae;
24
+ --chart-3: #64b8ad;
25
+ --chart-4: #91b99d;
26
+ --chart-5: #c4a372;
27
+ --chart-6: #b69b8c;
28
+ --chart-7: #76afb9;
29
+ --chart-8: #a8b17e;
30
+
31
+ --k-fact: var(--chart-1);
32
+ --k-self: var(--chart-2);
33
+ --k-episode: var(--chart-3);
34
+ --k-promise: var(--chart-5);
35
+ --k-note: var(--chart-7);
36
+
37
+ --radius: 10px;
38
+ --radius-sm: 7px;
39
+ --shadow: 0 12px 32px rgb(0 0 0 / 0.28);
40
+ --mono: ui-monospace, "SF Mono", "Cascadia Mono", Menlo, Consolas, monospace;
41
+ color-scheme: dark;
42
+ }
43
+
44
+ @media (prefers-color-scheme: light) {
45
+ html[data-mode="auto"] {
46
+ --paper: #f4f5f4;
47
+ --paper-2: #eceeec;
48
+ --sheet: #fbfbfb;
49
+ --sheet-2: #f2f3f2;
50
+ --sheet-3: #e8e9e8;
51
+ --ink: #1b1a1e;
52
+ --ink-soft: #5c5c60;
53
+ --ink-dim: #8b8b8f;
54
+ --line: #e3e4e3;
55
+ --line-2: #d0d2d0;
56
+ --line-strong: #aeb0ae;
57
+ --accent: #00a870;
58
+ --accent-2: #54b494;
59
+ --on-accent: #ffffff;
60
+ --ok: #19815e;
61
+ --warn: #96743b;
62
+ --danger: #b45950;
63
+ --chart-1: #00a870;
64
+ --chart-2: #54b494;
65
+ --chart-3: #348f86;
66
+ --chart-4: #72967f;
67
+ --chart-5: #b59564;
68
+ --chart-6: #9b8071;
69
+ --chart-7: #4a8f9a;
70
+ --chart-8: #889460;
71
+ --shadow: 0 10px 28px rgb(20 24 22 / 0.12);
72
+ color-scheme: light;
73
+ }
74
+ }
75
+
76
+ html[data-mode="light"] {
77
+ --paper: #f4f5f4;
78
+ --paper-2: #eceeec;
79
+ --sheet: #fbfbfb;
80
+ --sheet-2: #f2f3f2;
81
+ --sheet-3: #e8e9e8;
82
+ --ink: #1b1a1e;
83
+ --ink-soft: #5c5c60;
84
+ --ink-dim: #8b8b8f;
85
+ --line: #e3e4e3;
86
+ --line-2: #d0d2d0;
87
+ --line-strong: #aeb0ae;
88
+ --accent: #00a870;
89
+ --accent-2: #54b494;
90
+ --on-accent: #ffffff;
91
+ --ok: #19815e;
92
+ --warn: #96743b;
93
+ --danger: #b45950;
94
+ --chart-1: #00a870;
95
+ --chart-2: #54b494;
96
+ --chart-3: #348f86;
97
+ --chart-4: #72967f;
98
+ --chart-5: #b59564;
99
+ --chart-6: #9b8071;
100
+ --chart-7: #4a8f9a;
101
+ --chart-8: #889460;
102
+ --shadow: 0 10px 28px rgb(20 24 22 / 0.12);
103
+ color-scheme: light;
104
+ }
105
+
106
+ * { box-sizing: border-box; }
107
+
108
+ html, body {
109
+ margin: 0;
110
+ height: 100%;
111
+ background: var(--paper);
112
+ color: var(--ink);
113
+ font: 13px/1.55 -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
114
+ -webkit-font-smoothing: antialiased;
115
+ }
116
+
117
+ button, input, textarea, select { font: inherit; color: inherit; }
118
+ button { cursor: pointer; }
119
+ ::selection { background: color-mix(in srgb, var(--accent) 30%, transparent); }
120
+
121
+ .app {
122
+ height: 100vh;
123
+ display: grid;
124
+ grid-template-rows: auto auto minmax(0, 1fr) auto;
125
+ }
126
+
127
+ /* ── 顶栏 ───────────────────────────────────────────── */
128
+
129
+ .topbar {
130
+ display: flex;
131
+ align-items: center;
132
+ gap: 14px;
133
+ padding: 10px 14px;
134
+ border-bottom: 1px solid var(--line);
135
+ background: color-mix(in srgb, var(--paper-2) 88%, transparent);
136
+ backdrop-filter: blur(8px);
137
+ }
138
+
139
+ .brand { display: flex; align-items: center; gap: 9px; min-width: 132px; }
140
+ .brand-dot {
141
+ width: 9px; height: 9px; border-radius: 50%;
142
+ background: var(--accent);
143
+ box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 16%, transparent);
144
+ }
145
+ .brand-text { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
146
+ .brand-text strong { font-size: 13px; letter-spacing: .3px; white-space: nowrap; }
147
+ .brand-text span { font-size: 11px; color: var(--ink-dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
148
+
149
+ .searchbox {
150
+ flex: 1 1 420px;
151
+ max-width: 620px;
152
+ display: flex;
153
+ align-items: center;
154
+ gap: 8px;
155
+ padding: 0 8px 0 11px;
156
+ height: 34px;
157
+ background: var(--sheet-2);
158
+ border: 1px solid var(--line);
159
+ border-radius: 999px;
160
+ transition: border-color .15s, background .15s;
161
+ }
162
+ .searchbox:focus-within { border-color: var(--accent); background: var(--sheet); }
163
+ .searchbox svg { width: 15px; height: 15px; flex: none; fill: none; stroke: var(--ink-dim); stroke-width: 1.6; }
164
+ .searchbox input {
165
+ flex: 1; min-width: 0; height: 100%;
166
+ background: none; border: 0; outline: none;
167
+ }
168
+ .searchbox input::-webkit-search-cancel-button { display: none; }
169
+
170
+ .tabs { display: flex; gap: 2px; padding: 3px; background: var(--sheet-2); border-radius: 999px; border: 1px solid var(--line); }
171
+ .tab {
172
+ border: 0; background: none; color: var(--ink-soft);
173
+ padding: 4px 11px; border-radius: 999px; font-size: 12px;
174
+ white-space: nowrap;
175
+ transition: background .15s, color .15s;
176
+ }
177
+ .tab:hover { color: var(--ink); }
178
+ .tab.active { background: var(--sheet); color: var(--ink); box-shadow: 0 1px 3px rgb(0 0 0 / .12); }
179
+
180
+ .top-actions { display: flex; align-items: center; gap: 6px; margin-left: auto; }
181
+
182
+ .btn {
183
+ border: 1px solid var(--line-2);
184
+ background: var(--sheet-2);
185
+ color: var(--ink);
186
+ padding: 6px 12px;
187
+ border-radius: 8px;
188
+ white-space: nowrap;
189
+ transition: background .15s, border-color .15s, transform .1s;
190
+ }
191
+ .btn:hover { background: var(--sheet-3); }
192
+ .btn:active { transform: translateY(1px); }
193
+ .btn.primary { background: var(--accent); border-color: transparent; color: var(--on-accent); font-weight: 600; }
194
+ .btn.primary:hover { filter: brightness(1.06); }
195
+ .btn.ghost { background: none; border-color: transparent; color: var(--ink-soft); }
196
+ .btn.ghost:hover { background: var(--sheet-2); color: var(--ink); }
197
+ .btn.danger { color: var(--danger); border-color: color-mix(in srgb, var(--danger) 40%, var(--line)); }
198
+ .btn.tiny { padding: 3px 8px; font-size: 12px; }
199
+
200
+ .icon-btn {
201
+ width: 32px; height: 32px;
202
+ display: inline-flex; align-items: center; justify-content: center;
203
+ border: 1px solid transparent; border-radius: 8px;
204
+ background: none; color: var(--ink-soft);
205
+ transition: background .15s, color .15s;
206
+ }
207
+ .icon-btn:hover { background: var(--sheet-2); color: var(--ink); }
208
+ .icon-btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; }
209
+ .icon-btn.tiny { width: 22px; height: 22px; font-size: 15px; }
210
+
211
+ /* ── 指标条 ─────────────────────────────────────────── */
212
+
213
+ .metrics {
214
+ display: flex; align-items: stretch; gap: 0;
215
+ padding: 0 14px;
216
+ border-bottom: 1px solid var(--line);
217
+ background: var(--paper);
218
+ overflow-x: auto;
219
+ scrollbar-width: none;
220
+ }
221
+ .metrics::-webkit-scrollbar { display: none; }
222
+ .metric {
223
+ display: flex; flex-direction: column; justify-content: center;
224
+ gap: 1px; padding: 8px 18px 8px 0; margin-right: 18px;
225
+ border-right: 1px solid var(--line);
226
+ white-space: nowrap;
227
+ }
228
+ .metric:last-child { border-right: 0; }
229
+ .metric .label { font-size: 11px; color: var(--ink-dim); }
230
+ .metric .value { font-size: 17px; font-weight: 600; font-variant-numeric: tabular-nums; }
231
+ .metric .value small { font-size: 11px; font-weight: 400; color: var(--ink-dim); margin-left: 2px; }
232
+ .metric.warn .value { color: var(--warn); }
233
+ .metric.ok .value { color: var(--ok); }
234
+ .spark { display: flex; align-items: flex-end; gap: 2px; height: 30px; margin-left: auto; padding-left: 18px; }
235
+ .spark i {
236
+ display: block; width: 6px; min-height: 2px; border-radius: 2px 2px 0 0;
237
+ background: color-mix(in srgb, var(--accent) 55%, transparent);
238
+ }
239
+ .spark i.today { background: var(--accent); }
240
+
241
+ /* ── 主体三栏 ───────────────────────────────────────── */
242
+
243
+ .workspace {
244
+ --rail-w: 232px;
245
+ --insp-w: 348px;
246
+ display: grid;
247
+ grid-template-columns: var(--rail-w) minmax(0, 1fr) var(--insp-w);
248
+ min-height: 0;
249
+ overflow: hidden;
250
+ transition: grid-template-columns .18s ease;
251
+ }
252
+ /* 没选中任何一条时,右栏收成一条 46px 的竖条,把宽度还给舞台 */
253
+ body[data-insp="off"] .workspace { --insp-w: 46px; }
254
+
255
+ .rail {
256
+ border-right: 1px solid var(--line);
257
+ padding: 12px;
258
+ overflow-y: auto;
259
+ background: var(--paper);
260
+ }
261
+ .rail h3, .inspector h3 {
262
+ margin: 0 0 8px;
263
+ font-size: 11px;
264
+ letter-spacing: .8px;
265
+ text-transform: uppercase;
266
+ color: var(--ink-dim);
267
+ font-weight: 600;
268
+ }
269
+ .rail section + section { margin-top: 16px; }
270
+ .rail .hint { font-size: 11px; color: var(--ink-dim); margin-top: 6px; }
271
+
272
+ .chip-list { display: flex; flex-wrap: wrap; gap: 5px; }
273
+ .chip {
274
+ display: inline-flex; align-items: center; gap: 6px;
275
+ padding: 4px 9px;
276
+ border: 1px solid var(--line);
277
+ border-radius: 999px;
278
+ background: var(--sheet);
279
+ color: var(--ink-soft);
280
+ font-size: 12px;
281
+ transition: all .12s;
282
+ }
283
+ .chip:hover { border-color: var(--line-strong); color: var(--ink); }
284
+ .chip.on { background: var(--sheet-3); border-color: var(--line-strong); color: var(--ink); }
285
+ .chip .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ink-dim); }
286
+ .chip .n { font-variant-numeric: tabular-nums; color: var(--ink-dim); font-size: 11px; }
287
+ .chip.on .n { color: var(--ink-soft); }
288
+
289
+ .field { display: flex; flex-direction: column; gap: 6px; }
290
+ .field label { font-size: 11px; color: var(--ink-dim); }
291
+ .field input[type="range"] { width: 100%; accent-color: var(--accent); }
292
+ .field .row { display: flex; gap: 6px; }
293
+ .seg { display: flex; gap: 2px; padding: 2px; background: var(--sheet-2); border: 1px solid var(--line); border-radius: 8px; }
294
+ .seg button { flex: 1; border: 0; background: none; color: var(--ink-soft); padding: 4px 0; border-radius: 6px; font-size: 11.5px; }
295
+ .seg button.on { background: var(--sheet); color: var(--ink); }
296
+ .seg button .n { font-size: 10px; color: var(--ink-dim); margin-left: 3px; font-variant-numeric: tabular-nums; }
297
+ .seg button.on .n { color: var(--ink-soft); }
298
+
299
+ .status-card {
300
+ border: 1px solid var(--line);
301
+ border-radius: var(--radius-sm);
302
+ background: var(--sheet);
303
+ padding: 9px 10px;
304
+ display: grid;
305
+ gap: 5px;
306
+ }
307
+ .status-card .line { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; }
308
+ .status-card .line b { font-weight: 600; font-variant-numeric: tabular-nums; }
309
+ .meter { height: 4px; border-radius: 2px; background: var(--sheet-3); overflow: hidden; }
310
+ .meter i { display: block; height: 100%; background: var(--accent); }
311
+
312
+ /* ── 舞台 ───────────────────────────────────────────── */
313
+
314
+ .stage { position: relative; min-width: 0; min-height: 0; background: var(--paper-2); }
315
+ .view { position: absolute; inset: 0; }
316
+ .view[hidden] { display: none; }
317
+
318
+ #view-graph canvas { width: 100%; height: 100%; display: block; cursor: grab; }
319
+ #view-graph canvas.dragging { cursor: grabbing; }
320
+
321
+ .graph-hud {
322
+ position: absolute; inset: auto 12px 12px 12px;
323
+ display: flex; align-items: flex-end; justify-content: space-between;
324
+ gap: 12px; pointer-events: none;
325
+ }
326
+ .graph-hud > * { pointer-events: auto; }
327
+ .legend { display: flex; flex-wrap: wrap; gap: 7px; padding: 6px 9px; background: color-mix(in srgb, var(--sheet) 82%, transparent); border: 1px solid var(--line); border-radius: 999px; backdrop-filter: blur(6px); }
328
+ .legend span { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; color: var(--ink-soft); }
329
+ .legend i { width: 8px; height: 8px; border-radius: 50%; }
330
+ .hud-actions { display: flex; align-items: center; gap: 6px; padding: 4px; background: color-mix(in srgb, var(--sheet) 82%, transparent); border: 1px solid var(--line); border-radius: 999px; backdrop-filter: blur(6px); }
331
+ .chip-btn { border: 0; background: none; color: var(--ink-soft); padding: 3px 9px; border-radius: 999px; font-size: 11.5px; }
332
+ .chip-btn:hover { background: var(--sheet-3); color: var(--ink); }
333
+ .switch { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; color: var(--ink-soft); padding: 0 6px 0 2px; }
334
+ .switch input { accent-color: var(--accent); }
335
+
336
+ .empty {
337
+ position: absolute; inset: 0;
338
+ display: grid; place-content: center; gap: 4px; text-align: center;
339
+ color: var(--ink-soft);
340
+ }
341
+ .empty[hidden] { display: none; }
342
+ .empty .dim { color: var(--ink-dim); font-size: 12px; }
343
+
344
+ /* 时间线 */
345
+ #view-timeline { overflow-y: auto; padding: 14px 18px 40px; }
346
+ .day-group { margin-bottom: 24px; }
347
+ .day-head {
348
+ position: sticky; top: 0; z-index: 2;
349
+ display: flex; align-items: baseline; gap: 8px;
350
+ padding: 6px 0 7px;
351
+ background: linear-gradient(var(--paper-2) 70%, transparent);
352
+ font-size: 11.5px; color: var(--ink-dim);
353
+ }
354
+ .day-head b { font-size: 13px; color: var(--ink); font-weight: 600; }
355
+ .tl-item {
356
+ display: grid;
357
+ grid-template-columns: 20px minmax(0, 1fr) auto;
358
+ gap: 10px;
359
+ padding: 8px 10px 8px 4px;
360
+ border-radius: 8px;
361
+ cursor: default;
362
+ transition: background .12s;
363
+ }
364
+ .tl-item:hover { background: var(--sheet-2); }
365
+ .tl-item.sel { background: var(--sheet-3); box-shadow: inset 0 0 0 1px var(--line-strong); }
366
+ .tl-dot { align-self: start; margin-top: 5px; width: 8px; height: 8px; border-radius: 50%; background: var(--ink-dim); }
367
+ .tl-body { min-width: 0; }
368
+ .tl-text { cursor: pointer; }
369
+ .tl-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; font-size: 11px; color: var(--ink-dim); }
370
+ .tl-meta .tag { color: var(--ink-soft); }
371
+ .tl-right { text-align: right; font-size: 11px; color: var(--ink-dim); white-space: nowrap; }
372
+ .wbar { width: 46px; height: 3px; border-radius: 2px; background: var(--sheet-3); overflow: hidden; margin-top: 4px; margin-left: auto; }
373
+ .wbar i { display: block; height: 100%; background: var(--accent); }
374
+
375
+ /* 表格 */
376
+ #view-table { overflow: auto; scrollbar-width: thin; scrollbar-color: var(--line-2) transparent; }
377
+ #view-table::-webkit-scrollbar { width: 9px; height: 9px; }
378
+ #view-table::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 5px; border: 2px solid transparent; background-clip: padding-box; }
379
+ #view-table::-webkit-scrollbar-thumb:hover { background: var(--line-strong); background-clip: padding-box; }
380
+ table.grid { width: 100%; min-width: 820px; table-layout: fixed; border-collapse: collapse; font-size: 12.5px; }
381
+ table.grid thead th {
382
+ position: sticky; top: 0; z-index: 2;
383
+ background: var(--paper-2);
384
+ text-align: left; font-weight: 600; color: var(--ink-soft);
385
+ padding: 8px 10px;
386
+ border-bottom: 1px solid var(--line);
387
+ cursor: pointer; user-select: none;
388
+ white-space: nowrap;
389
+ }
390
+ table.grid thead th:hover { color: var(--ink); }
391
+ table.grid thead th .arrow { opacity: .5; margin-left: 3px; font-size: 10px; }
392
+ table.grid tbody tr { border-bottom: 1px solid color-mix(in srgb, var(--line) 60%, transparent); }
393
+ table.grid tbody tr:hover { background: var(--sheet-2); }
394
+ table.grid tbody tr.sel { background: var(--sheet-3); }
395
+ table.grid tbody tr.sel td:first-child { box-shadow: inset 2px 0 0 var(--accent); }
396
+ table.grid td { padding: 7px 10px; vertical-align: top; overflow: hidden; }
397
+ table.grid td.text { white-space: normal; }
398
+ table.grid td.nowrap { white-space: nowrap; }
399
+ .kind-pill { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; color: var(--ink-soft); white-space: nowrap; }
400
+ .kind-pill i { width: 7px; height: 7px; border-radius: 50%; }
401
+ .tag-list { display: flex; flex-wrap: wrap; gap: 4px; }
402
+ .tag { font-size: 11px; color: var(--ink-soft); background: var(--sheet-2); border: 1px solid var(--line); border-radius: 5px; padding: 0 5px; }
403
+ tr.done td.text { color: var(--ink-dim); text-decoration: line-through; text-decoration-color: var(--line-strong); }
404
+ tr.retired td { opacity: .55; }
405
+ tr.retired td.text { text-decoration: line-through; text-decoration-color: var(--line-strong); }
406
+ .tl-item.retired { opacity: .55; }
407
+ .tl-item.retired .tl-text { text-decoration: line-through; text-decoration-color: var(--line-strong); }
408
+ .card-kind.retired { background: color-mix(in srgb, var(--warn) 18%, var(--sheet-2)); color: var(--warn); }
409
+
410
+ /* 权重:数字 + 微条,扫一眼就能比大小 */
411
+ .wt { display: inline-flex; align-items: center; gap: 6px; }
412
+ .wt-bar { width: 34px; height: 4px; border-radius: 2px; background: var(--sheet-3); overflow: hidden; flex: none; }
413
+ .wt-bar b { display: block; height: 100%; border-radius: 2px; background: var(--accent); }
414
+ .wt em { font-style: normal; font-variant-numeric: tabular-nums; color: var(--ink-soft); }
415
+ td.src { color: var(--ink-dim); font-size: 11.5px; text-overflow: ellipsis; }
416
+ td.time { color: var(--ink-dim); font-variant-numeric: tabular-nums; }
417
+ td.time:hover { color: var(--ink-soft); }
418
+ td .tag-list { max-height: 40px; overflow: hidden; }
419
+
420
+ /* 原文 / 文件 */
421
+ .turns-wrap, .docs-wrap { height: 100%; overflow-y: auto; padding: 14px 18px 40px; }
422
+ .turns-more {
423
+ display: block; width: 100%; margin: 6px 0 18px; padding: 9px;
424
+ font: inherit; font-size: 12px; color: var(--ink-dim);
425
+ background: transparent; border: 1px dashed var(--line-strong);
426
+ border-radius: 8px; cursor: pointer;
427
+ }
428
+ .turns-more:hover { color: var(--ink); border-color: var(--ink-dim); }
429
+ .turn { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 10px; padding: 5px 0; border-bottom: 1px dashed color-mix(in srgb, var(--line) 70%, transparent); }
430
+ .turn time { font-size: 11px; color: var(--ink-dim); font-family: var(--mono); padding-top: 1px; }
431
+ .turn .who { font-size: 10.5px; color: var(--ink-dim); }
432
+ .turn .msg { font-size: 12.5px; color: var(--ink-soft); word-break: break-word; }
433
+ mark { background: color-mix(in srgb, var(--warn) 32%, transparent); color: inherit; border-radius: 2px; padding: 0 1px; }
434
+
435
+ .doc-item {
436
+ display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px;
437
+ padding: 9px 10px; border: 1px solid var(--line); border-radius: 8px;
438
+ margin-bottom: 6px; background: var(--sheet); cursor: pointer;
439
+ }
440
+ .doc-item:hover { border-color: var(--line-strong); }
441
+ .doc-item.sel { border-color: var(--accent); }
442
+ .doc-item .name { font-size: 12.5px; }
443
+ .doc-item .path { font-size: 11px; color: var(--ink-dim); word-break: break-all; }
444
+ .doc-item .size { font-size: 11px; color: var(--ink-dim); white-space: nowrap; }
445
+
446
+ /* ── 详情栏 ─────────────────────────────────────────── */
447
+
448
+ .inspector {
449
+ border-left: 1px solid var(--line);
450
+ background: var(--paper);
451
+ display: flex;
452
+ flex-direction: column;
453
+ min-width: 0;
454
+ overflow: hidden;
455
+ }
456
+ .insp-body {
457
+ flex: 1;
458
+ min-height: 0;
459
+ overflow-y: auto;
460
+ padding: 14px;
461
+ }
462
+ .insp-stub {
463
+ display: none;
464
+ flex: 1;
465
+ flex-direction: column;
466
+ align-items: center;
467
+ gap: 12px;
468
+ width: 100%;
469
+ border: 0;
470
+ background: none;
471
+ color: var(--ink-dim);
472
+ padding: 12px 0;
473
+ transition: color .15s, background .15s;
474
+ }
475
+ body[data-insp="off"] .insp-stub { display: flex; }
476
+ body[data-insp="off"] .insp-body { display: none; }
477
+ .insp-stub:hover { color: var(--ink); background: var(--sheet-2); }
478
+ .stub-chev { font-size: 15px; line-height: 1; opacity: .55; }
479
+ .stub-label { writing-mode: vertical-rl; letter-spacing: 3px; font-size: 11px; }
480
+ .stub-count {
481
+ writing-mode: horizontal-tb;
482
+ font-size: 10.5px; padding: 0 5px;
483
+ border: 1px solid var(--line); border-radius: 999px;
484
+ color: var(--ink-soft); font-variant-numeric: tabular-nums;
485
+ }
486
+ .insp-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
487
+ .card-kind {
488
+ display: inline-flex; align-items: center; gap: 6px;
489
+ padding: 2px 8px; border-radius: 999px; font-size: 11px;
490
+ background: var(--sheet-2); color: var(--ink-soft);
491
+ }
492
+ .card-kind i { width: 7px; height: 7px; border-radius: 50%; }
493
+ .card-text {
494
+ font-size: 13.5px; line-height: 1.7;
495
+ padding: 10px 12px;
496
+ background: var(--sheet);
497
+ border: 1px solid var(--line);
498
+ border-radius: var(--radius-sm);
499
+ white-space: pre-wrap; word-break: break-word;
500
+ }
501
+ .card-meta { margin-top: 10px; display: grid; gap: 6px; font-size: 12px; }
502
+ .card-meta .kv { display: flex; justify-content: space-between; gap: 10px; color: var(--ink-dim); }
503
+ .card-meta .kv b { color: var(--ink-soft); font-weight: 500; text-align: right; }
504
+ .card-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
505
+
506
+ .related { margin-top: 16px; }
507
+ .related-item { display: block; width: 100%; text-align: left; border: 0; background: none; padding: 6px 8px; border-radius: 7px; color: var(--ink-soft); font-size: 12px; }
508
+ .related-item:hover { background: var(--sheet-2); color: var(--ink); }
509
+ .related-item .why { display: block; font-size: 10.5px; color: var(--ink-dim); }
510
+
511
+ /* 版本链:这条接替了谁 / 被谁接替 */
512
+ .lineage { margin-top: 16px; padding-top: 12px; border-top: 1px dashed color-mix(in srgb, var(--line) 80%, transparent); }
513
+ .lineage h3 { margin: 0 0 6px; }
514
+ .lineage-note { margin: 0; font-size: 11.5px; color: var(--ink-dim); }
515
+
516
+ /* 维护面板 */
517
+ .maint-tabs { display: flex; gap: 4px; margin-bottom: 10px; }
518
+ .maint-tabs button {
519
+ border: 1px solid var(--line); background: var(--sheet-2); color: var(--ink-soft);
520
+ padding: 4px 10px; border-radius: 999px; font-size: 12px;
521
+ display: inline-flex; align-items: center; gap: 5px;
522
+ }
523
+ .maint-tabs button.on { background: var(--sheet-3); border-color: var(--line-strong); color: var(--ink); }
524
+ .maint-tabs button span { font-size: 10.5px; color: var(--ink-dim); font-variant-numeric: tabular-nums; }
525
+ .maint-note { margin: 0 0 12px; font-size: 11px; color: var(--ink-dim); }
526
+ .maint-body { display: grid; gap: 8px; }
527
+ .maint-empty { margin: 12px 0; font-size: 12px; color: var(--ink-dim); text-align: center; }
528
+ .maint-group { border: 1px solid var(--line); border-radius: 9px; padding: 6px; background: var(--paper); }
529
+ .maint-group-head { font-size: 11px; color: var(--warn); padding: 2px 6px 6px; }
530
+ .maint-row {
531
+ display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: start;
532
+ padding: 6px 6px; border-radius: 7px;
533
+ }
534
+ .maint-row + .maint-row { border-top: 1px dashed color-mix(in srgb, var(--line) 70%, transparent); }
535
+ .maint-row:hover { background: var(--sheet-2); }
536
+ .maint-main { min-width: 0; display: grid; gap: 2px; }
537
+ .maint-text { font-size: 12.5px; color: var(--ink-soft); }
538
+ .maint-meta { font-size: 10.5px; color: var(--ink-dim); }
539
+ .maint-act { display: flex; gap: 4px; }
540
+
541
+ .editor { display: grid; gap: 10px; margin-top: 8px; }
542
+ .editor textarea {
543
+ width: 100%; min-height: 108px; resize: vertical;
544
+ padding: 9px 10px; border-radius: var(--radius-sm);
545
+ border: 1px solid var(--line-2); background: var(--sheet); outline: none;
546
+ line-height: 1.65;
547
+ }
548
+ .editor textarea:focus { border-color: var(--accent); }
549
+ .editor .row { display: flex; gap: 8px; align-items: center; }
550
+ .editor .row > * { flex: 1; }
551
+ .editor input[type="text"], .editor input[type="datetime-local"], .editor select {
552
+ width: 100%; padding: 6px 9px; border-radius: 7px;
553
+ border: 1px solid var(--line-2); background: var(--sheet); outline: none;
554
+ }
555
+ .editor input:focus, .editor select:focus { border-color: var(--accent); }
556
+ .editor .label { font-size: 11px; color: var(--ink-dim); }
557
+
558
+ .dist { display: grid; gap: 6px; }
559
+ .dist .row { display: grid; grid-template-columns: 62px 1fr 26px; gap: 8px; align-items: center; font-size: 11.5px; color: var(--ink-dim); }
560
+ .dist .track { height: 5px; border-radius: 3px; background: var(--sheet-3); overflow: hidden; }
561
+ .dist .track i { display: block; height: 100%; }
562
+
563
+ .recent-list { display: grid; gap: 2px; }
564
+ .recent-list button {
565
+ text-align: left; border: 0; background: none; color: var(--ink-soft);
566
+ padding: 6px 8px; border-radius: 7px; font-size: 12px;
567
+ overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
568
+ }
569
+ .recent-list button:hover { background: var(--sheet-2); color: var(--ink); }
570
+
571
+ /* ── 状态栏 ─────────────────────────────────────────── */
572
+
573
+ .statusbar {
574
+ display: flex; align-items: center; gap: 10px;
575
+ padding: 5px 14px;
576
+ border-top: 1px solid var(--line);
577
+ font-size: 11px; color: var(--ink-dim);
578
+ background: var(--paper-2);
579
+ min-height: 26px;
580
+ }
581
+ .statusbar .sep { width: 1px; height: 11px; background: var(--line-2); }
582
+ .statusbar .grow { flex: 1; }
583
+ .statusbar .dim { color: var(--ink-dim); }
584
+ .kbd-hints { display: flex; align-items: center; gap: 4px; }
585
+ kbd {
586
+ font-family: var(--mono); font-size: 10px;
587
+ border: 1px solid var(--line-2); border-bottom-width: 2px;
588
+ border-radius: 4px; padding: 0 4px; color: var(--ink-soft);
589
+ background: var(--sheet);
590
+ }
591
+
592
+ /* ── 弹层 ───────────────────────────────────────────── */
593
+
594
+ .modal {
595
+ position: fixed; inset: 0; z-index: 50;
596
+ display: grid; place-items: center;
597
+ background: color-mix(in srgb, var(--paper) 55%, transparent);
598
+ backdrop-filter: blur(3px);
599
+ }
600
+ .modal[hidden] { display: none; }
601
+ .modal-panel {
602
+ width: min(560px, calc(100vw - 40px));
603
+ max-height: calc(100vh - 80px);
604
+ display: flex; flex-direction: column;
605
+ background: var(--sheet);
606
+ border: 1px solid var(--line-2);
607
+ border-radius: 14px;
608
+ box-shadow: var(--shadow);
609
+ overflow: hidden;
610
+ }
611
+ .modal-panel header { display: flex; align-items: center; justify-content: space-between; padding: 13px 16px; border-bottom: 1px solid var(--line); }
612
+ .modal-panel header h2 { margin: 0; font-size: 14px; font-weight: 600; }
613
+ .modal-body { padding: 14px 16px; overflow-y: auto; }
614
+ .modal-panel footer { display: flex; justify-content: flex-end; gap: 8px; padding: 12px 16px; border-top: 1px solid var(--line); background: var(--paper); }
615
+
616
+ .shortcuts { display: grid; grid-template-columns: auto 1fr; gap: 7px 16px; font-size: 12.5px; }
617
+ .shortcuts kbd { font-size: 10.5px; padding: 1px 6px; }
618
+
619
+ .toast {
620
+ position: fixed; left: 50%; bottom: 34px; transform: translateX(-50%);
621
+ z-index: 60;
622
+ padding: 8px 14px; border-radius: 999px;
623
+ background: var(--sheet-3); border: 1px solid var(--line-2);
624
+ color: var(--ink); font-size: 12px;
625
+ box-shadow: var(--shadow);
626
+ animation: toast-in .18s ease-out;
627
+ }
628
+ .toast[hidden] { display: none; }
629
+ .toast.err { border-color: var(--danger); color: var(--danger); }
630
+ @keyframes toast-in { from { opacity: 0; transform: translate(-50%, 6px); } }
631
+
632
+ .menu {
633
+ position: fixed; z-index: 55;
634
+ min-width: 190px;
635
+ padding: 5px;
636
+ background: var(--sheet);
637
+ border: 1px solid var(--line-2);
638
+ border-radius: 10px;
639
+ box-shadow: var(--shadow);
640
+ }
641
+ .menu[hidden] { display: none; }
642
+ .menu button {
643
+ display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 12px;
644
+ border: 0; background: none; color: var(--ink-soft);
645
+ padding: 7px 9px; border-radius: 7px; font-size: 12.5px; text-align: left;
646
+ }
647
+ .menu button:hover { background: var(--sheet-2); color: var(--ink); }
648
+ .menu hr { border: 0; border-top: 1px solid var(--line); margin: 5px 2px; }
649
+
650
+ @media (max-width: 1180px) {
651
+ .workspace { --rail-w: 200px; --insp-w: 300px; }
652
+ .brand { min-width: 0; }
653
+ .brand-text span { display: none; }
654
+ }
655
+ @media (max-width: 980px) {
656
+ .workspace { --rail-w: 0px; --insp-w: 300px; }
657
+ .rail { display: none; }
658
+ .tabs .tab span { display: none; }
659
+ .tabs .tab::after { content: attr(data-letter); }
660
+ }
661
+ @media (max-width: 760px) {
662
+ .workspace { --insp-w: 0px; grid-template-columns: minmax(0, 1fr); }
663
+ .inspector { display: none; }
664
+ .kbd-hints { display: none; }
665
+ }
666
+
667
+ /* ── 体检 ───────────────────────────────────────────── */
668
+ .toast { display: inline-flex; align-items: center; gap: 8px; }
669
+ .toast-undo {
670
+ background: transparent; border: 1px solid currentColor; color: inherit;
671
+ border-radius: 6px; font-size: 12px; padding: 2px 8px; cursor: pointer;
672
+ }
673
+ .health-wrap { height: 100%; overflow-y: auto; padding: 16px 18px 48px; display: grid; gap: 18px; align-content: start; }
674
+ .h-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
675
+ .h-card { border: 1px solid var(--line); border-radius: var(--radius); background: var(--sheet); padding: 12px 14px; }
676
+ .h-card.warn { border-color: color-mix(in srgb, var(--warn) 45%, var(--line)); }
677
+ .h-label { font-size: 11px; color: var(--ink-dim); }
678
+ .h-value { font-size: 26px; line-height: 1.3; font-family: var(--mono); color: var(--ink); }
679
+ .h-card.warn .h-value { color: var(--warn); }
680
+ .h-hint { font-size: 11px; color: var(--ink-dim); margin-top: 2px; }
681
+ .h-block h3 {
682
+ font-size: 12px; font-weight: 500; color: var(--ink-soft);
683
+ margin: 0 0 8px; display: flex; align-items: center; gap: 10px;
684
+ }
685
+ .h-chart { display: flex; align-items: flex-end; gap: 4px; height: 112px; border-bottom: 1px solid var(--line); padding-bottom: 4px; }
686
+ .h-bar { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 3px; height: 100%; }
687
+ .h-bar i { display: block; width: 100%; max-width: 26px; border-radius: 3px 3px 0 0; background: color-mix(in srgb, var(--accent) 55%, transparent); }
688
+ .h-bar b { font-size: 10px; font-weight: 400; color: var(--ink-dim); }
689
+ .h-bar span { font-size: 9.5px; color: var(--ink-dim); }
690
+ .h-line { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; font-size: 12px; color: var(--ink-soft); }
691
+ .h-line b { color: var(--ink); font-family: var(--mono); }
692
+ .h-line .warn { color: var(--warn); }
693
+ .h-line .dim { color: var(--ink-dim); font-size: 11px; }
694
+ .maint-list { display: grid; gap: 2px; }
695
+ .maint-row.wide { grid-template-columns: minmax(0, 1fr); }
696
+ .maint-row.wide .maint-act { justify-content: flex-end; padding-top: 2px; }
697
+ .due-input {
698
+ background: var(--paper); border: 1px solid var(--line-2); color: var(--ink);
699
+ font-size: 11px; border-radius: 6px; padding: 3px 6px; font-family: var(--mono);
700
+ width: 188px;
701
+ }
702
+
703
+ /* ── 原文页:含归档开关 ───────────────────────────────── */
704
+ .turns-bar {
705
+ position: sticky; top: 0; z-index: 2;
706
+ display: flex; align-items: center; gap: 12px;
707
+ padding: 2px 0 10px; margin-bottom: 2px;
708
+ background: linear-gradient(var(--paper) 72%, transparent);
709
+ font-size: 11.5px;
710
+ }
711
+ .turns-bar .dim { color: var(--ink-dim); }
712
+ .turns-none { padding: 14px 2px; font-size: 12px; }
713
+ .day-group.archive .day-head b { color: var(--warn); }
714
+ .day-group.archive .turn { opacity: 0.92; }
715
+ .archive-head {
716
+ display: flex; align-items: center; gap: 8px;
717
+ margin: 18px 0 6px; padding-top: 12px;
718
+ border-top: 1px dashed var(--line-2);
719
+ font-size: 11px; color: var(--warn);
720
+ }
721
+ .archive-head span { color: var(--ink-dim); }
722
+
723
+ /* ── 原文单条删除 ───────────────────────────────────── */
724
+ .turn { position: relative; padding-right: 22px; }
725
+ .turn-del {
726
+ position: absolute; right: 4px; top: 6px;
727
+ width: 20px; height: 20px; padding: 0;
728
+ display: grid; place-items: center;
729
+ border: 1px solid transparent; border-radius: 6px;
730
+ background: transparent; color: var(--ink-dim);
731
+ font-size: 14px; line-height: 1; cursor: pointer;
732
+ opacity: 0; transition: opacity .12s ease;
733
+ }
734
+ .turn:hover .turn-del, .turn-del:focus-visible { opacity: 1; }
735
+ .turn-del:hover { color: var(--danger); border-color: color-mix(in srgb, var(--danger) 45%, transparent); background: var(--paper); }
736
+ @media (hover: none) { .turn-del { opacity: .55; } }
737
+
738
+ /* ── 星图皮肤开关 ───────────────────────────────────── */
739
+ .chip-btn.on {
740
+ background: color-mix(in srgb, var(--warn) 16%, transparent);
741
+ color: var(--ink);
742
+ }
743
+
744
+ /* ── 记忆星图 ───────────────────────────────────────── */
745
+ #view-galaxy { padding: 12px; box-sizing: border-box; }
746
+ .galaxy-wrap {
747
+ position: relative; height: 100%; border-radius: 14px; overflow: hidden;
748
+ background: #04050c;
749
+ box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--line) 70%, transparent), 0 10px 30px rgba(0,0,0,.28);
750
+ }
751
+ #galaxy { display: block; width: 100%; height: 100%; }
752
+ .galaxy-hud {
753
+ position: absolute; left: 20px; top: 16px;
754
+ display: flex; flex-direction: column; gap: 5px;
755
+ color: #e6edf7; pointer-events: none;
756
+ }
757
+ .galaxy-hud b { font-size: 15px; font-weight: 600; letter-spacing: .08em; }
758
+ .galaxy-hud span { font-size: 10.5px; color: #7d8ba6; }
759
+ .galaxy-legend {
760
+ position: absolute; left: 20px; bottom: 16px;
761
+ display: flex; gap: 14px; font-size: 10.5px;
762
+ pointer-events: none;
763
+ }
764
+ .galaxy-legend i {
765
+ display: inline-block; width: 6px; height: 6px; border-radius: 50%;
766
+ margin-right: 5px; vertical-align: 1px; box-shadow: 0 0 8px currentColor;
767
+ }
768
+ .galaxy-empty {
769
+ position: absolute; inset: 0; display: grid; place-items: center;
770
+ color: #7d8ba6; font-size: 12.5px;
771
+ }
772
+ .galaxy-empty[hidden] { display: none; }
773
+
774
+ /* ── 星图:仪表盘质感 ───────────────────────────────── */
775
+ #galaxy { cursor: grab; }
776
+ #galaxy.grabbing { cursor: grabbing; }
777
+ .galaxy-wrap::before {
778
+ content: ''; position: absolute; inset: 10px; border-radius: 9px;
779
+ border: 1px solid rgba(120, 220, 214, 0.10);
780
+ box-shadow: inset 0 0 40px rgba(60, 160, 190, 0.06);
781
+ pointer-events: none;
782
+ }
783
+ .galaxy-scan {
784
+ position: absolute; inset: 0; pointer-events: none;
785
+ background: repeating-linear-gradient(0deg, rgba(140, 230, 225, 0.028) 0 1px, transparent 1px 3px);
786
+ mix-blend-mode: screen;
787
+ }
788
+ .galaxy-scan::after {
789
+ content: ''; position: absolute; left: 0; right: 0; height: 90px;
790
+ background: linear-gradient(180deg, rgba(120, 255, 240, 0) 0%, rgba(120, 255, 240, 0.045) 60%, rgba(120, 255, 240, 0) 100%);
791
+ animation: gx-sweep 7s linear infinite;
792
+ }
793
+ @keyframes gx-sweep {
794
+ from { transform: translateY(-90px); }
795
+ to { transform: translateY(100%); }
796
+ }
797
+ .galaxy-hud b {
798
+ color: #dff7f4; text-shadow: 0 0 16px rgba(120, 255, 240, 0.35);
799
+ }
800
+ .galaxy-hud b::before {
801
+ content: ''; display: inline-block; width: 5px; height: 5px; border-radius: 50%;
802
+ background: #7fe3d4; margin-right: 8px; vertical-align: 2px;
803
+ box-shadow: 0 0 10px #7fe3d4;
804
+ }
805
+ .galaxy-telemetry {
806
+ position: absolute; right: 20px; bottom: 14px;
807
+ font: 10px/1.4 ui-monospace, "SF Mono", Consolas, monospace;
808
+ letter-spacing: .08em; color: rgba(120, 220, 214, 0.55);
809
+ pointer-events: none;
810
+ }
811
+ .galaxy-hint {
812
+ position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%);
813
+ font-size: 10.5px; color: rgba(150, 170, 200, 0.45);
814
+ pointer-events: none; letter-spacing: .04em;
733
815
  }
734
- .turn:hover .turn-del, .turn-del:focus-visible { opacity: 1; }
735
- .turn-del:hover { color: var(--danger); border-color: color-mix(in srgb, var(--danger) 45%, transparent); background: var(--paper); }
736
- @media (hover: none) { .turn-del { opacity: .55; } }