tailcat-webui 0.0.0-stage → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (58) hide show
  1. package/LICENSE +21 -0
  2. package/NOTICE +29 -0
  3. package/README.en.md +112 -0
  4. package/README.md +101 -2
  5. package/bin/tailcat-webui.js +12 -0
  6. package/docs/CORE-API.md +343 -0
  7. package/docs/DESIGN.md +398 -0
  8. package/docs/assets/character.jpg +0 -0
  9. package/docs/assets/portrait.jpg +0 -0
  10. package/docs/screenshots/01-overview-light.png +0 -0
  11. package/docs/screenshots/02-overview-dark.png +0 -0
  12. package/docs/screenshots/03-ticket-light.png +0 -0
  13. package/docs/screenshots/04-ticket-qr-light.png +0 -0
  14. package/docs/screenshots/05-settings-light.png +0 -0
  15. package/docs/screenshots/06-diagnostics-light.png +0 -0
  16. package/docs/screenshots/07-mobile-overview.png +0 -0
  17. package/docs/screenshots/08-install-missing.png +0 -0
  18. package/docs/screenshots/09-keeper.png +0 -0
  19. package/package.json +56 -4
  20. package/src/cli.js +238 -0
  21. package/src/config.js +167 -0
  22. package/src/devices.js +163 -0
  23. package/src/errors.js +24 -0
  24. package/src/index.js +19 -0
  25. package/src/installer.js +907 -0
  26. package/src/manager.js +647 -0
  27. package/src/parse.js +207 -0
  28. package/src/paths.js +97 -0
  29. package/src/preferences.js +190 -0
  30. package/src/qr.js +37 -0
  31. package/src/relay.js +76 -0
  32. package/src/runtime/node.js +281 -0
  33. package/src/serve-targets.js +127 -0
  34. package/src/server.js +674 -0
  35. package/src/settings.js +262 -0
  36. package/src/supervisor.js +833 -0
  37. package/vendor/qrcode.mjs +2289 -0
  38. package/web/api.js +114 -0
  39. package/web/assets/portrait.jpg +0 -0
  40. package/web/boot.js +29 -0
  41. package/web/components.js +558 -0
  42. package/web/dict.js +663 -0
  43. package/web/drawer-access.js +318 -0
  44. package/web/drawer-address.js +271 -0
  45. package/web/drawer-automation.js +223 -0
  46. package/web/drawer-relay.js +128 -0
  47. package/web/drawer-tunnel.js +309 -0
  48. package/web/drawer.js +302 -0
  49. package/web/format.js +252 -0
  50. package/web/icon.png +0 -0
  51. package/web/index.html +29 -0
  52. package/web/main.js +471 -0
  53. package/web/room-diagnostics.js +426 -0
  54. package/web/room-overview.js +438 -0
  55. package/web/room-settings.js +71 -0
  56. package/web/store.js +168 -0
  57. package/web/styles.css +2873 -0
  58. package/web/ticket.js +212 -0
