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