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,1447 @@
1
+ :root {
2
+ --ws-paper: #eef1f5;
3
+ --ws-ink: #202832;
4
+ --ws-glass: #ffffffcc;
5
+ --ws-line: #cbd2dc;
6
+ --ws-blue: #175cbb;
7
+ --ws-muted: #526171;
8
+ --ws-ease: cubic-bezier(.2, .8, .2, 1);
9
+ --ws-shadow: 0 14px 48px #20283212;
10
+ --ws-danger: #9c342c;
11
+ /* Control boundaries must be visible: 3.60:1 on white, 3.18:1 on paper.
12
+ The pale --ws-line stays for decorative hairlines only. */
13
+ --ws-control: #7c8898;
14
+ --ws-motion-fast: 180ms;
15
+ --ws-motion: 260ms;
16
+ --ws-dock-w: 300px;
17
+ --ws-dock-h: 46dvh;
18
+ }
19
+
20
+ /* Workspace chrome uses the light platform palette, not the terminal theme. */
21
+ .workspace {
22
+ --ui-bg: #ffffff;
23
+ --ui-fg: var(--ws-ink);
24
+ --ui-elevated: #f7f9fb;
25
+ --ui-border: var(--ws-control);
26
+ --ui-accent: var(--ws-blue);
27
+ --ui-muted: var(--ws-muted);
28
+ }
29
+
30
+ body.workspace {
31
+ background: var(--ws-paper);
32
+ font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
33
+ color: var(--ws-ink);
34
+ padding: max(16px, env(safe-area-inset-top)) 16px 16px 248px;
35
+ }
36
+
37
+ .workspace .app-shell {
38
+ border: 1px solid var(--ws-line);
39
+ border-radius: 20px;
40
+ overflow: hidden;
41
+ background: var(--ui-bg);
42
+ box-shadow: var(--ws-shadow);
43
+ display: flex;
44
+ }
45
+
46
+ .workspace .terminal-header {
47
+ min-height: 60px;
48
+ gap: 8px;
49
+ background: rgba(255, 255, 255, .82);
50
+ color: var(--ws-ink);
51
+ border-bottom: 1px solid var(--ws-line);
52
+ padding: 8px 16px;
53
+ backdrop-filter: blur(24px);
54
+ flex-wrap: nowrap;
55
+ }
56
+ .workspace .terminal-title {
57
+ display: flex;
58
+ align-items: center;
59
+ gap: 8px;
60
+ font: 600 14px/1.2 -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
61
+ color: var(--ws-ink);
62
+ white-space: nowrap;
63
+ }
64
+ .workspace .terminal-title::before {
65
+ content: '';
66
+ width: 24px;
67
+ height: 24px;
68
+ background: url('/icon.svg') center / contain no-repeat;
69
+ }
70
+ .workspace .terminal-title::after {
71
+ content: ' / Shell';
72
+ font-weight: 400;
73
+ color: var(--ws-muted);
74
+ }
75
+ .workspace .terminal-status { border: 0; background: transparent; color: var(--ws-muted); font-size: 12px; }
76
+ .workspace .terminal-status.connected { color: var(--ws-blue); }
77
+ .workspace .status-dot.connected { background: var(--ws-blue); }
78
+ .workspace .statuswrap { margin-left: auto; gap: 6px; white-space: nowrap; }
79
+ .workspace .terminal-container { padding: 16px; min-width: 0; overflow: hidden; }
80
+ .workspace .keybar { position: relative; z-index: 2; }
81
+ .workspace .terminal-footer { position: relative; z-index: 2; min-height: 30px; background: #f7f9fb; color: var(--ws-muted); font-size: 11px; }
82
+ .workspace .t1-chrome-fab, .workspace .t1-fab { display: none !important; }
83
+
84
+ .workspace-session-pill {
85
+ display: inline-flex;
86
+ align-items: center;
87
+ gap: 6px;
88
+ max-width: 18ch;
89
+ padding: 4px 10px;
90
+ border: 1px solid var(--ws-control);
91
+ border-radius: 9px;
92
+ background: var(--ws-glass);
93
+ color: var(--ws-muted);
94
+ font-size: 11px;
95
+ white-space: nowrap;
96
+ overflow: hidden;
97
+ text-overflow: ellipsis;
98
+ cursor: pointer;
99
+ }
100
+ .workspace-session-pill::before {
101
+ content: '';
102
+ width: 6px;
103
+ height: 6px;
104
+ flex: 0 0 auto;
105
+ border-radius: 50%;
106
+ background: var(--ws-blue);
107
+ }
108
+ .workspace-session-pill::after {
109
+ content: '▾';
110
+ font-size: 10px;
111
+ color: var(--ws-muted);
112
+ flex: 0 0 auto;
113
+ }
114
+ .workspace-reconnect {
115
+ min-height: 44px;
116
+ padding: 0 10px;
117
+ border: 1px solid var(--ws-blue);
118
+ border-radius: 9px;
119
+ background: transparent;
120
+ color: var(--ws-blue);
121
+ font-size: 11px;
122
+ }
123
+ .workspace-reconnect[hidden], .workspace-session-pill[hidden] { display: none !important; }
124
+
125
+ /* Terminal sessions */
126
+ .workspace .t1session-tabs { display: flex; align-items: center; gap: 6px; margin-left: 4px; overflow: hidden; }
127
+ .workspace .t1session-tab {
128
+ min-height: 44px;
129
+ padding: 4px 10px;
130
+ font-size: 11px;
131
+ background: transparent;
132
+ border: 1px solid transparent;
133
+ border-radius: 9px;
134
+ color: var(--ws-muted);
135
+ }
136
+ .workspace .t1session-tab.active {
137
+ color: var(--ws-blue);
138
+ background: var(--ws-glass);
139
+ border-color: var(--ws-control);
140
+ }
141
+ .workspace .t1session-tab.t1session-new {
142
+ width: 44px;
143
+ min-width: 44px;
144
+ padding: 0;
145
+ justify-content: center;
146
+ font-size: 18px;
147
+ color: var(--ws-blue);
148
+ background: var(--ws-glass);
149
+ border: 1px solid var(--ws-control);
150
+ border-radius: 10px;
151
+ }
152
+
153
+ /* Workspace navigation */
154
+ .workspace-nav {
155
+ position: fixed;
156
+ inset: 24px auto 24px 20px;
157
+ width: 208px;
158
+ display: flex;
159
+ flex-direction: column;
160
+ gap: 4px;
161
+ }
162
+ .workspace-brand {
163
+ display: flex;
164
+ flex-direction: column;
165
+ gap: 10px;
166
+ align-items: center;
167
+ margin: 6px 8px 16px;
168
+ padding-bottom: 18px;
169
+ border-bottom: 1px solid var(--ws-line);
170
+ font-size: 19px;
171
+ font-weight: 650;
172
+ letter-spacing: -.5px;
173
+ text-align: center;
174
+ }
175
+ .workspace-brand svg { width: 28px; height: 28px; color: var(--ws-blue); }
176
+ .workspace-brand .brand-art {
177
+ position: relative;
178
+ isolation: isolate;
179
+ width: min(100%, 168px);
180
+ aspect-ratio: 1;
181
+ flex: 0 0 auto;
182
+ }
183
+ .workspace-brand .brand-art::before {
184
+ content: '';
185
+ position: absolute;
186
+ inset: 10% 4% 4%;
187
+ border-radius: 50%;
188
+ background: radial-gradient(ellipse, #dfe6ef, transparent 72%);
189
+ z-index: -1;
190
+ }
191
+ .workspace-brand .brand-art img {
192
+ display: block;
193
+ width: 100%;
194
+ height: 100%;
195
+ object-fit: contain;
196
+ filter: drop-shadow(0 14px 26px #20283224);
197
+ }
198
+ .workspace-brand small {
199
+ display: block;
200
+ font-size: 11px;
201
+ font-weight: 400;
202
+ color: var(--ws-muted);
203
+ letter-spacing: 0;
204
+ margin-top: 3px;
205
+ }
206
+ .workspace svg { width: 21px; height: 21px; flex-shrink: 0; }
207
+ .workspace-nav > button, .workspace-nav .nav-bottom > button {
208
+ border: 0;
209
+ background: transparent;
210
+ color: var(--ws-ink);
211
+ display: flex;
212
+ align-items: center;
213
+ gap: 11px;
214
+ text-align: left;
215
+ width: 100%;
216
+ min-height: 46px;
217
+ padding: 9px 12px;
218
+ border-radius: 11px;
219
+ font-size: 13px;
220
+ transition: background 200ms var(--ws-ease), color 200ms var(--ws-ease);
221
+ }
222
+ .workspace-nav > button:hover, .workspace-nav .nav-bottom > button:hover, .workspace-nav > button.selected, .workspace-nav .nav-bottom > button.selected {
223
+ background: var(--ws-glass);
224
+ box-shadow: 0 1px 3px #20283210;
225
+ }
226
+ .workspace-nav > button.selected, .workspace-nav .nav-bottom > button.selected { color: var(--ws-blue); }
227
+ .workspace-nav > button span, .workspace-nav .nav-bottom > button span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
228
+ .workspace-label { font-size: 11px; color: var(--ws-muted); margin: 20px 12px 6px; }
229
+ #browser-tabs { display: flex; flex-direction: column; gap: 2px; max-height: 35vh; overflow: auto; }
230
+ #browser-tabs .browser-tab { width: 100%; min-height: 44px; }
231
+ #browser-tabs .browser-tab-label { flex: 1; }
232
+ #browser-tabs .browser-tab-badge { display: none; }
233
+ .nav-bottom { margin-top: auto; }
234
+ .nav-status { font-size: 11px; color: var(--ws-muted); margin: 18px 12px 0; }
235
+ .workspace-credit {
236
+ display: flex;
237
+ align-items: center;
238
+ gap: 9px;
239
+ margin: 18px 12px 0;
240
+ color: var(--ws-muted);
241
+ font-size: 11px;
242
+ line-height: 1.3;
243
+ text-decoration: none;
244
+ }
245
+ .workspace-credit img {
246
+ width: 30px;
247
+ height: 30px;
248
+ border-radius: 8px;
249
+ object-fit: cover;
250
+ border: 1px solid var(--ws-line);
251
+ flex: 0 0 auto;
252
+ }
253
+ .workspace-credit:hover { color: var(--ws-ink); }
254
+
255
+ /* Desktop rail toggle: the labeled menu collapses to 72px on request. */
256
+ .workspace-nav > button.workspace-nav-toggle {
257
+ display: none;
258
+ }
259
+ .workspace-nav-toggle {
260
+ align-items: center;
261
+ justify-content: center;
262
+ gap: 8px;
263
+ width: 100%;
264
+ min-height: 44px;
265
+ padding: 8px 10px;
266
+ border: 1px solid var(--ws-control);
267
+ border-radius: 11px;
268
+ background: var(--ws-glass);
269
+ color: var(--ws-muted);
270
+ font-size: 12px;
271
+ }
272
+ .workspace-nav-toggle:hover { color: var(--ws-ink); }
273
+ .workspace-nav-toggle svg { width: 18px; height: 18px; }
274
+
275
+ @media (min-width: 1100px) and (max-height: 820px) {
276
+ /* Wide but short (iPad landscape): the labeled sidebar must still fit the
277
+ viewport with the nav toggle. Keep the identity, drop secondary rows. */
278
+ .workspace-nav { overflow-y: auto; scrollbar-width: thin; }
279
+ .workspace-nav .brand-art { width: 96px; }
280
+ .workspace-brand { margin-bottom: 8px; padding-bottom: 10px; }
281
+ .workspace-credit { display: none; }
282
+ .nav-status { margin-top: 10px; }
283
+ }
284
+
285
+ @media (min-width: 1100px) {
286
+ .workspace-nav > button.workspace-nav-toggle { display: flex; }
287
+ body.workspace.nav-collapsed { padding-left: 92px; }
288
+ body.workspace.nav-collapsed .workspace-nav {
289
+ width: 72px;
290
+ inset: 16px auto 16px 12px;
291
+ }
292
+ body.workspace.nav-collapsed .workspace-nav > button,
293
+ body.workspace.nav-collapsed .workspace-nav .nav-bottom > button {
294
+ flex-direction: column;
295
+ justify-content: center;
296
+ gap: 4px;
297
+ padding: 8px 4px;
298
+ min-height: 60px;
299
+ font-size: 10px;
300
+ text-align: center;
301
+ }
302
+ body.workspace.nav-collapsed .workspace-nav > button span,
303
+ body.workspace.nav-collapsed .workspace-nav .nav-bottom > button span {
304
+ max-width: 64px;
305
+ white-space: normal;
306
+ line-height: 1.15;
307
+ }
308
+ body.workspace.nav-collapsed .workspace-brand {
309
+ margin: 0 0 12px;
310
+ padding-bottom: 0;
311
+ border-bottom: 0;
312
+ }
313
+ body.workspace.nav-collapsed .workspace-brand .brand-art { width: 48px; }
314
+ body.workspace.nav-collapsed .workspace-brand .brand-art::before { display: none; }
315
+ body.workspace.nav-collapsed .workspace-brand span,
316
+ body.workspace.nav-collapsed .workspace-label,
317
+ body.workspace.nav-collapsed .nav-status,
318
+ body.workspace.nav-collapsed .workspace-credit,
319
+ body.workspace.nav-collapsed #browser-tabs { display: none; }
320
+ /* Tabs stay reachable in the browser surface when the sidebar tab list is
321
+ gone; the strip is the same tab model, not a new one. With a single tab it
322
+ would cost height for no switcher, so it appears only for 2+ tabs. The
323
+ rail keeps its own New tab control in every case: the strip is inside the
324
+ browser surface and is not visible while the terminal is active. */
325
+ body.workspace.nav-collapsed.multi-tab .browser-tabstrip { display: flex; }
326
+ body.workspace.nav-collapsed .workspace-nav-toggle { min-height: 44px; padding: 8px 4px; }
327
+ body.workspace.nav-collapsed .workspace-nav-toggle svg { transform: rotate(-90deg); }
328
+ }
329
+
330
+ /* Native controls preserve keyboard and assistive-technology semantics. */
331
+ .workspace button, .workspace input, .workspace select { font-family: inherit; }
332
+ .workspace button {
333
+ min-height: 44px;
334
+ transition-duration: 180ms;
335
+ transition-timing-function: var(--ws-ease);
336
+ }
337
+ .workspace button:active { transform: scale(.98); }
338
+ .workspace input, .workspace select {
339
+ min-height: 44px;
340
+ border: 1px solid var(--ws-control);
341
+ border-radius: 9px;
342
+ padding: 8px 12px;
343
+ font-size: 14px;
344
+ background: white;
345
+ color: var(--ws-ink);
346
+ min-width: 0;
347
+ }
348
+ .workspace :focus-visible { outline: 2px solid var(--ws-blue); outline-offset: 3px; }
349
+ .workspace .keybar .kb-key:active, .workspace .keybar .kb-key.toggle.active { color: #fff; }
350
+ .workspace .t1button.active { color: #fff; }
351
+ .workspace input, .workspace select, .workspace textarea { color-scheme: light; accent-color: var(--ws-blue); }
352
+
353
+ /* Docked control panel.
354
+ A panel never paints over the terminal or browser. It reserves its own
355
+ column (desktop) or row (tablet, phone), and the live surfaces reflow. */
356
+ .workspace-drawer {
357
+ position: fixed;
358
+ inset: 16px 16px 16px auto;
359
+ margin: 0;
360
+ width: var(--ws-dock-w);
361
+ height: auto;
362
+ max-height: none;
363
+ z-index: 90;
364
+ color: var(--ws-ink);
365
+ background: #ffffff;
366
+ border: 1px solid var(--ws-control);
367
+ border-radius: 18px;
368
+ padding: 24px;
369
+ box-shadow: 0 18px 48px #2028321f;
370
+ animation: dock-in var(--ws-motion) var(--ws-ease);
371
+ display: flex;
372
+ flex-direction: column;
373
+ overflow: hidden;
374
+ }
375
+ .workspace-drawer:not([open]) { display: none; pointer-events: none; }
376
+ .workspace-drawer > header, .workspace-drawer > #tool-filter,
377
+ .workspace-drawer > .drawer-empty, .workspace-drawer > .drawer-credit { flex: 0 0 auto; }
378
+ .workspace-drawer::backdrop { background: transparent; }
379
+
380
+ /* The reserved dock space is part of layout, not a scrim. */
381
+ body.workspace:has(.workspace-drawer[open]),
382
+ body.workspace:has(#settingsModal.open) { padding-right: calc(16px + var(--ws-dock-w) + 16px); }
383
+ .workspace-drawer header { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 18px; }
384
+ .workspace-drawer h2 { font-size: 22px; letter-spacing: -.6px; margin: 5px 0; }
385
+ .workspace-drawer small, .workspace-drawer h3 { color: var(--ws-muted); font-size: 11px; }
386
+ .workspace-drawer #tool-filter { width: 100%; margin-bottom: 16px; }
387
+ .drawer-groups { display: flex; flex-direction: column; gap: 16px; flex: 1 1 auto; min-height: 0; overflow: auto; max-height: none; padding-right: 2px; }
388
+ .drawer-group h3 { margin: 0 0 4px 4px; font-weight: 600; }
389
+ .drawer-list { display: flex; flex-direction: column; gap: 2px; }
390
+ .drawer-row {
391
+ width: 100%;
392
+ min-height: 48px;
393
+ display: flex;
394
+ align-items: center;
395
+ gap: 12px;
396
+ padding: 8px 10px;
397
+ border: 0;
398
+ border-radius: 10px;
399
+ background: transparent;
400
+ color: var(--ws-ink);
401
+ text-align: left;
402
+ font-size: 13px;
403
+ }
404
+ .drawer-row:hover { background: var(--ws-paper); }
405
+ .drawer-row svg { width: 20px; height: 20px; color: var(--ws-muted); flex: 0 0 auto; }
406
+ .drawer-row-copy { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
407
+ .drawer-row-copy::after { content: attr(data-desc); font-size: 11px; color: var(--ws-muted); }
408
+ .drawer-row-name { font-size: 13px; color: var(--ws-ink); }
409
+ .drawer-row::after { content: '›'; margin-left: auto; color: var(--ws-line); }
410
+ .drawer-font-row::after { content: none; }
411
+ .drawer-row-chevron { margin-left: auto; color: var(--ws-line); }
412
+ .drawer-row-danger .drawer-row-name, .drawer-row-danger svg { color: var(--ws-danger); }
413
+ .drawer-phone-only { display: none; }
414
+ .drawer-group-workspace { display: none; }
415
+ @media (max-width: 699px) {
416
+ .drawer-group-workspace { display: block; }
417
+ .drawer-phone-only { display: flex; }
418
+ }
419
+ .workspace .drawer-row.active { background: #175cbb !important; color: #fff; }
420
+ .workspace .drawer-row.active .drawer-row-name,
421
+ .workspace .drawer-row.active .drawer-row-copy::after,
422
+ .workspace .drawer-row.active svg,
423
+ .workspace .drawer-row.active::after { color: #fff; }
424
+ .workspace .drawer-row.active::after { content: '✓'; }
425
+ .workspace .drawer-row.active:hover { background: #175cbb !important; }
426
+ .drawer-font-row { cursor: default; }
427
+ .drawer-font-row .t1font-group { margin-left: auto; flex: 0 0 auto; }
428
+ .drawer-font-row .t1font-label { min-width: 32px; }
429
+ .drawer-font-row .t1font-group .t1button { flex: 0 0 44px; min-width: 44px; }
430
+ .drawer-empty { color: var(--ws-muted); font-size: 12px; padding: 12px 4px; }
431
+ .drawer-credit {
432
+ display: flex;
433
+ align-items: center;
434
+ gap: 10px;
435
+ margin-top: 16px;
436
+ padding-top: 14px;
437
+ border-top: 1px solid var(--ws-line);
438
+ color: var(--ws-muted);
439
+ font-size: 12px;
440
+ text-decoration: none;
441
+ }
442
+ .drawer-credit img {
443
+ width: 36px;
444
+ height: 36px;
445
+ border-radius: 9px;
446
+ object-fit: cover;
447
+ border: 1px solid var(--ws-line);
448
+ flex: 0 0 auto;
449
+ }
450
+ .drawer-credit small { display: block; font-size: 10px; color: var(--ws-muted); }
451
+ .drawer-credit:hover { color: var(--ws-ink); }
452
+ .workspace-drawer #t1toolbar {
453
+ display: flex !important;
454
+ flex-direction: column !important;
455
+ position: static !important;
456
+ flex-wrap: nowrap !important;
457
+ max-height: none !important;
458
+ overflow: visible !important;
459
+ visibility: visible !important;
460
+ transform: none !important;
461
+ opacity: 1 !important;
462
+ background: transparent !important;
463
+ padding: 0 !important;
464
+ gap: 2px !important;
465
+ border: 0 !important;
466
+ }
467
+ .workspace-drawer textarea { width: 100%; min-height: 120px; resize: vertical; }
468
+ .workspace-drawer { scrollbar-width: auto; scrollbar-color: var(--ws-muted) var(--ws-paper); }
469
+ .browser-reading {
470
+ white-space: pre-wrap;
471
+ overflow-wrap: anywhere;
472
+ line-height: 1.6;
473
+ margin-top: 20px;
474
+ flex: 1 1 auto;
475
+ min-height: 0;
476
+ overflow-y: auto;
477
+ }
478
+ .workspace [hidden], .workspace-drawer [hidden] { display: none !important; }
479
+
480
+ /* Browser surface */
481
+ .browser-surface {
482
+ display: flex;
483
+ flex-direction: column;
484
+ background: var(--ws-paper);
485
+ color: var(--ws-ink);
486
+ min-width: 0;
487
+ min-height: 0;
488
+ animation: surface-in 220ms var(--ws-ease);
489
+ flex: 1 1 auto;
490
+ }
491
+ .browser-tabstrip {
492
+ display: none;
493
+ align-items: center;
494
+ gap: 6px;
495
+ padding: 8px 10px;
496
+ border-bottom: 1px solid var(--ws-line);
497
+ background: rgba(255, 255, 255, .82);
498
+ backdrop-filter: blur(18px);
499
+ flex: 0 0 auto;
500
+ }
501
+ .browser-tablist {
502
+ display: flex;
503
+ align-items: center;
504
+ gap: 6px;
505
+ flex: 1;
506
+ min-width: 0;
507
+ overflow-x: auto;
508
+ scrollbar-width: none;
509
+ }
510
+ .browser-tablist::-webkit-scrollbar { display: none; }
511
+ .browser-tab {
512
+ display: inline-flex;
513
+ align-items: center;
514
+ gap: 6px;
515
+ min-height: 44px;
516
+ max-width: 230px;
517
+ padding: 4px 4px 4px 10px;
518
+ border: 1px solid transparent;
519
+ border-radius: 10px;
520
+ background: transparent;
521
+ color: var(--ws-muted);
522
+ font-size: 12px;
523
+ white-space: nowrap;
524
+ cursor: pointer;
525
+ }
526
+ .browser-tab.selected {
527
+ color: var(--ws-ink);
528
+ background: var(--ws-glass);
529
+ border-color: var(--ws-control);
530
+ }
531
+ .browser-tab-label { overflow: hidden; text-overflow: ellipsis; min-width: 0; }
532
+ .browser-tab-badge {
533
+ font-size: 9px;
534
+ padding: 1px 5px;
535
+ border: 1px solid var(--ws-control);
536
+ border-radius: 6px;
537
+ color: var(--ws-muted);
538
+ background: white;
539
+ flex: 0 0 auto;
540
+ }
541
+ .browser-tab-badge.agent { color: var(--ws-blue); border-color: var(--ws-blue); }
542
+ .browser-tab svg { width: 18px; height: 18px; flex: 0 0 auto; }
543
+ .browser-tab-close {
544
+ width: 44px;
545
+ min-width: 44px;
546
+ height: 44px;
547
+ min-height: 44px;
548
+ padding: 0;
549
+ border: 0;
550
+ border-radius: 8px;
551
+ background: transparent;
552
+ color: var(--ws-muted);
553
+ font-size: 17px;
554
+ line-height: 1;
555
+ }
556
+ .browser-surface .browser-tab-close { background: transparent; border: 0; }
557
+ .browser-surface .browser-tab-close:hover { background: var(--ws-paper); color: var(--ws-ink); }
558
+ .browser-icon-button, .browser-strip-button {
559
+ height: 44px;
560
+ min-height: 44px;
561
+ padding: 0 12px;
562
+ display: inline-flex;
563
+ align-items: center;
564
+ justify-content: center;
565
+ gap: 6px;
566
+ border-radius: 10px;
567
+ background: var(--ws-glass);
568
+ border: 1px solid var(--ws-control);
569
+ color: var(--ws-ink);
570
+ font-size: 12px;
571
+ }
572
+ .browser-icon-button { width: 44px; min-width: 44px; padding: 0; }
573
+ .browser-icon-button svg, .browser-strip-button svg { width: 18px; height: 18px; }
574
+ .browser-heading {
575
+ padding: 16px 20px 6px;
576
+ display: flex;
577
+ align-items: center;
578
+ justify-content: space-between;
579
+ gap: 12px;
580
+ flex: 0 0 auto;
581
+ }
582
+ .browser-heading h2 {
583
+ font-size: 18px;
584
+ margin: 3px 0 0;
585
+ max-width: 34ch;
586
+ overflow: hidden;
587
+ text-overflow: ellipsis;
588
+ white-space: nowrap;
589
+ }
590
+ .browser-eyebrow { font-size: 11px; color: var(--ws-muted); }
591
+ .browser-surface button { color: var(--ws-ink); background: var(--ws-glass); border: 1px solid var(--ws-control); border-radius: 9px; }
592
+ #browser-address { display: flex; align-items: center; gap: 6px; margin: 0 16px 10px; flex: 0 0 auto; }
593
+ #browser-address button { min-width: 44px; padding: 0 10px; }
594
+ /* The permissions panel starts closed; Share opens it. The address row carries
595
+ Share only where the tab strip (which has its own) is hidden. */
596
+ #browser-share-bottom { display: none; }
597
+ #browser-url { flex: 1; width: 0; }
598
+ .browser-permissions {
599
+ display: none;
600
+ align-items: center;
601
+ gap: 8px;
602
+ padding: 0 16px 10px;
603
+ flex-wrap: wrap;
604
+ font-size: 12px;
605
+ flex: 0 0 auto;
606
+ }
607
+ .browser-surface.share-open .browser-permissions { display: flex; }
608
+ /* Collapsible chrome: one control removes every bar above the page except a
609
+ slim strip that names the page and brings the controls back. */
610
+ .browser-surface.chrome-collapsed .browser-tabstrip,
611
+ .browser-surface.chrome-collapsed .browser-heading,
612
+ .browser-surface.chrome-collapsed #browser-address,
613
+ .browser-surface.chrome-collapsed .browser-permissions,
614
+ .browser-surface.chrome-collapsed #browser-message,
615
+ .browser-surface.chrome-collapsed #browser-type { display: none !important; }
616
+ #browser-address .browser-strip-button span { display: none; }
617
+ #browser-address .browser-strip-button { min-width: 44px; padding: 0 10px; }
618
+ .browser-chrome-restore {
619
+ display: none;
620
+ align-items: center;
621
+ gap: 8px;
622
+ width: 100%;
623
+ flex: 0 0 auto;
624
+ border: 0;
625
+ border-bottom: 1px solid var(--ws-line);
626
+ border-radius: 0;
627
+ padding: 0 14px;
628
+ background: rgba(255, 255, 255, .72);
629
+ color: var(--ws-muted);
630
+ font-size: 11px;
631
+ text-align: left;
632
+ }
633
+ .browser-surface .browser-chrome-restore { min-height: 32px; }
634
+ .browser-surface.chrome-collapsed .browser-chrome-restore { display: flex; }
635
+ .browser-chrome-restore svg { width: 15px; height: 15px; flex: none; transform: rotate(180deg); }
636
+ .browser-chrome-restore-title {
637
+ color: var(--ws-ink);
638
+ font-weight: 600;
639
+ min-width: 0;
640
+ overflow: hidden;
641
+ text-overflow: ellipsis;
642
+ white-space: nowrap;
643
+ }
644
+ .browser-chrome-restore-hint {
645
+ margin-left: auto;
646
+ flex: none;
647
+ font-size: 9px;
648
+ letter-spacing: .08em;
649
+ text-transform: uppercase;
650
+ color: var(--ws-muted);
651
+ }
652
+ .browser-chrome-restore:hover { background: var(--ws-paper); color: var(--ws-ink); }
653
+ .browser-permissions label { color: var(--ws-muted); font-size: 11px; }
654
+ #browser-message {
655
+ display: flex;
656
+ align-items: center;
657
+ gap: 6px;
658
+ flex-wrap: wrap;
659
+ font-size: 11px;
660
+ line-height: 1.3;
661
+ color: var(--ws-muted);
662
+ padding: 2px 14px;
663
+ min-height: 22px;
664
+ flex: 0 0 auto;
665
+ }
666
+ .browser-badge {
667
+ font-size: 10px;
668
+ padding: 2px 6px;
669
+ border: 1px solid var(--ws-control);
670
+ border-radius: 6px;
671
+ background: var(--ws-glass);
672
+ color: var(--ws-muted);
673
+ white-space: nowrap;
674
+ }
675
+ .browser-badge.agent { color: var(--ws-blue); border-color: var(--ws-blue); }
676
+ #browser-title-compact { display: none; font-size: 12px; color: var(--ws-ink); max-width: 22ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
677
+ #browser-message-text { flex: 1 1 auto; min-width: 0; }
678
+ .browser-canvas {
679
+ flex: 1;
680
+ min-height: 0;
681
+ overflow: auto;
682
+ background: #fff;
683
+ border-block: 1px solid var(--ws-line);
684
+ position: relative;
685
+ }
686
+ #browser-frame { width: 100%; height: auto; display: block; touch-action: pan-y; }
687
+ #browser-empty {
688
+ height: 100%;
689
+ display: flex;
690
+ flex-direction: column;
691
+ justify-content: center;
692
+ align-items: center;
693
+ text-align: center;
694
+ padding: 24px;
695
+ }
696
+ #browser-empty svg { width: 40px; height: 40px; color: var(--ws-muted); }
697
+ /* The mascot belongs in the navigation rail, not in the working area. */
698
+ #browser-empty h3 { font-size: 22px; letter-spacing: -.6px; margin-bottom: 0; }
699
+ #browser-empty p { font-size: 14px; line-height: 1.7; color: var(--ws-muted); }
700
+ #browser-type { display: flex; align-items: center; gap: 6px; padding: 10px 16px; flex: 0 0 auto; }
701
+ #browser-type input { flex: 1; width: 0; }
702
+ #browser-type button { min-width: 44px; padding: 0 10px; }
703
+
704
+ /* Split handle: a draggable separator between terminal and browser */
705
+ .split-handle {
706
+ display: none;
707
+ position: relative;
708
+ touch-action: none;
709
+ user-select: none;
710
+ }
711
+ .workspace.browser-open .split-handle {
712
+ display: flex;
713
+ align-items: center;
714
+ justify-content: center;
715
+ }
716
+ .workspace.browser-open .split-handle[data-orientation="horizontal"] {
717
+ height: 44px;
718
+ flex: 0 0 44px;
719
+ cursor: row-resize;
720
+ }
721
+ .workspace.browser-open .split-handle[data-orientation="vertical"] {
722
+ width: 12px;
723
+ height: 100%;
724
+ cursor: col-resize;
725
+ }
726
+ .workspace.browser-open .split-handle::after {
727
+ content: '';
728
+ position: absolute;
729
+ background: var(--ws-control);
730
+ transition: background 160ms var(--ws-ease);
731
+ }
732
+ .workspace.browser-open .split-handle[data-orientation="horizontal"]::after {
733
+ left: 0;
734
+ right: 0;
735
+ height: 1px;
736
+ }
737
+ .workspace.browser-open .split-handle[data-orientation="vertical"]::after {
738
+ top: 0;
739
+ bottom: 0;
740
+ width: 1px;
741
+ }
742
+ .workspace.browser-open .split-handle::before {
743
+ content: '';
744
+ position: relative;
745
+ z-index: 1;
746
+ border-radius: 999px;
747
+ background: var(--ws-control);
748
+ transition: background 160ms var(--ws-ease);
749
+ }
750
+ .workspace.browser-open .split-handle[data-orientation="horizontal"]::before {
751
+ width: 52px;
752
+ height: 4px;
753
+ }
754
+ .workspace.browser-open .split-handle[data-orientation="vertical"]::before {
755
+ width: 4px;
756
+ height: 52px;
757
+ }
758
+ .workspace.browser-open .split-handle:hover::before,
759
+ .workspace.browser-open .split-handle:hover::after,
760
+ .workspace.browser-open .split-handle:focus-visible::before,
761
+ .workspace.browser-open .split-handle:focus-visible::after,
762
+ .workspace.browser-open .split-handle.split-drag::before,
763
+ .workspace.browser-open .split-handle.split-drag::after { background: var(--ws-blue); }
764
+ .workspace.browser-open .split-handle:focus-visible { outline: 2px solid var(--ws-blue); outline-offset: 2px; }
765
+ body.split-dragging { user-select: none; }
766
+
767
+ /* Tablet key grid — only on the tablet device, never an empty strip on desktop. */
768
+ .workspace[data-device="ipad"] .keybar.ipad {
769
+ display: flex;
770
+ flex-direction: column;
771
+ gap: 6px;
772
+ padding: 8px;
773
+ align-items: stretch;
774
+ }
775
+ .workspace .keybar.ipad .kb-grid-row { display: flex; align-items: center; justify-content: space-between; gap: 6px; width: 100%; }
776
+ .workspace .keybar.ipad .kb-group { display: flex; gap: 4px; border: 0; padding: 0; }
777
+ .workspace .keybar.ipad .kb-arrow-cluster {
778
+ display: grid;
779
+ grid-template-columns: repeat(3, 44px);
780
+ grid-auto-rows: 44px;
781
+ gap: 4px;
782
+ }
783
+ .workspace .keybar.ipad .kb-arrow-cluster .kb-key { width: 44px; min-width: 44px; }
784
+ .workspace .keybar.ipad .kb-arrow-empty { visibility: hidden; pointer-events: none; }
785
+
786
+ @keyframes drawer-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
787
+ @keyframes dock-in { from { opacity: 0; transform: translateX(14px); } to { opacity: 1; transform: none; } }
788
+ @keyframes surface-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
789
+
790
+ @media (min-width: 1100px) {
791
+ .workspace.browser-open .app-shell {
792
+ display: grid;
793
+ /* Let both live columns shrink when a 300px dock is reserved; fixed
794
+ minimums overflowed (and clipped the browser) at 1100-1331px. */
795
+ grid-template-columns: minmax(0, var(--terminal-split, 47%)) 12px minmax(0, 1fr);
796
+ /* Header, then one auto row per in-flow notification (banner, toast host,
797
+ attachment card), then the terminal and footer. Empty auto rows are 0. */
798
+ grid-template-rows: 60px auto auto auto minmax(0, 1fr) 30px;
799
+ }
800
+ .workspace.browser-open .terminal-header { grid-column: 1; grid-row: 1; }
801
+ .workspace.browser-open .banner { grid-column: 1; grid-row: 2; }
802
+ .workspace.browser-open .t1toast-host { grid-column: 1; grid-row: 3; }
803
+ .workspace.browser-open .attachment-card { grid-column: 1; grid-row: 4; }
804
+ .workspace.browser-open .terminal-container { grid-column: 1; grid-row: 5; }
805
+ .workspace.browser-open .terminal-footer { grid-column: 1; grid-row: 6; }
806
+ .workspace.browser-open .split-handle { grid-column: 2; grid-row: 1 / 7; }
807
+ .workspace.browser-open .browser-surface { grid-column: 3; grid-row: 1 / 7; }
808
+ .workspace.browser-open .keybar, .workspace.browser-open .t1session-tabs { display: none !important; }
809
+ .browser-tabstrip { display: none; }
810
+ #browser-share-bottom { display: inline-flex; }
811
+
812
+ /* Desktop browser chrome, compressed. The old stack reserved 208px above
813
+ the page (heading + address + permissions + message). Now the address is
814
+ the header, permissions sit on one line, and the state row stays one row. */
815
+ .browser-heading { display: none; }
816
+ #browser-address { order: 0; margin: 0; padding: 6px 14px; border-bottom: 1px solid var(--ws-line); }
817
+ .browser-permissions { order: 1; padding: 4px 14px 6px; flex-wrap: nowrap; overflow-x: auto; }
818
+ #browser-message { order: 2; padding: 0 14px 4px; min-height: 22px; }
819
+ .browser-canvas { order: 3; }
820
+ #browser-type { order: 4; }
821
+ }
822
+
823
+ @media (min-width: 700px) and (max-width: 1099px) {
824
+ body.workspace { --ws-dock-h: 32dvh; padding: max(12px, env(safe-area-inset-top)) 12px 12px 92px; }
825
+ body.workspace:has(.workspace-drawer[open]),
826
+ body.workspace:has(#settingsModal.open) {
827
+ padding-right: 12px;
828
+ padding-bottom: calc(12px + var(--ws-dock-h));
829
+ }
830
+ .workspace-drawer,
831
+ body.workspace #settingsModal {
832
+ inset: auto 12px 12px 92px;
833
+ width: auto;
834
+ height: var(--ws-dock-h);
835
+ }
836
+ .workspace-nav { width: 72px; left: 12px; inset: 16px auto 16px 12px; }
837
+ .workspace-nav > button, .workspace-nav .nav-bottom > button {
838
+ flex-direction: column;
839
+ justify-content: center;
840
+ gap: 4px;
841
+ padding: 8px 4px;
842
+ min-height: 62px;
843
+ font-size: 11px;
844
+ text-align: center;
845
+ }
846
+ .workspace-nav > button span, .workspace-nav .nav-bottom > button span { max-width: 64px; white-space: normal; line-height: 1.15; }
847
+ .workspace-brand {
848
+ justify-content: center;
849
+ margin: 0 0 20px;
850
+ padding-bottom: 0;
851
+ border-bottom: 0;
852
+ }
853
+ .workspace-brand svg {
854
+ width: 26px;
855
+ height: 26px;
856
+ padding: 9px;
857
+ box-sizing: content-box;
858
+ background: var(--ws-glass);
859
+ border: 1px solid var(--ws-line);
860
+ border-radius: 12px;
861
+ }
862
+ .workspace-brand .brand-art { width: 64px; }
863
+ .workspace-brand .brand-art::before { display: none; }
864
+ .workspace-brand span { display: none; }
865
+ .workspace-label, .nav-status, .workspace-credit, #browser-tabs, .workspace #new-browser { display: none; }
866
+ .nav-bottom { margin-top: auto; }
867
+
868
+ .browser-tabstrip { display: flex; }
869
+ .browser-heading { display: none; }
870
+ .browser-permissions { display: none; }
871
+ .browser-surface.share-open .browser-permissions { display: flex; }
872
+ #browser-title-compact { display: inline-block; }
873
+
874
+ .workspace.browser-open .terminal-container { flex: 1 1 auto; }
875
+ .workspace.browser-open .browser-surface { flex: 1 1 var(--browser-split, 60%); height: auto; border-top: 0; }
876
+ .workspace.browser-open .split-handle { display: flex; }
877
+ .workspace.browser-open .keybar, .workspace.browser-open .terminal-footer { display: none !important; }
878
+ .workspace.browser-max .terminal-header,
879
+ .workspace.browser-max .terminal-container,
880
+ .workspace.browser-max .keybar,
881
+ .workspace.browser-max .terminal-footer,
882
+ .workspace.browser-max .split-handle { display: none !important; }
883
+ .workspace.browser-max .browser-surface { flex: 1 1 100%; }
884
+ }
885
+
886
+ @media (max-width: 699px) {
887
+ body.workspace { --ws-dock-h: 44dvh; padding: max(8px, env(safe-area-inset-top)) 8px calc(76px + env(safe-area-inset-bottom)) 8px; }
888
+ body.workspace:has(.workspace-drawer[open]),
889
+ body.workspace:has(#settingsModal.open) {
890
+ padding-right: 8px;
891
+ padding-bottom: calc(76px + var(--ws-dock-h) + env(safe-area-inset-bottom));
892
+ }
893
+ .workspace-drawer,
894
+ body.workspace #settingsModal {
895
+ inset: auto 8px calc(76px + env(safe-area-inset-bottom)) 8px;
896
+ width: auto;
897
+ height: var(--ws-dock-h);
898
+ }
899
+ /* Phone navigation is four surfaces. Panes and Attach are actions and live
900
+ in Tools, where they can be read instead of guessed from a tiny icon. */
901
+ .workspace-nav #workspace-panes,
902
+ .workspace-nav #workspace-attach { display: none !important; }
903
+ .workspace-drawer .drawer-phone-only { display: flex; }
904
+ .workspace .app-shell { border-radius: 16px; }
905
+ .workspace-nav {
906
+ inset: auto 8px env(safe-area-inset-bottom) 8px;
907
+ width: auto;
908
+ height: 64px;
909
+ flex-direction: row;
910
+ justify-content: space-around;
911
+ gap: 0;
912
+ align-items: center;
913
+ background: rgba(255, 255, 255, .9);
914
+ backdrop-filter: blur(24px);
915
+ border: 1px solid var(--ws-line);
916
+ border-radius: 18px;
917
+ padding: 4px;
918
+ box-shadow: 0 8px 28px #20283218;
919
+ }
920
+ .workspace-nav > button, .workspace-nav .nav-bottom { flex: 1; }
921
+ .workspace-nav > button, .workspace-nav .nav-bottom > button {
922
+ flex-direction: column;
923
+ justify-content: center;
924
+ gap: 2px;
925
+ padding: 4px;
926
+ min-height: 54px;
927
+ font-size: 10px;
928
+ text-align: center;
929
+ }
930
+ .workspace-nav > button span, .workspace-nav .nav-bottom > button span { white-space: nowrap; }
931
+ .workspace-brand, .workspace-label, .nav-status, .workspace-credit, #browser-tabs, .workspace #new-browser { display: none; }
932
+ .workspace-brand { border-bottom: 0; padding-bottom: 0; }
933
+ .nav-bottom { margin: 0; }
934
+
935
+ .workspace .terminal-header { min-height: 48px; padding: 4px 8px; gap: 5px; }
936
+ .workspace .terminal-title { font-size: 12px; gap: 6px; }
937
+ .workspace .terminal-title::before { width: 20px; height: 20px; }
938
+ .workspace .terminal-title::after { content: ''; }
939
+ .workspace .terminal-status { font-size: 11px; }
940
+ .workspace .statuswrap { gap: 4px; }
941
+ .workspace .t1session-tabs { display: none !important; }
942
+ .workspace-session-pill { max-width: 18ch; font-size: 10px; padding: 3px 8px; }
943
+ .workspace-reconnect { min-height: 44px; padding: 0 8px; font-size: 10px; }
944
+ .workspace .terminal-container { padding: 8px; }
945
+ .workspace .terminal-footer { display: none; }
946
+ .workspace .t1-smart-suggest { display: none !important; }
947
+ .workspace .keybar { padding: 2px 4px; gap: 3px; }
948
+ .workspace .keybar.ipad { display: none !important; }
949
+ .workspace .keybar .kb-key { min-height: 44px; }
950
+ .workspace .keybar .kb-keys-toggle svg { width: 18px; height: 18px; }
951
+ .workspace[data-device="iphone"] .keybar .kb-group:nth-child(n+2) { display: none; }
952
+ .workspace[data-device="iphone"] .keybar.keys-expanded .kb-group { display: flex; }
953
+
954
+ .workspace.browser-open .terminal-container,
955
+ .workspace.browser-open .terminal-header,
956
+ .workspace.browser-open .terminal-footer,
957
+ .workspace.browser-open .keybar,
958
+ .workspace.browser-open .t1session-tabs,
959
+ .workspace.browser-open .t1-smart-suggest,
960
+ .workspace.browser-open .split-handle { display: none !important; }
961
+ .browser-surface { height: 100%; display: flex; flex-direction: column; }
962
+ #browser-message { order: 0; padding: 1px 8px; min-height: 22px; font-size: 10px; gap: 4px; flex-wrap: nowrap; }
963
+ .browser-canvas { order: 1; flex: 1; min-height: 0; }
964
+ .browser-tabstrip { display: flex; order: 2; padding: 0 6px; gap: 4px; }
965
+ .browser-tablist { height: 44px; align-items: center; }
966
+ #browser-permissions { order: 3; }
967
+ #browser-address { order: 4; margin: 0 8px 2px; gap: 3px; flex-wrap: nowrap; }
968
+ #browser-type { order: 5; }
969
+ #browser-expand, #hide-browser-compact { display: none !important; }
970
+ #browser-share-bottom { display: none !important; }
971
+ .browser-heading { display: none; }
972
+ .browser-permissions { display: none; }
973
+ .browser-surface.share-open .browser-permissions { display: flex; padding: 0 8px 6px; }
974
+ .browser-permissions label { display: block; width: 100%; font-size: 11px; color: var(--ws-muted); }
975
+ .browser-permissions button, .browser-permissions select { font-size: 11px; padding: 4px 8px; min-height: 44px; }
976
+ #browser-address button { min-width: 44px; padding: 0 6px; font-size: 15px; }
977
+ #browser-address #browser-url { min-height: 44px; font-size: 12px; }
978
+ #browser-message-text { flex: 1 1 auto; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
979
+ #browser-title-compact { display: inline-block; max-width: 12ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
980
+ .browser-badge { font-size: 9px; padding: 1px 4px; }
981
+ .browser-tab { max-width: 260px; }
982
+ .browser-tab-badge { display: none; }
983
+ .browser-tab:not(.selected) .browser-tab-close { display: none; }
984
+ .browser-tab:not(.selected) .browser-tab-label { display: none; }
985
+ .browser-tab:not(.selected) { width: 44px; min-width: 44px; max-width: 44px; padding: 4px; justify-content: center; }
986
+ #browser-type { padding: 1px 6px; gap: 3px; }
987
+ #browser-type input { min-height: 44px; font-size: 12px; }
988
+ #browser-type button { min-width: 44px; padding: 0 6px; font-size: 11px; }
989
+ .workspace-drawer {
990
+ border-radius: 18px;
991
+ padding: 18px;
992
+ }
993
+ .workspace-drawer header { margin-bottom: 14px; }
994
+ .workspace-drawer h2 { font-size: 20px; }
995
+ .drawer-groups { max-height: none; }
996
+ .drawer-row { min-height: 48px; }
997
+
998
+ /* After 7s without a touch, the content takes the screen; the bottom nav stays. */
999
+ body.chrome-idle .terminal-header,
1000
+ body.chrome-idle .keybar,
1001
+ body.chrome-idle .t1session-tabs,
1002
+ body.chrome-idle .t1-smart-suggest,
1003
+ /* The browser state row survives the collapse: it is the only answer to
1004
+ what the agent can see and control. */
1005
+ body.chrome-idle .browser-tabstrip,
1006
+ body.chrome-idle #browser-permissions,
1007
+ body.chrome-idle #browser-address,
1008
+ body.chrome-idle #browser-type { display: none !important; }
1009
+ /* No overlay: the wake tap must land on the terminal/browser itself. */
1010
+ body.chrome-idle .app-shell { position: relative; }
1011
+ body.chrome-idle .terminal-container { flex: 1 1 auto; }
1012
+ body.chrome-idle .browser-canvas { flex: 1 1 auto; }
1013
+ body.chrome-idle .browser-surface { height: 100%; }
1014
+ }
1015
+
1016
+ @media (prefers-reduced-motion: reduce) {
1017
+ .workspace *, .workspace *::before, .workspace *::after {
1018
+ animation: none !important;
1019
+ transition: none !important;
1020
+ scroll-behavior: auto !important;
1021
+ }
1022
+ }
1023
+
1024
+ @supports (transition-behavior: allow-discrete) {
1025
+ .workspace-drawer {
1026
+ animation: none;
1027
+ opacity: 0;
1028
+ transform: translateY(8px);
1029
+ transition: opacity 260ms var(--ws-ease), transform 260ms var(--ws-ease), display 260ms allow-discrete, overlay 260ms allow-discrete;
1030
+ }
1031
+ .workspace-drawer[open] { opacity: 1; transform: none; }
1032
+ @starting-style { .workspace-drawer[open] { opacity: 0; transform: translateY(8px); } }
1033
+ }
1034
+ @media (prefers-reduced-motion: reduce) {
1035
+ .workspace .workspace-drawer { animation: none !important; transition: none !important; transform: none !important; }
1036
+ }
1037
+
1038
+ /* The inherited settings dialog is brought into the workspace system. */
1039
+ .workspace #settingsModal { font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif; }
1040
+ .workspace #settingsModal .settings-panel {
1041
+ width: min(520px, calc(100vw - 32px));
1042
+ background: rgba(255, 255, 255, .97);
1043
+ backdrop-filter: blur(32px);
1044
+ border: 1px solid var(--ws-line);
1045
+ border-radius: 22px;
1046
+ padding: 24px;
1047
+ box-shadow: 0 24px 80px #20283233;
1048
+ color: var(--ws-ink);
1049
+ }
1050
+ .workspace #settingsModal .settings-panel h2 {
1051
+ font-size: 22px;
1052
+ letter-spacing: -.6px;
1053
+ text-transform: none;
1054
+ color: var(--ws-ink);
1055
+ margin: 0 0 18px;
1056
+ }
1057
+ .workspace #settingsModal .settings-row { margin-bottom: 14px; }
1058
+ .workspace #settingsModal .settings-row label {
1059
+ font-size: 12px;
1060
+ font-weight: 500;
1061
+ text-transform: none;
1062
+ letter-spacing: 0;
1063
+ color: var(--ws-muted);
1064
+ }
1065
+ .workspace #settingsModal .settings-row select,
1066
+ .workspace #settingsModal .settings-row input {
1067
+ width: 100%;
1068
+ min-height: 44px;
1069
+ border: 1px solid var(--ws-control);
1070
+ border-radius: 9px;
1071
+ padding: 8px 12px;
1072
+ background: white;
1073
+ color: var(--ws-ink);
1074
+ font: inherit;
1075
+ }
1076
+ .workspace #settingsModal .settings-section .settings-row input { width: 100%; }
1077
+ .workspace #settingsModal #voiceStatus[data-kind="ok"] { color: var(--ws-blue); }
1078
+ .workspace #settingsModal #voiceStatus[data-kind="warn"] { color: #7a5a16; }
1079
+ .workspace #settingsModal #voiceStatus[data-kind="error"] { color: var(--ws-danger); }
1080
+ .workspace #settingsModal .settings-section {
1081
+ border-top: 1px solid var(--ws-line);
1082
+ padding-top: 16px;
1083
+ margin-bottom: 16px;
1084
+ }
1085
+ .workspace #settingsModal .settings-section h3 {
1086
+ font-size: 11px;
1087
+ font-weight: 600;
1088
+ text-transform: none;
1089
+ letter-spacing: 0;
1090
+ color: var(--ws-muted);
1091
+ }
1092
+ .workspace #settingsModal .settings-actions {
1093
+ display: flex;
1094
+ justify-content: flex-end;
1095
+ gap: 8px;
1096
+ }
1097
+ /* The dock scrolls; keep the way out visible at the top on touch screens. */
1098
+ .workspace #settingsModal .settings-panel { padding-top: 0; }
1099
+ .workspace #settingsModal .settings-dock-bar {
1100
+ position: sticky;
1101
+ top: 0;
1102
+ z-index: 2;
1103
+ grid-column: 1 / -1;
1104
+ display: flex;
1105
+ align-items: center;
1106
+ justify-content: space-between;
1107
+ gap: 12px;
1108
+ margin: 0 0 16px;
1109
+ padding: 18px 0 14px;
1110
+ background: #ffffff;
1111
+ border-bottom: 1px solid var(--ws-line);
1112
+ }
1113
+ .workspace #settingsModal .settings-dock-bar h2 { margin: 0; }
1114
+ .workspace #settingsModal .settings-dock-bar button {
1115
+ min-height: 44px;
1116
+ padding: 0 14px;
1117
+ border: 1px solid var(--ws-control);
1118
+ border-radius: 9px;
1119
+ background: var(--ws-glass);
1120
+ color: var(--ws-ink);
1121
+ }
1122
+ .workspace #settingsModal .settings-actions button {
1123
+ min-height: 44px;
1124
+ padding: 0 14px;
1125
+ border: 1px solid var(--ws-control);
1126
+ border-radius: 9px;
1127
+ background: var(--ws-glass);
1128
+ color: var(--ws-ink);
1129
+ }
1130
+ .workspace #settingsModal .settings-advanced summary { text-transform: none; letter-spacing: 0; }
1131
+ .workspace #settingsModal input[type="checkbox"] { accent-color: var(--ws-blue); }
1132
+
1133
+ /* Settings shares the reserved dock. The panel is a peer of the shell, not a
1134
+ scrim over it. No inert background, no focus trap, no dimmed terminal. */
1135
+ .workspace #settingsModal {
1136
+ inset: 16px 16px 16px auto;
1137
+ width: var(--ws-dock-w);
1138
+ height: auto;
1139
+ display: none;
1140
+ align-items: stretch;
1141
+ justify-content: stretch;
1142
+ background: transparent;
1143
+ backdrop-filter: none;
1144
+ z-index: 90;
1145
+ }
1146
+ .workspace #settingsModal.open { display: flex; }
1147
+ .workspace #settingsModal .settings-panel {
1148
+ width: 100%;
1149
+ height: 100%;
1150
+ max-width: none;
1151
+ max-height: none;
1152
+ overflow-y: auto;
1153
+ border-radius: 18px;
1154
+ border: 1px solid var(--ws-control);
1155
+ background: #ffffff;
1156
+ box-shadow: 0 18px 48px #2028321f;
1157
+ }
1158
+
1159
+ /* In-design destructive confirmation and session menu. */
1160
+ .workspace-confirm {
1161
+ padding: 22px;
1162
+ }
1163
+ .workspace-confirm p { color: var(--ws-muted); font-size: 13px; line-height: 1.6; }
1164
+ .confirm-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 18px; }
1165
+ .confirm-actions button {
1166
+ min-height: 44px;
1167
+ padding: 0 14px;
1168
+ border: 1px solid var(--ws-control);
1169
+ border-radius: 9px;
1170
+ background: white;
1171
+ color: var(--ws-ink);
1172
+ }
1173
+ .confirm-actions .danger {
1174
+ background: var(--ws-danger);
1175
+ border-color: var(--ws-danger);
1176
+ color: white;
1177
+ }
1178
+ .session-menu .drawer-list { margin-bottom: 12px; flex: 1 1 auto; min-height: 0; overflow-y: auto; }
1179
+ .session-menu #session-menu-new { flex: 0 0 auto; }
1180
+
1181
+ /* Short landscape screens (iPhone at 852x393): the tablet rail must compact
1182
+ instead of pushing Tools below the viewport. */
1183
+ @media (min-width: 700px) and (max-width: 1099px) and (max-height: 500px) {
1184
+ .workspace-brand { display: none; }
1185
+ .workspace-nav > button, .workspace-nav .nav-bottom > button {
1186
+ min-height: 44px;
1187
+ padding: 3px 2px;
1188
+ gap: 2px;
1189
+ font-size: 10px;
1190
+ }
1191
+ .workspace-label, .nav-status, .workspace-credit { display: none; }
1192
+ .nav-bottom { margin-top: auto; }
1193
+ }
1194
+
1195
+ /* Attachment handoff card: path and URL stay visible and copyable after an
1196
+ upload so the human and the terminal agent both get the URL, not just a
1197
+ filename that vanished into a toast. */
1198
+ .attachment-card {
1199
+ position: fixed;
1200
+ left: 12px;
1201
+ right: 12px;
1202
+ bottom: calc(76px + env(safe-area-inset-bottom, 0px));
1203
+ z-index: 60;
1204
+ width: auto;
1205
+ max-width: 560px;
1206
+ margin: 0 auto;
1207
+ padding: 10px 12px;
1208
+ border: 1px solid var(--ws-line);
1209
+ border-radius: 10px;
1210
+ background: #fff;
1211
+ color: var(--ws-ink);
1212
+ box-shadow: 0 10px 30px #20283224;
1213
+ font-size: 12px;
1214
+ }
1215
+
1216
+ .attachment-card[hidden] { display: none; }
1217
+
1218
+ .attachment-card-head {
1219
+ display: flex;
1220
+ align-items: center;
1221
+ gap: 8px;
1222
+ margin-bottom: 6px;
1223
+ }
1224
+
1225
+ .attachment-card-name {
1226
+ flex: 1;
1227
+ min-width: 0;
1228
+ overflow: hidden;
1229
+ text-overflow: ellipsis;
1230
+ white-space: nowrap;
1231
+ font-weight: 650;
1232
+ }
1233
+
1234
+ .attachment-card-close {
1235
+ flex: none;
1236
+ min-width: 32px;
1237
+ min-height: 32px;
1238
+ border: 0;
1239
+ border-radius: 6px;
1240
+ background: transparent;
1241
+ color: var(--ws-muted);
1242
+ font-size: 18px;
1243
+ line-height: 1;
1244
+ }
1245
+
1246
+ .attachment-card-row {
1247
+ display: flex;
1248
+ gap: 8px;
1249
+ align-items: baseline;
1250
+ margin: 3px 0;
1251
+ }
1252
+
1253
+ .attachment-card-row > span {
1254
+ flex: 0 0 34px;
1255
+ color: var(--ws-muted);
1256
+ font-size: 11px;
1257
+ text-transform: uppercase;
1258
+ letter-spacing: 0.04em;
1259
+ }
1260
+
1261
+ .attachment-card-row code {
1262
+ flex: 1;
1263
+ min-width: 0;
1264
+ overflow-wrap: anywhere;
1265
+ font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
1266
+ font-size: 11px;
1267
+ line-height: 1.35;
1268
+ }
1269
+
1270
+ .attachment-card-actions {
1271
+ display: flex;
1272
+ gap: 6px;
1273
+ flex-wrap: wrap;
1274
+ margin-top: 8px;
1275
+ }
1276
+
1277
+ .attachment-card-actions button {
1278
+ min-height: 40px;
1279
+ padding: 0 12px;
1280
+ border: 1px solid var(--ws-control);
1281
+ border-radius: 7px;
1282
+ background: #f7f9fb;
1283
+ color: var(--ws-ink);
1284
+ font-size: 12px;
1285
+ }
1286
+
1287
+ .attachment-card-actions button:active { background: #e8edf4; }
1288
+
1289
+ @media (max-width: 600px) {
1290
+ .attachment-card { bottom: calc(72px + env(safe-area-inset-bottom, 0px)); }
1291
+ .attachment-card-actions button { min-height: 44px; }
1292
+ }
1293
+
1294
+ /* Reader view: a word-wrapped, read-only transcript. The live xterm stays a
1295
+ cell grid because wrapping TUI output would change its meaning. */
1296
+ .reader-view {
1297
+ position: fixed;
1298
+ inset: 0;
1299
+ z-index: 80;
1300
+ display: flex;
1301
+ flex-direction: column;
1302
+ background: #fff;
1303
+ color: var(--ws-ink);
1304
+ }
1305
+ .reader-view[hidden] { display: none; }
1306
+ .reader-header {
1307
+ display: flex;
1308
+ align-items: center;
1309
+ justify-content: space-between;
1310
+ gap: 12px;
1311
+ padding: max(12px, env(safe-area-inset-top)) 16px 12px;
1312
+ border-bottom: 1px solid var(--ws-line);
1313
+ background: #f7f9fb;
1314
+ }
1315
+ .reader-header small { color: var(--ws-muted); font-size: 11px; }
1316
+ .reader-header h2 { margin: 1px 0 0; font-size: 17px; }
1317
+ .reader-actions { display: flex; gap: 8px; }
1318
+ .reader-actions button {
1319
+ min-height: 44px;
1320
+ padding: 0 14px;
1321
+ border: 1px solid var(--ws-control);
1322
+ border-radius: 8px;
1323
+ background: #fff;
1324
+ color: var(--ws-ink);
1325
+ font-size: 13px;
1326
+ }
1327
+ .reader-text {
1328
+ flex: 1;
1329
+ margin: 0;
1330
+ padding: 16px max(16px, env(safe-area-inset-left)) calc(24px + env(safe-area-inset-bottom));
1331
+ overflow: auto;
1332
+ white-space: pre-wrap;
1333
+ overflow-wrap: break-word;
1334
+ word-break: normal;
1335
+ font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
1336
+ font-size: 13px;
1337
+ line-height: 1.55;
1338
+ tab-size: 4;
1339
+ }
1340
+
1341
+ /* Software keyboard: lift the fixed navigation and reserve its height so the
1342
+ focused field and terminal stay above the keyboard. */
1343
+ @media (max-width: 699px) {
1344
+ body.workspace.keyboard-open {
1345
+ padding-bottom: calc(84px + var(--keyboard-inset, 0px) + env(safe-area-inset-bottom));
1346
+ }
1347
+ body.workspace.keyboard-open .workspace-nav {
1348
+ bottom: calc(env(safe-area-inset-bottom) + var(--keyboard-inset, 0px));
1349
+ }
1350
+ }
1351
+
1352
+ /* iOS zooms the whole layout when a focused field is under 16px. */
1353
+ @media (pointer: coarse) {
1354
+ body.workspace input,
1355
+ body.workspace select,
1356
+ body.workspace textarea,
1357
+ .workspace-drawer input,
1358
+ .workspace-drawer select,
1359
+ .workspace-drawer textarea,
1360
+ #settingsModal input,
1361
+ #settingsModal select,
1362
+ #settingsModal textarea {
1363
+ font-size: 16px;
1364
+ }
1365
+ }
1366
+
1367
+ /* ── Nothing floats over a live surface ────────────────────────────────────
1368
+ Banner, toasts, and the attachment handoff card are siblings in the shell's
1369
+ flow. They reserve height and push the terminal down; they never cover it. */
1370
+ .workspace .banner {
1371
+ position: static;
1372
+ display: none;
1373
+ padding: 8px 16px;
1374
+ font-size: 12px;
1375
+ line-height: 1.4;
1376
+ }
1377
+ .workspace .banner.error { display: block; background: #f6d9d5; color: #5a1b15; }
1378
+ .workspace .banner.warn { display: block; background: #f4e6c2; color: #45360f; }
1379
+ .workspace .banner.info { display: block; background: #e7eef9; color: #1c3352; }
1380
+
1381
+ .workspace .t1toast-host {
1382
+ position: static;
1383
+ inset: auto;
1384
+ z-index: auto;
1385
+ width: 100%;
1386
+ max-width: none;
1387
+ padding: 0;
1388
+ gap: 0;
1389
+ pointer-events: auto;
1390
+ }
1391
+ .workspace .t1toast-host:empty { display: none; }
1392
+ .workspace .t1toast {
1393
+ border: 0;
1394
+ border-top: 1px solid var(--ws-line);
1395
+ border-bottom: 1px solid var(--ws-line);
1396
+ border-left: 0;
1397
+ border-radius: 0;
1398
+ box-shadow: none;
1399
+ padding: 8px 16px;
1400
+ background: #fff8e6;
1401
+ color: var(--ws-ink);
1402
+ font-size: 12px;
1403
+ }
1404
+ .workspace .t1toast-warn { background: #fdf3dd; }
1405
+ .workspace .t1toast-error { background: #f9e6e2; }
1406
+
1407
+ .workspace .attachment-card {
1408
+ position: static;
1409
+ left: auto;
1410
+ right: auto;
1411
+ bottom: auto;
1412
+ z-index: auto;
1413
+ width: auto;
1414
+ max-width: none;
1415
+ margin: 8px 16px 0;
1416
+ box-shadow: none;
1417
+ }
1418
+
1419
+ /* 320px-equivalent width: let the header take a second row instead of clipping
1420
+ the session pill or the connection state. */
1421
+ @media (max-width: 360px) {
1422
+ .workspace .terminal-header {
1423
+ flex-wrap: wrap;
1424
+ row-gap: 4px;
1425
+ }
1426
+ .workspace .statuswrap { margin-left: auto; }
1427
+ .workspace .workspace-session-pill { max-width: 14ch; }
1428
+ }
1429
+ /* Short landscape (phone held sideways): a 32dvh bottom dock would be a
1430
+ sliver, so the panel takes a right column instead. */
1431
+ @media (min-width: 700px) and (max-width: 1099px) and (max-height: 500px) {
1432
+ body.workspace:has(.workspace-drawer[open]),
1433
+ body.workspace:has(#settingsModal.open) {
1434
+ padding-right: 364px;
1435
+ padding-bottom: 12px;
1436
+ }
1437
+ .workspace-drawer,
1438
+ body.workspace #settingsModal {
1439
+ inset: 8px 8px 8px auto;
1440
+ width: 340px;
1441
+ height: auto;
1442
+ }
1443
+ /* The narrower live column would wrap the key bar into two rows. While a
1444
+ panel is open, give the rows back to the terminal. */
1445
+ body.workspace:has(.workspace-drawer[open]) .keybar,
1446
+ body.workspace:has(#settingsModal.open) .keybar { display: none !important; }
1447
+ }