@venizia/vulcan-okf 0.3.10 → 0.3.12

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 (2) hide show
  1. package/package.json +15 -16
  2. package/src/viz/template.html +565 -125
package/package.json CHANGED
@@ -1,33 +1,25 @@
1
1
  {
2
2
  "name": "@venizia/vulcan-okf",
3
- "version": "0.3.10",
3
+ "version": "0.3.12",
4
4
  "description": "VULCAN knowledge tooling: OKF v0.2 conformance check (plus --strict house rules), gen, coverage and the offline graph explorer for a project's .agents/knowledge bundle. Bun-only.",
5
5
  "homepage": "https://github.com/VENIZIA-AI/vulcan/tree/main/packages/okf",
6
- "repository": {
7
- "type": "git",
8
- "url": "git+https://github.com/VENIZIA-AI/vulcan.git",
9
- "directory": "packages/okf"
10
- },
11
6
  "bugs": {
12
7
  "url": "https://github.com/VENIZIA-AI/vulcan/issues"
13
8
  },
9
+ "license": "MIT",
14
10
  "author": {
15
11
  "name": "VENIZIA AI Developer",
16
12
  "email": "developer@venizia.ai",
17
13
  "url": "https://venizia.ai"
18
14
  },
19
- "license": "MIT",
20
- "type": "module",
21
- "engines": {
22
- "bun": ">=1.4"
15
+ "repository": {
16
+ "type": "git",
17
+ "url": "git+https://github.com/VENIZIA-AI/vulcan.git",
18
+ "directory": "packages/okf"
23
19
  },
24
20
  "bin": {
25
21
  "vulcan-okf": "./src/cli.ts"
26
22
  },
27
- "exports": {
28
- ".": "./src/index.ts",
29
- "./package.json": "./package.json"
30
- },
31
23
  "files": [
32
24
  "README.md",
33
25
  "LICENSE.md",
@@ -35,6 +27,12 @@
35
27
  "!**/__tests__",
36
28
  "!**/*.tsbuildinfo"
37
29
  ],
30
+ "type": "module",
31
+ "sideEffects": false,
32
+ "exports": {
33
+ ".": "./src/index.ts",
34
+ "./package.json": "./package.json"
35
+ },
38
36
  "publishConfig": {
39
37
  "access": "public"
40
38
  },
@@ -51,10 +49,11 @@
51
49
  "@types/cytoscape-fcose": "2.2.5",
52
50
  "@venizia/dev-configs": "0.3.5",
53
51
  "eslint": "10.13.0",
54
- "oxfmt": "0.74.0",
55
52
  "oxlint": "1.89.0",
56
53
  "oxlint-tsgolint": "7.0.2004",
57
54
  "typescript": "^6.0.3"
58
55
  },
59
- "sideEffects": false
56
+ "engines": {
57
+ "bun": ">=1.4.4"
58
+ }
60
59
  }
@@ -1,140 +1,580 @@
1
1
  <!doctype html>
2
2
  <html lang="en">
