File size: 31,336 Bytes
e264252
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
:root {
  --ink: #0a0d0c;
  --panel: #111614;
  --panel-raised: #171d1a;
  --line: #303a35;
  --line-bright: #56645d;
  --paper: #e8eadf;
  --muted: #929b94;
  --signal: #d9ff57;
  --cyan: #62e7d7;
  --amber: #ffb650;
  --danger: #ff665c;
  --shadow: rgba(0, 0, 0, 0.45);
  --display: "Microsoft YaHei UI", "Noto Sans CJK SC", "Source Han Sans SC", sans-serif;
  --body: "Microsoft YaHei UI", "Noto Sans CJK SC", "Source Han Sans SC", sans-serif;
  --mono: "Cascadia Mono", "Microsoft YaHei UI", "Noto Sans CJK SC", monospace;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html[data-i18n-ready="false"] body { visibility: hidden; }

html {
  background: var(--ink);
  color: var(--paper);
  font-family: var(--body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  background:
    linear-gradient(rgba(217, 255, 87, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(217, 255, 87, 0.025) 1px, transparent 1px),
    radial-gradient(circle at 14% 18%, rgba(98, 231, 215, 0.08), transparent 30rem),
    var(--ink);
  background-size: 28px 28px, 28px 28px, auto, auto;
}

.grain {
  position: fixed;
  inset: 0;
  z-index: 10;
  pointer-events: none;
  opacity: 0.18;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.15'/%3E%3C/svg%3E");
}

button, input, a { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }

.masthead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 104px;
  padding: 20px clamp(22px, 4vw, 64px);
  border-bottom: 1px solid var(--line);
  background: rgba(10, 13, 12, 0.9);
}

.masthead-actions { display: flex; align-items: center; gap: 12px; }
.locale-switch {
  display: inline-flex;
  padding: 3px;
  border: 1px solid var(--line);
  background: var(--panel);
}
.locale-switch button {
  min-width: 42px;
  padding: 8px 10px;
  border: 0;
  color: var(--muted);
  background: transparent;
  font: 0.72rem var(--mono);
  cursor: pointer;
}
.locale-switch button[aria-pressed="true"] {
  color: var(--ink);
  background: var(--signal);
}

.identity { display: flex; align-items: center; gap: 18px; }
.identity h1, h2, p { margin: 0; }
.identity h1 {
  font-family: var(--display);
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 0.88;
  letter-spacing: 0.045em;
}

.eyebrow, .section-index {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  line-height: 1.4;
}

.mark {
  display: grid;
  grid-template-columns: repeat(3, 7px);
  align-items: end;
  gap: 4px;
  width: 34px;
  height: 48px;
  padding: 5px;
  border: 1px solid var(--line-bright);
}
.mark i { display: block; background: var(--signal); }
.mark i:nth-child(1) { height: 45%; }
.mark i:nth-child(2) { height: 100%; }
.mark i:nth-child(3) { height: 70%; }

.connection {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 164px;
  padding: 12px 16px;
  border: 1px solid var(--line);
  background: var(--panel);
}
.connection small { display: block; color: var(--muted); font: 0.62rem var(--mono); letter-spacing: 0.14em; }
.connection strong { font: 0.85rem var(--mono); color: var(--amber); }
.status-lamp { width: 11px; height: 11px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 18px currentColor; }
.connection[data-state="online"] .status-lamp { background: var(--signal); }
.connection[data-state="online"] strong { color: var(--signal); }
.connection[data-state="offline"] .status-lamp { background: var(--danger); }
.connection[data-state="offline"] strong { color: var(--danger); }

main { width: min(1540px, 100%); margin: 0 auto; padding: 0 clamp(18px, 4vw, 64px) 72px; }

.mission-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 40px;
  align-items: end;
  padding: clamp(44px, 7vw, 90px) 0 34px;
}
.mission-panel h2 {
  max-width: 780px;
  margin-top: 11px;
  font-family: var(--display);
  font-size: clamp(2.7rem, 6vw, 6.2rem);
  font-weight: 600;
  line-height: 0.91;
  letter-spacing: -0.025em;
}
.mission-copy { max-width: 690px; margin-top: 22px; color: var(--muted); line-height: 1.6; }
.run-block { min-width: min(100%, 330px); }

.primary-action, .station-action, .quiet-action {
  border: 0;
  cursor: pointer;
  transition: transform 150ms ease, background 150ms ease, color 150ms ease, opacity 150ms ease;
}
.primary-action {
  position: relative;
  width: 100%;
  min-height: 98px;
  padding: 20px 26px;
  text-align: left;
  color: var(--ink);
  background: var(--signal);
  box-shadow: 8px 8px 0 #344018;
}
.primary-action::after { content: "↗"; position: absolute; top: 17px; right: 20px; font-size: 1.7rem; }
.primary-action span { display: block; font: 700 1.22rem var(--mono); letter-spacing: 0.03em; }
.primary-action small { display: block; margin-top: 8px; font: 0.7rem var(--mono); opacity: 0.65; }
.primary-action:hover:not(:disabled) { transform: translate(-3px, -3px); box-shadow: 11px 11px 0 #344018; }
.primary-action:disabled, .station-action:disabled, .quiet-action:disabled { cursor: not-allowed; opacity: 0.38; }
.active-operation { margin-top: 20px; color: var(--muted); font: 0.7rem var(--mono); text-align: right; letter-spacing: 0.12em; }

.pairing-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.72fr);
  gap: 36px;
  align-items: end;
  padding: 24px 28px;
  border: 1px solid var(--cyan);
  border-bottom: 0;
  background: linear-gradient(100deg, rgba(98, 231, 215, 0.08), rgba(17, 22, 20, 0.94));
}
.pairing-panel h2 { margin-top: 8px; font: 600 2rem var(--display); }
.pairing-panel p:not(.section-index) { max-width: 720px; margin-top: 10px; color: var(--muted); font-size: 0.82rem; line-height: 1.55; }
.pairing-form label { display: block; margin-bottom: 9px; color: var(--cyan); font: 0.64rem var(--mono); letter-spacing: 0.12em; }
.pairing-controls { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; }
.pairing-controls input {
  min-width: 0;
  height: 52px;
  padding: 0 18px;
  border: 1px solid var(--line-bright);
  border-right: 0;
  outline: 0;
  color: var(--paper);
  background: #090c0b;
  font: 1.25rem var(--mono);
  letter-spacing: 0.28em;
}
.pairing-controls input:focus { border-color: var(--cyan); box-shadow: inset 0 0 0 1px var(--cyan); }
.pairing-controls input + input { border-left: 0; font-size: 0.82rem; letter-spacing: 0.04em; }
.pairing-controls input:disabled { opacity: 0.55; }
.pairing-action {
  min-width: 116px;
  border: 0;
  color: var(--ink);
  background: var(--cyan);
  cursor: pointer;
  font: 700 0.72rem var(--mono);
}
.pairing-action:disabled { cursor: wait; opacity: 0.45; }
.pairing-result { display: block; min-height: 20px; margin-top: 10px; color: var(--muted); font: 0.65rem/1.5 var(--mono); }
.pairing-result[data-tone="running"] { color: var(--amber); }
.pairing-result[data-tone="ok"] { color: var(--signal); }
.pairing-result[data-tone="error"] { color: var(--danger); }

