@vdoninja/mcp 0.4.1 → 0.4.2
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/LICENSE +21 -661
- package/README.md +59 -272
- package/assets/browser-agent/audio-worklet.js +17 -0
- package/assets/browser-agent/client.js +124 -0
- package/assets/browser-agent/index.html +50 -0
- package/assets/cloudflare/worker-proxy.js +3 -0
- package/docs/.nojekyll +0 -0
- package/docs/404.html +28 -0
- package/docs/advanced-diagnostics.html +101 -0
- package/docs/assets/apple-touch-icon.png +0 -0
- package/docs/assets/favicon.svg +7 -0
- package/docs/assets/how-it-works.svg +62 -0
- package/docs/assets/icon-192.png +0 -0
- package/docs/assets/icon-512.png +0 -0
- package/docs/assets/icon-maskable-512.png +0 -0
- package/docs/assets/icons.svg +42 -0
- package/docs/assets/logo.svg +7 -0
- package/docs/assets/og-image.png +0 -0
- package/docs/assets/site.css +735 -0
- package/docs/assets/site.js +289 -0
- package/docs/browser-agent.html +122 -0
- package/docs/browser-worker.html +165 -0
- package/docs/client-config-examples.html +254 -0
- package/docs/direction.html +175 -0
- package/docs/favicon.ico +0 -0
- package/docs/guide.html +872 -0
- package/docs/http-relay.html +154 -0
- package/docs/index.html +834 -0
- package/docs/mcp-tool-contract.html +226 -0
- package/docs/quickstart-and-compat.html +222 -0
- package/docs/site.webmanifest +16 -0
- package/docs/sitemap.xml +63 -0
- package/docs/ssapp-integration.html +594 -0
- package/docs/vdo-ninja-p2p-data-notes.html +225 -0
- package/package.json +51 -9
- package/references/advanced-diagnostics.md +2 -0
- package/references/browser-agent.md +53 -0
- package/references/browser-worker.md +142 -0
- package/references/client-config-examples.md +2 -0
- package/references/direction.md +88 -0
- package/references/http-relay.md +107 -0
- package/references/mcp-tool-contract.md +11 -1
- package/references/quickstart-and-compat.md +4 -1
- package/references/ssapp-integration.md +371 -0
- package/references/vdo-ninja-p2p-data-notes.md +2 -0
- package/scripts/demo-file-workflow.js +3 -0
- package/scripts/demo-message-workflow.js +3 -0
- package/scripts/install-mcp.js +5 -2
- package/scripts/lib/bridge-session.js +143 -26
- package/scripts/lib/bridge-utils.js +3 -0
- package/scripts/lib/browser-agent.js +255 -0
- package/scripts/lib/browser-media.js +79 -0
- package/scripts/lib/browser-routes.js +119 -0
- package/scripts/lib/browser-rpc.js +214 -0
- package/scripts/lib/browser-setup.js +133 -0
- package/scripts/lib/browser-worker.js +216 -0
- package/scripts/lib/fake-network-sdk.js +3 -0
- package/scripts/lib/http-relay-transport.js +294 -0
- package/scripts/lib/load-vdo-sdk.js +3 -0
- package/scripts/lib/mcp-stdio-parser.js +3 -0
- package/scripts/lib/ssapp-worker.js +198 -0
- package/scripts/lib/tool-profiles.js +3 -0
- package/scripts/vdo-data-bridge.js +3 -0
- package/scripts/vdo-mcp-browser-agent.js +132 -0
- package/scripts/vdo-mcp-browser.js +218 -0
- package/scripts/vdo-mcp-relay.js +207 -0
- package/scripts/vdo-mcp-server.js +50 -7
- package/scripts/vdo-mcp-ssapp.js +208 -0
- package/scripts/vdo-mcp-streamable-http.js +23 -4
- package/server.json +22 -4
- package/LICENSE-SDK-EXCEPTION +0 -54
|
@@ -0,0 +1,735 @@
|
|
|
1
|
+
/* VDO.Ninja MCP site styles. No build step; shared by the landing page and guides. */
|
|
2
|
+
|
|
3
|
+
:root {
|
|
4
|
+
--bg: #fafaf8;
|
|
5
|
+
--surface: #ffffff;
|
|
6
|
+
--surface-2: #f3f3f0;
|
|
7
|
+
--surface-3: #ebebe7;
|
|
8
|
+
--ink: #111318;
|
|
9
|
+
--ink-2: #4a4e58;
|
|
10
|
+
--ink-3: #80848e;
|
|
11
|
+
--line: #e4e4df;
|
|
12
|
+
--line-2: #d6d6d0;
|
|
13
|
+
--accent: #3d5afe;
|
|
14
|
+
--accent-ink: #2741d6;
|
|
15
|
+
--accent-soft: #eef0ff;
|
|
16
|
+
--ok: #16a34a;
|
|
17
|
+
--ok-soft: #e8f6ed;
|
|
18
|
+
--warn: #b45309;
|
|
19
|
+
--warn-soft: #fdf3e4;
|
|
20
|
+
--term-bg: #0f1116;
|
|
21
|
+
--term-line: #20232b;
|
|
22
|
+
--term-ink: #e6e7eb;
|
|
23
|
+
--term-dim: #7d828e;
|
|
24
|
+
--term-key: #8fb4ff;
|
|
25
|
+
--term-str: #9be3a4;
|
|
26
|
+
--term-num: #f5c37a;
|
|
27
|
+
--term-ok: #6ee7a0;
|
|
28
|
+
--shadow-sm: 0 1px 2px rgba(17, 19, 24, .05);
|
|
29
|
+
--shadow: 0 1px 2px rgba(17, 19, 24, .04), 0 8px 24px -8px rgba(17, 19, 24, .10);
|
|
30
|
+
--shadow-lg: 0 2px 6px rgba(17, 19, 24, .04), 0 24px 60px -20px rgba(17, 19, 24, .22);
|
|
31
|
+
--radius: 14px;
|
|
32
|
+
--radius-lg: 22px;
|
|
33
|
+
--nav-h: 60px;
|
|
34
|
+
--sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI Variable Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
|
|
35
|
+
--mono: ui-monospace, "SF Mono", "Cascadia Code", "JetBrains Mono", Menlo, Consolas, monospace;
|
|
36
|
+
color-scheme: light;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
@media (prefers-color-scheme: dark) {
|
|
40
|
+
:root:not([data-theme="light"]) {
|
|
41
|
+
--bg: #0b0c10;
|
|
42
|
+
--surface: #13151b;
|
|
43
|
+
--surface-2: #181b22;
|
|
44
|
+
--surface-3: #20242c;
|
|
45
|
+
--ink: #eceef2;
|
|
46
|
+
--ink-2: #a8adb9;
|
|
47
|
+
--ink-3: #727885;
|
|
48
|
+
--line: #242831;
|
|
49
|
+
--line-2: #30353f;
|
|
50
|
+
--accent: #7088ff;
|
|
51
|
+
--accent-ink: #9aaaff;
|
|
52
|
+
--accent-soft: #1a1f3a;
|
|
53
|
+
--ok: #34d17a;
|
|
54
|
+
--ok-soft: #10261a;
|
|
55
|
+
--warn: #f0a54a;
|
|
56
|
+
--warn-soft: #2a1f10;
|
|
57
|
+
--term-bg: #08090c;
|
|
58
|
+
--term-line: #1b1e25;
|
|
59
|
+
--shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
|
|
60
|
+
--shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 10px 30px -10px rgba(0, 0, 0, .6);
|
|
61
|
+
--shadow-lg: 0 2px 6px rgba(0, 0, 0, .4), 0 30px 70px -20px rgba(0, 0, 0, .75);
|
|
62
|
+
color-scheme: dark;
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
:root[data-theme="dark"] {
|
|
67
|
+
--bg: #0b0c10;
|
|
68
|
+
--surface: #13151b;
|
|
69
|
+
--surface-2: #181b22;
|
|
70
|
+
--surface-3: #20242c;
|
|
71
|
+
--ink: #eceef2;
|
|
72
|
+
--ink-2: #a8adb9;
|
|
73
|
+
--ink-3: #727885;
|
|
74
|
+
--line: #242831;
|
|
75
|
+
--line-2: #30353f;
|
|
76
|
+
--accent: #7088ff;
|
|
77
|
+
--accent-ink: #9aaaff;
|
|
78
|
+
--accent-soft: #1a1f3a;
|
|
79
|
+
--ok: #34d17a;
|
|
80
|
+
--ok-soft: #10261a;
|
|
81
|
+
--warn: #f0a54a;
|
|
82
|
+
--warn-soft: #2a1f10;
|
|
83
|
+
--term-bg: #08090c;
|
|
84
|
+
--term-line: #1b1e25;
|
|
85
|
+
--shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
|
|
86
|
+
--shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 10px 30px -10px rgba(0, 0, 0, .6);
|
|
87
|
+
--shadow-lg: 0 2px 6px rgba(0, 0, 0, .4), 0 30px 70px -20px rgba(0, 0, 0, .75);
|
|
88
|
+
color-scheme: dark;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
*, *::before, *::after { box-sizing: border-box; }
|
|
92
|
+
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--nav-h) + 16px); }
|
|
93
|
+
body {
|
|
94
|
+
margin: 0;
|
|
95
|
+
background: var(--bg);
|
|
96
|
+
color: var(--ink);
|
|
97
|
+
font: 16px/1.6 var(--sans);
|
|
98
|
+
-webkit-font-smoothing: antialiased;
|
|
99
|
+
text-rendering: optimizeLegibility;
|
|
100
|
+
}
|
|
101
|
+
img, svg { display: block; max-width: 100%; }
|
|
102
|
+
a { color: inherit; text-decoration: none; }
|
|
103
|
+
p a, li a, td a, dd a, .link { color: var(--accent-ink); text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--accent) 35%, transparent); text-underline-offset: 3px; }
|
|
104
|
+
p a:hover, li a:hover, td a:hover, dd a:hover, .link:hover { text-decoration-color: currentColor; }
|
|
105
|
+
code, kbd, pre { font-family: var(--mono); font-size: .875em; }
|
|
106
|
+
:not(pre) > code {
|
|
107
|
+
background: var(--surface-2);
|
|
108
|
+
border: 1px solid var(--line);
|
|
109
|
+
border-radius: 6px;
|
|
110
|
+
padding: .1em .4em;
|
|
111
|
+
overflow-wrap: break-word;
|
|
112
|
+
}
|
|
113
|
+
h1, h2, h3, h4 { margin: 0; line-height: 1.12; letter-spacing: -.022em; font-weight: 640; }
|
|
114
|
+
p { margin: 0; }
|
|
115
|
+
button { font: inherit; color: inherit; }
|
|
116
|
+
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
|
|
117
|
+
::selection { background: color-mix(in srgb, var(--accent) 25%, transparent); }
|
|
118
|
+
|
|
119
|
+
.icon { width: 20px; height: 20px; flex: none; }
|
|
120
|
+
.icon-sm { width: 16px; height: 16px; flex: none; }
|
|
121
|
+
.icon-xs { width: 13px; height: 13px; flex: none; }
|
|
122
|
+
[hidden] { display: none !important; }
|
|
123
|
+
.skip-link { position: absolute; left: -9999px; top: 10px; z-index: 100; padding: 8px 14px; border-radius: 10px; background: var(--ink); color: var(--bg); font-size: 14px; font-weight: 560; }
|
|
124
|
+
.skip-link:focus { left: 16px; }
|
|
125
|
+
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
|
|
126
|
+
|
|
127
|
+
.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 24px; }
|
|
128
|
+
.wrap-narrow { max-width: 760px; }
|
|
129
|
+
|
|
130
|
+
/* ---------- Nav ---------- */
|
|
131
|
+
.nav {
|
|
132
|
+
position: sticky; top: 0; z-index: 50;
|
|
133
|
+
height: var(--nav-h);
|
|
134
|
+
background: color-mix(in srgb, var(--bg) 82%, transparent);
|
|
135
|
+
backdrop-filter: saturate(1.6) blur(14px);
|
|
136
|
+
-webkit-backdrop-filter: saturate(1.6) blur(14px);
|
|
137
|
+
border-bottom: 1px solid var(--line);
|
|
138
|
+
}
|
|
139
|
+
.nav .wrap { height: 100%; display: flex; align-items: center; gap: 24px; max-width: none; padding: 0 28px; }
|
|
140
|
+
.brand { display: flex; align-items: center; gap: 10px; font-weight: 620; letter-spacing: -.01em; white-space: nowrap; }
|
|
141
|
+
.brand img { width: 28px; height: 28px; }
|
|
142
|
+
.brand small { color: var(--ink-3); font-weight: 450; font-size: 15px; }
|
|
143
|
+
.nav-links { display: flex; gap: 4px; margin-left: auto; align-items: center; }
|
|
144
|
+
.nav-links a { padding: 7px 11px; border-radius: 9px; font-size: 14.5px; color: var(--ink-2); }
|
|
145
|
+
.nav-links a:hover { color: var(--ink); background: var(--surface-2); }
|
|
146
|
+
.nav-links a[aria-current="page"] { color: var(--ink); }
|
|
147
|
+
.nav-cta { display: flex; gap: 8px; align-items: center; }
|
|
148
|
+
.nav-toggle { display: none; margin-left: auto; background: none; border: 1px solid var(--line); border-radius: 10px; padding: 7px; cursor: pointer; }
|
|
149
|
+
|
|
150
|
+
@media (max-width: 920px) {
|
|
151
|
+
.nav-links { display: none; }
|
|
152
|
+
.nav-toggle { display: inline-flex; }
|
|
153
|
+
.nav-cta .btn-ghost { display: none; }
|
|
154
|
+
.nav .wrap { padding: 0 16px; gap: 12px; }
|
|
155
|
+
.nav-cta { margin-left: auto; }
|
|
156
|
+
.nav-toggle { margin-left: 0; }
|
|
157
|
+
.nav.open .nav-links {
|
|
158
|
+
display: flex; flex-direction: column; align-items: stretch;
|
|
159
|
+
position: absolute; top: var(--nav-h); left: 0; right: 0;
|
|
160
|
+
background: var(--bg); border-bottom: 1px solid var(--line);
|
|
161
|
+
padding: 8px 12px 14px; gap: 2px;
|
|
162
|
+
}
|
|
163
|
+
.nav.open .nav-links a { padding: 11px 12px; font-size: 16px; }
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
/* ---------- Buttons ---------- */
|
|
167
|
+
.btn {
|
|
168
|
+
display: inline-flex; align-items: center; justify-content: center; gap: 8px;
|
|
169
|
+
height: 38px; padding: 0 16px;
|
|
170
|
+
border-radius: 999px; border: 1px solid var(--line-2);
|
|
171
|
+
background: var(--surface); color: var(--ink);
|
|
172
|
+
font-size: 14.5px; font-weight: 520; white-space: nowrap;
|
|
173
|
+
cursor: pointer; transition: background .15s, border-color .15s, transform .15s;
|
|
174
|
+
}
|
|
175
|
+
.btn:hover { background: var(--surface-2); }
|
|
176
|
+
.btn:active { transform: translateY(1px); }
|
|
177
|
+
.btn-dark { background: var(--ink); color: var(--bg); border-color: var(--ink); }
|
|
178
|
+
.btn-dark:hover { background: color-mix(in srgb, var(--ink) 85%, var(--bg)); }
|
|
179
|
+
.btn-ghost { background: transparent; border-color: transparent; }
|
|
180
|
+
.btn-lg { height: 46px; padding: 0 22px; font-size: 15.5px; }
|
|
181
|
+
|
|
182
|
+
/* ---------- Hero ---------- */
|
|
183
|
+
.hero { padding: 72px 0 40px; text-align: center; position: relative; overflow: hidden; }
|
|
184
|
+
.hero::before {
|
|
185
|
+
content: ""; position: absolute; inset: -40% -10% auto; height: 620px; pointer-events: none;
|
|
186
|
+
background:
|
|
187
|
+
radial-gradient(closest-side, color-mix(in srgb, var(--accent) 12%, transparent), transparent 70%) 50% 40% / 900px 520px no-repeat;
|
|
188
|
+
opacity: .9;
|
|
189
|
+
}
|
|
190
|
+
.hero > * { position: relative; }
|
|
191
|
+
.eyebrow {
|
|
192
|
+
display: inline-flex; align-items: center; gap: 8px;
|
|
193
|
+
padding: 5px 12px 5px 8px; border-radius: 999px;
|
|
194
|
+
background: var(--surface); border: 1px solid var(--line);
|
|
195
|
+
font-size: 13.5px; color: var(--ink-2); box-shadow: var(--shadow-sm);
|
|
196
|
+
}
|
|
197
|
+
.eyebrow .pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 0 color-mix(in srgb, var(--ok) 50%, transparent); animation: pulse 2.4s infinite; }
|
|
198
|
+
@keyframes pulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--ok) 45%, transparent); } 70% { box-shadow: 0 0 0 8px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
|
|
199
|
+
.hero h1 { font-size: clamp(42px, 7vw, 78px); letter-spacing: -.04em; line-height: 1.02; margin: 22px auto 0; max-width: 15ch; font-weight: 650; text-wrap: balance; }
|
|
200
|
+
.hero h1 em { font-style: normal; color: var(--accent); }
|
|
201
|
+
.hero .lede { max-width: 620px; margin: 22px auto 0; font-size: clamp(16.5px, 1.6vw, 18.5px); color: var(--ink-2); line-height: 1.6; }
|
|
202
|
+
.hero .lede strong { color: var(--ink); font-weight: 560; }
|
|
203
|
+
.hero-actions { display: flex; gap: 10px; justify-content: center; margin-top: 26px; flex-wrap: wrap; }
|
|
204
|
+
|
|
205
|
+
.client-row { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; margin-top: 34px; }
|
|
206
|
+
.client-row .label { width: 100%; font-size: 13px; color: var(--ink-3); margin-bottom: 4px; }
|
|
207
|
+
.chip {
|
|
208
|
+
display: inline-flex; align-items: center; gap: 8px;
|
|
209
|
+
padding: 6px 13px 6px 6px; border-radius: 999px;
|
|
210
|
+
background: var(--surface); border: 1px solid var(--line);
|
|
211
|
+
font-size: 14px; color: var(--ink-2); box-shadow: var(--shadow-sm);
|
|
212
|
+
}
|
|
213
|
+
.mono-tile {
|
|
214
|
+
width: 26px; height: 26px; border-radius: 8px; flex: none;
|
|
215
|
+
display: inline-grid; place-items: center;
|
|
216
|
+
font: 650 11.5px/1 var(--sans); letter-spacing: -.02em; color: #fff;
|
|
217
|
+
background: var(--tile, #444);
|
|
218
|
+
}
|
|
219
|
+
.t-claude { --tile: #c96442; }
|
|
220
|
+
.t-codex { --tile: #1d1f24; }
|
|
221
|
+
.t-cursor { --tile: #3a3f4b; }
|
|
222
|
+
.t-gemini { --tile: #4b6bfb; }
|
|
223
|
+
.t-opencode { --tile: #6d5bd0; }
|
|
224
|
+
.t-openclaw { --tile: #d4483b; }
|
|
225
|
+
.t-any { --tile: transparent; color: var(--ink-2); border: 1px dashed var(--line-2); }
|
|
226
|
+
:root[data-theme="dark"] .t-codex, :root[data-theme="dark"] .t-cursor { --tile: #2c3039; }
|
|
227
|
+
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .t-codex, :root:not([data-theme="light"]) .t-cursor { --tile: #2c3039; } }
|
|
228
|
+
|
|
229
|
+
/* ---------- Install box (terminal style) ---------- */
|
|
230
|
+
.install {
|
|
231
|
+
max-width: 560px; margin: 30px auto 0;
|
|
232
|
+
background: var(--term-bg); color: var(--term-ink);
|
|
233
|
+
border: 1px solid var(--term-line);
|
|
234
|
+
border-radius: var(--radius); padding: 6px;
|
|
235
|
+
box-shadow: var(--shadow-lg); text-align: left;
|
|
236
|
+
}
|
|
237
|
+
.install-row { display: flex; align-items: center; gap: 12px; padding: 9px 8px 9px 14px; border-radius: 10px; }
|
|
238
|
+
.install-row + .install-row { border-top: 1px solid var(--term-line); border-radius: 0 0 10px 10px; }
|
|
239
|
+
.install-row code { flex: 1; font-size: 14px; overflow-x: auto; white-space: nowrap; background: none; border: 0; padding: 0; color: var(--term-ink); }
|
|
240
|
+
.install-row code::before { content: "$ "; color: var(--term-dim); }
|
|
241
|
+
.install-row .note { color: var(--term-dim); font: 12.5px var(--sans); white-space: nowrap; }
|
|
242
|
+
.copy {
|
|
243
|
+
display: inline-flex; align-items: center; gap: 6px;
|
|
244
|
+
background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1);
|
|
245
|
+
color: var(--term-ink); border-radius: 8px; padding: 5px 9px;
|
|
246
|
+
font: 500 12.5px var(--sans); cursor: pointer; flex: none;
|
|
247
|
+
}
|
|
248
|
+
.copy:hover { background: rgba(255,255,255,.12); }
|
|
249
|
+
.copy.done { color: var(--term-ok); }
|
|
250
|
+
|
|
251
|
+
/* ---------- Sections ---------- */
|
|
252
|
+
.section { padding: 110px 0; }
|
|
253
|
+
.section-tight { padding: 80px 0; }
|
|
254
|
+
.section-alt { background: var(--surface); border-block: 1px solid var(--line); }
|
|
255
|
+
.section-head { text-align: center; max-width: 720px; margin: 0 auto 52px; }
|
|
256
|
+
.kicker { display: inline-flex; align-items: center; gap: 7px; font-size: 13.5px; font-weight: 560; color: var(--accent-ink); margin-bottom: 14px; }
|
|
257
|
+
.section-head h2, .h2 { font-size: clamp(32px, 4.4vw, 50px); letter-spacing: -.035em; font-weight: 640; }
|
|
258
|
+
.section-head p { margin-top: 16px; color: var(--ink-2); font-size: 17.5px; }
|
|
259
|
+
|
|
260
|
+
/* ---------- Story (sticky scroll) ---------- */
|
|
261
|
+
.story { position: relative; }
|
|
262
|
+
.story-track { position: relative; }
|
|
263
|
+
.story-sticky {
|
|
264
|
+
position: sticky; top: var(--nav-h);
|
|
265
|
+
height: calc(100vh - var(--nav-h)); height: calc(100svh - var(--nav-h));
|
|
266
|
+
display: flex; flex-direction: column; justify-content: center; gap: 18px;
|
|
267
|
+
padding: 18px 0 22px;
|
|
268
|
+
}
|
|
269
|
+
.story-frame {
|
|
270
|
+
width: 100%; max-width: 1140px; margin: 0 auto;
|
|
271
|
+
height: min(600px, calc(100svh - var(--nav-h) - 150px));
|
|
272
|
+
min-height: 380px;
|
|
273
|
+
display: grid; grid-template-columns: 1.32fr 1fr; gap: 16px;
|
|
274
|
+
padding: 16px; border-radius: 26px;
|
|
275
|
+
background: var(--surface-2); border: 1px solid var(--line);
|
|
276
|
+
box-shadow: var(--shadow-lg);
|
|
277
|
+
}
|
|
278
|
+
.stage { position: relative; border-radius: 18px; overflow: hidden; }
|
|
279
|
+
.stage-lines { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
|
|
280
|
+
.stage-lines line { stroke: var(--line-2); stroke-width: 1.5; transition: stroke .5s, opacity .5s, stroke-width .5s; }
|
|
281
|
+
.stage-lines .l-sig { stroke-dasharray: 4 5; opacity: 0; }
|
|
282
|
+
.stage-lines .l-p2p { opacity: 0; stroke-width: 2.5; }
|
|
283
|
+
.stage-lines .l-relay { stroke-dasharray: 2 6; opacity: 0; }
|
|
284
|
+
.stage .l-sig.on { opacity: 1; stroke: var(--accent); animation: dash 1s linear infinite; }
|
|
285
|
+
.stage .l-sig.faded { opacity: .35; stroke: var(--line-2); animation: none; }
|
|
286
|
+
.stage .l-p2p.on { opacity: 1; stroke: var(--ok); }
|
|
287
|
+
.stage .l-relay.on { opacity: .8; }
|
|
288
|
+
@keyframes dash { to { stroke-dashoffset: -18; } }
|
|
289
|
+
|
|
290
|
+
.node {
|
|
291
|
+
position: absolute; transform: translateX(-50%);
|
|
292
|
+
display: flex; align-items: center; gap: 10px;
|
|
293
|
+
padding: 8px 14px 8px 8px; border-radius: 999px;
|
|
294
|
+
background: var(--surface); border: 1px solid var(--line);
|
|
295
|
+
box-shadow: var(--shadow); white-space: nowrap;
|
|
296
|
+
transition: opacity .5s, box-shadow .5s, border-color .5s;
|
|
297
|
+
}
|
|
298
|
+
.node .ico { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); color: var(--ink-2); }
|
|
299
|
+
.node b { display: block; font-size: 13.5px; font-weight: 600; line-height: 1.2; }
|
|
300
|
+
.node div > span { display: block; font-size: 11.5px; color: var(--ink-3); line-height: 1.3; font-family: var(--mono); }
|
|
301
|
+
.node-server { left: 50%; top: 4%; }
|
|
302
|
+
.node-relay { left: 50%; bottom: 4%; opacity: .45; }
|
|
303
|
+
.node.is-active { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 12%, transparent), var(--shadow); }
|
|
304
|
+
.node.is-active .ico { background: var(--accent-soft); color: var(--accent-ink); }
|
|
305
|
+
.node.is-quiet { opacity: .45; }
|
|
306
|
+
|
|
307
|
+
.agent {
|
|
308
|
+
position: absolute; top: 27%; width: 36%; height: 46%;
|
|
309
|
+
display: flex; flex-direction: column; gap: 8px;
|
|
310
|
+
padding: 12px; border-radius: 16px;
|
|
311
|
+
background: var(--surface); border: 1px solid var(--line);
|
|
312
|
+
box-shadow: var(--shadow);
|
|
313
|
+
transition: opacity .5s, transform .5s, box-shadow .5s, border-color .5s;
|
|
314
|
+
opacity: .55;
|
|
315
|
+
}
|
|
316
|
+
.agent.on { opacity: 1; }
|
|
317
|
+
.agent-a { left: 3%; }
|
|
318
|
+
.agent-b { right: 3%; }
|
|
319
|
+
.agent-head { display: flex; align-items: center; gap: 9px; }
|
|
320
|
+
.agent-head .mono-tile { width: 30px; height: 30px; border-radius: 9px; font-size: 12.5px; }
|
|
321
|
+
.agent-head b { display: block; font-size: 13.5px; font-weight: 600; line-height: 1.2; }
|
|
322
|
+
.agent-head div > span { display: block; font-size: 11.5px; color: var(--ink-3); line-height: 1.3; }
|
|
323
|
+
.agent-meta { display: flex; justify-content: space-between; align-items: center; font-size: 11.5px; }
|
|
324
|
+
.agent-meta code { background: none; border: 0; padding: 0; font-size: 12px; color: var(--ink); }
|
|
325
|
+
.status { display: inline-flex; align-items: center; gap: 5px; color: var(--ink-3); }
|
|
326
|
+
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--line-2); transition: background .4s; }
|
|
327
|
+
.status.ready::before { background: var(--warn); }
|
|
328
|
+
.status.live::before { background: var(--ok); }
|
|
329
|
+
.agent-body { flex: 1; min-height: 0; position: relative; display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; }
|
|
330
|
+
.tag {
|
|
331
|
+
display: inline-flex; align-items: center; gap: 6px; align-self: flex-start;
|
|
332
|
+
font-size: 11.5px; padding: 4px 8px; border-radius: 8px;
|
|
333
|
+
background: var(--surface-2); color: var(--ink-2);
|
|
334
|
+
}
|
|
335
|
+
.bubble {
|
|
336
|
+
font-size: 12px; line-height: 1.4; padding: 7px 10px; border-radius: 10px;
|
|
337
|
+
background: var(--surface-2); color: var(--ink-2); max-width: 100%;
|
|
338
|
+
}
|
|
339
|
+
.bubble.out { background: var(--ink); color: var(--bg); align-self: flex-end; }
|
|
340
|
+
.bubble .mono { font-family: var(--mono); font-size: 11px; opacity: .7; display: block; margin-bottom: 2px; }
|
|
341
|
+
.progress { height: 6px; border-radius: 999px; background: var(--surface-3); overflow: hidden; }
|
|
342
|
+
.progress i { display: block; height: 100%; width: 0; background: var(--ok); border-radius: inherit; }
|
|
343
|
+
.kv { font: 11.5px/1.5 var(--mono); border: 1px solid var(--line); border-radius: 9px; overflow: hidden; }
|
|
344
|
+
.kv div { display: flex; justify-content: space-between; gap: 8px; padding: 4px 8px; }
|
|
345
|
+
.kv div + div { border-top: 1px solid var(--line); }
|
|
346
|
+
.kv span:last-child { color: var(--ink-3); }
|
|
347
|
+
|
|
348
|
+
.agent-body > [hidden] { display: none !important; }
|
|
349
|
+
.agent-body > .progress { width: 100%; }
|
|
350
|
+
|
|
351
|
+
.appear { animation: appear .45s cubic-bezier(.2,.7,.2,1) both; }
|
|
352
|
+
.appear.d1 { animation-delay: .9s; }
|
|
353
|
+
.appear.d2 { animation-delay: 1.8s; }
|
|
354
|
+
.appear.d3 { animation-delay: 2.6s; }
|
|
355
|
+
@keyframes appear { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
|
|
356
|
+
.progress i { animation: fill 2.6s .3s cubic-bezier(.4,0,.2,1) forwards; }
|
|
357
|
+
@keyframes fill { to { width: 100%; } }
|
|
358
|
+
|
|
359
|
+
.p2p-label {
|
|
360
|
+
position: absolute; left: 50%; top: 50%; transform: translate(-50%, calc(-100% - 10px));
|
|
361
|
+
font: 600 11px/1 var(--sans); letter-spacing: .02em; color: var(--ok);
|
|
362
|
+
background: var(--ok-soft); padding: 5px 8px; border-radius: 999px; white-space: nowrap;
|
|
363
|
+
opacity: 0; transition: opacity .5s;
|
|
364
|
+
}
|
|
365
|
+
.p2p-label.on { opacity: 1; }
|
|
366
|
+
.packets { position: absolute; left: 39%; right: 39%; top: 50%; height: 0; pointer-events: none; }
|
|
367
|
+
.packet {
|
|
368
|
+
position: absolute; top: -6px; left: 0; width: 12px; height: 12px; border-radius: 50%;
|
|
369
|
+
background: var(--ok); box-shadow: 0 0 0 4px color-mix(in srgb, var(--ok) 20%, transparent);
|
|
370
|
+
opacity: 0;
|
|
371
|
+
}
|
|
372
|
+
.packet.chunk { border-radius: 3px; width: 10px; height: 10px; top: -5px; background: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 20%, transparent); }
|
|
373
|
+
.packets.go-ab .packet { animation: ab 1.4s cubic-bezier(.5,0,.5,1) var(--d, 0s) var(--n, 1) both; }
|
|
374
|
+
.packets.go-ba .packet { animation: ba 1.4s cubic-bezier(.5,0,.5,1) var(--d, 0s) var(--n, 1) both; }
|
|
375
|
+
@keyframes ab { 0% { left: 0; opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { left: calc(100% - 12px); opacity: 0; } }
|
|
376
|
+
@keyframes ba { 0% { left: calc(100% - 12px); opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { left: 0; opacity: 0; } }
|
|
377
|
+
|
|
378
|
+
/* Tool log panel */
|
|
379
|
+
.term {
|
|
380
|
+
display: flex; flex-direction: column; min-height: 0;
|
|
381
|
+
background: var(--term-bg); color: var(--term-ink);
|
|
382
|
+
border-radius: 18px; overflow: hidden; box-shadow: var(--shadow);
|
|
383
|
+
}
|
|
384
|
+
.term-bar { display: flex; align-items: center; gap: 10px; padding: 11px 14px; border-bottom: 1px solid var(--term-line); font-size: 12.5px; color: var(--term-dim); }
|
|
385
|
+
.term-dots { display: flex; gap: 6px; }
|
|
386
|
+
.term-dots i { width: 10px; height: 10px; border-radius: 50%; background: #2a2d35; }
|
|
387
|
+
.term-title { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
|
|
388
|
+
.term-body { position: relative; flex: 1; min-height: 0; overflow: hidden; }
|
|
389
|
+
.term-step { position: absolute; inset: 0; padding: 14px 16px; overflow: auto; font: 12.5px/1.6 var(--mono); opacity: 0; visibility: hidden; transition: opacity .3s; }
|
|
390
|
+
.term-step.is-active { opacity: 1; visibility: visible; }
|
|
391
|
+
.term-step .ln { display: block; white-space: pre-wrap; word-break: break-word; }
|
|
392
|
+
.term-step.is-active .ln { animation: appear .35s ease both; }
|
|
393
|
+
.term-step.is-active .ln:nth-child(2) { animation-delay: .25s; }
|
|
394
|
+
.term-step.is-active .ln:nth-child(3) { animation-delay: .5s; }
|
|
395
|
+
.term-step.is-active .ln:nth-child(4) { animation-delay: .75s; }
|
|
396
|
+
.term-step.is-active .ln:nth-child(5) { animation-delay: 1s; }
|
|
397
|
+
.term-step.is-active .ln:nth-child(6) { animation-delay: 1.25s; }
|
|
398
|
+
.term-step.is-active .ln:nth-child(7) { animation-delay: 1.5s; }
|
|
399
|
+
.term-step.is-active .ln:nth-child(8) { animation-delay: 1.75s; }
|
|
400
|
+
.term-step.is-active .ln:nth-child(n+9) { animation-delay: 2s; }
|
|
401
|
+
.ln.cmd::before { content: "$ "; color: var(--term-dim); }
|
|
402
|
+
.ln.dim, .c-dim { color: var(--term-dim); }
|
|
403
|
+
.ln.ok, .c-ok { color: var(--term-ok); }
|
|
404
|
+
.ln.who { color: var(--term-dim); font-family: var(--sans); font-size: 11.5px; letter-spacing: .02em; margin-top: 10px; }
|
|
405
|
+
.ln.who:first-child { margin-top: 0; }
|
|
406
|
+
.c-key { color: var(--term-key); }
|
|
407
|
+
.c-str { color: var(--term-str); }
|
|
408
|
+
.c-num { color: var(--term-num); }
|
|
409
|
+
.cursor { display: inline-block; width: 8px; height: 15px; background: var(--term-ink); vertical-align: -2px; animation: blink 1s steps(1) infinite; }
|
|
410
|
+
@keyframes blink { 50% { opacity: 0; } }
|
|
411
|
+
|
|
412
|
+
/* Caption + progress */
|
|
413
|
+
.story-caption { display: flex; flex-direction: column; align-items: center; gap: 12px; }
|
|
414
|
+
.caption-pill {
|
|
415
|
+
display: inline-flex; align-items: baseline; gap: 10px;
|
|
416
|
+
padding: 10px 18px; border-radius: 999px; max-width: min(92vw, 720px);
|
|
417
|
+
background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow);
|
|
418
|
+
font-size: 16px; text-align: center;
|
|
419
|
+
}
|
|
420
|
+
.caption-pill .num { font: 12px var(--mono); color: var(--ink-3); }
|
|
421
|
+
.caption-pill .txt code { font-size: 13.5px; }
|
|
422
|
+
.dashes { display: flex; gap: 6px; }
|
|
423
|
+
.dashes button { width: 22px; height: 14px; padding: 0; border: 0; background: none; cursor: pointer; position: relative; }
|
|
424
|
+
.dashes button::before { content: ""; position: absolute; left: 0; right: 0; top: 6px; height: 3px; border-radius: 2px; background: var(--line-2); transition: background .3s; }
|
|
425
|
+
.dashes button.on::before { background: var(--ink); }
|
|
426
|
+
.story-steps { list-style: none; margin: 0; padding: 0; }
|
|
427
|
+
.story-steps li { height: 72vh; }
|
|
428
|
+
.story-steps li:first-child { height: 40vh; }
|
|
429
|
+
|
|
430
|
+
.js .story-steps { visibility: hidden; }
|
|
431
|
+
html:not(.js) .story-sticky { position: relative; height: auto; }
|
|
432
|
+
html:not(.js) .story-steps { display: none; }
|
|
433
|
+
|
|
434
|
+
@media (max-width: 860px) {
|
|
435
|
+
.story-frame { grid-template-columns: 1fr; grid-template-rows: 1.6fr 1fr; height: calc(100svh - var(--nav-h) - 112px); min-height: 480px; padding: 8px; gap: 8px; border-radius: 20px; }
|
|
436
|
+
.story-sticky { gap: 12px; padding: 12px 0 14px; }
|
|
437
|
+
.agent { width: 44%; height: 50%; top: 25%; padding: 9px; gap: 6px; border-radius: 13px; overflow: hidden; }
|
|
438
|
+
.agent-body { overflow: hidden; }
|
|
439
|
+
.p2p-label { display: none; }
|
|
440
|
+
.packets { left: 46%; right: 46%; }
|
|
441
|
+
.agent-a { left: 2%; } .agent-b { right: 2%; }
|
|
442
|
+
.agent-head .mono-tile { width: 24px; height: 24px; font-size: 10.5px; border-radius: 7px; }
|
|
443
|
+
.agent-head b { font-size: 12px; } .agent-head div > span { display: none; }
|
|
444
|
+
.agent-meta { font-size: 10.5px; } .agent-meta code { font-size: 10.5px; }
|
|
445
|
+
.bubble { font-size: 10.5px; padding: 5px 7px; } .bubble .mono { display: none; }
|
|
446
|
+
.tag { font-size: 10.5px; padding: 3px 6px; }
|
|
447
|
+
.kv { font-size: 10px; } .kv div { padding: 2px 6px; }
|
|
448
|
+
.node { padding: 5px 10px 5px 5px; gap: 7px; }
|
|
449
|
+
.node .ico { width: 24px; height: 24px; } .node .ico .icon-sm { width: 13px; height: 13px; }
|
|
450
|
+
.node b { font-size: 11.5px; } .node div > span { font-size: 10px; }
|
|
451
|
+
.term-step { font-size: 11px; padding: 10px 12px; }
|
|
452
|
+
.term-bar { padding: 8px 12px; }
|
|
453
|
+
.caption-pill { font-size: 14.5px; padding: 9px 14px; border-radius: 16px; }
|
|
454
|
+
.p2p-label { font-size: 10px; }
|
|
455
|
+
}
|
|
456
|
+
|
|
457
|
+
/* ---------- Generic cards & grids ---------- */
|
|
458
|
+
.grid { display: grid; gap: 16px; }
|
|
459
|
+
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
|
|
460
|
+
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
|
|
461
|
+
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
|
|
462
|
+
@media (max-width: 960px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
|
|
463
|
+
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }
|
|
464
|
+
|
|
465
|
+
.card {
|
|
466
|
+
background: var(--surface); border: 1px solid var(--line);
|
|
467
|
+
border-radius: var(--radius-lg); padding: 24px;
|
|
468
|
+
}
|
|
469
|
+
.section-alt .card { background: var(--bg); }
|
|
470
|
+
.card h3 { font-size: 18px; letter-spacing: -.015em; font-weight: 620; }
|
|
471
|
+
.card p { color: var(--ink-2); margin-top: 8px; font-size: 15px; }
|
|
472
|
+
.card-icon {
|
|
473
|
+
width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center;
|
|
474
|
+
background: var(--accent-soft); color: var(--accent-ink); margin-bottom: 18px;
|
|
475
|
+
}
|
|
476
|
+
.card-icon.neutral { background: var(--surface-2); color: var(--ink-2); }
|
|
477
|
+
.card-icon.ok { background: var(--ok-soft); color: var(--ok); }
|
|
478
|
+
|
|
479
|
+
/* Who sees what */
|
|
480
|
+
.sees { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
|
|
481
|
+
@media (max-width: 1000px) { .sees { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
|
|
482
|
+
@media (max-width: 600px) { .sees { grid-template-columns: 1fr; } }
|
|
483
|
+
.party { display: flex; flex-direction: column; gap: 14px; padding: 20px; }
|
|
484
|
+
.party-head { display: flex; align-items: center; gap: 12px; }
|
|
485
|
+
.party-head .card-icon { margin: 0; width: 38px; height: 38px; border-radius: 11px; }
|
|
486
|
+
.party-head b { display: block; font-size: 15.5px; font-weight: 620; line-height: 1.25; }
|
|
487
|
+
.party-head span { display: block; font-size: 12.5px; color: var(--ink-3); font-family: var(--mono); }
|
|
488
|
+
.party .when { font-size: 12.5px; color: var(--ink-3); }
|
|
489
|
+
.party ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 7px; font-size: 14px; color: var(--ink-2); }
|
|
490
|
+
.party li { display: flex; gap: 8px; align-items: flex-start; line-height: 1.45; }
|
|
491
|
+
.party li svg { margin-top: 2px; }
|
|
492
|
+
.party .yes svg { color: var(--ink-2); }
|
|
493
|
+
.party .no { color: var(--ink-3); }
|
|
494
|
+
.party .no svg { color: var(--ok); }
|
|
495
|
+
.party h4 { font-size: 11.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); font-weight: 600; margin-bottom: -4px; }
|
|
496
|
+
|
|
497
|
+
.note-box {
|
|
498
|
+
display: flex; gap: 14px; align-items: flex-start;
|
|
499
|
+
margin-top: 20px; padding: 16px 18px; border-radius: var(--radius);
|
|
500
|
+
background: var(--surface-2); border: 1px solid var(--line);
|
|
501
|
+
color: var(--ink-2); font-size: 15px;
|
|
502
|
+
}
|
|
503
|
+
.note-box svg { color: var(--ink-2); margin-top: 2px; }
|
|
504
|
+
.note-box.warn { background: var(--warn-soft); }
|
|
505
|
+
.note-box.warn svg { color: var(--warn); }
|
|
506
|
+
.note-box strong { color: var(--ink); font-weight: 600; }
|
|
507
|
+
|
|
508
|
+
/* Tool explorer */
|
|
509
|
+
.profiles { display: inline-flex; gap: 4px; padding: 4px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); margin: 0 auto 10px; }
|
|
510
|
+
.profiles button { border: 0; background: none; padding: 7px 15px; border-radius: 999px; cursor: pointer; font-size: 14px; color: var(--ink-2); font-weight: 520; }
|
|
511
|
+
.profiles button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm); }
|
|
512
|
+
.profile-note { color: var(--ink-3); font-size: 14px; min-height: 22px; }
|
|
513
|
+
.tool-groups { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: 26px; }
|
|
514
|
+
@media (max-width: 1000px) { .tool-groups { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
|
|
515
|
+
@media (max-width: 600px) { .tool-groups { grid-template-columns: 1fr; } }
|
|
516
|
+
.tool-group { padding: 18px; transition: opacity .3s; }
|
|
517
|
+
.tool-group h3 { display: flex; align-items: center; gap: 9px; font-size: 15px; margin-bottom: 12px; }
|
|
518
|
+
.tool-group h3 .count { margin-left: auto; font: 12px var(--mono); color: var(--ink-3); }
|
|
519
|
+
.tool { padding: 9px 10px; border-radius: 10px; transition: opacity .3s, background .3s; }
|
|
520
|
+
.tool + .tool { margin-top: 2px; }
|
|
521
|
+
.tool code { background: none; border: 0; padding: 0; font-size: 13px; color: var(--ink); font-weight: 560; }
|
|
522
|
+
.tool p { margin: 2px 0 0; font-size: 13px; color: var(--ink-3); line-height: 1.45; }
|
|
523
|
+
.tool:hover { background: var(--surface-2); }
|
|
524
|
+
.tool-group.off { opacity: .32; }
|
|
525
|
+
|
|
526
|
+
/* Steps */
|
|
527
|
+
.steps { counter-reset: s; }
|
|
528
|
+
.step { position: relative; }
|
|
529
|
+
.step .n { font: 13px var(--mono); color: var(--ink-3); }
|
|
530
|
+
.step h3 { margin-top: 10px; }
|
|
531
|
+
.code-mini {
|
|
532
|
+
display: flex; align-items: center; gap: 10px; margin-top: 16px;
|
|
533
|
+
background: var(--term-bg); color: var(--term-ink); border-radius: 10px; padding: 8px 8px 8px 12px;
|
|
534
|
+
}
|
|
535
|
+
.code-mini code { flex: 1; background: none; border: 0; padding: 0; font-size: 13px; color: var(--term-ink); overflow-x: auto; white-space: nowrap; }
|
|
536
|
+
|
|
537
|
+
/* Tabs */
|
|
538
|
+
.tabs { margin-top: 28px; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; background: var(--surface); }
|
|
539
|
+
.section-alt .tabs { background: var(--bg); }
|
|
540
|
+
.tablist { display: flex; gap: 2px; padding: 8px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
|
|
541
|
+
.tablist button {
|
|
542
|
+
display: inline-flex; align-items: center; gap: 8px; flex: none;
|
|
543
|
+
border: 0; background: none; padding: 7px 12px 7px 7px; border-radius: 10px; cursor: pointer;
|
|
544
|
+
font-size: 14px; color: var(--ink-2); font-weight: 520;
|
|
545
|
+
}
|
|
546
|
+
.tablist button .mono-tile { width: 22px; height: 22px; border-radius: 6px; font-size: 9.5px; }
|
|
547
|
+
.tablist button[aria-selected="true"] { background: var(--surface-2); color: var(--ink); }
|
|
548
|
+
.tabpanel { padding: 20px; }
|
|
549
|
+
.tabpanel[hidden] { display: none; }
|
|
550
|
+
.tabpanel > p { color: var(--ink-2); font-size: 15px; margin-bottom: 14px; }
|
|
551
|
+
.tabpanel > p:last-child { margin: 14px 0 0; }
|
|
552
|
+
|
|
553
|
+
/* Code blocks */
|
|
554
|
+
pre {
|
|
555
|
+
position: relative; margin: 0;
|
|
556
|
+
background: var(--term-bg); color: var(--term-ink);
|
|
557
|
+
border: 1px solid var(--term-line);
|
|
558
|
+
border-radius: 12px; padding: 16px 18px; overflow-x: auto;
|
|
559
|
+
font-size: 13px; line-height: 1.65;
|
|
560
|
+
}
|
|
561
|
+
pre code { background: none; border: 0; padding: 0; font-size: inherit; white-space: pre; }
|
|
562
|
+
pre .copy { position: absolute; top: 9px; right: 9px; opacity: 0; transition: opacity .15s; }
|
|
563
|
+
pre:hover .copy, pre .copy:focus-visible, pre .copy.done { opacity: 1; }
|
|
564
|
+
@media (hover: none) { pre .copy { opacity: 1; } }
|
|
565
|
+
.lang-sh .ln-cmd::before { content: "$ "; color: var(--term-dim); user-select: none; }
|
|
566
|
+
|
|
567
|
+
/* Compare table */
|
|
568
|
+
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); }
|
|
569
|
+
.section-alt .table-wrap { background: var(--bg); }
|
|
570
|
+
table { border-collapse: collapse; width: 100%; font-size: 14.5px; }
|
|
571
|
+
th, td { text-align: left; padding: 13px 18px; border-bottom: 1px solid var(--line); vertical-align: top; }
|
|
572
|
+
tr:last-child td { border-bottom: 0; }
|
|
573
|
+
th { font-size: 13px; font-weight: 600; color: var(--ink-3); background: var(--surface-2); }
|
|
574
|
+
td:first-child { color: var(--ink); font-weight: 520; }
|
|
575
|
+
td { color: var(--ink-2); }
|
|
576
|
+
.yes-ic { color: var(--ok); }
|
|
577
|
+
.no-ic { color: var(--ink-3); }
|
|
578
|
+
.cmp td:not(:first-child), .cmp th:not(:first-child) { text-align: center; }
|
|
579
|
+
.cmp td svg { margin: 0 auto; }
|
|
580
|
+
|
|
581
|
+
.badge-planned { display: inline-block; font-size: 12px; font-weight: 560; padding: 3px 9px; border-radius: 999px; background: var(--surface-2); color: var(--ink-3); border: 1px dashed var(--line-2); margin-bottom: 16px; }
|
|
582
|
+
|
|
583
|
+
/* Package picker */
|
|
584
|
+
.pkg { display: flex; flex-direction: column; }
|
|
585
|
+
.pkg .pkg-name { font: 600 14px var(--mono); }
|
|
586
|
+
.pkg .badge { align-self: flex-start; font-size: 12px; font-weight: 560; padding: 3px 9px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-ink); margin-bottom: 14px; }
|
|
587
|
+
.pkg .badge.neutral { background: var(--surface-2); color: var(--ink-3); }
|
|
588
|
+
.pkg .more { margin-top: auto; padding-top: 16px; display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 520; color: var(--ink); }
|
|
589
|
+
|
|
590
|
+
/* FAQ */
|
|
591
|
+
.faq { border-top: 1px solid var(--line); }
|
|
592
|
+
.faq details { border-bottom: 1px solid var(--line); }
|
|
593
|
+
.faq summary {
|
|
594
|
+
list-style: none; cursor: pointer;
|
|
595
|
+
display: flex; align-items: center; justify-content: space-between; gap: 16px;
|
|
596
|
+
padding: 19px 4px; font-size: 16.5px; font-weight: 540;
|
|
597
|
+
}
|
|
598
|
+
.faq summary::-webkit-details-marker { display: none; }
|
|
599
|
+
.faq summary > span { min-width: 0; }
|
|
600
|
+
.faq summary .icon-sm { color: var(--ink-3); transition: transform .25s; }
|
|
601
|
+
.faq details[open] summary .icon-sm { transform: rotate(45deg); }
|
|
602
|
+
.faq .answer { padding: 0 4px 22px; color: var(--ink-2); font-size: 15.5px; max-width: 680px; }
|
|
603
|
+
.faq .answer p + p, .faq .answer p + ul, .faq .answer ul + p { margin-top: 10px; }
|
|
604
|
+
.faq .answer ul { margin: 0; padding-left: 20px; }
|
|
605
|
+
.faq .answer li + li { margin-top: 4px; }
|
|
606
|
+
|
|
607
|
+
/* CTA */
|
|
608
|
+
.cta {
|
|
609
|
+
text-align: center; padding: 64px 24px; border-radius: 28px;
|
|
610
|
+
background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow);
|
|
611
|
+
position: relative; overflow: hidden;
|
|
612
|
+
}
|
|
613
|
+
.cta::before { content: ""; position: absolute; inset: auto -20% -60% -20%; height: 120%; background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 10%, transparent), transparent); pointer-events: none; }
|
|
614
|
+
.cta > * { position: relative; }
|
|
615
|
+
.cta .install { margin-top: 26px; }
|
|
616
|
+
.cta small { display: block; margin-top: 20px; color: var(--ink-3); font-size: 13.5px; }
|
|
617
|
+
|
|
618
|
+
/* Footer */
|
|
619
|
+
.footer { padding: 40px 0 56px; color: var(--ink-3); font-size: 14px; }
|
|
620
|
+
.footer .wrap { display: flex; gap: 20px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
|
|
621
|
+
.footer nav { display: flex; gap: 18px; flex-wrap: wrap; }
|
|
622
|
+
.footer a:hover { color: var(--ink); }
|
|
623
|
+
|
|
624
|
+
/* ---------- Guide (docs) layout ---------- */
|
|
625
|
+
.docs { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 56px; max-width: 1180px; margin: 0 auto; padding: 0 24px; }
|
|
626
|
+
.sidebar { position: sticky; top: var(--nav-h); align-self: start; height: calc(100vh - var(--nav-h)); overflow-y: auto; padding: 32px 0 40px; scrollbar-width: thin; }
|
|
627
|
+
.sidebar h5 { margin: 22px 0 6px; font-size: 11.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); font-weight: 600; padding-left: 10px; }
|
|
628
|
+
.sidebar h5:first-child { margin-top: 0; }
|
|
629
|
+
.sidebar a { display: flex; align-items: center; gap: 9px; padding: 6px 10px; border-radius: 8px; font-size: 14.5px; color: var(--ink-2); }
|
|
630
|
+
.sidebar a:hover { background: var(--surface-2); color: var(--ink); }
|
|
631
|
+
.sidebar a.active { background: var(--surface-2); color: var(--ink); font-weight: 560; }
|
|
632
|
+
.sidebar a .icon-sm { color: var(--ink-3); }
|
|
633
|
+
.docs-main { padding: 40px 0 120px; min-width: 0; max-width: 780px; }
|
|
634
|
+
.docs-main > header { padding-bottom: 28px; border-bottom: 1px solid var(--line); margin-bottom: 8px; }
|
|
635
|
+
.docs-main > header h1 { font-size: clamp(34px, 4.5vw, 46px); letter-spacing: -.035em; }
|
|
636
|
+
.docs-main > header p { color: var(--ink-2); font-size: 18px; margin-top: 12px; }
|
|
637
|
+
.doc-section { padding-top: 44px; }
|
|
638
|
+
.doc-section > h2 { font-size: 28px; letter-spacing: -.028em; display: flex; align-items: center; gap: 12px; }
|
|
639
|
+
.doc-section > h2 .card-icon { margin: 0; width: 36px; height: 36px; border-radius: 10px; }
|
|
640
|
+
.doc-section h3 { font-size: 19px; margin: 32px 0 10px; letter-spacing: -.015em; }
|
|
641
|
+
.doc-section p, .doc-section li { color: var(--ink-2); }
|
|
642
|
+
.doc-section p { margin-top: 12px; }
|
|
643
|
+
.doc-section > p:first-of-type { margin-top: 14px; }
|
|
644
|
+
.doc-section ul, .doc-section ol { padding-left: 22px; margin: 12px 0 0; }
|
|
645
|
+
.doc-section li + li { margin-top: 5px; }
|
|
646
|
+
.doc-section li strong, .doc-section p strong { color: var(--ink); font-weight: 600; }
|
|
647
|
+
.doc-section pre { margin-top: 14px; }
|
|
648
|
+
.doc-section .table-wrap { margin-top: 16px; }
|
|
649
|
+
.doc-section table { font-size: 14px; }
|
|
650
|
+
.doc-section td code, .doc-section th code { white-space: nowrap; }
|
|
651
|
+
.doc-section .note-box { margin-top: 18px; }
|
|
652
|
+
.doc-section .tabs { margin-top: 18px; }
|
|
653
|
+
.doc-section figure { margin: 20px 0 0; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); }
|
|
654
|
+
.doc-section figcaption { margin-top: 12px; font-size: 13.5px; color: var(--ink-3); text-align: center; }
|
|
655
|
+
.tool-ref { margin-top: 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
|
|
656
|
+
.tool-ref + .tool-ref { margin-top: 10px; }
|
|
657
|
+
.tool-ref summary { list-style: none; cursor: pointer; display: flex; align-items: baseline; gap: 12px; padding: 13px 16px; flex-wrap: wrap; }
|
|
658
|
+
.tool-ref summary::-webkit-details-marker { display: none; }
|
|
659
|
+
.tool-ref summary code { background: none; border: 0; padding: 0; font-weight: 600; color: var(--ink); font-size: 14px; }
|
|
660
|
+
.tool-ref summary span { color: var(--ink-3); font-size: 14px; }
|
|
661
|
+
.tool-ref summary .profile-tag { margin-left: auto; font: 11.5px var(--mono); color: var(--ink-3); background: var(--surface-2); padding: 2px 8px; border-radius: 999px; }
|
|
662
|
+
.tool-ref[open] summary { border-bottom: 1px solid var(--line); }
|
|
663
|
+
.tool-ref .tool-body { padding: 4px 16px 16px; }
|
|
664
|
+
.tool-ref .tool-body p { font-size: 14.5px; }
|
|
665
|
+
.args { width: 100%; margin-top: 10px; font-size: 13.5px; }
|
|
666
|
+
.args td, .args th { padding: 7px 10px 7px 0; border-bottom: 1px solid var(--line); background: none; }
|
|
667
|
+
.args th { color: var(--ink-3); font-weight: 600; font-size: 12px; }
|
|
668
|
+
.args tr:last-child td { border-bottom: 0; }
|
|
669
|
+
.args td:first-child code { white-space: nowrap; }
|
|
670
|
+
.tool-ref .tool-body { overflow-x: auto; }
|
|
671
|
+
.args .req { color: var(--warn); font-size: 11px; font-weight: 600; margin-left: 6px; }
|
|
672
|
+
.docs-toggle { display: none; }
|
|
673
|
+
.pager { display: flex; gap: 12px; margin-top: 56px; }
|
|
674
|
+
.pager a { flex: 1; padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
|
|
675
|
+
.pager a:hover { border-color: var(--line-2); }
|
|
676
|
+
.pager small { display: block; color: var(--ink-3); font-size: 12.5px; }
|
|
677
|
+
.pager b { font-weight: 580; }
|
|
678
|
+
|
|
679
|
+
/* Static reference guides share the main documentation layout. */
|
|
680
|
+
.reference-page .docs-main { overflow-wrap: anywhere; }
|
|
681
|
+
.reference-page .guide-intro { padding-top: 14px; }
|
|
682
|
+
.reference-page .docs-main > header .guide-breadcrumb { font-size: 14px; margin: 0 0 16px; }
|
|
683
|
+
.reference-page .docs-main > header .guide-format { font-size: 14px; }
|
|
684
|
+
.reference-page .doc-section h4 { margin-top: 24px; font-size: 17px; }
|
|
685
|
+
.reference-page .table-wrap:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
|
|
686
|
+
.reference-page .doc-section td code, .reference-page .doc-section th code { white-space: normal; }
|
|
687
|
+
.reference-page .doc-section table { min-width: 560px; }
|
|
688
|
+
.reference-page .doc-section pre { overflow-wrap: normal; }
|
|
689
|
+
.reference-page .guide-intro:empty { display: none; }
|
|
690
|
+
.guide-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 18px; }
|
|
691
|
+
.guide-list a { padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
|
|
692
|
+
.guide-list a:hover { border-color: var(--accent); }
|
|
693
|
+
.guide-list strong { display: block; color: var(--ink); }
|
|
694
|
+
.guide-list span { display: block; color: var(--ink-2); margin-top: 6px; font-size: 14px; }
|
|
695
|
+
@media (max-width: 640px) { .guide-list { grid-template-columns: 1fr; } }
|
|
696
|
+
@media print {
|
|
697
|
+
.reference-page .nav, .reference-page .sidebar, .reference-page .docs-toggle,
|
|
698
|
+
.reference-page .footer, .reference-page .pager, .reference-page .copy { display: none; }
|
|
699
|
+
.reference-page .docs { display: block; padding: 0; }
|
|
700
|
+
.reference-page .docs-main { max-width: none; padding: 0; }
|
|
701
|
+
.reference-page .table-wrap, .reference-page pre { overflow: visible; }
|
|
702
|
+
.reference-page .doc-section table { min-width: 0; }
|
|
703
|
+
.reference-page pre code { white-space: pre-wrap; overflow-wrap: anywhere; }
|
|
704
|
+
}
|
|
705
|
+
|
|
706
|
+
@media (max-width: 960px) {
|
|
707
|
+
.docs { grid-template-columns: 1fr; gap: 0; padding: 0 16px; }
|
|
708
|
+
.sidebar { position: fixed; z-index: 40; top: var(--nav-h); left: 0; bottom: 0; width: min(300px, 86vw); height: auto; padding: 20px 14px; background: var(--bg); border-right: 1px solid var(--line); transform: translateX(-102%); transition: transform .25s; box-shadow: var(--shadow-lg); }
|
|
709
|
+
body.sidebar-open .sidebar { transform: none; }
|
|
710
|
+
.docs-toggle { display: inline-flex; position: sticky; top: calc(var(--nav-h) + 10px); z-index: 30; margin-top: 14px; }
|
|
711
|
+
.docs-main { padding-top: 20px; }
|
|
712
|
+
}
|
|
713
|
+
|
|
714
|
+
/* Utilities */
|
|
715
|
+
.center { text-align: center; }
|
|
716
|
+
.mt-8 { margin-top: 8px; } .mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; } .mt-32 { margin-top: 32px; } .mt-48 { margin-top: 48px; }
|
|
717
|
+
.muted { color: var(--ink-3); }
|
|
718
|
+
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
|
|
719
|
+
.row.center { justify-content: center; }
|
|
720
|
+
|
|
721
|
+
@media (max-width: 640px) {
|
|
722
|
+
.section { padding: 76px 0; }
|
|
723
|
+
.section-head { margin-bottom: 36px; }
|
|
724
|
+
.wrap { padding: 0 16px; }
|
|
725
|
+
.hero { padding-top: 48px; }
|
|
726
|
+
.install-row .note { display: none; }
|
|
727
|
+
.card { padding: 20px; }
|
|
728
|
+
.cta { padding: 44px 18px; border-radius: 22px; }
|
|
729
|
+
}
|
|
730
|
+
|
|
731
|
+
@media (prefers-reduced-motion: reduce) {
|
|
732
|
+
*, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
|
|
733
|
+
.packet { display: none; }
|
|
734
|
+
html { scroll-behavior: auto; }
|
|
735
|
+
}
|