3
- <head>
4
- <meta charset="utf-8" />
5
- <meta name="viewport" content="width=device-width, initial-scale=1" />
6
- <title>__OKF_BRAND__ · Knowledge</title>
7
- <style>
8
- :root {
9
- --bg:#16161a; --bg-soft:#1c1c21; --bg-alt:#121215; --text:#e7e7e3; --text-2:#9b9ba4;
10
- --border:#2a2a30; --brand:#a8b1ff;
11
- --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
12
- --mono: ui-monospace, "SF Mono", "JetBrains Mono", "Cascadia Code", Menlo, monospace;
13
- color-scheme: dark;
14
- }
15
- * { box-sizing: border-box; }
16
- html,body { height:100%; margin:0; }
17
- body { font:15px/1.6 var(--font); background:var(--bg); color:var(--text); overflow:hidden; -webkit-font-smoothing:antialiased; }
18
- a { color:inherit; text-decoration:none; }
19
- ::selection { background:color-mix(in srgb, var(--brand) 35%, transparent); }
3
+ <head>
4
+ <meta charset="utf-8" />
5
+ <meta name="viewport" content="width=device-width, initial-scale=1" />
6
+ <title>__OKF_BRAND__ · Knowledge</title>
7
+ <style>
8
+ :root {
9
+ --bg: #16161a;
10
+ --bg-soft: #1c1c21;
11
+ --bg-alt: #121215;
12
+ --text: #e7e7e3;
13
+ --text-2: #9b9ba4;
14
+ --border: #2a2a30;
15
+ --brand: #a8b1ff;
16
+ --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
17
+ --mono: ui-monospace, "SF Mono", "JetBrains Mono", "Cascadia Code", Menlo, monospace;
18
+ color-scheme: dark;
19
+ }
20
+ * {
21
+ box-sizing: border-box;
22
+ }
23
+ html,
24
+ body {
25
+ height: 100%;
26
+ margin: 0;
27
+ }
28
+ body {
29
+ font: 15px/1.6 var(--font);
30
+ background: var(--bg);
31
+ color: var(--text);
32
+ overflow: hidden;
33
+ -webkit-font-smoothing: antialiased;
34
+ }
35
+ a {
36
+ color: inherit;
37
+ text-decoration: none;
38
+ }
39
+ ::selection {
40
+ background: color-mix(in srgb, var(--brand) 35%, transparent);
41
+ }
20
42
 
21
- #app { display:grid; grid-template-rows:auto 1fr; height:100vh; }
43
+ #app {
44
+ display: grid;
45
+ grid-template-rows: auto 1fr;
46
+ height: 100vh;
47
+ }
22
48
 
23
- /* header */
24
- #bar { display:flex; align-items:center; gap:18px; padding:0 20px; height:54px; border-bottom:1px solid var(--border); background:var(--bg-alt); }
25
- .brand { font-family:var(--mono); font-weight:700; font-size:14px; letter-spacing:.04em; cursor:pointer; white-space:nowrap; }
26
- .brand b { color:var(--brand); }
27
- .brand span { color:var(--text-2); font-weight:500; }
28
- #search { flex:1; max-width:420px; background:var(--bg); border:1px solid var(--border); color:var(--text); padding:8px 12px; border-radius:9px; font-size:13.5px; font-family:var(--font); }
29
- #search:focus { outline:none; border-color:var(--brand); }
30
- .spacer { flex:1; }
31
- .seg { display:flex; border:1px solid var(--border); border-radius:9px; overflow:hidden; font-family:var(--mono); font-size:12px; }
32
- .seg button { background:transparent; border:0; color:var(--text-2); padding:7px 14px; cursor:pointer; letter-spacing:.03em; }
33
- .seg button.on { background:var(--brand); color:#0b0b10; font-weight:600; }
49
+ /* header */
50
+ #bar {
51
+ display: flex;
52
+ align-items: center;
53
+ gap: 18px;
54
+ padding: 0 20px;
55
+ height: 54px;
56
+ border-bottom: 1px solid var(--border);
57
+ background: var(--bg-alt);
58
+ }
59
+ .brand {
60
+ font-family: var(--mono);
61
+ font-weight: 700;
62
+ font-size: 14px;
63
+ letter-spacing: 0.04em;
64
+ cursor: pointer;
65
+ white-space: nowrap;
66
+ }
67
+ .brand b {
68
+ color: var(--brand);
69
+ }
70
+ .brand span {
71
+ color: var(--text-2);
72
+ font-weight: 500;
73
+ }
74
+ #search {
75
+ flex: 1;
76
+ max-width: 420px;
77
+ background: var(--bg);
78
+ border: 1px solid var(--border);
79
+ color: var(--text);
80
+ padding: 8px 12px;
81
+ border-radius: 9px;
82
+ font-size: 13.5px;
83
+ font-family: var(--font);
84
+ }
85
+ #search:focus {
86
+ outline: none;
87
+ border-color: var(--brand);
88
+ }
89
+ .spacer {
90
+ flex: 1;
91
+ }
92
+ .seg {
93
+ display: flex;
94
+ border: 1px solid var(--border);
95
+ border-radius: 9px;
96
+ overflow: hidden;
97
+ font-family: var(--mono);
98
+ font-size: 12px;
99
+ }
100
+ .seg button {
101
+ background: transparent;
102
+ border: 0;
103
+ color: var(--text-2);
104
+ padding: 7px 14px;
105
+ cursor: pointer;
106
+ letter-spacing: 0.03em;
107
+ }
108
+ .seg button.on {
109
+ background: var(--brand);
110
+ color: #0b0b10;
111
+ font-weight: 600;
112
+ }
34
113
 