.telemetry-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line);
  border-bottom: 0;
  background: var(--panel);
}
.telemetry-strip div { padding: 15px 18px; border-right: 1px solid var(--line); }
.telemetry-strip div:last-child { border-right: 0; }
.telemetry-strip span { display: block; color: var(--muted); font: 0.6rem var(--mono); letter-spacing: 0.13em; }
.telemetry-strip strong { display: block; margin-top: 7px; overflow: hidden; color: var(--paper); font: 0.8rem var(--mono); text-overflow: ellipsis; white-space: nowrap; }

.resource-panel {
  --resource-accent: var(--amber);
  padding: clamp(24px, 3vw, 38px);
  border: 1px solid var(--line);
  border-bottom: 0;
  background: linear-gradient(120deg, rgba(255, 182, 80, 0.055), rgba(17, 22, 20, 0.97) 38%);
}
.resource-panel[data-state="recovered"] { --resource-accent: var(--signal); }
.resource-panel[data-state="failed"], .resource-panel[data-state="degraded"] { --resource-accent: var(--danger); }
.resource-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 32px; }
.resource-heading h2 { margin-top: 12px; font: 600 clamp(1.8rem, 3vw, 3rem)/1 var(--display); }
.resource-heading p:last-child { max-width: 650px; margin-top: 12px; color: var(--muted); font-size: 0.82rem; line-height: 1.6; }
.resource-verdict { min-width: min(320px, 42vw); padding: 16px 18px; border-left: 3px solid var(--resource-accent); background: rgba(0, 0, 0, 0.18); }
.resource-verdict span, .resource-details span { display: block; color: var(--muted); font: 0.58rem var(--mono); letter-spacing: 0.12em; }
.resource-verdict strong { display: block; margin-top: 7px; color: var(--resource-accent); font: 700 0.9rem var(--mono); }
.resource-verdict small { display: block; margin-top: 5px; color: var(--muted); font: 0.6rem/1.45 var(--mono); }
.resource-metrics { display: grid; grid-template-columns: repeat(12, 1fr); margin: 26px 0 0; border: 1px solid var(--line); }
.resource-metrics div { grid-column: span 3; padding: 15px 17px; border-right: 1px solid var(--line); }
.resource-metrics div:nth-child(-n+4) { border-bottom: 1px solid var(--line); }
.resource-metrics div:nth-child(4) { border-right: 0; }
.resource-metrics div:nth-child(n+5) { grid-column: span 4; }
.resource-metrics div:last-child { border-right: 0; }
.resource-metrics dt { color: var(--muted); font: 0.58rem var(--mono); letter-spacing: 0.1em; }
.resource-metrics dd { margin: 8px 0 0; color: var(--paper); font: 700 1rem var(--mono); }
.resource-details { display: grid; grid-template-columns: 1.4fr 1fr 1.4fr; gap: 1px; margin-top: 1px; background: var(--line); }
.resource-details > div { min-width: 0; padding: 14px 17px; background: #0d1110; }
.resource-details strong { display: block; margin-top: 7px; overflow-wrap: anywhere; color: var(--paper); font: 0.67rem/1.5 var(--mono); }

.actuator-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-bottom: 0;
}
.control-card {
  --accent: var(--cyan);
  position: relative;
  min-width: 0;
  padding: clamp(26px, 3vw, 42px);
  overflow: hidden;
  background: linear-gradient(145deg, rgba(98, 231, 215, 0.055), rgba(17, 22, 20, 0.96) 48%);
  border-right: 1px solid var(--line);
}
.control-card:last-child { --accent: var(--signal); border-right: 0; }
.animation-card { grid-column: 1 / -1; border-top: 1px solid var(--line); }
.animation-card .control-fields { grid-template-columns: minmax(220px, 1.4fr) minmax(180px, 0.6fr); }
.animation-catalog-summary { min-height: 0 !important; margin: 12px 0 18px !important; color: var(--accent) !important; font: 0.66rem/1.5 var(--mono) !important; }
.control-card::before { content: ""; position: absolute; inset: 0 auto auto 0; width: 72px; height: 3px; background: var(--accent); }
.control-card[data-available="false"] { filter: saturate(0.3); }
.control-card[data-available="true"] .capability-state { color: var(--accent); }
.control-card h2 { margin-top: 18px; font: 600 clamp(2rem, 4vw, 3.6rem)/0.95 var(--display); }
.control-card > p { min-height: 48px; margin-top: 14px; color: var(--muted); font-size: 0.88rem; line-height: 1.6; }
.control-card code { color: var(--accent); font-family: var(--mono); font-size: 0.76rem; }
.motion-visual, .light-visual { position: relative; height: 150px; margin: 24px 0; border: 1px solid var(--line); background: #090c0b; overflow: hidden; }
.motion-visual { display: grid; place-items: center; background: radial-gradient(circle, rgba(98,231,215,0.08), transparent 54%), #090c0b; }
.motion-visual::before, .motion-visual::after { content: ""; position: absolute; background: var(--line); }
.motion-visual::before { width: 1px; height: 100%; }
.motion-visual::after { width: 100%; height: 1px; }
.motion-visual span { position: relative; z-index: 1; width: 82px; height: 56px; border: 2px solid var(--cyan); border-radius: 40% 40% 32% 32%; box-shadow: 0 0 32px rgba(98,231,215,0.15); transition: transform 180ms ease; }
.motion-visual span::before, .motion-visual span::after { content: ""; position: absolute; top: 22px; width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 10px var(--cyan); }
.motion-visual span::before { left: 20px; }
.motion-visual span::after { right: 20px; }
.motion-visual i { position: absolute; bottom: 12px; width: 32%; height: 1px; background: var(--cyan); opacity: 0.35; }
.control-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.control-fields label, .light-fields label { display: grid; gap: 9px; color: var(--muted); font: 0.62rem var(--mono); letter-spacing: 0.08em; }
.control-fields strong, .light-fields strong { color: var(--accent); }
.control-fields input, .light-fields input[type="range"] { width: 100%; accent-color: var(--accent); }
.control-fields input[type="text"], .control-fields input[type="number"] { height: 38px; padding: 0 11px; color: var(--paper); background: #090c0b; border: 1px solid var(--line); font: 0.72rem var(--mono); }
.control-fields input[type="text"]:focus, .control-fields input[type="number"]:focus { border-color: var(--accent); outline: 1px solid var(--accent); outline-offset: 1px; }
.preset-row { display: flex; gap: 8px; margin: 18px 0; }
.preset-row button { flex: 1; min-height: 34px; color: var(--muted); background: transparent; border: 1px solid var(--line); cursor: pointer; font: 0.62rem var(--mono); }
.preset-row button:hover { color: var(--cyan); border-color: var(--cyan); }
.light-visual { display: flex; align-items: center; justify-content: center; gap: 18px; background: radial-gradient(circle, color-mix(in srgb, var(--light-color, var(--signal)) 14%, transparent), transparent 55%), #090c0b; }
.light-visual i { width: 18%; height: 62%; border: 1px solid var(--light-color, var(--signal)); background: var(--light-color, var(--signal)); box-shadow: 0 0 28px color-mix(in srgb, var(--light-color, var(--signal)) 35%, transparent); opacity: var(--light-alpha, .7); }
.light-visual i:nth-child(2) { height: 82%; }
.light-fields { display: grid; grid-template-columns: 0.7fr 1.3fr 1fr 1fr; gap: 14px; margin-bottom: 18px; }
.light-fields input[type="color"] { width: 100%; height: 34px; padding: 2px; border: 1px solid var(--line); background: #090c0b; }
.light-fields select { width: 100%; height: 34px; padding: 0 8px; color: var(--paper); background: #090c0b; border: 1px solid var(--line); font: 0.68rem var(--mono); }

.live-video-panel {
  --accent: var(--cyan);
  display: grid;
  grid-template-columns: minmax(300px, 0.58fr) minmax(480px, 1fr);
  min-height: 520px;
  border: 1px solid var(--line);
  border-bottom: 0;
  background: rgba(17, 22, 20, 0.94);
}
.live-video-panel[data-available="false"] { filter: saturate(0.32); }
.live-video-copy { position: relative; padding: clamp(28px, 4vw, 48px); border-right: 1px solid var(--line); }
.live-video-copy::before { content: ""; position: absolute; inset: 0 auto auto 0; width: 68px; height: 3px; background: var(--cyan); }
.live-video-copy h2 { margin-top: 22px; font: 600 clamp(2.2rem, 4vw, 4.8rem)/0.94 var(--display); letter-spacing: -0.025em; }
.live-video-copy > p { max-width: 540px; margin-top: 18px; color: var(--muted); font-size: 0.9rem; line-height: 1.7; }
.live-video-controls { display: flex; gap: 10px; margin-top: 34px; }
.live-video-controls .station-action, .live-video-controls .quiet-action { flex: 1; min-height: 48px; }
.live-video-copy .station-result { margin-top: 12px; }
.live-video-metrics { display: grid; grid-template-columns: 1fr 1fr; margin: 34px 0 0; border: 1px solid var(--line); }
.live-video-metrics div { padding: 14px 16px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.live-video-metrics div:nth-child(2n) { border-right: 0; }
.live-video-metrics div:nth-last-child(-n+2) { border-bottom: 0; }
.live-video-metrics dt { color: var(--muted); font: 0.58rem var(--mono); letter-spacing: 0.12em; }
.live-video-metrics dd { margin: 8px 0 0; color: var(--cyan); font: 0.78rem var(--mono); }

.live-video-stage { position: relative; display: grid; place-items: center; min-height: 520px; overflow: hidden; background: #060908; }
.live-video-stage::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: repeating-linear-gradient(0deg, rgba(255,255,255,0.018) 0, rgba(255,255,255,0.018) 1px, transparent 1px, transparent 4px); }
.live-video-stage canvas { display: block; width: 100%; height: 100%; object-fit: contain; background: #060908; }
.live-video-empty { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 10px; color: var(--cyan); font-family: var(--mono); background: radial-gradient(circle, rgba(98,231,215,0.07), transparent 38%); }
.live-video-empty small { color: var(--muted); font-size: 0.58rem; letter-spacing: 0.14em; }
.live-scan { width: 92px; height: 92px; border: 1px solid var(--cyan); border-radius: 50%; opacity: 0.65; box-shadow: inset 0 0 0 30px #060908, inset 0 0 0 31px var(--cyan), 0 0 38px rgba(98,231,215,0.12); }
.live-video-stage[data-state="connecting"] .live-scan { animation: live-pulse 1.4s ease-in-out infinite; }
.live-video-stage[data-state="live"] .live-video-empty { display: none; }
.live-video-hud { position: absolute; z-index: 2; inset: 18px 20px auto; display: flex; justify-content: space-between; color: var(--paper); font: 0.62rem var(--mono); letter-spacing: 0.1em; text-shadow: 0 1px 5px #000; }
.live-pill { padding: 5px 8px; border: 1px solid var(--line-bright); background: rgba(6,9,8,0.78); color: var(--muted); }
.live-video-stage[data-state="connecting"] .live-pill { color: var(--amber); border-color: var(--amber); }
.live-video-stage[data-state="live"] .live-pill { color: var(--signal); border-color: var(--signal); }
@keyframes live-pulse { 50% { transform: scale(0.82); opacity: 0.28; } }

.rtc-audio-panel {
  --accent: var(--amber);
  display: grid;
  grid-template-columns: minmax(340px, 0.72fr) minmax(420px, 1fr);
  min-height: 350px;
  border: 1px solid var(--line);
  border-bottom: 0;
  background: linear-gradient(110deg, rgba(255, 182, 80, 0.06), rgba(17, 22, 20, 0.96));
}
.rtc-audio-panel[data-available="false"] { filter: saturate(0.32); }
.rtc-audio-panel > div { padding: clamp(28px, 4vw, 48px); }
.rtc-audio-panel > div:first-child { border-right: 1px solid var(--line); }
.rtc-audio-panel h2 { margin-top: 22px; font: 600 clamp(2.1rem, 4vw, 4.2rem)/0.94 var(--display); letter-spacing: -0.025em; }
.rtc-audio-panel p:not(.section-index) { max-width: 650px; margin-top: 18px; color: var(--muted); font-size: 0.9rem; line-height: 1.7; }
.rtc-audio-controls { display: flex; gap: 10px; margin-top: 30px; }
.rtc-audio-controls button { flex: 1; min-height: 48px; }
.rtc-audio-console { display: grid; align-content: center; gap: 24px; background: radial-gradient(circle at 50% 40%, rgba(255,182,80,0.09), transparent 48%); }
.rtc-audio-orbit { position: relative; width: 112px; height: 112px; margin: 0 auto; border: 1px solid var(--line-bright); border-radius: 50%; }
.rtc-audio-orbit::before, .rtc-audio-orbit::after { content: ""; position: absolute; border: 1px solid var(--amber); border-radius: 50%; inset: 24px; opacity: 0.7; }
.rtc-audio-orbit::after { inset: 43px; background: var(--amber); box-shadow: 0 0 28px rgba(255,182,80,0.34); }
.rtc-audio-orbit i { position: absolute; inset: 50% auto auto 50%; width: 6px; height: 6px; border-radius: 50%; background: var(--signal); transform-origin: 0 0; opacity: 0; }
.rtc-audio-console[data-state="connecting"] .rtc-audio-orbit { animation: live-pulse 1.4s ease-in-out infinite; }
.rtc-audio-console[data-state="live"] .rtc-audio-orbit i { opacity: 1; animation: rtc-orbit 2.4s linear infinite; }
.rtc-audio-console[data-state="live"] .rtc-audio-orbit i:nth-child(2) { animation-delay: -0.8s; }
.rtc-audio-console[data-state="live"] .rtc-audio-orbit i:nth-child(3) { animation-delay: -1.6s; }
@keyframes rtc-orbit { from { transform: rotate(0deg) translateX(55px); } to { transform: rotate(360deg) translateX(55px); } }
.rtc-audio-metrics { display: grid; grid-template-columns: 1fr 1fr; margin: 0; border: 1px solid var(--line); }
.rtc-audio-metrics div { padding: 13px 15px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.rtc-audio-metrics div:nth-child(2n) { border-right: 0; }
.rtc-audio-metrics div:nth-last-child(-n+2) { border-bottom: 0; }
.rtc-audio-metrics dt { color: var(--muted); font: 0.58rem var(--mono); letter-spacing: 0.12em; }
.rtc-audio-metrics dd { margin: 8px 0 0; color: var(--amber); font: 0.78rem var(--mono); }
.rtc-audio-console audio { margin: 0; }
.rtc-audio-console > small { color: var(--muted); font: 0.62rem/1.5 var(--mono); }

.stations { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--line); }
.station { position: relative; min-width: 0; padding: 28px; background: rgba(17, 22, 20, 0.92); border-right: 1px solid var(--line); overflow: hidden; }
.station:last-child { border-right: 0; }
.station::before { content: ""; position: absolute; inset: 0 auto auto 0; width: 44px; height: 3px; background: var(--accent, var(--signal)); }
.station-audio { --accent: var(--signal); }
.station-camera { --accent: var(--cyan); }
.station-microphone { --accent: var(--amber); }
.station-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.capability-state { color: var(--muted); font: 0.62rem var(--mono); letter-spacing: 0.1em; }
.station[data-available="true"] .capability-state { color: var(--accent); }
.station[data-available="false"] { filter: saturate(0.3); }
.station h2, .panel-heading h2 { margin-top: 16px; font-family: var(--display); font-size: 2.05rem; letter-spacing: 0.01em; }
.station > p { min-height: 65px; margin-top: 12px; color: var(--muted); font-size: 0.9rem; line-height: 1.5; }

.scope, .camera-stage, .waveform { height: 220px; margin: 26px 0 20px; border: 1px solid var(--line); background: #090c0b; }
.speaker-scope { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 30px; }
.speaker-scope span { width: 5px; height: var(--h); background: var(--signal); box-shadow: 0 0 12px rgba(217, 255, 87, 0.22); transform-origin: center; animation: meter 1.8s ease-in-out infinite alternate; animation-play-state: paused; }
.station[data-running="true"] .speaker-scope span { animation-play-state: running; }
.speaker-scope span:nth-child(3n) { animation-delay: -0.4s; }
.speaker-scope span:nth-child(2n) { animation-delay: -0.9s; }
@keyframes meter { to { transform: scaleY(0.35); opacity: 0.55; } }

.camera-stage { position: relative; display: grid; place-items: center; overflow: hidden; }
.camera-stage img { width: 100%; height: 100%; object-fit: contain; }
.camera-empty { display: grid; place-items: center; gap: 8px; color: var(--cyan); font-family: var(--mono); }
.camera-empty small { color: var(--muted); font-size: 0.58rem; letter-spacing: 0.12em; }
.reticle { width: 62px; height: 62px; border: 1px solid var(--cyan); border-radius: 50%; box-shadow: inset 0 0 0 18px #090c0b, inset 0 0 0 19px var(--cyan); }
.frame-corner { position: absolute; width: 20px; height: 20px; border-color: var(--cyan); }
.top-left { top: 10px; left: 10px; border-top: 1px solid; border-left: 1px solid; }
.top-right { top: 10px; right: 10px; border-top: 1px solid; border-right: 1px solid; }
.bottom-left { bottom: 10px; left: 10px; border-bottom: 1px solid; border-left: 1px solid; }
.bottom-right { bottom: 10px; right: 10px; border-bottom: 1px solid; border-right: 1px solid; }

.duration-control { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 10px; margin-top: 25px; }
.duration-control label { color: var(--muted); font: 0.62rem var(--mono); letter-spacing: 0.12em; }
.duration-control strong { grid-column: 2; grid-row: 1 / 3; color: var(--amber); font: 0.78rem var(--mono); }
.duration-control input { grid-column: 1; accent-color: var(--amber); width: 100%; }
.waveform { display: block; width: 100%; height: 166px; margin-top: 14px; }

.button-row { display: flex; gap: 10px; align-items: stretch; }
.station-action, .quiet-action { min-height: 46px; padding: 0 17px; font: 700 0.72rem var(--mono); letter-spacing: 0.08em; }
.station-action { flex: 1; color: var(--ink); background: var(--accent); }
.station-action:hover:not(:disabled) { transform: translateY(-2px); filter: brightness(1.08); }
.quiet-action { color: var(--paper); background: transparent; border: 1px solid var(--line-bright); }
.quiet-action:hover:not(:disabled) { color: var(--signal); border-color: var(--signal); }
.link-action { display: grid; place-items: center; text-decoration: none; }
.station-result { display: block; min-height: 34px; margin-top: 16px; color: var(--muted); font: 0.68rem/1.5 var(--mono); }
.station-result[data-tone="ok"] { color: var(--signal); }
.station-result[data-tone="error"] { color: var(--danger); }
audio { width: 100%; margin-top: 14px; filter: invert(0.88) hue-rotate(55deg); }

.lower-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(380px, 0.9fr); border: 1px solid var(--line); border-top: 0; }
.capability-panel, .event-panel { min-width: 0; padding: 28px; background: rgba(11, 15, 13, 0.94); }
.capability-panel { border-right: 1px solid var(--line); }
.panel-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.panel-heading h2 { margin-top: 6px; font-size: 1.55rem; }
.panel-heading > span { color: var(--signal); font: 0.65rem var(--mono); letter-spacing: 0.11em; }
.text-button { padding: 0; color: var(--muted); background: none; border: 0; cursor: pointer; font: 0.64rem var(--mono); }
.text-button:hover { color: var(--paper); }
.capability-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 24px; }
.capability-chip { padding: 11px; border: 1px solid var(--line); color: var(--muted); font: 0.66rem var(--mono); overflow-wrap: anywhere; }
.capability-chip[data-media="true"] { color: var(--signal); border-color: #536426; background: rgba(217, 255, 87, 0.045); }
.event-log { height: 242px; margin: 24px 0 0; padding: 0; overflow: auto; list-style: none; font-family: var(--mono); scrollbar-color: var(--line-bright) transparent; }
.event-log li { display: grid; grid-template-columns: 70px 1fr; gap: 12px; padding: 9px 0; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.67rem; line-height: 1.45; }
.event-log time { color: var(--line-bright); }
.event-log li[data-tone="ok"] span { color: var(--signal); }
.event-log li[data-tone="error"] span { color: var(--danger); }
.event-log li[data-tone="running"] span { color: var(--amber); }

.toast { position: fixed; right: 24px; bottom: 58px; z-index: 20; max-width: min(420px, calc(100vw - 48px)); padding: 14px 18px; border-left: 3px solid var(--signal); background: var(--paper); color: var(--ink); box-shadow: 0 16px 50px var(--shadow); font: 0.75rem var(--mono); transform: translateY(130%); opacity: 0; transition: 220ms ease; }
.toast[data-visible="true"] { transform: translateY(0); opacity: 1; }
.toast[data-tone="error"] { border-color: var(--danger); }

footer { position: relative; z-index: 11; display: flex; justify-content: space-between; gap: 20px; padding: 14px clamp(22px, 4vw, 64px); border-top: 1px solid var(--line); color: var(--muted); background: #080a09; font: 0.58rem var(--mono); letter-spacing: 0.11em; }

@media (max-width: 1080px) {
  .actuator-grid { grid-template-columns: 1fr; }
  .control-card { border-right: 0; border-bottom: 1px solid var(--line); }
  .control-card:last-child { border-bottom: 0; }
  .live-video-panel { grid-template-columns: 1fr; }
  .live-video-copy { border-right: 0; border-bottom: 1px solid var(--line); }
  .live-video-stage { min-height: min(70vw, 520px); }
  .rtc-audio-panel { grid-template-columns: 1fr; }
  .rtc-audio-panel > div:first-child { border-right: 0; border-bottom: 1px solid var(--line); }
  .stations { grid-template-columns: 1fr 1fr; }
  .station { border-bottom: 1px solid var(--line); }
  .station:nth-child(2) { border-right: 0; }
  .station:last-child { grid-column: 1 / -1; border-bottom: 0; }
  .lower-grid { grid-template-columns: 1fr; }
  .capability-panel { border-right: 0; border-bottom: 1px solid var(--line); }
}

@media (max-width: 720px) {
  .masthead { align-items: flex-start; gap: 16px; }
  .connection { min-width: auto; padding: 10px; }
  .connection div { display: none; }
  .mission-panel { grid-template-columns: 1fr; }
  .pairing-panel { grid-template-columns: 1fr; padding: 22px; }
  .run-block { width: 100%; }
  .telemetry-strip { grid-template-columns: 1fr 1fr; }
  .telemetry-strip div:nth-child(2) { border-right: 0; }
  .telemetry-strip div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .resource-heading { display: block; }
  .resource-verdict { min-width: 0; margin-top: 20px; }
  .resource-metrics { grid-template-columns: 1fr 1fr; }
  .resource-metrics div, .resource-metrics div:nth-child(n+5) { grid-column: span 1; }
  .resource-metrics div:nth-child(odd) { border-right: 1px solid var(--line); }
  .resource-metrics div:nth-child(even) { border-right: 0; }
  .resource-metrics div:not(:last-child) { border-bottom: 1px solid var(--line); }
  .resource-metrics div:last-child { grid-column: 1 / -1; border-right: 0; border-bottom: 0; }
  .resource-details { grid-template-columns: 1fr; }
  .control-card { padding: 24px; }
  .control-fields, .light-fields { grid-template-columns: 1fr; }
  .control-card .button-row { flex-direction: column; }
  .live-video-panel { display: block; }
  .live-video-copy { padding: 24px; }
  .live-video-copy h2 { font-size: 2.5rem; }
  .live-video-stage { min-height: 64vw; }
  .live-video-controls { flex-direction: column; }
  .rtc-audio-panel > div { padding: 24px; }
  .rtc-audio-controls { flex-direction: column; }
  .stations { grid-template-columns: 1fr; }
  .station, .station:nth-child(2) { grid-column: auto; border-right: 0; border-bottom: 1px solid var(--line); }
  .station:last-child { grid-column: auto; border-bottom: 0; }
  .capability-grid { grid-template-columns: 1fr 1fr; }
  footer span:nth-child(2) { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}