townmouse 0.0.0-stage → 0.2.1

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 (103) hide show
  1. package/CHANGELOG.md +126 -0
  2. package/DESIGN.md +169 -0
  3. package/LICENSE +661 -0
  4. package/README.md +368 -2
  5. package/SECURITY.md +57 -0
  6. package/TOWNMOUSE.md +91 -0
  7. package/assets/brand/mascot/README.md +23 -0
  8. package/assets/brand/mascot/townmouse-aristocrat.png +0 -0
  9. package/assets/brand/mascot/townmouse-icon.svg +1 -0
  10. package/assets/brand/mascot/townmouse-monocled.png +0 -0
  11. package/bin/townmouse +68 -0
  12. package/docs/PACKAGING.md +275 -0
  13. package/docs/browser-workspace.md +184 -0
  14. package/docs/panes.md +252 -0
  15. package/native/TownmouseApp.swift +108 -0
  16. package/package.json +89 -4
  17. package/public/apple-touch-icon.png +0 -0
  18. package/public/brand/floydslabs-credit.png +0 -0
  19. package/public/brand/floydslabs-credit.webp +0 -0
  20. package/public/brand/townmouse-aristocrat.webp +0 -0
  21. package/public/brand/townmouse-monocled.webp +0 -0
  22. package/public/clipboard-text.mjs +5 -0
  23. package/public/favicon-16x16.png +0 -0
  24. package/public/favicon-32x32.png +0 -0
  25. package/public/favicon.ico +0 -0
  26. package/public/favicon.svg +1 -0
  27. package/public/features/autosave.mjs +76 -0
  28. package/public/features/clipboard.mjs +69 -0
  29. package/public/features/command-palette.mjs +181 -0
  30. package/public/features/desktop-palette.mjs +19 -0
  31. package/public/features/export.mjs +37 -0
  32. package/public/features/file-drop.mjs +77 -0
  33. package/public/features/floating-palette.mjs +113 -0
  34. package/public/features/fontsize.mjs +72 -0
  35. package/public/features/haptic-keys.mjs +42 -0
  36. package/public/features/history-undo.mjs +102 -0
  37. package/public/features/keepalive.mjs +36 -0
  38. package/public/features/keybar-config.mjs +70 -0
  39. package/public/features/keyboard-shortcuts.mjs +74 -0
  40. package/public/features/links.mjs +139 -0
  41. package/public/features/multi-window-sync.mjs +74 -0
  42. package/public/features/osc-bridge.mjs +59 -0
  43. package/public/features/phone-landscape-focus.mjs +157 -0
  44. package/public/features/recent-commands.mjs +100 -0
  45. package/public/features/search.mjs +134 -0
  46. package/public/features/session-lock.mjs +96 -0
  47. package/public/features/session-manager.mjs +149 -0
  48. package/public/features/settings-sync.mjs +77 -0
  49. package/public/features/shortcut-help.mjs +85 -0
  50. package/public/features/smart-completions.mjs +101 -0
  51. package/public/features/smart-suggest.mjs +124 -0
  52. package/public/features/snippets.mjs +85 -0
  53. package/public/features/split-view.mjs +102 -0
  54. package/public/features/status-metrics.mjs +114 -0
  55. package/public/features/stylus-support.mjs +124 -0
  56. package/public/features/swipe-history.mjs +141 -0
  57. package/public/features/swipe-sessions.mjs +85 -0
  58. package/public/features/tab-reorder.mjs +62 -0
  59. package/public/features/theme-system.mjs +51 -0
  60. package/public/features/toast-status.mjs +118 -0
  61. package/public/features/two-finger-menu.mjs +87 -0
  62. package/public/features/voice-input.mjs +244 -0
  63. package/public/features/wake-fullscreen.mjs +67 -0
  64. package/public/features/window-title.mjs +40 -0
  65. package/public/features/zoom.mjs +80 -0
  66. package/public/icon-128.png +0 -0
  67. package/public/icon-180.png +0 -0
  68. package/public/icon-192.png +0 -0
  69. package/public/icon-48.png +0 -0
  70. package/public/icon-512-maskable.png +0 -0
  71. package/public/icon-512.png +0 -0
  72. package/public/icon.svg +1 -0
  73. package/public/index.html +1765 -0
  74. package/public/input-chunks.mjs +22 -0
  75. package/public/input-guard.mjs +210 -0
  76. package/public/manifest.json +56 -0
  77. package/public/panes.css +1257 -0
  78. package/public/panes.html +208 -0
  79. package/public/panes.mjs +2625 -0
  80. package/public/service-worker.js +67 -0
  81. package/public/workspace.css +1447 -0
  82. package/public/workspace.mjs +1475 -0
  83. package/scripts/install-service.sh +269 -0
  84. package/scripts/node-runtime.sh +138 -0
  85. package/scripts/panes +439 -0
  86. package/scripts/prepare-native.sh +35 -0
  87. package/scripts/run-hooks +69 -0
  88. package/scripts/t1.sh +113 -0
  89. package/scripts/uninstall-service.sh +49 -0
  90. package/src/agent-guide.js +260 -0
  91. package/src/attachments.js +128 -0
  92. package/src/browser-dom.js +545 -0
  93. package/src/browser-workspace.js +1246 -0
  94. package/src/chrome-resolve.js +80 -0
  95. package/src/pty-permissions.js +99 -0
  96. package/src/regex-worker.js +13 -0
  97. package/src/replay-text.js +189 -0
  98. package/src/request-boundary.js +58 -0
  99. package/src/safe-regex.js +87 -0
  100. package/src/server.js +1122 -0
  101. package/src/shell-resolve.js +42 -0
  102. package/src/static-deps.js +61 -0
  103. package/src/workspace-panes.js +1099 -0