35
- #layout { display:grid; grid-template-columns:286px 1fr; min-height:0; }
114
+ #layout {
115
+ display: grid;
116
+ grid-template-columns: 286px 1fr;
117
+ min-height: 0;
118
+ }
36
119
 
37
- /* sidebar */
38
- #side { overflow-y:auto; border-right:1px solid var(--border); background:var(--bg-soft); padding:10px 0 40px; }
39
- .grp { margin-bottom:2px; }
40
- .grp > .gh { display:flex; align-items:center; gap:9px; padding:9px 18px 6px; cursor:pointer; }
41
- .grp > .gh .gname { font-family:var(--mono); font-size:11px; letter-spacing:.13em; text-transform:uppercase; color:var(--text-2); font-weight:600; }
42
- .grp > .gh .gbar { width:7px; height:7px; border-radius:2px; flex:none; }
43
- .grp > .gh .gn { margin-left:auto; font-family:var(--mono); font-size:10.5px; color:var(--text-2); opacity:.8; }
44
- .grp > .gh:hover .gname { color:var(--text); }
45
- .grp.col > .items { display:none; }
46
- .grp.col > .gh .gname::after { content:' +'; opacity:.5; }
47
- .items { padding-bottom:6px; }
48
- .it { display:flex; align-items:center; gap:9px; padding:5px 18px 5px 34px; cursor:pointer; font-size:13.5px; color:var(--text); border-left:2px solid transparent; }
49
- .it:hover { background:var(--bg); }
50
- .it.on { border-left-color:var(--accent); background:var(--bg); color:var(--text); font-weight:550; }
51
- .it.hide { display:none; }
52
- .it .d { width:6px; height:6px; border-radius:50%; flex:none; background:var(--accent); opacity:.85; }
120
+ /* sidebar */
121
+ #side {
122
+ overflow-y: auto;
123
+ border-right: 1px solid var(--border);
124
+ background: var(--bg-soft);
125
+ padding: 10px 0 40px;
126
+ }
127
+ .grp {
128
+ margin-bottom: 2px;
129
+ }
130
+ .grp > .gh {
131
+ display: flex;
132
+ align-items: center;
133
+ gap: 9px;
134
+ padding: 9px 18px 6px;
135
+ cursor: pointer;
136
+ }
137
+ .grp > .gh .gname {
138
+ font-family: var(--mono);
139
+ font-size: 11px;
140
+ letter-spacing: 0.13em;
141
+ text-transform: uppercase;
142
+ color: var(--text-2);
143
+ font-weight: 600;
144
+ }
145
+ .grp > .gh .gbar {
146
+ width: 7px;
147
+ height: 7px;
148
+ border-radius: 2px;
149
+ flex: none;
150
+ }
151
+ .grp > .gh .gn {
152
+ margin-left: auto;
153
+ font-family: var(--mono);
154
+ font-size: 10.5px;
155
+ color: var(--text-2);
156
+ opacity: 0.8;
157
+ }
158
+ .grp > .gh:hover .gname {
159
+ color: var(--text);
160
+ }
161
+ .grp.col > .items {
162
+ display: none;
163
+ }
164
+ .grp.col > .gh .gname::after {
165
+ content: ' +';
166
+ opacity: 0.5;
167
+ }
168
+ .items {
169
+ padding-bottom: 6px;
170
+ }
171
+ .it {
172
+ display: flex;
173
+ align-items: center;
174
+ gap: 9px;
175
+ padding: 5px 18px 5px 34px;
176
+ cursor: pointer;
177
+ font-size: 13.5px;
178
+ color: var(--text);
179
+ border-left: 2px solid transparent;
180
+ }
181
+ .it:hover {
182
+ background: var(--bg);
183
+ }
184
+ .it.on {
185
+ border-left-color: var(--accent);
186
+ background: var(--bg);
187
+ color: var(--text);
188
+ font-weight: 550;
189
+ }
190
+ .it.hide {
191
+ display: none;
192
+ }
193
+ .it .d {
194
+ width: 6px;
195
+ height: 6px;
196
+ border-radius: 50%;
197
+ flex: none;
198
+ background: var(--accent);
199
+ opacity: 0.85;
200
+ }
53
201
 