package/web/styles.css ADDED
@@ -0,0 +1,2873 @@
1
+ /* ==========================================================================
2
+ tailcat webui — a standalone console for tailcat.
3
+ ========================================================================== */
4
+
5
+ /* 1. Tokens --------------------------------------------------------------- */
6
+
7
+ :root {
8
+ color-scheme: light;
9
+ --tw-bg: #F4F5F7;
10
+ --tw-bg-glow: radial-gradient(120% 90% at 50% 0%, #FBFBFC 0%, #F4F5F7 70%);
11
+ --tw-surface: #FFFFFF;
12
+ --tw-surface-soft: #FAFAFB;
13
+ --tw-ink: #15181F;
14
+ --tw-muted: #5E646E;
15
+ --tw-faint: #868C96;
16
+ --tw-line: rgba(21, 24, 31, 0.12);
17
+ --tw-line-soft: rgba(21, 24, 31, 0.07);
18
+ --tw-hover: rgba(21, 24, 31, 0.05);
19
+ --tw-accent: #A9641A;
20
+ --tw-accent-fill: #E8A23D;
21
+ --tw-accent-wash: rgba(232, 162, 61, 0.14);
22
+ --tw-ribbon: #C9788F;
23
+ --tw-ribbon-deep: #8D4256;
24
+ --tw-ribbon-soft: #E7B2C0;
25
+ --tw-pq: #5B3FA8;
26
+ --tw-pq-wash: rgba(106, 75, 196, 0.10);
27
+ --tw-ok: #17864A;
28
+ --tw-warn: #A96F14;
29
+ --tw-err: #B3362A;
30
+ --tw-ticket-bg: #14171E;
31
+ --tw-ticket-ink: #F4EFE6;
32
+ --tw-ticket-muted: rgba(244, 239, 230, 0.62);
33
+ --tw-ticket-line: rgba(244, 239, 230, 0.28);
34
+ --tw-display: "Iowan Old Style", "Palatino Linotype", Palatino, "Songti SC",
35
+ "Noto Serif CJK SC", "Noto Serif SC", SimSun, Georgia, serif;
36
+ --tw-body: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
37
+ "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
38
+ --tw-mono: "SF Mono", "JetBrains Mono", "Fira Code", Consolas, "Liberation Mono", monospace;
39
+ }
40
+
41
+ :root[data-theme="dark"] {
42
+ color-scheme: dark;
43
+ --tw-bg: #0F1217;
44
+ --tw-bg-glow: radial-gradient(120% 90% at 50% 0%, #1A1F27 0%, #0F1217 68%);
45
+ --tw-surface: #171B22;
46
+ --tw-surface-soft: #1C212A;
47
+ --tw-ink: #EDEFF3;
48
+ --tw-muted: #A2A8B2;
49
+ --tw-faint: #7C838E;
50
+ --tw-line: rgba(237, 239, 243, 0.16);
51
+ --tw-line-soft: rgba(237, 239, 243, 0.09);
52
+ --tw-hover: rgba(237, 239, 243, 0.07);
53
+ --tw-accent: #F0B45C;
54
+ --tw-accent-fill: #F2B45C;
55
+ --tw-accent-wash: rgba(242, 180, 92, 0.16);
56
+ --tw-ribbon: #E3A5B4;
57
+ --tw-ribbon-deep: #B76F82;
58
+ --tw-ribbon-soft: #F2C7D1;
59
+ --tw-pq: #B7A0FF;
60
+ --tw-pq-wash: rgba(183, 160, 255, 0.14);
61
+ --tw-ok: #4ED07E;
62
+ --tw-warn: #E7B45C;
63
+ --tw-err: #F2756A;
64
+ --tw-ticket-bg: #1B1F27;
65
+ }
66
+
67
+ /* 2. Base ----------------------------------------------------------------- */
68
+
69
+ *,
70
+ *::before,
71
+ *::after {
72
+ box-sizing: border-box;
73
+ }
74
+
75
+ html {
76
+ -webkit-text-size-adjust: 100%;
77
+ text-size-adjust: 100%;
78
+ }
79
+
80
+ body {
81
+ margin: 0;
82
+ min-height: 100vh;
83
+ background: var(--tw-bg-glow);
84
+ background-color: var(--tw-bg);
85
+ color: var(--tw-ink);
86
+ font-family: var(--tw-body);
87
+ font-size: 13px;
88
+ line-height: 1.65;
89
+ -webkit-font-smoothing: antialiased;
90
+ text-rendering: optimizeLegibility;
91
+ }
92
+
93
+ [hidden] {
94
+ display: none !important;
95
+ }
96
+
97
+ h1,
98
+ h2,
99
+ h3,
100
+ h4,
101
+ p {
102
+ margin: 0;
103
+ }
104
+
105
+ a {
106
+ color: var(--tw-accent);
107
+ }
108
+
109
+ img,
110
+ svg {
111
+ display: block;
112
+ max-width: 100%;
113
+ }
114
+
115
+ button,
116
+ input,
117
+ select,
118
+ textarea {
119
+ font: inherit;
120
+ color: inherit;
121
+ }
122
+
123
+ button {
124
+ padding: 0;
125
+ border: 0;
126
+ background: none;
127
+ cursor: pointer;
128
+ }
129
+
130
+ :focus-visible {
131
+ outline: 2px solid var(--tw-accent);
132
+ outline-offset: 2px;
133
+ border-radius: 4px;
134
+ }
135
+
136
+ ::selection {
137
+ background: var(--tw-accent-wash);
138
+ }
139
+
140
+ ::placeholder {
141
+ color: var(--tw-faint);
142
+ opacity: 1;
143
+ }
144
+
145
+ .sr-only {
146
+ position: absolute;
147
+ width: 1px;
148
+ height: 1px;
149
+ margin: -1px;
150
+ padding: 0;
151
+ overflow: hidden;
152
+ clip: rect(0 0 0 0);
153
+ clip-path: inset(50%);
154
+ white-space: nowrap;
155
+ border: 0;
156
+ }
157
+
158
+ .is-mono {
159
+ font-family: var(--tw-mono);
160
+ font-size: 12px;
161
+ }
162
+
163
+ /* 3. Shell ---------------------------------------------------------------- */
164
+
165
+ .app {
166
+ display: flex;
167
+ min-height: 100vh;
168
+ flex-direction: column;
169
+ }
170
+
171
+ .topbar {
172
+ position: sticky;
173
+ top: 0;
174
+ z-index: 20;
175
+ display: flex;
176
+ align-items: center;
177
+ justify-content: space-between;
178
+ gap: 16px;
179
+ padding: 14px 28px;
180
+ border-bottom: 1px solid var(--tw-line-soft);
181
+ background: var(--tw-bg);
182
+ }
183
+
184
+ .brand {
185
+ display: inline-flex;
186
+ min-width: 0;
187
+ align-items: center;
188
+ gap: 10px;
189
+ color: var(--tw-ink);
190
+ text-decoration: none;
191
+ }
192
+
193
+ .brand-mark {
194
+ width: 28px;
195
+ height: 28px;
196
+ flex: none;
197
+ border: 1px solid var(--tw-line-soft);
198
+ border-radius: 8px;
199
+ object-fit: cover;
200
+ }
201
+
202
+ .brand:hover .brand-mark {
203
+ border-color: color-mix(in srgb, var(--tw-accent) 48%, transparent);
204
+ }
205
+
206
+ .brand-name {
207
+ font-family: var(--tw-display);
208
+ font-size: 17px;
209
+ font-weight: 600;
210
+ letter-spacing: -0.01em;
211
+ line-height: 1.2;
212
+ white-space: nowrap;
213
+ }
214
+
215
+ .topbar-actions {
216
+ display: flex;
217
+ flex: none;
218
+ align-items: center;
219
+ gap: 8px;
220
+ }
221
+
222
+ .topbar-btn {
223
+ display: inline-flex;
224
+ min-width: 32px;
225
+ height: 32px;
226
+ align-items: center;
227
+ justify-content: center;
228
+ padding: 0 10px;
229
+ border: 1px solid var(--tw-line);
230
+ border-radius: 10px;
231
+ background: var(--tw-surface);
232
+ color: var(--tw-muted);
233
+ font-size: 12.5px;
234
+ transition: background-color 0.12s ease, border-color 0.12s ease, color 0.12s ease;
235
+ }
236
+
237
+ .topbar-btn:hover {
238
+ background: var(--tw-hover);
239
+ color: var(--tw-ink);
240
+ }
241
+
242
+ .topbar-lang {
243
+ font-weight: 600;
244
+ letter-spacing: 0.02em;
245
+ }
246
+
247
+ .topbar-theme {
248
+ width: 32px;
249
+ padding: 0;
250
+ }
251
+
252
+ .status-pill {
253
+ display: inline-flex;
254
+ align-items: center;
255
+ gap: 7px;
256
+ padding: 5px 10px;
257
+ border: 1px solid var(--tw-line);
258
+ border-radius: 999px;
259
+ background: var(--tw-surface);
260
+ color: var(--tw-muted);
261
+ font-size: 12px;
262
+ white-space: nowrap;
263
+ }
264
+
265
+ .status-pill-text {
266
+ line-height: 1.4;
267
+ }
268
+
269
+ .status-dot {
270
+ width: 6px;
271
+ height: 6px;
272
+ flex: none;
273
+ border-radius: 50%;
274
+ background: var(--tw-faint);
275
+ }
276
+
277
+ .status-pill[data-phase="online"] .status-pill-text {
278
+ line-height: 1.4;
279
+ }
280
+
281
+ .status-dot {
282
+ background: var(--tw-ok);
283
+ box-shadow: 0 0 0 4px color-mix(in srgb, var(--tw-ok) 14%, transparent);
284
+ }
285
+
286
+ .status-pill[data-phase="pending"] .status-pill-text {
287
+ line-height: 1.4;
288
+ }
289
+
290
+ .status-dot {
291
+ background: var(--tw-warn);
292
+ }
293
+
294
+ .status-pill[data-phase="error"] .status-pill-text {
295
+ line-height: 1.4;
296
+ }
297
+
298
+ .status-dot {
299
+ background: var(--tw-err);
300
+ }
301
+
302
+ /* 4. Room rail (wide: vertical) ------------------------------------------- */
303
+
304
+ .app-main {
305
+ display: grid;
306
+ width: 100%;
307
+ max-width: 1400px;
308
+ margin: 0 auto;
309
+ padding: 0 28px 48px;
310
+ grid-template-columns: 196px minmax(0, 1fr);
311
+ }
312
+
313
+ .room-rail {
314
+ position: relative;
315
+ display: flex;
316
+ align-self: start;
317
+ flex-direction: column;
318
+ gap: 2px;
319
+ padding: 32px 24px 0 0;
320
+ border-right: 1px solid var(--tw-line-soft);
321
+ min-height: calc(100vh - 61px);
322
+ }
323
+
324
+ .room-rail::before {
325
+ content: "";
326
+ position: absolute;
327
+ top: 50px;
328
+ bottom: 24px;
329
+ left: 3px;
330
+ width: 1px;
331
+ background: var(--tw-line);
332
+ }
333
+
334
+ .room-tab {
335
+ position: relative;
336
+ display: flex;
337
+ align-items: center;
338
+ gap: 10px;
339
+ padding: 9px 10px 9px 22px;
340
+ border-radius: 10px;
341
+ color: var(--tw-muted);
342
+ font-size: 13px;
343
+ text-align: left;
344
+ transition: background-color 0.12s ease, color 0.12s ease;
345
+ }
346
+
347
+ .room-tab:hover {
348
+ background: var(--tw-hover);
349
+ color: var(--tw-ink);
350
+ }
351
+
352
+ .room-tab[aria-selected="true"] {
353
+ color: var(--tw-ink);
354
+ font-weight: 600;
355
+ }
356
+
357
+ .room-dot {
358
+ position: absolute;
359
+ top: 50%;
360
+ left: 0;
361
+ width: 7px;
362
+ height: 7px;
363
+ margin-top: -3.5px;
364
+ border: 1px solid var(--tw-line);
365
+ border-radius: 50%;
366
+ background: var(--tw-bg);
367
+ }
368
+
369
+ .room-tab[aria-selected="true"] .room-dot {
370
+ left: -1px;
371
+ width: 9px;
372
+ height: 9px;
373
+ margin-top: -4.5px;
374
+ border-color: var(--tw-accent-fill);
375
+ background: var(--tw-accent-fill);
376
+ box-shadow: 0 0 0 3px var(--tw-accent-wash);
377
+ }
378
+
379
+ .room-label {
380
+ line-height: 1.4;
381
+ }
382
+
383
+ /* 5. Content -------------------------------------------------------------- */
384
+
385
+ .content {
386
+ width: 100%;
387
+ max-width: 1040px;
388
+ min-width: 0;
389
+ padding: 32px 0 64px 40px;
390
+ container: room / inline-size;
391
+ }
392
+
393
+ .room {
394
+ min-width: 0;
395
+ }
396
+
397
+ .room-head {
398
+ margin-bottom: 24px;
399
+ }
400
+
401
+ .room-title {
402
+ margin: 0 0 6px;
403
+ font-family: var(--tw-display);
404
+ font-size: 24px;
405
+ font-weight: 600;
406
+ letter-spacing: -0.01em;
407
+ line-height: 1.2;
408
+ text-wrap: balance;
409
+ }
410
+
411
+ .room-subtitle {
412
+ max-width: 62ch;
413
+ color: var(--tw-muted);
414
+ font-size: 13px;
415
+ }
416
+
417
+ /* 6. Hero ----------------------------------------------------------------- */
418
+
419
+ .hero {
420
+ display: flex;
421
+ flex-wrap: wrap;
422
+ align-items: flex-end;
423
+ justify-content: space-between;
424
+ gap: 20px;
425
+ margin-bottom: 8px;
426
+ }
427
+
428
+ .hero-main {
429
+ min-width: 0;
430
+ }
431
+
432
+ .hero-status-row {
433
+ display: flex;
434
+ flex-wrap: wrap;
435
+ align-items: center;
436
+ gap: 10px;
437
+ }
438
+
439
+ .hero-status {
440
+ font-family: var(--tw-display);
441
+ font-size: 28px;
442
+ font-weight: 600;
443
+ letter-spacing: -0.01em;
444
+ line-height: 1.15;
445
+ color: var(--tw-ink);
446
+ }
447
+
448
+ .hero[data-phase="online"] .hero-status {
449
+ color: var(--tw-ok);
450
+ }
451
+
452
+ .hero[data-phase="error"] .hero-status {
453
+ color: var(--tw-err);
454
+ }
455
+
456
+ .hero-dot {
457
+ width: 8px;
458
+ height: 8px;
459
+ flex: none;
460
+ border-radius: 50%;
461
+ background: var(--tw-faint);
462
+ }
463
+
464
+ .hero[data-phase="online"] .hero-dot {
465
+ background: var(--tw-ok);
466
+ box-shadow: 0 0 0 6px color-mix(in srgb, var(--tw-ok) 16%, transparent);
467
+ }
468
+
469
+ .hero[data-phase="pending"] .hero-dot,
470
+ .hero[data-phase="starting"] .hero-dot,
471
+ .hero[data-phase="restarting"] .hero-dot,
472
+ .hero[data-phase="stopping"] .hero-dot {
473
+ background: var(--tw-warn);
474
+ }
475
+
476
+ .hero[data-phase="error"] .hero-dot {
477
+ background: var(--tw-err);
478
+ }
479
+
480
+ .hero-fact {
481
+ margin-top: 6px;
482
+ color: var(--tw-muted);
483
+ font-size: 12.5px;
484
+ }
485
+
486
+ .hero-actions-block {
487
+ display: flex;
488
+ flex-direction: column;
489
+ align-items: flex-end;
490
+ gap: 8px;
491
+ }
492
+
493
+ .hero-actions {
494
+ display: flex;
495
+ flex-wrap: wrap;
496
+ justify-content: flex-end;
497
+ gap: 8px;
498
+ }
499
+
500
+ .hero-rotate-note {
501
+ max-width: 46ch;
502
+ margin: 0;
503
+ color: var(--tw-muted);
504
+ font-size: 12px;
505
+ text-align: right;
506
+ }
507
+
508
+ /* 7. Buttons -------------------------------------------------------------- */
509
+
510
+ .btn {
511
+ display: inline-flex;
512
+ height: 32px;
513
+ align-items: center;
514
+ justify-content: center;
515
+ gap: 6px;
516
+ padding: 0 12px;
517
+ border: 1px solid transparent;
518
+ border-radius: 10px;
519
+ font-size: 13px;
520
+ font-weight: 500;
521
+ line-height: 1;
522
+ white-space: nowrap;
523
+ transition: background-color 0.12s ease, border-color 0.12s ease, color 0.12s ease;
524
+ }
525
+
526
+ .btn[disabled] {
527
+ opacity: 0.45;
528
+ cursor: not-allowed;
529
+ }
530
+
531
+ .btn-primary {
532
+ border-color: var(--tw-accent-fill);
533
+ background: var(--tw-accent-fill);
534
+ color: var(--tw-ticket-bg);
535
+ }
536
+
537
+ .btn-primary:hover:not([disabled]) {
538
+ background: color-mix(in srgb, var(--tw-accent-fill) 86%, var(--tw-ink));
539
+ border-color: color-mix(in srgb, var(--tw-accent-fill) 86%, var(--tw-ink));
540
+ }
541
+
542
+ .btn-secondary {
543
+ border-color: var(--tw-line);
544
+ background: var(--tw-surface);
545
+ color: var(--tw-ink);
546
+ }
547
+
548
+ .btn-secondary:hover:not([disabled]) {
549
+ background: var(--tw-hover);
550
+ }
551
+
552
+ .btn-ghost {
553
+ border-color: transparent;
554
+ background: transparent;
555
+ color: var(--tw-muted);
556
+ }
557
+
558
+ .btn-ghost:hover:not([disabled]) {
559
+ background: var(--tw-hover);
560
+ color: var(--tw-ink);
561
+ }
562
+
563
+ .btn-danger {
564
+ border-color: var(--tw-err);
565
+ background: var(--tw-err);
566
+ color: var(--tw-surface);
567
+ }
568
+
569
+ .btn-ghost.is-armed {
570
+ border-color: color-mix(in srgb, var(--tw-err) 40%, transparent);
571
+ background: color-mix(in srgb, var(--tw-err) 10%, transparent);
572
+ color: var(--tw-err);
573
+ }
574
+
575
+ .btn-ghost[data-testid="hero-rotate"]:hover:not([disabled]) {
576
+ color: var(--tw-err);
577
+ background: color-mix(in srgb, var(--tw-err) 10%, transparent);
578
+ }
579
+
580
+ .icon-btn {
581
+ display: inline-flex;
582
+ width: 32px;
583
+ height: 32px;
584
+ flex: none;
585
+ align-items: center;
586
+ justify-content: center;
587
+ border-radius: 10px;
588
+ color: var(--tw-muted);
589
+ transition: background-color 0.12s ease, color 0.12s ease;
590
+ }
591
+
592
+ .icon-btn:hover:not([disabled]) {
593
+ background: var(--tw-hover);
594
+ color: var(--tw-ink);
595
+ }
596
+
597
+ .icon-btn-danger:hover:not([disabled]) {
598
+ color: var(--tw-err);
599
+ background: color-mix(in srgb, var(--tw-err) 10%, transparent);
600
+ }
601
+
602
+ /* 8. Pills ---------------------------------------------------------------- */
603
+
604
+ .pill {
605
+ display: inline-flex;
606
+ align-items: center;
607
+ padding: 1px 8px;
608
+ border: 1px solid var(--tw-line);
609
+ border-radius: 999px;
610
+ font-size: 11px;
611
+ line-height: 1.5;
612
+ white-space: nowrap;
613
+ }
614
+
615
+ .pill-pq {
616
+ border-color: color-mix(in srgb, var(--tw-pq) 30%, transparent);
617
+ background: var(--tw-pq-wash);
618
+ color: var(--tw-pq);
619
+ }
620
+
621
+ .pill-accent {
622
+ border-color: color-mix(in srgb, var(--tw-accent) 30%, transparent);
623
+ background: var(--tw-accent-wash);
624
+ color: var(--tw-accent);
625
+ }
626
+
627
+ .pill-quiet {
628
+ background: var(--tw-surface);
629
+ color: var(--tw-muted);
630
+ }
631
+
632
+ /* 9. Tunnel line ---------------------------------------------------------- */
633
+
634
+ .tunnel {
635
+ margin: 4px 0 18px;
636
+ }
637
+
638
+ .tunnel-stage {
639
+ position: relative;
640
+ height: 64px;
641
+ }
642
+
643
+ .tunnel-cat {
644
+ position: absolute;
645
+ bottom: 11px;
646
+ left: 0;
647
+ width: 32px;
648
+ height: 32px;
649
+ color: var(--tw-ink);
650
+ opacity: 0.6;
651
+ }
652
+
653
+ .tunnel-wire {
654
+ position: absolute;
655
+ top: 0;
656
+ right: 18px;
657
+ bottom: 0;
658
+ left: 28px;
659
+ width: calc(100% - 46px);
660
+ height: 100%;
661
+ overflow: visible;
662
+ color: var(--tw-line);
663
+ }
664
+
665
+ .tunnel-line-group path {
666
+ fill: none;
667
+ stroke: currentColor;
668
+ stroke-width: 2;
669
+ stroke-linecap: round;
670
+ vector-effect: non-scaling-stroke;
671
+ }
672
+
673
+ .tunnel-device {
674
+ position: absolute;
675
+ top: 34px;
676
+ right: 0;
677
+ width: 18px;
678
+ height: 12px;
679
+ color: var(--tw-faint);
680
+ }
681
+
682
+ .tunnel[data-wire="online"] .tunnel-wire {
683
+ color: var(--tw-ok);
684
+ }
685
+
686
+ .tunnel[data-wire="pending"] .tunnel-wire {
687
+ color: var(--tw-warn);
688
+ }
689
+
690
+ .tunnel[data-wire="pending"] .tunnel-line-group path {
691
+ stroke-dasharray: 8 8;
692
+ animation: tw-flow 1.2s linear infinite;
693
+ }
694
+
695
+ .tunnel[data-wire="stopped"] .tunnel-line-group path {
696
+ stroke-dasharray: 1 7;
697
+ }
698
+
699
+ .tunnel[data-wire="error"] .tunnel-wire {
700
+ color: var(--tw-err);
701
+ }
702
+
703
+ .tunnel-labels {
704
+ display: flex;
705
+ justify-content: space-between;
706
+ margin-top: 2px;
707
+ padding-right: 2px;
708
+ color: var(--tw-faint);
709
+ font-size: 11px;
710
+ }
711
+
712
+ @keyframes tw-flow {
713
+ to {
714
+ stroke-dashoffset: -16;
715
+ }
716
+ }
717
+
718
+ /* 10. Ticket -------------------------------------------------------------- */
719
+
720
+ .ticket {
721
+ overflow: hidden;
722
+ margin-bottom: 20px;
723
+ border: 1px solid transparent;
724
+ border-radius: 16px;
725
+ background: var(--tw-ticket-bg);
726
+ box-shadow: 0 18px 40px -28px rgba(0, 0, 0, 0.55);
727
+ color: var(--tw-ticket-ink);
728
+ }
729
+
730
+ [data-theme="dark"] .ticket {
731
+ border-color: rgba(242, 180, 92, 0.30);
732
+ box-shadow: none;
733
+ }
734
+
735
+ .ticket-grid {
736
+ display: grid;
737
+ min-height: 172px;
738
+ grid-template-columns: minmax(0, 1fr) 148px;
739
+ }
740
+
741
+ .ticket-main {
742
+ min-width: 0;
743
+ padding: 20px 22px 18px;
744
+ }
745
+
746
+ .ticket-title {
747
+ margin-bottom: 10px;
748
+ font-family: var(--tw-display);
749
+ font-size: 17px;
750
+ font-weight: 600;
751
+ letter-spacing: -0.01em;
752
+ color: var(--tw-ticket-ink);
753
+ }
754
+
755
+ .ticket-address-row {
756
+ display: flex;
757
+ flex-wrap: wrap;
758
+ align-items: flex-start;
759
+ justify-content: space-between;
760
+ gap: 10px 12px;
761
+ }
762
+
763
+ .ticket-address {
764
+ flex: 1 1 auto;
765
+ min-width: 0;
766
+ color: var(--tw-ticket-ink);
767
+ font-family: var(--tw-mono);
768
+ font-size: 12.5px;
769
+ letter-spacing: 0.02em;
770
+ line-height: 1.5;
771
+ overflow-wrap: anywhere;
772
+ word-break: break-all;
773
+ }
774
+
775
+ .ticket-address.is-empty-copy {
776
+ color: var(--tw-ticket-muted);
777
+ font-family: var(--tw-body);
778
+ font-size: 13px;
779
+ letter-spacing: 0;
780
+ }
781
+
782
+ .ticket-action-slot {
783
+ display: inline-flex;
784
+ align-items: center;
785
+ }
786
+
787
+ .ticket-address-actions {
788
+ display: flex;
789
+ flex: none;
790
+ flex-wrap: wrap;
791
+ gap: 6px;
792
+ }
793
+
794
+ .ticket .btn {
795
+ height: 28px;
796
+ padding: 0 10px;
797
+ font-size: 12px;
798
+ }
799
+
800
+ .ticket .btn-ghost {
801
+ color: var(--tw-ticket-muted);
802
+ }
803
+
804
+ .ticket .btn-ghost:hover:not([disabled]) {
805
+ background: color-mix(in srgb, var(--tw-ticket-ink) 12%, transparent);
806
+ color: var(--tw-ticket-ink);
807
+ }
808
+
809
+ .ticket .btn-ghost.is-copied,
810
+ .ticket .btn-ghost.is-copy-failed {
811
+ color: var(--tw-ticket-ink);
812
+ }
813
+
814
+ .ticket .btn-secondary {
815
+ border-color: var(--tw-ticket-line);
816
+ background: color-mix(in srgb, var(--tw-ticket-ink) 12%, transparent);
817
+ color: var(--tw-ticket-ink);
818
+ }
819
+
820
+ .ticket .btn-secondary:hover:not([disabled]) {
821
+ background: color-mix(in srgb, var(--tw-ticket-ink) 18%, transparent);
822
+ }
823
+
824
+ .ticket-hint {
825
+ margin-top: 8px;
826
+ color: var(--tw-ticket-muted);
827
+ font-size: 11.5px;
828
+ }
829
+
830
+ .ticket-divider {
831
+ margin: 14px 0 10px;
832
+ border-top: 1.5px dashed var(--tw-ticket-line);
833
+ }
834
+
835
+ .ticket-label {
836
+ margin-bottom: 6px;
837
+ color: var(--tw-ticket-muted);
838
+ font-size: 11.5px;
839
+ }
840
+
841
+ .ticket-code-slot {
842
+ min-width: 0;
843
+ }
844
+
845
+ .ticket .code-block {
846
+ padding: 6px 8px;
847
+ border: 0;
848
+ border-radius: 8px;
849
+ background: color-mix(in srgb, var(--tw-ticket-ink) 8%, transparent);
850
+ }
851
+
852
+ .ticket .code-text {
853
+ color: var(--tw-ticket-ink);
854
+ font-size: 11.5px;
855
+ }
856
+
857
+ .ticket .code-empty {
858
+ color: var(--tw-ticket-muted);
859
+ font-size: 11.5px;
860
+ }
861
+
862
+ .ticket .code-block .btn {
863
+ height: 24px;
864
+ font-size: 11.5px;
865
+ }
866
+
867
+ .ticket-section {
868
+ min-width: 0;
869
+ }
870
+
871
+ .ticket-local-row {
872
+ display: flex;
873
+ flex-wrap: wrap;
874
+ align-items: center;
875
+ gap: 8px;
876
+ }
877
+
878
+ .ticket-local-url {
879
+ flex: 0 1 auto;
880
+ }
881
+
882
+ .ticket-link {
883
+ display: inline-block;
884
+ margin-top: 8px;
885
+ color: var(--tw-ticket-muted);
886
+ font-size: 12px;
887
+ text-decoration: underline;
888
+ text-underline-offset: 2px;
889
+ }
890
+
891
+ .ticket-link:hover {
892
+ color: var(--tw-ticket-ink);
893
+ }
894
+
895
+ .ticket-empty-row {
896
+ display: flex;
897
+ flex-wrap: wrap;
898
+ align-items: center;
899
+ justify-content: space-between;
900
+ gap: 10px;
901
+ margin-top: 14px;
902
+ }
903
+
904
+ .ticket-empty-note {
905
+ color: var(--tw-ticket-muted);
906
+ font-size: 12.5px;
907
+ }
908
+
909
+ .ticket-stub {
910
+ position: relative;
911
+ display: flex;
912
+ flex-direction: column;
913
+ align-items: center;
914
+ gap: 10px;
915
+ padding: 16px 14px;
916
+ border-left: 1.5px dashed var(--tw-ticket-line);
917
+ }
918
+
919
+ .ticket-stub::before,
920
+ .ticket-stub::after {
921
+ content: "";
922
+ position: absolute;
923
+ left: -6px;
924
+ width: 12px;
925
+ height: 12px;
926
+ border-radius: 50%;
927
+ background: var(--tw-bg);
928
+ }
929
+
930
+ .ticket-stub::before {
931
+ top: -6px;
932
+ }
933
+
934
+ .ticket-stub::after {
935
+ bottom: -6px;
936
+ }
937
+
938
+ /* The footnote pushes the grid up, so the lower punch would float above it. */
939
+ @container room (min-width: 640px) {
940
+ .ticket.has-footnote .ticket-stub::after {
941
+ display: none;
942
+ }
943
+
944
+ /* The 148px stub is the resting width; the 156px QR board needs the
945
+ expanded stub, so only the open state grows the stub. */
946
+ .ticket.is-qr-open .ticket-grid {
947
+ grid-template-columns: minmax(0, 1fr) 208px;
948
+ }
949
+ }
950
+
951
+ @media (min-width: 1000px) {
952
+ .ticket.has-footnote .ticket-stub::after {
953
+ display: none;
954
+ }
955
+
956
+ .ticket.is-qr-open .ticket-grid {
957
+ grid-template-columns: minmax(0, 1fr) 208px;
958
+ }
959
+ }
960
+
961
+ .ticket-stub-row {
962
+ display: flex;
963
+ flex-direction: column;
964
+ align-items: center;
965
+ gap: 6px;
966
+ }
967
+
968
+ .cat-seal {
969
+ position: relative;
970
+ display: inline-flex;
971
+ flex: none;
972
+ transform: rotate(-6deg);
973
+ }
974
+
975
+ .cat-seal-img {
976
+ width: 100%;
977
+ height: 100%;
978
+ border: 1.5px solid var(--tw-accent-fill);
979
+ border-radius: 50%;
980
+ object-fit: cover;
981
+ object-position: 50% 45%;
982
+ background: var(--tw-surface);
983
+ }
984
+
985
+ .cat-seal .ribbon-bow {
986
+ position: absolute;
987
+ top: -7px;
988
+ right: -8px;
989
+ transform: rotate(9deg);
990
+ }
991
+
992
+ .ticket.is-stamped .cat-seal {
993
+ animation: tw-stamp 120ms ease-out;
994
+ }
995
+
996
+ .ticket-wordmark {
997
+ color: var(--tw-ticket-muted);
998
+ font-family: var(--tw-display);
999
+ font-size: 11px;
1000
+ letter-spacing: 0.18em;
1001
+ }
1002
+
1003
+ .ticket-qr {
1004
+ display: flex;
1005
+ width: 100%;
1006
+ flex-direction: column;
1007
+ align-items: center;
1008
+ gap: 6px;
1009
+ }
1010
+
1011
+ .ticket-qr-board-slot {
1012
+ width: 100%;
1013
+ }
1014
+
1015
+ .qr-board {
1016
+ display: flex;
1017
+ justify-content: center;
1018
+ padding: 12px;
1019
+ border-radius: 10px;
1020
+ background: #FFFFFF;
1021
+ }
1022
+
1023
+ .qr-board svg {
1024
+ width: 100%;
1025
+ height: auto;
1026
+ max-width: 156px;
1027
+ shape-rendering: crispEdges;
1028
+ }
1029
+
1030
+ .ticket-qr-caption {
1031
+ color: var(--tw-ticket-muted);
1032
+ font-size: 11px;
1033
+ text-align: center;
1034
+ }
1035
+
1036
+ .ticket-qr-failure {
1037
+ color: var(--tw-ticket-muted);
1038
+ font-size: 11px;
1039
+ text-align: center;
1040
+ }
1041
+
1042
+ .ticket-footnote {
1043
+ padding: 10px 22px;
1044
+ border-top: 1.5px dashed var(--tw-ticket-line);
1045
+ color: var(--tw-ticket-muted);
1046
+ font-size: 11px;
1047
+ }
1048
+
1049
+ @keyframes tw-stamp {
1050
+ from {
1051
+ transform: scale(0.94) rotate(-8deg);
1052
+ }
1053
+ to {
1054
+ transform: scale(1) rotate(-6deg);
1055
+ }
1056
+ }
1057
+
1058
+ /* 11. Post-quantum callout ------------------------------------------------ */
1059
+
1060
+ .pq-callout {
1061
+ display: flex;
1062
+ align-items: flex-start;
1063
+ gap: 12px;
1064
+ margin-bottom: 20px;
1065
+ padding: 14px 16px;
1066
+ border: 1px solid color-mix(in srgb, var(--tw-pq) 24%, transparent);
1067
+ border-radius: 14px;
1068
+ background: var(--tw-pq-wash);
1069
+ }
1070
+
1071
+ .pq-callout-icon {
1072
+ display: inline-flex;
1073
+ margin-top: 2px;
1074
+ flex: none;
1075
+ color: var(--tw-pq);
1076
+ }
1077
+
1078
+ .pq-callout-body {
1079
+ display: flex;
1080
+ min-width: 0;
1081
+ flex-direction: column;
1082
+ align-items: flex-start;
1083
+ gap: 6px;
1084
+ }
1085
+
1086
+ .pq-callout-title {
1087
+ color: var(--tw-pq);
1088
+ font-size: 15px;
1089
+ font-weight: 600;
1090
+ line-height: 1.4;
1091
+ }
1092
+
1093
+ .pq-callout-text {
1094
+ color: var(--tw-muted);
1095
+ font-size: 12.5px;
1096
+ line-height: 1.6;
1097
+ }
1098
+
1099
+ .pq-callout .btn {
1100
+ height: 28px;
1101
+ padding: 0 10px;
1102
+ color: var(--tw-pq);
1103
+ font-size: 12.5px;
1104
+ }
1105
+
1106
+ .pq-callout .btn:hover:not([disabled]) {
1107
+ background: color-mix(in srgb, var(--tw-pq) 12%, transparent);
1108
+ color: var(--tw-pq);
1109
+ }
1110
+
1111
+ /* 11b. Program banner ----------------------------------------------------- */
1112
+
1113
+ .program-banner {
1114
+ display: flex;
1115
+ flex-wrap: wrap;
1116
+ align-items: flex-start;
1117
+ gap: 12px;
1118
+ margin-bottom: 20px;
1119
+ padding: 12px 14px;
1120
+ border: 1px solid color-mix(in srgb, var(--tw-warn) 30%, transparent);
1121
+ border-radius: 12px;
1122
+ background: color-mix(in srgb, var(--tw-warn) 8%, transparent);
1123
+ }
1124
+
1125
+ .program-banner-icon {
1126
+ display: inline-flex;
1127
+ flex: none;
1128
+ margin-top: 2px;
1129
+ color: var(--tw-warn);
1130
+ }
1131
+
1132
+ .program-banner-copy {
1133
+ flex: 1;
1134
+ min-width: 0;
1135
+ }
1136
+
1137
+ .program-banner-title {
1138
+ font-size: 13px;
1139
+ font-weight: 600;
1140
+ }
1141
+
1142
+ .program-banner-body {
1143
+ margin-top: 2px;
1144
+ color: var(--tw-muted);
1145
+ font-size: 12.5px;
1146
+ }
1147
+
1148
+ .program-banner .btn {
1149
+ height: 28px;
1150
+ align-self: center;
1151
+ }
1152
+
1153
+ /* 12. Steps --------------------------------------------------------------- */
1154
+
1155
+ .steps {
1156
+ padding-top: 20px;
1157
+ border-top: 1px solid var(--tw-line-soft);
1158
+ }
1159
+
1160
+ .steps-title {
1161
+ margin-bottom: 16px;
1162
+ font-family: var(--tw-display);
1163
+ font-size: 20px;
1164
+ font-weight: 600;
1165
+ letter-spacing: -0.01em;
1166
+ line-height: 1.2;
1167
+ }
1168
+
1169
+ .steps-grid {
1170
+ display: grid;
1171
+ gap: 20px;
1172
+ grid-template-columns: repeat(3, minmax(0, 1fr));
1173
+ }
1174
+
1175
+ .step {
1176
+ display: flex;
1177
+ min-width: 0;
1178
+ gap: 10px;
1179
+ }
1180
+
1181
+ .step-num {
1182
+ display: inline-flex;
1183
+ width: 24px;
1184
+ height: 24px;
1185
+ align-items: center;
1186
+ justify-content: center;
1187
+ flex: none;
1188
+ margin-top: 1px;
1189
+ border: 1px solid var(--tw-line);
1190
+ border-radius: 50%;
1191
+ color: var(--tw-muted);
1192
+ font-family: var(--tw-display);
1193
+ font-size: 12px;
1194
+ }
1195
+
1196
+ .step-body {
1197
+ min-width: 0;
1198
+ }
1199
+
1200
+ .step-title {
1201
+ margin-bottom: 4px;
1202
+ font-size: 13px;
1203
+ font-weight: 600;
1204
+ line-height: 1.4;
1205
+ }
1206
+
1207
+ .step-text {
1208
+ margin-bottom: 8px;
1209
+ color: var(--tw-muted);
1210
+ font-size: 12.5px;
1211
+ }
1212
+
1213
+ .step-link {
1214
+ color: var(--tw-accent);
1215
+ font-size: 12.5px;
1216
+ text-decoration: underline;
1217
+ text-underline-offset: 2px;
1218
+ }
1219
+
1220
+ .step-code {
1221
+ min-width: 0;
1222
+ }
1223
+
1224
+ /* 12b. Keeper ------------------------------------------------------------- */
1225
+
1226
+ .keeper {
1227
+ display: flex;
1228
+ flex-wrap: wrap;
1229
+ align-items: center;
1230
+ gap: 16px 18px;
1231
+ margin-top: 24px;
1232
+ padding: 18px 20px;
1233
+ border: 1px solid var(--tw-line);
1234
+ border-radius: 16px;
1235
+ background:
1236
+ radial-gradient(140% 180% at 0% 0%, var(--tw-accent-wash), transparent 46%),
1237
+ var(--tw-surface);
1238
+ }
1239
+
1240
+ .keeper-art {
1241
+ position: relative;
1242
+ flex: none;
1243
+ }
1244
+
1245
+ .keeper-portrait {
1246
+ width: 88px;
1247
+ height: 88px;
1248
+ border: 2px solid var(--tw-surface);
1249
+ border-radius: 50%;
1250
+ box-shadow: 0 0 0 1px var(--tw-line);
1251
+ object-fit: cover;
1252
+ object-position: 50% 25%;
1253
+ }
1254
+
1255
+ .keeper-art .ribbon-bow {
1256
+ position: absolute;
1257
+ top: -7px;
1258
+ right: -9px;
1259
+ transform: rotate(9deg);
1260
+ }
1261
+
1262
+ .keeper-copy {
1263
+ flex: 1 1 260px;
1264
+ min-width: 0;
1265
+ }
1266
+
1267
+ .keeper-title {
1268
+ display: flex;
1269
+ align-items: center;
1270
+ gap: 8px;
1271
+ color: var(--tw-ink);
1272
+ font-family: var(--tw-display);
1273
+ font-size: 19px;
1274
+ font-weight: 600;
1275
+ line-height: 1.25;
1276
+ }
1277
+
1278
+ .keeper-title .pixel-cat {
1279
+ flex: none;
1280
+ padding: 2px;
1281
+ border-radius: 7px;
1282
+ background: var(--tw-surface-soft);
1283
+ box-shadow: 0 0 0 1px var(--tw-line-soft);
1284
+ }
1285
+
1286
+ .keeper-text {
1287
+ margin-top: 5px;
1288
+ max-width: 44em;
1289
+ color: var(--tw-muted);
1290
+ font-size: 12.5px;
1291
+ line-height: 1.65;
1292
+ }
1293
+
1294
+ .keeper-credit {
1295
+ margin-top: 7px;
1296
+ color: var(--tw-faint);
1297
+ font-size: 10.5px;
1298
+ letter-spacing: 0.02em;
1299
+ }
1300
+
1301
+ .keeper-plush {
1302
+ flex: none;
1303
+ margin-left: auto;
1304
+ color: var(--tw-ink);
1305
+ opacity: 0.82;
1306
+ }
1307
+
1308
+ /* 13. Code, switches, fields --------------------------------------------- */
1309
+
1310
+ .code-block {
1311
+ display: flex;
1312
+ min-width: 0;
1313
+ align-items: center;
1314
+ gap: 8px;
1315
+ padding: 6px 8px;
1316
+ border: 1px solid var(--tw-line-soft);
1317
+ border-radius: 10px;
1318
+ background: var(--tw-surface);
1319
+ }
1320
+
1321
+ .code-text {
1322
+ flex: 1;
1323
+ min-width: 0;
1324
+ overflow-x: auto;
1325
+ color: var(--tw-ink);
1326
+ font-family: var(--tw-mono);
1327
+ font-size: 12px;
1328
+ white-space: nowrap;
1329
+ scrollbar-width: thin;
1330
+ }
1331
+
1332
+ .code-block .btn {
1333
+ height: 24px;
1334
+ padding: 0 8px;
1335
+ font-size: 11.5px;
1336
+ }
1337
+
1338
+ .code-empty {
1339
+ color: var(--tw-faint);
1340
+ font-size: 12.5px;
1341
+ }
1342
+
1343
+ .switch {
1344
+ position: relative;
1345
+ width: 40px;
1346
+ height: 24px;
1347
+ flex: none;
1348
+ border: 1px solid var(--tw-line);
1349
+ border-radius: 999px;
1350
+ background: color-mix(in srgb, var(--tw-muted) 26%, transparent);
1351
+ transition: background-color 0.12s ease, border-color 0.12s ease;
1352
+ }
1353
+
1354
+ .switch::before {
1355
+ content: "";
1356
+ position: absolute;
1357
+ inset: -5px -4px;
1358
+ }
1359
+
1360
+ .switch .switch-knob {
1361
+ position: absolute;
1362
+ top: 2px;
1363
+ left: 2px;
1364
+ width: 18px;
1365
+ height: 18px;
1366
+ border: 1px solid var(--tw-line);
1367
+ border-radius: 50%;
1368
+ background: var(--tw-surface);
1369
+ transition: transform 0.12s ease, background-color 0.12s ease;
1370
+ }
1371
+
1372
+ .switch.is-on {
1373
+ border-color: var(--tw-accent-fill);
1374
+ background: var(--tw-accent-fill);
1375
+ }
1376
+
1377
+ .switch.is-on .switch-knob {
1378
+ border-color: transparent;
1379
+ background: var(--tw-surface);
1380
+ transform: translateX(16px);
1381
+ }
1382
+
1383
+ .switch[disabled] {
1384
+ opacity: 0.45;
1385
+ cursor: not-allowed;
1386
+ }
1387
+
1388
+ .field {
1389
+ display: grid;
1390
+ gap: 10px;
1391
+ }
1392
+
1393
+ .field-label {
1394
+ min-width: 0;
1395
+ }
1396
+
1397
+ .field-label-line {
1398
+ display: flex;
1399
+ align-items: center;
1400
+ gap: 6px;
1401
+ }
1402
+
1403
+ .field-name {
1404
+ color: var(--tw-ink);
1405
+ font-size: 13px;
1406
+ font-weight: 500;
1407
+ }
1408
+
1409
+ .field-hint {
1410
+ max-width: 58ch;
1411
+ margin-top: 2px;
1412
+ color: var(--tw-faint);
1413
+ font-size: 12px;
1414
+ line-height: 1.55;
1415
+ }
1416
+
1417
+ .field-hint.is-warning {
1418
+ color: var(--tw-warn);
1419
+ }
1420
+
1421
+ .field-control {
1422
+ display: flex;
1423
+ min-width: 0;
1424
+ flex-direction: column;
1425
+ gap: 6px;
1426
+ }
1427
+
1428
+ .field-inline .field-control {
1429
+ align-items: flex-start;
1430
+ }
1431
+
1432
+ .field-block {
1433
+ display: flex;
1434
+ flex-direction: column;
1435
+ gap: 8px;
1436
+ padding-top: 4px;
1437
+ }
1438
+
1439
+ .field-note {
1440
+ min-width: 0;
1441
+ }
1442
+
1443
+ .subhead {
1444
+ margin: 0;
1445
+ color: var(--tw-ink);
1446
+ font-size: 12.5px;
1447
+ font-weight: 600;
1448
+ }
1449
+
1450
+ .actions-row {
1451
+ display: flex;
1452
+ flex-wrap: wrap;
1453
+ gap: 8px;
1454
+ }
1455
+
1456
+ .override-dot {
1457
+ width: 5px;
1458
+ height: 5px;
1459
+ flex: none;
1460
+ border-radius: 50%;
1461
+ background: var(--tw-accent-fill);
1462
+ }
1463
+
1464
+ .input,
1465
+ .textarea,
1466
+ .select-input {
1467
+ border: 1px solid var(--tw-line);
1468
+ border-radius: 10px;
1469
+ background: var(--tw-surface);
1470
+ color: var(--tw-ink);
1471
+ font-size: 13px;
1472
+ }
1473
+
1474
+ .input {
1475
+ width: 100%;
1476
+ height: 34px;
1477
+ padding: 0 10px;
1478
+ }
1479
+
1480
+ .input-mono {
1481
+ font-family: var(--tw-mono);
1482
+ font-size: 12.5px;
1483
+ }
1484
+
1485
+ .input[type="number"] {
1486
+ width: 120px;
1487
+ font-family: var(--tw-mono);
1488
+ font-size: 12.5px;
1489
+ text-align: right;
1490
+ }
1491
+
1492
+ .input:hover,
1493
+ .textarea:hover,
1494
+ .select-input:hover {
1495
+ border-color: color-mix(in srgb, var(--tw-ink) 22%, transparent);
1496
+ }
1497
+
1498
+ .input:focus-visible,
1499
+ .textarea:focus-visible,
1500
+ .select-input:focus-visible {
1501
+ outline-offset: 0;
1502
+ }
1503
+
1504
+ .input[disabled],
1505
+ .textarea[disabled],
1506
+ .select-input[disabled] {
1507
+ opacity: 0.45;
1508
+ cursor: not-allowed;
1509
+ }
1510
+
1511
+ .select {
1512
+ position: relative;
1513
+ display: inline-flex;
1514
+ width: 100%;
1515
+ max-width: 340px;
1516
+ }
1517
+
1518
+ .select-input {
1519
+ width: 100%;
1520
+ height: 34px;
1521
+ padding: 0 30px 0 10px;
1522
+ cursor: pointer;
1523
+ appearance: none;
1524
+ -webkit-appearance: none;
1525
+ }
1526
+
1527
+ .select-chevron {
1528
+ position: absolute;
1529
+ top: 50%;
1530
+ right: 13px;
1531
+ width: 7px;
1532
+ height: 7px;
1533
+ margin-top: -5px;
1534
+ border-right: 1.5px solid var(--tw-muted);
1535
+ border-bottom: 1.5px solid var(--tw-muted);
1536
+ transform: rotate(45deg);
1537
+ pointer-events: none;
1538
+ }
1539
+
1540
+ .select.is-disabled .select-chevron,
1541
+ .select.is-disabled .select-input {
1542
+ opacity: 0.45;
1543
+ }
1544
+
1545
+ .textarea {
1546
+ width: 100%;
1547
+ min-height: 96px;
1548
+ padding: 8px 10px;
1549
+ font-family: var(--tw-mono);
1550
+ font-size: 12.5px;
1551
+ line-height: 1.55;
1552
+ resize: vertical;
1553
+ }
1554
+
1555
+ .mappings {
1556
+ display: flex;
1557
+ flex-direction: column;
1558
+ gap: 8px;
1559
+ }
1560
+
1561
+ .mapping-row {
1562
+ display: grid;
1563
+ align-items: center;
1564
+ gap: 8px;
1565
+ grid-template-columns: 110px 10px minmax(0, 1fr) auto;
1566
+ }
1567
+
1568
+ .mapping-row .input {
1569
+ width: 100%;
1570
+ }
1571
+
1572
+ .mapping-colon {
1573
+ color: var(--tw-faint);
1574
+ font-family: var(--tw-mono);
1575
+ text-align: center;
1576
+ }
1577
+
1578
+ .mapping-empty {
1579
+ color: var(--tw-faint);
1580
+ font-size: 12.5px;
1581
+ }
1582
+
1583
+ /* 14. Drawers ------------------------------------------------------------- */
1584
+
1585
+ .drawers {
1586
+ display: flex;
1587
+ flex-direction: column;
1588
+ gap: 16px;
1589
+ }
1590
+
1591
+ .drawer {
1592
+ overflow: hidden;
1593
+ border: 1px solid var(--tw-line);
1594
+ border-radius: 16px;
1595
+ background: var(--tw-surface);
1596
+ }
1597
+
1598
+ .drawer-heading-wrap {
1599
+ margin: 0;
1600
+ font: inherit;
1601
+ }
1602
+
1603
+ .drawer-head {
1604
+ display: flex;
1605
+ width: 100%;
1606
+ align-items: center;
1607
+ gap: 10px;
1608
+ padding: 14px 18px;
1609
+ color: var(--tw-ink);
1610
+ text-align: left;
1611
+ transition: background-color 0.12s ease;
1612
+ }
1613
+
1614
+ .drawer-head:hover {
1615
+ background: var(--tw-hover);
1616
+ }
1617
+
1618
+ .drawer-head:focus-visible {
1619
+ outline-offset: -2px;
1620
+ }
1621
+
1622
+ .drawer-heading {
1623
+ display: inline-flex;
1624
+ align-items: center;
1625
+ gap: 6px;
1626
+ flex: none;
1627
+ }
1628
+
1629
+ .drawer-title {
1630
+ font-size: 14px;
1631
+ font-weight: 600;
1632
+ white-space: nowrap;
1633
+ }
1634
+
1635
+ .drawer-summary {
1636
+ flex: 0 1 auto;
1637
+ margin-left: auto;
1638
+ overflow: hidden;
1639
+ color: var(--tw-muted);
1640
+ font-size: 12px;
1641
+ text-overflow: ellipsis;
1642
+ white-space: nowrap;
1643
+ }
1644
+
1645
+ .drawer-hair {
1646
+ height: 1px;
1647
+ min-width: 12px;
1648
+ flex: 1 1 16px;
1649
+ border-top: 1px dashed var(--tw-line);
1650
+ }
1651
+
1652
+ .drawer-chevron {
1653
+ display: inline-flex;
1654
+ flex: none;
1655
+ color: var(--tw-faint);
1656
+ transition: transform 0.12s ease;
1657
+ }
1658
+
1659
+ .drawer.is-open .drawer-chevron {
1660
+ transform: rotate(180deg);
1661
+ }
1662
+
1663
+ .drawer-body {
1664
+ border-top: 1px solid var(--tw-line-soft);
1665
+ background: var(--tw-surface-soft);
1666
+ }
1667
+
1668
+ .drawer-body-inner {
1669
+ display: flex;
1670
+ flex-direction: column;
1671
+ gap: 14px;
1672
+ padding: 16px 20px;
1673
+ }
1674
+
1675
+ .drawer-feedback {
1676
+ margin: 14px 20px 0;
1677
+ padding: 8px 10px;
1678
+ border-radius: 10px;
1679
+ font-size: 12.5px;
1680
+ }
1681
+
1682
+ .drawer-feedback-ok {
1683
+ background: color-mix(in srgb, var(--tw-ok) 10%, transparent);
1684
+ color: var(--tw-ok);
1685
+ }
1686
+
1687
+ .drawer-feedback-error {
1688
+ background: color-mix(in srgb, var(--tw-err) 10%, transparent);
1689
+ color: var(--tw-err);
1690
+ }
1691
+
1692
+ .savebar {
1693
+ display: flex;
1694
+ flex-wrap: wrap;
1695
+ align-items: center;
1696
+ justify-content: space-between;
1697
+ gap: 10px;
1698
+ padding: 12px 20px;
1699
+ border-top: 1px solid var(--tw-line-soft);
1700
+ }
1701
+
1702
+ .savebar-copy {
1703
+ color: var(--tw-muted);
1704
+ font-size: 12px;
1705
+ }
1706
+
1707
+ .savebar-copy.is-dirty {
1708
+ color: var(--tw-warn);
1709
+ }
1710
+
1711
+ .savebar-actions {
1712
+ display: flex;
1713
+ gap: 8px;
1714
+ }
1715
+
1716
+ .rotate-actions {
1717
+ display: flex;
1718
+ flex-wrap: wrap;
1719
+ gap: 8px;
1720
+ }
1721
+
1722
+ .pq-note {
1723
+ padding: 10px 12px;
1724
+ border: 1px solid color-mix(in srgb, var(--tw-pq) 24%, transparent);
1725
+ border-radius: 12px;
1726
+ background: var(--tw-pq-wash);
1727
+ }
1728
+
1729
+ .pq-note-inner {
1730
+ display: flex;
1731
+ align-items: center;
1732
+ gap: 8px;
1733
+ }
1734
+
1735
+ .pq-icon {
1736
+ display: inline-flex;
1737
+ flex: none;
1738
+ color: var(--tw-pq);
1739
+ }
1740
+
1741
+ .pq-note-title {
1742
+ color: var(--tw-pq);
1743
+ font-size: 12.5px;
1744
+ font-weight: 600;
1745
+ }
1746
+
1747
+ .pq-note-body {
1748
+ color: var(--tw-muted);
1749
+ font-size: 12px;
1750
+ line-height: 1.55;
1751
+ }
1752
+
1753
+ .pq-enabled {
1754
+ color: var(--tw-pq);
1755
+ font-size: 12.5px;
1756
+ font-weight: 600;
1757
+ }
1758
+
1759
+ .client-env {
1760
+ min-width: 0;
1761
+ }
1762
+
1763
+ /* 15. Diagnostics --------------------------------------------------------- */
1764
+
1765
+ .panel {
1766
+ display: flex;
1767
+ flex-direction: column;
1768
+ gap: 12px;
1769
+ padding: 20px 0;
1770
+ border-top: 1px solid var(--tw-line-soft);
1771
+ }
1772
+
1773
+ .panel-title {
1774
+ margin: 0;
1775
+ font-family: var(--tw-display);
1776
+ font-size: 15px;
1777
+ font-weight: 600;
1778
+ letter-spacing: -0.01em;
1779
+ }
1780
+
1781
+ .facts {
1782
+ display: grid;
1783
+ gap: 2px 32px;
1784
+ grid-template-columns: repeat(2, minmax(0, 1fr));
1785
+ }
1786
+
1787
+ .fact {
1788
+ display: grid;
1789
+ align-items: baseline;
1790
+ gap: 12px;
1791
+ padding: 5px 0;
1792
+ grid-template-columns: 112px minmax(0, 1fr);
1793
+ }
1794
+
1795
+ .fact-label {
1796
+ color: var(--tw-faint);
1797
+ font-size: 12px;
1798
+ }
1799
+
1800
+ .fact-value {
1801
+ min-width: 0;
1802
+ overflow-wrap: anywhere;
1803
+ color: var(--tw-ink);
1804
+ font-size: 13px;
1805
+ }
1806
+
1807
+ .fact-value.is-mono {
1808
+ font-family: var(--tw-mono);
1809
+ font-size: 12px;
1810
+ }
1811
+
1812
+ .program-head {
1813
+ display: flex;
1814
+ align-items: center;
1815
+ gap: 8px;
1816
+ }
1817
+
1818
+ .program-dot {
1819
+ width: 8px;
1820
+ height: 8px;
1821
+ flex: none;
1822
+ border-radius: 50%;
1823
+ background: var(--tw-ok);
1824
+ }
1825
+
1826
+ .panel.is-missing .program-dot {
1827
+ background: var(--tw-err);
1828
+ }
1829
+
1830
+ .program-status {
1831
+ font-size: 14px;
1832
+ font-weight: 600;
1833
+ }
1834
+
1835
+ .program-detail {
1836
+ overflow-wrap: anywhere;
1837
+ color: var(--tw-muted);
1838
+ font-size: 12.5px;
1839
+ }
1840
+
1841
+ .program-extra {
1842
+ display: flex;
1843
+ flex-direction: column;
1844
+ gap: 6px;
1845
+ }
1846
+
1847
+ .program-note {
1848
+ color: var(--tw-muted);
1849
+ font-size: 12px;
1850
+ }
1851
+
1852
+ .program-actions {
1853
+ display: flex;
1854
+ flex-wrap: wrap;
1855
+ align-items: center;
1856
+ gap: 8px;
1857
+ }
1858
+
1859
+ .manual-link {
1860
+ color: var(--tw-accent);
1861
+ font-size: 12.5px;
1862
+ text-decoration: underline;
1863
+ text-underline-offset: 2px;
1864
+ }
1865
+
1866
+ .progress {
1867
+ display: flex;
1868
+ flex-direction: column;
1869
+ gap: 6px;
1870
+ }
1871
+
1872
+ .progress-track {
1873
+ height: 4px;
1874
+ overflow: hidden;
1875
+ border-radius: 999px;
1876
+ background: var(--tw-line-soft);
1877
+ }
1878
+
1879
+ .progress-bar {
1880
+ width: 0;
1881
+ height: 100%;
1882
+ border-radius: 999px;
1883
+ background: var(--tw-accent-fill);
1884
+ transition: width 0.2s ease;
1885
+ }
1886
+
1887
+ .progress-text {
1888
+ color: var(--tw-muted);
1889
+ font-size: 12px;
1890
+ }
1891
+
1892
+ .install-error-slot {
1893
+ min-width: 0;
1894
+ }
1895
+
1896
+ .table-slot {
1897
+ min-width: 0;
1898
+ }
1899
+
1900
+ .data-table {
1901
+ width: 100%;
1902
+ border-collapse: collapse;
1903
+ font-size: 12.5px;
1904
+ }
1905
+
1906
+ .data-table th {
1907
+ padding: 0 12px 6px 0;
1908
+ border-bottom: 1px solid var(--tw-line-soft);
1909
+ color: var(--tw-faint);
1910
+ font-size: 11.5px;
1911
+ font-weight: 500;
1912
+ text-align: left;
1913
+ }
1914
+
1915
+ .data-table td {
1916
+ padding: 8px 12px 8px 0;
1917
+ border-bottom: 1px solid var(--tw-line-soft);
1918
+ color: var(--tw-ink);
1919
+ vertical-align: top;
1920
+ }
1921
+
1922
+ .data-table .is-mono {
1923
+ font-family: var(--tw-mono);
1924
+ font-size: 12px;
1925
+ }
1926
+
1927
+ .empty-line {
1928
+ color: var(--tw-faint);
1929
+ font-size: 12.5px;
1930
+ }
1931
+
1932
+ .log-panel {
1933
+ padding-bottom: 0;
1934
+ border-top: 1px solid var(--tw-line-soft);
1935
+ }
1936
+
1937
+ .log-summary {
1938
+ cursor: pointer;
1939
+ font-family: var(--tw-display);
1940
+ font-size: 15px;
1941
+ font-weight: 600;
1942
+ letter-spacing: -0.01em;
1943
+ }
1944
+
1945
+ .log-text {
1946
+ max-height: 320px;
1947
+ margin-top: 8px;
1948
+ padding: 12px;
1949
+ overflow: auto;
1950
+ border: 1px solid var(--tw-line);
1951
+ border-radius: 10px;
1952
+ background: var(--tw-surface);
1953
+ color: var(--tw-muted);
1954
+ font-family: var(--tw-mono);
1955
+ font-size: 11.5px;
1956
+ line-height: 1.6;
1957
+ white-space: pre-wrap;
1958
+ overflow-wrap: anywhere;
1959
+ }
1960
+
1961
+ .warning-slot {
1962
+ min-width: 0;
1963
+ }
1964
+
1965
+ .warning-list {
1966
+ display: flex;
1967
+ flex-direction: column;
1968
+ gap: 2px;
1969
+ margin: 0;
1970
+ padding-left: 18px;
1971
+ }
1972
+
1973
+ /* 16. Alerts, notices, states -------------------------------------------- */
1974
+
1975
+ .alert {
1976
+ display: flex;
1977
+ flex-direction: column;
1978
+ gap: 4px;
1979
+ padding: 10px 12px;
1980
+ border: 1px solid var(--tw-line);
1981
+ border-radius: 12px;
1982
+ background: var(--tw-surface-soft);
1983
+ }
1984
+
1985
+ .alert-danger {
1986
+ border-color: color-mix(in srgb, var(--tw-err) 30%, transparent);
1987
+ background: color-mix(in srgb, var(--tw-err) 8%, transparent);
1988
+ }
1989
+
1990
+ .alert-warn {
1991
+ border-color: color-mix(in srgb, var(--tw-warn) 30%, transparent);
1992
+ background: color-mix(in srgb, var(--tw-warn) 8%, transparent);
1993
+ }
1994
+
1995
+ .alert-info {
1996
+ border-color: color-mix(in srgb, var(--tw-accent) 26%, transparent);
1997
+ background: var(--tw-accent-wash);
1998
+ }
1999
+
2000
+ .alert-title {
2001
+ color: var(--tw-ink);
2002
+ font-size: 12.5px;
2003
+ font-weight: 600;
2004
+ }
2005
+
2006
+ .alert-body {
2007
+ min-width: 0;
2008
+ color: var(--tw-muted);
2009
+ font-size: 12.5px;
2010
+ }
2011
+
2012
+ .error-text {
2013
+ overflow-wrap: anywhere;
2014
+ color: var(--tw-ink);
2015
+ font-family: var(--tw-mono);
2016
+ font-size: 11.5px;
2017
+ white-space: pre-wrap;
2018
+ }
2019
+
2020
+ .alert .error-text {
2021
+ color: var(--tw-ink);
2022
+ }
2023
+
2024
+ .notice-host {
2025
+ margin-bottom: 4px;
2026
+ }
2027
+
2028
+ .notice {
2029
+ display: flex;
2030
+ align-items: center;
2031
+ gap: 10px;
2032
+ margin-bottom: 16px;
2033
+ padding: 9px 12px;
2034
+ border: 1px solid var(--tw-line);
2035
+ border-left-width: 3px;
2036
+ border-radius: 10px;
2037
+ background: var(--tw-surface);
2038
+ }
2039
+
2040
+ .notice-ok {
2041
+ border-left-color: var(--tw-ok);
2042
+ }
2043
+
2044
+ .notice-error {
2045
+ border-left-color: var(--tw-err);
2046
+ }
2047
+
2048
+ .notice-info {
2049
+ border-left-color: var(--tw-pq);
2050
+ }
2051
+
2052
+ .notice-icon {
2053
+ display: inline-flex;
2054
+ flex: none;
2055
+ color: var(--tw-muted);
2056
+ }
2057
+
2058
+ .notice-ok .notice-icon {
2059
+ color: var(--tw-ok);
2060
+ }
2061
+
2062
+ .notice-error .notice-icon {
2063
+ color: var(--tw-err);
2064
+ }
2065
+
2066
+ .notice-info .notice-icon {
2067
+ color: var(--tw-pq);
2068
+ }
2069
+
2070
+ .notice-text {
2071
+ flex: 1;
2072
+ min-width: 0;
2073
+ font-size: 12.5px;
2074
+ }
2075
+
2076
+ .notice-close {
2077
+ display: inline-flex;
2078
+ width: 28px;
2079
+ height: 28px;
2080
+ flex: none;
2081
+ align-items: center;
2082
+ justify-content: center;
2083
+ border-radius: 8px;
2084
+ color: var(--tw-faint);
2085
+ font-size: 16px;
2086
+ line-height: 1;
2087
+ }
2088
+
2089
+ .notice-close:hover {
2090
+ background: var(--tw-hover);
2091
+ color: var(--tw-ink);
2092
+ }
2093
+
2094
+ .notice .btn {
2095
+ height: 28px;
2096
+ padding: 0 8px;
2097
+ font-size: 12px;
2098
+ }
2099
+
2100
+ .state-panel {
2101
+ display: flex;
2102
+ max-width: 560px;
2103
+ flex-direction: column;
2104
+ gap: 12px;
2105
+ padding: 8px 0 24px;
2106
+ }
2107
+
2108
+ .skeleton {
2109
+ display: flex;
2110
+ flex-direction: column;
2111
+ gap: 10px;
2112
+ }
2113
+
2114
+ .skeleton-line {
2115
+ height: 14px;
2116
+ border-radius: 6px;
2117
+ background: var(--tw-line-soft);
2118
+ animation: tw-shimmer 1.4s ease-in-out 1;
2119
+ }
2120
+
2121
+ .skeleton-title {
2122
+ width: 38%;
2123
+ height: 24px;
2124
+ }
2125
+
2126
+ .skeleton-body {
2127
+ width: 88%;
2128
+ }
2129
+
2130
+ .skeleton-body-short {
2131
+ width: 56%;
2132
+ }
2133
+
2134
+ @keyframes tw-shimmer {
2135
+ 0% {
2136
+ opacity: 0.5;
2137
+ }
2138
+ 50% {
2139
+ opacity: 1;
2140
+ }
2141
+ 100% {
2142
+ opacity: 0.7;
2143
+ }
2144
+ }
2145
+
2146
+ /* 17. Wide room column ---------------------------------------------------- */
2147
+
2148
+ @container room (min-width: 640px) {
2149
+ .field {
2150
+ align-items: start;
2151
+ gap: 12px;
2152
+ grid-template-columns: 220px minmax(0, 1fr);
2153
+ }
2154
+
2155
+ .field-inline {
2156
+ align-items: center;
2157
+ }
2158
+ }
2159
+
2160
+ /* 18. Narrow container ---------------------------------------------------- */
2161
+
2162
+ @container room (max-width: 639px) {
2163
+ .room-title {
2164
+ font-size: 20px;
2165
+ }
2166
+
2167
+ .hero {
2168
+ align-items: stretch;
2169
+ flex-direction: column;
2170
+ gap: 12px;
2171
+ }
2172
+
2173
+ .hero-status {
2174
+ font-size: 24px;
2175
+ }
2176
+
2177
+ .hero-actions-block {
2178
+ align-items: stretch;
2179
+ }
2180
+
2181
+ .hero-actions {
2182
+ width: 100%;
2183
+ }
2184
+
2185
+ .hero-actions .btn {
2186
+ flex: 1 1 0;
2187
+ min-width: 0;
2188
+ }
2189
+
2190
+ .hero-rotate-note {
2191
+ max-width: none;
2192
+ text-align: left;
2193
+ }
2194
+
2195
+ .tunnel-stage {
2196
+ height: 44px;
2197
+ }
2198
+
2199
+ .tunnel-cat {
2200
+ bottom: 7px;
2201
+ width: 24px;
2202
+ height: 24px;
2203
+ }
2204
+
2205
+ .tunnel-wire {
2206
+ left: 21px;
2207
+ right: 16px;
2208
+ width: calc(100% - 37px);
2209
+ }
2210
+
2211
+ .tunnel-device {
2212
+ top: 21.5px;
2213
+ }
2214
+
2215
+ .ticket-grid {
2216
+ grid-template-columns: minmax(0, 1fr);
2217
+ }
2218
+
2219
+ .ticket-main {
2220
+ padding: 16px;
2221
+ }
2222
+
2223
+ .ticket-stub {
2224
+ flex-direction: row;
2225
+ flex-wrap: wrap;
2226
+ justify-content: flex-start;
2227
+ gap: 12px;
2228
+ padding: 12px 16px;
2229
+ border-top: 1.5px dashed var(--tw-ticket-line);
2230
+ border-left: 0;
2231
+ }
2232
+
2233
+ .ticket-stub::before {
2234
+ top: -6px;
2235
+ right: auto;
2236
+ bottom: auto;
2237
+ left: -6px;
2238
+ }
2239
+
2240
+ .ticket-stub::after {
2241
+ top: -6px;
2242
+ right: -6px;
2243
+ bottom: auto;
2244
+ left: auto;
2245
+ }
2246
+
2247
+ .ticket-stub-row {
2248
+ flex-direction: row;
2249
+ }
2250
+
2251
+ .ticket-qr {
2252
+ width: 100%;
2253
+ }
2254
+
2255
+ .ticket-qr .qr-board svg {
2256
+ max-width: 156px;
2257
+ }
2258
+
2259
+ .ticket-footnote {
2260
+ padding: 10px 16px;
2261
+ }
2262
+
2263
+ .ticket-address-row {
2264
+ flex-direction: column;
2265
+ align-items: stretch;
2266
+ }
2267
+
2268
+ .ticket-address-actions {
2269
+ width: 100%;
2270
+ }
2271
+
2272
+ .ticket-address-actions .btn {
2273
+ flex: 1;
2274
+ }
2275
+
2276
+ .ticket .btn {
2277
+ height: 32px;
2278
+ }
2279
+
2280
+ .steps-grid {
2281
+ gap: 16px;
2282
+ grid-template-columns: minmax(0, 1fr);
2283
+ }
2284
+
2285
+ .steps-title {
2286
+ font-size: 18px;
2287
+ }
2288
+
2289
+ .keeper {
2290
+ gap: 12px 14px;
2291
+ padding: 16px;
2292
+ }
2293
+
2294
+ .keeper-portrait {
2295
+ width: 68px;
2296
+ height: 68px;
2297
+ }
2298
+
2299
+ .keeper-title {
2300
+ font-size: 17px;
2301
+ }
2302
+
2303
+ .keeper-plush {
2304
+ display: none;
2305
+ }
2306
+
2307
+ .facts {
2308
+ grid-template-columns: minmax(0, 1fr);
2309
+ }
2310
+
2311
+ .fact {
2312
+ grid-template-columns: 96px minmax(0, 1fr);
2313
+ }
2314
+
2315
+ .data-table thead {
2316
+ display: none;
2317
+ }
2318
+
2319
+ .data-table tr {
2320
+ display: grid;
2321
+ gap: 4px 12px;
2322
+ padding: 10px 0;
2323
+ border-bottom: 1px solid var(--tw-line-soft);
2324
+ grid-template-columns: repeat(2, minmax(0, 1fr));
2325
+ }
2326
+
2327
+ .data-table td {
2328
+ display: block;
2329
+ padding: 0;
2330
+ border: 0;
2331
+ }
2332
+
2333
+ .data-table td::before {
2334
+ content: attr(data-label);
2335
+ display: block;
2336
+ margin-bottom: 1px;
2337
+ color: var(--tw-faint);
2338
+ font-size: 11px;
2339
+ }
2340
+
2341
+ .mapping-row {
2342
+ gap: 6px;
2343
+ grid-template-columns: 84px 8px minmax(0, 1fr) auto;
2344
+ }
2345
+
2346
+ .select {
2347
+ max-width: none;
2348
+ }
2349
+
2350
+ .input,
2351
+ .textarea,
2352
+ .select-input {
2353
+ font-size: 16px;
2354
+ }
2355
+
2356
+ .input,
2357
+ .select-input {
2358
+ height: 40px;
2359
+ }
2360
+
2361
+ .input[type="number"] {
2362
+ width: 100%;
2363
+ font-size: 16px;
2364
+ }
2365
+
2366
+ .input-mono {
2367
+ font-size: 14px;
2368
+ }
2369
+
2370
+ .textarea {
2371
+ font-size: 15px;
2372
+ }
2373
+
2374
+ .btn {
2375
+ height: 40px;
2376
+ }
2377
+
2378
+ .icon-btn {
2379
+ width: 40px;
2380
+ height: 40px;
2381
+ }
2382
+
2383
+ .switch {
2384
+ width: 46px;
2385
+ height: 28px;
2386
+ }
2387
+
2388
+ .switch .switch-knob {
2389
+ width: 22px;
2390
+ height: 22px;
2391
+ }
2392
+
2393
+ .switch.is-on .switch-knob {
2394
+ transform: translateX(18px);
2395
+ }
2396
+
2397
+ .topbar-btn {
2398
+ height: 36px;
2399
+ }
2400
+
2401
+ .drawer-head {
2402
+ padding: 13px 14px;
2403
+ }
2404
+
2405
+ .drawer-body-inner {
2406
+ padding: 14px;
2407
+ }
2408
+
2409
+ .drawer-feedback {
2410
+ margin: 12px 14px 0;
2411
+ }
2412
+
2413
+ .savebar {
2414
+ align-items: stretch;
2415
+ flex-direction: column;
2416
+ padding: 12px 14px;
2417
+ }
2418
+
2419
+ .savebar-actions .btn {
2420
+ flex: 1;
2421
+ }
2422
+
2423
+ .code-text {
2424
+ font-size: 11.5px;
2425
+ }
2426
+
2427
+ .pq-callout {
2428
+ padding: 12px;
2429
+ }
2430
+
2431
+ .pq-callout-title {
2432
+ font-size: 14px;
2433
+ }
2434
+
2435
+ .manual-link {
2436
+ display: inline-flex;
2437
+ min-height: 40px;
2438
+ align-items: center;
2439
+ }
2440
+
2441
+ .notice {
2442
+ flex-wrap: wrap;
2443
+ }
2444
+ }
2445
+
2446
+ /* 19. Shell breakpoints --------------------------------------------------- */
2447
+
2448
+ @media (max-width: 899px) {
2449
+ .topbar {
2450
+ padding: 12px 16px;
2451
+ }
2452
+
2453
+ .app-main {
2454
+ display: block;
2455
+ padding: 0 16px 48px;
2456
+ }
2457
+
2458
+ .room-rail {
2459
+ display: flex;
2460
+ min-height: 0;
2461
+ flex-direction: row;
2462
+ gap: 0;
2463
+ padding: 8px 0 0;
2464
+ border-right: 0;
2465
+ border-bottom: 1px solid var(--tw-line-soft);
2466
+ }
2467
+
2468
+ .room-rail::before {
2469
+ top: 27px;
2470
+ right: 12px;
2471
+ bottom: auto;
2472
+ left: 12px;
2473
+ width: auto;
2474
+ height: 1px;
2475
+ }
2476
+
2477
+ .room-tab {
2478
+ height: 38px;
2479
+ flex: 1;
2480
+ justify-content: center;
2481
+ gap: 8px;
2482
+ padding: 0 8px;
2483
+ }
2484
+
2485
+ .room-tab:hover {
2486
+ background: transparent;
2487
+ }
2488
+
2489
+ .room-dot {
2490
+ position: static;
2491
+ width: 7px;
2492
+ height: 7px;
2493
+ margin: 0;
2494
+ background: var(--tw-bg);
2495
+ }
2496
+
2497
+ .room-tab[aria-selected="true"] .room-dot {
2498
+ left: auto;
2499
+ width: 9px;
2500
+ height: 9px;
2501
+ margin: 0;
2502
+ border-color: var(--tw-accent-fill);
2503
+ }
2504
+
2505
+ .content {
2506
+ padding: 20px 0 48px;
2507
+ max-width: 1040px;
2508
+ }
2509
+ }
2510
+
2511
+ @media (max-width: 639px) {
2512
+ .topbar {
2513
+ flex-wrap: wrap;
2514
+ row-gap: 10px;
2515
+ padding: 10px 16px;
2516
+ }
2517
+
2518
+ .brand-name {
2519
+ font-size: 16px;
2520
+ }
2521
+
2522
+ .brand-mark {
2523
+ width: 26px;
2524
+ height: 26px;
2525
+ }
2526
+
2527
+ .topbar-actions {
2528
+ width: 100%;
2529
+ justify-content: flex-end;
2530
+ }
2531
+
2532
+ .room-label {
2533
+ font-size: 12.5px;
2534
+ }
2535
+
2536
+ .content {
2537
+ padding: 16px 0 40px;
2538
+ }
2539
+
2540
+ .room-title {
2541
+ font-size: 20px;
2542
+ }
2543
+
2544
+ .skeleton-body {
2545
+ width: 100%;
2546
+ }
2547
+ }
2548
+
2549
+ @media (min-width: 900px) and (max-width: 1099px) {
2550
+ .topbar {
2551
+ padding: 12px 20px;
2552
+ }
2553
+
2554
+ .app-main {
2555
+ padding: 0 20px 48px;
2556
+ grid-template-columns: 172px minmax(0, 1fr);
2557
+ }
2558
+
2559
+ .content {
2560
+ padding-left: 28px;
2561
+ }
2562
+ }
2563
+
2564
+ /* Fallbacks for browsers without container queries. */
2565
+ @media (min-width: 1000px) {
2566
+ .field {
2567
+ align-items: start;
2568
+ gap: 12px;
2569
+ grid-template-columns: 220px minmax(0, 1fr);
2570
+ }
2571
+
2572
+ .field-inline {
2573
+ align-items: center;
2574
+ }
2575
+ }
2576
+
2577
+ @media (max-width: 639px) {
2578
+ .hero {
2579
+ align-items: stretch;
2580
+ flex-direction: column;
2581
+ gap: 12px;
2582
+ }
2583
+
2584
+ .hero-status {
2585
+ font-size: 24px;
2586
+ }
2587
+
2588
+ .hero-actions-block {
2589
+ align-items: stretch;
2590
+ }
2591
+
2592
+ .hero-actions {
2593
+ width: 100%;
2594
+ }
2595
+
2596
+ .hero-actions .btn {
2597
+ flex: 1 1 0;
2598
+ min-width: 0;
2599
+ }
2600
+
2601
+ .hero-rotate-note {
2602
+ max-width: none;
2603
+ text-align: left;
2604
+ }
2605
+
2606
+ .tunnel-stage {
2607
+ height: 44px;
2608
+ }
2609
+
2610
+ .tunnel-cat {
2611
+ bottom: 7px;
2612
+ width: 24px;
2613
+ height: 24px;
2614
+ }
2615
+
2616
+ .tunnel-wire {
2617
+ left: 21px;
2618
+ right: 16px;
2619
+ width: calc(100% - 37px);
2620
+ }
2621
+
2622
+ .tunnel-device {
2623
+ top: 21.5px;
2624
+ }
2625
+
2626
+ .ticket-grid {
2627
+ grid-template-columns: minmax(0, 1fr);
2628
+ }
2629
+
2630
+ .ticket-main {
2631
+ padding: 16px;
2632
+ }
2633
+
2634
+ .ticket-stub {
2635
+ flex-direction: row;
2636
+ flex-wrap: wrap;
2637
+ justify-content: flex-start;
2638
+ gap: 12px;
2639
+ padding: 12px 16px;
2640
+ border-top: 1.5px dashed var(--tw-ticket-line);
2641
+ border-left: 0;
2642
+ }
2643
+
2644
+ .ticket-stub::before {
2645
+ top: -6px;
2646
+ right: auto;
2647
+ bottom: auto;
2648
+ left: -6px;
2649
+ }
2650
+
2651
+ .ticket-stub::after {
2652
+ top: -6px;
2653
+ right: -6px;
2654
+ bottom: auto;
2655
+ left: auto;
2656
+ }
2657
+
2658
+ .ticket-stub-row {
2659
+ flex-direction: row;
2660
+ }
2661
+
2662
+ .ticket-qr {
2663
+ width: 100%;
2664
+ }
2665
+
2666
+ .ticket-address-row {
2667
+ flex-direction: column;
2668
+ align-items: stretch;
2669
+ }
2670
+
2671
+ .ticket-address-actions {
2672
+ width: 100%;
2673
+ }
2674
+
2675
+ .ticket-address-actions .btn {
2676
+ flex: 1;
2677
+ }
2678
+
2679
+ .ticket .btn {
2680
+ height: 32px;
2681
+ }
2682
+
2683
+ .ticket-footnote {
2684
+ padding: 10px 16px;
2685
+ }
2686
+
2687
+ .steps-grid {
2688
+ gap: 16px;
2689
+ grid-template-columns: minmax(0, 1fr);
2690
+ }
2691
+
2692
+ .steps-title {
2693
+ font-size: 18px;
2694
+ }
2695
+
2696
+ .facts {
2697
+ grid-template-columns: minmax(0, 1fr);
2698
+ }
2699
+
2700
+ .fact {
2701
+ grid-template-columns: 96px minmax(0, 1fr);
2702
+ }
2703
+
2704
+ .data-table thead {
2705
+ display: none;
2706
+ }
2707
+
2708
+ .data-table tr {
2709
+ display: grid;
2710
+ gap: 4px 12px;
2711
+ padding: 10px 0;
2712
+ border-bottom: 1px solid var(--tw-line-soft);
2713
+ grid-template-columns: repeat(2, minmax(0, 1fr));
2714
+ }
2715
+
2716
+ .data-table td {
2717
+ display: block;
2718
+ padding: 0;
2719
+ border: 0;
2720
+ }
2721
+
2722
+ .data-table td::before {
2723
+ content: attr(data-label);
2724
+ display: block;
2725
+ margin-bottom: 1px;
2726
+ color: var(--tw-faint);
2727
+ font-size: 11px;
2728
+ }
2729
+
2730
+ .mapping-row {
2731
+ gap: 6px;
2732
+ grid-template-columns: 84px 8px minmax(0, 1fr) auto;
2733
+ }
2734
+
2735
+ .select {
2736
+ max-width: none;
2737
+ }
2738
+
2739
+ .input,
2740
+ .textarea,
2741
+ .select-input {
2742
+ font-size: 16px;
2743
+ }
2744
+
2745
+ .input,
2746
+ .select-input {
2747
+ height: 40px;
2748
+ }
2749
+
2750
+ .input[type="number"] {
2751
+ width: 100%;
2752
+ font-size: 16px;
2753
+ }
2754
+
2755
+ .input-mono {
2756
+ font-size: 14px;
2757
+ }
2758
+
2759
+ .textarea {
2760
+ font-size: 15px;
2761
+ }
2762
+
2763
+ .btn {
2764
+ height: 40px;
2765
+ }
2766
+
2767
+ .icon-btn {
2768
+ width: 40px;
2769
+ height: 40px;
2770
+ }
2771
+
2772
+ .switch {
2773
+ width: 46px;
2774
+ height: 28px;
2775
+ }
2776
+
2777
+ .switch .switch-knob {
2778
+ width: 22px;
2779
+ height: 22px;
2780
+ }
2781
+
2782
+ .switch.is-on .switch-knob {
2783
+ transform: translateX(18px);
2784
+ }
2785
+
2786
+ .topbar-btn {
2787
+ height: 36px;
2788
+ }
2789
+
2790
+ .drawer-head {
2791
+ padding: 13px 14px;
2792
+ }
2793
+
2794
+ .drawer-body-inner {
2795
+ padding: 14px;
2796
+ }
2797
+
2798
+ .drawer-feedback {
2799
+ margin: 12px 14px 0;
2800
+ }
2801
+
2802
+ .savebar {
2803
+ align-items: stretch;
2804
+ flex-direction: column;
2805
+ padding: 12px 14px;
2806
+ }
2807
+
2808
+ .savebar-actions .btn {
2809
+ flex: 1;
2810
+ }
2811
+
2812
+ .code-text {
2813
+ font-size: 11.5px;
2814
+ }
2815
+
2816
+ .pq-callout {
2817
+ padding: 12px;
2818
+ }
2819
+
2820
+ .pq-callout-title {
2821
+ font-size: 14px;
2822
+ }
2823
+
2824
+ .manual-link {
2825
+ display: inline-flex;
2826
+ min-height: 40px;
2827
+ align-items: center;
2828
+ }
2829
+ }
2830
+
2831
+ /* 20. Motion, forced colors ---------------------------------------------- */
2832
+
2833
+ @media (prefers-reduced-motion: reduce) {
2834
+ *,
2835
+ *::before,
2836
+ *::after {
2837
+ animation-duration: 0.001ms !important;
2838
+ animation-iteration-count: 1 !important;
2839
+ transition-duration: 0.001ms !important;
2840
+ scroll-behavior: auto !important;
2841
+ }
2842
+
2843
+ .tunnel[data-wire="pending"] .tunnel-line-group path {
2844
+ animation: none;
2845
+ }
2846
+ }
2847
+
2848
+ @media (forced-colors: active) {
2849
+ .btn,
2850
+ .input,
2851
+ .textarea,
2852
+ .select-input,
2853
+ .topbar-btn,
2854
+ .switch,
2855
+ .drawer,
2856
+ .ticket {
2857
+ border-color: ButtonBorder;
2858
+ }
2859
+
2860
+ .cat-seal-img {
2861
+ border-color: CanvasText;
2862
+ }
2863
+
2864
+ .room-dot,
2865
+ .hero-dot,
2866
+ .status-pill-text {
2867
+ line-height: 1.4;
2868
+ }
2869
+
2870
+ .status-dot {
2871
+ background: CanvasText;
2872
+ }
2873
+ }