-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyles.css
More file actions
663 lines (600 loc) · 40.1 KB
/
Copy pathstyles.css
File metadata and controls
663 lines (600 loc) · 40.1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
:root {
/* ══ nullxx — flat neumorphic surface, single locked teal accent ══
Real values live in tokens.css (loaded before this file). This
block only maps the legacy variable names the rest of this file
(and every markup class app.js already emits) still reads, onto
the locked nullxx tokens — retinting the whole app without
touching every individual rule.
--bg-grouped / --bg-tertiary are a step-darker tint derived from
the locked shadow colour (not a new colour): surface.base and
surface.card are the same #e6e9ee in tokens.json, so on their own
a "grouped" chip or an input track would be invisible against the
page. The tint gives sunken/selected surfaces just enough
definition; actual depth still comes from the locked emboss
shadows below, not from colour contrast. Relative order is
preserved: elevated < grouped < tertiary. */
--bg: var(--colour-surface-base);
--surface: var(--colour-surface-card);
--surface-raised: var(--colour-surface-card);
--surface-hover: var(--colour-surface-card);
--ink-primary: var(--colour-text-primary);
--ink-secondary: var(--colour-text-secondary);
--border: var(--colour-border-hairline);
--accent: var(--colour-accent-teal);
--accent-2: var(--colour-accent-teal-light);
--accent-gradient: linear-gradient(135deg, var(--accent), var(--accent-2));
--accent-ink: #ffffff;
--accent-glow: 0 4px 12px color-mix(in srgb, var(--accent) 35%, transparent);
--card-shadow: var(--shadow-card-raised);
--card-inset: var(--shadow-card-inset);
--card-glow: var(--shadow-card-raised);
/* legacy aliases — see note above */
--bg-elevated: var(--colour-surface-base);
--bg-grouped: color-mix(in srgb, var(--colour-surface-base) 88%, var(--colour-shadow-dark) 12%);
--bg-tertiary: color-mix(in srgb, var(--colour-surface-base) 78%, var(--colour-shadow-dark) 22%);
--separator: var(--border);
--separator-op: color-mix(in srgb, var(--border) 55%, transparent);
--label: var(--ink-primary);
--label-2: var(--ink-secondary);
--label-3: color-mix(in srgb, var(--ink-secondary) 78%, transparent);
--label-4: color-mix(in srgb, var(--ink-secondary) 45%, transparent);
--fill: var(--ink-secondary);
--blue: var(--accent);
/* status/signal colors keep their own hues — semantic meaning (good/bad,
online/offline), not brand accent, so they don't move with the theme.
Not in tokens.json (an open decision per the design system README) —
reused as-is, already proven legible on a light surface. */
--green: #28c840;
--red: #ff3b30;
--amber: #ff9500;
--teal: var(--accent);
--purple: #a233d6;
--bubble-out: var(--accent-gradient);
--bubble-in: var(--bg-grouped);
--tick-blue: var(--accent);
--sig-ex: var(--green);
--sig-gd: #8bc34a;
--sig-ok: var(--amber);
--sig-bad: var(--red);
--sidebar-w: 300px;
--map-w: 340px;
}
*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; -webkit-font-smoothing:antialiased; }
html, body { height:100vh; overflow:hidden; background:var(--bg); color:var(--label); font-family:var(--font-family-base); font-size:14px; }
/* ── MATERIAL ICONS ── */
.icon {
font-family:'Material Symbols Rounded';
font-weight:300; font-style:normal; font-size:20px;
line-height:1; letter-spacing:normal; text-transform:none;
display:inline-flex; align-items:center; justify-content:center;
white-space:nowrap; word-wrap:normal; direction:ltr;
font-variation-settings:'FILL' 0, 'wght' 300, 'GRAD' 0, 'opsz' 24;
user-select:none; flex-shrink:0;
}
.icon.filled { font-variation-settings:'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 24; }
.icon.sm { font-size:16px; }
.icon.lg { font-size:24px; }
.icon.xl { font-size:32px; }
/* ── LAYOUT ── */
.shell { display:flex; height:100vh; overflow:hidden; }
/* ── CONVERSATION COLUMN ── */
.status-dot { width:8px; height:8px; border-radius:50%; background:var(--label-4); flex-shrink:0; transition:all .3s; }
.status-dot.live { background:var(--green); box-shadow:0 0 6px var(--green); animation:pulse 2s infinite; }
.status-dot.connecting { background:var(--amber); animation:pulse .5s infinite; }
.status-dot.reconnecting { background:var(--amber); animation:pulse .3s infinite; }
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:.35} }
.status-text { font-size:12px; color:var(--label-2); flex:1; }
.uptime-text { font-size:11px; color:var(--label-3); font-variant-numeric:tabular-nums; font-family:'JetBrains Mono',ui-monospace,monospace; }
/* Connect form */
.conn-form { padding:10px 12px; border-bottom:1px solid var(--separator); flex-shrink:0; display:flex; gap:8px; align-items:center; }
.conn-ip { flex:1; background:var(--bg-grouped); border:none; border-radius:var(--radius-control); color:var(--label); font-size:13px; font-family:inherit; padding:8px 11px; outline:none; min-width:0; box-shadow:var(--card-inset); }
.conn-ip::placeholder { color:var(--label-3); }
.btn-connect { padding:8px 14px; border-radius:var(--radius-control); border:none; background:var(--accent-gradient); color:var(--accent-ink); font-size:13px; font-weight:600; font-family:inherit; cursor:pointer; white-space:nowrap; transition:opacity .15s, box-shadow .2s; flex-shrink:0; box-shadow:var(--shadow-control-raised); }
.btn-connect:hover { opacity:.9; box-shadow:var(--accent-glow); }
.btn-connect.live { background:var(--red); }
/* Filter */
.filter-seg { display:flex; margin:8px 12px; background:var(--bg-grouped); border-radius:var(--radius-control); padding:2px; flex-shrink:0; box-shadow:var(--card-inset); }
.fseg { flex:1; padding:6px 0; text-align:center; font-size:12px; font-weight:500; color:var(--label-2); border-radius:10px; border:none; background:transparent; cursor:pointer; transition:all .18s; }
.fseg.active { background:var(--surface); color:var(--label); font-weight:600; box-shadow:var(--shadow-control-raised); }
/* Chat list */
.chat-list { flex:1; overflow-y:auto; }
.chat-list::-webkit-scrollbar { width:4px; }
.chat-list::-webkit-scrollbar-thumb { background:var(--separator); border-radius:2px; }
.list-hdr { padding:5px 16px 3px; font-size:11px; font-weight:600; color:var(--label-3); text-transform:uppercase; letter-spacing:.5px; display:flex; justify-content:space-between; align-items:center; position:sticky; top:0; background:var(--bg-grouped); z-index:2; }
.list-hdr-count { font-size:11px; color:var(--label-3); font-weight:400; }
/* Chat row */
.chat-row { display:flex; align-items:center; gap:10px; padding:9px 12px; cursor:pointer; transition:background .1s; border-bottom:1px solid var(--separator-op); position:relative; }
.chat-row:hover { background:var(--bg-grouped); }
.chat-row.active { background:var(--bg-grouped); }
.chat-row:active { background:var(--bg-tertiary); }
.avatar { width:42px; height:42px; border-radius:50%; flex-shrink:0; display:flex; align-items:center; justify-content:center; font-size:13px; font-weight:700; position:relative; }
.avatar.ch-av { background:var(--accent)22; border:1.5px solid var(--accent)55; color:var(--accent); }
.avatar.node-av { background:var(--bg-tertiary); color:var(--label-2); border:1.5px solid var(--separator); font-family:'JetBrains Mono',ui-monospace,monospace; font-size:11px; }
.avatar.me-av { background:var(--green)22; border:1.5px solid var(--green)55; color:var(--green); }
.avatar.offline-av { opacity:.45; }
.online-ring::after { content:''; position:absolute; bottom:1px; right:1px; width:11px; height:11px; border-radius:50%; background:var(--green); border:2px solid var(--bg-elevated); }
.row-info { flex:1; min-width:0; }
.row-name { font-size:14px; font-weight:600; color:var(--label); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; display:flex; align-items:center; gap:5px; }
.row-name .you-badge { font-size:10px; font-weight:500; color:var(--green); background:var(--green)18; padding:1px 5px; border-radius:4px; }
.row-preview { font-size:12px; color:var(--label-2); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; margin-top:2px; display:flex; align-items:center; gap:4px; }
.row-meta { display:flex; flex-direction:column; align-items:flex-end; gap:4px; flex-shrink:0; }
.row-time { font-size:11px; color:var(--label-3); }
.unread-badge { background:var(--accent); color:#fff; font-size:11px; font-weight:600; border-radius:10px; padding:1px 6px; min-width:18px; text-align:center; }
.sig-dot { width:7px; height:7px; border-radius:50%; flex-shrink:0; }
/* Node detail popover (shared by Peers + Map) — a floating modal, not a layout column */
.nd-modal { width:380px; max-width:90vw; }
.nd-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:6px; margin-bottom:8px; }
.nd-stat { background:var(--bg-grouped); border-radius:var(--radius-control); padding:7px 9px; box-shadow:var(--card-inset); }
.nd-sl { font-size:9px; text-transform:uppercase; letter-spacing:.6px; color:var(--label-3); font-weight:600; display:block; }
.nd-sv { font-size:13px; font-weight:600; color:var(--label); display:block; margin-top:2px; font-variant-numeric:tabular-nums; font-family:'JetBrains Mono',ui-monospace,monospace; }
.nd-pos { font-size:11px; color:var(--label-2); background:var(--bg-grouped); border-radius:var(--radius-control); padding:6px 9px; margin-bottom:8px; font-variant-numeric:tabular-nums; font-family:'JetBrains Mono',ui-monospace,monospace; box-shadow:var(--card-inset); }
.nd-last { font-size:11px; color:var(--label-3); margin-bottom:8px; }
.nd-actions { display:flex; gap:6px; }
.nd-btn { flex:1; display:flex; align-items:center; justify-content:center; gap:5px; padding:8px 6px; border-radius:var(--radius-control); border:none; background:var(--bg-elevated); color:var(--label-2); font-size:12px; font-weight:600; font-family:inherit; cursor:pointer; transition:all .15s; box-shadow:var(--shadow-control-raised); }
.nd-btn:hover { box-shadow:var(--card-inset); color:var(--label); }
.nd-btn.primary { background:var(--accent); color:#fff; }
.nd-btn.primary:hover { opacity:.85; box-shadow:var(--shadow-control-raised); }
/* ── MAP PANEL ── */
.map-panel { display:flex; flex-direction:column; overflow:hidden; position:relative; min-width:0; flex:1; }
.map-pills { display:flex; gap:6px; }
.map-pill { background:var(--bg-grouped); border-radius:var(--radius-badge); padding:3px 9px; font-size:11px; color:var(--label-2); font-weight:500; display:flex; align-items:center; gap:4px; box-shadow:var(--card-inset); }
.map-pill .v { color:var(--label); font-weight:700; }
.map-body { flex:1; position:relative; min-height:0; display:flex; flex-direction:column; }
#map { flex:1; }
.leaflet-tile { filter:none; }
.leaflet-container { background:#e9e9eb; }
.leaflet-control-attribution { background:#ffffffe6!important; color:#3c3c4399!important; font-size:9px!important; border-radius:4px 0 0 0!important; }
.leaflet-control-attribution a { color:var(--accent)!important; }
.leaflet-control-zoom { border:none!important; margin:10px!important; }
.leaflet-control-zoom a { background:var(--surface)!important; color:var(--accent)!important; box-shadow:var(--shadow-control-raised)!important; border:none!important; border-radius:var(--radius-control)!important; width:30px!important; height:30px!important; line-height:30px!important; font-size:16px!important; margin-bottom:4px!important; display:block!important; }
.mesh-pin { display:flex; align-items:center; justify-content:center; border-radius:50%; border:2px solid; cursor:pointer; transition:transform .15s; }
.mesh-pin:hover { transform:scale(1.25); }
/* Leaflet tooltip override for legibility */
.leaflet-tooltip.mesh-lbl {
background:#ffffff;
border:1px solid var(--border);
color:var(--label);
padding:5px 10px;
border-radius:var(--radius-control);
font-family:var(--font-family-base);
font-size:12px;
font-weight:600;
white-space:nowrap;
box-shadow:var(--card-shadow);
letter-spacing:-.1px;
}
.leaflet-tooltip.mesh-lbl::before { display:none; }
.map-legend { position:absolute; bottom:12px; left:10px; z-index:450; background:var(--surface); border:none; border-radius:var(--radius-control); padding:10px 14px; box-shadow:var(--card-shadow); }
.ml-title { font-size:10px; text-transform:uppercase; letter-spacing:.6px; color:var(--label-3); font-weight:700; margin-bottom:8px; }
.ml-row { display:flex; align-items:center; gap:8px; font-size:12px; color:var(--label); font-weight:500; margin-bottom:5px; }
.ml-row:last-child { margin-bottom:0; }
.ml-dot { width:9px; height:9px; border-radius:50%; flex-shrink:0; }
/* ── CHAT PANEL ── */
.chat-panel {
display:flex; flex-direction:column; overflow:hidden; min-width:0;
background:var(--surface);
}
.chat-header { height:54px; background:var(--bg-elevated); padding:0 14px; border-bottom:1px solid var(--separator); display:flex; align-items:center; gap:10px; flex-shrink:0; }
.ch-avi { width:34px; height:34px; border-radius:50%; background:var(--bg-grouped); display:flex; align-items:center; justify-content:center; flex-shrink:0; box-shadow:var(--card-inset); }
.ch-info { flex:1; min-width:0; }
.ch-name { font-size:15px; font-weight:600; letter-spacing:-.2px; color:var(--label); }
.ch-sub { font-size:12px; color:var(--label-2); margin-top:1px; }
.stat-bar { display:flex; gap:6px; flex-wrap:wrap; }
.stat-chip { background:var(--bg-grouped); border-radius:8px; padding:2px 8px; font-size:11px; color:var(--label-2); font-weight:500; box-shadow:var(--card-inset); }
.stat-chip .v { color:var(--label); font-weight:600; }
/* Message feed */
.msg-feed { flex:1; overflow-y:auto; padding:12px 16px; display:flex; flex-direction:column; gap:2px; }
.msg-feed::-webkit-scrollbar { width:4px; }
.msg-feed::-webkit-scrollbar-thumb { background:var(--separator); border-radius:2px; }
/* Date divider */
.date-div { align-self:center; background:var(--bg-grouped); color:var(--label-2); font-size:12px; font-weight:500; padding:4px 12px; border-radius:var(--radius-badge); margin:8px 0; }
/* Empty state */
.msg-empty { flex:1; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:10px; color:var(--label-3); text-align:center; padding:24px; }
.msg-empty .icon { font-size:48px; color:var(--label-4); }
.msg-empty-title { font-size:16px; font-weight:600; color:var(--label-2); }
.msg-empty-sub { font-size:13px; color:var(--label-3); }
/* Message bubbles — Apple iMessage style */
.msg { display:flex; flex-direction:column; max-width:72%; animation:msgIn .18s ease; margin-bottom:2px; }
@keyframes msgIn { from{opacity:0;transform:translateY(3px)} to{opacity:1;transform:translateY(0)} }
.msg.out { align-self:flex-end; align-items:flex-end; }
.msg.in { align-self:flex-start; align-items:flex-start; }
.msg.sys-msg { align-self:center; max-width:85%; }
.bubble {
padding:8px 12px;
border-radius:18px;
position:relative;
line-height:1.45;
word-break:break-word;
}
/* Clean iMessage-style tails using border-radius, no pseudo-element triangle */
.msg.out .bubble {
background:var(--bubble-out);
color:var(--accent-ink); /* teal bubble reads better with white text/icons than dark ink */
border-bottom-right-radius:4px;
}
.msg.in .bubble {
background:var(--bubble-in);
color:var(--label);
border-bottom-left-radius:4px;
}
.msg.sys-msg .bubble {
background:transparent;
color:var(--label-3);
font-size:11px;
padding:3px 8px;
text-align:center;
}
.bubble-sender { font-size:12px; font-weight:600; color:var(--teal); margin-bottom:3px; display:block; }
.msg.out .bubble-sender { display:none; }
.bubble-text { font-size:15px; color:inherit; padding-bottom:14px; }
.msg.sys-msg .bubble-text { padding-bottom:0; }
.bubble-footer {
position:absolute; bottom:5px; right:10px;
display:flex; align-items:center; gap:3px;
}
.bubble-time { font-size:10px; color:rgba(255,255,255,.8); white-space:nowrap; }
.msg.in .bubble-time { color:var(--label-3); }
.msg.sys-msg .bubble-footer { display:none; }
/* Tick marks */
.ticks { display:flex; align-items:center; }
.ticks .icon { font-size:14px; }
.ticks.pending .icon { color:rgba(255,255,255,.5); }
.ticks.sent .icon { color:rgba(255,255,255,.7); }
.ticks.ack .icon { color:var(--amber); }
.ticks.ack-final .icon { color:rgba(255,255,255,.7); }
.ticks.nack .icon { color:var(--red); }
/* Status line below bubble */
.msg-status-line { font-size:11px; margin-top:3px; display:flex; align-items:center; gap:4px; cursor:pointer; width:fit-content; }
.msg-status-line:hover { text-decoration:underline; }
.msg-status-line.pending { color:var(--label-3); }
.msg-status-line.sent { color:var(--label-3); }
.msg-status-line.ack { color:var(--amber); }
.msg-status-line.ack-final { color:var(--label-3); }
.msg-status-line.nack,
.msg-status-line.maxretransmit { color:var(--red); }
.msg-status-line .icon { font-size:13px; }
/* Incoming signal info */
.bubble-sig { font-size:10px; color:var(--label-3); margin-top:3px; }
/* Compose */
.compose { padding:8px 12px 10px; background:var(--bg-elevated); border-top:1px solid var(--separator); flex-shrink:0; }
.compose-dest { font-size:11px; color:var(--label-3); margin-bottom:6px; display:flex; align-items:center; gap:4px; }
.compose-dest strong { color:var(--label-2); }
.compose-row { display:flex; gap:8px; align-items:flex-end; }
.compose-field { flex:1; background:var(--bg-grouped); border-radius:var(--radius-badge); display:flex; align-items:center; padding:2px 4px 2px 14px; gap:4px; min-height:38px; box-shadow:var(--card-inset); }
.compose-inp { flex:1; background:transparent; border:none; color:var(--label); font-size:15px; font-family:inherit; outline:none; }
.compose-inp::placeholder { color:var(--label-3); }
.compose-inp:disabled { opacity:.4; }
.btn-send { width:36px; height:36px; border-radius:50%; border:none; background:var(--accent-gradient); color:var(--accent-ink); cursor:pointer; display:flex; align-items:center; justify-content:center; transition:opacity .15s, box-shadow .2s; flex-shrink:0; box-shadow:var(--shadow-control-raised); }
.btn-send:hover { opacity:.9; box-shadow:var(--accent-glow); }
.btn-send:disabled { background:var(--bg-tertiary); box-shadow:none; cursor:not-allowed; }
.btn-send:disabled .icon { color:var(--label-3); }
/* Overlays */
.ov { position:fixed; inset:0; background:color-mix(in srgb, var(--ink-primary) 45%, transparent); z-index:1000; display:none; align-items:center; justify-content:center; }
.ov.show { display:flex; }
.modal {
background:var(--surface);
border:none;
border-radius:var(--radius-card);
max-height:80vh;
overflow:hidden;
display:flex;
flex-direction:column;
box-shadow:var(--card-shadow);
}
.mhd { padding:14px 18px; border-bottom:1px solid var(--separator); display:flex; align-items:center; gap:10px; flex-shrink:0; }
.mt { font-size:15px; font-weight:600; flex:1; }
.mx { background:var(--bg-grouped); border:none; color:var(--label-2); width:28px; height:28px; border-radius:50%; cursor:pointer; display:flex; align-items:center; justify-content:center; }
.mx:hover { background:var(--bg-tertiary); color:var(--label); }
.mbd { overflow-y:auto; padding:14px 18px; flex:1; }
pre.jp { font-family:'JetBrains Mono',ui-monospace,'SF Mono',monospace; font-size:11px; color:var(--label-2); white-space:pre-wrap; word-break:break-word; line-height:1.7; }
pre.jp .k{color:var(--teal)} pre.jp .s{color:var(--green)} pre.jp .n{color:var(--amber)} pre.jp .b{color:var(--purple)}
/* Toasts */
.toasts { position:fixed; bottom:80px; left:50%; transform:translateX(-50%); z-index:2000; display:flex; flex-direction:column; align-items:center; gap:6px; pointer-events:none; }
.toast { background:var(--surface); border:none; border-radius:var(--radius-control); padding:9px 16px; font-size:13px; font-weight:500; color:var(--label); box-shadow:var(--card-shadow); animation:tIn .2s ease; display:flex; align-items:center; gap:8px; }
.toast.ok { box-shadow:var(--card-shadow), inset 3px 0 0 var(--green); }
.toast.err { box-shadow:var(--card-shadow), inset 3px 0 0 var(--red); }
.toast.wrn { box-shadow:var(--card-shadow), inset 3px 0 0 var(--amber); }
@keyframes tIn { from{opacity:0;transform:translateY(6px)} to{opacity:1;transform:translateY(0)} }
@keyframes spin { to{transform:rotate(360deg)} }
.spinner { width:14px; height:14px; border:2px solid var(--separator); border-top-color:var(--accent); border-radius:50%; animation:spin .7s linear infinite; display:inline-block; }
/* Icon button */
.icon-btn { width:32px; height:32px; border-radius:50%; border:none; background:transparent; color:var(--label-2); cursor:pointer; display:flex; align-items:center; justify-content:center; transition:background .15s; flex-shrink:0; }
.icon-btn:hover { background:var(--bg-grouped); color:var(--label); }
/* ── PORT SELECTOR ── */
.port-sel {
display: flex; align-items: center; gap: 10px;
padding: 6px 12px 8px;
border-bottom: 1px solid var(--separator);
flex-shrink: 0;
}
.port-label {
font-size: 11px; font-weight: 600; color: var(--label-3);
text-transform: uppercase; letter-spacing: .5px; flex-shrink: 0;
}
.port-opt {
display: flex; align-items: center; gap: 5px;
cursor: pointer; font-size: 12px; font-weight: 500; color: var(--label-2);
user-select: none;
}
.port-opt input[type=radio] {
appearance: none; -webkit-appearance: none;
width: 14px; height: 14px; border-radius: 50%;
border: 1.5px solid var(--fill);
background: transparent; cursor: pointer;
transition: all .15s; flex-shrink: 0;
position: relative;
}
.port-opt input[type=radio]:checked {
border-color: var(--accent);
background: var(--accent);
box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent);
}
.port-opt input[type=radio]:checked::after {
content: ''; position: absolute;
width: 5px; height: 5px; border-radius: 50%;
background: #fff; top: 50%; left: 50%;
transform: translate(-50%, -50%);
}
.port-opt:hover input[type=radio]:not(:checked) { border-color: var(--label-2); }
.port-opt span { font-family: 'JetBrains Mono', ui-monospace, monospace; }
/* ── MAP NODE STYLES ── */
@keyframes nodePulse {
0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--green) 40%, transparent), 0 0 8px color-mix(in srgb, var(--green) 55%, transparent); }
70% { box-shadow: 0 0 0 10px transparent, 0 0 12px color-mix(in srgb, var(--green) 27%, transparent); }
100% { box-shadow: 0 0 0 0 transparent, 0 0 8px color-mix(in srgb, var(--green) 55%, transparent); }
}
@keyframes nodePulseBlue {
0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 40%, transparent), 0 0 8px color-mix(in srgb, var(--accent) 55%, transparent); }
70% { box-shadow: 0 0 0 10px transparent, 0 0 12px color-mix(in srgb, var(--accent) 27%, transparent); }
100% { box-shadow: 0 0 0 0 transparent, 0 0 8px color-mix(in srgb, var(--accent) 55%, transparent); }
}
.mesh-pin {
border-radius: 50% !important;
cursor: pointer;
transition: transform .15s;
display: flex !important;
align-items: center;
justify-content: center;
}
.mesh-pin:hover { transform: scale(1.3) !important; }
.mesh-pin.online { animation: nodePulse 2.5s ease-in-out infinite; }
.mesh-pin.me-pin { animation: nodePulseBlue 2.5s ease-in-out infinite; }
.mesh-pin.offline { opacity: .45; }
/* Permanent label on map */
.node-map-label {
background: var(--surface);
border: 1px solid var(--border);
color: var(--label);
padding: 2px 7px;
border-radius: var(--radius-control);
font-family: var(--font-family-base);
font-size: 11px;
font-weight: 600;
white-space: nowrap;
pointer-events: none;
box-shadow: var(--card-shadow);
letter-spacing: -.1px;
}
.leaflet-tooltip.node-map-label { box-shadow: var(--card-shadow); }
.leaflet-tooltip.node-map-label::before { display: none; }
/* Channels list in channels tab */
.channels-list { flex: 1; overflow-y: auto; padding: 8px; }
.channels-list::-webkit-scrollbar { width: 4px; }
.channels-list::-webkit-scrollbar-thumb { background: var(--separator); border-radius: 2px; }
.channel-row {
display: flex; align-items: center; gap: 10px;
padding: 10px 12px; border-radius: 10px; cursor: pointer;
transition: background .12s; margin-bottom: 2px;
}
.channel-row:hover { background: var(--bg-grouped); }
.channel-row.active { background: var(--bg-grouped); box-shadow: var(--card-inset); }
.ch-row-icon {
width: 38px; height: 38px; border-radius: 50%;
background: var(--accent)18; border: 1.5px solid var(--accent)44;
display: flex; align-items: center; justify-content: center;
flex-shrink: 0;
}
.ch-row-icon .icon { font-size: 18px; color: var(--accent); }
.ch-row-info { flex: 1; min-width: 0; }
.ch-row-name { font-size: 14px; font-weight: 600; color: var(--label); }
.ch-row-sub { font-size: 12px; color: var(--label-3); margin-top: 1px; }
.ch-row-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.ch-row-badge { background: var(--accent); color: #fff; font-size: 11px; font-weight: 600; border-radius: 8px; padding: 1px 6px; }
.ch-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; flex: 1; color: var(--label-3); font-size: 13px; gap: 8px; text-align: center; padding: 24px; }
.ch-empty .icon { font-size: 36px; color: var(--label-4); }
/* ══════════════════════════════════════════════════════════════════
NAVIGATION SHELL
══════════════════════════════════════════════════════════════════ */
:root {
--nav-w: 252px;
--sp-1: var(--space-xs); --sp-2: var(--space-sm); --sp-3: var(--space-md); --sp-4: var(--space-lg); --sp-5: var(--space-2xl); --sp-6: var(--space-3xl);
--radius: var(--radius-control);
}
.nav {
width:var(--nav-w); flex:0 0 var(--nav-w);
display:flex; flex-direction:column;
background:var(--surface);
border-right:1px solid var(--separator);
overflow:hidden;
}
/* Identity */
.nav-identity { display:flex; align-items:center; gap:10px; padding:var(--sp-3) var(--sp-4); border-bottom:1px solid var(--separator); }
.nav-id-icon { width:36px; height:36px; border-radius:var(--radius-control); background:var(--accent-gradient); display:flex; align-items:center; justify-content:center; flex-shrink:0; box-shadow:var(--shadow-control-raised); }
.nav-id-text { flex:1; min-width:0; }
.nav-id-name { font-size:14px; font-weight:700; letter-spacing:-.2px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.nav-id-sub { font-size:11px; color:var(--label-3); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; margin-top:1px; }
/* Connection status button */
.nav-status { display:flex; align-items:center; gap:var(--sp-2); width:100%; padding:10px var(--sp-4); background:transparent; border:none; border-bottom:1px solid var(--separator); cursor:pointer; text-align:left; font-family:inherit; transition:background .12s; }
.nav-status:hover { background:var(--bg-grouped); }
.nav-status-chev { color:var(--label-3); }
/* Quick connect panel */
.nav-conn { display:none; border-bottom:1px solid var(--separator); }
.nav-conn.open { display:block; }
.nav-conn .conn-form { border-bottom:none; padding:10px 12px 4px; }
.nav-conn .port-sel { border-bottom:none; }
/* Nav group */
.nav-group { flex:1; overflow-y:auto; padding:var(--sp-3) var(--sp-2); }
.nav-group::-webkit-scrollbar { width:4px; }
.nav-group::-webkit-scrollbar-thumb { background:var(--separator); border-radius:2px; }
.nav-group-title { font-size:10px; font-weight:700; text-transform:uppercase; letter-spacing:.7px; color:var(--label-3); padding:var(--sp-2) 10px var(--sp-1); }
.nav-item { display:flex; align-items:center; gap:10px; width:100%; padding:9px 10px; margin-bottom:2px; border:none; border-radius:var(--radius-control); background:transparent; color:var(--label-2); font-family:inherit; font-size:13.5px; font-weight:500; cursor:pointer; transition:background .12s, color .12s, box-shadow .12s; text-align:left; outline:none; }
.nav-item:hover { background:var(--bg-grouped); color:var(--label); }
.nav-item:focus-visible { box-shadow:0 0 0 2px var(--accent); }
.nav-item.active { background:var(--surface); color:var(--accent); font-weight:600; box-shadow:var(--shadow-control-raised); }
.nav-item.active .icon { color:var(--accent); }
.nav-item-label { flex:1; }
.nav-item-count { font-size:11px; color:var(--label-3); font-variant-numeric:tabular-nums; font-family:'JetBrains Mono',ui-monospace,monospace; }
/* Bottom rail */
.nav-rail { display:flex; align-items:center; gap:2px; padding:var(--sp-2) 10px; border-top:1px solid var(--separator); }
.rail-btn { width:32px; height:32px; border-radius:9px; border:none; background:transparent; color:var(--label-3); cursor:pointer; display:flex; align-items:center; justify-content:center; transition:all .12s; outline:none; }
.rail-btn:hover { background:var(--bg-grouped); color:var(--label); }
.rail-btn:focus-visible { box-shadow:0 0 0 2px var(--accent); }
.rail-btn.active { color:var(--accent); }
.rail-spacer { flex:1; }
/* ══ MAIN / PAGES ══ */
.main { flex:1; min-width:0; display:flex; flex-direction:column; overflow:hidden; background:var(--bg); }
.page { display:none; flex-direction:column; flex:1; min-height:0; overflow:hidden; }
.page.active { display:flex; }
.page-hdr {
display:flex; align-items:center; gap:var(--sp-3); padding:var(--sp-3) var(--sp-5);
border-bottom:1px solid var(--separator);
background:var(--bg-elevated);
flex-shrink:0; min-height:64px;
}
.page-hdr-icon { color:var(--label-3); font-size:22px; }
.page-hdr-text { flex:1; min-width:0; }
.page-title { font-size:17px; font-weight:700; letter-spacing:-.3px; }
.page-sub { font-size:12px; color:var(--label-3); margin-top:2px; }
.page-body { flex:1; min-height:0; display:flex; overflow:hidden; }
.page-body.split > .conv-col { flex:0 0 300px; }
/* Pages that stack a tab bar above scrolling content (Config) need a column
flow — without this the tab bar is a flex row item and stretches to the
full page height, ballooning each button. */
.page-body.stacked { flex-direction:column; }
.conv-col {
display:flex; flex-direction:column; min-width:0;
background:var(--surface);
border-right:1px solid var(--separator);
overflow:hidden;
}
.conv-new { display:flex; align-items:center; justify-content:center; gap:6px; margin:var(--sp-2); padding:9px; border:1px dashed var(--separator); border-radius:var(--radius-control); background:transparent; color:var(--label-2); font-family:inherit; font-size:12.5px; font-weight:600; cursor:pointer; transition:all .12s; }
.conv-new:hover { border-color:var(--accent); color:var(--accent); }
.chat-panel { flex:1 1 0; }
.filter-seg.compact { margin:0; width:180px; }
/* Empty states */
.page-empty, .list-empty { flex:1; display:flex; flex-direction:column; align-items:center; justify-content:center; text-align:center; gap:var(--sp-2); padding:var(--sp-6) var(--sp-5); margin:auto; max-width:460px; }
.page-empty .icon, .list-empty .icon { color:var(--label-4); }
.page-empty-title, .list-empty-title { font-size:15px; font-weight:600; color:var(--label-2); }
.page-empty-sub, .list-empty-sub { font-size:13px; color:var(--label-3); line-height:1.6; }
.link-btn { background:none; border:none; color:var(--accent); font:inherit; cursor:pointer; padding:0; text-decoration:underline; }
/* ══ PEERS ══ */
.peers-scroll { flex:1; overflow-y:auto; padding:var(--sp-5); display:flex; }
.peers-scroll::-webkit-scrollbar { width:6px; }
.peers-scroll::-webkit-scrollbar-thumb { background:var(--separator); border-radius:3px; }
.peer-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(280px,1fr)); gap:var(--sp-3); width:100%; align-content:start; }
.peer-card {
background:var(--surface);
border:none; border-radius:var(--radius-card);
padding:var(--sp-3) var(--sp-4) var(--sp-4); cursor:pointer;
box-shadow:var(--card-shadow);
transition:box-shadow .2s ease, transform .12s;
}
.peer-card:hover { box-shadow:var(--card-shadow), 0 0 0 1px color-mix(in srgb, var(--accent) 25%, transparent); transform:translateY(-1px); }
.peer-card.selected { box-shadow:var(--card-shadow), 0 0 0 2px var(--accent); }
.peer-head { display:flex; align-items:center; gap:10px; }
.peer-title { flex:1; min-width:0; }
.peer-name { font-size:14px; font-weight:600; display:flex; align-items:center; gap:6px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.peer-id { font-size:11px; color:var(--label-3); font-family:'JetBrains Mono',ui-monospace,monospace; margin-top:2px; }
.peer-state { display:flex; align-items:center; gap:5px; font-size:11px; color:var(--label-2); flex-shrink:0; }
.peer-facts { display:grid; grid-template-columns:1fr 1fr; gap:var(--sp-1) var(--sp-3); margin:var(--sp-3) 0; }
.peer-fact { display:flex; justify-content:space-between; gap:var(--sp-2); font-size:12px; padding:3px 0; border-bottom:1px solid var(--separator-op); }
.pf-l { color:var(--label-3); }
.pf-v { color:var(--label); font-weight:600; font-variant-numeric:tabular-nums; font-family:'JetBrains Mono',ui-monospace,monospace; text-align:right; }
.peer-actions { display:flex; gap:6px; }
/* ══ CONFIG ══ */
.cfg-tabs { display:flex; flex-wrap:wrap; align-items:center; gap:0; padding:0 var(--sp-5); border-bottom:1px solid var(--separator); flex-shrink:0; overflow-x:auto; }
.cfg-tab { padding:11px 2px; margin-right:22px; border:none; border-bottom:2px solid transparent; background:transparent; color:var(--label-3); font-family:inherit; font-size:12.5px; font-weight:600; cursor:pointer; transition:color .12s, border-color .12s; outline:none; white-space:nowrap; }
.cfg-tab:hover { color:var(--label-2); }
.cfg-tab:focus-visible { color:var(--label); }
.cfg-tab.active { color:var(--accent); border-bottom-color:var(--accent); }
/* Module sub-tabs — one row of pills inside the Module tab */
.cfg-subtabs { display:flex; flex-wrap:wrap; gap:6px; margin-bottom:2px; }
.cfg-subtab { padding:5px 11px; border:1px solid var(--separator); border-radius:999px; background:var(--surface); color:var(--label-3); font-family:inherit; font-size:11.5px; font-weight:600; cursor:pointer; transition:color .12s, border-color .12s, background .12s; outline:none; white-space:nowrap; }
.cfg-subtab:hover { color:var(--label-2); border-color:var(--label-3); }
.cfg-subtab.active { color:#fff; background:var(--accent); border-color:var(--accent); }
.cfg-scroll { flex:1; overflow-y:auto; display:flex; }
.cfg-scroll::-webkit-scrollbar { width:6px; }
.cfg-scroll::-webkit-scrollbar-thumb { background:var(--separator); border-radius:3px; }
.cfg-wrap { width:100%; max-width:760px; margin:0 auto; padding:var(--sp-5); display:flex; flex-direction:column; gap:var(--sp-4); }
.card {
background:var(--surface);
border:none;
border-radius:var(--radius-card);
box-shadow:var(--card-shadow);
overflow:hidden;
transition:box-shadow .2s ease, transform .2s ease;
}
.card:hover { box-shadow:var(--card-shadow), 0 0 0 1px color-mix(in srgb, var(--accent) 20%, transparent); }
.card-hd { display:flex; align-items:flex-start; gap:var(--sp-3); padding:var(--sp-4); border-bottom:1px solid var(--separator); }
.card-title { font-size:14.5px; font-weight:700; letter-spacing:-.2px; }
.card-desc { font-size:12.5px; color:var(--label-3); margin-top:3px; line-height:1.5; }
.card-body { padding:var(--sp-2) var(--sp-4) var(--sp-3); }
.pill-soon { flex-shrink:0; font-size:10px; font-weight:700; letter-spacing:.5px; text-transform:uppercase; color:var(--amber); background:var(--amber)22; border:1px solid var(--amber)44; border-radius:20px; padding:3px 9px; }
.cfg-row { display:flex; align-items:center; gap:var(--sp-4); padding:var(--sp-3) 0; border-bottom:1px solid var(--separator-op); }
.cfg-row:last-child { border-bottom:none; }
.cfg-row-text { flex:1; min-width:0; }
.cfg-label { font-size:13.5px; font-weight:600; }
.cfg-help { font-size:12px; color:var(--label-3); margin-top:2px; line-height:1.5; }
.cfg-control { display:flex; align-items:center; gap:6px; flex-shrink:0; }
.cfg-input, .cfg-select { background:var(--bg-grouped); border:none; border-radius:var(--radius-control); color:var(--label); font-family:inherit; font-size:13px; padding:7px 10px; outline:none; min-width:0; box-shadow:var(--card-inset); }
.cfg-input:focus, .cfg-select:focus { box-shadow:var(--card-inset), 0 0 0 2px var(--accent); }
.cfg-input.num { width:96px; text-align:right; font-variant-numeric:tabular-nums; font-family:'JetBrains Mono',ui-monospace,monospace; }
.cfg-input[type=text] { width:200px; }
.cfg-select { min-width:180px; }
.cfg-unit { font-size:11px; color:var(--label-3); }
.cfg-note { font-size:12px; color:var(--label-3); line-height:1.6; }
.cfg-actions { display:flex; align-items:center; gap:var(--sp-2); }
.cfg-status { flex:1; font-size:12px; color:var(--label-3); }
.cfg-status.dirty { color:var(--amber); font-weight:600; }
.toggle { width:44px; height:26px; border-radius:13px; border:none; background:var(--bg-tertiary); position:relative; cursor:pointer; transition:background .18s; flex-shrink:0; box-shadow:var(--card-inset); }
.toggle .knob { position:absolute; top:3px; left:3px; width:20px; height:20px; border-radius:50%; background:var(--surface); transition:transform .18s; box-shadow:var(--shadow-control-raised); }
.toggle.on { background:var(--accent); }
.toggle.on .knob { transform:translateX(18px); }
/* ══ SETTINGS ══ */
.btn-primary { display:flex; align-items:center; gap:6px; padding:8px 14px; border-radius:var(--radius-control); border:none; background:var(--accent-gradient); color:var(--accent-ink); font-family:inherit; font-size:13px; font-weight:600; cursor:pointer; transition:opacity .15s, box-shadow .2s; box-shadow:var(--shadow-control-raised); }
.btn-primary:hover { opacity:.9; box-shadow:var(--accent-glow); }
.btn-ghost { display:flex; align-items:center; gap:6px; padding:7px 12px; border-radius:var(--radius-control); border:none; background:var(--bg-elevated); color:var(--label-2); font-family:inherit; font-size:12.5px; font-weight:600; cursor:pointer; transition:all .15s; flex-shrink:0; box-shadow:var(--shadow-control-raised); }
.btn-ghost:hover { color:var(--label); box-shadow:var(--card-inset); }
/* ══ FIRST RUN ══ */
.ov.first-run { background:color-mix(in srgb, var(--ink-primary) 55%, transparent); }
.fr-card {
width:440px; max-width:92vw;
background:var(--surface);
border:none; border-radius:var(--radius-card);
padding:var(--sp-6) var(--sp-5) var(--sp-5);
box-shadow:var(--card-shadow);
text-align:center;
}
.fr-icon { width:56px; height:56px; margin:0 auto var(--sp-4); border-radius:var(--radius-control); background:var(--accent-gradient); display:flex; align-items:center; justify-content:center; box-shadow:var(--shadow-control-raised); }
.fr-title { font-size:19px; font-weight:700; letter-spacing:-.4px; }
.fr-body { font-size:13px; color:var(--label-2); line-height:1.6; margin:var(--sp-2) 0 var(--sp-5); }
.fr-field { text-align:left; margin-bottom:var(--sp-3); }
.fr-label { display:block; font-size:11px; font-weight:700; text-transform:uppercase; letter-spacing:.6px; color:var(--label-3); margin-bottom:5px; }
.fr-input { width:100%; background:var(--bg-grouped); border:none; border-radius:var(--radius-control); color:var(--label); font-family:inherit; font-size:15px; padding:10px 12px; outline:none; box-shadow:var(--card-inset); }
.fr-input:focus { box-shadow:var(--card-inset), 0 0 0 2px var(--accent); }
.port-sel.bare { border-bottom:none; padding:0; gap:var(--sp-4); }
.fr-cta { width:100%; margin-top:var(--sp-3); padding:12px; border:none; border-radius:var(--radius-control); background:var(--accent-gradient); color:var(--accent-ink); font-family:inherit; font-size:15px; font-weight:600; cursor:pointer; display:flex; align-items:center; justify-content:center; gap:8px; transition:opacity .15s, box-shadow .2s; box-shadow:var(--shadow-control-raised); }
.fr-cta:hover { opacity:.92; box-shadow:var(--accent-glow); }
.fr-cta:disabled { opacity:.6; cursor:default; }
.fr-skip { margin-top:var(--sp-2); background:none; border:none; color:var(--label-3); font-family:inherit; font-size:12.5px; cursor:pointer; }
.fr-skip:hover { color:var(--label-2); }
/* ══ RESPONSIVE ══ */
@media (max-width: 1180px) {
.page-body.split > .conv-col { flex:0 0 260px; }
}
@media (max-width: 980px) {
.nav { --nav-w:210px; }
.page-hdr .stat-bar { display:none; }
}
/* Nav item unread badges */
.tab-badge { background:var(--red); color:#fff; font-size:10px; font-weight:700; border-radius:9px; padding:1px 6px; min-width:18px; text-align:center; font-family:inherit; }