54
- /* stage */
55
- #stage { overflow-y:auto; position:relative; }
56
- #reader { max-width:1080px; margin:0 auto; padding:40px 48px 100px; }
202
+ /* stage */
203
+ #stage {
204
+ overflow-y: auto;
205
+ position: relative;
206
+ }
207
+ #reader {
208
+ max-width: 1080px;
209
+ margin: 0 auto;
210
+ padding: 40px 48px 100px;
211
+ }
57
212
 
58
- /* home */
59
- .hero { margin:8px 0 36px; }
60
- .hero .eyebrow { font-family:var(--mono); font-size:11.5px; letter-spacing:.16em; text-transform:uppercase; color:var(--text-2); }
61
- .hero h1 { font-size:30px; line-height:1.15; margin:10px 0 8px; font-weight:680; letter-spacing:-.01em; max-width:18ch; }
62
- .hero p { color:var(--text-2); font-size:16px; margin:0; max-width:60ch; }
63
- .grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(280px,1fr)); gap:14px; }
64
- .card { border:1px solid var(--border); border-radius:13px; background:var(--bg-soft); padding:16px 18px; cursor:pointer; transition:border-color .15s, transform .15s, box-shadow .15s; border-top:2px solid var(--accent); }
65
- .card:hover { transform:translateY(-2px); border-color:color-mix(in srgb, var(--accent) 55%, var(--border)); box-shadow:0 8px 26px -14px var(--accent); }
66
- .card .ch { display:flex; align-items:baseline; gap:8px; }
67
- .card .ck { font-family:var(--mono); font-size:11px; letter-spacing:.12em; text-transform:uppercase; color:var(--accent); font-weight:600; }
68
- .card .cn { margin-left:auto; font-family:var(--mono); font-size:11px; color:var(--text-2); }
69
- .card .cd { color:var(--text-2); font-size:13.5px; margin:7px 0 11px; min-height:38px; }
70
- .card .cl { display:flex; flex-direction:column; gap:3px; }
71
- .card .cl a { font-size:13px; color:var(--text); opacity:.82; }
72
- .card .cl a:hover { color:var(--accent); opacity:1; }
73
- .card .more { font-family:var(--mono); font-size:11px; color:var(--text-2); margin-top:6px; }
213
+ /* home */
214
+ .hero {
215
+ margin: 8px 0 36px;
216
+ }
217
+ .hero .eyebrow {
218
+ font-family: var(--mono);
219
+ font-size: 11.5px;
220
+ letter-spacing: 0.16em;
221
+ text-transform: uppercase;
222
+ color: var(--text-2);
223
+ }
224
+ .hero h1 {
225
+ font-size: 30px;
226
+ line-height: 1.15;
227
+ margin: 10px 0 8px;
228
+ font-weight: 680;
229
+ letter-spacing: -0.01em;
230
+ max-width: 18ch;
231
+ }
232
+ .hero p {
233
+ color: var(--text-2);
234
+ font-size: 16px;
235
+ margin: 0;
236
+ max-width: 60ch;
237
+ }
238
+ .grid {
239
+ display: grid;
240
+ grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
241
+ gap: 14px;
242
+ }
243
+ .card {
244
+ border: 1px solid var(--border);
245
+ border-radius: 13px;
246
+ background: var(--bg-soft);
247
+ padding: 16px 18px;
248
+ cursor: pointer;
249
+ transition:
250
+ border-color 0.15s,
251
+ transform 0.15s,
252
+ box-shadow 0.15s;
253
+ border-top: 2px solid var(--accent);
254
+ }
255
+ .card:hover {
256
+ transform: translateY(-2px);
257
+ border-color: color-mix(in srgb, var(--accent) 55%, var(--border));
258
+ box-shadow: 0 8px 26px -14px var(--accent);
259
+ }
260
+ .card .ch {
261
+ display: flex;
262
+ align-items: baseline;
263
+ gap: 8px;
264
+ }
265
+ .card .ck {
266
+ font-family: var(--mono);
267
+ font-size: 11px;
268
+ letter-spacing: 0.12em;
269
+ text-transform: uppercase;
270
+ color: var(--accent);
271
+ font-weight: 600;
272
+ }
273
+ .card .cn {
274
+ margin-left: auto;
275
+ font-family: var(--mono);
276
+ font-size: 11px;
277
+ color: var(--text-2);
278
+ }
279
+ .card .cd {
280
+ color: var(--text-2);
281
+ font-size: 13.5px;
282
+ margin: 7px 0 11px;
283
+ min-height: 38px;
284
+ }
285
+ .card .cl {
286
+ display: flex;
287
+ flex-direction: column;
288
+ gap: 3px;
289
+ }
290
+ .card .cl a {
291
+ font-size: 13px;
292
+ color: var(--text);
293
+ opacity: 0.82;
294
+ }
295
+ .card .cl a:hover {
296
+ color: var(--accent);
297
+ opacity: 1;
298
+ }
299
+ .card .more {
300
+ font-family: var(--mono);
301
+ font-size: 11px;
302
+ color: var(--text-2);
303
+ margin-top: 6px;
304
+ }
74
305
 
