demoman 0.8.0 → 0.8.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/THIRD_PARTY_NOTICES +1 -1
- package/dist/demoman.mjs +5182 -2298
- package/dist/page/decode-probe-entry.js +23071 -0
- package/dist/page/mux-entry.js +171 -52
- package/dist/page/render-entry.js +1102 -469
- package/dist/recipe.md +92 -100
- package/dist/studio/assets/confirm-dialog-B20ZVWlP.css +1 -0
- package/dist/studio/assets/confirm-dialog-DgJ946Hc.js +72 -0
- package/dist/studio/assets/editor-BC4sLdWT.js +4 -0
- package/dist/studio/assets/library-DVubUJtn.js +1 -0
- package/dist/studio/assets/{library-inline-216fd6fd.css → library-inline-ff1b0c15.css} +3 -27
- package/dist/studio/assets/settings-DLH9VoT0.js +1 -0
- package/dist/studio/assets/{settings-inline-ff6d2eee.css → settings-inline-7bb8bf61.css} +8 -0
- package/dist/studio/assets/state-DyL2jOOv.js +1 -0
- package/dist/studio/assets/view-Df6XUnyO.js +1 -0
- package/dist/studio/editor.html +5 -5
- package/dist/studio/library.html +5 -5
- package/dist/studio/settings.html +5 -5
- package/dist/studio/studio-build.json +3 -3
- package/dist/studio/wallpapers/dark-1-landscape.webp +0 -0
- package/dist/studio/wallpapers/dark-1-portrait.webp +0 -0
- package/dist/studio/wallpapers/dark-1-thumb.webp +0 -0
- package/dist/studio/wallpapers/dark-2-landscape.webp +0 -0
- package/dist/studio/wallpapers/dark-2-portrait.webp +0 -0
- package/dist/studio/wallpapers/dark-2-thumb.webp +0 -0
- package/dist/studio/wallpapers/light-1-landscape.webp +0 -0
- package/dist/studio/wallpapers/light-1-portrait.webp +0 -0
- package/dist/studio/wallpapers/light-1-thumb.webp +0 -0
- package/dist/studio/wallpapers/light-2-landscape.webp +0 -0
- package/dist/studio/wallpapers/light-2-portrait.webp +0 -0
- package/dist/studio/wallpapers/light-2-thumb.webp +0 -0
- package/dist/studio/wallpapers/muted-1-landscape.webp +0 -0
- package/dist/studio/wallpapers/muted-1-portrait.webp +0 -0
- package/dist/studio/wallpapers/muted-1-thumb.webp +0 -0
- package/dist/studio/wallpapers/muted-2-landscape.webp +0 -0
- package/dist/studio/wallpapers/muted-2-portrait.webp +0 -0
- package/dist/studio/wallpapers/muted-2-thumb.webp +0 -0
- package/dist/studio/wallpapers/muted-3-landscape.webp +0 -0
- package/dist/studio/wallpapers/muted-3-portrait.webp +0 -0
- package/dist/studio/wallpapers/muted-3-thumb.webp +0 -0
- package/dist/studio/wallpapers/muted-4-landscape.webp +0 -0
- package/dist/studio/wallpapers/muted-4-portrait.webp +0 -0
- package/dist/studio/wallpapers/muted-4-thumb.webp +0 -0
- package/dist/studio/wallpapers/vivid-1-landscape.webp +0 -0
- package/dist/studio/wallpapers/vivid-1-portrait.webp +0 -0
- package/dist/studio/wallpapers/vivid-1-thumb.webp +0 -0
- package/dist/studio/wallpapers/vivid-2-landscape.webp +0 -0
- package/dist/studio/wallpapers/vivid-2-portrait.webp +0 -0
- package/dist/studio/wallpapers/vivid-2-thumb.webp +0 -0
- package/dist/studio/wallpapers/vivid-3-landscape.webp +0 -0
- package/dist/studio/wallpapers/vivid-3-portrait.webp +0 -0
- package/dist/studio/wallpapers/vivid-3-thumb.webp +0 -0
- package/dist/studio/wallpapers/vivid-4-landscape.webp +0 -0
- package/dist/studio/wallpapers/vivid-4-portrait.webp +0 -0
- package/dist/studio/wallpapers/vivid-4-thumb.webp +0 -0
- package/dist/studio/wallpapers/vivid-5-landscape.webp +0 -0
- package/dist/studio/wallpapers/vivid-5-portrait.webp +0 -0
- package/dist/studio/wallpapers/vivid-5-thumb.webp +0 -0
- package/dist/studio/wallpapers/vivid-6-landscape.webp +0 -0
- package/dist/studio/wallpapers/vivid-6-portrait.webp +0 -0
- package/dist/studio/wallpapers/vivid-6-thumb.webp +0 -0
- package/package.json +1 -1
- package/dist/studio/assets/confirm-dialog-Bcrw3f1a.js +0 -72
- package/dist/studio/assets/confirm-dialog-DSKBZQdV.css +0 -1
- package/dist/studio/assets/editor-DUZKtJ2T.js +0 -4
- package/dist/studio/assets/library-BPokDo6m.js +0 -1
- package/dist/studio/assets/settings-RZj4oUzT.js +0 -1
- package/dist/studio/assets/state-tew-ACWl.js +0 -1
- package/dist/studio/assets/view-SxAupNyx.js +0 -1
package/dist/recipe.md
CHANGED
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
You write a DemoScript. Demoman runs it in a browser of its own on
|
|
4
4
|
this machine and saves the take on disk; `export` renders that take to an
|
|
5
5
|
MP4. Every tool answers JSON. A refusal is an error result carrying
|
|
6
|
-
`reason`, a stable identifier to branch on, and `detail`, a sentence
|
|
7
|
-
|
|
6
|
+
`reason`, a stable identifier to branch on, and `detail`, a sentence for the
|
|
7
|
+
user; section 7 lists every reason.
|
|
8
8
|
|
|
9
9
|
## 1. Preflight
|
|
10
10
|
|
|
@@ -14,24 +14,19 @@ the user; section 7 lists every reason.
|
|
|
14
14
|
`secretsFile`, `expiry` and `update`.
|
|
15
15
|
`sessions` is `[{site, savedAt, refreshedAt, signInUrl}]`; it and
|
|
16
16
|
`display` can be `{unreadable}`: tell the user why. `accounts` and
|
|
17
|
-
`secretsFile` are the demo accounts below.
|
|
18
|
-
|
|
19
|
-
`
|
|
20
|
-
`browserMissing`.
|
|
21
|
-
2. The browser is signed in wherever the user ran `npx demoman signin <url>`,
|
|
22
|
-
and nowhere else; `status`'s `sessions` lists those sites. A demo account records best. A page
|
|
17
|
+
`secretsFile` are the demo accounts below. Ignore `update`.
|
|
18
|
+
2. The browser is signed in only where the user ran `npx demoman signin <url>`;
|
|
19
|
+
`status`'s `sessions` lists those sites. A demo account records best. A page
|
|
23
20
|
that sends this browser to its sign-in page answers `signedOut` (section
|
|
24
21
|
7) with the exact command in `detail`: give the user that command and
|
|
25
22
|
spend no run until they say they have run it, unless a demo account can
|
|
26
23
|
sign in (below). Only demo accounts: never ask for the
|
|
27
|
-
user's own password,
|
|
28
|
-
signing in: when the user asks for one and gives
|
|
24
|
+
user's own password, or type it. A sign-in or sign-up demo is not
|
|
25
|
+
signing in: when the user asks for one and gives demo values, start
|
|
29
26
|
the script at that form's page and type them; a password field's text is
|
|
30
|
-
hidden on disk and in
|
|
27
|
+
hidden on disk and in reports.
|
|
31
28
|
3. Takes are saved under `<DEMOMAN_HOME, default ~/.demoman>/takes/<id>/`.
|
|
32
|
-
|
|
33
|
-
`actions`; an unreadable folder comes last as `{ id, unreadable }`.
|
|
34
|
-
Demoman keeps no telemetry.
|
|
29
|
+
No telemetry.
|
|
35
30
|
|
|
36
31
|
### Behind a login: demo accounts
|
|
37
32
|
|
|
@@ -39,8 +34,7 @@ the user; section 7 lists every reason.
|
|
|
39
34
|
|
|
40
35
|
- `{file: null, searchedFrom}`: no `.demoman/accounts.json` was found from
|
|
41
36
|
`searchedFrom` upward (`status` reads from the folder this server was
|
|
42
|
-
started in and takes no `project`). Create one (below), or pass `project`
|
|
43
|
-
on `snapshot` and `run`.
|
|
37
|
+
started in and takes no `project`). Create one (below), or pass `project` on `snapshot`/`run`.
|
|
44
38
|
- `{file, invalid, field}`: the file exists and cannot be used; `invalid` is
|
|
45
39
|
why and `field` where. Fix it; every snapshot and run from that project
|
|
46
40
|
answers `accountsInvalid` until then.
|
|
@@ -48,8 +42,7 @@ the user; section 7 lists every reason.
|
|
|
48
42
|
`{name, about, session}` with `session` `"saved"`, `"none"` or
|
|
49
43
|
`"changed"` (saved before the account's `checkUrl` or `signIn` was
|
|
50
44
|
edited). Both are fine: Demoman signs in.
|
|
51
|
-
`sessionsUnreadable`, when present
|
|
52
|
-
read: tell the user.
|
|
45
|
+
`sessionsUnreadable`, when present: the saved sessions could not be read; tell the user.
|
|
53
46
|
|
|
54
47
|
`status.sessions` lists an account's saved session with an `account` (and
|
|
55
48
|
its `origin`) beside `site`; an entry without one is the site's manual
|
|
@@ -58,7 +51,7 @@ session from `npx demoman signin <url>`.
|
|
|
58
51
|
`status.secretsFile` is `null` (no usable accounts file), `{path, absent:
|
|
59
52
|
true}` (no secrets file: only `DEMOMAN_SECRET_*` can supply values),
|
|
60
53
|
`{path, git: "ignored"}` (git ignores it: safe), `{path, git: "notGit"}`
|
|
61
|
-
(not in git, so
|
|
54
|
+
(not in git, so unchecked: tell the user), or `{path, refused}` (unreadable; `refused` is why,
|
|
62
55
|
as `secretsFileNotIgnored` or `secretsFileInvalid` will be). Never a value.
|
|
63
56
|
|
|
64
57
|
A page behind a login answers `signedOut` and `status` shows no account for
|
|
@@ -73,21 +66,19 @@ its site. Then, in this order:
|
|
|
73
66
|
`db/seeds/demo.rb`). Generate a random password of 20 or more characters.
|
|
74
67
|
Write `DEMOMAN_SECRET_<NAME>=…` and
|
|
75
68
|
`DEMOMAN_SECRET_<NAME>_ORIGIN=<the site's origin>` to
|
|
76
|
-
`.demoman/secrets.env`, and add
|
|
77
|
-
|
|
78
|
-
to `accounts.json`. Tell the user in one line.
|
|
79
|
-
Then `snapshot` again.
|
|
69
|
+
`.demoman/secrets.env`, and add it to `.gitignore` if missing. Add the
|
|
70
|
+
account to `accounts.json`. Tell the user in one line; `snapshot` again.
|
|
80
71
|
3. **Two-factor or a magic link in the way:** add a dev-only "sign in as"
|
|
81
72
|
route, reachable only in development, and make the account's `signIn` one
|
|
82
73
|
`goto` to it. Phoenix:
|
|
83
74
|
`if Mix.env() == :dev, do: get "/dev/sign-in-as/:email", DevController, :sign_in`; Rails: the same under `Rails.env.development?`.
|
|
84
|
-
|
|
75
|
+
It starts a session only.
|
|
85
76
|
4. **The database is not clearly local** (a remote `DATABASE_URL`, staging,
|
|
86
77
|
production): create nothing. Ask the user, or give them
|
|
87
78
|
`npx demoman signin <url>`, which signs in by hand in a window: it is the
|
|
88
79
|
way for a real account, single sign-on and two-factor.
|
|
89
80
|
|
|
90
|
-
Only demo accounts
|
|
81
|
+
Only demo accounts; never the user's own password in `secrets.env`.
|
|
91
82
|
|
|
92
83
|
The file, with one account:
|
|
93
84
|
|
|
@@ -122,16 +113,15 @@ The file, with one account:
|
|
|
122
113
|
signed in to nothing cannot open (it redirects to sign-in, or shows a
|
|
123
114
|
password form) and that shows no password field once signed in. Demoman
|
|
124
115
|
opens it signed out first and treats where it lands as the sign-in page. `about` names who the account is and what data
|
|
125
|
-
it has
|
|
116
|
+
it has.
|
|
126
117
|
- `{secret:NAME}` goes in a `signIn` step's `text`, `NAME` being
|
|
127
118
|
`[A-Z0-9_]+`, not ending in `_ORIGIN`. Demoman reads
|
|
128
|
-
`DEMOMAN_SECRET_NAME` from the environment, else
|
|
129
|
-
|
|
119
|
+
`DEMOMAN_SECRET_NAME` from the environment, else `.demoman/secrets.env`
|
|
120
|
+
(only when git ignores it). A value
|
|
130
121
|
is at least 8 characters, typed only with `DEMOMAN_SECRET_NAME_ORIGIN`
|
|
131
122
|
beside it, naming the account's site. In the environment the user sets
|
|
132
123
|
both and you never change them; in `secrets.env` you write both.
|
|
133
|
-
A `{secret:…}` in a demo
|
|
134
|
-
script is refused (`invalidScript`): secrets work only in `signIn`.
|
|
124
|
+
A `{secret:…}` in a demo script is refused (`invalidScript`).
|
|
135
125
|
Environment secrets serve only the accounts.json of the repo Demoman was
|
|
136
126
|
started in; one reached through `project` reads only its own
|
|
137
127
|
`.demoman/secrets.env`.
|
|
@@ -153,19 +143,17 @@ The file, with one account:
|
|
|
153
143
|
```
|
|
154
144
|
|
|
155
145
|
- Demoman signs in by itself: when the account has no saved session, and
|
|
156
|
-
once more when a call lands on a sign-in page
|
|
157
|
-
(`{account, steps, ms}`)
|
|
158
|
-
|
|
159
|
-
|
|
146
|
+
once more when a call lands on a sign-in page; `signedIn`
|
|
147
|
+
(`{account, steps, ms}`) says it did. A second failure answers
|
|
148
|
+
`signInFailed`. A session that lapses mid-run keeps no take; Demoman has
|
|
149
|
+
signed in again: just run again.
|
|
160
150
|
|
|
161
151
|
## 2. Look at the page
|
|
162
152
|
|
|
163
153
|
`snapshot(url)` opens `url` in Demoman's browser, lists the page's targets,
|
|
164
154
|
and leaves the page open. Each entry is
|
|
165
|
-
`{ target, kind, text, rect, inFirstViewport }`. Every `target` listed
|
|
166
|
-
a run
|
|
167
|
-
|
|
168
|
-
`snapshot` may answer `stillRunning` too: call `report(id)`.
|
|
155
|
+
`{ target, kind, text, rect, inFirstViewport }`. Every `target` listed
|
|
156
|
+
resolves in a run to exactly that element: Demoman checked it.
|
|
169
157
|
|
|
170
158
|
- **Copy a `target` into a step verbatim. Never compose one**, and never
|
|
171
159
|
translate a name from another tool's accessibility tree: Demoman's roles
|
|
@@ -174,7 +162,7 @@ a run resolves to exactly that element: Demoman checked it.
|
|
|
174
162
|
`landedUrl` says where. If it is a sign-in page, this browser is not
|
|
175
163
|
signed in there: see `session` below and spend no run. If it is
|
|
176
164
|
not a sign-in page (a trailing slash, `https`, a locale prefix), use
|
|
177
|
-
`landedUrl` as the script's `target
|
|
165
|
+
`landedUrl` as the script's `target`; this snapshot stands.
|
|
178
166
|
`landedElsewhere: null` means the page's address could not be read: not an
|
|
179
167
|
all-clear.
|
|
180
168
|
- `session` - `"saved"`: a session is saved for this site; `"none"`: none
|
|
@@ -205,9 +193,15 @@ a run resolves to exactly that element: Demoman checked it.
|
|
|
205
193
|
further.
|
|
206
194
|
- Iframe and shadow-root elements are not listed.
|
|
207
195
|
- A snapshot sees only the page as it loads: hidden content already in the
|
|
208
|
-
page is listed; content a click creates (a
|
|
209
|
-
opens
|
|
210
|
-
|
|
196
|
+
page is listed; content a click creates (a menu or dialog built when it
|
|
197
|
+
opens, search results, a new row) is not. To list it, `probe` your script
|
|
198
|
+
with its steps cut off after the step that opens it, and copy targets from
|
|
199
|
+
that answer. A probe acts on the app for real, every time: "Add item" adds
|
|
200
|
+
one per probe and again in the run, so a target listed as unique can be
|
|
201
|
+
ambiguous by then; a delete deletes; in the Studio an edit saves into the
|
|
202
|
+
take. Prefer demo data. `stopped` means a step did not play: fix it as a
|
|
203
|
+
run's stop with that reason says, and probe again. A page the flow
|
|
204
|
+
navigates to has its own URL to snapshot.
|
|
211
205
|
|
|
212
206
|
### Recording a phone demo
|
|
213
207
|
|
|
@@ -225,16 +219,14 @@ a run resolves to exactly that element: Demoman checked it.
|
|
|
225
219
|
1. `snapshot` the page the flow starts on.
|
|
226
220
|
2. Write each step with a `target` copied from that snapshot.
|
|
227
221
|
3. A step that reveals hidden content (a FAQ answer, a panel) names its
|
|
228
|
-
targets from the same snapshot,
|
|
229
|
-
"visible"`. A step that navigates: snapshot the new page's URL and put a
|
|
222
|
+
targets from the same snapshot, then a `waitFor … until: "visible"`. A step that navigates: snapshot the new page's URL and put a
|
|
230
223
|
`waitForLoad` after the step. A step on content a click creates: see
|
|
231
224
|
section 2.
|
|
232
225
|
4. `snapshot`'s `kits` lists the user's brand kits by name, the default
|
|
233
226
|
marked. Use a name from it in `look.kit` only when the user asked for a
|
|
234
227
|
look, and then write `"scriptVersion": 2` - a script that names a kit at
|
|
235
228
|
version 1 is refused (`invalidScript`, `field` `scriptVersion`).
|
|
236
|
-
`{ "ok": false, "reason": … }
|
|
237
|
-
and name none.
|
|
229
|
+
`{ "ok": false, "reason": … }`: the kits could not be read; say so, name none.
|
|
238
230
|
|
|
239
231
|
### From a take made earlier
|
|
240
232
|
|
|
@@ -273,23 +265,22 @@ run toward the three. Refused with `unfilledHoles` when the take did not keep
|
|
|
273
265
|
a value: `derive`, fill, `run`. `invalidScript` (`field` `steps.<i>.do`): a
|
|
274
266
|
verb was changed by hand: `derive`, check it, `run` the draft.
|
|
275
267
|
|
|
268
|
+
A video kept current in the repo (.demoman/videos) is rewritten by each run into it: commit that file with the change. To keep one current, run `npx demoman keep <video> --to <path>` in the repo.
|
|
269
|
+
|
|
276
270
|
## 4. Run and read
|
|
277
271
|
|
|
278
272
|
0. Name the video first: every run adds a version to one. If the repo
|
|
279
273
|
has an exported file of it, `videos({ file:
|
|
280
274
|
<absolute path> })`. Else `videos({ query: "<what the flow shows>" })`;
|
|
281
|
-
`videos()` lists the repo's.
|
|
282
|
-
`file` adds `{ version, current, expired }`. Then `run({ script, video:
|
|
275
|
+
`videos()` lists the repo's. Then `run({ script, video:
|
|
283
276
|
{ id } })` adds a version; `video: { new: "<name>" }` starts one.
|
|
284
277
|
`possibleDuplicate` lists `matches`: use one's `id`, or repeat with
|
|
285
278
|
`confirmedNew: true` for a different flow. `nameTaken` names the
|
|
286
279
|
`holder`: use its `id` or another name. The report's `videoVersion`
|
|
287
|
-
|
|
280
|
+
says what was made.
|
|
288
281
|
1. `run(script, video)`. It answers the run's report, or
|
|
289
282
|
`{ "outcome": "stillRunning", "id": … }` after about 50 s; then call
|
|
290
283
|
`report(id)` until the outcome is neither `running` nor `stillRunning`.
|
|
291
|
-
Never `run` again while one is in progress: it is refused
|
|
292
|
-
(`alreadyRunning`).
|
|
293
284
|
2. The report's `outcome`:
|
|
294
285
|
- `refusedBeforeRun` - the door refused before opening anything; `reason`
|
|
295
286
|
and `field` name what to fix (section 7).
|
|
@@ -298,13 +289,10 @@ verb was changed by hand: `derive`, check it, `run` the draft.
|
|
|
298
289
|
- `stopped` - `stopped.at` names the step and `stopped.sentence` says why.
|
|
299
290
|
A `steps[i].pageUrl` on a sign-in page means the app sent this browser
|
|
300
291
|
to sign in mid-run: tell the user; do not rewrite targets.
|
|
301
|
-
`signedOut` means nothing usable was recorded and no take was kept: give
|
|
302
|
-
the user the command in `stopped.detail`; run again only after they
|
|
303
|
-
have run it. It is not a script fault.
|
|
304
292
|
`signInFailed` names the account, step and landing: fix the account's
|
|
305
293
|
file or secret, or tell the user. (A run
|
|
306
294
|
that stopped short on the site's recorded sign-in page is relabelled
|
|
307
|
-
`signedOut`
|
|
295
|
+
`signedOut` (section 7); its detail ends "The run itself stopped at script
|
|
308
296
|
step N: ...".)
|
|
309
297
|
- `complete` - read `verdict`: `verdict.kind` is `"matches"` or
|
|
310
298
|
`"diverged"`, and `verdict.diverged[]` lists each step the video does not
|
|
@@ -313,8 +301,7 @@ verb was changed by hand: `derive`, check it, `run` the draft.
|
|
|
313
301
|
- In any outcome, a step whose `textHidden` is set typed into a credential
|
|
314
302
|
field (`"credentialField"`, or `"credentialUnchecked"` if the page could
|
|
315
303
|
not say): its text is kept nowhere. Re-recording or deriving that take
|
|
316
|
-
asks for a demo value. `landing.startedElsewhere` names where the start URL went
|
|
317
|
-
instead; `landing.unchecked`: the page could not be checked for a
|
|
304
|
+
asks for a demo value. `landing.startedElsewhere` names where the start URL went; `landing.unchecked`: the page could not be checked for a
|
|
318
305
|
sign-in page. `notStored` with `what: "session"` means the saved
|
|
319
306
|
session could not be refreshed: name it to the user.
|
|
320
307
|
- `threw` - a fault in the run; report its `error`.
|
|
@@ -322,8 +309,7 @@ verb was changed by hand: `derive`, check it, `run` the draft.
|
|
|
322
309
|
about the video, not the script (`surfaceMismatch`: the browser handed
|
|
323
310
|
back frames of the wrong size; `dragPictureMissing`: a native drag's item
|
|
324
311
|
jumps). `notDragged`: a drag changed nothing; `verdict.diverged` lists
|
|
325
|
-
it.
|
|
326
|
-
user. One is about a step: `clickUnconfirmed` means a click
|
|
312
|
+
it. Name them to the user; spend no run. One is about a step: `clickUnconfirmed` means a click
|
|
327
313
|
could not be confirmed to have reached its target, and
|
|
328
314
|
`frames.unconfirmedClicks` names each such step and says why; check in
|
|
329
315
|
the video that the step did what it should before saying so.
|
|
@@ -358,45 +344,41 @@ verb was changed by hand: `derive`, check it, `run` the draft.
|
|
|
358
344
|
| stray arrival, `detour` | Demoman | leave it |
|
|
359
345
|
| drift from the earlier take | the app | report it |
|
|
360
346
|
|
|
361
|
-
A finding that is Demoman's earns no run
|
|
362
|
-
user
|
|
347
|
+
A finding that is Demoman's earns no run and is not passed on (the
|
|
348
|
+
user can change it in the Studio). A step's
|
|
363
349
|
`roomMs` is Demoman's own pacing, not a stall.
|
|
364
350
|
4. Tighten a step whose `candidates` is above 1 or whose `strategy` is weaker
|
|
365
351
|
than the target you named.
|
|
366
352
|
|
|
367
353
|
**Stop after three runs**, done or not, then export: every run drives the
|
|
368
|
-
user's real app. A take zooms on every click and starts from
|
|
369
|
-
user's default brand kit; a draft
|
|
370
|
-
branding. The report's `look.branding` says where it came from: `script`,
|
|
354
|
+
user's real app. A take zooms on every click and starts from `look.kit`, else the
|
|
355
|
+
user's default brand kit; a derived draft keeps its take's branding. The report's `look.branding` says where it came from: `script`,
|
|
371
356
|
`kit` (you named it; `look.kit.name` says which), `defaultKit`, or
|
|
372
|
-
`defaults`. A non-null `look.brandKitError`
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
too.
|
|
357
|
+
`defaults`. A non-null `look.brandKitError` (default kit unreadable),
|
|
358
|
+
`look.wallpaperError` (its image) or `size.error` goes into your hand-back;
|
|
359
|
+
`size` is the recorded size (section 2).
|
|
376
360
|
|
|
377
361
|
## 5. Export and hand back
|
|
378
362
|
|
|
379
363
|
1. `export(takeId)` with the accepted run's `provenance.takeId`. It answers
|
|
380
364
|
the export report, or `stillRunning` with an `id`; then call `report(id)`
|
|
381
|
-
until the outcome is none of `exporting`, `stillRunning`.
|
|
382
|
-
or snapshot while one is in progress is refused (`busy`, `alreadyRunning`).
|
|
365
|
+
until the outcome is none of `exporting`, `stillRunning`.
|
|
383
366
|
`fileType` picks the file: `mp4` (the default), `gif` (plays inline in
|
|
384
|
-
a GitHub PR or issue), or `stills` (a PNG per step, in a folder)
|
|
385
|
-
|
|
367
|
+
a GitHub PR or issue), or `stills` (a PNG per step, in a folder); only
|
|
368
|
+
if asked. An MP4 follows Settings
|
|
386
369
|
(unset: ~1 MB/s); `quality: "full"` is largest.
|
|
387
370
|
`export({ takeId, maxMB: 9.5 })` fits GitHub's 10 MB drag-in, or says
|
|
388
|
-
it could not (it lowers fps, then size, then
|
|
389
|
-
what it cost).
|
|
371
|
+
it could not (it lowers fps, then size, then sharpness: the summary
|
|
372
|
+
says what it cost).
|
|
390
373
|
A GIF is made as wide as the recording backs and fits 10 MB, up to twice
|
|
391
374
|
its usual width; `warnings.gifSize` says how wide, its size, and which
|
|
392
375
|
wider widths were refused (`limit`: `budget`, too big, or `detail`, too
|
|
393
376
|
few pixels); a GIF over 10 MB at its narrowest says so: offer the MP4.
|
|
394
|
-
Stills take `stills: { width, zoom }`, both optional.
|
|
395
|
-
still is up to 2560 px wide (
|
|
396
|
-
the whole window. `width` asks for a size in
|
|
377
|
+
Stills take `stills: { width, zoom }`, both optional. A
|
|
378
|
+
still is by default the whole window, up to 2560 px wide (not wider than the recording). `width` asks for a size in
|
|
397
379
|
px (320-3840) or `"native"`, the recording's own size; `zoom: "step"`
|
|
398
380
|
frames each step the way the video zooms on it, all the way in. Pass
|
|
399
|
-
them only when
|
|
381
|
+
them only when asked.
|
|
400
382
|
2. `saved` - the file is at `file.path`, absolute: in `~/Downloads`, or the
|
|
401
383
|
folder the server was started with `--out-dir`. For `stills`, `fileType`
|
|
402
384
|
is `stills` and the answer carries `folder: { path, files }` instead of
|
|
@@ -407,21 +389,23 @@ too.
|
|
|
407
389
|
Demoman's own calls (`zooms`, `detailViolations`, a size cap's `steps`,
|
|
408
390
|
a GIF's widths, `targetCheck`). They are
|
|
409
391
|
not the user's to act on: do not pass them on. None is the script's to fix.
|
|
392
|
+
Except `wallpaperWarning.sentence` (wallpaper left out: plain
|
|
393
|
+
gradient; or will look soft): quote it.
|
|
410
394
|
`warnings.editedSinceRecorded` lists steps whose `scene.json` no longer
|
|
411
|
-
matches the frames; the summary
|
|
395
|
+
matches the frames; the summary names the re-recording
|
|
412
396
|
(`run({ video: { id } })`, or `derive` then `run` when a verb changed).
|
|
413
397
|
Re-record only on request. `warnings.untagged`: the file has no video
|
|
414
398
|
tag (`error` says why); not the user's to act on.
|
|
415
|
-
`links` holds the export's one-click actions
|
|
399
|
+
`links` holds the export's one-click actions, each present
|
|
416
400
|
only where it works: `studio`, `file` (the file itself) and `copy` (the
|
|
417
401
|
file to the clipboard; none for stills). `linksError`, set instead, says
|
|
418
402
|
why there are none: tell the user in one line.
|
|
419
|
-
Every export report carries a `summary`,
|
|
420
|
-
|
|
403
|
+
Every export report carries a `summary` (`stillRunning`, this server's
|
|
404
|
+
own answer, does not).
|
|
421
405
|
3. `renderFailed` - export **once** more; never re-run the script for an
|
|
422
406
|
export failure. `saveFailed` - its `error` names the folder and the
|
|
423
407
|
system's reason (a folder that cannot be written): tell the user;
|
|
424
|
-
exporting again will not help until
|
|
408
|
+
exporting again will not help until fixed. A stills export that
|
|
425
409
|
stopped partway carries `partial: { folder, written, notWritten }`; the
|
|
426
410
|
stills in `written` are whole PNGs.
|
|
427
411
|
4. `pathUnknown`, `refusedBeforeExport` or `threw` - report it, quoting
|
|
@@ -436,11 +420,11 @@ which is not `off`: tell the user. `off`: only when asked. If the diff
|
|
|
436
420
|
changes what a user sees, record that one flow (only the change),
|
|
437
421
|
push and open the PR, then `attach({ takeId, into: "description" })`, or
|
|
438
422
|
`"comment"` on a PR that is not yours. The video carries its own line; write no other. On `line.notWritten`,
|
|
439
|
-
tell the user the video lacks
|
|
423
|
+
tell the user the video lacks it, quoting why. A later `gh pr edit --body` drops the video. `ask`: offer once; on a no, nothing to see or a failed run (say why),
|
|
440
424
|
the PR says nothing of it. `attach`: with no video, the PR description gets
|
|
441
425
|
one line, `No demo: <why>`, and so does the user.
|
|
442
|
-
`attach`
|
|
443
|
-
until the outcome is
|
|
426
|
+
`attach` caps at 9.5 MB; `maxMB` sets another. On `stillRunning`, `report(id)`
|
|
427
|
+
until the outcome is not `attaching` or `stillRunning`. On `busy`,
|
|
444
428
|
`report(id)` on the export in flight, then `attach` again. On `ghMissing`,
|
|
445
429
|
`ghOutdated`, `ghSignedOut`, `notGitHub` or `copyFailed`, call
|
|
446
430
|
`export({ takeId, maxMB: 9.5 })` and give the user its `file.path` to drag
|
|
@@ -451,13 +435,13 @@ Hand back, on `saved`, two lines and nothing else: the `summary` as it is,
|
|
|
451
435
|
then the `links` as markdown links on one line, in this order, only
|
|
452
436
|
those present: `[Open in Studio](links.studio) · [<file name>](links.file) · [Copy video](links.copy)`
|
|
453
437
|
(`Copy GIF` for a GIF). Add one line only for `look.brandKitError`,
|
|
454
|
-
`size.error`, `linksError`, or something you could not fix. Any other
|
|
438
|
+
`look.wallpaperError`, `size.error`, `linksError`, or something you could not fix. Any other
|
|
455
439
|
outcome: quote its `error` or `detail`.
|
|
456
440
|
|
|
457
441
|
When the `studio` tool is listed and there is no `links.studio`, **offer**
|
|
458
442
|
it; never open it unasked. `studio({ takeId })`
|
|
459
443
|
opens a window to edit and export the take.
|
|
460
|
-
`{ outcome: "opened", takeId?, note? }`: say
|
|
444
|
+
`{ outcome: "opened", takeId?, note? }`: say it is open;
|
|
461
445
|
quote `note` if set. Studio exports go to `~/Downloads`.
|
|
462
446
|
|
|
463
447
|
## 6. The format
|
|
@@ -516,8 +500,7 @@ recorded action each step came from (`recorded`, in `recordedFrom`):
|
|
|
516
500
|
- `scrollTo` takes an optional `landing: { "top": <px> }`, the viewport y of
|
|
517
501
|
the element's top edge when the scroll stops. Absent means centred.
|
|
518
502
|
- `viewport` absent means the size the user chose: the screen's, which
|
|
519
|
-
`snapshot` measured `inFirstViewport` against. Leave `viewport`
|
|
520
|
-
out unless the user asked for a size.
|
|
503
|
+
`snapshot` measured `inFirstViewport` against. Leave `viewport` out unless the user asked.
|
|
521
504
|
- `device` is `"phone"` or `"tablet"`: the page is recorded as a phone (393x852)
|
|
522
505
|
or a tablet (820x1180), with touch and an iOS user agent. Name a device or a
|
|
523
506
|
`viewport`, not both. A device has no hover, so a `hover` step under one is
|
|
@@ -527,17 +510,23 @@ recorded action each step came from (`recorded`, in `recordedFrom`):
|
|
|
527
510
|
branding, not both. An unknown key in `look` is refused and named. A
|
|
528
511
|
`branding` is the whole of one: `background`, `logo` (or `null`) and
|
|
529
512
|
`padding`, the margin as a fraction of the frame's shorter side (0 to
|
|
530
|
-
0.2; left out is 0.
|
|
513
|
+
0.2; left out is 0.12); a missing `background` or `logo` is refused.
|
|
514
|
+
A `background` may be `{ "kind": "wallpaper", "id" }` (`muted-1` to
|
|
515
|
+
`muted-4`, `vivid-1` to `vivid-6`, `light-1`, `light-2`, `dark-1`, `dark-2`;
|
|
516
|
+
another id is refused, naming them) or `{ "kind": "image", "ref": "<path>" }`, a file, absolute or
|
|
517
|
+
relative to the Demoman home; copied into the take. Either takes
|
|
518
|
+
`"blur"`, 0-1 (default 0, sharp).
|
|
531
519
|
A `canvas` is `{ "aspect": "auto" | "16:9" | "9:16" }`; `auto`, the
|
|
532
520
|
default, is the recording's own shape plus an even margin.
|
|
533
521
|
A `motion` is how the camera moves, `{ "smoothness": 0-1, "blur": 0-1, "follow": true | false }`; a derived draft carries the take's own, so keep it.
|
|
534
522
|
- Refused at the door: a script whose every step is a `pause`; a `target`
|
|
535
523
|
that is not `http(s)`; a `click` with a `button`.
|
|
536
|
-
- No branching,
|
|
537
|
-
must read something.
|
|
524
|
+
- No branching, loops or assertions. Add `pause` only where a viewer must read.
|
|
538
525
|
|
|
539
526
|
## 7. Every reason
|
|
540
527
|
|
|
528
|
+
`probe` can answer any reason `snapshot` can, and `run`'s `refusedBeforeRun` ones.
|
|
529
|
+
|
|
541
530
|
| Reason | Where | What it means, and the move |
|
|
542
531
|
| --- | --- | --- |
|
|
543
532
|
| `browserMissing` | `snapshot`, `run` (`refusedBeforeRun`), `studio` | Demoman's browser or its libraries are missing; `detail` gives the command. Ask the user to run it, then call again. |
|
|
@@ -563,8 +552,8 @@ recorded action each step came from (`recorded`, in `recordedFrom`):
|
|
|
563
552
|
| `copyFailed` | `attach` (`notAttached`) | The video could not be copied; nothing was posted. Hand the user the capped export's file. |
|
|
564
553
|
| `windowDidNotOpen` | `snapshot`; `run` (`refusedBeforeRun`); `studio` | The window would not open; try once more. |
|
|
565
554
|
| `studioDidNotStart` | `studio` | The Studio did not start; `detail` quotes the end of `~/.demoman/studio.log`. Tell the user, quoting it. |
|
|
566
|
-
| `alreadyRunning` | `snapshot`, `run`, `derive` | A run, snapshot or export is in progress. Call `report(id)` on it; try again when it settles. |
|
|
567
|
-
| `busy` | `export` (`refusedBeforeExport`) | A run or snapshot is in progress. Call `report(id)` on it first. |
|
|
555
|
+
| `alreadyRunning` | `snapshot`, `probe`, `run`, `derive` | A run, probe, snapshot or export is in progress. Call `report(id)` on it; try again when it settles. |
|
|
556
|
+
| `busy` | `export` (`refusedBeforeExport`) | A run, probe or snapshot is in progress. Call `report(id)` on it first. |
|
|
568
557
|
| `browserSilent` | `status`, `takes`, `derive`, `report` | The browser did not answer within about 50 s. Call `status` once; if again, tell the user. From `report`, the run may still be going: call `report(id)` again. |
|
|
569
558
|
| `libraryUnreadable` | `takes`, `studio` | The library could not be read; report it. |
|
|
570
559
|
| `libraryUnwritable` | `run` (in `notStored`) | Not a `reason`: the report has a `notStored` entry `{ "what": "take", "error": … }` and a null `provenance.takeId`. Nothing was saved; quote the `error`. |
|
|
@@ -582,10 +571,11 @@ recorded action each step came from (`recorded`, in `recordedFrom`):
|
|
|
582
571
|
| `versionExpired` | `export` (`refusedBeforeExport`) | The take's frames expired: `run({ video: { id } })`, then export. |
|
|
583
572
|
| `failed` | `status` (`expiry`) | Not a refusal: `expiry` is the last cleanup `{ ranAt, expired, freedBytes, skippedLeased }`. Say nothing unless it is `{ failed }` or `{ unreadable }`: quote it. |
|
|
584
573
|
| `nothingToRerecord` | `run` (`refusedBeforeRun`) | The take has no step left that acts; tell the user. |
|
|
585
|
-
| `unknownKit` | `run` (`refusedBeforeRun`) | `look.kit` names no
|
|
586
|
-
| `kitsUnreadable` | `run` (`refusedBeforeRun`) | The
|
|
587
|
-
| `
|
|
588
|
-
| `
|
|
574
|
+
| `unknownKit` | `run` (`refusedBeforeRun`) | `look.kit` names no kit, or an unreadable one; `detail` lists the kits. Fix it from `snapshot`'s `kits`, or ask the user. |
|
|
575
|
+
| `kitsUnreadable` | `run` (`refusedBeforeRun`) | The kits file would not read, so `look.kit` went unchecked. Quote `detail`; keep the name. |
|
|
576
|
+
| `wallpaperUnreadable` | `run` (`refusedBeforeRun`) | The image would not open. Quote `detail`; fix or drop `look.branding`/`look.kit`. |
|
|
577
|
+
| `invalidDevice` | `snapshot` | `device` is no phone or tablet Demoman has; `detail` lists them. |
|
|
578
|
+
| `deviceFailed` | `snapshot`, `run` | The browser would not emulate the device; nothing was listed or recorded. Tell the user `detail`; do not run again. |
|
|
589
579
|
| `nonHttpTarget` | `run`, `snapshot` | The target or url is not `http(s)`, or its host contains `*`. |
|
|
590
580
|
| `invalidFileType` | `export` (`refusedBeforeExport`) | Not answered here: the schema takes only `mp4`, `gif`, `stills`. |
|
|
591
581
|
| `invalidStillsOptions` | `export` (`refusedBeforeExport`) | `stills` was given for an MP4 or GIF, or holds a width outside 320-3840 (or `"native"`), a zoom other than `"none"` or `"step"`, or another field; `detail` says which. Fix the call. |
|
|
@@ -594,9 +584,11 @@ recorded action each step came from (`recorded`, in `recordedFrom`):
|
|
|
594
584
|
| `takeNotFound`, `takeUnreadable` | `export` (`refusedBeforeExport`), `run` re-record (`refusedBeforeRun`), `studio` (`takeNotFound`: call `takes`) | No such take; it could not be read (or, for `run`, built into a script). |
|
|
595
585
|
| `dragEndOutOfView`, `dragNoDistance` | `run` (`stopped.reason`) | A drag's end was off screen (a drag cannot scroll), or on its start. Fix the script. |
|
|
596
586
|
| `clickNotDelivered` | `run` (`stopped.reason`) | The browser put a click elsewhere than where it was sent; `stopped.detail` says where. Not the script's fault: run again (it counts); tell the user if it repeats. |
|
|
597
|
-
| `signedOut` | `run` (`stopped.reason`) | The app sent this browser to its sign-in page. Nothing was kept. Give the user the command in `stopped.detail`; run again only after they ran it. As an account there is no command: the detail says whether Demoman signed in again; repeat only if it says so. |
|
|
587
|
+
| `signedOut` | `run` (`stopped.reason`) | The app sent this browser to its sign-in page. Nothing was kept, and it is not a script fault. Give the user the command in `stopped.detail`; run again only after they ran it. As an account there is no command: the detail says whether Demoman signed in again; repeat only if it says so. |
|
|
598
588
|
| `windowClosed` | `run` (`stopped.reason`) | `--headed` only: the window was closed mid-run; the script is fine. Ask the user to leave it open; run once more. In an export it answers `renderFailed`; export again. |
|
|
599
589
|
| `pageDidNotLoad` | `snapshot` | The url did not load. Ask the user whether the app is running at that address; spend no run. |
|
|
600
590
|
| `pageSilent` | `snapshot` | The page never answered. Call once more; if again, the page blocked Demoman's script; tell the user. |
|
|
601
591
|
| `pageFaulted` | `snapshot` | The page's own code threw; quote `detail`. |
|
|
602
592
|
| `snapshotThrew` | `snapshot` | A fault in the snapshot; quote `detail`. |
|
|
593
|
+
| `probeThrew` | `probe` | A fault in the probe; quote `detail`. |
|
|
594
|
+
| `portFailure` | `probe` | The browser gave way; not the script's fault. Probe once more; quote `detail` if it repeats. |
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
@layer shell{:root{color-scheme:light dark;--font-mono:"JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;--shell:#eef0f4;--ground-dot:#11182714;--dot-pitch:20px;--dot-origin:0px;--card:#fff;--ink:#111827;--ink-muted:#4b5563;--ink-faint:#636b7a;--ring:#1118271a;--ring-strong:#11182738;--control:#e4e7ed;--control-hover:#d7dbe3;--control-ground:var(--control);--control-hover-ground:var(--control-hover);--primary:#cdeb45;--primary-hover:#b9d700;--primary-ink:#030712;--secondary:#030712;--secondary-hover:#1f2937;--secondary-ink:#fff;--accent:#566505;--accent-soft:#f7fde7;--warn:#b4530a;--warn-soft:#fff7ed;--error:#991b1b;--error-soft:#fef2f2;--error-ring:#991b1b40;--switch-off:#9ca3af;--switch-knob:#fff;--slider-rest:#ccd2dc;--rec:#dc2626;--focus:#566505;--shadow-overlay:0 8px 24px #0f172a24;--radius:6px;--radius-card:8px}@media (prefers-color-scheme:dark){:root:not([data-theme=light]){--shell:#010102;--ground-dot:#ececf11a;--card:#181818;--ink:#ececf1;--ink-muted:#b4b4bd;--ink-faint:#8b8b94;--ring:#ffffff1a;--ring-strong:#ffffff3d;--control:#ffffff12;--control-hover:#ffffff21;--control-ground:color-mix(in srgb, #fff 7%, var(--shell));--control-hover-ground:color-mix(in srgb, #fff 13%, var(--shell));--primary:#cdeb45;--primary-hover:#b9d700;--primary-ink:#242b04;--secondary:#ececf1;--secondary-hover:#fff;--secondary-ink:#141416;--accent:#cdeb45;--accent-soft:#23260f;--warn:#f5a969;--warn-soft:#2a1d10;--error:#fca5a5;--error-soft:#3b1a1a;--error-ring:#fca5a540;--switch-off:#fff3;--switch-knob:#ececf1;--slider-rest:#ececf1;--rec:#ff4d4f;--focus:#cdeb45;--shadow-overlay:0 8px 24px #0000008c}}:root[data-theme=dark]{--shell:#010102;--ground-dot:#ececf11a;--card:#181818;--ink:#ececf1;--ink-muted:#b4b4bd;--ink-faint:#8b8b94;--ring:#ffffff1a;--ring-strong:#ffffff3d;--control:#ffffff12;--control-hover:#ffffff21;--control-ground:color-mix(in srgb, #fff 7%, var(--shell));--control-hover-ground:color-mix(in srgb, #fff 13%, var(--shell));--primary:#cdeb45;--primary-hover:#b9d700;--primary-ink:#242b04;--secondary:#ececf1;--secondary-hover:#fff;--secondary-ink:#141416;--accent:#cdeb45;--accent-soft:#23260f;--warn:#f5a969;--warn-soft:#2a1d10;--error:#fca5a5;--error-soft:#3b1a1a;--error-ring:#fca5a540;--switch-off:#fff3;--switch-knob:#ececf1;--slider-rest:#ececf1;--rec:#ff4d4f;--focus:#cdeb45;--shadow-overlay:0 8px 24px #0000008c;color-scheme:dark}:root[data-theme=light]{color-scheme:light}@font-face{font-family:Manrope;font-style:normal;font-weight:200 800;font-display:swap;src:url(/fonts/manrope-latin-variable.woff2)format("woff2")}@font-face{font-family:Outfit;font-style:normal;font-weight:100 900;font-display:swap;src:url(/fonts/outfit-latin-variable.woff2)format("woff2")}@font-face{font-family:JetBrains Mono;font-style:normal;font-weight:100 800;font-display:swap;src:url(/fonts/jetbrains-mono-latin-variable.woff2)format("woff2")}*{box-sizing:border-box}body{color:var(--ink);-webkit-font-smoothing:antialiased;background-color:var(--shell);background-image:radial-gradient(circle, var(--ground-dot) 1px, transparent 1.6px);background-size:var(--dot-pitch) var(--dot-pitch);background-position:calc(var(--dot-origin) - var(--dot-pitch) / 2) calc(var(--dot-origin) - var(--dot-pitch) / 2);margin:0;font:400 13px/1.5 Manrope,ui-sans-serif,system-ui,sans-serif}p{margin:0}button,input{font:inherit;color:inherit}button{cursor:pointer;border:0}button:disabled{cursor:default}:focus-visible{outline:2px solid var(--focus);outline-offset:2px}#brand{align-items:center;gap:8px;line-height:1.5;display:flex}#brand img{width:22px;height:22px}#wordmark{letter-spacing:-.01em;font:500 18px/1 Outfit,ui-sans-serif,system-ui,sans-serif}#version{color:var(--ink-faint);font-variant-numeric:tabular-nums;margin-left:auto;font-size:11px}:root{--page-gutter:16px}@media (width>=640px){:root{--page-gutter:24px}}@media (width>=1024px){:root{--page-gutter:32px}}.topbar{--control:var(--control-ground);--control-hover:var(--control-hover-ground);line-height:1.5}.topbar-inner,.page{max-width:1280px;padding-inline:var(--page-gutter);margin-inline:auto}.topbar-inner{box-sizing:border-box;flex-wrap:nowrap;align-items:center;gap:16px;min-height:64px;padding-block:8px;display:flex}.topbar-group{align-items:center;display:flex}.logomark{flex:none;gap:12px;height:32px;display:flex}@media (width<=759px){.logomark-word{display:none}}.logomark .disc{width:32px;height:32px;display:block}.logomark .for-light,.logomark .for-dark{width:101.547px;height:32px;display:block}.logomark .for-dark{display:none}@media (prefers-color-scheme:dark){:root:not([data-theme=light]) .logomark .for-light{display:none}:root:not([data-theme=light]) .logomark .for-dark{display:block}}:root[data-theme=dark] .logomark .for-light{display:none}:root[data-theme=dark] .logomark .for-dark{display:block}.page{padding-top:40px;padding-bottom:48px}.topbar-actions{align-items:center;gap:12px;margin-left:auto;display:flex}.tabs{align-items:center;gap:2px;margin-left:24px;display:flex}.tabs a{border-radius:var(--radius);color:var(--ink-muted);align-items:center;gap:6px;padding:6px 11px;font-size:13px;font-weight:600;text-decoration:none;transition:background-color .12s,color .12s;display:inline-flex}.tabs svg{opacity:.85;flex:none;width:15px;height:15px}.tabs a:hover{color:var(--ink);background:var(--control)}.tabs a[aria-current=page]{color:var(--ink);background:var(--control-hover)}@media (width<=559px){.tabs{margin-left:16px}.tabs a{padding:6px 9px}.tab-label{clip:rect(0 0 0 0);white-space:nowrap;border:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}}.pill{border-radius:var(--radius);background:var(--control);color:var(--ink-muted);align-items:center;gap:6px;padding:5px 11px;font-size:12px;font-weight:600;transition:background-color .12s,color .12s;display:inline-flex}.pill:hover{background:var(--control-hover);color:var(--ink)}.pill[aria-pressed=true]{background:var(--secondary);color:var(--secondary-ink)}.switch-row{cursor:pointer;align-items:center;gap:12px;display:flex}.switch-row:has(input:disabled){cursor:default;opacity:.5}.switch-text{flex:1;min-width:0}.switch-text strong{font-weight:700;display:block}.hint{color:var(--ink-muted);font-size:12px;display:block}.switch{--switch-travel:16px;flex:none;width:38px;height:22px;position:relative}.switch input{z-index:1;opacity:0;cursor:inherit;margin:0;position:absolute;inset:0}.switch-track{pointer-events:none;background:var(--switch-off);border-radius:999px;transition:background-color .12s;position:absolute;inset:0}.switch-track:after{content:"";background:var(--switch-knob);border-radius:50%;width:16px;height:16px;transition:transform .12s;position:absolute;top:3px;left:3px;box-shadow:0 1px 2px #00000040}.switch input:checked+.switch-track{background:var(--primary)}.switch input:checked+.switch-track:after{transform:translateX(var(--switch-travel))}.switch input:focus-visible+.switch-track{outline:2px solid var(--focus);outline-offset:2px}.switch[data-flip] .switch-track,.switch[data-flip] .switch-track:after{animation-duration:.12s;animation-timing-function:ease;animation-delay:var(--switch-elapsed,0s)}.switch[data-flip] input:checked+.switch-track{animation-name:switch-track-from-off}.switch[data-flip] input:checked+.switch-track:after{animation-name:switch-knob-from-off}.switch[data-flip] input:not(:checked)+.switch-track{animation-name:switch-track-from-on}.switch[data-flip] input:not(:checked)+.switch-track:after{animation-name:switch-knob-from-on}@keyframes switch-track-from-off{0%{background-color:var(--switch-off)}}@keyframes switch-track-from-on{0%{background-color:var(--primary)}}@keyframes switch-knob-from-off{0%{transform:none}}@keyframes switch-knob-from-on{0%{transform:translateX(var(--switch-travel))}}input[type=range]{-webkit-appearance:none;appearance:none;cursor:pointer;background:0 0;border:0;width:100%;height:16px}input[type=range]:disabled{cursor:default;opacity:.45}input[type=range]::-webkit-slider-runnable-track{background:linear-gradient(to right, var(--slider-fill,var(--slider-rest)) 0 var(--fill,0%), var(--switch-off) var(--fill,0%) 100%);border-radius:999px;height:4px}input[type=range]::-webkit-slider-thumb{-webkit-appearance:none;appearance:none;background:var(--switch-knob);opacity:0;border-radius:50%;width:12px;height:12px;margin-top:-4px;transition:opacity .12s;box-shadow:0 1px 3px #0000004d}input[type=range]:hover:not(:disabled),input[type=range]:focus-visible,input[type=range]:active{--slider-fill:var(--accent)}input[type=range]:hover:not(:disabled)::-webkit-slider-thumb,input[type=range]:focus-visible::-webkit-slider-thumb,input[type=range]:active::-webkit-slider-thumb{opacity:1}.card{background:var(--card);border-radius:var(--radius-card);padding:12px}.btn{border-radius:var(--radius);justify-content:center;align-items:center;gap:8px;padding:6px 11px;font-size:12.5px;font-weight:600;line-height:1.3;transition:background-color .12s;display:inline-flex}.btn:disabled{opacity:.5}.btn-primary{background:var(--primary);color:var(--primary-ink)}.btn-primary:not(:disabled):hover{background:var(--primary-hover)}.btn-secondary{background:var(--secondary);color:var(--secondary-ink)}.btn-secondary:not(:disabled):hover{background:var(--secondary-hover)}.btn-quiet{background:var(--control);color:var(--ink);font-weight:600}.btn-quiet:not(:disabled):hover{background:var(--control-hover)}.btn-link{color:var(--ink-muted);background:0 0;padding:6px;font-weight:600}.btn-link:hover{color:var(--ink)}.btn-icon{flex:none;width:32px;height:32px;padding:0}.btn-icon svg{width:16px;height:16px}.btn-icon.btn-danger:not(:disabled):hover{background:var(--error-soft);color:var(--error)}select,input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=color]):not([type=file]){border-radius:var(--radius);background:var(--control);color:var(--ink);border:0;padding:6px 9px;font-family:inherit;font-size:13px}.notice{border-radius:var(--radius);background:var(--control);color:var(--ink-muted);padding:8px 10px;font-size:12px}.notice-error{background:var(--error-soft);border:1px solid var(--error-ring);color:var(--error);padding:10px 12px;font-weight:600}.notice-warn{background:var(--warn-soft);color:var(--warn);padding:10px 12px;font-weight:600}.notice-line{align-items:flex-start;gap:10px;display:flex}.notice-line>svg{flex:none;width:16px;height:16px;margin-top:1px}.notice-body{flex:1;min-width:0}.notice-title{overflow-wrap:anywhere;margin:0;line-height:18px}.notice-details{margin-top:2px;font-weight:500}.notice-details>summary{cursor:pointer;opacity:.8;align-items:center;gap:4px;list-style:none;display:inline-flex}.notice-details>summary:hover{opacity:1}.notice-details>summary::-webkit-details-marker{display:none}.notice-details>summary>svg{width:12px;height:12px;transition:transform .12s}.notice-details[open]>summary>svg{transform:rotate(180deg)}.notice-reason{border-radius:var(--radius);background:var(--card);color:var(--ink-muted);font-family:var(--font-mono);overflow-wrap:anywhere;user-select:text;margin-top:6px;padding:6px 8px;font-size:11px;font-weight:400;line-height:1.5}.notice-actions{flex-wrap:wrap;gap:8px;margin:-4px 0;display:flex}.notice-dismiss{border-radius:var(--radius);color:inherit;opacity:.7;background:0 0;flex:none;margin:-3px -5px 0 0;padding:3px;display:inline-flex}.notice-dismiss:hover{opacity:1}.notice-dismiss>svg{width:14px;height:14px}.empty{color:var(--ink-muted);align-items:flex-start;gap:14px;margin:0;display:flex}.empty>svg{width:22px;height:22px;color:var(--ink-faint);flex:none;margin-top:1px}.empty strong{color:var(--ink);font-size:14px;font-weight:600;display:block}.empty .hint{max-width:56ch;margin-top:2px}code{font-family:var(--font-mono);font-size:.92em}[data-rerun-line] code{display:block}.gone{z-index:2147483647;background-color:var(--shell);background-image:radial-gradient(circle, var(--ground-dot) 1px, transparent 1.6px);background-size:var(--dot-pitch) var(--dot-pitch);place-items:center;padding:24px;display:grid;position:fixed;inset:0}.gone p{text-align:center;max-width:40rem;color:var(--ink-muted);font-size:14px}.gone code{color:var(--ink)}.chev{width:16px;height:16px;color:var(--ink-faint);flex:none;transition:transform .12s,color .12s}@media (prefers-reduced-motion:reduce){.chev{transition:none}}.hidden{display:none}.branding-controls{max-width:420px}.branding-controls .segmented,.run-size .segmented,.pull-requests .segmented,.export-quality .segmented,.inspector .segmented,#stage-bar .segmented,#stage-tools .segmented{border:1px solid var(--ring-strong);border-radius:var(--radius);width:fit-content;display:inline-flex;overflow:hidden}.branding-controls .segment,.run-size .segment,.pull-requests .segment,.export-quality .segment,.inspector .segment,#stage-bar .segment,#stage-tools .segment{background:var(--control);color:var(--ink-muted);font:inherit;cursor:pointer;border:0;padding:6px 14px}.branding-controls .segment+.segment,.run-size .segment+.segment,.pull-requests .segment+.segment,.export-quality .segment+.segment,.inspector .segment+.segment,#stage-bar .segment+.segment,#stage-tools .segment+.segment{border-left:1px solid var(--ring-strong)}.branding-controls .segment[aria-checked=true],.run-size .segment[aria-checked=true],.pull-requests .segment[aria-checked=true],.export-quality .segment[aria-checked=true],.inspector .segment[aria-checked=true],#stage-bar .segment[aria-checked=true],#stage-tools .segment[aria-checked=true]{background:var(--accent-soft);color:var(--ink)}.branding-controls .colour-row{font-family:var(--font-mono);align-items:center;gap:8px;display:flex}.branding-controls input[type=color]{border:1px solid var(--ring-strong);background:var(--control);cursor:pointer;border-radius:6px;flex:none;width:32px;height:32px;padding:0}.branding-controls .colour-text{flex:1;min-width:0}.branding-controls .colour-text[aria-invalid=true]{outline:1px solid var(--error)}.branding-controls .colour-error{color:var(--error);margin:4px 0 0;font-size:12px}.branding-controls .colour-error:empty,.branding-controls [data-colour-note]:empty{display:none}.branding-controls [data-colour-note]{margin:4px 0 0;font-size:12px}.branding-controls [data-swap]{padding:0}.branding-controls .corner-frame{aspect-ratio:16/9;box-sizing:border-box;border:1px solid var(--ring-strong);background:var(--control);border-radius:8px;justify-self:center;width:100%;max-width:220px;position:relative}.branding-controls .corner-frame-rec{border:1px solid var(--ring);background:var(--card);pointer-events:none;border-radius:4px;position:absolute;inset:22% 16%}.branding-controls .corner{cursor:pointer;background:0 0;border:0;border-radius:6px;width:34%;height:40%;padding:0;position:absolute}.branding-controls .corner:hover{background:var(--control-hover)}.branding-controls .corner:focus-visible{outline:2px solid var(--focus);outline-offset:-2px}.branding-controls .corner:after{content:"";box-sizing:border-box;border:1px dashed var(--ring-strong);border-radius:2px;width:22px;height:10px;position:absolute}.branding-controls .corner[data-logo-corner=top-left]{top:0;left:0}.branding-controls .corner[data-logo-corner=top-right]{top:0;right:0}.branding-controls .corner[data-logo-corner=bottom-left]{bottom:0;left:0}.branding-controls .corner[data-logo-corner=bottom-right]{bottom:0;right:0}.branding-controls .corner[data-logo-corner=top-left]:after{top:8px;left:8px}.branding-controls .corner[data-logo-corner=top-right]:after{top:8px;right:8px}.branding-controls .corner[data-logo-corner=bottom-left]:after{bottom:8px;left:8px}.branding-controls .corner[data-logo-corner=bottom-right]:after{bottom:8px;right:8px}.branding-controls .corner[aria-checked=true]:after{background:var(--accent);border:0}.branding-controls .kit-picker-wrap{position:relative}.branding-controls .kit-picker{border:1px solid var(--ring-strong);background:var(--control);width:100%;min-width:0;height:36px;color:var(--ink);font:inherit;text-align:left;cursor:pointer;border-radius:8px;align-items:center;gap:8px;padding:0 10px;font-size:13px;font-weight:600;display:flex}.branding-controls .kit-picker:hover{background:var(--control-hover)}.branding-controls .kit-picker:focus-visible{outline:2px solid var(--focus);outline-offset:1px}.branding-controls .kit-picker>svg{width:14px;height:14px;color:var(--ink-muted);flex:none;margin-left:auto}.branding-controls .kit-picker-name{text-overflow:ellipsis;white-space:nowrap;min-width:0;overflow:hidden}.branding-controls .kit-picker-none{color:var(--ink-muted);font-weight:500}.branding-controls .kit-swatch{border:1px solid var(--ring);width:22px;height:14px;color:var(--error);border-radius:3px;flex:none;place-items:center;display:inline-grid}.branding-controls .kit-swatch svg{width:10px;height:10px}.branding-controls .kit-edited{color:var(--warn);white-space:nowrap;align-items:center;gap:5px;font-size:12px;font-weight:500;display:inline-flex}.branding-controls .kit-edited:before{content:"";background:currentColor;border-radius:50%;width:6px;height:6px}.branding-controls .kit-menu{z-index:5;border:1px solid var(--ring-strong);background:var(--card);box-shadow:var(--shadow-overlay);border-radius:10px;gap:2px;padding:6px;display:grid;position:absolute;top:calc(100% + 4px);left:0;right:0}.branding-controls .kit-menu[hidden]{display:none}.branding-controls .kit-menu-item{height:34px;color:var(--ink);font:inherit;text-align:left;cursor:pointer;background:0 0;border:0;border-radius:6px;align-items:center;gap:8px;padding:0 8px;font-size:13px;display:flex}.branding-controls .kit-menu-item:hover:not(:disabled),.branding-controls .kit-menu-item:focus-visible{background:var(--control-hover);outline:none}.branding-controls .kit-menu-item:disabled{opacity:.45;cursor:default}.branding-controls .kit-menu-item[aria-checked=true]{font-weight:600}.branding-controls .kit-menu-item>svg{flex:none;width:15px;height:15px}.branding-controls .kit-menu-label{text-overflow:ellipsis;white-space:nowrap;min-width:0;overflow:hidden}.branding-controls .kit-menu-meta{color:var(--ink-muted);align-items:center;gap:6px;margin-left:auto;display:inline-flex}.branding-controls .kit-menu-meta svg{width:14px;height:14px}.branding-controls .kit-menu-meta [data-icon=star]{fill:currentColor;width:12px;height:12px}.branding-controls .kit-menu-sep{background:var(--ring);height:1px;margin:4px 2px}.branding-controls .kit-naming{grid-template-columns:minmax(0,1fr) auto auto;gap:6px;display:grid}.branding-controls .kit-new-name{min-width:0;height:36px}.branding-controls .logo-row{grid-template-columns:minmax(0,1fr) auto;align-items:stretch;gap:10px;display:grid}.branding-controls .logo-stack{align-content:center;gap:6px;display:grid}.branding-controls .logo-controls .btn{gap:8px}.branding-controls .logo-stack .btn{justify-content:flex-start}.branding-controls .logo-controls .btn svg{flex:none;width:15px;height:15px}.branding-controls .logo-thumb{--thumb-h:76px;--thumb-inset:10px;box-sizing:border-box;height:var(--thumb-h);min-width:0;padding:calc(var(--thumb-inset) - 1px);border:1px solid var(--ring-strong);background-color:var(--card);background-image:conic-gradient(var(--control) 25%, transparent 0 50%, var(--control) 0 75%, transparent 0);color:var(--error);background-size:12px 12px;border-radius:8px;place-items:center;display:grid}.branding-controls .logo-thumb-img{width:auto;max-width:100%;height:auto;max-height:calc(var(--thumb-h) - 2 * var(--thumb-inset));display:block}.branding-controls .logo-thumb svg{width:16px;height:16px}.branding-controls .wallpaper-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;padding:3px;display:grid}.branding-controls .wallpaper-tile{aspect-ratio:4/3;background:var(--control);min-width:0;color:var(--ink-muted);cursor:pointer;border:0;border-radius:6px;place-items:center;padding:0;display:grid;overflow:hidden}.branding-controls .wallpaper-tile:hover{filter:brightness(1.08)}.branding-controls .wallpaper-tile[aria-pressed=true]{outline:2px solid var(--ink);outline-offset:2px}.branding-controls .wallpaper-tile:focus-visible{outline:2px solid var(--focus);outline-offset:2px}.branding-controls .wallpaper-tile-img{object-fit:cover;width:100%;height:100%;display:block}.branding-controls .wallpaper-tile svg{width:16px;height:16px}.branding-controls .wallpaper-upload{border:1px dashed var(--ring-strong);background:0 0}.branding-controls .wallpaper-upload:hover{filter:none;background:var(--control-hover);color:var(--ink)}.branding-controls .logo-controls label.btn{align-items:center;display:inline-flex;position:relative}.branding-controls .logo-controls label.btn input[type=file]{opacity:0;pointer-events:none;width:1px;height:1px;position:absolute}.kit-preview{width:100%;max-width:480px;height:auto;margin:8px 0 12px;display:block}.branding-controls .control-row,.branding-controls .slider-row{grid-template-columns:1fr auto;align-items:baseline;gap:12px 8px;margin:12px 0;display:grid}.branding-controls .slider-row{row-gap:6px}.branding-controls .control-row>:not(.control-label):not(.control-aside),.branding-controls .slider-row>input[type=range]{grid-column:1/-1;min-width:0;margin:0}.branding-controls .control-aside,.branding-controls .slider-row>.slider-value{color:var(--ink-muted);font-variant-numeric:tabular-nums}.branding-controls .control-actions{flex-wrap:wrap;align-items:center;gap:6px;display:flex}.branding-controls [data-logo-notes] p{margin:4px 0 0;font-size:12px}}.confirm-dialog{border-radius:var(--radius-card);background:var(--card);width:calc(100% - 32px);max-width:400px;max-height:calc(100vh - 32px);color:var(--ink);box-shadow:0 0 0 1px var(--ring);border:0;padding:0}.confirm-dialog::backdrop{background:#0307128c}.confirm-dialog form{text-align:center;flex-direction:column;padding:28px 28px 24px;font-size:14px;display:flex}.confirm-title{letter-spacing:-.02em;margin:0;font:700 22px/1.25 Outfit,ui-sans-serif,system-ui,sans-serif}.confirm-body{color:var(--ink-muted);margin:8px 0 0;line-height:1.5}.confirm-actions{grid-template-columns:1fr 1fr;gap:8px;margin-top:24px;display:grid}.confirm-actions .btn{padding:10px 16px;font-size:14px}.confirm-actions .btn svg{flex:none;width:16px;height:16px}.confirm-actions .confirm-go-danger{color:#fff;background:#b42318}.confirm-actions .confirm-go-danger:not(:disabled):hover{background:#8f1c13}.confirm-dialog .btn:focus{outline:2px solid var(--focus);outline-offset:2px}body{font-family:Manrope,ui-sans-serif,system-ui,sans-serif}@font-face{font-family:Geist;font-style:normal;font-weight:100 900;font-display:swap;src:url(/fonts/geist-variable.woff2)format("woff2")}@font-face{font-family:Geist Mono;font-style:normal;font-weight:100 900;font-display:swap;src:url(/fonts/geist-mono-variable.woff2)format("woff2")}:root[data-studio][data-theme=dark]{color-scheme:dark;--well:#070707;--bg:#0a0a0a;--bg-1:#101010;--bg-2:#151515;--bg-3:#1b1b1b;--bg-4:#232325;--line:#ffffff14;--line-2:#ffffff21;--line-3:#ffffff3d;--fill:#ffffff08;--fill-2:#ffffff12;--fill-3:#ffffff1c;--ink:#f4f4f5;--ink-2:#a1a1aa;--ink-3:#8f8f98;--ink-4:#7b7b84;--accent:#cdeb45;--ok:#5eead4;--danger:#f87171;--warn:#f5a969;--rec:#ff4d4f;--glow:#e4e4e721;--r-pill:999px;--r-frame:14px;--r-panel:12px;--r-field-lg:10px;--r-field:8px;--r-chip:6px;--sans:"Geist", system-ui, -apple-system, "Segoe UI", sans-serif;--mono:"Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;--shadow-pop:0 0 0 1px var(--line-2), 0 16px 40px -8px #000000b3;--shell:var(--bg);--stage-bed:var(--bg);--card:var(--bg-1);--ink-muted:var(--ink-2);--ink-faint:var(--ink-3);--ring:var(--line);--ring-strong:var(--line-2);--control:var(--fill);--control-hover:var(--fill-2);--control-ground:var(--fill);--control-hover-ground:var(--fill-2);--primary:var(--ink);--primary-hover:#fff;--primary-ink:var(--bg);--secondary:var(--ink);--secondary-hover:#fff;--secondary-ink:var(--bg);--accent-soft:#cdeb451a;--error:var(--danger);--error-soft:#f871711a;--error-ring:#f8717140;--warn-soft:#f5a9691a;--focus:var(--ink);--switch-off:var(--bg-4);--switch-knob:var(--ink);--slider-rest:var(--line-2);--ground-dot:transparent;--radius:var(--r-field);--radius-card:var(--r-panel);--font-mono:var(--mono);--shadow-overlay:0 16px 40px -8px #000000b3}[data-studio] body{font-family:var(--sans);letter-spacing:-.006em;-webkit-font-smoothing:antialiased}[data-studio] .topbar{backdrop-filter:blur(16px);border-bottom:1px solid var(--line);background:#0a0a0ac7}[data-studio] .topbar-inner{gap:28px;max-width:1202px;height:55px;min-height:55px;padding-block:0;padding-inline:32px}[data-studio] .logomark{height:20px;color:var(--ink);align-items:center}[data-studio] .logomark .disc,[data-studio] .logomark .logomark-word{display:none}[data-studio] .logomark .figure{height:20px;display:flex}[data-studio] .tabs{gap:22px;margin-left:28px}@media (width>=560px){[data-studio] .tabs svg{display:none}}[data-studio] .tabs a{letter-spacing:-.006em;color:var(--ink-2);border-radius:0;padding:6px 0;font-size:13.5px;font-weight:400}[data-studio] .tabs a:hover,[data-studio] .tabs a[aria-current=page]{color:var(--ink);background:0 0}[data-studio] .page{border-left:1px solid var(--line);border-right:1px solid var(--line);max-width:1202px;min-height:calc(100vh - 56px);padding:0 0 48px;display:flow-root}[data-studio] #notice:not(.hidden){margin:20px 32px 0}[data-studio] .library,[data-studio] .settings{--head-h:90px;gap:0;position:relative}[data-studio] .library-side,[data-studio] .settings-side{padding:32px 16px 20px}[data-studio] .library-side h1,[data-studio] .settings-side h1{margin:0 0 calc(var(--head-h) - 32px - 32px + 20px);font:500 32px / 1 var(--sans);letter-spacing:-.04em;color:var(--ink);padding-left:16px}@media (width>=1024px){[data-studio] .library{grid-template-columns:220px minmax(0,1fr)}[data-studio] .library-content{padding:calc(var(--head-h) + 20px) 32px 0}[data-studio] .library:before,[data-studio] .library:after{content:"";background:var(--line);pointer-events:none;position:absolute}[data-studio] .library:before{left:0;right:0;top:var(--head-h);height:1px}[data-studio] .library:after{left:220px;top:var(--head-h);width:1px;bottom:-48px}}@media (width>=768px){[data-studio] .settings{grid-template-columns:220px minmax(0,1fr)}[data-studio] .settings .content{max-width:784px;padding:calc(var(--head-h) + 20px) 32px 0}[data-studio] .settings:before,[data-studio] .settings:after{content:"";background:var(--line);pointer-events:none;position:absolute}[data-studio] .settings:before{left:0;right:0;top:var(--head-h);height:1px}[data-studio] .settings:after{left:220px;top:var(--head-h);width:1px;bottom:-48px}}@media (width<=1023px){[data-studio] .library-side{border-bottom:1px solid var(--line)}[data-studio] .library-side h1{margin-bottom:0}[data-studio] .library-content{padding:28px 32px 0}}@media (width<=767px){[data-studio] .settings-side{border-bottom:1px solid var(--line)}[data-studio] .settings .content{padding:28px 32px 0}}[data-studio] .side-item,[data-studio] .section-nav a{border-radius:var(--r-field);min-height:32px;color:var(--ink-2);padding:0 10px;font-size:13.5px;font-weight:400}[data-studio] .side-item:hover,[data-studio] .section-nav a:hover{color:var(--ink);background:var(--fill)}[data-studio] .side-item[aria-current=true],[data-studio] .section-nav a[aria-current=true]{color:var(--ink);background:var(--fill-2)}[data-studio] .section-nav svg{color:var(--ink-3);opacity:1}[data-studio] .side-count,[data-studio] .nav-count{font-family:var(--mono);color:var(--ink-4);font-size:11.5px}[data-studio] :is(h1,h2,h3,h4,.confirm-title,.storage-title),[data-studio] #name{font-family:var(--sans);letter-spacing:-.015em;font-weight:500}[data-studio] :focus-visible{outline:2px solid var(--focus);outline-offset:2px}[data-studio] .btn{border-radius:var(--r-pill);letter-spacing:-.01em;font-size:13px;font-weight:500;transition:background-color .15s,box-shadow .15s,color .15s}[data-studio] .btn:not(.btn-icon){min-height:32px;padding:0 14px}[data-studio] .btn-primary{background:var(--ink);color:var(--bg)}[data-studio] .btn-primary:not(:disabled):hover{background:#fff}[data-studio] :is(.btn-secondary,.btn-quiet:not(.btn-icon)){background:var(--fill);color:var(--ink);box-shadow:inset 0 0 0 1px var(--line-2)}[data-studio] :is(.btn-secondary,.btn-quiet:not(.btn-icon)):not(:disabled):hover{background:var(--fill);box-shadow:inset 0 0 0 1px var(--line-3)}[data-studio] .btn-quiet.btn-icon{color:var(--ink-2);background:0 0}[data-studio] .btn-quiet.btn-icon:not(:disabled):hover{background:var(--fill-2);color:var(--ink)}[data-studio] .btn-danger{color:var(--danger)}[data-studio] .btn-link{color:var(--ink-2);font-weight:500}[data-studio] :is(.branding-controls,.run-size,.pull-requests,.export-quality,.inspector,#stage-bar,#stage-tools) .segmented{border-radius:var(--r-pill);background:var(--bg-1);box-shadow:inset 0 0 0 1px var(--line-2);border:0;gap:0;padding:2px;overflow:visible}[data-studio] :is(.branding-controls,.run-size,.pull-requests,.export-quality,.inspector,#stage-bar,#stage-tools) .segment{border-radius:var(--r-pill);min-height:26px;color:var(--ink-3);background:0 0;border:0;padding:0 11px;font-size:12.5px;font-weight:400}[data-studio] :is(.branding-controls,.run-size,.pull-requests,.export-quality,.inspector,#stage-bar,#stage-tools) .segment+.segment{border-left:0}[data-studio] :is(.branding-controls,.run-size,.pull-requests,.export-quality,.inspector,#stage-bar,#stage-tools) .segment[aria-checked=true]{background:var(--bg-4);color:var(--ink);box-shadow:inset 0 0 0 1px var(--line-2)}[data-studio] .switch:not([data-flip]){--switch-travel:12px;width:30px;height:18px}[data-studio] .switch:not([data-flip]) .switch-track{background:var(--bg-4);box-shadow:inset 0 0 0 1px var(--line-2)}[data-studio] .switch:not([data-flip]) .switch-track:after{background:var(--ink-3);width:12px;height:12px;box-shadow:none}[data-studio] .switch:not([data-flip]) input:checked+.switch-track{background:var(--ink);box-shadow:none}[data-studio] .switch:not([data-flip]) input:checked+.switch-track:after{background:var(--bg)}[data-studio] input[type=range]{--slider-rest:var(--ink)}[data-studio] input[type=range]::-webkit-slider-runnable-track{background:linear-gradient(to right, var(--slider-fill,var(--slider-rest)) 0 var(--fill,0%), var(--line-2) var(--fill,0%) 100%);height:2px}[data-studio] input[type=range]::-webkit-slider-thumb{background:var(--ink);box-shadow:0 0 0 3px var(--bg-1);margin-top:-5px}[data-studio] input[type=range]:is(:hover:not(:disabled),:focus-visible,:active){--slider-fill:var(--ink)}[data-studio] .notice{border-radius:var(--r-field-lg);background:var(--bg-1);box-shadow:inset 0 0 0 1px var(--line-2);color:var(--ink-2);font-size:13px}[data-studio] :is(.notice-error,.notice-warn){background:var(--bg-1);color:var(--ink-2);border:0;font-weight:400}[data-studio] .notice-error .notice-line>svg{color:var(--danger)}[data-studio] .notice-warn .notice-line>svg{color:var(--warn)}[data-studio] .notice-title{color:var(--ink);font-weight:500}[data-studio] .confirm-dialog{border-radius:var(--r-frame);background:var(--bg-2);box-shadow:var(--shadow-pop)}[data-studio] .meter-fill,[data-studio] .branding-controls .corner[aria-checked=true]:after{background:var(--ink)}[data-studio] input[type=checkbox]{accent-color:var(--ink)}[data-studio] #rail .btn[aria-pressed=true]{background:var(--fill-3);color:var(--ink)}[data-studio] #transport .transport-button[data-active]:not([data-transport-play]),[data-studio] .rate{color:var(--ink)}[data-studio] .cursor-style[aria-checked=true]{border-color:var(--ink)}[data-studio] .kit-pick[aria-pressed=true]{box-shadow:inset 0 0 0 1.5px var(--ink)}[data-studio] .kit-pick[aria-pressed=true]:not(:focus-visible){outline:0}[data-studio] .inspector .export-progress{accent-color:var(--accent)}[data-studio] #stage-tools .chip{border-radius:var(--r-pill);color:var(--ink-2);font-weight:500}[data-studio] .library-total .storage-label{color:var(--ink-3);font-weight:400}[data-studio] .library-total{color:var(--ink-2);font-family:var(--mono);gap:6px;font-size:12px}[data-studio] .library-total .storage-label{font-family:var(--sans);font-size:12.5px}[data-studio] .section-head{width:100%;padding:4px 0}[data-studio] .section-head:after{content:"";background:var(--line);flex:1;height:1px}[data-studio] .section-head h2{font:400 11.5px / 1 var(--mono);letter-spacing:.06em;text-transform:uppercase;color:var(--ink-3)}[data-studio] .section-count{font-family:var(--mono);color:var(--ink-4);font-size:11.5px;font-weight:400}[data-studio] .section-head .chev{color:var(--ink-4)}[data-studio] .section[open]+.section{margin-top:36px}[data-studio] .rows{gap:16px}[data-studio] article.card{border-radius:var(--r-panel);background:var(--bg-1);box-shadow:inset 0 0 0 1px var(--line);padding:6px;transition:box-shadow .15s}[data-studio] article.card:hover{background:var(--bg-1);box-shadow:inset 0 0 0 1px var(--line-3)}[data-studio] [data-preview]{border-radius:var(--r-field);background:var(--bg-2);box-shadow:inset 0 0 0 1px var(--line)}[data-studio] [data-duration]{border-radius:var(--r-chip);backdrop-filter:blur(6px);color:var(--ink);font:400 11px / 1.4 var(--mono);background:#0a0a0ab8;padding:2px 6px}[data-studio] .row-text{padding:10px 2px 2px}[data-studio] [data-name]{letter-spacing:-.012em;font-size:14px;font-weight:500}[data-studio] .row-line{font-size:12.5px}[data-studio] :is(.row-meta,.row-size){color:var(--ink-3)}[data-studio] .row-size{font-family:var(--mono);font-size:11.5px}[data-studio] .versions{padding:8px 2px 2px}[data-studio] .versions-count{font:400 11.5px / 1.4 var(--mono);color:var(--ink-3)}[data-studio] .versions-list{border-top:1px solid var(--line);margin-top:8px;padding-top:4px}[data-studio] .version-number{font:400 11.5px / 1 var(--mono);color:var(--ink-2)}[data-studio] :is(.version-when,.version .row-rerun,.version-exports li){color:var(--ink-3)}[data-studio] .version-exports .export-type{font:400 11px / 1.6 var(--mono)}[data-studio] .card>.version-exports{padding:4px 2px 2px}[data-studio] article.card[data-unreadable-row] [data-unreadable-name]{font-family:var(--mono);color:var(--ink);font-size:12px}[data-studio] article.card[data-unreadable-row] [data-action=delete]{color:var(--danger)}[data-studio] .empty-card{border-radius:var(--r-panel);background:radial-gradient(60% 80% at 50% 100%, var(--glow), transparent 70%), var(--bg-1);box-shadow:inset 0 0 0 1px var(--line)}[data-studio] .settings .section-body{border-radius:var(--r-panel);background:var(--bg-1);box-shadow:inset 0 0 0 1px var(--line)}[data-studio] .settings .section-head{margin-bottom:12px}[data-studio] .kit-strip{margin-bottom:14px}[data-studio] .kit-tile{width:148px}[data-studio] .kit-pick{border-radius:var(--r-panel);background:var(--bg-2);box-shadow:inset 0 0 0 1px var(--line);border:0}[data-studio] .kit-pick:hover{box-shadow:inset 0 0 0 1px var(--line-3)}[data-studio] .kit-thumb{border-radius:var(--r-field)}[data-studio] .kit-tile-name{padding:2px 2px 0;font-size:13px;font-weight:500}[data-studio] .kit-star{border-radius:var(--r-chip);color:var(--ink);background:#0a0a0a8c}[data-studio] .kit-star[aria-pressed=true]{color:var(--accent)}[data-studio] .kit-new{border:1px dashed var(--line-3);border-radius:var(--r-panel);color:var(--ink-3);font-size:12.5px}[data-studio] .kit-new:hover{border-color:var(--ink-3);color:var(--ink)}[data-studio] .kit-name{letter-spacing:-.015em;font-size:15px;font-weight:500}[data-studio] .kit-head .btn:not(.btn-icon){min-height:28px;padding:0 12px;font-size:12.5px}[data-studio] .kit-head [data-kit-delete]{color:var(--danger)}[data-studio] .kit-hero{border-radius:var(--r-panel);background:var(--bg);box-shadow:inset 0 0 0 1px var(--line);padding:8px}@media (height<=899px){[data-studio] .kit-hero .kit-preview{max-height:max(140px,100vh - 590px)}}[data-studio] .branding-group-title{font:400 11.5px / 1 var(--mono);letter-spacing:.06em;text-transform:uppercase;color:var(--ink-3);margin:0 0 10px}@container (width>=600px){[data-studio] .kit-controls .branding-controls{border-top:1px solid var(--line);gap:0;margin-top:12px}[data-studio] .kit-controls .branding-group{align-self:stretch;padding:12px 20px 6px}[data-studio] .kit-controls .branding-group:first-child{padding-left:0}[data-studio] .kit-controls .branding-group:last-child{padding-right:0}[data-studio] .kit-controls .branding-group+.branding-group{border-left:1px solid var(--line)}}[data-studio][data-theme=dark]:root{--seam:0px;--float:none;--radius-float:0px;--rail-w:52px}[data-studio] body{padding:0}[data-studio] body>header:not(.topbar){border-bottom:1px solid var(--line);box-sizing:border-box;gap:12px;min-height:52px;padding:0 12px 0 8px}[data-studio] .head-card{height:51px;box-shadow:none;background:0 0;border-radius:0;padding:0}[data-studio] .head-take{min-width:0}[data-studio] .head-divider{background:var(--line-2);height:18px}[data-studio] #name{letter-spacing:-.015em;text-overflow:ellipsis;font-size:14.5px;font-weight:500}[data-studio] .take-meta{color:var(--ink-3);font-family:var(--mono);font-size:12px}[data-studio] button.take-meta{border-radius:var(--r-chip)}[data-studio] button.take-meta:hover,[data-studio] button.take-meta[aria-expanded=true]{background:var(--fill-2);color:var(--ink-2)}[data-studio] #take-info{border-radius:var(--r-frame);background:var(--bg-2);box-shadow:var(--shadow-pop)}[data-studio] #take-info .info-group+.info-group{border-top-color:var(--line)}[data-studio] #take-info .info-key,[data-studio] #take-info .info-label{color:var(--ink-3)}[data-studio] #take-info .info-value.mono{font-family:var(--mono);color:var(--ink-2)}[data-studio] #take-info .output+.output{border-top-color:var(--line)}[data-studio] #take-info .chip{background:var(--fill-2);box-shadow:inset 0 0 0 1px var(--line);color:var(--ink-3)}[data-studio] #take-info .chip-warn{color:var(--warn)}[data-studio] #take-info button.chip:hover{color:var(--ink)}[data-studio] #take-info .output-meta{color:var(--ink-3);font-family:var(--mono);font-size:11.5px}[data-studio] #status:has(>:not(:empty):not(.hidden)){border-bottom:1px solid var(--line);padding:10px 12px}[data-studio] body>main{background:var(--well);padding:20px}[data-studio] #preview{border-radius:var(--r-chip)}[data-studio] #rail{background:var(--bg);box-shadow:none;border-left:1px solid var(--line);border-radius:0;align-self:stretch;padding:10px 0}[data-studio] body>aside{background:var(--bg);box-shadow:none;border-left:1px solid var(--line);border-radius:0}[data-studio] .inspector{padding:16px 18px}[data-studio] .inspector-close{top:9px;right:11px}[data-studio] .inspector h2{letter-spacing:-.015em;font-size:14.5px;font-weight:500}[data-studio] #dock{background:var(--bg);box-shadow:none;border-top:1px solid var(--line);border-radius:0}@media (width<=951px){[data-studio] body:not([data-panel=closed])>aside{border-left:0;border-top:1px solid var(--line)}}[data-studio][data-theme=dark]:root{--lane-clip:#82b9464d;--lane-clip-ink:var(--ink);--lane-clip-glyph:#9ccc5c;--lane-clip-pointer:#c5e59a;--lane-zoom:#967deb4d;--lane-zoom-ink:#f1edff;--lane-zoom-glyph:#b59fff;--lane-mask:#e16e5f4d;--lane-mask-ink:#ffe6e1;--lane-mask-glyph:#fb8e7c;--lane-clip-hover:#82b94673;--lane-zoom-hover:#967deb73;--lane-mask-hover:#e16e5f73;--track:var(--fill);--playhead:var(--ink)}[data-studio] .lane[data-lane=clip]{--clip-fill-hover:var(--lane-clip-hover)}[data-studio] .lane[data-lane=zoom]{--clip-fill-hover:var(--lane-zoom-hover)}[data-studio] .lane[data-lane=mask]{--clip-fill-hover:var(--lane-mask-hover)}[data-studio] .seg{border-radius:var(--r-chip);box-shadow:none;font-weight:500}[data-studio] .seg:not([data-pieces]):is(:hover,[data-dragging]),[data-studio] .track:has(>.tick:hover,>.handle:hover)>.seg[data-clip-block]:not([data-pieces]){background-color:var(--clip-fill-hover,var(--clip-fill))}[data-studio] .seg[data-kind=zoom]{font-family:var(--sans);font-variant-numeric:tabular-nums;font-size:11.5px;font-weight:500}[data-studio] .seg[data-selected]:before{border-radius:var(--r-chip);border-width:1.5px}[data-studio] .track{border-radius:var(--r-chip);box-shadow:inset 0 0 0 1px var(--line)}[data-studio] .lane-head{color:var(--ink-2);font-size:12.5px;font-weight:400}[data-studio] .lane[data-lane=clip] .tick[data-verb]{--tick-halo:#2f3d22;width:24px;height:24px;margin:-12px 0 0 calc(-12px + var(--tick-stack,0) * 14px);box-shadow:none;color:var(--tick-input);background:0 0;border-radius:6px;place-items:center;display:grid;transform:none}[data-studio] .lane[data-lane=clip] .tick[data-verb] svg{width:16px;height:16px;filter:drop-shadow(0 0 1px var(--tick-halo)) drop-shadow(0 0 2px var(--tick-halo));display:block}[data-studio] .lane[data-lane=clip] .tick:is([data-verb=moveTo],[data-verb=scrollTo]){color:var(--tick-pointer)}[data-studio] .lane[data-lane=clip] .tick[data-verb=waitFor]{color:var(--tick-wait)}[data-studio] .lane[data-lane=clip] .tick[data-verb][data-cut]{opacity:.45}[data-studio] .lane[data-lane=clip] .tick[data-verb][data-flag]{color:var(--warn)}[data-studio] .lane[data-lane=clip] .tick[data-verb]:hover{background:#ffffff14}[data-studio] .lane[data-lane=clip] .tick[data-verb][data-selected]{color:var(--ink);background:#ffffff2e;outline:none}[data-studio] .lane[data-lane=clip] .tick[data-verb][data-selected] svg{filter:none}[data-studio] .ruler .tick{color:var(--ink-4);font-family:var(--sans);font-variant-numeric:tabular-nums;font-size:11px}[data-studio] #toolbar-clock .stage-clock{font-family:var(--sans);font-variant-numeric:tabular-nums;font-size:12.5px}[data-studio] .playhead{width:1px;box-shadow:0 0 0 .5px #00000080}[data-studio] .grab:before{border-radius:3px;width:11px;height:14px;top:3px;box-shadow:0 0 0 .5px #00000080}[data-studio] .confirm-actions .confirm-go-danger{background:var(--fill);color:var(--danger);box-shadow:inset 0 0 0 1px #f8717166}[data-studio] .confirm-actions .confirm-go-danger:not(:disabled):hover{background:#f871711a;box-shadow:inset 0 0 0 1px #f8717199}[data-studio] .notice-error.notice-line>svg{color:var(--danger)}[data-studio] .notice-warn.notice-line>svg{color:var(--warn)}[data-studio] .seg[data-clamped=true]{box-shadow:inset 0 0 0 2px var(--warn)}[data-studio] :is(.side-item,.section-nav a):is([aria-current=true],:hover) :is(.side-count,.nav-count){color:var(--ink-3)}[data-studio] input:is([type=text],[type=search],[type=number],:not([type])):not(#name):not(.kit-name):not([data-name]),[data-studio] select{border-radius:var(--r-field);background:var(--bg-1);height:32px;box-shadow:inset 0 0 0 1px var(--line-2);color:var(--ink);border:0;padding:0 10px;font-size:13px}[data-studio] .branding-controls input[type=color]{border-color:var(--line-2);border-radius:var(--r-chip)}[data-studio] .shortcuts-search{background:var(--bg);box-shadow:inset 0 0 0 1px var(--line-2)}[data-studio] .shortcuts-row:hover{background:var(--fill-2)}[data-studio] .shortcuts-group{color:var(--ink-3)}[data-studio] .keycap{background:var(--bg-3);box-shadow:inset 0 0 0 1px var(--line-2);color:var(--ink-2);font-family:var(--mono);border-radius:5px;font-weight:400}[data-studio] #shortcuts-open[aria-pressed=true]{background:var(--fill-2);color:var(--ink)}[data-studio] .tooltip{background:var(--bg-3);box-shadow:var(--shadow-pop);border-radius:8px;font-size:12.5px}[data-studio] .keycap[data-symbol]{font-family:system-ui,-apple-system,sans-serif;font-size:14px}[data-studio] .notice .btn:not(.btn-icon){min-height:28px;padding:0 12px;font-size:12.5px}[data-studio] .logomark .figure svg{fill:currentColor;width:auto;height:20px}
|