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