75
- /* concept */
76
- .crumb { font-family:var(--mono); font-size:11.5px; letter-spacing:.05em; color:var(--text-2); margin-bottom:14px; }
77
- .crumb a:hover { color:var(--text); }
78
- .badge { display:inline-block; font-family:var(--mono); font-size:11px; letter-spacing:.06em; padding:3px 10px; border-radius:20px; color:#0b0b10; font-weight:600; background:var(--accent); }
79
- .doc { max-width:760px; }
80
- .doc h1 { font-size:27px; line-height:1.2; margin:14px 0 8px; font-weight:680; letter-spacing:-.01em; }
81
- .doc .lead { font-size:17px; color:var(--text-2); margin:0 0 14px; }
82
- .doc .tags { font-family:var(--mono); font-size:12px; color:var(--text-2); margin-bottom:22px; }
83
- .doc .src { font-family:var(--mono); font-size:11.5px; color:var(--text-2); border:1px dashed var(--border); border-radius:8px; padding:6px 10px; display:inline-block; margin-bottom:24px; }
84
- .body { font-size:15px; }
85
- .body h2 { font-size:15px; font-family:var(--mono); letter-spacing:.02em; text-transform:none; margin:28px 0 10px; padding-bottom:6px; border-bottom:1px solid var(--border); font-weight:650; }
86
- .body p { margin:11px 0; }
87
- .body ul { padding-left:20px; margin:10px 0; }
88
- .body li { margin:4px 0; }
89
- .body a { color:var(--brand); }
90
- .body a:hover { text-decoration:underline; }
91
- .body code { font-family:var(--mono); font-size:12.5px; background:var(--bg-soft); border:1px solid var(--border); border-radius:5px; padding:1px 5px; }
92
- .body pre { background:var(--bg-alt); border:1px solid var(--border); border-radius:10px; padding:13px 15px; overflow-x:auto; }
93
- .body pre code { background:none; border:0; padding:0; font-size:12.5px; }
94
- .body blockquote { border-left:3px solid var(--accent); margin:14px 0; padding:3px 14px; color:var(--text-2); background:var(--bg-soft); border-radius:0 8px 8px 0; }
95
- .body table { border-collapse:collapse; width:100%; margin:14px 0; font-size:13px; display:block; overflow-x:auto; }
96
- .body th,.body td { border:1px solid var(--border); padding:6px 10px; text-align:left; vertical-align:top; }
97
- .body th { background:var(--bg-soft); font-family:var(--mono); font-weight:600; font-size:12px; }
98
- .related { margin-top:34px; border-top:1px solid var(--border); padding-top:18px; }
99
- .related .rh { font-family:var(--mono); font-size:11px; letter-spacing:.13em; text-transform:uppercase; color:var(--text-2); margin-bottom:10px; }
100
- .related .chips { display:flex; flex-wrap:wrap; gap:8px; }
101
- .chip { border:1px solid var(--border); border-radius:20px; padding:5px 13px; font-size:13px; cursor:pointer; background:var(--bg-soft); }
102
- .chip:hover { border-color:var(--accent); }
103
- .chip .d { display:inline-block; width:6px; height:6px; border-radius:50%; margin-right:6px; vertical-align:middle; }
306
+ /* concept */
307
+ .crumb {
308
+ font-family: var(--mono);
309
+ font-size: 11.5px;
310
+ letter-spacing: 0.05em;
311
+ color: var(--text-2);
312
+ margin-bottom: 14px;
313
+ }
314
+ .crumb a:hover {
315
+ color: var(--text);
316
+ }
317
+ .badge {
318
+ display: inline-block;
319
+ font-family: var(--mono);
320
+ font-size: 11px;
321
+ letter-spacing: 0.06em;
322
+ padding: 3px 10px;
323
+ border-radius: 20px;
324
+ color: #0b0b10;
325
+ font-weight: 600;
326
+ background: var(--accent);
327
+ }
328
+ .doc {
329
+ max-width: 760px;
330
+ }
331
+ .doc h1 {
332
+ font-size: 27px;
333
+ line-height: 1.2;
334
+ margin: 14px 0 8px;
335
+ font-weight: 680;
336
+ letter-spacing: -0.01em;
337
+ }
338
+ .doc .lead {
339
+ font-size: 17px;
340
+ color: var(--text-2);
341
+ margin: 0 0 14px;
342
+ }
343
+ .doc .tags {
344
+ font-family: var(--mono);
345
+ font-size: 12px;
346
+ color: var(--text-2);
347
+ margin-bottom: 22px;
348
+ }
349
+ .doc .src {
350
+ font-family: var(--mono);
351
+ font-size: 11.5px;
352
+ color: var(--text-2);
353
+ border: 1px dashed var(--border);
354
+ border-radius: 8px;
355
+ padding: 6px 10px;
356
+ display: inline-block;
357
+ margin-bottom: 24px;
358
+ }
359
+ .body {
360
+ font-size: 15px;
361
+ }
362
+ .body h2 {
363
+ font-size: 15px;
364
+ font-family: var(--mono);
365
+ letter-spacing: 0.02em;
366
+ text-transform: none;
367
+ margin: 28px 0 10px;
368
+ padding-bottom: 6px;
369
+ border-bottom: 1px solid var(--border);
370
+ font-weight: 650;
371
+ }
372
+ .body p {
373
+ margin: 11px 0;
374
+ }
375
+ .body ul {
376
+ padding-left: 20px;
377
+ margin: 10px 0;
378
+ }
379
+ .body li {
380
+ margin: 4px 0;
381
+ }
382
+ .body a {
383
+ color: var(--brand);
384
+ }
385
+ .body a:hover {
386
+ text-decoration: underline;
387
+ }
388
+ .body code {
389
+ font-family: var(--mono);
390
+ font-size: 12.5px;
391
+ background: var(--bg-soft);
392
+ border: 1px solid var(--border);
393
+ border-radius: 5px;
394
+ padding: 1px 5px;
395
+ }
396
+ .body pre {
397
+ background: var(--bg-alt);
398
+ border: 1px solid var(--border);
399
+ border-radius: 10px;
400
+ padding: 13px 15px;
401
+ overflow-x: auto;
402
+ }
403
+ .body pre code {
404
+ background: none;
405
+ border: 0;
406
+ padding: 0;
407
+ font-size: 12.5px;
408
+ }
409
+ .body blockquote {
410
+ border-left: 3px solid var(--accent);
411
+ margin: 14px 0;
412
+ padding: 3px 14px;
413
+ color: var(--text-2);
414
+ background: var(--bg-soft);
415
+ border-radius: 0 8px 8px 0;
416
+ }
417
+ .body table {
418
+ border-collapse: collapse;
419
+ width: 100%;
420
+ margin: 14px 0;
421
+ font-size: 13px;
422
+ display: block;
423
+ overflow-x: auto;
424
+ }
425
+ .body th,
426
+ .body td {
427
+ border: 1px solid var(--border);
428
+ padding: 6px 10px;
429
+ text-align: left;
430
+ vertical-align: top;
431
+ }
432
+ .body th {
433
+ background: var(--bg-soft);
434
+ font-family: var(--mono);
435
+ font-weight: 600;
436
+ font-size: 12px;
437
+ }
438
+ .related {
439
+ margin-top: 34px;
440
+ border-top: 1px solid var(--border);
441
+ padding-top: 18px;
442
+ }
443
+ .related .rh {
444
+ font-family: var(--mono);
445
+ font-size: 11px;
446
+ letter-spacing: 0.13em;
447
+ text-transform: uppercase;
448
+ color: var(--text-2);
449
+ margin-bottom: 10px;
450
+ }
451
+ .related .chips {
452
+ display: flex;
453
+ flex-wrap: wrap;
454
+ gap: 8px;
455
+ }
456
+ .chip {
457
+ border: 1px solid var(--border);
458
+ border-radius: 20px;
459
+ padding: 5px 13px;
460
+ font-size: 13px;
461
+ cursor: pointer;
462
+ background: var(--bg-soft);
463
+ }
464
+ .chip:hover {
465
+ border-color: var(--accent);
466
+ }
467
+ .chip .d {
468
+ display: inline-block;
469
+ width: 6px;
470
+ height: 6px;
471
+ border-radius: 50%;
472
+ margin-right: 6px;
473
+ vertical-align: middle;
474
+ }
104
475
 
105
- /* search results */
106
- .results .rcount { font-family:var(--mono); font-size:12px; color:var(--text-2); margin-bottom:16px; }
107
- .res { display:block; border:1px solid var(--border); border-radius:11px; padding:13px 16px; margin-bottom:10px; cursor:pointer; background:var(--bg-soft); border-left:2px solid var(--accent); }
108
- .res:hover { border-color:color-mix(in srgb, var(--accent) 50%, var(--border)); }
109
- .res .rt { font-weight:600; } .res .rk { font-family:var(--mono); font-size:10.5px; color:var(--accent); letter-spacing:.08em; text-transform:uppercase; margin-left:8px; }
110
- .res .rd { color:var(--text-2); font-size:13px; margin-top:3px; }
476
+ /* search results */
477
+ .results .rcount {
478
+ font-family: var(--mono);
479
+ font-size: 12px;
480
+ color: var(--text-2);
481
+ margin-bottom: 16px;
482
+ }
483
+ .res {
484
+ display: block;
485
+ border: 1px solid var(--border);
486
+ border-radius: 11px;
487
+ padding: 13px 16px;
488
+ margin-bottom: 10px;
489
+ cursor: pointer;
490
+ background: var(--bg-soft);
491
+ border-left: 2px solid var(--accent);
492
+ }
493
+ .res:hover {
494
+ border-color: color-mix(in srgb, var(--accent) 50%, var(--border));
495
+ }
496
+ .res .rt {
497
+ font-weight: 600;
498
+ }
499
+ .res .rk {
500
+ font-family: var(--mono);
501
+ font-size: 10.5px;
502
+ color: var(--accent);
503
+ letter-spacing: 0.08em;
504
+ text-transform: uppercase;
505
+ margin-left: 8px;
506
+ }
507
+ .res .rd {
508
+ color: var(--text-2);
509
+ font-size: 13px;
510
+ margin-top: 3px;
511
+ }
111
512
 
112
- /* map */
113
- #mapwrap { position:absolute; inset:0; display:none; }
114
- #cy { position:absolute; inset:0; background:radial-gradient(circle at 1px 1px, var(--border) 1px, transparent 0) 0 0 / 26px 26px; }
115
- #maphint { position:absolute; top:14px; left:16px; font-family:var(--mono); font-size:11.5px; color:var(--text-2); background:color-mix(in srgb, var(--bg-soft) 88%, transparent); padding:5px 10px; border:1px solid var(--border); border-radius:8px; }
513
+ /* map */
514
+ #mapwrap {
515
+ position: absolute;
516
+ inset: 0;
517
+ display: none;
518
+ }
519
+ #cy {
520
+ position: absolute;
521
+ inset: 0;
522
+ background: radial-gradient(circle at 1px 1px, var(--border) 1px, transparent 0) 0 0 / 26px
523
+ 26px;
524
+ }
525
+ #maphint {
526
+ position: absolute;
527
+ top: 14px;
528
+ left: 16px;
529
+ font-family: var(--mono);
530
+ font-size: 11.5px;
531
+ color: var(--text-2);
532
+ background: color-mix(in srgb, var(--bg-soft) 88%, transparent);
533
+ padding: 5px 10px;
534
+ border: 1px solid var(--border);
535
+ border-radius: 8px;
536
+ }
116
537
 