@@ -0,0 +1,1257 @@
1
+ :root {
2
+ /* One Townmouse system: graphite terminal neutrals, one blue accent. */
3
+ --bg: #0a0d12;
4
+ --surface: #11161d;
5
+ --raised: #171d26;
6
+ --hover: #1d2531;
7
+ --line: #232c39;
8
+ --line-strong: #5f6f88; /* 3.4:1 on --surface: visible control boundaries */
9
+ --text: #e8eef6;
10
+ --muted: #9aa8b8;
11
+ --faint: #7f8fa3;
12
+ --accent: #8ab4ff;
13
+ --mint: var(--accent);
14
+ --mint-ink: #07101d;
15
+ --danger: #ffb3ac;
16
+ --bar-height: 52px;
17
+ --radius: 8px;
18
+ --panel-w: 360px;
19
+ --panel-h: 48dvh;
20
+ --font-ui: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
21
+ --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
22
+ color-scheme: dark;
23
+ }
24
+
25
+ *, *::before, *::after { box-sizing: border-box; }
26
+
27
+ html, body { height: 100%; }
28
+
29
+ body {
30
+ margin: 0;
31
+ background: var(--bg);
32
+ color: var(--text);
33
+ font-family: var(--font-ui);
34
+ font-size: 13px;
35
+ line-height: 1.4;
36
+ overflow: hidden;
37
+ overscroll-behavior: none;
38
+ -webkit-font-smoothing: antialiased;
39
+ -webkit-tap-highlight-color: transparent;
40
+ }
41
+
42
+ [hidden] { display: none !important; }
43
+
44
+ button, input { font: inherit; color: inherit; }
45
+
46
+ button { cursor: pointer; }
47
+
48
+ .sr-only {
49
+ position: absolute;
50
+ width: 1px; height: 1px;
51
+ padding: 0; margin: -1px;
52
+ overflow: hidden;
53
+ clip: rect(0 0 0 0);
54
+ white-space: nowrap;
55
+ border: 0;
56
+ }
57
+
58
+ :where(button, input, select, textarea, [tabindex]):focus-visible {
59
+ outline: 2px solid var(--mint);
60
+ outline-offset: 2px;
61
+ }
62
+
63
+ .panes-app {
64
+ position: fixed;
65
+ inset: 0;
66
+ padding-top: env(safe-area-inset-top);
67
+ padding-right: env(safe-area-inset-right);
68
+ padding-left: env(safe-area-inset-left);
69
+ display: grid;
70
+ grid-template-rows: auto minmax(0, 1fr) auto;
71
+ background: var(--bg);
72
+ }
73
+
74
+ /* Explicit row placement: a hidden tab strip must not shift the workspace into
75
+ the auto row and collapse the live panes. */
76
+ .tabstrip { grid-row: 1; }
77
+ .workspace { grid-row: 2; }
78
+ .bottom-stack { grid-row: 3; }
79
+
80
+ .workspace {
81
+ position: relative;
82
+ min-width: 0;
83
+ min-height: 0;
84
+ overflow: hidden;
85
+ }
86
+
87
+ /* ─── Pane grid ─────────────────────────────────────────────────────────── */
88
+
89
+ .pane-grid {
90
+ display: grid;
91
+ width: 100%;
92
+ height: 100%;
93
+ gap: 6px;
94
+ padding: 6px;
95
+ align-items: stretch;
96
+ justify-items: stretch;
97
+ }
98
+
99
+ .pane-grid[data-count="1"] { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr); }
100
+
101
+ .pane-grid[data-count="2"] {
102
+ grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
103
+ grid-template-rows: minmax(0, 1fr);
104
+ }
105
+
106
+ .pane-grid[data-count="3"] {
107
+ grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
108
+ grid-template-rows: minmax(0, 1fr) minmax(0, 1fr);
109
+ }
110
+
111
+ .pane-grid[data-count="3"] > .pane:first-child { grid-column: 1 / -1; }
112
+
113
+ .pane-grid[data-count="4"] {
114
+ grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
115
+ grid-template-rows: minmax(0, 1fr) minmax(0, 1fr);
116
+ }
117
+
118
+ /* ─── Pane frame ────────────────────────────────────────────────────────── */
119
+
120
+ .pane {
121
+ position: relative;
122
+ display: flex;
123
+ flex-direction: column;
124
+ min-width: 0;
125
+ min-height: 0;
126
+ overflow: hidden;
127
+ background: var(--surface);
128
+ border: 1px solid var(--line);
129
+ border-radius: var(--radius);
130
+ }
131
+
132
+ .pane.is-active { border-color: rgba(138, 180, 255, 0.65); }
133
+
134
+ .pane-header {
135
+ display: flex;
136
+ align-items: center;
137
+ gap: 8px;
138
+ flex: none;
139
+ height: 30px;
140
+ padding: 0 3px 0 10px;
141
+ border-bottom: 1px solid var(--line);
142
+ background: var(--surface);
143
+ }
144
+
145
+ .pane.is-active .pane-header { box-shadow: inset 2px 0 0 var(--mint); }
146
+
147
+ .pane-title {
148
+ flex: 1 1 auto;
149
+ min-width: 0;
150
+ overflow: hidden;
151
+ text-overflow: ellipsis;
152
+ white-space: nowrap;
153
+ font-size: 12px;
154
+ font-weight: 600;
155
+ letter-spacing: 0.01em;
156
+ }
157
+
158
+ .pane-kind {
159
+ flex: none;
160
+ color: var(--faint);
161
+ font-family: var(--font-mono);
162
+ font-size: 9.5px;
163
+ font-weight: 500;
164
+ letter-spacing: 0.09em;
165
+ text-transform: uppercase;
166
+ }
167
+
168
+ .pane[data-status="exited"] .pane-kind { color: var(--danger); }
169
+
170
+ .pane-close {
171
+ flex: none;
172
+ display: inline-flex;
173
+ align-items: center;
174
+ justify-content: center;
175
+ width: 26px;
176
+ height: 26px;
177
+ padding: 0;
178
+ border: 0;
179
+ border-radius: 6px;
180
+ background: transparent;
181
+ color: var(--faint);
182
+ }
183
+
184
+ .pane-close svg { width: 14px; height: 14px; }
185
+
186
+ .pane-close:hover { background: var(--hover); color: var(--text); }
187
+
188
+ /* Visible maximize/restore control: the Alt+M shortcut stays, but the feature
189
+ should not depend on knowing it. */
190
+ .pane-maximize {
191
+ flex: none;
192
+ display: inline-flex;
193
+ align-items: center;
194
+ justify-content: center;
195
+ width: 26px;
196
+ height: 26px;
197
+ padding: 0;
198
+ border: 0;
199
+ border-radius: 6px;
200
+ background: transparent;
201
+ color: var(--faint);
202
+ }
203
+
204
+ .pane-maximize svg { width: 14px; height: 14px; }
205
+
206
+ .pane-maximize:hover { background: var(--hover); color: var(--text); }
207
+
208
+ .pane-maximize[aria-pressed="true"] { color: var(--text); background: var(--hover); }
209
+
210
+ .pane-body {
211
+ position: relative;
212
+ flex: 1 1 auto;
213
+ min-height: 0;
214
+ min-width: 0;
215
+ }
216
+
217
+ /* ─── Terminal pane ─────────────────────────────────────────────────────── */
218
+
219
+ .pane-terminal .pane-body { background: #0a0d12; }
220
+
221
+ .terminal-host {
222
+ position: absolute;
223
+ inset: 7px 3px 3px 8px;
224
+ }
225
+
226
+ .terminal-host .xterm { height: 100%; }
227
+
228
+ .terminal-host .xterm-viewport { background-color: transparent !important; }
229
+
230
+ .terminal-host .xterm-screen { outline: none; }
231
+
232
+ /* ─── Browser pane ──────────────────────────────────────────────────────── */
233
+
234
+ .pane-browser .pane-body {
235
+ display: flex;
236
+ flex-direction: column;
237
+ background: #050807;
238
+ }
239
+
240
+ .browser-toolbar {
241
+ display: flex;
242
+ align-items: center;
243
+ gap: 4px;
244
+ flex: none;
245
+ padding: 5px;
246
+ border-bottom: 1px solid var(--line);
247
+ background: var(--surface);
248
+ }
249
+
250
+ .browser-icon-button,
251
+ .address-go {
252
+ display: inline-flex;
253
+ align-items: center;
254
+ justify-content: center;
255
+ flex: none;
256
+ height: 30px;
257
+ min-width: 30px;
258
+ padding: 0 8px;
259
+ border: 1px solid var(--line-strong);
260
+ border-radius: 6px;
261
+ background: #0d1219;
262
+ color: var(--muted);
263
+ font-size: 11px;
264
+ font-weight: 600;
265
+ }
266
+
267
+ .browser-icon-button svg { width: 15px; height: 15px; }
268
+
269
+ .browser-icon-button:hover,
270
+ .address-go:hover { background: var(--hover); color: var(--text); }
271
+
272
+ /* Locked browser size is a state the owner should be able to see at a glance. */
273
+ .browser-icon-button[aria-pressed="true"] {
274
+ background: var(--hover);
275
+ color: var(--text);
276
+ }
277
+
278
+ .address-form {
279
+ display: flex;
280
+ flex: 1 1 auto;
281
+ gap: 4px;
282
+ min-width: 0;
283
+ }
284
+
285
+ .address-input {
286
+ flex: 1 1 auto;
287
+ min-width: 0;
288
+ height: 30px;
289
+ padding: 0 8px;
290
+ border: 1px solid var(--line-strong);
291
+ border-radius: 6px;
292
+ background: #0c1118;
293
+ color: var(--text);
294
+ font-family: var(--font-mono);
295
+ font-size: 11.5px;
296
+ }
297
+
298
+ .address-input::placeholder { color: var(--faint); }
299
+
300
+ .address-input:focus { border-color: rgba(138, 180, 255, 0.6); }
301
+
302
+ .address-go { color: var(--mint); }
303
+
304
+ .browser-view {
305
+ position: relative;
306
+ flex: 1 1 auto;
307
+ min-height: 0;
308
+ overflow: hidden;
309
+ background: #050807;
310
+ touch-action: none;
311
+ cursor: crosshair;
312
+ }
313
+
314
+ .browser-image {
315
+ display: block;
316
+ width: 100%;
317
+ height: 100%;
318
+ object-fit: contain;
319
+ user-select: none;
320
+ -webkit-user-drag: none;
321
+ }
322
+
323
+ .browser-image:not([src]) { visibility: hidden; }
324
+
325
+ .browser-type-row {
326
+ display: flex;
327
+ flex: none;
328
+ gap: 4px;
329
+ padding: 5px;
330
+ border-top: 1px solid var(--line);
331
+ background: var(--surface);
332
+ }
333
+
334
+ .browser-type-input {
335
+ flex: 1 1 auto;
336
+ min-width: 0;
337
+ height: 30px;
338
+ padding: 0 9px;
339
+ border: 1px solid var(--line-strong);
340
+ border-radius: 6px;
341
+ background: #0c1118;
342
+ color: var(--text);
343
+ font-size: 12px;
344
+ }
345
+
346
+ .browser-type-input::placeholder { color: var(--faint); }
347
+
348
+ .browser-type-input:focus { border-color: rgba(138, 180, 255, 0.6); }
349
+
350
+ /* ─── Empty state ───────────────────────────────────────────────────────── */
351
+
352
+ .empty-state {
353
+ display: flex;
354
+ flex-direction: column;
355
+ align-items: center;
356
+ justify-content: center;
357
+ gap: 8px;
358
+ height: 100%;
359
+ padding: 24px;
360
+ text-align: center;
361
+ }
362
+
363
+ .empty-mark {
364
+ color: var(--mint);
365
+ font-family: var(--font-mono);
366
+ font-size: 34px;
367
+ font-weight: 600;
368
+ letter-spacing: -0.12em;
369
+ line-height: 1;
370
+ margin-bottom: 6px;
371
+ }
372
+
373
+ .empty-state h1 {
374
+ margin: 0;
375
+ font-size: 17px;
376
+ font-weight: 650;
377
+ letter-spacing: -0.01em;
378
+ }
379
+
380
+ .empty-state p {
381
+ margin: 0;
382
+ max-width: 34ch;
383
+ color: var(--muted);
384
+ font-size: 12.5px;
385
+ }
386
+
387
+ .empty-actions {
388
+ display: flex;
389
+ flex-wrap: wrap;
390
+ justify-content: center;
391
+ gap: 6px;
392
+ margin-top: 10px;
393
+ }
394
+
395
+ /* ─── Buttons and bottom bar ────────────────────────────────────────────── */
396
+
397
+ .btn {
398
+ display: inline-flex;
399
+ align-items: center;
400
+ justify-content: center;
401
+ height: 36px;
402
+ padding: 0 13px;
403
+ border: 1px solid var(--line-strong);
404
+ border-radius: var(--radius);
405
+ background: var(--raised);
406
+ color: var(--text);
407
+ font-size: 12px;
408
+ font-weight: 600;
409
+ white-space: nowrap;
410
+ }
411
+
412
+ .btn:hover { background: var(--hover); border-color: var(--faint); }
413
+
414
+ .btn-primary {
415
+ background: var(--mint);
416
+ border-color: var(--mint);
417
+ color: var(--mint-ink);
418
+ }
419
+
420
+ .btn-primary:hover { background: #a9c8ff; border-color: #a9c8ff; }
421
+
422
+ .btn-quiet { background: transparent; color: var(--muted); }
423
+
424
+ .btn-danger {
425
+ border-color: rgba(255, 154, 154, 0.4);
426
+ background: rgba(255, 154, 154, 0.12);
427
+ color: var(--danger);
428
+ }
429
+
430
+ .btn-danger:hover { background: rgba(255, 154, 154, 0.2); border-color: var(--danger); }
431
+
432
+ .sheet-confirm { width: min(400px, calc(100vw - 24px)); }
433
+ .confirm-copy { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.45; }
434
+ .confirm-actions { display: flex; justify-content: flex-end; gap: 8px; }
435
+ .confirm-actions .btn { min-height: 44px; min-width: 88px; }
436
+
437
+ .btn:disabled,
438
+ .btn:disabled:hover {
439
+ opacity: 0.42;
440
+ cursor: default;
441
+ background: var(--raised);
442
+ border-color: var(--line-strong);
443
+ color: var(--text);
444
+ }
445
+
446
+ .btn-primary:disabled,
447
+ .btn-primary:disabled:hover {
448
+ background: var(--mint);
449
+ border-color: var(--mint);
450
+ color: var(--mint-ink);
451
+ }
452
+
453
+ .bottom-stack { min-width: 0; }
454
+
455
+ .pane-keybar {
456
+ display: none;
457
+ gap: 4px;
458
+ padding: 4px 6px;
459
+ overflow-x: auto;
460
+ overscroll-behavior-x: contain;
461
+ border-top: 1px solid var(--line);
462
+ background: var(--surface);
463
+ scrollbar-width: none;
464
+ -webkit-overflow-scrolling: touch;
465
+ }
466
+
467
+ .pane-keybar::-webkit-scrollbar { display: none; }
468
+
469
+ @media (pointer: coarse), (max-width: 900px) {
470
+ .pane-keybar:not([hidden]) { display: flex; }
471
+ }
472
+
473
+ .pane-key {
474
+ flex: 0 0 auto;
475
+ min-width: 44px;
476
+ min-height: 44px;
477
+ padding: 0 9px;
478
+ border: 1px solid var(--line-strong);
479
+ border-radius: 6px;
480
+ background: var(--raised);
481
+ color: var(--text);
482
+ font-family: var(--font-ui);
483
+ font-size: 12px;
484
+ font-weight: 650;
485
+ line-height: 1;
486
+ }
487
+
488
+ .pane-key:active { background: var(--hover); }
489
+
490
+ .pane-key.toggle.active {
491
+ border-color: var(--mint);
492
+ background: var(--mint);
493
+ color: var(--mint-ink);
494
+ }
495
+
496
+ .pane-bar {
497
+ position: relative;
498
+ z-index: 20;
499
+ display: flex;
500
+ align-items: center;
501
+ gap: 2px;
502
+ min-height: var(--bar-height);
503
+ padding: 5px 6px calc(5px + env(safe-area-inset-bottom, 0px));
504
+ border-top: 1px solid var(--line);
505
+ background: rgba(9, 13, 11, 0.98);
506
+ }
507
+
508
+ .bar-button {
509
+ display: inline-flex;
510
+ align-items: center;
511
+ justify-content: center;
512
+ gap: 6px;
513
+ flex: none;
514
+ height: 40px;
515
+ min-width: 40px;
516
+ padding: 0 9px;
517
+ border: 1px solid transparent;
518
+ border-radius: var(--radius);
519
+ background: transparent;
520
+ color: var(--muted);
521
+ font-size: 12px;
522
+ font-weight: 550;
523
+ }
524
+
525
+ .bar-button svg { width: 20px; height: 20px; flex: none; }
526
+
527
+ .bar-button:hover { background: var(--raised); color: var(--text); }
528
+
529
+ .bar-button:active { background: var(--hover); }
530
+
531
+ .bar-button:disabled { opacity: 0.32; cursor: default; }
532
+
533
+ .bar-button:disabled:hover { background: transparent; color: var(--muted); }
534
+
535
+ .bar-back { color: var(--text); }
536
+
537
+ .bar-back svg { width: 21px; height: 21px; }
538
+
539
+ .bar-tabs { padding-right: 7px; }
540
+
541
+ .count-badge {
542
+ display: inline-flex;
543
+ align-items: center;
544
+ justify-content: center;
545
+ min-width: 18px;
546
+ height: 18px;
547
+ padding: 0 5px;
548
+ border-radius: 999px;
549
+ background: var(--mint);
550
+ color: var(--mint-ink);
551
+ font-family: var(--font-mono);
552
+ font-size: 10px;
553
+ font-weight: 700;
554
+ line-height: 1;
555
+ }
556
+
557
+ .bar-spacer { flex: 1 1 auto; }
558
+
559
+ .host-pill {
560
+ display: inline-flex;
561
+ align-items: center;
562
+ gap: 6px;
563
+ flex: 0 1 auto;
564
+ max-width: 230px;
565
+ height: 32px;
566
+ padding: 0 11px;
567
+ border: 1px solid var(--line-strong);
568
+ border-radius: 999px;
569
+ background: #0d1219;
570
+ color: var(--text);
571
+ font-family: var(--font-mono);
572
+ font-size: 11.5px;
573
+ white-space: nowrap;
574
+ }
575
+
576
+ .host-mark { flex: none; color: var(--mint); font-weight: 700; }
577
+
578
+ .host-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
579
+
580
+ /* ─── Sheets ────────────────────────────────────────────────────────────── */
581
+
582
+ /* Sheets are docked peers, not modals over the panes. The workspace gives up
583
+ the strip the panel occupies, so no live pane is ever covered. */
584
+ .sheet {
585
+ position: fixed;
586
+ top: 12px;
587
+ right: 12px;
588
+ bottom: 12px;
589
+ left: auto;
590
+ margin: 0;
591
+ width: var(--panel-w);
592
+ height: auto;
593
+ max-width: none;
594
+ max-height: none;
595
+ padding: 0;
596
+ border: 1px solid var(--line-strong);
597
+ border-radius: 12px;
598
+ background: var(--surface);
599
+ color: var(--text);
600
+ box-shadow: 0 18px 48px rgba(0, 0, 0, 0.45);
601
+ overflow: hidden;
602
+ /* Above the reader mode (80), page dialog (76), and context rail (75): a
603
+ user-opened dock must stay readable while a blocking prompt or reader
604
+ waits behind it. */
605
+ z-index: 90;
606
+ }
607
+
608
+ .sheet::backdrop { background: transparent; }
609
+
610
+ .panes-app.panel-open { right: calc(var(--panel-w) + 24px); }
611
+
612
+ @media (max-width: 899px) {
613
+ .sheet {
614
+ top: auto;
615
+ left: 8px;
616
+ right: 8px;
617
+ bottom: 8px;
618
+ width: auto;
619
+ height: var(--panel-h);
620
+ }
621
+ .panes-app.panel-open {
622
+ right: 0;
623
+ bottom: calc(var(--panel-h) + 16px);
624
+ }
625
+ }
626
+
627
+ .sheet-inner {
628
+ display: flex;
629
+ flex-direction: column;
630
+ gap: 12px;
631
+ height: 100%;
632
+ min-height: 0;
633
+ max-height: none;
634
+ padding: 14px 16px calc(16px + env(safe-area-inset-bottom, 0px));
635
+ overflow-y: auto;
636
+ overscroll-behavior: contain;
637
+ }
638
+
639
+ .sheet-header {
640
+ display: flex;
641
+ align-items: center;
642
+ justify-content: space-between;
643
+ gap: 12px;
644
+ }
645
+
646
+ .sheet-header h2 {
647
+ margin: 0;
648
+ font-size: 15px;
649
+ font-weight: 650;
650
+ letter-spacing: -0.01em;
651
+ }
652
+
653
+ .icon-button {
654
+ display: inline-flex;
655
+ align-items: center;
656
+ justify-content: center;
657
+ flex: none;
658
+ width: 32px;
659
+ height: 32px;
660
+ padding: 0;
661
+ border: 0;
662
+ border-radius: 7px;
663
+ background: transparent;
664
+ color: var(--muted);
665
+ }
666
+
667
+ .icon-button svg { width: 16px; height: 16px; }
668
+
669
+ .icon-button:hover { background: var(--hover); color: var(--text); }
670
+
671
+ .sheet-actions {
672
+ display: flex;
673
+ flex-wrap: wrap;
674
+ gap: 6px;
675
+ }
676
+
677
+ .tab-list {
678
+ display: flex;
679
+ flex-direction: column;
680
+ gap: 5px;
681
+ margin: 0;
682
+ padding: 0;
683
+ list-style: none;
684
+ }
685
+
686
+ .tab-row {
687
+ display: flex;
688
+ align-items: stretch;
689
+ gap: 2px;
690
+ border: 1px solid var(--line-strong);
691
+ border-radius: var(--radius);
692
+ background: #0d1219;
693
+ }
694
+
695
+ .tab-row.is-active {
696
+ border-color: rgba(138, 180, 255, 0.55);
697
+ background: rgba(138, 180, 255, 0.08);
698
+ }
699
+
700
+ .tab-select {
701
+ display: flex;
702
+ align-items: center;
703
+ gap: 8px;
704
+ flex: 1 1 auto;
705
+ min-width: 0;
706
+ padding: 9px 10px 9px 12px;
707
+ border: 0;
708
+ border-radius: 7px 0 0 7px;
709
+ background: transparent;
710
+ color: var(--text);
711
+ text-align: left;
712
+ }
713
+
714
+ .tab-select:hover { background: var(--raised); }
715
+
716
+ .tab-name {
717
+ flex: 1 1 auto;
718
+ min-width: 0;
719
+ overflow: hidden;
720
+ text-overflow: ellipsis;
721
+ white-space: nowrap;
722
+ font-size: 12.5px;
723
+ font-weight: 600;
724
+ }
725
+
726
+ .tab-meta {
727
+ flex: none;
728
+ color: var(--muted);
729
+ font-size: 10.5px;
730
+ white-space: nowrap;
731
+ }
732
+
733
+ .tab-current {
734
+ flex: none;
735
+ color: var(--mint);
736
+ font-family: var(--font-mono);
737
+ font-size: 9px;
738
+ font-weight: 600;
739
+ letter-spacing: 0.08em;
740
+ text-transform: uppercase;
741
+ }
742
+
743
+ .tab-close {
744
+ display: inline-flex;
745
+ align-items: center;
746
+ justify-content: center;
747
+ flex: none;
748
+ width: 38px;
749
+ border: 0;
750
+ border-radius: 0 7px 7px 0;
751
+ background: transparent;
752
+ color: var(--faint);
753
+ }
754
+
755
+ .tab-close svg { width: 14px; height: 14px; }
756
+
757
+ .tab-close:hover { background: rgba(255, 154, 154, 0.12); color: var(--danger); }
758
+
759
+ .sheet-empty {
760
+ margin: 0;
761
+ padding: 10px 2px;
762
+ color: var(--muted);
763
+ font-size: 12px;
764
+ }
765
+
766
+ .sheet-note {
767
+ margin: 0;
768
+ color: var(--faint);
769
+ font-family: var(--font-mono);
770
+ font-size: 10px;
771
+ letter-spacing: 0.01em;
772
+ }
773
+
774
+ .menu-list {
775
+ display: flex;
776
+ flex-direction: column;
777
+ gap: 3px;
778
+ }
779
+
780
+ .menu-item {
781
+ display: flex;
782
+ align-items: center;
783
+ gap: 11px;
784
+ padding: 9px 10px;
785
+ border: 1px solid transparent;
786
+ border-radius: var(--radius);
787
+ background: transparent;
788
+ color: var(--text);
789
+ text-align: left;
790
+ }
791
+
792
+ .menu-item svg { flex: none; width: 19px; height: 19px; color: var(--mint); }
793
+
794
+ .menu-item:hover { background: var(--raised); border-color: var(--line); }
795
+
796
+ .menu-item:disabled,
797
+ .menu-item:disabled:hover {
798
+ opacity: 0.4;
799
+ cursor: default;
800
+ background: transparent;
801
+ border-color: transparent;
802
+ }
803
+
804
+ .menu-item span { display: flex; flex-direction: column; gap: 1px; }
805
+
806
+ .menu-item strong { font-size: 12.5px; font-weight: 600; }
807
+
808
+ .menu-item small { color: var(--muted); font-size: 10.5px; }
809
+
810
+ /* ─── Notices ───────────────────────────────────────────────────────────── */
811
+
812
+ /* The notice sits in the bottom stack and pushes the panes; it never floats
813
+ over them. */
814
+ .notice {
815
+ position: static;
816
+ z-index: auto;
817
+ max-width: none;
818
+ margin: 4px 6px 0;
819
+ padding: 8px 12px;
820
+ border: 1px solid var(--line-strong);
821
+ border-radius: var(--radius);
822
+ background: #151d27;
823
+ color: var(--text);
824
+ font-size: 12px;
825
+ box-shadow: none;
826
+ }
827
+
828
+ .notice[data-kind="error"] { border-color: rgba(255, 154, 154, 0.4); }
829
+
830
+ /* ─── Responsive ────────────────────────────────────────────────────────── */
831
+
832
+ @media (max-width: 720px) {
833
+ .pane-grid { gap: 4px; padding: 4px; }
834
+ .pane-grid[data-count="2"] {
835
+ grid-template-columns: minmax(0, 1fr);
836
+ grid-template-rows: minmax(0, 1fr) minmax(0, 1fr);
837
+ }
838
+ .pane-header { height: 28px; padding-left: 8px; }
839
+ .pane-kind { font-size: 9px; }
840
+ }
841
+
842
+ @media (max-width: 520px) {
843
+ .bar-label { display: none; }
844
+ .pane-bar { gap: 0; padding-left: 3px; padding-right: 3px; }
845
+ .bar-button { min-width: 38px; padding: 0 7px; }
846
+ .host-pill { max-width: 132px; height: 30px; padding: 0 9px; font-size: 11px; }
847
+ .tab-meta { display: none; }
848
+ .sheet {
849
+ border-radius: 12px;
850
+ }
851
+ }
852
+
853
+ @media (max-width: 380px) {
854
+ .host-pill { max-width: 104px; }
855
+ }
856
+
857
+ /* ─── Reduced motion ────────────────────────────────────────────────────── */
858
+
859
+ @media (prefers-reduced-motion: reduce) {
860
+ *, *::before, *::after {
861
+ animation: none !important;
862
+ transition: none !important;
863
+ scroll-behavior: auto !important;
864
+ }
865
+ .browser-view { cursor: default; }
866
+ }
867
+
868
+
869
+ /* Phone: panes stack instead of shrinking to unreadable quarters. */
870
+ @media (max-width: 600px) {
871
+ .pane-grid,
872
+ .pane-grid[data-count="2"],
873
+ .pane-grid[data-count="3"],
874
+ .pane-grid[data-count="4"] {
875
+ grid-template-columns: minmax(0, 1fr);
876
+ grid-template-rows: none;
877
+ grid-auto-rows: minmax(45dvh, auto);
878
+ align-content: start;
879
+ overflow-y: auto;
880
+ }
881
+ .pane-grid[data-count="1"] { grid-template-rows: minmax(0, 1fr); grid-auto-rows: auto; overflow: hidden; }
882
+ .pane-grid[data-count="3"] > .pane:first-child { grid-column: auto; }
883
+ .pane { min-height: 45dvh; }
884
+ .pane-grid[data-count="1"] .pane { min-height: 0; }
885
+ }
886
+
887
+ /* Inactive browser panes show the page, not the editing rows. */
888
+ .pane-browser:not(.is-active) .browser-toolbar,
889
+ .pane-browser:not(.is-active) .browser-type-row { display: none; }
890
+
891
+ /* Drop target feedback for native file attachment. */
892
+ .pane.drop-target {
893
+ border-color: var(--mint);
894
+ box-shadow: inset 0 0 0 1px rgba(138, 180, 255, 0.6), 0 0 0 1px rgba(138, 180, 255, 0.28);
895
+ }
896
+
897
+
898
+ /* Mobile touch, zoom and safe-area polish. */
899
+ @media (max-width: 699px) {
900
+ .panes-app {
901
+ padding-top: env(safe-area-inset-top);
902
+ padding-bottom: env(safe-area-inset-bottom);
903
+ box-sizing: border-box;
904
+ }
905
+ .pane-header { height: 44px; }
906
+ .pane-close, .pane-maximize { width: 44px; min-width: 44px; height: 44px; }
907
+ .address-input, .browser-type-input, .pane-bar input, .pane-bar select {
908
+ font-size: 16px;
909
+ }
910
+ .pane-bar { padding-bottom: env(safe-area-inset-bottom); }
911
+ }
912
+
913
+
914
+ /* Visible workspace tab strip: only when there is more than one tab. */
915
+ .tabstrip {
916
+ display: flex;
917
+ align-items: center;
918
+ gap: 4px;
919
+ min-height: 34px;
920
+ padding: 3px 6px;
921
+ overflow-x: auto;
922
+ scrollbar-width: none;
923
+ border-bottom: 1px solid var(--line);
924
+ background: var(--surface);
925
+ }
926
+ .tabstrip[hidden] { display: none; }
927
+ .tabstrip::-webkit-scrollbar { display: none; }
928
+ .tabstrip-tab,
929
+ .tabstrip-add {
930
+ flex: 0 0 auto;
931
+ min-height: 30px;
932
+ padding: 0 10px;
933
+ border: 1px solid var(--line-strong);
934
+ border-radius: 7px;
935
+ background: transparent;
936
+ color: var(--muted);
937
+ font: 600 11px/1 var(--font-ui);
938
+ cursor: pointer;
939
+ }
940
+ .tabstrip-tab.is-active {
941
+ border-color: rgba(138, 180, 255, 0.6);
942
+ background: rgba(138, 180, 255, 0.1);
943
+ color: var(--text);
944
+ }
945
+ .tabstrip-tab:hover,
946
+ .tabstrip-add:hover { background: var(--hover); color: var(--text); }
947
+ .tabstrip-add { color: var(--mint); }
948
+
949
+ /* Touch targets: every interactive control is at least 44x44 where a finger
950
+ is the pointer. Keep desktop density; expand only on coarse/mobile. */
951
+ @media (pointer: coarse), (max-width: 699px) {
952
+ .bar-button { min-width: 44px; min-height: 44px; }
953
+ .icon-button { width: 44px; height: 44px; }
954
+ .pane-close, .pane-maximize { width: 44px; min-width: 44px; height: 44px; }
955
+ .browser-icon-button, .address-go { min-width: 44px; height: 44px; }
956
+ .address-input, .browser-type-input, .pane-bar input, .pane-bar select { height: 44px; }
957
+ .tab-select { min-height: 44px; }
958
+ .tab-close { min-width: 44px; }
959
+ .menu-item { min-height: 44px; }
960
+ .tabstrip-tab, .tabstrip-add { min-height: 44px; }
961
+ .sheet .btn, .confirm-actions .btn { min-height: 44px; }
962
+ }
963
+
964
+ .tabstrip { overflow: hidden; }
965
+ .tabstrip-tabs {
966
+ display: flex;
967
+ align-items: stretch;
968
+ gap: 4px;
969
+ min-width: 0;
970
+ overflow-x: auto;
971
+ scrollbar-width: none;
972
+ }
973
+ .tabstrip-tabs::-webkit-scrollbar { display: none; }
974
+ .tabstrip-item {
975
+ display: flex;
976
+ align-items: stretch;
977
+ flex: 0 0 auto;
978
+ border: 1px solid var(--line-strong);
979
+ border-radius: 7px;
980
+ background: transparent;
981
+ }
982
+ .tabstrip-item.is-active {
983
+ border-color: rgba(138, 180, 255, 0.6);
984
+ background: rgba(138, 180, 255, 0.1);
985
+ }
986
+ .tabstrip-item .tabstrip-tab {
987
+ border: 0;
988
+ border-radius: 6px 0 0 6px;
989
+ background: transparent;
990
+ min-height: 30px;
991
+ }
992
+ .tabstrip-close {
993
+ flex: none;
994
+ width: 30px;
995
+ min-height: 30px;
996
+ padding: 0;
997
+ border: 0;
998
+ border-left: 1px solid var(--line);
999
+ border-radius: 0 6px 6px 0;
1000
+ background: transparent;
1001
+ color: var(--faint);
1002
+ font-size: 16px;
1003
+ line-height: 1;
1004
+ }
1005
+ .tabstrip-close:hover { background: rgba(255, 154, 154, 0.12); color: var(--danger); }
1006
+
1007
+ @media (pointer: coarse), (max-width: 699px) {
1008
+ .tabstrip-close { width: 44px; min-height: 44px; }
1009
+ .tabstrip-item .tabstrip-tab { min-height: 44px; }
1010
+ }
1011
+
1012
+ /* Answerable page dialog: confirm()/prompt() must not silently disappear or
1013
+ wedge the pane. */
1014
+ .page-dialog {
1015
+ position: fixed;
1016
+ left: 8px;
1017
+ right: 8px;
1018
+ bottom: calc(var(--bar-height) + env(safe-area-inset-bottom, 0px) + 8px);
1019
+ /* A blocking page prompt stays above the soft docks: it must remain
1020
+ answerable even if the user opens a sheet while it is pending. */
1021
+ z-index: 95;
1022
+ width: auto;
1023
+ max-width: 520px;
1024
+ max-height: 200px;
1025
+ margin: 0 auto;
1026
+ padding: 12px;
1027
+ overflow: auto;
1028
+ border: 1px solid var(--line-strong);
1029
+ border-radius: 10px;
1030
+ background: #151d27;
1031
+ color: var(--text);
1032
+ box-shadow: 0 18px 48px rgba(0, 0, 0, 0.45);
1033
+ }
1034
+
1035
+ .panes-app.dialog-open { bottom: calc(var(--bar-height) + env(safe-area-inset-bottom, 0px) + 216px); }
1036
+
1037
+ .page-dialog[hidden] { display: none; }
1038
+ .page-dialog p { margin: 0 0 8px; font-size: 13px; line-height: 1.45; overflow-wrap: anywhere; }
1039
+ .page-dialog-field { display: flex; flex-direction: column; gap: 4px; margin-bottom: 8px; color: var(--muted); font-size: 11px; }
1040
+ .page-dialog-field[hidden] { display: none; }
1041
+ .page-dialog-field input { min-height: 40px; padding: 0 9px; border: 1px solid var(--line); border-radius: 6px; background: #0c1118; color: var(--text); font-size: 16px; }
1042
+ .page-dialog-actions { display: flex; justify-content: flex-end; gap: 8px; }
1043
+ .page-dialog-actions .btn { min-height: 40px; min-width: 84px; }
1044
+
1045
+ @media (max-width: 699px) {
1046
+ .page-dialog-actions .btn { min-height: 44px; }
1047
+ }
1048
+
1049
+ /* Reader view: word-wrapped transcript for prose; the live pane stays a grid. */
1050
+ .reader-view {
1051
+ position: fixed;
1052
+ inset: 0;
1053
+ z-index: 80;
1054
+ display: flex;
1055
+ flex-direction: column;
1056
+ background: var(--bg);
1057
+ color: var(--text);
1058
+ }
1059
+ .reader-view[hidden] { display: none; }
1060
+ .reader-header {
1061
+ display: flex;
1062
+ align-items: center;
1063
+ justify-content: space-between;
1064
+ gap: 12px;
1065
+ padding: max(12px, env(safe-area-inset-top)) 14px 12px;
1066
+ border-bottom: 1px solid var(--line);
1067
+ background: var(--surface);
1068
+ }
1069
+ .reader-header small { color: var(--muted); font-size: 11px; }
1070
+ .reader-header h2 { margin: 1px 0 0; font-size: 17px; }
1071
+ .reader-actions { display: flex; gap: 8px; }
1072
+ .reader-actions .btn { min-height: 44px; }
1073
+ .reader-text {
1074
+ flex: 1;
1075
+ margin: 0;
1076
+ padding: 14px max(14px, env(safe-area-inset-left)) calc(24px + env(safe-area-inset-bottom));
1077
+ overflow: auto;
1078
+ white-space: pre-wrap;
1079
+ overflow-wrap: break-word;
1080
+ word-break: normal;
1081
+ font-family: var(--font-mono);
1082
+ font-size: 13px;
1083
+ line-height: 1.55;
1084
+ tab-size: 4;
1085
+ }
1086
+
1087
+ .shortcut-list {
1088
+ display: grid;
1089
+ grid-template-columns: max-content 1fr;
1090
+ gap: 8px 14px;
1091
+ margin: 0;
1092
+ font-size: 13px;
1093
+ }
1094
+ .shortcut-list dt { font-family: var(--font-mono); color: var(--mint); }
1095
+ .shortcut-list dd { margin: 0; color: var(--muted); }
1096
+
1097
+ /* Maximize one pane without destroying the four-pane tab. */
1098
+ .pane-grid.is-maximized { grid-template-columns: minmax(0, 1fr) !important; grid-template-rows: minmax(0, 1fr) !important; }
1099
+ .pane-grid.is-maximized > .pane:not(.is-maximized) { display: none; }
1100
+
1101
+ /* Draggable pane dividers. The grid tracks are set inline by panes.mjs so a
1102
+ tab's column/row ratios survive switches in localStorage. */
1103
+ .pane-splitter {
1104
+ position: relative;
1105
+ z-index: 6;
1106
+ background: var(--line);
1107
+ touch-action: none;
1108
+ }
1109
+ .pane-splitter.vertical { cursor: col-resize; }
1110
+ .pane-splitter.horizontal { cursor: row-resize; }
1111
+ .pane-splitter::after {
1112
+ content: '';
1113
+ position: absolute;
1114
+ border-radius: 999px;
1115
+ background: var(--line-strong);
1116
+ opacity: 0.9;
1117
+ }
1118
+ .pane-splitter.vertical::after { left: 2px; top: 12%; width: 2px; height: 76%; }
1119
+ .pane-splitter.horizontal::after { top: 2px; left: 12%; height: 2px; width: 76%; }
1120
+ .pane-splitter:hover::after,
1121
+ .pane-splitter:focus-visible::after,
1122
+ .pane-splitter.dragging::after { background: var(--mint); opacity: 1; }
1123
+ .pane-splitter:focus-visible { outline: 2px solid var(--mint); outline-offset: -2px; }
1124
+ .pane-grid.is-maximized .pane-splitter { display: none; }
1125
+
1126
+ @media (max-width: 600px) {
1127
+ .pane-splitter { display: none; }
1128
+ }
1129
+
1130
+ .pane[data-agent-state="working"] .pane-kind { color: var(--mint); }
1131
+ .pane[data-agent-state="blocked"] .pane-kind { color: #e9d6a1; }
1132
+ .pane[data-agent-state="done"] .pane-kind { color: var(--muted); }
1133
+
1134
+ .pane.reordering { opacity: 0.5; }
1135
+ .pane.drop-target { box-shadow: inset 0 0 0 2px var(--mint); }
1136
+
1137
+ /* Context actions are a docked action rail above the workspace bar, not a
1138
+ floating menu on top of a live pane. */
1139
+ .context-menu {
1140
+ position: fixed;
1141
+ left: 8px;
1142
+ right: 8px;
1143
+ bottom: calc(var(--bar-height) + env(safe-area-inset-bottom, 0px) + 8px);
1144
+ z-index: 75;
1145
+ display: flex;
1146
+ flex-wrap: nowrap;
1147
+ gap: 4px;
1148
+ padding: 6px;
1149
+ overflow-x: auto;
1150
+ border: 1px solid var(--line-strong);
1151
+ border-radius: 9px;
1152
+ background: var(--surface);
1153
+ box-shadow: 0 16px 44px rgba(0, 0, 0, 0.45);
1154
+ }
1155
+
1156
+ .panes-app.menu-open { bottom: calc(var(--bar-height) + env(safe-area-inset-bottom, 0px) + 68px); }
1157
+ .context-menu[hidden] { display: none; }
1158
+ .context-menu button {
1159
+ display: flex;
1160
+ align-items: center;
1161
+ flex: 0 0 auto;
1162
+ min-height: 44px;
1163
+ padding: 0 12px;
1164
+ border: 1px solid transparent;
1165
+ border-radius: 6px;
1166
+ background: var(--raised);
1167
+ color: var(--text);
1168
+ text-align: left;
1169
+ white-space: nowrap;
1170
+ font-size: 13px;
1171
+ }
1172
+ .context-menu button:hover,
1173
+ .context-menu button:focus-visible { background: var(--hover); border-color: var(--line-strong); }
1174
+ @media (pointer: coarse), (max-width: 699px) {
1175
+ .context-menu button { min-height: 44px; }
1176
+ }
1177
+
1178
+ .browser-image:focus-visible { outline: 2px solid var(--mint); outline-offset: -2px; }
1179
+
1180
+ @media (max-width: 699px) {
1181
+ body.keyboard-open .panes-app { bottom: var(--keyboard-inset, 0px); }
1182
+ }
1183
+
1184
+ .pane[data-created-by="agent"] .pane-kind::after { content: ' · agent'; color: #e9d6a1; }
1185
+ .tabstrip-tab.agent-tab::after { content: ' agent'; color: #e9d6a1; font-size: 9px; text-transform: uppercase; letter-spacing: 0.04em; }
1186
+
1187
+ #browser-control-select,
1188
+ #browser-control-value {
1189
+ width: 100%;
1190
+ min-height: 44px;
1191
+ margin: 0 0 8px;
1192
+ padding: 0 9px;
1193
+ border: 1px solid var(--line);
1194
+ border-radius: 6px;
1195
+ background: #0c1118;
1196
+ color: var(--text);
1197
+ }
1198
+ #browser-control-select[hidden],
1199
+ #browser-control-value[hidden] { display: none; }
1200
+
1201
+ .browser-view { position: relative; }
1202
+ .pane-reopen {
1203
+ position: absolute;
1204
+ left: 50%;
1205
+ top: 50%;
1206
+ z-index: 5;
1207
+ min-height: 44px;
1208
+ padding: 0 16px;
1209
+ transform: translate(-50%, -50%);
1210
+ border: 1px solid var(--mint);
1211
+ border-radius: 8px;
1212
+ background: rgba(8, 13, 10, 0.92);
1213
+ color: var(--mint);
1214
+ font-size: 13px;
1215
+ }
1216
+ .pane-reopen[hidden] { display: none; }
1217
+
1218
+ /* Overlays can overlap in time: a page dialog may arrive while a sheet is
1219
+ open, and the soft keyboard shrinks the viewport. Reserve the union of the
1220
+ active overlays so a later, smaller one never steals the space the live
1221
+ panes need. */
1222
+ @media (max-width: 899px) {
1223
+ .panes-app.panel-open.menu-open {
1224
+ bottom: max(calc(var(--panel-h) + 16px), calc(var(--bar-height) + env(safe-area-inset-bottom, 0px) + 68px));
1225
+ }
1226
+ .panes-app.menu-open.dialog-open {
1227
+ bottom: max(calc(var(--bar-height) + env(safe-area-inset-bottom, 0px) + 68px), calc(var(--bar-height) + env(safe-area-inset-bottom, 0px) + 216px));
1228
+ }
1229
+ .panes-app.panel-open.dialog-open {
1230
+ bottom: max(calc(var(--panel-h) + 16px), calc(var(--bar-height) + env(safe-area-inset-bottom, 0px) + 216px));
1231
+ }
1232
+ }
1233
+ @media (max-width: 699px) {
1234
+ body.keyboard-open .panes-app.menu-open {
1235
+ bottom: max(var(--keyboard-inset, 0px), calc(var(--bar-height) + env(safe-area-inset-bottom, 0px) + 68px));
1236
+ }
1237
+ /* The browser-control input keeps the keyboard open, so lift the aside and
1238
+ reserve the space above it instead of leaving it behind the keyboard. */
1239
+ body.keyboard-open .page-dialog {
1240
+ bottom: calc(var(--keyboard-inset, 0px) + var(--bar-height) + env(safe-area-inset-bottom, 0px) + 8px);
1241
+ }
1242
+ body.keyboard-open .panes-app.dialog-open {
1243
+ bottom: calc(var(--keyboard-inset, 0px) + var(--bar-height) + env(safe-area-inset-bottom, 0px) + 216px);
1244
+ }
1245
+ body.keyboard-open .panes-app.panel-open {
1246
+ bottom: max(var(--keyboard-inset, 0px), calc(var(--panel-h) + 16px));
1247
+ }
1248
+ body.keyboard-open .panes-app.panel-open.menu-open {
1249
+ bottom: max(var(--keyboard-inset, 0px), calc(var(--panel-h) + 16px), calc(var(--bar-height) + env(safe-area-inset-bottom, 0px) + 68px));
1250
+ }
1251
+ body.keyboard-open .panes-app.menu-open.dialog-open {
1252
+ bottom: calc(var(--keyboard-inset, 0px) + var(--bar-height) + env(safe-area-inset-bottom, 0px) + 216px);
1253
+ }
1254
+ body.keyboard-open .panes-app.panel-open.dialog-open {
1255
+ bottom: max(calc(var(--panel-h) + 16px), calc(var(--keyboard-inset, 0px) + var(--bar-height) + env(safe-area-inset-bottom, 0px) + 216px));
1256
+ }
1257
+ }