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