117
- @media (max-width:680px){ #layout{ grid-template-columns:1fr; } #side{ display:none; } #reader{ padding:24px 20px 80px; } }
118
- </style>
119
- </head>
120
- <body>
121
- <div id="app">
122
- <header id="bar">
123
- <div class="brand" id="brand"><b>__OKF_BRAND__</b> <span>· knowledge</span></div>
124
- <input id="search" />
125
- <div class="spacer"></div>
126
- <div class="seg"><button data-v="read" class="on">Read</button><button data-v="map">Map</button></div>
127
- </header>
128
- <div id="layout">
129
- <aside id="side"></aside>
130
- <div id="stage">
131
- <div id="reader"></div>
132
- <div id="mapwrap"><div id="cy"></div><div id="maphint"></div></div>
538
+ @media (max-width: 680px) {
539
+ #layout {
540
+ grid-template-columns: 1fr;
541
+ }
542
+ #side {
543
+ display: none;
544
+ }
545
+ #reader {
546
+ padding: 24px 20px 80px;
547
+ }
548
+ }
549
+ </style>
550
+ </head>
551
+ <body>
552
+ <div id="app">
553
+ <header id="bar">
554
+ <div class="brand" id="brand"><b>__OKF_BRAND__</b> <span>· knowledge</span></div>
555
+ <input id="search" />
556
+ <div class="spacer"></div>
557
+ <div class="seg">
558
+ <button data-v="read" class="on">Read</button><button data-v="map">Map</button>
559
+ </div>
560
+ </header>
561
+ <div id="layout">
562
+ <aside id="side"></aside>
563
+ <div id="stage">
564
+ <div id="reader"></div>
565
+ <div id="mapwrap">
566
+ <div id="cy"></div>
567
+ <div id="maphint"></div>
568
+ </div>
569
+ </div>
570
+ </div>
133
571
  </div>
134
- </div>
135
- </div>
136
572
 
137
- <script type="application/json" id="okf-data">__OKF_DATA__</script>
138
- <script>__OKF_CLIENT__</script>
139
- </body>
573
+ <script type="application/json" id="okf-data">
574
+ __OKF_DATA__
575
+ </script>
576
+ <script>
577
+ __OKF_CLIENT__;
578
+ </script>
579
+ </body>
140
580
  </html>