freertc 0.1.33 → 0.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +205 -13
- package/bin/freertc.mjs +38 -633
- package/migrations/0001_initial.sql +43 -0
- package/migrations/0002_kademlia_overlay.sql +32 -0
- package/migrations/0003_announcement_role.sql +4 -0
- package/package.json +44 -17
- package/public/app.js +746 -172
- package/public/icon-180.png +0 -0
- package/public/icon-192.png +0 -0
- package/public/index.html +200 -799
- package/public/pigeonlogo.svg +51 -0
- package/scripts/d1-schema.sql +36 -0
- package/scripts/deploy-cloudflare.mjs +190 -0
- package/scripts/dev-server.mjs +54 -7
- package/scripts/generate-relay-identity.mjs +14 -0
- package/scripts/name-setup.mjs +332 -0
- package/scripts/node-relay.mjs +1128 -0
- package/scripts/project-bootstrap.mjs +13 -6
- package/scripts/wrangler-install-wizard.mjs +21 -11
- package/src/client.js +3468 -0
- package/src/direct/cert.js +95 -0
- package/src/direct/common.js +187 -0
- package/src/direct/dial.js +47 -0
- package/src/direct/directory.js +230 -0
- package/src/direct/listener.js +201 -0
- package/src/direct/lookup.js +75 -0
- package/src/direct/names.js +150 -0
- package/src/direct/node-relay-direct.js +170 -0
- package/src/direct/portmap.js +214 -0
- package/src/direct/reachable.js +40 -0
- package/src/direct/record.js +188 -0
- package/src/index.js +1401 -199
- package/src/kademlia.js +133 -0
- package/src/node/account-sync.js +98 -0
- package/src/node/cost-meter.js +92 -0
- package/src/node/d1-sqlite.js +108 -0
- package/src/node/data-dir.js +66 -0
- package/src/node/durable-object.js +58 -0
- package/src/node/lan-beacon.js +55 -0
- package/src/node/link-crypto.js +99 -0
- package/src/node/relay-links.js +385 -0
- package/src/node/relay-name.js +193 -0
- package/src/node/relay-pq.js +68 -0
- package/src/node/relay-stats.js +276 -0
- package/src/node/stats-page.js +281 -0
- package/src/node/websocket-pair.js +117 -0
- package/src/punch/offer.js +143 -0
- package/src/punch/rendezvous.js +124 -0
- package/src/punch/transport.js +257 -0
- package/src/relay-fetch.js +131 -0
- package/src/relay-id.js +74 -0
- package/src/relay-identity.js +298 -0
- package/src/relay-overlay.js +857 -0
- package/src/tunnel/client.js +276 -0
- package/src/tunnel/frames.js +64 -0
- package/src/tunnel/home.js +271 -0
- package/wrangler.template.jsonc +34 -9
- package/wrangler.workers-dev.jsonc +20 -3
- package/scripts/non-cloudflare-server.mjs +0 -433
- package/scripts/postinstall-message.mjs +0 -133
package/public/index.html
CHANGED
|
@@ -3,814 +3,215 @@
|
|
|
3
3
|
<head>
|
|
4
4
|
<meta charset="utf-8">
|
|
5
5
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
6
|
-
<title>
|
|
6
|
+
<title>FreeRTC</title>
|
|
7
|
+
<link rel="icon" type="image/svg+xml" href="/pigeonlogo.svg" />
|
|
8
|
+
<link rel="icon" type="image/png" sizes="192x192" href="/icon-192.png" />
|
|
9
|
+
<link rel="apple-touch-icon" sizes="180x180" href="/icon-180.png" />
|
|
10
|
+
<link rel="preconnect" href="https://fonts.googleapis.com">
|
|
11
|
+
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
|
|
12
|
+
<link href="https://fonts.googleapis.com/css2?family=Archivo:wdth,wght@62..125,100..900&display=swap" rel="stylesheet">
|
|
7
13
|
<style>
|
|
14
|
+
/* The Pigeon look (PigeonAI, PigeonFS, PigeonChess): Pickled Bluewood and Cruise; mint for what is live. */
|
|
8
15
|
:root {
|
|
9
16
|
color-scheme: dark;
|
|
10
|
-
--
|
|
11
|
-
--
|
|
12
|
-
--
|
|
13
|
-
--
|
|
14
|
-
--
|
|
15
|
-
--
|
|
16
|
-
--
|
|
17
|
-
--
|
|
18
|
-
--
|
|
19
|
-
--
|
|
20
|
-
--
|
|
21
|
-
--
|
|
22
|
-
--
|
|
23
|
-
--
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
17
|
+
--night: #1b2430;
|
|
18
|
+
--night-2: #151d27;
|
|
19
|
+
--line: #2c394a;
|
|
20
|
+
--line-strong: #3d4c5f;
|
|
21
|
+
--bright: #e8f6f9;
|
|
22
|
+
--bone: #bee6ee;
|
|
23
|
+
--bone-2: #9dbfc8;
|
|
24
|
+
--bone-3: #8aa7b3;
|
|
25
|
+
--sheen: #7fd8a6;
|
|
26
|
+
--info: #9cc3f5;
|
|
27
|
+
--warm: #f2c879;
|
|
28
|
+
--bad: #f29b91;
|
|
29
|
+
--on-bone: #1e2a37;
|
|
30
|
+
--font: 'Archivo', system-ui, sans-serif;
|
|
31
|
+
--mono: ui-monospace, 'SF Mono', Menlo, monospace;
|
|
32
|
+
/* names the rest of the page uses */
|
|
33
|
+
--ink: var(--bone);
|
|
34
|
+
--ink-soft: var(--bone-2);
|
|
35
|
+
--muted: var(--bone-3);
|
|
36
|
+
--success: var(--sheen);
|
|
37
|
+
--warn: var(--warm);
|
|
38
|
+
}
|
|
39
|
+
*, *::before, *::after { box-sizing: border-box; }
|
|
40
|
+
html, body { margin: 0; }
|
|
28
41
|
body {
|
|
29
|
-
margin: 0;
|
|
30
|
-
min-height: 100vh;
|
|
31
|
-
font-family: "Space Grotesk", "Avenir Next", "Segoe UI", sans-serif;
|
|
32
|
-
color: var(--ink);
|
|
33
|
-
background:
|
|
34
|
-
radial-gradient(circle at top left, rgba(117, 174, 255, 0.12), transparent 24%),
|
|
35
|
-
radial-gradient(circle at 85% 10%, rgba(54, 86, 132, 0.22), transparent 18%),
|
|
36
|
-
linear-gradient(180deg, #090d12 0%, var(--bg) 52%, var(--bg-strong) 100%);
|
|
37
|
-
}
|
|
38
|
-
#app {
|
|
39
42
|
min-height: 100vh;
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
.shell {
|
|
43
|
-
width: min(1180px, 100%);
|
|
44
|
-
margin: 0 auto;
|
|
45
|
-
display: grid;
|
|
46
|
-
gap: 18px;
|
|
47
|
-
}
|
|
48
|
-
.card {
|
|
49
|
-
background: var(--paper);
|
|
50
|
-
border: 1px solid var(--line);
|
|
51
|
-
border-radius: 24px;
|
|
52
|
-
padding: 20px;
|
|
53
|
-
box-shadow: var(--shadow);
|
|
54
|
-
backdrop-filter: blur(18px);
|
|
55
|
-
}
|
|
56
|
-
.hero {
|
|
57
|
-
display: flex;
|
|
58
|
-
align-items: flex-start;
|
|
59
|
-
justify-content: space-between;
|
|
60
|
-
gap: 24px;
|
|
61
|
-
}
|
|
62
|
-
.hero-compact {
|
|
63
|
-
display: grid;
|
|
64
|
-
gap: 8px;
|
|
65
|
-
}
|
|
66
|
-
.brand-lockup {
|
|
67
|
-
display: inline-flex;
|
|
68
|
-
align-items: center;
|
|
69
|
-
gap: 12px;
|
|
70
|
-
}
|
|
71
|
-
.logo-badge {
|
|
72
|
-
width: 42px;
|
|
73
|
-
height: 42px;
|
|
74
|
-
border-radius: 12px;
|
|
75
|
-
display: grid;
|
|
76
|
-
place-items: center;
|
|
77
|
-
}
|
|
78
|
-
.brand-icon {
|
|
79
|
-
width: 34px;
|
|
80
|
-
height: 34px;
|
|
81
|
-
display: block;
|
|
82
|
-
}
|
|
83
|
-
.hero-compact h1 {
|
|
84
|
-
margin: 0;
|
|
85
|
-
font-size: 1.35rem;
|
|
86
|
-
font-weight: 700;
|
|
87
|
-
letter-spacing: 0.01em;
|
|
88
|
-
text-transform: uppercase;
|
|
89
|
-
}
|
|
90
|
-
.brand-wordmark {
|
|
91
|
-
text-transform: none;
|
|
92
|
-
letter-spacing: 0.01em;
|
|
93
|
-
}
|
|
94
|
-
.brand-free {
|
|
95
|
-
color: #f2f5f7;
|
|
96
|
-
}
|
|
97
|
-
.brand-rtc {
|
|
98
|
-
color: #8b5cf6;
|
|
99
|
-
}
|
|
100
|
-
.hero-copy {
|
|
101
|
-
margin: 0;
|
|
102
|
-
max-width: 42rem;
|
|
103
|
-
color: var(--ink-soft);
|
|
104
|
-
font-size: 1rem;
|
|
105
|
-
line-height: 1.5;
|
|
106
|
-
}
|
|
107
|
-
.inline-link,
|
|
108
|
-
.pill-link {
|
|
109
|
-
color: #9bc6ff;
|
|
110
|
-
text-decoration: underline;
|
|
111
|
-
text-decoration-thickness: 1.5px;
|
|
112
|
-
text-underline-offset: 2px;
|
|
113
|
-
}
|
|
114
|
-
.inline-link:hover,
|
|
115
|
-
.pill-link:hover {
|
|
116
|
-
color: #c8e0ff;
|
|
117
|
-
}
|
|
118
|
-
.hero-status {
|
|
119
|
-
min-width: 220px;
|
|
120
|
-
display: grid;
|
|
121
|
-
gap: 12px;
|
|
122
|
-
}
|
|
123
|
-
.status-pill,
|
|
124
|
-
.pill,
|
|
125
|
-
.tab {
|
|
126
|
-
display: inline-flex;
|
|
127
|
-
align-items: center;
|
|
128
|
-
justify-content: center;
|
|
129
|
-
gap: 8px;
|
|
130
|
-
border-radius: 999px;
|
|
131
|
-
border: 1px solid var(--line-strong);
|
|
132
|
-
padding: 8px 14px;
|
|
133
|
-
font-size: 0.84rem;
|
|
134
|
-
text-transform: uppercase;
|
|
135
|
-
letter-spacing: 0.08em;
|
|
136
|
-
background: rgba(255, 255, 255, 0.03);
|
|
137
|
-
}
|
|
138
|
-
.status-pill strong,
|
|
139
|
-
.pill strong {
|
|
140
|
-
font-weight: 700;
|
|
141
|
-
}
|
|
142
|
-
.pill.pill-warn {
|
|
143
|
-
color: var(--warn);
|
|
144
|
-
border-color: rgba(255, 179, 87, 0.35);
|
|
145
|
-
background: rgba(92, 59, 18, 0.42);
|
|
146
|
-
}
|
|
147
|
-
.pill.pill-ok {
|
|
148
|
-
color: var(--success);
|
|
149
|
-
border-color: rgba(102, 209, 143, 0.35);
|
|
150
|
-
background: rgba(34, 71, 48, 0.48);
|
|
151
|
-
}
|
|
152
|
-
.status-pill.connected {
|
|
153
|
-
color: var(--success);
|
|
154
|
-
border-color: rgba(102, 209, 143, 0.25);
|
|
155
|
-
background: rgba(34, 71, 48, 0.42);
|
|
156
|
-
}
|
|
157
|
-
.status-pill.connecting {
|
|
158
|
-
color: var(--warn);
|
|
159
|
-
border-color: rgba(255, 179, 87, 0.25);
|
|
160
|
-
background: rgba(92, 59, 18, 0.42);
|
|
161
|
-
}
|
|
162
|
-
.status-pill.disconnected {
|
|
163
|
-
color: #ff9488;
|
|
164
|
-
border-color: rgba(255, 148, 136, 0.18);
|
|
165
|
-
background: rgba(88, 29, 31, 0.42);
|
|
166
|
-
}
|
|
167
|
-
.headline-grid {
|
|
168
|
-
display: grid;
|
|
169
|
-
grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
|
|
170
|
-
gap: 18px;
|
|
171
|
-
}
|
|
172
|
-
.info-grid,
|
|
173
|
-
.control-grid {
|
|
174
|
-
display: grid;
|
|
175
|
-
gap: 14px;
|
|
176
|
-
}
|
|
177
|
-
.field-grid {
|
|
178
|
-
display: grid;
|
|
179
|
-
grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
180
|
-
gap: 12px;
|
|
181
|
-
}
|
|
182
|
-
.info-grid {
|
|
183
|
-
grid-template-columns: repeat(3, minmax(0, 1fr));
|
|
184
|
-
}
|
|
185
|
-
.control-grid {
|
|
186
|
-
grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.75fr);
|
|
187
|
-
}
|
|
188
|
-
.sidebar-stack {
|
|
189
|
-
display: grid;
|
|
190
|
-
gap: 14px;
|
|
191
|
-
align-content: start;
|
|
192
|
-
}
|
|
193
|
-
.stack {
|
|
194
|
-
display: grid;
|
|
195
|
-
gap: 12px;
|
|
196
|
-
}
|
|
197
|
-
.panel-title {
|
|
198
|
-
margin: 0;
|
|
199
|
-
font-size: 0.82rem;
|
|
200
|
-
text-transform: uppercase;
|
|
201
|
-
letter-spacing: 0.14em;
|
|
202
|
-
color: var(--muted);
|
|
203
|
-
}
|
|
204
|
-
.spec-warning-card {
|
|
205
|
-
border-color: rgba(255, 179, 87, 0.28);
|
|
206
|
-
background: rgba(92, 59, 18, 0.18);
|
|
207
|
-
}
|
|
208
|
-
.spec-warning-list {
|
|
209
|
-
margin: 0;
|
|
210
|
-
padding-left: 20px;
|
|
211
|
-
display: grid;
|
|
212
|
-
gap: 8px;
|
|
213
|
-
}
|
|
214
|
-
.spec-warning-item {
|
|
215
|
-
color: #ffd9ab;
|
|
216
|
-
font-size: 0.9rem;
|
|
217
|
-
line-height: 1.35;
|
|
218
|
-
}
|
|
219
|
-
.stat-card {
|
|
220
|
-
display: grid;
|
|
221
|
-
gap: 10px;
|
|
222
|
-
min-height: 120px;
|
|
223
|
-
min-width: 0;
|
|
224
|
-
padding: 18px;
|
|
225
|
-
background: var(--paper-strong);
|
|
226
|
-
border: 1px solid var(--line);
|
|
227
|
-
border-radius: 20px;
|
|
228
|
-
}
|
|
229
|
-
.stat-label {
|
|
230
|
-
font-size: 0.74rem;
|
|
231
|
-
text-transform: uppercase;
|
|
232
|
-
letter-spacing: 0.16em;
|
|
233
|
-
color: var(--muted);
|
|
234
|
-
}
|
|
235
|
-
.stat-value {
|
|
236
|
-
font-size: clamp(1rem, 2.2vw, 1.45rem);
|
|
237
|
-
line-height: 1.2;
|
|
238
|
-
word-break: break-word;
|
|
239
|
-
}
|
|
240
|
-
.stat-input {
|
|
241
|
-
width: 100%;
|
|
242
|
-
border-radius: 12px;
|
|
243
|
-
border: 1px solid var(--line-strong);
|
|
244
|
-
background: rgba(255, 255, 255, 0.03);
|
|
245
|
-
color: var(--ink);
|
|
246
|
-
padding: 10px 12px;
|
|
247
|
-
font-size: 0.88rem;
|
|
248
|
-
}
|
|
249
|
-
.mono,
|
|
250
|
-
input,
|
|
251
|
-
textarea,
|
|
252
|
-
select,
|
|
253
|
-
.log,
|
|
254
|
-
.mini-log,
|
|
255
|
-
code {
|
|
256
|
-
font-family: "IBM Plex Mono", "SFMono-Regular", Menlo, Monaco, monospace;
|
|
257
|
-
}
|
|
258
|
-
label {
|
|
259
|
-
display: grid;
|
|
260
|
-
gap: 6px;
|
|
261
|
-
font-size: 0.78rem;
|
|
262
|
-
text-transform: uppercase;
|
|
263
|
-
letter-spacing: 0.12em;
|
|
264
|
-
color: var(--muted);
|
|
265
|
-
}
|
|
266
|
-
input,
|
|
267
|
-
textarea,
|
|
268
|
-
select {
|
|
269
|
-
width: 100%;
|
|
270
|
-
border: 1px solid var(--line);
|
|
271
|
-
border-radius: 16px;
|
|
272
|
-
background: rgba(255, 255, 255, 0.04);
|
|
273
|
-
color: var(--ink);
|
|
274
|
-
padding: 12px 14px;
|
|
275
|
-
font-size: 0.94rem;
|
|
276
|
-
}
|
|
277
|
-
textarea {
|
|
278
|
-
min-height: 180px;
|
|
279
|
-
resize: vertical;
|
|
280
|
-
}
|
|
281
|
-
.row {
|
|
282
|
-
display: flex;
|
|
283
|
-
gap: 10px;
|
|
284
|
-
flex-wrap: wrap;
|
|
285
|
-
}
|
|
286
|
-
button {
|
|
287
|
-
appearance: none;
|
|
288
|
-
border: 1px solid var(--accent);
|
|
289
|
-
background: var(--accent);
|
|
290
|
-
color: #0b0f14;
|
|
291
|
-
border-radius: 999px;
|
|
292
|
-
padding: 11px 16px;
|
|
293
|
-
cursor: pointer;
|
|
294
|
-
font: inherit;
|
|
295
|
-
font-size: 0.86rem;
|
|
296
|
-
font-weight: 600;
|
|
297
|
-
letter-spacing: 0.02em;
|
|
298
|
-
transition: transform 120ms ease, background 120ms ease, border-color 120ms ease;
|
|
299
|
-
}
|
|
300
|
-
button:hover {
|
|
301
|
-
transform: translateY(-1px);
|
|
302
|
-
}
|
|
303
|
-
button.secondary {
|
|
304
|
-
background: var(--accent-soft);
|
|
305
|
-
color: var(--ink);
|
|
306
|
-
border-color: var(--line-strong);
|
|
307
|
-
}
|
|
308
|
-
button.secondary.active {
|
|
309
|
-
background: #9bc6ff;
|
|
310
|
-
border-color: #9bc6ff;
|
|
311
|
-
color: #101722;
|
|
312
|
-
box-shadow: none;
|
|
313
|
-
}
|
|
314
|
-
button:disabled {
|
|
315
|
-
opacity: 0.5;
|
|
316
|
-
cursor: not-allowed;
|
|
317
|
-
transform: none;
|
|
318
|
-
}
|
|
319
|
-
.tabs {
|
|
320
|
-
display: inline-flex;
|
|
321
|
-
gap: 8px;
|
|
322
|
-
padding: 6px;
|
|
323
|
-
border-radius: 999px;
|
|
324
|
-
background: rgba(255, 255, 255, 0.03);
|
|
325
|
-
border: 1px solid var(--line);
|
|
326
|
-
}
|
|
327
|
-
.tab {
|
|
328
|
-
cursor: pointer;
|
|
329
|
-
min-width: 140px;
|
|
330
|
-
color: var(--ink);
|
|
331
|
-
}
|
|
332
|
-
.tab.active {
|
|
333
|
-
background: var(--accent);
|
|
334
|
-
color: #0b0f14;
|
|
335
|
-
border-color: var(--accent);
|
|
336
|
-
}
|
|
337
|
-
.section-header {
|
|
338
|
-
display: flex;
|
|
339
|
-
justify-content: space-between;
|
|
340
|
-
align-items: center;
|
|
341
|
-
gap: 16px;
|
|
342
|
-
flex-wrap: wrap;
|
|
343
|
-
}
|
|
344
|
-
.metrics {
|
|
345
|
-
display: grid;
|
|
346
|
-
grid-template-columns: repeat(4, minmax(0, 1fr));
|
|
347
|
-
gap: 12px;
|
|
348
|
-
}
|
|
349
|
-
.metric {
|
|
350
|
-
padding: 14px 16px;
|
|
351
|
-
border-radius: 18px;
|
|
352
|
-
border: 1px solid var(--line);
|
|
353
|
-
background: rgba(255, 255, 255, 0.04);
|
|
354
|
-
min-width: 0;
|
|
355
|
-
}
|
|
356
|
-
.metric dt {
|
|
357
|
-
margin: 0 0 8px;
|
|
358
|
-
font-size: 0.7rem;
|
|
359
|
-
text-transform: uppercase;
|
|
360
|
-
letter-spacing: 0.14em;
|
|
361
|
-
color: var(--muted);
|
|
362
|
-
}
|
|
363
|
-
.metric dd {
|
|
364
|
-
margin: 0;
|
|
365
|
-
font-size: 1rem;
|
|
366
|
-
line-height: 1.3;
|
|
367
|
-
}
|
|
368
|
-
.peer-value {
|
|
369
|
-
display: block;
|
|
370
|
-
max-width: 100%;
|
|
371
|
-
overflow: hidden;
|
|
372
|
-
text-overflow: ellipsis;
|
|
373
|
-
white-space: nowrap;
|
|
374
|
-
}
|
|
375
|
-
.mesh-list {
|
|
376
|
-
display: grid;
|
|
377
|
-
gap: 10px;
|
|
378
|
-
}
|
|
379
|
-
.mesh-row {
|
|
380
|
-
width: 100%;
|
|
381
|
-
display: flex;
|
|
382
|
-
align-items: center;
|
|
383
|
-
justify-content: space-between;
|
|
384
|
-
gap: 12px;
|
|
385
|
-
padding: 14px 16px;
|
|
386
|
-
text-align: left;
|
|
387
|
-
border-radius: 18px;
|
|
388
|
-
background: rgba(255, 255, 255, 0.04);
|
|
389
|
-
color: var(--ink);
|
|
390
|
-
border: 1px solid var(--line);
|
|
391
|
-
}
|
|
392
|
-
.mesh-row.is-selected {
|
|
393
|
-
border-color: rgba(111, 99, 255, 0.42);
|
|
394
|
-
background: rgba(111, 99, 255, 0.12);
|
|
395
|
-
}
|
|
396
|
-
.mesh-row.is-connected {
|
|
397
|
-
box-shadow: inset 0 0 0 1px rgba(102, 209, 143, 0.18);
|
|
398
|
-
}
|
|
399
|
-
.mesh-main {
|
|
400
|
-
display: grid;
|
|
401
|
-
gap: 4px;
|
|
402
|
-
min-width: 0;
|
|
403
|
-
}
|
|
404
|
-
.mesh-peer-row {
|
|
405
|
-
display: flex;
|
|
406
|
-
align-items: center;
|
|
407
|
-
justify-content: space-between;
|
|
408
|
-
gap: 8px;
|
|
409
|
-
min-width: 0;
|
|
410
|
-
}
|
|
411
|
-
.mesh-peer {
|
|
412
|
-
font-size: 0.95rem;
|
|
413
|
-
color: var(--ink);
|
|
414
|
-
}
|
|
415
|
-
.mesh-badges {
|
|
416
|
-
display: inline-flex;
|
|
417
|
-
align-items: center;
|
|
418
|
-
gap: 6px;
|
|
419
|
-
flex-wrap: wrap;
|
|
420
|
-
justify-content: flex-end;
|
|
421
|
-
}
|
|
422
|
-
.mesh-badge {
|
|
423
|
-
border-radius: 999px;
|
|
424
|
-
padding: 2px 8px;
|
|
425
|
-
font-size: 0.66rem;
|
|
426
|
-
text-transform: uppercase;
|
|
427
|
-
letter-spacing: 0.08em;
|
|
428
|
-
border: 1px solid var(--line-strong);
|
|
429
|
-
background: rgba(255, 255, 255, 0.04);
|
|
430
|
-
color: var(--ink-soft);
|
|
431
|
-
}
|
|
432
|
-
.mesh-badge.ok {
|
|
433
|
-
color: var(--success);
|
|
434
|
-
border-color: rgba(102, 209, 143, 0.28);
|
|
435
|
-
background: rgba(102, 209, 143, 0.09);
|
|
436
|
-
}
|
|
437
|
-
.mesh-badge.warn {
|
|
438
|
-
color: var(--warn);
|
|
439
|
-
border-color: rgba(255, 179, 87, 0.3);
|
|
440
|
-
background: rgba(255, 179, 87, 0.1);
|
|
441
|
-
}
|
|
442
|
-
.mesh-badge.error {
|
|
443
|
-
color: #ff9488;
|
|
444
|
-
border-color: rgba(255, 148, 136, 0.28);
|
|
445
|
-
background: rgba(255, 148, 136, 0.09);
|
|
446
|
-
}
|
|
447
|
-
.mesh-badge.idle {
|
|
448
|
-
color: var(--ink-soft);
|
|
449
|
-
}
|
|
450
|
-
.mesh-badge.mesh-role {
|
|
451
|
-
color: #9bc6ff;
|
|
452
|
-
border-color: rgba(155, 198, 255, 0.3);
|
|
453
|
-
background: rgba(86, 128, 179, 0.18);
|
|
454
|
-
}
|
|
455
|
-
.mesh-badge.mesh-role.responder {
|
|
456
|
-
color: #c9c6ff;
|
|
457
|
-
border-color: rgba(201, 198, 255, 0.28);
|
|
458
|
-
background: rgba(114, 111, 164, 0.18);
|
|
459
|
-
}
|
|
460
|
-
.mesh-state-line {
|
|
461
|
-
color: var(--muted);
|
|
462
|
-
font-size: 0.76rem;
|
|
463
|
-
text-transform: uppercase;
|
|
464
|
-
letter-spacing: 0.08em;
|
|
465
|
-
}
|
|
466
|
-
.mesh-empty {
|
|
467
|
-
height: auto;
|
|
468
|
-
min-height: 128px;
|
|
469
|
-
}
|
|
470
|
-
.mesh-helper {
|
|
471
|
-
margin: 0;
|
|
472
|
-
font-size: 0.8rem;
|
|
473
|
-
color: var(--ink-soft);
|
|
474
|
-
}
|
|
475
|
-
.runtime-strip {
|
|
476
|
-
display: grid;
|
|
477
|
-
grid-template-columns: repeat(4, minmax(0, 1fr));
|
|
478
|
-
gap: 10px;
|
|
479
|
-
}
|
|
480
|
-
.runtime-chip {
|
|
481
|
-
border: 1px solid var(--line);
|
|
482
|
-
border-radius: 16px;
|
|
483
|
-
padding: 10px 12px;
|
|
484
|
-
background: rgba(255, 255, 255, 0.035);
|
|
485
|
-
min-width: 0;
|
|
486
|
-
}
|
|
487
|
-
.runtime-chip.ok {
|
|
488
|
-
border-color: rgba(102, 209, 143, 0.28);
|
|
489
|
-
background: rgba(102, 209, 143, 0.08);
|
|
490
|
-
}
|
|
491
|
-
.runtime-chip.warn {
|
|
492
|
-
border-color: rgba(255, 179, 87, 0.3);
|
|
493
|
-
background: rgba(255, 179, 87, 0.08);
|
|
494
|
-
}
|
|
495
|
-
.runtime-chip.selected {
|
|
496
|
-
border-color: rgba(155, 198, 255, 0.28);
|
|
497
|
-
background: rgba(86, 128, 179, 0.12);
|
|
498
|
-
}
|
|
499
|
-
.runtime-label {
|
|
500
|
-
font-size: 0.67rem;
|
|
501
|
-
text-transform: uppercase;
|
|
502
|
-
letter-spacing: 0.12em;
|
|
503
|
-
color: var(--muted);
|
|
504
|
-
margin-bottom: 4px;
|
|
505
|
-
}
|
|
506
|
-
.runtime-value {
|
|
507
|
-
font-size: 0.94rem;
|
|
508
|
-
line-height: 1.25;
|
|
509
|
-
color: var(--ink);
|
|
510
|
-
min-width: 0;
|
|
511
|
-
}
|
|
512
|
-
.runtime-route-value {
|
|
513
|
-
white-space: normal;
|
|
514
|
-
overflow-wrap: anywhere;
|
|
515
|
-
word-break: break-word;
|
|
516
|
-
}
|
|
517
|
-
.mode-toggle {
|
|
518
|
-
display: inline-flex;
|
|
519
|
-
border: 1px solid var(--line-strong);
|
|
520
|
-
border-radius: 999px;
|
|
521
|
-
overflow: hidden;
|
|
522
|
-
background: rgba(255, 255, 255, 0.03);
|
|
523
|
-
min-width: 0;
|
|
524
|
-
}
|
|
525
|
-
.mode-btn {
|
|
526
|
-
appearance: none;
|
|
527
|
-
border: 0;
|
|
528
|
-
margin: 0;
|
|
529
|
-
border-radius: 0;
|
|
530
|
-
background: transparent;
|
|
531
|
-
color: var(--ink-soft);
|
|
532
|
-
padding: 9px 14px;
|
|
533
|
-
font: inherit;
|
|
534
|
-
font-size: 0.82rem;
|
|
535
|
-
font-weight: 600;
|
|
536
|
-
letter-spacing: 0.02em;
|
|
537
|
-
cursor: pointer;
|
|
538
|
-
}
|
|
539
|
-
.mode-btn + .mode-btn {
|
|
540
|
-
border-left: 1px solid var(--line-strong);
|
|
541
|
-
}
|
|
542
|
-
.mode-btn.active {
|
|
543
|
-
background: var(--accent);
|
|
544
|
-
color: #0b0f14;
|
|
545
|
-
}
|
|
546
|
-
.chat-composer {
|
|
547
|
-
gap: 10px;
|
|
548
|
-
padding: 12px;
|
|
549
|
-
border: 1px solid var(--line);
|
|
550
|
-
border-radius: 16px;
|
|
551
|
-
background: rgba(255, 255, 255, 0.02);
|
|
552
|
-
}
|
|
553
|
-
.chat-label {
|
|
554
|
-
gap: 8px;
|
|
555
|
-
text-transform: none;
|
|
556
|
-
letter-spacing: 0.01em;
|
|
557
|
-
font-size: 0.84rem;
|
|
558
|
-
color: var(--ink-soft);
|
|
559
|
-
}
|
|
560
|
-
.chat-toolbar {
|
|
561
|
-
display: flex;
|
|
562
|
-
align-items: center;
|
|
563
|
-
justify-content: space-between;
|
|
564
|
-
gap: 10px;
|
|
565
|
-
flex-wrap: wrap;
|
|
566
|
-
}
|
|
567
|
-
.chat-send-btn {
|
|
568
|
-
min-width: 88px;
|
|
569
|
-
}
|
|
570
|
-
.console-action-btn {
|
|
571
|
-
display: inline-flex;
|
|
572
|
-
align-items: center;
|
|
573
|
-
justify-content: center;
|
|
574
|
-
min-width: 132px;
|
|
575
|
-
height: 42px;
|
|
576
|
-
padding: 0 16px;
|
|
577
|
-
line-height: 1;
|
|
578
|
-
white-space: nowrap;
|
|
579
|
-
}
|
|
580
|
-
.mode-indicator {
|
|
581
|
-
margin: 0;
|
|
582
|
-
font-size: 0.82rem;
|
|
583
|
-
letter-spacing: 0.01em;
|
|
584
|
-
color: var(--ink-soft);
|
|
585
|
-
}
|
|
586
|
-
.chat-thread {
|
|
587
|
-
display: flex;
|
|
588
|
-
flex-direction: column;
|
|
589
|
-
gap: 12px;
|
|
590
|
-
height: 320px;
|
|
591
|
-
overflow-y: auto;
|
|
592
|
-
overflow-x: hidden;
|
|
593
|
-
scrollbar-gutter: stable;
|
|
594
|
-
padding: 6px;
|
|
595
|
-
border-radius: 18px;
|
|
596
|
-
background: rgba(255, 255, 255, 0.03);
|
|
597
|
-
border: 1px solid var(--line);
|
|
598
|
-
}
|
|
599
|
-
.chat-row {
|
|
600
|
-
display: flex;
|
|
601
|
-
}
|
|
602
|
-
.chat-row.outgoing {
|
|
603
|
-
justify-content: flex-end;
|
|
604
|
-
}
|
|
605
|
-
.chat-row.incoming,
|
|
606
|
-
.chat-row.system,
|
|
607
|
-
.chat-row.error {
|
|
608
|
-
justify-content: flex-start;
|
|
609
|
-
}
|
|
610
|
-
.chat-bubble {
|
|
611
|
-
width: fit-content;
|
|
612
|
-
max-width: min(100%, 32rem);
|
|
613
|
-
padding: 12px 14px;
|
|
614
|
-
border-radius: 18px;
|
|
615
|
-
border: 1px solid var(--line);
|
|
616
|
-
background: rgba(255, 255, 255, 0.04);
|
|
617
|
-
}
|
|
618
|
-
.chat-row.outgoing .chat-bubble {
|
|
619
|
-
background: rgba(111, 99, 255, 0.18);
|
|
620
|
-
border-color: rgba(111, 99, 255, 0.32);
|
|
621
|
-
}
|
|
622
|
-
.chat-row.incoming .chat-bubble {
|
|
623
|
-
background: rgba(255, 255, 255, 0.06);
|
|
624
|
-
}
|
|
625
|
-
.chat-row.system .chat-bubble {
|
|
626
|
-
background: rgba(102, 209, 143, 0.08);
|
|
627
|
-
border-color: rgba(102, 209, 143, 0.2);
|
|
628
|
-
}
|
|
629
|
-
.chat-row.error .chat-bubble {
|
|
630
|
-
background: rgba(255, 148, 136, 0.12);
|
|
631
|
-
border-color: rgba(255, 148, 136, 0.24);
|
|
632
|
-
}
|
|
633
|
-
.chat-meta {
|
|
634
|
-
margin-bottom: 6px;
|
|
635
|
-
color: var(--muted);
|
|
636
|
-
font-size: 0.72rem;
|
|
637
|
-
text-transform: uppercase;
|
|
638
|
-
letter-spacing: 0.1em;
|
|
639
|
-
}
|
|
640
|
-
.chat-body {
|
|
641
|
-
color: var(--ink);
|
|
642
|
-
font-size: 0.96rem;
|
|
43
|
+
font-family: var(--font);
|
|
44
|
+
font-size: 15px;
|
|
643
45
|
line-height: 1.45;
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
.
|
|
659
|
-
.
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
}
|
|
664
|
-
.
|
|
665
|
-
|
|
666
|
-
}
|
|
667
|
-
.
|
|
668
|
-
.
|
|
669
|
-
.
|
|
670
|
-
.
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
.
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
.
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
}
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
}
|
|
704
|
-
.
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
}
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
}
|
|
724
|
-
.
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
}
|
|
728
|
-
.
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
}
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
}
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
}
|
|
746
|
-
.
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
}
|
|
46
|
+
color: var(--bone);
|
|
47
|
+
background: var(--night);
|
|
48
|
+
-webkit-font-smoothing: antialiased;
|
|
49
|
+
}
|
|
50
|
+
a { color: inherit; }
|
|
51
|
+
#app { min-height: 100vh; }
|
|
52
|
+
.shell { width: min(1240px, 100%); margin: 0 auto; display: grid; gap: 0; padding: 0 20px 32px; }
|
|
53
|
+
|
|
54
|
+
/* Panels: separated by lines, not floating cards. */
|
|
55
|
+
.card { background: none; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; padding: 20px 0; box-shadow: none; }
|
|
56
|
+
.stack { display: grid; gap: 12px; }
|
|
57
|
+
.row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
|
|
58
|
+
|
|
59
|
+
/* Top bar */
|
|
60
|
+
.hero { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 56px; padding: 0; }
|
|
61
|
+
.hero-compact { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
|
|
62
|
+
.brand-lockup { display: inline-flex; align-items: center; gap: 10px; }
|
|
63
|
+
.logo-badge { width: 24px; height: 24px; display: grid; place-items: center; }
|
|
64
|
+
.brand-icon { width: 22px; height: 22px; display: block; }
|
|
65
|
+
.brand-icon circle, .brand-icon path { stroke: var(--bone); }
|
|
66
|
+
.brand-icon circle[fill]:not([fill="none"]) { fill: var(--bone); }
|
|
67
|
+
.hero-compact h1, .brand-wordmark { margin: 0; font-weight: 800; font-stretch: 125%; font-size: 1.05rem; letter-spacing: -0.01em; text-transform: none; }
|
|
68
|
+
.brand-free { color: var(--bright); }
|
|
69
|
+
.brand-rtc { color: var(--bone); }
|
|
70
|
+
.hero-copy { margin: 0; color: var(--bone-2); font-size: 0.9rem; max-width: 44rem; }
|
|
71
|
+
.inline-link, .pill-link { color: var(--bone); text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 3px; }
|
|
72
|
+
.inline-link:hover, .pill-link:hover { text-decoration-color: var(--sheen); }
|
|
73
|
+
.hero-status { display: flex; align-items: center; gap: 10px; min-width: 0; }
|
|
74
|
+
|
|
75
|
+
/* Status and small labels: plain text with a dot, no pills. */
|
|
76
|
+
.status-pill, .pill { display: inline-flex; align-items: center; gap: 8px; padding: 0; border: 0; background: none; color: var(--bone-2); font-size: 0.85rem; text-transform: none; letter-spacing: 0; border-radius: 0; }
|
|
77
|
+
.status-pill strong, .pill strong { font-weight: 500; }
|
|
78
|
+
.status-pill::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--bone-3); }
|
|
79
|
+
.status-pill.connected { color: var(--bright); }
|
|
80
|
+
.status-pill.connected::before { background: var(--sheen); animation: pulse 1.6s ease-out infinite; }
|
|
81
|
+
.status-pill.connecting::before { background: var(--info); }
|
|
82
|
+
.status-pill.disconnected::before { background: var(--bad); }
|
|
83
|
+
@keyframes pulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--sheen) 60%, transparent); } 100% { box-shadow: 0 0 0 7px transparent; } }
|
|
84
|
+
@media (prefers-reduced-motion: reduce) { .status-pill.connected::before { animation: none; } }
|
|
85
|
+
.pill.pill-warn { color: var(--warm); }
|
|
86
|
+
.pill.pill-ok { color: var(--sheen); }
|
|
87
|
+
|
|
88
|
+
.panel-title { margin: 0; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--bone-3); }
|
|
89
|
+
.section-header { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
|
|
90
|
+
.spec-warning-card { border-bottom-color: color-mix(in srgb, var(--warm) 40%, var(--line)); }
|
|
91
|
+
.spec-warning-list { margin: 0; padding-left: 18px; display: grid; gap: 6px; }
|
|
92
|
+
.spec-warning-item { color: var(--warm); font-size: 0.88rem; }
|
|
93
|
+
|
|
94
|
+
/* Layout */
|
|
95
|
+
.headline-grid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 0 28px; }
|
|
96
|
+
.control-grid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 0 28px; }
|
|
97
|
+
.headline-grid > .card + .card, .control-grid > * + * { border-left: 1px solid var(--line); padding-left: 24px; }
|
|
98
|
+
.sidebar-stack { display: grid; gap: 0; align-content: start; }
|
|
99
|
+
.info-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 14px; }
|
|
100
|
+
.field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 14px; }
|
|
101
|
+
|
|
102
|
+
/* Fields */
|
|
103
|
+
.stat-card { display: grid; gap: 6px; min-width: 0; padding: 0; background: none; border: 0; border-radius: 0; min-height: 0; }
|
|
104
|
+
.stat-label, label { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--bone-3); }
|
|
105
|
+
label { display: grid; gap: 6px; }
|
|
106
|
+
.stat-value { font-size: 1rem; word-break: break-word; }
|
|
107
|
+
.mono, input, textarea, select, .log, code { font-family: var(--mono); }
|
|
108
|
+
input, textarea, select, .stat-input {
|
|
109
|
+
width: 100%; font-size: 14px; line-height: 1.5; color: var(--bone);
|
|
110
|
+
background: var(--night-2); border: 1px solid var(--line-strong); border-radius: 6px; padding: 9px 12px;
|
|
111
|
+
}
|
|
112
|
+
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--sheen); }
|
|
113
|
+
textarea { min-height: 160px; resize: vertical; }
|
|
114
|
+
|
|
115
|
+
/* Buttons: one style, quiet secondary. */
|
|
116
|
+
button {
|
|
117
|
+
appearance: none; font: inherit; font-size: 0.9rem; color: var(--bone);
|
|
118
|
+
padding: 6px 12px; border: 1px solid var(--line-strong); border-radius: 6px; background: var(--night-2);
|
|
119
|
+
cursor: pointer; white-space: nowrap; transition: border-color 120ms ease;
|
|
120
|
+
}
|
|
121
|
+
button:hover:not(:disabled) { border-color: var(--sheen); }
|
|
122
|
+
button:focus-visible { outline: 2px solid var(--sheen); outline-offset: 1px; }
|
|
123
|
+
button:disabled { opacity: 0.5; cursor: default; }
|
|
124
|
+
button:not(.secondary):not(.tab):not(.mode-btn):not(.mesh-row) { font-weight: 600; }
|
|
125
|
+
button.secondary { color: var(--bone-2); }
|
|
126
|
+
button.secondary.active { color: var(--bone); border-color: var(--sheen); }
|
|
127
|
+
.tabs { display: inline-flex; gap: 2px; padding: 0; border: 0; background: none; }
|
|
128
|
+
.tab { min-width: 0; color: var(--bone-2); border-color: transparent; background: none; padding: 6px 10px; text-transform: none; letter-spacing: 0; font-size: 0.9rem; }
|
|
129
|
+
.tab.active { color: var(--bone); border-color: var(--line-strong); background: var(--night-2); }
|
|
130
|
+
.mode-toggle { display: inline-flex; border: 1px solid var(--line-strong); border-radius: 6px; overflow: hidden; }
|
|
131
|
+
.mode-btn { border: 0; border-radius: 0; background: none; color: var(--bone-2); padding: 6px 12px; font-size: 0.85rem; }
|
|
132
|
+
.mode-btn + .mode-btn { border-left: 1px solid var(--line-strong); }
|
|
133
|
+
.mode-btn.active { background: var(--night-2); color: var(--bone); }
|
|
134
|
+
.mode-indicator { margin: 0; font-size: 0.85rem; color: var(--bone-2); }
|
|
135
|
+
.console-action-btn { min-width: 120px; }
|
|
136
|
+
|
|
137
|
+
/* Readouts */
|
|
138
|
+
.metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line); }
|
|
139
|
+
.metric { margin: 0; padding: 10px 12px 10px 0; border: 0; background: none; border-radius: 0; min-width: 0; }
|
|
140
|
+
.metric dt { margin: 0 0 4px; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--bone-3); }
|
|
141
|
+
.metric dd { margin: 0; font-size: 0.92rem; font-variant-numeric: tabular-nums; }
|
|
142
|
+
.peer-value { display: block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
143
|
+
.runtime-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line); }
|
|
144
|
+
.runtime-chip { padding: 10px 12px 10px 0; border: 0; background: none; border-radius: 0; min-width: 0; }
|
|
145
|
+
.runtime-chip.ok .runtime-value { color: var(--sheen); }
|
|
146
|
+
.runtime-chip.warn .runtime-value { color: var(--warm); }
|
|
147
|
+
.runtime-label { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--bone-3); margin-bottom: 4px; }
|
|
148
|
+
.runtime-value { font-size: 0.92rem; color: var(--bright); min-width: 0; }
|
|
149
|
+
.runtime-route-value { white-space: normal; overflow-wrap: anywhere; }
|
|
150
|
+
|
|
151
|
+
/* Peers */
|
|
152
|
+
.mesh-list { display: grid; gap: 0; }
|
|
153
|
+
.mesh-row { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 0; text-align: left; border: 0; border-top: 1px solid var(--line); border-radius: 0; background: none; color: var(--bone); font-weight: 400; }
|
|
154
|
+
.mesh-row:last-child { border-bottom: 1px solid var(--line); }
|
|
155
|
+
.mesh-row:hover:not(:disabled) { border-color: var(--line); background: var(--night-2); }
|
|
156
|
+
.mesh-row.is-selected { background: var(--night-2); box-shadow: inset 2px 0 0 var(--sheen); padding-left: 10px; }
|
|
157
|
+
.mesh-main { display: grid; gap: 2px; min-width: 0; }
|
|
158
|
+
.mesh-peer-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-width: 0; }
|
|
159
|
+
.mesh-peer { font-size: 0.85rem; color: var(--bright); }
|
|
160
|
+
.mesh-badges { display: inline-flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
|
|
161
|
+
.mesh-badge { padding: 0; border: 0; background: none; border-radius: 0; font-size: 0.78rem; text-transform: none; letter-spacing: 0; color: var(--bone-2); }
|
|
162
|
+
.mesh-badge.ok { color: var(--sheen); }
|
|
163
|
+
.mesh-badge.warn { color: var(--warm); }
|
|
164
|
+
.mesh-badge.error { color: var(--bad); }
|
|
165
|
+
.mesh-badge.idle { color: var(--bone-3); }
|
|
166
|
+
.mesh-badge.mesh-role, .mesh-badge.mesh-role.responder { color: var(--info); }
|
|
167
|
+
.mesh-state-line { color: var(--bone-3); font-size: 0.78rem; }
|
|
168
|
+
.mesh-empty { min-height: 96px; }
|
|
169
|
+
.mesh-helper { margin: 0; font-size: 0.85rem; color: var(--bone-2); }
|
|
170
|
+
|
|
171
|
+
/* Chat */
|
|
172
|
+
.chat-composer { gap: 10px; padding: 0; border: 0; background: none; }
|
|
173
|
+
.chat-label { gap: 6px; text-transform: none; letter-spacing: 0; font-size: 0.85rem; color: var(--bone-2); font-weight: 400; }
|
|
174
|
+
.chat-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
|
|
175
|
+
.chat-send-btn { min-width: 88px; }
|
|
176
|
+
.chat-thread { display: flex; flex-direction: column; gap: 8px; height: 320px; overflow-y: auto; padding: 10px; border: 1px solid var(--line); border-radius: 6px; background: var(--night-2); }
|
|
177
|
+
.chat-row { display: flex; }
|
|
178
|
+
.chat-row.outgoing { justify-content: flex-end; }
|
|
179
|
+
.chat-bubble { width: fit-content; max-width: min(100%, 32rem); padding: 8px 12px; border-radius: 6px; border: 1px solid var(--line); background: var(--night); }
|
|
180
|
+
.chat-row.outgoing .chat-bubble { border-color: color-mix(in srgb, var(--sheen) 45%, var(--line)); }
|
|
181
|
+
.chat-row.system .chat-bubble { color: var(--bone-2); }
|
|
182
|
+
.chat-row.error .chat-bubble { border-color: color-mix(in srgb, var(--bad) 50%, var(--line)); color: var(--bad); }
|
|
183
|
+
.chat-meta { margin-bottom: 4px; color: var(--bone-3); font-size: 0.75rem; }
|
|
184
|
+
.chat-body { color: var(--bright); font-size: 0.92rem; white-space: pre-wrap; word-break: break-word; }
|
|
185
|
+
.chat-empty { height: 320px; display: grid; place-items: center; padding: 14px; border: 1px dashed var(--line-strong); border-radius: 6px; color: var(--bone-3); text-align: center; background: var(--night-2); }
|
|
186
|
+
|
|
187
|
+
/* Logs */
|
|
188
|
+
.console-card, .debug-card { background: none; color: var(--bone); border: 0; border-bottom: 1px solid var(--line); }
|
|
189
|
+
.debug-card { min-height: 0; }
|
|
190
|
+
.console-card .panel-title, .debug-card .panel-title, .console-card .muted, .debug-card .muted { color: var(--bone-3); }
|
|
191
|
+
.log { background: var(--night-2); border: 1px solid var(--line); border-radius: 6px; min-height: 220px; max-height: 220px; overflow: auto; padding: 10px 12px; font-size: 0.8rem; white-space: pre-wrap; word-break: break-word; line-height: 1.5; color: var(--bone-2); }
|
|
192
|
+
.log-preview { margin: 0; padding: 0; border: 0; background: none; display: grid; gap: 0; min-height: 0; max-height: 260px; overflow: auto; font-size: 0.82rem; }
|
|
193
|
+
.log-preview-head { font-size: 0.78rem; color: var(--bone-3); padding-bottom: 6px; }
|
|
194
|
+
.log-preview-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 0; }
|
|
195
|
+
.log-preview-item { display: grid; gap: 1px; padding: 6px 0; border-top: 1px solid var(--line); background: none; border-radius: 0; }
|
|
196
|
+
.log-preview-time { color: var(--bone-3); font-size: 0.72rem; font-variant-numeric: tabular-nums; }
|
|
197
|
+
.log-preview-label { color: var(--bright); font-size: 0.82rem; }
|
|
198
|
+
.log-preview-text { color: var(--bone-2); font-size: 0.78rem; word-break: break-word; }
|
|
199
|
+
.muted { color: var(--bone-2); font-size: 0.88rem; }
|
|
200
|
+
code { display: inline; background: var(--night-2); padding: 1px 6px; border-radius: 4px; font-size: 0.88em; }
|
|
201
|
+
.footer-note { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; color: var(--bone-3); font-size: 0.8rem; }
|
|
202
|
+
|
|
753
203
|
@media (max-width: 980px) {
|
|
754
|
-
.headline-grid,
|
|
755
|
-
.control-grid
|
|
756
|
-
.field-grid,
|
|
757
|
-
.
|
|
758
|
-
.
|
|
759
|
-
.metrics {
|
|
760
|
-
grid-template-columns: 1fr;
|
|
761
|
-
}
|
|
762
|
-
.chat-toolbar {
|
|
763
|
-
flex-direction: column;
|
|
764
|
-
align-items: stretch;
|
|
765
|
-
}
|
|
766
|
-
.chat-send-btn {
|
|
767
|
-
width: 100%;
|
|
768
|
-
}
|
|
769
|
-
.mode-toggle {
|
|
770
|
-
width: 100%;
|
|
771
|
-
}
|
|
772
|
-
.mode-btn {
|
|
773
|
-
flex: 1;
|
|
774
|
-
}
|
|
775
|
-
.hero {
|
|
776
|
-
flex-direction: column;
|
|
777
|
-
}
|
|
778
|
-
}
|
|
779
|
-
@media (max-width: 720px) {
|
|
780
|
-
#app {
|
|
781
|
-
padding: 16px;
|
|
782
|
-
}
|
|
783
|
-
.card {
|
|
784
|
-
border-radius: 20px;
|
|
785
|
-
padding: 16px;
|
|
786
|
-
}
|
|
787
|
-
.hero h1 {
|
|
788
|
-
font-size: clamp(2rem, 16vw, 3.6rem);
|
|
789
|
-
}
|
|
790
|
-
.brand-lockup {
|
|
791
|
-
align-items: flex-start;
|
|
792
|
-
}
|
|
793
|
-
.logo-badge {
|
|
794
|
-
width: 48px;
|
|
795
|
-
height: 48px;
|
|
796
|
-
}
|
|
797
|
-
.brand-icon {
|
|
798
|
-
width: 40px;
|
|
799
|
-
height: 40px;
|
|
800
|
-
}
|
|
801
|
-
.tabs {
|
|
802
|
-
width: 100%;
|
|
803
|
-
}
|
|
804
|
-
.tab {
|
|
805
|
-
flex: 1;
|
|
806
|
-
min-width: 0;
|
|
807
|
-
}
|
|
204
|
+
.headline-grid, .control-grid { grid-template-columns: 1fr; }
|
|
205
|
+
.headline-grid > .card + .card, .control-grid > * + * { border-left: 0; padding-left: 0; }
|
|
206
|
+
.field-grid, .info-grid { grid-template-columns: 1fr; }
|
|
207
|
+
.runtime-strip, .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
|
|
208
|
+
.hero { flex-direction: column; align-items: flex-start; padding: 12px 0; }
|
|
808
209
|
}
|
|
809
210
|
@media (max-width: 560px) {
|
|
810
|
-
.
|
|
811
|
-
.metrics {
|
|
812
|
-
|
|
813
|
-
}
|
|
211
|
+
.shell { padding: 0 16px 24px; }
|
|
212
|
+
.runtime-strip, .metrics { grid-template-columns: 1fr; }
|
|
213
|
+
.mode-toggle, .tabs { width: 100%; }
|
|
214
|
+
.mode-btn, .tab { flex: 1; }
|
|
814
215
|
}
|
|
815
216
|
</style>
|
|
816
217
|
</head>
|