Repository navigation
Expand file tree
/
Copy pathstyle.css
More file actions
359 lines (336 loc) · 23 KB
/
Copy pathstyle.css
File metadata and controls
359 lines (336 loc) · 23 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
html, body, #map {
height: 100%;
margin: 0;
padding: 0;
}
body {
background: #222;
font: 14px/1.4 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
/* Title and legend box */
.info-box {
background: rgba(255, 255, 255, 0.92);
padding: 6px 10px;
border-radius: 6px;
box-shadow: 0 1px 5px rgba(0, 0, 0, 0.4);
max-width: 220px;
color: #222;
}
.info-box h1 {
font-size: 15px;
margin: 0;
cursor: pointer;
}
.info-box .updated { font-size: 11px; color: #555; }
.info-box ul { list-style: none; margin: 6px 0 0; padding: 0; font-size: 12px; }
.info-box li { display: flex; align-items: center; gap: 6px; margin: 2px 0; }
.info-box.collapsed ul, .info-box.collapsed .note { display: none; }
.info-box .note { font-size: 11px; color: #555; margin-top: 4px; }
.swatch { display: inline-block; width: 22px; height: 0; border-top: 3px solid; }
.swatch.dashed { border-top-style: dashed; }
.swatch.dotted { border-top-style: dotted; border-top-width: 4px; }
/* Locate button */
.locate-btn a { font-size: 18px; line-height: 30px; text-align: center; cursor: pointer; }
/* Point markers (divIcons) */
.pt {
display: flex;
align-items: center;
justify-content: center;
font: bold 9px/1 sans-serif;
color: #fff;
box-sizing: border-box;
border: 1.5px solid #fff;
box-shadow: 0 0 2px rgba(0, 0, 0, 0.7);
}
.pt.circle { border-radius: 50%; }
.pt.triangle {
width: 0 !important; height: 0 !important;
border-left: 8px solid transparent;
border-right: 8px solid transparent;
border-bottom: 14px solid #1f78d1;
border-top: 0;
box-shadow: none;
}
.pt-label {
background: rgba(255, 255, 255, 0.85);
border: 0;
box-shadow: none;
font-size: 11px;
padding: 0 3px;
}
/* Popups */
.leaflet-popup-content { margin: 10px 12px; max-width: 70vw; }
.thumbs { display: flex; gap: 6px; flex-wrap: wrap; margin: 6px 0 4px; }
.thumb { height: 72px; width: auto; max-width: 110px; object-fit: cover; border-radius: 4px; cursor: zoom-in; border: 1px solid #ccc; }
.pv { position: fixed; inset: 0; z-index: 2000; background: rgba(0,0,0,.88); display: none; align-items: center; justify-content: center; }
.pv.open { display: flex; }
.pv img { max-width: 92vw; max-height: 84vh; object-fit: contain; border-radius: 4px; }
.pv button { position: absolute; background: rgba(255,255,255,.15); color: #fff; border: 0; font-size: 34px; line-height: 1; cursor: pointer; border-radius: 6px; padding: 4px 12px; }
.pv-close { top: 12px; right: 12px; }
.pv-prev { left: 10px; top: 50%; transform: translateY(-50%); }
.pv-next { right: 10px; top: 50%; transform: translateY(-50%); }
.pv.single .pv-prev, .pv.single .pv-next { display: none; }
.pv-bar { position: absolute; bottom: 14px; left: 0; right: 0; text-align: center; color: #ddd; font: 13px sans-serif; }
.pv-bar a { color: #9cf; }
.props { border-collapse: collapse; font-size: 12px; }
.props th { text-align: left; padding: 1px 8px 1px 0; color: #555; vertical-align: top; font-weight: normal; }
.props td { padding: 1px 0; word-break: break-word; }
/* Fibre splice / trace / cable panel (fibre.js) */
.fx-panel { position: fixed; z-index: 1000; right: 0; top: 0; bottom: 0; width: min(640px, 100vw); background: #fff; color: #222;
box-shadow: -2px 0 12px rgba(0,0,0,.35); display: none; flex-direction: column; font: 13px/1.4 -apple-system, "Segoe UI", Helvetica, Arial, sans-serif; }
.fx-panel.open { display: flex; }
@media (max-width: 700px) { .fx-panel { top: auto; height: 62vh; left: 0; width: auto; box-shadow: 0 -2px 12px rgba(0,0,0,.35); border-radius: 10px 10px 0 0; } }
.fx-head { display: flex; align-items: center; justify-content: space-between; padding: 8px 12px; border-bottom: 1px solid #ddd; }
.fx-title { font-weight: 600; font-size: 14px; }
.fx-close { border: 0; background: none; font-size: 26px; line-height: 1; cursor: pointer; color: #555; padding: 0 4px; }
.fx-body { min-width: 0; overflow: auto; padding: 10px 12px 24px; flex: 1; -webkit-overflow-scrolling: touch; }
.fx-scroll { overflow-x: auto; }
.fx-svg { display: block; width: 100%; min-width: 420px; height: auto; }
.fx-note { color: #666; font-size: 12px; margin: 8px 0; }
.fx-sub { color: #666; font-size: 11px; display: inline-block; margin-left: 4px; }
.fx-btns { margin-top: 8px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.fx-btn { border: 1px solid #90a4ae; background: #eceff1; border-radius: 6px; padding: 5px 8px; font: inherit; font-size: 12px; cursor: pointer; color: #222; }
.fx-btn:hover { background: #cfd8dc; }
.fx-btn.small { padding: 2px 6px; font-size: 11px; }
.fx-chip { display: inline-block; padding: 0 6px; border-radius: 8px; color: #fff; font-size: 11px; border: 1px solid #333; }
.fx-chip.light { color: #222; }
.fx-table { border-collapse: collapse; font-size: 12px; min-width: 520px; }
.fx-table th, .fx-table td { border-bottom: 1px solid #eee; padding: 3px 6px; text-align: left; vertical-align: middle; }
.fx-table tr.spare td { color: #999; }
.fx-trace { width: 100%; max-width: 440px; margin: 0 auto; }
.fx-trace * { box-sizing: border-box; overflow-wrap: anywhere; }
.fx-node { border: 1px solid #90a4ae; border-radius: 8px; background: #f7f9fa; padding: 6px 10px; }
.fx-nname { font-weight: 600; margin-bottom: 4px; }
.fx-nname .fx-sub { display: block; margin: 0; font-weight: normal; }
.fx-item { background: #fff; border: 1px solid #cfd8dc; border-radius: 5px; padding: 3px 8px; margin: 3px 0; }
.fx-item.port { border-left: 4px solid #546e7a; }
.fx-item.dev { border-left: 4px solid #3949ab; }
.fx-join { font-size: 11px; color: #555; padding-left: 14px; border-left: 3px solid #78909c; margin-left: 10px; }
.fx-join.patch { border-left-color: #e6b800; }
.fx-join.assumed { border-left-style: dashed; }
.fx-end { font-size: 11px; color: #555; font-style: italic; margin: 3px 0; }
.fx-end.unknown { color: #b26a00; }
.fx-cable { display: flex; align-items: center; min-height: 54px; margin-left: 24px; }
.fx-line { width: 0; align-self: stretch; border-left: 4px solid; margin-right: 12px; }
.fx-clabel { font-size: 12px; }
/* Co-located items in a popup */
.also { border: 1px solid #cfd8dc; border-radius: 6px; padding: 4px 8px; margin: 6px 0; background: #f7f9fa; }
.also-h { font-size: 11px; color: #666; text-transform: uppercase; letter-spacing: .04em; }
.also-item { margin: 4px 0; }
.also-name { font-weight: 600; }
.also-type { font-size: 11px; color: #666; }
.fx-nbtns { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.fx-nname a, .fx-clabel a { color: #0b5cad; text-decoration: none; }
/* Accuracy badges */
.acc { font-size: 12px; border-radius: 5px; padding: 4px 8px; margin: 6px 0; border: 1px solid; }
.acc-ok { background: #e8f5e9; border-color: #66bb6a; color: #1b5e20; }
.acc-approx { background: #fff8e1; border-color: #ffb300; color: #6d4c00; }
.acc-assumed { background: #fce4ec; border-color: #e040fb; color: #6a1b6a; font-weight: 600; }
/* Trace: optional chamber/duct route under each cable */
.fx-toggle { display: block; font-size: 12px; margin: 0 0 8px; cursor: pointer; }
.fx-route { display: none; margin: 4px 0 0; padding-left: 18px; font-size: 12px; }
.show-routes .fx-route { display: block; }
.fx-route li { margin: 1px 0; }
.fx-route li.duct { color: #6a1b6a; }
.fx-route li.duct::marker, .fx-route li.chamber::marker { color: #999; }
.fx-through { margin: 2px 0; padding-left: 16px; font-size: 12px; }
.fx-through a { color: #0b5cad; text-decoration: none; }
/* Splice diagram: hovering (or tapping) any part of a path highlights the whole path in the enclosure */
.fxe { cursor: pointer; }
.fxe.hl .halo { stroke: #ff6d00; stroke-opacity: 0.55; }
.fxe.hl .ln-case { stroke: #333; stroke-width: 5; }
.fxe.hl .ln { stroke-width: 3.2; }
.fxe.hl .vis { stroke: #ff6d00; stroke-width: 5; }
.fxe.hl circle { fill: #ff6d00; }
.fxe.hl .pill { stroke: #ff6d00; stroke-width: 2.5; }
.fxe.hl .sock { fill: #ffe0b2; stroke: #ff6d00; stroke-width: 1.5; }
.fxe.hl .rowbg { fill: #fff3e0; }
.fxe.hl text { font-weight: bold; }
/* New version banner */
.update-bar { position: fixed; z-index: 3000; top: 52px; left: 50%; transform: translateX(-50%); background: #263238; color: #fff;
padding: 8px 12px; border-radius: 8px; font: 13px -apple-system, "Segoe UI", Helvetica, Arial, sans-serif; box-shadow: 0 2px 10px rgba(0,0,0,.4); max-width: calc(100vw - 32px); }
.update-bar button { margin-left: 8px; border: 0; border-radius: 5px; padding: 4px 10px; background: #4fc3f7; color: #00243a; font-weight: 600; cursor: pointer; }
.fx-svglink { fill: #0b5cad; cursor: pointer; text-decoration: underline; }
/* Floating splice-diagram windows (wide screens) */
.fx-win { position: fixed; width: min(560px, 90vw); height: min(560px, 80vh); min-width: 280px; min-height: 160px; resize: both; overflow: hidden;
display: flex; flex-direction: column; background: #fff; color: #222; border-radius: 8px; box-shadow: 0 4px 22px rgba(0,0,0,.45);
font: 13px/1.4 -apple-system, "Segoe UI", Helvetica, Arial, sans-serif; }
.fx-win-head { display: flex; align-items: center; justify-content: space-between; padding: 6px 10px; background: #eceff1; border-bottom: 1px solid #cfd8dc;
cursor: move; user-select: none; touch-action: none; border-radius: 8px 8px 0 0; }
.fx-win-title { font-weight: 600; font-size: 13px; }
.fx-win-body { overflow: auto; padding: 8px 10px 14px; flex: 1; }
.fx-win.flash { animation: fxflash .6s; }
@keyframes fxflash { 0% { box-shadow: 0 0 0 4px #ff6d00; } 100% { box-shadow: 0 4px 22px rgba(0,0,0,.45); } }
/* ===== Toolbar and drop-down panels (dark theme) ===== */
:root { --ink: #eceff1; --panel: #1c2733; --panel2: #243241; --line: #33475a; --accent: #1e88e5; --accent2: #26a69a; }
.leaflet-top.leaflet-left { top: 46px; }
.tb { position: fixed; z-index: 1200; top: 0; left: 0; right: 0; height: 44px; box-sizing: border-box; display: flex; align-items: center; gap: 6px;
background: var(--panel); border-bottom: 1px solid var(--line); padding: 0 8px; box-shadow: 0 2px 10px rgba(0,0,0,.4);
overflow-x: auto; scrollbar-width: none; font: 13px -apple-system, "Segoe UI", Helvetica, Arial, sans-serif; }
.tb::-webkit-scrollbar { display: none; }
.tb-brand { color: var(--ink); font-weight: 700; padding: 0 8px 0 4px; white-space: nowrap; letter-spacing: .02em; }
.tb-btn { display: flex; align-items: center; gap: 5px; border: 0; border-radius: 7px; padding: 6px 10px; background: var(--accent); color: #fff;
font: inherit; font-weight: 600; cursor: pointer; white-space: nowrap; }
.tb-btn:hover { filter: brightness(1.1); }
.tb-btn.on { background: #fff; color: #1c2733; }
.tb-dd { position: fixed; z-index: 1150; top: 50px; left: 50%; transform: translateX(-50%); width: min(420px, calc(100vw - 20px)); max-height: calc(100vh - 70px);
display: none; flex-direction: column; background: var(--panel); color: var(--ink); border: 1px solid var(--line); border-radius: 10px;
box-shadow: 0 6px 22px rgba(0,0,0,.5); font: 13px/1.45 -apple-system, "Segoe UI", Helvetica, Arial, sans-serif; }
.tb-dd.open { display: flex; }
.tb-dd-head { display: flex; justify-content: space-between; align-items: center; padding: 9px 12px; font-weight: 700; color: #90caf9; border-bottom: 1px solid var(--line); }
.tb-x { border: 0; background: none; color: #b0bec5; font-size: 22px; line-height: 1; cursor: pointer; }
.tb-dd-body { overflow: auto; padding: 8px 12px 12px; }
.tb-h { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: #90a4ae; margin: 8px 0 4px; }
.tb-row { display: flex; align-items: center; gap: 8px; padding: 3px 0; cursor: pointer; }
.tb-count { margin-left: auto; color: #90a4ae; font-size: 12px; }
.tb-list { display: flex; flex-direction: column; gap: 6px; }
.tb-item { display: flex; flex-direction: column; text-decoration: none; color: var(--ink); background: var(--panel2); border: 1px solid var(--line);
border-radius: 8px; padding: 7px 10px; cursor: pointer; }
a.tb-item:hover, .tb-item:hover { border-color: var(--accent); }
.tb-item span { color: #b0bec5; font-size: 12px; }
.tb-item .tb-meta { margin-top: 2px; }
.tb-item a { color: #90caf9; }
.tb-chip { display: inline-block; font-size: 10px; padding: 0 6px; border-radius: 8px; background: #455a64; color: #fff; margin-left: 4px; }
.tb-chip.ok { background: #2e7d32; } .tb-chip.approx { background: #b26a00; } .tb-chip.assumed { background: #9c27b0; }
.tb-legend { list-style: none; margin: 4px 0 8px; padding: 0; }
.tb-legend li { display: flex; align-items: center; gap: 8px; margin: 3px 0; }
.tb-sub { color: #b0bec5; font-size: 12px; margin: 4px 0; }
@media (max-width: 700px) { .tb-lbl { display: none; } .tb-brand { display: none; } .tb-btn { padding: 6px 9px; font-size: 16px; } }
/* Side panel and floating windows: dark title bars to match */
.fx-head, .fx-win-head { background: var(--panel); color: var(--ink); border-bottom: 1px solid var(--line); }
.fx-head .fx-close, .fx-win-head .fx-close { color: #b0bec5; }
.fx-title, .fx-win-title { color: #90caf9; }
.fx-btn { border-radius: 7px; border-color: #b0bec5; background: #f5f7f8; }
.fx-btn:hover { background: #e3f2fd; border-color: var(--accent); }
.also-h, .tb-h { font-weight: 600; }
.leaflet-popup-content-wrapper { border-radius: 10px; }
@media (min-width: 701px) {
body.panel-open .tb { right: min(640px, 100vw); }
body.panel-open .tb-dd { left: calc((100vw - min(640px, 100vw)) / 2); }
}
/* Compact one-line rows in the toolbar lists */
.tb-list { gap: 3px; }
.tb-item.tb-line { flex-direction: row; align-items: center; gap: 8px; padding: 4px 8px; white-space: nowrap; }
.tb-item.tb-line b { flex: 0 0 auto; }
.tb-item.tb-line .tb-name { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; color: #cfd8dc; }
.tb-item.tb-line b.tb-name { color: var(--ink); }
.tb-item.tb-line .tb-meta { flex: 0 0 auto; margin: 0; }
/* Docked legend (stays open) */
.tb-legend-panel { position: fixed; z-index: 1100; left: 10px; bottom: 50px; width: min(300px, calc(100vw - 20px)); max-height: 55vh; display: none; flex-direction: column;
background: var(--panel); color: var(--ink); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 6px 22px rgba(0,0,0,.5);
font: 13px/1.45 -apple-system, "Segoe UI", Helvetica, Arial, sans-serif; }
.tb-legend-panel.open { display: flex; }
/* Search box in the toolbar */
.tb-search { flex: 0 1 220px; min-width: 90px; margin-left: auto; border: 1px solid var(--line); border-radius: 7px; background: var(--panel2); color: var(--ink);
padding: 6px 10px; font: 13px -apple-system, "Segoe UI", Helvetica, Arial, sans-serif; outline: none; }
.tb-search:focus { border-color: var(--accent); }
.tb-search::placeholder { color: #90a4ae; }
.tb-item.tb-line.sel { border-color: var(--accent); background: #2b3d50; }
.tb-kind { color: #90a4ae; font-size: 11px; }
@media (max-width: 700px) { .tb-search { flex: 1 1 80px; font-size: 16px; padding: 5px 8px; } }
/* ===== Dark windows, panels and details (Nat, 2026-11-06) =====
Everything that opens from the map is a dark window. Splice diagrams stay on a light card,
because fibre colours (white, yellow) and their labels are drawn for a light background. */
.fx-win, .fx-panel { background: var(--panel); color: var(--ink); border: 1px solid var(--line); color-scheme: dark; }
.fx-win.small { width: min(380px, 90vw); height: auto; max-height: 75vh; }
.fx-win.big { width: min(560px, 90vw); height: min(560px, 80vh); }
.fx-win:not(.small):not(.big):not(.huge) { width: min(460px, 90vw); height: min(600px, 80vh); }
.fx-win-body a, .fx-body a, .fx-nname a, .fx-clabel a, .fx-through a { color: #90caf9; }
.fx-note, .fx-sub, .also-h, .also-type, .fx-join, .fx-end { color: #9fb3c0; }
.fx-end.unknown { color: #ffb74d; }
.fx-close { color: #b0bec5; }
.fx-head { border-bottom-color: var(--line); }
.fx-btn { background: var(--panel2); color: var(--ink); border: 1px solid var(--line); }
.fx-btn:hover { background: #2b3d50; border-color: var(--accent); }
.fx-node { background: var(--panel2); border-color: var(--line); }
.fx-item { background: #16202a; border-color: var(--line); }
.fx-item.port { border-left-color: #78909c; }
.fx-item.dev { border-left-color: #7986cb; }
.also { background: var(--panel2); border-color: var(--line); }
.props th { color: #90a4ae; }
.thumb { border-color: var(--line); }
.fx-table th, .fx-table td { border-bottom-color: var(--line); }
.fx-table tr.spare td { color: #78909c; }
.fx-route li.duct { color: #ce93d8; }
.fx-route li.duct::marker, .fx-route li.chamber::marker { color: #78909c; }
.acc-ok { background: #16301d; border-color: #66bb6a; color: #a5d6a7; }
.acc-approx { background: #33290e; border-color: #ffb300; color: #ffd54f; }
.acc-assumed { background: #321a38; border-color: #e040fb; color: #ea80fc; }
.fx-scroll:has(.fx-svg) { background: #fff; border-radius: 6px; padding: 4px; color-scheme: light; }
.fx-details { margin-top: 10px; border-top: 1px solid var(--line); padding-top: 6px; }
.fx-details summary { cursor: pointer; color: #90a4ae; font-size: 12px; }
.leaflet-popup-content-wrapper, .leaflet-popup-tip { background: var(--panel); color: var(--ink); }
.fx-h { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: #90a4ae; font-weight: 600; margin: 10px 0 4px; }
.tb-dd { top: 44px; transform: none; border-radius: 0 0 10px 10px; border-top: 0; max-height: calc(100vh - 56px); }
body.panel-open .tb-dd { left: auto; }
.tb-filter { width: 100%; box-sizing: border-box; margin: 0 0 6px; border: 1px solid var(--line); border-radius: 7px; background: var(--panel2); color: var(--ink);
padding: 5px 9px; font: 13px -apple-system, "Segoe UI", Helvetica, Arial, sans-serif; outline: none; }
.tb-filter:focus { border-color: var(--accent); }
@media (max-width: 700px) { .tb-filter { font-size: 16px; } }
/* Legend sits on the right, against the search box */
.tb-btn[data-tb="legend"] { margin-left: auto; }
.tb-search { margin-left: 0; }
/* Schematics (dark, scroll sideways when wide) */
.fx-schem-wrap { overflow-x: auto; margin: 4px 0; }
.fx-schem { display: block; }
.sc-link { cursor: pointer; }
.sc-link:hover rect, .sc-link:hover line:last-of-type { filter: brightness(1.35); }
.fx-tabs { display: flex; gap: 4px; margin: 0 0 8px; border-bottom: 1px solid var(--line); }
.fx-tab { border: 0; background: none; color: #90a4ae; padding: 5px 10px; font: inherit; font-size: 12px; font-weight: 600; cursor: pointer; border-bottom: 2px solid transparent; }
.fx-tab.on { color: #90caf9; border-bottom-color: var(--accent); }
.fx-win.huge { width: min(1100px, 94vw); height: min(820px, 86vh); }
.fx-schem.fit { width: 100%; min-width: 560px; height: auto; }
@media (min-width: 701px) { .tb-brand { display: flex; flex-direction: column; line-height: 1.15; } }
.tb-build { font-size: 9.5px; font-weight: 400; color: #90a4ae; letter-spacing: 0; font-family: ui-monospace, Menlo, monospace; cursor: help; }
.thumb-fig { margin: 0; display: flex; flex-direction: column; align-items: center; }
.thumb-fig figcaption { font-size: 10px; color: #90a4ae; margin-top: 2px; white-space: nowrap; }
/* Edit mode */
.edit-panel { position: fixed; z-index: 1100; right: 10px; bottom: 30px; width: min(380px, calc(100vw - 20px)); max-height: 60vh; display: none; flex-direction: column;
background: var(--panel); color: var(--ink); border: 1px solid #e91e63; border-radius: 10px; box-shadow: 0 6px 22px rgba(0,0,0,.5);
font: 13px/1.45 -apple-system, "Segoe UI", Helvetica, Arial, sans-serif; color-scheme: dark; }
.edit-panel.open { display: flex; }
.edit-list { display: flex; flex-direction: column; gap: 4px; margin: 6px 0; }
.edit-row { display: flex; align-items: center; gap: 6px; }
.edit-copy { flex: 1; cursor: copy; background: var(--panel2); border: 1px solid var(--line); border-radius: 6px; padding: 3px 6px; font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.edit-copy:hover { border-color: var(--accent); }
.edit-copy.copied, .fx-btn.copied { border-color: #66bb6a; background: #1b3a24; }
.edit-name { width: 92px; background: var(--panel2); color: var(--ink); border: 1px solid var(--line); border-radius: 6px; padding: 3px 6px; font-size: 12px; }
.edit-undo, .edit-del { border: 0; background: none; color: #b0bec5; cursor: pointer; font-size: 15px; }
body.editing .leaflet-container { cursor: crosshair; }
body.editing .leaflet-marker-icon { cursor: move; }
.tb-btn[data-tb="edit"].on { background: #e91e63; color: #fff; }
.edit-json { width: 100%; box-sizing: border-box; height: 140px; margin-top: 8px; background: #111a22; color: #cfd8dc; border: 1px solid var(--line); border-radius: 6px; font: 11px ui-monospace, Menlo, monospace; }
/* Edit is a tool, not a menu: dimmer until it's on (Nat, 2026-11-06) */
.tb-btn[data-tb="edit"]:not(.on) { background: transparent; color: #90a4ae; border: 1px solid var(--line); }
.tb-btn[data-tb="edit"]:not(.on):hover { color: var(--ink); border-color: #90a4ae; filter: none; }
.fx-id { display: inline-block; padding: 0 7px; margin-right: 2px; border-radius: 9px; background: #1e88e5; color: #fff; font-size: 11.5px; font-weight: 700; letter-spacing: .02em; vertical-align: 1px; }
/* All splices (in use only): compact diagrams side by side, wrapping to fill the window */
.fx-allsp-grid { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: flex-start; }
.fx-allsp { flex: 0 1 auto; max-width: 100%; }
.fx-allsp .fx-btns { margin: 4px 0 4px !important; }
/* Zoom / pan canvas (All splices) */
.fx-zoom-bar { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; justify-content: space-between; margin: 0 0 6px; }
.fx-zoom-btns { display: flex; gap: 4px; align-items: center; }
.fx-zoom-btns .fx-btn { min-width: 30px; margin: 0; }
.fx-zoom-pct { min-width: 42px; text-align: center; font-size: 12px; color: #b0bec5; }
.fx-zoom-vp { position: relative; overflow: hidden; height: 62vh; border: 1px solid #37474f; border-radius: 6px; background: #1b2730; touch-action: none; cursor: grab; }
.fx-zoom-vp.panning { cursor: grabbing; }
.fx-zoom-stage { position: absolute; left: 0; top: 0; transform-origin: 0 0; padding: 4px; box-sizing: border-box; }
.fx-win.zoomable .fx-win-body { display: flex; flex-direction: column; overflow: hidden; }
.fx-win.zoomable .fx-zoom-vp { flex: 1; height: auto; min-height: 0; }
/* All splices: lines joining the two ends of the same cable */
.fx-cablinks { position: absolute; left: 0; top: 0; overflow: visible; pointer-events: none; }
.fx-cablinks.back { z-index: 0; }
.fx-cablinks.front { z-index: 2; }
.fx-allsp-grid { position: relative; z-index: 1; gap: 26px 44px; padding-left: 36px; }
.fx-cablink { pointer-events: auto; cursor: pointer; opacity: 0.85; }
.fx-cablink:hover { opacity: 1; }
.fx-cablink:hover .core { stroke: #ffe0b2; }
/* Edit mode: reshaping a line's path */
.pe-vtx { background: #fff; border: 3px solid #e91e63; border-radius: 50%; box-sizing: border-box; cursor: move; box-shadow: 0 0 0 2px rgba(0,0,0,.35); }
.pe-end { background: #90a4ae; border: 2px solid #263238; border-radius: 2px; box-sizing: border-box; cursor: not-allowed; }
.pe-mid { background: rgba(233,30,99,.85); color: #fff; border-radius: 50%; font: bold 13px/16px sans-serif; text-align: center; cursor: copy; opacity: .8; box-shadow: 0 0 0 2px rgba(0,0,0,.3); }
.pe-mid:hover { opacity: 1; }
.edit-sel { margin: 6px 0; padding: 5px 8px; border: 1px solid #e91e63; border-radius: 6px; font-size: 12.5px; display: flex; align-items: center; gap: 8px; }
.edit-sel .fx-btn { margin: 0 0 0 auto; }
body.editing .leaflet-interactive { cursor: pointer; }