popost 4.6.10 → 4.6.12
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/README.md +2 -0
- package/SKILL.md +5 -3
- package/assets/canvas/assets/{dist-C40jmU-w.js → dist-DAI3U0Jz.js} +1 -1
- package/assets/canvas/assets/{es-aF1SvUMY.js → es-3zEBH4X5.js} +1 -1
- package/assets/canvas/assets/index-Ce4sDSi9.css +1 -0
- package/assets/canvas/assets/{index-CxUXSxcb.js → index-Dc4qgNYJ.js} +4 -4
- package/assets/canvas/assets/{jszip.min-Bf2BQwaC.js → jszip.min-BwYI3Gs3.js} +1 -1
- package/assets/canvas/build-info.json +6 -6
- package/assets/canvas/index.html +2 -2
- package/dist/cli.js +18401 -14673
- package/dist/index.js +19448 -15784
- package/dist/types/cloud/account.d.ts +14 -0
- package/dist/types/cloud/deliver.d.ts +29 -0
- package/dist/types/cloud/entitlement.d.ts +55 -0
- package/dist/types/cloud/paid-gate.d.ts +159 -0
- package/dist/types/cloud/service.d.ts +68 -23
- package/dist/types/commands/update.d.ts +2 -0
- package/dist/types/device-login.d.ts +35 -0
- package/dist/types/editor/canvas-state.d.ts +1 -1
- package/dist/types/editor/handoff.d.ts +10 -3
- package/dist/types/editor/http-types.d.ts +4 -1
- package/dist/types/editor/routes-cloud.d.ts +4 -3
- package/dist/types/install/record.d.ts +15 -0
- package/dist/types/providers/api-errors.d.ts +2 -0
- package/dist/types/providers/api.d.ts +1 -1
- package/dist/types/providers/link-resolve.d.ts +29 -0
- package/dist/types/providers/link.d.ts +2 -0
- package/dist/types/runtime.d.ts +38 -0
- package/dist/types/update/auto.d.ts +14 -0
- package/dist/types/update/check.d.ts +47 -0
- package/dist/types/update/install-kind.d.ts +27 -0
- package/dist/types/update/npm.d.ts +8 -0
- package/dist/types/update/perform.d.ts +64 -0
- package/dist/types/update/report.d.ts +7 -0
- package/dist/types/update/semver.d.ts +17 -0
- package/dist/types/update/session.d.ts +19 -0
- package/dist/types/update/state.d.ts +91 -0
- package/dist/types/update/verify.d.ts +33 -0
- package/dist/types/version.d.ts +1 -1
- package/dist/types/video/cache/frames.d.ts +85 -0
- package/dist/types/video/cache/holds.d.ts +35 -0
- package/dist/types/video/cache/project.d.ts +57 -0
- package/dist/types/video/commands/clean.d.ts +9 -0
- package/dist/types/video/commands/inputs.d.ts +2 -0
- package/dist/types/video/commands/materials.d.ts +6 -0
- package/dist/types/video/commands/product.d.ts +15 -0
- package/dist/types/video/commands/shared.d.ts +0 -5
- package/dist/types/video/compile/footage.d.ts +24 -7
- package/dist/types/video/compile/index.d.ts +3 -0
- package/dist/types/video/generate/cloud-image.d.ts +3 -1
- package/dist/types/video/generate/cloud.d.ts +5 -0
- package/dist/types/video/generate/dialogue.d.ts +2 -10
- package/dist/types/video/generate/index.d.ts +23 -2
- package/dist/types/video/inputs/collect.d.ts +104 -0
- package/dist/types/video/inputs/record.d.ts +106 -0
- package/dist/types/video/inputs/sheet.d.ts +8 -0
- package/dist/types/video/inputs/summary.d.ts +72 -0
- package/dist/types/video/preview/cloud.d.ts +20 -1
- package/dist/types/video/preview/edit/routes.d.ts +17 -11
- package/dist/types/video/preview/export-settings.d.ts +1 -2
- package/dist/types/video/preview/project.d.ts +3 -0
- package/dist/types/video/preview/shell/dom.d.ts +2 -0
- package/dist/types/video/preview/shell/studio/cloud.d.ts +6 -1
- package/dist/types/video/preview/shell/studio/compare.d.ts +16 -0
- package/dist/types/video/preview/shell/studio/copy.d.ts +24 -3
- package/dist/types/video/preview/shell/studio/paid.d.ts +23 -0
- package/dist/types/video/preview/shell/studio/style.d.ts +2 -2
- package/dist/types/video/preview/shell/studio/workspace.d.ts +2 -0
- package/dist/types/video/preview/shell-bundle.d.ts +1 -1
- package/dist/types/video/product/requests.d.ts +74 -0
- package/dist/types/video/product/review.d.ts +74 -0
- package/dist/types/video/product/sheet.d.ts +122 -0
- package/dist/types/video/project/schema.d.ts +21 -21
- package/dist/types/video/prompt-lang.d.ts +16 -0
- package/dist/types/video/render/index.d.ts +2 -0
- package/dist/types/video/render/session.d.ts +4 -0
- package/dist/types/video/replication/contract.d.ts +29 -29
- package/dist/types/video/replication/production.d.ts +5 -5
- package/dist/types/video/replication/schema.d.ts +2 -2
- package/dist/types/video/replication/speech-observed.d.ts +6 -6
- package/dist/types/video/sound/modes.d.ts +0 -8
- package/package.json +1 -1
- package/references/host-editor.md +21 -6
- package/references/image-workflow.md +5 -5
- package/references/onboarding.md +22 -1
- package/references/post-bundle.md +10 -8
- package/references/video-editing.md +19 -7
- package/references/video-performers.md +4 -2
- package/references/video-product.md +196 -0
- package/references/video-replication.md +1 -1
- package/references/video-step-1-read.md +16 -6
- package/references/video-step-3-content.md +15 -7
- package/references/video-step-6-voice.md +10 -0
- package/references/video-step-7-deliver.md +36 -1
- package/references/video-tools.md +61 -7
- package/references/video.md +26 -0
- package/assets/canvas/assets/index-C5rz5H21.css +0 -1
- package/dist/types/cloud/auth-flow.d.ts +0 -30
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
* writes a file. Results are cached until the watcher reports a change (bump).
|
|
5
5
|
*/
|
|
6
6
|
import type { Runtime } from '../../runtime';
|
|
7
|
+
import type { FootageHold } from '../cache/holds';
|
|
7
8
|
import type { Resolved } from '../types';
|
|
8
9
|
import type { PreviewState } from './protocol';
|
|
9
10
|
export interface SourceOptions {
|
|
@@ -15,6 +16,8 @@ export interface SourceOptions {
|
|
|
15
16
|
referenceMeasure?: string;
|
|
16
17
|
/** Edit mode: the state carries video.json as written ("source"), which the page's form edits. */
|
|
17
18
|
edit?: boolean;
|
|
19
|
+
/** The server's hold on the frame directories its page shows (cache/holds.ts), kept current by every load. */
|
|
20
|
+
hold?: FootageHold;
|
|
18
21
|
}
|
|
19
22
|
/** File names looked up in the project directory, in this order. The round trip writes measure.json and truth.json. */
|
|
20
23
|
export declare const RENDER_MEASURE_NAMES: readonly ["measure.json", "render.measure.json", "replica.measure.json"];
|
|
@@ -37,6 +37,8 @@ declare const ICONS: {
|
|
|
37
37
|
readonly external: "M9 2h5v5M14 2 7 9M6 2H2v12h12v-4";
|
|
38
38
|
readonly cloud: "M4 12a3 3 0 0 1-1-5.8A5 5 0 0 1 12 5a3.5 3.5 0 0 1 0 7M8 14V7M5.5 9.5 8 7l2.5 2.5";
|
|
39
39
|
readonly refresh: "M13 2v4H9M13 6a5.5 5.5 0 1 0 .2 5";
|
|
40
|
+
readonly close: "M3.5 3.5l9 9M12.5 3.5l-9 9";
|
|
41
|
+
readonly lock: "M4 7.5h8v6H4zM5.8 7.5V5.4a2.2 2.2 0 0 1 4.4 0v2.1";
|
|
40
42
|
};
|
|
41
43
|
export type IconName = keyof typeof ICONS;
|
|
42
44
|
export declare const icon: (name: IconName) => SVGSVGElement;
|
|
@@ -1,3 +1,8 @@
|
|
|
1
1
|
import type { Store } from '../app';
|
|
2
|
-
/**
|
|
2
|
+
/**
|
|
3
|
+
* The Studio's cloud control, with the image editor's CloudButton lifecycle: "Save to Cloud" connects the user's popost.ai
|
|
4
|
+
* account (the device code and a copyable link while it waits), "Cloud sync is on" once it is connected and synced, and
|
|
5
|
+
* "Cloud sync is off", a link to the page with the switch, when the account has it off. The mode shown is the service's
|
|
6
|
+
* current one: it changes while the page is open.
|
|
7
|
+
*/
|
|
3
8
|
export declare const mountCloud: (root: HTMLElement, store: Store, saveLocal: () => Promise<boolean>) => void;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Whether the Studio opens with the reference beside the video. A project that has a reference is a replication of
|
|
3
|
+
* it, and opens with the comparison on (reference left, video right); one without opens with it off. Once the user
|
|
4
|
+
* switches it by hand, that choice is kept for the project and wins the next time it is opened.
|
|
5
|
+
*
|
|
6
|
+
* The choices are one small map in localStorage (the 50 projects switched last). A project is known by its directory;
|
|
7
|
+
* a host that serves many projects from changing directories names it instead: it puts a stable id of the project in
|
|
8
|
+
* sessionStorage under PROJECT_KEY before the shell starts.
|
|
9
|
+
*/
|
|
10
|
+
import type { PreviewState } from '../../protocol';
|
|
11
|
+
export declare const COMPARE_KEY = "popost-studio-compare";
|
|
12
|
+
export declare const PROJECT_KEY = "popost-studio-project";
|
|
13
|
+
/** The comparison as the Studio opens: the user's own choice for this project, else on exactly when it has a reference. */
|
|
14
|
+
export declare const initialCompare: (s: PreviewState) => boolean;
|
|
15
|
+
/** Keeps the user's switch for this project, moved to the end of the map so that the oldest choices go first. */
|
|
16
|
+
export declare const rememberCompare: (s: PreviewState, on: boolean) => void;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { Store } from '../app';
|
|
2
2
|
declare const en: {
|
|
3
|
+
readonly closePanel: "Close panel";
|
|
3
4
|
readonly noReference: "No reference video is available for this project.";
|
|
4
5
|
readonly shots: "Shots";
|
|
5
6
|
readonly media: "Media";
|
|
@@ -70,9 +71,6 @@ declare const en: {
|
|
|
70
71
|
readonly start: "Start frame";
|
|
71
72
|
readonly end: "End frame (exclusive)";
|
|
72
73
|
readonly paid: "Paid benefit";
|
|
73
|
-
readonly paidInfo: "This feature is available with a paid plan.";
|
|
74
|
-
readonly unlock: "Unlock";
|
|
75
|
-
readonly refreshPlan: "Refresh plan";
|
|
76
74
|
readonly preparing: "Preparing";
|
|
77
75
|
readonly rendering: "Rendering";
|
|
78
76
|
readonly renderDone: "Export ready";
|
|
@@ -154,6 +152,29 @@ declare const en: {
|
|
|
154
152
|
readonly versionSnapshot: "Saved versions preserve the draft JSON; assets are reused.";
|
|
155
153
|
readonly bitrateUnit: "Mbps";
|
|
156
154
|
readonly reviewOnly: "Review notes are local; sending to an Agent requires copying the request.";
|
|
155
|
+
readonly paidChecking: "Checking your plan…";
|
|
156
|
+
readonly paidUnknown: "Could not check your plan.";
|
|
157
|
+
readonly paidRetry: "Try again";
|
|
158
|
+
readonly paidConnect: "Connect your popost.ai account to use paid options.";
|
|
159
|
+
readonly paidNoConnect: "An account cannot be connected from here. Use popost auth login or the key settings of your host.";
|
|
160
|
+
readonly paidConnectAction: "Connect account";
|
|
161
|
+
readonly paidConnectFailed: "Could not connect the account. Try again.";
|
|
162
|
+
readonly paidDenied: "The connection was declined.";
|
|
163
|
+
readonly paidExpired: "The code expired before it was approved. Try again.";
|
|
164
|
+
readonly paidApprove: "Approve the connection in your browser.";
|
|
165
|
+
readonly paidApproveLink: "Open this link in your browser and approve.";
|
|
166
|
+
readonly paidCode: "Code";
|
|
167
|
+
readonly paidApprovalLink: "Approval link";
|
|
168
|
+
readonly paidUpgrade: "4K is a paid feature. 1080p and below stay free.";
|
|
169
|
+
readonly paidPlans: "See plans";
|
|
170
|
+
readonly paidPlansAgain: "Open again";
|
|
171
|
+
readonly paidOpened: "Plans opened in your browser. This unlocks by itself after you upgrade.";
|
|
172
|
+
readonly paidOpenLink: "4K is a paid feature. Open the plans in your browser:";
|
|
173
|
+
readonly paidPricingLink: "Plans link";
|
|
174
|
+
readonly paidUnlocked: "Paid options unlocked";
|
|
175
|
+
readonly copyLink: "Copy link";
|
|
176
|
+
readonly linkCopied: "Link copied";
|
|
177
|
+
readonly openLink: "Open";
|
|
157
178
|
};
|
|
158
179
|
export type CopyKey = keyof typeof en;
|
|
159
180
|
export declare const copy: (store: Store, key: CopyKey) => string;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import type { Store } from '../app';
|
|
2
|
+
/**
|
|
3
|
+
* The paid export options of the Studio (the resolutions above 1080p), with the image editor's flow: the same state
|
|
4
|
+
* machine (`cloud/paid-gate.ts`), drawn here without a framework. A paid option that is clicked
|
|
5
|
+
* while it is locked is remembered and a prompt appears in place: connect the account (no account yet), or see the plans
|
|
6
|
+
* (free plan). The local Studio asks its own service to open those pages in the system browser, since it may be shown in
|
|
7
|
+
* an agent's side panel; the hosted Studio, where the user is signed in, links to the plans in a new tab. Once the account
|
|
8
|
+
* is paid the remembered option is applied by itself, without a reload.
|
|
9
|
+
*/
|
|
10
|
+
export interface StudioPaid {
|
|
11
|
+
/** Paid options are locked for now. */
|
|
12
|
+
locked(): boolean;
|
|
13
|
+
/** A paid option was clicked: `apply` runs now when the account is paid, otherwise once it is. */
|
|
14
|
+
request(id: string, apply: () => void): boolean;
|
|
15
|
+
/** Another option was chosen: nothing is remembered. */
|
|
16
|
+
dismiss(): void;
|
|
17
|
+
/** The prompt, to be placed right under the paid options; empty (and not shown) while there is nothing to say. */
|
|
18
|
+
readonly element: HTMLElement;
|
|
19
|
+
dispose(): void;
|
|
20
|
+
}
|
|
21
|
+
/** The mark of a paid option while it is locked. */
|
|
22
|
+
export declare const paidMark: (store: Store) => HTMLElement;
|
|
23
|
+
export declare const mountPaid: (store: Store, changed: (unlocked?: string) => void) => StudioPaid;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const STUDIO_CSS = "\n:root{--pc-bg:#f4f4f2;--pc-surface:#fff;--pc-surface-2:#f8f8f7;--pc-border:#dededb;--pc-text:#252525;--pc-muted:#85847d;--pc-hover:#ebebe8;--pc-accent:#ff7a1a;--pc-accent-soft:#fff1e5;--pc-stage:#e9e9e6;--timeline-height:240px;--left-width:264px;--right-width:300px}\nhtml.dark{color-scheme:dark;--pc-bg:#111;--pc-surface:#1a1a1a;--pc-surface-2:#141414;--pc-border:#363632;--pc-text:#f2f2f0;--pc-muted:#a5a59a;--pc-hover:#2a2a2a;--pc-accent-soft:#3e2b1b;--pc-stage:#0b0b0b}\nbody.studio{font:13px/1.45 'Helvetica Neue','PingFang SC',system-ui,sans-serif;background:var(--pc-bg);color:var(--pc-text);--bg:var(--pc-bg);--surface:var(--pc-surface);--fg:var(--pc-text);--muted:var(--pc-muted);--line:var(--pc-border);--accent:var(--pc-accent);--on-accent:#fff;--seg:#e7eef3;--item:#eee7f7;--audio:#e6f1e8;--stage:var(--pc-stage);--stage-fg:var(--pc-muted);--head:#292929}\n.studio [hidden]{display:none!important}.studio button,.studio input,.studio textarea,.studio select{font:inherit;color:inherit}.studio button:focus-visible,.studio a:focus-visible,.studio textarea:focus-visible,.studio input:focus-visible{outline:2px solid var(--pc-accent);outline-offset:2px}.studio button:disabled{opacity:.45;cursor:default}\n.studio #app{grid-template-rows:48px minmax(240px,1fr) var(--timeline-height) 24px;height:100dvh}.studio .main{display:grid;grid-template-rows:minmax(0,1fr);grid-template-columns:64px var(--left-width) minmax(0,1fr) var(--right-width);min-height:0;position:relative}.studio .left{overflow:hidden;min-height:0;min-width:0;display:flex;flex-direction:column}.studio .panel{width:auto;min-width:0;overflow:auto;background:var(--pc-surface);border-left:1px solid var(--pc-border);padding:12px 16px}.studio .panel>#problems,.studio .panel>#score,.studio .panel>#measures,.studio .panel>#notes{display:none}.studio .panel h2{font-size:12px;color:var(--pc-muted)}.studio .sel-title{font-size:13px;padding-bottom:10px;border-bottom:1px solid var(--pc-border);color:var(--pc-text);overflow-wrap:anywhere}.studio .status-line{font-size:11px;max-height:80px;overflow:auto}.studio #render-status{display:none}\n.studio-topbar{display:flex;align-items:center;gap:12px;padding:0 16px;background:var(--pc-surface-2);border-bottom:1px solid var(--pc-border);min-width:0;white-space:nowrap}.studio-brand{font-size:23px;font-weight:800;letter-spacing:-1.3px;margin-right:8px}.studio-brand:after{content:'\u2022';color:var(--pc-accent);font-size:15px;vertical-align:top;letter-spacing:0}.studio-project{min-width:80px;max-width:30%;overflow:hidden;text-overflow:ellipsis;flex:1}.studio-save{font-size:11px;color:var(--pc-muted)}.studio-save:before{content:'\u25CF';font-size:9px;color:#2e9e6b;margin-right:7px}.studio-actions{display:flex;align-items:center;gap:6px;flex-wrap:wrap}.studio-btn{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:32px;padding:5px 10px;border:1px solid var(--pc-border);border-radius:8px;background:var(--pc-surface);text-decoration:none;font-size:12px;cursor:pointer}.studio-btn:hover{background:var(--pc-hover)}.studio-btn.primary{background:#292929;color:#fff;border-color:#292929}.dark .studio-btn.primary{background:#f2f2f0;color:#222}.studio-btn.selected{background:var(--pc-accent-soft);border-color:#ffb47c;color:#c76520}.studio-btn.ghost{border-color:transparent;background:transparent}.studio .tbtn{height:30px;min-width:30px;border:0;background:transparent;border-radius:7px}.studio .tbtn:hover{background:var(--pc-hover)}.studio #edit-render{display:none}.studio .edit-tools{gap:6px}.studio .tool-group{gap:2px}\n.studio-rail{min-height:0;overflow-y:auto;display:flex;flex-direction:column;gap:5px;padding:12px 5px;background:var(--pc-surface-2);border-right:1px solid var(--pc-border)}.studio-rail button{height:57px;flex:none;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:4px;background:transparent;border:0;border-radius:8px;color:var(--pc-muted);font-size:11px;cursor:pointer}.studio-rail button.active{background:var(--pc-accent-soft);color:#e8711c}.studio-rail svg{width:19px;height:19px}.studio-content{min-height:0;overflow:auto;background:var(--pc-surface);border-right:1px solid var(--pc-border)}.studio-side-body{padding:14px 14px 20px;display:flex;flex-direction:column;gap:12px}.studio-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:24px}.studio-heading h2{margin:0;font-size:14px;font-weight:600;color:var(--pc-text)}.studio-heading small{font-size:10px;color:var(--pc-muted)}.studio-note{font-size:11px;line-height:1.7;color:var(--pc-muted);margin:0;overflow-wrap:anywhere}.studio-note.notice{padding:10px;border:1px solid #f0d5b9;border-radius:8px;background:var(--pc-accent-soft);color:#9a5c2d}.studio-note.bad{color:var(--err)}.studio-input{border:1px solid var(--pc-border);border-radius:7px;background:var(--pc-surface-2);width:100%;min-height:34px;padding:7px 9px;resize:vertical;min-width:0}.studio-field{display:flex;flex-direction:column;gap:6px;font-size:11px;color:var(--pc-muted)}.studio-field .studio-input{font-size:12px;color:var(--pc-text)}.studio-field-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}\n.studio-shot-list{display:flex;flex-direction:column;gap:7px}.studio-shot{width:100%;min-height:70px;justify-content:flex-start;text-align:left;padding:7px;gap:10px}.studio-thumb{display:block;width:74px;height:55px;object-fit:cover;border-radius:5px;background:var(--pc-stage);flex:none}.studio-shot-copy{display:flex;flex-direction:column;min-width:0;gap:7px}.studio-shot-copy strong{font-size:12px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:145px}.studio-shot-copy small{font-size:10px;color:var(--pc-muted)}.studio-media-list{display:grid;gap:12px}.studio-media-card,.studio-review-card,.studio-sentence{border:1px solid var(--pc-border);border-radius:8px;padding:10px;display:flex;flex-direction:column;gap:9px}.studio-media-card>img,.studio-media-card>video{width:100%;max-height:150px;object-fit:contain;background:var(--pc-stage);border-radius:5px}.studio-media-card>audio{width:100%;height:30px}.studio-media-card>strong{font-size:11px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.studio-media-card .studio-btn{font-size:10px;padding:4px 6px}.studio-script-list{display:flex;flex-direction:column;gap:8px}.studio-sentence>button{align-self:flex-start;font-size:10px;min-height:24px}.studio-sentence textarea{font-size:12px}.studio-item{justify-content:flex-start;overflow-wrap:anywhere;text-align:left}.studio-slot-image{max-width:100%;max-height:150px;object-fit:contain}.studio-stage-heading{display:flex;align-items:center;justify-content:space-between;height:40px;flex:none;padding:0 18px;background:var(--pc-surface-2);border-bottom:1px solid var(--pc-border);font-size:12px}.studio-stage-heading small{font-size:10px;color:var(--pc-muted)}.studio .stage-area{min-height:0!important;padding:14px 18px;gap:14px;background:var(--pc-stage);min-height:160px}.studio .stage-area.comparing{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:center;gap:16px}.studio .stage-area.comparing .viewer{width:100%;min-height:0;align-self:stretch;justify-content:center;padding:8px;border:1px solid var(--pc-border);border-radius:10px;background:var(--pc-surface-2)}.studio .stage-area.comparing .caption{width:100%;font-weight:600;color:var(--pc-text);padding:0 4px 5px}.studio .stage-area.comparing .note{width:100%;padding-inline:4px}.studio .frame-box{box-shadow:0 2px 7px #0002,0 12px 30px #0001}.studio .caption{font-size:11px}.studio .note{font-size:10px;max-width:350px}.studio .transport{height:76px;min-height:76px;flex-wrap:wrap;align-content:center;background:var(--pc-surface-2);padding:4px 12px;gap:7px}.studio .transport .readout{font-size:11px;gap:8px;order:2;flex:1 0 calc(100% - 100px)}.studio .transport #jump{order:3;width:80px;font-size:10px}.studio .transport .speed{order:1;font-size:10px}.studio .transport .tbtn{min-width:24px;padding:0 4px}.studio .transport #back10,.studio .transport #fwd10{display:none}.studio .transport .slider-wrap{min-width:50px}\n.studio-timeline-wrap{position:relative;display:flex;flex-direction:column;min-height:0;border-top:1px solid var(--pc-border);background:var(--pc-surface)}.studio-timeline-toolbar{height:39px;flex:none;display:flex;align-items:center;gap:8px;padding:0 14px;border-bottom:1px solid var(--pc-border);background:var(--pc-surface-2)}.studio-timeline-toolbar .spacer{flex:1}.studio-timeline-toolbar input[type=range]{width:105px;accent-color:var(--pc-accent)}.studio .timeline{min-height:0;flex:1;max-height:none;overflow:auto}.studio .lanes{--label:160px;width:calc(100% * var(--timeline-zoom,1));min-width:100%;padding-bottom:9px}.studio .lane{height:34px;border-color:var(--pc-border)}.studio .lane-label{position:sticky;left:0;z-index:9;background:var(--pc-surface);line-height:33px;font-size:11px;padding-left:15px}.studio .ruler{height:28px;background:var(--pc-surface-2);position:sticky;top:0;z-index:10}.studio .ruler .lane-label{background:var(--pc-surface-2);line-height:27px}.studio .rtick{font-size:10px;color:var(--pc-muted)}.studio .lane.segments{height:70px}.studio .blk.seg{height:58px;top:5px;bottom:auto;line-height:13px;padding:0 4px;border:1px solid #aebfcb;background:#e8eef3;color:#4c6474}.studio .blk.seg img{display:block;position:absolute;left:0;top:0;width:100%;height:39px;object-fit:cover;pointer-events:none}.studio .blk.seg .segment-name{position:absolute;bottom:1px;left:4px;right:2px;font-size:9px;overflow:hidden;text-overflow:ellipsis}.studio .blk.seg.selected{border:2px solid var(--pc-accent);background:#fff0e2}.studio .blk.item{background:#eee8fa;color:#8c70a9;border:1px solid #d8c9ef;font-size:10px;top:5px;bottom:5px}.studio .lane.caption-lane .blk.item{background:#f5efdf;color:#8e7950;border-color:#e6dcc1}.studio .lane.caption-lane .blk.selected{border-color:var(--pc-accent)}.studio .blk.audio{background:#e7f2e9;color:#537b60;border:1px solid #b3d1bd;top:5px;bottom:5px;font-size:10px}.studio .blk.audio.wave-ready{color:transparent}.studio .blk.audio svg{width:100%;height:100%;position:absolute;inset:0;pointer-events:none}.studio .measure,.studio .lane.words-lane{display:none}.studio.show-analysis .measure,.studio.show-analysis .lane.words-lane{display:grid}.studio .band{z-index:2;opacity:.7}.studio .seg-grip{height:66px;top:2px}.studio .playhead{background:#292929;min-width:1px}.studio .selected{outline-color:var(--pc-accent)}\n.studio-footer{height:24px;background:var(--pc-surface-2);border-top:1px solid var(--pc-border);display:flex;align-items:center;justify-content:space-between;padding:0 14px;font-size:10px;color:var(--pc-muted)}.studio-handle{position:absolute;z-index:15;touch-action:none}.studio-handle.vertical{width:5px;top:0;bottom:0;cursor:col-resize}.studio-handle.horizontal{height:5px;left:0;right:0;top:-3px;cursor:row-resize}.studio-handle:hover{background:var(--pc-accent);opacity:.35}.studio.focus-preview .main{grid-template-columns:64px 0 minmax(0,1fr) 0}.studio.focus-preview .studio-content,.studio.focus-preview .panel{visibility:hidden;padding:0;overflow:hidden}.studio.panel-code{--left-width:min(480px,35vw)}\n.studio-code-wrap{display:flex;flex-direction:column;gap:10px;height:100%;padding:14px}.studio-json{flex:1;min-height:240px;white-space:pre;overflow:auto;resize:none;width:100%;font:12px/1.65 ui-monospace,SFMono-Regular,Menlo,monospace!important;border:1px solid var(--pc-border);border-radius:8px;background:var(--pc-surface-2);padding:12px;tab-size:2}.studio-code-status{font-size:11px;color:var(--pc-muted);overflow-wrap:anywhere}.studio-scrim{position:fixed;inset:0;background:#0003;z-index:80}.studio-export{position:fixed;right:0;top:0;bottom:0;width:440px;max-width:100vw;overflow:auto;padding:18px 22px;background:var(--pc-surface);z-index:81;box-shadow:-12px 0 40px #0002;display:flex;flex-direction:column;gap:18px}.studio-export-header{display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--pc-border);padding-bottom:14px}.studio-export-fields{border:0;margin:0;padding:0;display:flex;flex-direction:column;gap:16px;min-width:0}.studio-export-fields>.studio-field{display:grid;grid-template-columns:95px 1fr;align-items:center;gap:12px;font-size:13px}.studio-segments{display:flex;padding:3px;background:var(--pc-bg);border-radius:8px;gap:3px}.studio-segments button{flex:1;border:0;background:transparent;border-radius:6px;padding:7px}.studio-segments button.selected{background:var(--pc-surface);color:var(--pc-text)}.studio-resolutions{display:grid;grid-template-columns:repeat(3,1fr);gap:5px}.studio-resolutions button{position:relative;padding:5px;min-width:0}.export-gem{color:var(--pc-accent);display:inline-flex;align-items:center;justify-content:center;font-size:20px;line-height:15px;margin-left:3px}.studio-paid-info:empty{display:none}.studio-paid-info{border:1px solid #e9cfb8;background:var(--pc-accent-soft);border-radius:8px;padding:10px;font-size:11px}.studio-paid-info a{color:#df711e;margin-right:12px}.studio-paid-info p{color:var(--pc-text);margin-bottom:6px}.studio-check{display:flex;align-items:center;gap:8px;font-size:12px}.studio-check input{accent-color:var(--pc-accent)}.studio-export>progress{width:100%;accent-color:var(--pc-accent)}.studio-export-result{display:flex;gap:10px;flex-direction:column}.studio-export-result:empty{display:none}#studio-message{position:fixed;left:50%;bottom:35px;transform:translateX(-50%);max-width:min(650px,85vw);padding:11px 16px;background:#292929;color:white;box-shadow:0 5px 20px #0003;border-radius:8px;z-index:100;opacity:0;pointer-events:none;font-size:12px}#studio-message.visible{opacity:1}\n.studio .sel-box.thin .h-n{top:-9px}.studio .sel-box.thin .h-s{top:calc(100% + 9px)}\n@media(max-width:1300px){:root{--left-width:238px;--right-width:272px}.studio-save{display:none}.studio-topbar{gap:6px}.studio-project{max-width:25%}.studio .transport .readout{font-size:10px}.studio .lanes{--label:140px}}\n@media(max-width:1000px){.studio .main{grid-template-columns:55px 225px minmax(150px,1fr)}.studio .main{grid-template-columns:52px 190px minmax(0,1fr) 240px}.studio .panel{position:static;width:auto;display:block}.studio-topbar .studio-btn:not(.primary){padding:4px}.studio-topbar .studio-project{max-width:18%}.studio .readout>span:first-child{display:none}}\n\n.studio-export{left:50%;right:auto;top:50%;bottom:auto;transform:translate(-50%,-50%);width:min(740px,calc(100vw - 32px));max-height:calc(100dvh - 40px);padding:26px 30px;border-radius:16px;box-shadow:0 20px 70px #0003;gap:24px}.studio-export-header{border:0;padding:0}.studio-export-header h2{font-size:24px}.studio-export-header button{border:0;font-size:24px;background:transparent}.export-tabs{padding:4px}.export-tabs button{font-size:17px;font-weight:600}.studio-export-fields{gap:18px}.studio-export-fields>.studio-field{grid-template-columns:135px 1fr;font-size:15px}.studio-export .studio-segments button{position:relative;min-height:36px;font-size:15px}.studio-export>.primary{width:100%;min-height:46px;background:#df7634;border-color:#d66b29;font-size:17px}.studio-export .studio-note{font-size:13px}.export-pro{position:absolute;right:-8px;top:-10px;font-size:10px;border-radius:4px;padding:2px 5px;background:#df7634;color:#fff}.studio-export details{font-size:13px;color:var(--pc-muted)}.studio-export details summary{cursor:pointer}.studio-export details p{margin-top:12px}.studio-export .studio-input{border:0;background:var(--pc-bg);min-height:40px;font-size:15px}@media(max-width:600px){.studio-export{padding:20px}.studio-export-fields>.studio-field{grid-template-columns:90px 1fr}}\n.studio-draft-success{width:min(560px,calc(100vw - 32px));gap:18px;padding:30px}.studio-draft-success .studio-export-header h2{font-size:22px}.studio-draft-success>.studio-note{font-size:15px;line-height:1.7;margin:0}.studio-draft-actions{display:flex;justify-content:flex-end;gap:10px}.studio-draft-actions .studio-btn{padding:11px 18px;border:0;background:var(--pc-bg);font-size:14px}.studio-draft-actions .primary{background:#df7634;color:white}.studio-draft-success [role=status]:empty{display:none}\n";
|
|
2
|
-
export declare const STUDIO_REFINEMENTS = "\n.studio .timeline-divider{height:20px;border-left:1px solid var(--pc-border);margin:0 5px}.studio .timeline-selection{max-width:220px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:11px;color:var(--pc-muted)}.studio .grip{z-index:8;opacity:0;width:9px}.studio .lane:has(.blk:hover) .grip,.studio .grip.selected{opacity:1;background:var(--pc-accent-soft);border:1px solid var(--pc-accent)}.studio .seg-grip{z-index:9;background:var(--pc-border);width:7px;margin-left:-7px}.studio .seg-grip:hover{background:var(--pc-accent)}.studio .blk.seg{display:flex;align-items:center;gap:6px;padding:4px 8px}.studio .blk.seg img{width:60px;height:38px;object-fit:cover;flex:none}.studio .segment-name{font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.studio .scene-field{font-style:italic}.studio .stage-text-editor{position:absolute;z-index:30;min-height:50px;box-sizing:border-box;resize:vertical;border:2px solid var(--pc-accent);border-radius:3px;padding:4px;background:var(--pc-surface);color:var(--pc-text);font-weight:600;line-height:1.2;box-shadow:0 4px 18px #0002}.studio .panel .colour input[type=text]{min-width:86px}.studio .panel .fld.area textarea{height:64px}.studio .timeline .blk:focus-visible{outline:2px solid var(--pc-accent);outline-offset:2px}@media(max-width:1250px){.studio .timeline-selection{display:none}.studio-timeline-toolbar{gap:4px}.studio-timeline-toolbar .tbtn{padding:0 4px}.studio-timeline-toolbar .studio-btn{padding:4px 7px}}\n\n.studio #app{grid-template-rows:52px minmax(0,1fr) min(300px,36dvh) 24px;grid-template-rows:52px minmax(0,1fr) var(--timeline-height) 24px}\n.studio .main{overflow:hidden}.studio .panel{position:static;min-height:0;z-index:auto;scrollbar-gutter:stable}.studio .left{grid-column:3;grid-row:1}.studio .panel{grid-column:4;grid-row:1}.studio-rail{grid-column:1;grid-row:1}.studio-content{grid-column:2;grid-row:1;min-width:0;max-width:100%}\n.studio-topbar{justify-content:space-between;gap:12px}.studio-project{flex:1;max-width:none}.studio-global-actions{display:flex;gap:6px;align-items:center;margin-left:auto;flex:none}.studio-save{white-space:nowrap}.studio-topbar .primary{margin-left:8px}\n.studio-side-body,.studio-media-list,.studio-media-card,.studio-actions,.studio-shot-copy{min-width:0;max-width:100%}.studio-media-card>video,.studio-media-card>img,.studio-media-card>audio{display:block;min-width:0;max-width:100%;width:100%}.studio-media-card>video{aspect-ratio:16/10;height:132px}.studio-actions{display:grid;grid-template-columns:1fr;gap:6px}.studio-actions .studio-btn{white-space:normal;width:100%}.studio-media-card>strong{display:block;max-width:100%}.studio-resource-tabs{display:flex;gap:6px;padding:12px 14px 0}.studio-resource-tabs button{flex:1;font-size:12px}.studio-resource-tabs .selected{border-color:var(--pc-accent);background:var(--pc-accent-soft)}\n.studio .stage-area{min-width:0;overflow:hidden}.studio .viewer{flex:none}.studio .panel>h2,.studio .panel #selection>h2{display:none}.studio .panel .follow{display:none}.studio .panel .fs{border:0;border-top:1px solid var(--pc-border);padding:14px 0;margin:0 0 6px;min-width:0}.studio .panel .fs legend{font-size:12px;font-weight:600;padding:0 6px 0 0;color:var(--pc-text)}.studio .panel .row{gap:8px;margin:0 0 10px;flex-wrap:wrap}.studio .panel .fld{min-width:68px;flex:1}.studio .panel .fld.wide{flex-basis:100%}.studio .panel .fld input,.studio .panel .fld textarea,.studio .panel .fld select{min-width:0;width:100%;border-radius:7px;background:var(--pc-surface-2);border:1px solid var(--pc-border);padding:7px 8px;height:34px}.studio .panel .fld textarea{height:86px;line-height:1.7;resize:vertical}.studio .panel .fl{font-size:11px;margin-bottom:6px;color:var(--pc-muted)}.studio .panel .rv,.studio .panel .hint{display:none}.studio .panel details{padding:12px 0;border-top:1px solid var(--pc-border)}.studio .panel summary{cursor:pointer;color:var(--pc-muted);font-size:12px;margin-bottom:12px}.studio .sel-title{font-size:14px;font-weight:600;margin-bottom:14px}.studio .edit-status:has(#edit-status:empty){display:none}.studio .status-line:not(.bad){display:none}.studio .panel .chips{display:flex;flex-direction:column;gap:8px}.studio .panel .chip{padding:9px;text-align:left;border-radius:7px}\n.studio .timeline{overflow:scroll;overscroll-behavior:contain;scrollbar-gutter:stable;scrollbar-width:auto}.studio .timeline::-webkit-scrollbar{width:11px;height:12px}.studio .timeline::-webkit-scrollbar-track{background:var(--pc-surface-2)}.studio .timeline::-webkit-scrollbar-thumb{background:#aaa9a1;border:3px solid var(--pc-surface-2);border-radius:8px}.studio .lanes{--label:112px;width:calc(100% * var(--timeline-zoom,1));min-width:100%;padding-bottom:20px}.studio .lane{grid-template-columns:var(--label) minmax(0,1fr)}.studio .lane-track{overflow:visible;min-width:0}.studio .lane-label{z-index:11;font-size:12px}.studio .lane.media-lane{height:44px}.studio .lane.caption-lane{height:38px}.studio .blk.item{padding:5px 6px;line-height:20px;cursor:pointer;z-index:3;min-width:3px}.studio .blk.audio{cursor:pointer;z-index:3}.studio .lane.caption-lane .blk.item{font-size:11px;line-height:18px;padding:3px 5px}.studio .blk.selected{outline:none;border:2px solid var(--pc-accent);box-shadow:0 0 0 1px var(--pc-surface);z-index:5}.studio .lane .shade{pointer-events:none;display:none}.studio .playhead-layer{pointer-events:none}.studio .ruler{z-index:15}.studio .lane.segments{height:62px;position:sticky;top:28px;z-index:12;background:var(--pc-surface)}.studio .playhead-layer{z-index:14}.studio .blk.seg{height:50px;cursor:pointer}.studio .blk.seg img{height:30px}.studio .seg-grip{height:58px}.studio-timeline-toolbar{height:42px;min-width:0}.studio-timeline-toolbar .edit-tools{border-right:1px solid var(--pc-border);padding-right:8px}.studio-timeline-toolbar #edit-split{min-height:28px}.studio-timeline-toolbar .tbtn{width:auto;display:inline-flex;align-items:center;justify-content:center;gap:5px;padding:0 7px}.studio-timeline-toolbar .studio-btn{font-size:11px}.studio .edit-tools .tool-group:last-child{display:none}\n.studio-export{width:min(520px,calc(100vw - 32px));max-height:calc(100dvh - 40px);padding:22px 24px;gap:18px}.studio-export-header h2{font-size:19px}.studio-export .studio-segments button{font-size:13px;min-height:32px}.studio-export .export-tabs button{font-size:14px}.studio-export-fields{gap:15px}.studio-export-fields>.studio-field{grid-template-columns:80px minmax(0,1fr);font-size:12px}.studio-export .studio-input{min-height:34px;font-size:13px}.studio-export>.primary{min-height:38px;font-size:14px}.studio-export .studio-note{font-size:12px}.studio-paid-info{line-height:1.7}.studio-paid-info p{margin:0 0 7px}.studio-paid-info .studio-btn{font-size:12px}.studio-export-result{font-size:12px}.studio-export-result a{color:var(--pc-accent)}.studio-slot-outline{position:absolute;border:2px solid var(--pc-accent);pointer-events:none;z-index:4}.studio-slot-name{position:absolute;left:-2px;bottom:100%;padding:3px 7px;max-width:220px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;background:var(--pc-accent);color:white;font-size:11px}.studio-slot-preview{max-width:100%;max-height:160px;object-fit:contain;border-radius:8px}.studio-cloud{max-width:180px;font-size:12px}.studio-element-label{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;display:block}\n@media(max-width:1100px){.studio .main{grid-template-columns:52px 208px minmax(0,1fr) 246px}.studio .panel{display:block;position:static;width:auto}.studio-global-actions{gap:3px}.studio-topbar .studio-btn{padding:5px 7px}.studio-project{max-width:140px}.studio .main>.studio-handle.vertical{display:none}}\n@media(max-width:820px){.studio .main{grid-template-columns:48px 0 minmax(0,1fr) 220px}.studio-content{visibility:hidden}.studio-topbar{gap:6px;padding:0 10px}.studio-brand{font-size:20px}.studio-project{display:none}.studio .lanes{--label:88px}.studio-timeline-toolbar{gap:5px;padding:0 8px}.studio-timeline-toolbar input[type=range]{width:70px}}\n\n.studio:not(.inspecting) .main{grid-template-columns:64px var(--left-width) minmax(0,1fr) 0}.studio:not(.inspecting) .panel,.studio:not(.inspecting) .inspector-resize{display:none}.studio-sentence.selected{border-color:var(--pc-accent);background:var(--pc-accent-soft)}.studio-item.selected{border-color:var(--pc-accent);background:var(--pc-accent-soft)}\n@media(max-width:1100px){.studio:not(.inspecting) .main{grid-template-columns:52px 208px minmax(0,1fr) 0}}@media(max-width:820px){.studio:not(.inspecting) .main{grid-template-columns:48px 0 minmax(0,1fr) 0}}\n\n.studio-cloud{position:relative;display:flex;align-items:center;gap:7px;max-width:310px;min-width:0}.studio-cloud-state{font-size:12px;max-width:185px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.studio-cloud-state.bad{color:var(--err)}.studio-cloud-link{position:absolute;right:0;top:calc(100% + 10px);z-index:90;width:min(420px,calc(100vw - 32px));border:1px solid var(--pc-border);border-radius:8px;padding:12px;background:var(--pc-surface);color:var(--pc-text);box-shadow:0 6px 25px #0002;font-size:12px}.studio-cloud[hidden]{display:none}\n.studio.focus-preview:not(.inspecting) .main{grid-template-columns:64px 0 minmax(0,1fr) 0}\n.studio-topbar .studio-icon-btn{width:34px;height:34px;min-width:34px;padding:0;border:0;background:transparent;color:var(--pc-text);border-radius:6px;flex:none}.studio-topbar .studio-icon-btn svg{width:18px;height:18px}.studio-topbar .studio-icon-btn:hover{background:var(--pc-hover)}.studio-topbar .studio-icon-btn.selected,.studio-topbar .studio-icon-btn[aria-pressed=true]{background:var(--pc-accent-soft);color:var(--pc-accent)}.studio-topbar .studio-icon-btn:focus-visible{outline:2px solid var(--pc-accent);outline-offset:2px}.studio-topbar .studio-icon-btn:disabled{opacity:.4;cursor:default}\n";
|
|
1
|
+
export declare const STUDIO_CSS = "\n:root{--pc-bg:#f4f4f2;--pc-surface:#fff;--pc-surface-2:#f8f8f7;--pc-border:#dededb;--pc-text:#252525;--pc-muted:#85847d;--pc-hover:#ebebe8;--pc-accent:#ff7a1a;--pc-accent-soft:#fff1e5;--pc-stage:#e9e9e6;--timeline-height:240px;--left-width:264px;--right-width:300px}\nhtml.dark{color-scheme:dark;--pc-bg:#111;--pc-surface:#1a1a1a;--pc-surface-2:#141414;--pc-border:#363632;--pc-text:#f2f2f0;--pc-muted:#a5a59a;--pc-hover:#2a2a2a;--pc-accent-soft:#3e2b1b;--pc-stage:#0b0b0b}\nbody.studio{font:13px/1.45 'Helvetica Neue','PingFang SC',system-ui,sans-serif;background:var(--pc-bg);color:var(--pc-text);--bg:var(--pc-bg);--surface:var(--pc-surface);--fg:var(--pc-text);--muted:var(--pc-muted);--line:var(--pc-border);--accent:var(--pc-accent);--on-accent:#fff;--seg:#e7eef3;--item:#eee7f7;--audio:#e6f1e8;--stage:var(--pc-stage);--stage-fg:var(--pc-muted);--head:#292929}\n.studio [hidden]{display:none!important}.studio button,.studio input,.studio textarea,.studio select{font:inherit;color:inherit}.studio button:focus-visible,.studio a:focus-visible,.studio textarea:focus-visible,.studio input:focus-visible{outline:2px solid var(--pc-accent);outline-offset:2px}.studio button:disabled{opacity:.45;cursor:default}\n.studio #app{grid-template-rows:48px minmax(240px,1fr) var(--timeline-height) 24px;height:100dvh}.studio .main{display:grid;grid-template-rows:minmax(0,1fr);grid-template-columns:64px var(--left-width) minmax(0,1fr) var(--right-width);min-height:0;position:relative}.studio .left{overflow:hidden;min-height:0;min-width:0;display:flex;flex-direction:column}.studio .panel{width:auto;min-width:0;overflow:auto;background:var(--pc-surface);border-left:1px solid var(--pc-border);padding:12px 16px}.studio .panel>#problems,.studio .panel>#score,.studio .panel>#measures,.studio .panel>#notes{display:none}.studio .panel h2{font-size:12px;color:var(--pc-muted)}.studio .sel-title{font-size:13px;padding-bottom:10px;border-bottom:1px solid var(--pc-border);color:var(--pc-text);overflow-wrap:anywhere}.studio .status-line{font-size:11px;max-height:80px;overflow:auto}.studio #render-status{display:none}\n.studio-topbar{display:flex;align-items:center;gap:12px;padding:0 16px;background:var(--pc-surface-2);border-bottom:1px solid var(--pc-border);min-width:0;white-space:nowrap}.studio-brand{font-size:23px;font-weight:800;letter-spacing:-1.3px;margin-right:8px}.studio-brand:after{content:'\u2022';color:var(--pc-accent);font-size:15px;vertical-align:top;letter-spacing:0}.studio-project{min-width:80px;max-width:30%;overflow:hidden;text-overflow:ellipsis;flex:1}.studio-save{font-size:11px;color:var(--pc-muted)}.studio-save:before{content:'\u25CF';font-size:9px;color:#2e9e6b;margin-right:7px}.studio-actions{display:flex;align-items:center;gap:6px;flex-wrap:wrap}.studio-btn{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:32px;padding:5px 10px;border:1px solid var(--pc-border);border-radius:8px;background:var(--pc-surface);text-decoration:none;font-size:12px;cursor:pointer}.studio-btn:hover{background:var(--pc-hover)}.studio-btn.primary{background:#292929;color:#fff;border-color:#292929}.dark .studio-btn.primary{background:#f2f2f0;color:#222}.studio-btn.selected{background:var(--pc-accent-soft);border-color:#ffb47c;color:#c76520}.studio-btn.ghost{border-color:transparent;background:transparent}.studio .tbtn{height:30px;min-width:30px;border:0;background:transparent;border-radius:7px}.studio .tbtn:hover{background:var(--pc-hover)}.studio #edit-render{display:none}.studio .edit-tools{gap:6px}.studio .tool-group{gap:2px}\n.studio-rail{min-height:0;overflow-y:auto;display:flex;flex-direction:column;gap:5px;padding:12px 5px;background:var(--pc-surface-2);border-right:1px solid var(--pc-border)}.studio-rail button{height:57px;flex:none;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:4px;background:transparent;border:0;border-radius:8px;color:var(--pc-muted);font-size:11px;cursor:pointer}.studio-rail button.active{background:var(--pc-accent-soft);color:#e8711c}.studio-rail svg{width:19px;height:19px}.studio-content{min-height:0;overflow:auto;background:var(--pc-surface);border-right:1px solid var(--pc-border)}.studio-side-body{padding:14px 14px 20px;display:flex;flex-direction:column;gap:12px}.studio-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:24px}.studio-heading h2{margin:0;font-size:14px;font-weight:600;color:var(--pc-text)}.studio-heading small{font-size:10px;color:var(--pc-muted)}.studio-note{font-size:11px;line-height:1.7;color:var(--pc-muted);margin:0;overflow-wrap:anywhere}.studio-note.notice{padding:10px;border:1px solid #f0d5b9;border-radius:8px;background:var(--pc-accent-soft);color:#9a5c2d}.studio-note.bad{color:var(--err)}.studio-input{border:1px solid var(--pc-border);border-radius:7px;background:var(--pc-surface-2);width:100%;min-height:34px;padding:7px 9px;resize:vertical;min-width:0}.studio-field{display:flex;flex-direction:column;gap:6px;font-size:11px;color:var(--pc-muted)}.studio-field .studio-input{font-size:12px;color:var(--pc-text)}.studio-field-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}\n.studio-shot-list{display:flex;flex-direction:column;gap:7px}.studio-shot{width:100%;min-height:70px;justify-content:flex-start;text-align:left;padding:7px;gap:10px}.studio-thumb{display:block;width:74px;height:55px;object-fit:cover;border-radius:5px;background:var(--pc-stage);flex:none}.studio-shot-copy{display:flex;flex-direction:column;min-width:0;gap:7px}.studio-shot-copy strong{font-size:12px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:145px}.studio-shot-copy small{font-size:10px;color:var(--pc-muted)}.studio-media-list{display:grid;gap:12px}.studio-media-card,.studio-review-card,.studio-sentence{border:1px solid var(--pc-border);border-radius:8px;padding:10px;display:flex;flex-direction:column;gap:9px}.studio-media-card>img,.studio-media-card>video{width:100%;max-height:150px;object-fit:contain;background:var(--pc-stage);border-radius:5px}.studio-media-card>audio{width:100%;height:30px}.studio-media-card>strong{font-size:11px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.studio-media-card .studio-btn{font-size:10px;padding:4px 6px}.studio-script-list{display:flex;flex-direction:column;gap:8px}.studio-sentence>button{align-self:flex-start;font-size:10px;min-height:24px}.studio-sentence textarea{font-size:12px}.studio-item{justify-content:flex-start;overflow-wrap:anywhere;text-align:left}.studio-slot-image{max-width:100%;max-height:150px;object-fit:contain}.studio-stage-heading{display:flex;align-items:center;justify-content:space-between;height:40px;flex:none;padding:0 18px;background:var(--pc-surface-2);border-bottom:1px solid var(--pc-border);font-size:12px}.studio-stage-heading small{font-size:10px;color:var(--pc-muted)}.studio .stage-area{min-height:0!important;padding:14px 18px;gap:14px;background:var(--pc-stage);min-height:160px}.studio .stage-area.comparing{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:center;gap:16px}.studio .stage-area.comparing .viewer{width:100%;min-height:0;align-self:stretch;justify-content:center;padding:8px;border:1px solid var(--pc-border);border-radius:10px;background:var(--pc-surface-2)}.studio .stage-area.comparing .caption{width:100%;font-weight:600;color:var(--pc-text);padding:0 4px 5px}.studio .stage-area.comparing .note{width:100%;padding-inline:4px}.studio .frame-box{box-shadow:0 2px 7px #0002,0 12px 30px #0001}.studio .caption{font-size:11px}.studio .note{font-size:10px;max-width:350px}.studio .transport{height:76px;min-height:76px;flex-wrap:wrap;align-content:center;background:var(--pc-surface-2);padding:4px 12px;gap:7px}.studio .transport .readout{font-size:11px;gap:8px;order:2;flex:1 0 calc(100% - 100px)}.studio .transport #jump{order:3;width:80px;font-size:10px}.studio .transport .speed{order:1;font-size:10px}.studio .transport .tbtn{min-width:24px;padding:0 4px}.studio .transport #back10,.studio .transport #fwd10{display:none}.studio .transport .slider-wrap{min-width:50px}\n.studio-timeline-wrap{position:relative;display:flex;flex-direction:column;min-height:0;border-top:1px solid var(--pc-border);background:var(--pc-surface)}.studio-timeline-toolbar{height:39px;flex:none;display:flex;align-items:center;gap:8px;padding:0 14px;border-bottom:1px solid var(--pc-border);background:var(--pc-surface-2)}.studio-timeline-toolbar .spacer{flex:1}.studio-timeline-toolbar input[type=range]{width:105px;accent-color:var(--pc-accent)}.studio .timeline{min-height:0;flex:1;max-height:none;overflow:auto}.studio .lanes{--label:160px;width:calc(100% * var(--timeline-zoom,1));min-width:100%;padding-bottom:9px}.studio .lane{height:34px;border-color:var(--pc-border)}.studio .lane-label{position:sticky;left:0;z-index:9;background:var(--pc-surface);line-height:33px;font-size:11px;padding-left:15px}.studio .ruler{height:28px;background:var(--pc-surface-2);position:sticky;top:0;z-index:10}.studio .ruler .lane-label{background:var(--pc-surface-2);line-height:27px}.studio .rtick{font-size:10px;color:var(--pc-muted)}.studio .lane.segments{height:70px}.studio .blk.seg{height:58px;top:5px;bottom:auto;line-height:13px;padding:0 4px;border:1px solid #aebfcb;background:#e8eef3;color:#4c6474}.studio .blk.seg img{display:block;position:absolute;left:0;top:0;width:100%;height:39px;object-fit:cover;pointer-events:none}.studio .blk.seg .segment-name{position:absolute;bottom:1px;left:4px;right:2px;font-size:9px;overflow:hidden;text-overflow:ellipsis}.studio .blk.seg.selected{border:2px solid var(--pc-accent);background:#fff0e2}.studio .blk.item{background:#eee8fa;color:#8c70a9;border:1px solid #d8c9ef;font-size:10px;top:5px;bottom:5px}.studio .lane.caption-lane .blk.item{background:#f5efdf;color:#8e7950;border-color:#e6dcc1}.studio .lane.caption-lane .blk.selected{border-color:var(--pc-accent)}.studio .blk.audio{background:#e7f2e9;color:#537b60;border:1px solid #b3d1bd;top:5px;bottom:5px;font-size:10px}.studio .blk.audio.wave-ready{color:transparent}.studio .blk.audio svg{width:100%;height:100%;position:absolute;inset:0;pointer-events:none}.studio .measure,.studio .lane.words-lane{display:none}.studio.show-analysis .measure,.studio.show-analysis .lane.words-lane{display:grid}.studio .band{z-index:2;opacity:.7}.studio .seg-grip{height:66px;top:2px}.studio .playhead{background:#292929;min-width:1px}.studio .selected{outline-color:var(--pc-accent)}\n.studio-footer{height:24px;background:var(--pc-surface-2);border-top:1px solid var(--pc-border);display:flex;align-items:center;justify-content:space-between;padding:0 14px;font-size:10px;color:var(--pc-muted)}.studio-handle{position:absolute;z-index:15;touch-action:none}.studio-handle.vertical{width:5px;top:0;bottom:0;cursor:col-resize}.studio-handle.horizontal{height:5px;left:0;right:0;top:-3px;cursor:row-resize}.studio-handle:hover{background:var(--pc-accent);opacity:.35}.studio.focus-preview .main{grid-template-columns:64px 0 minmax(0,1fr) 0}.studio.focus-preview .studio-content,.studio.focus-preview .panel{visibility:hidden;padding:0;overflow:hidden}.studio.panel-code{--left-width:min(480px,35vw)}\n.studio-code-wrap{display:flex;flex-direction:column;gap:10px;height:100%;padding:14px}.studio-json{flex:1;min-height:240px;white-space:pre;overflow:auto;resize:none;width:100%;font:12px/1.65 ui-monospace,SFMono-Regular,Menlo,monospace!important;border:1px solid var(--pc-border);border-radius:8px;background:var(--pc-surface-2);padding:12px;tab-size:2}.studio-code-status{font-size:11px;color:var(--pc-muted);overflow-wrap:anywhere}.studio-scrim{position:fixed;inset:0;background:#0003;z-index:80}.studio-export{position:fixed;right:0;top:0;bottom:0;width:440px;max-width:100vw;overflow:auto;padding:18px 22px;background:var(--pc-surface);z-index:81;box-shadow:-12px 0 40px #0002;display:flex;flex-direction:column;gap:18px}.studio-export-header{display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--pc-border);padding-bottom:14px}.studio-export-fields{border:0;margin:0;padding:0;display:flex;flex-direction:column;gap:16px;min-width:0}.studio-export-fields>.studio-field{display:grid;grid-template-columns:95px 1fr;align-items:center;gap:12px;font-size:13px}.studio-segments{display:flex;padding:3px;background:var(--pc-bg);border-radius:8px;gap:3px}.studio-segments button{flex:1;border:0;background:transparent;border-radius:6px;padding:7px}.studio-segments button.selected{background:var(--pc-surface);color:var(--pc-text)}.studio-resolutions{display:grid;grid-template-columns:repeat(3,1fr);gap:5px}.studio-resolutions button{position:relative;padding:5px;min-width:0}.export-gem{color:var(--pc-accent);display:inline-flex;align-items:center;justify-content:center;font-size:20px;line-height:15px;margin-left:3px}.studio-paid-info:empty{display:none}.studio-check{display:flex;align-items:center;gap:8px;font-size:12px}.studio-check input{accent-color:var(--pc-accent)}.studio-export>progress{width:100%;accent-color:var(--pc-accent)}.studio-export-result{display:flex;gap:10px;flex-direction:column}.studio-export-result:empty{display:none}#studio-message{position:fixed;left:50%;bottom:35px;transform:translateX(-50%);max-width:min(650px,85vw);padding:11px 16px;background:#292929;color:white;box-shadow:0 5px 20px #0003;border-radius:8px;z-index:100;opacity:0;pointer-events:none;font-size:12px}#studio-message.visible{opacity:1}\n.studio .sel-box.thin .h-n{top:-9px}.studio .sel-box.thin .h-s{top:calc(100% + 9px)}\n@media(max-width:1300px){:root{--left-width:238px;--right-width:272px}.studio-save{display:none}.studio-topbar{gap:6px}.studio-project{max-width:25%}.studio .transport .readout{font-size:10px}.studio .lanes{--label:140px}}\n@media(max-width:1000px){.studio .main{grid-template-columns:55px 225px minmax(150px,1fr)}.studio .main{grid-template-columns:52px 190px minmax(0,1fr) 240px}.studio .panel{position:static;width:auto;display:block}.studio-topbar .studio-btn:not(.primary){padding:4px}.studio-topbar .studio-project{max-width:18%}.studio .readout>span:first-child{display:none}}\n\n.studio-export{left:50%;right:auto;top:50%;bottom:auto;transform:translate(-50%,-50%);width:min(740px,calc(100vw - 32px));max-height:calc(100dvh - 40px);padding:26px 30px;border-radius:16px;box-shadow:0 20px 70px #0003;gap:24px}.studio-export-header{border:0;padding:0}.studio-export-header h2{font-size:24px}.studio-export-header button{border:0;font-size:24px;background:transparent}.export-tabs{padding:4px}.export-tabs button{font-size:17px;font-weight:600}.studio-export-fields{gap:18px}.studio-export-fields>.studio-field{grid-template-columns:135px 1fr;font-size:15px}.studio-export .studio-segments button{position:relative;min-height:36px;font-size:15px}.studio-export>.primary{width:100%;min-height:46px;background:#df7634;border-color:#d66b29;font-size:17px}.studio-export .studio-note{font-size:13px}.export-lock{display:inline-flex;margin-left:5px;color:var(--pc-muted);vertical-align:-2px}.export-lock svg{width:13px;height:13px}.studio-export details{font-size:13px;color:var(--pc-muted)}.studio-export details summary{cursor:pointer}.studio-export details p{margin-top:12px}.studio-export .studio-input{border:0;background:var(--pc-bg);min-height:40px;font-size:15px}@media(max-width:600px){.studio-export{padding:20px}.studio-export-fields>.studio-field{grid-template-columns:90px 1fr}}\n.studio-draft-success{width:min(560px,calc(100vw - 32px));gap:18px;padding:30px}.studio-draft-success .studio-export-header h2{font-size:22px}.studio-draft-success>.studio-note{font-size:15px;line-height:1.7;margin:0}.studio-draft-actions{display:flex;justify-content:flex-end;gap:10px}.studio-draft-actions .studio-btn{padding:11px 18px;border:0;background:var(--pc-bg);font-size:14px}.studio-draft-actions .primary{background:#df7634;color:white}.studio-draft-success [role=status]:empty{display:none}\n";
|
|
2
|
+
export declare const STUDIO_REFINEMENTS = "\n.studio .timeline-divider{height:20px;border-left:1px solid var(--pc-border);margin:0 5px}.studio .timeline-selection{max-width:220px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:11px;color:var(--pc-muted)}.studio .grip{z-index:8;opacity:0;width:9px}.studio .lane:has(.blk:hover) .grip,.studio .grip.selected{opacity:1;background:var(--pc-accent-soft);border:1px solid var(--pc-accent)}.studio .seg-grip{z-index:9;background:var(--pc-border);width:7px;margin-left:-7px}.studio .seg-grip:hover{background:var(--pc-accent)}.studio .blk.seg{display:flex;align-items:center;gap:6px;padding:4px 8px}.studio .blk.seg img{width:60px;height:38px;object-fit:cover;flex:none}.studio .segment-name{font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.studio .scene-field{font-style:italic}.studio .stage-text-editor{position:absolute;z-index:30;min-height:50px;box-sizing:border-box;resize:vertical;border:2px solid var(--pc-accent);border-radius:3px;padding:4px;background:var(--pc-surface);color:var(--pc-text);font-weight:600;line-height:1.2;box-shadow:0 4px 18px #0002}.studio .panel .colour input[type=text]{min-width:86px}.studio .panel .fld.area textarea{height:64px}.studio .timeline .blk:focus-visible{outline:2px solid var(--pc-accent);outline-offset:2px}@media(max-width:1250px){.studio .timeline-selection{display:none}.studio-timeline-toolbar{gap:4px}.studio-timeline-toolbar .tbtn{padding:0 4px}.studio-timeline-toolbar .studio-btn{padding:4px 7px}}\n\n.studio #app{grid-template-rows:52px minmax(0,1fr) min(300px,36dvh) 24px;grid-template-rows:52px minmax(0,1fr) var(--timeline-height) 24px}\n.studio .main{overflow:hidden}.studio .panel{position:static;min-height:0;z-index:auto;scrollbar-gutter:stable}.studio .left{grid-column:3;grid-row:1}.studio .panel{grid-column:4;grid-row:1}.studio-rail{grid-column:1;grid-row:1}.studio-content{grid-column:2;grid-row:1;min-width:0;max-width:100%}\n.studio-topbar{justify-content:space-between;gap:12px}.studio-project{flex:1;max-width:none}.studio-global-actions{display:flex;gap:6px;align-items:center;margin-left:auto;flex:none}.studio-save{white-space:nowrap}.studio-topbar .primary{margin-left:8px}\n.studio-side-body,.studio-media-list,.studio-media-card,.studio-actions,.studio-shot-copy{min-width:0;max-width:100%}.studio-media-card>video,.studio-media-card>img,.studio-media-card>audio{display:block;min-width:0;max-width:100%;width:100%}.studio-media-card>video{aspect-ratio:16/10;height:132px}.studio-actions{display:grid;grid-template-columns:1fr;gap:6px}.studio-actions .studio-btn{white-space:normal;width:100%}.studio-media-card>strong{display:block;max-width:100%}.studio-resource-tabs{display:flex;gap:6px;padding:12px 14px 0}.studio-resource-tabs button{flex:1;font-size:12px}.studio-resource-tabs .selected{border-color:var(--pc-accent);background:var(--pc-accent-soft)}\n.studio .stage-area{min-width:0;overflow:hidden}.studio .viewer{flex:none}.studio .panel>h2,.studio .panel #selection>h2{display:none}.studio .panel .follow{display:none}.studio .panel .fs{border:0;border-top:1px solid var(--pc-border);padding:14px 0;margin:0 0 6px;min-width:0}.studio .panel .fs legend{font-size:12px;font-weight:600;padding:0 6px 0 0;color:var(--pc-text)}.studio .panel .row{gap:8px;margin:0 0 10px;flex-wrap:wrap}.studio .panel .fld{min-width:68px;flex:1}.studio .panel .fld.wide{flex-basis:100%}.studio .panel .fld input,.studio .panel .fld textarea,.studio .panel .fld select{min-width:0;width:100%;border-radius:7px;background:var(--pc-surface-2);border:1px solid var(--pc-border);padding:7px 8px;height:34px}.studio .panel .fld textarea{height:86px;line-height:1.7;resize:vertical}.studio .panel .fl{font-size:11px;margin-bottom:6px;color:var(--pc-muted)}.studio .panel .rv,.studio .panel .hint{display:none}.studio .panel details{padding:12px 0;border-top:1px solid var(--pc-border)}.studio .panel summary{cursor:pointer;color:var(--pc-muted);font-size:12px;margin-bottom:12px}.studio .sel-title{font-size:14px;font-weight:600;margin-bottom:14px}.studio .edit-status:has(#edit-status:empty){display:none}.studio .status-line:not(.bad){display:none}.studio .panel .chips{display:flex;flex-direction:column;gap:8px}.studio .panel .chip{padding:9px;text-align:left;border-radius:7px}\n.studio .timeline{overflow:scroll;overscroll-behavior:contain;scrollbar-gutter:stable;scrollbar-width:auto}.studio .timeline::-webkit-scrollbar{width:11px;height:12px}.studio .timeline::-webkit-scrollbar-track{background:var(--pc-surface-2)}.studio .timeline::-webkit-scrollbar-thumb{background:#aaa9a1;border:3px solid var(--pc-surface-2);border-radius:8px}.studio .lanes{--label:112px;width:calc(100% * var(--timeline-zoom,1));min-width:100%;padding-bottom:20px}.studio .lane{grid-template-columns:var(--label) minmax(0,1fr)}.studio .lane-track{overflow:visible;min-width:0}.studio .lane-label{z-index:11;font-size:12px}.studio .lane.media-lane{height:44px}.studio .lane.caption-lane{height:38px}.studio .blk.item{padding:5px 6px;line-height:20px;cursor:pointer;z-index:3;min-width:3px}.studio .blk.audio{cursor:pointer;z-index:3}.studio .lane.caption-lane .blk.item{font-size:11px;line-height:18px;padding:3px 5px}.studio .blk.selected{outline:none;border:2px solid var(--pc-accent);box-shadow:0 0 0 1px var(--pc-surface);z-index:5}.studio .lane .shade{pointer-events:none;display:none}.studio .playhead-layer{pointer-events:none}.studio .ruler{z-index:15}.studio .lane.segments{height:62px;position:sticky;top:28px;z-index:12;background:var(--pc-surface)}.studio .playhead-layer{z-index:14}.studio .blk.seg{height:50px;cursor:pointer}.studio .blk.seg img{height:30px}.studio .seg-grip{height:58px}.studio-timeline-toolbar{height:42px;min-width:0}.studio-timeline-toolbar .edit-tools{border-right:1px solid var(--pc-border);padding-right:8px}.studio-timeline-toolbar #edit-split{min-height:28px}.studio-timeline-toolbar .tbtn{width:auto;display:inline-flex;align-items:center;justify-content:center;gap:5px;padding:0 7px}.studio-timeline-toolbar .studio-btn{font-size:11px}.studio .edit-tools .tool-group:last-child{display:none}\n.studio-export{width:min(520px,calc(100vw - 32px));max-height:calc(100dvh - 40px);padding:22px 24px;gap:18px}.studio-export-header h2{font-size:19px}.studio-export .studio-segments button{font-size:13px;min-height:32px}.studio-export .export-tabs button{font-size:14px}.studio-export-fields{gap:15px}.studio-export-fields>.studio-field{grid-template-columns:80px minmax(0,1fr);font-size:12px}.studio-export .studio-input{min-height:34px;font-size:13px}.studio-export>.primary{min-height:38px;font-size:14px}.studio-export .studio-note{font-size:12px}.studio-paid-info{display:grid;gap:8px;line-height:1.7;padding:10px 12px;border:1px solid var(--pc-border);border-radius:10px;background:var(--pc-surface-2)}.studio-paid-info:empty,.studio-paid-info[hidden]{display:none}.studio-paid-actions,.studio-paid-link{display:flex;flex-wrap:wrap;align-items:center;gap:8px}.studio-paid-link .studio-input{flex:1 1 100%;min-width:0;font-size:12px}.studio-paid-info .studio-btn:disabled{opacity:.6;cursor:default}.studio-paid-info .studio-btn{font-size:12px}.studio-export-result{font-size:12px}.studio-export-result a{color:var(--pc-accent)}.studio-slot-outline{position:absolute;border:2px solid var(--pc-accent);pointer-events:none;z-index:4}.studio-slot-name{position:absolute;left:-2px;bottom:100%;padding:3px 7px;max-width:220px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;background:var(--pc-accent);color:white;font-size:11px}.studio-slot-preview{max-width:100%;max-height:160px;object-fit:contain;border-radius:8px}.studio-cloud{max-width:180px;font-size:12px}.studio-element-label{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;display:block}\n@media(max-width:1100px){.studio .main{grid-template-columns:52px 208px minmax(0,1fr) 246px}.studio .panel{display:block;position:static;width:auto}.studio-global-actions{gap:3px}.studio-topbar .studio-btn{padding:5px 7px}.studio-project{max-width:140px}.studio .main>.studio-handle.vertical{display:none}}\n@media(max-width:820px){.studio .main{grid-template-columns:48px 0 minmax(0,1fr) 220px}.studio-topbar{gap:6px;padding:0 10px}.studio-brand{font-size:20px}.studio-project{display:none}.studio .lanes{--label:88px}.studio-timeline-toolbar{gap:5px;padding:0 8px}.studio-timeline-toolbar input[type=range]{width:70px}}\n\n.studio:not(.inspecting) .main{grid-template-columns:64px var(--left-width) minmax(0,1fr) 0}.studio:not(.inspecting) .panel,.studio:not(.inspecting) .inspector-resize{display:none}.studio-sentence.selected{border-color:var(--pc-accent);background:var(--pc-accent-soft)}.studio-item.selected{border-color:var(--pc-accent);background:var(--pc-accent-soft)}\n@media(max-width:1100px){.studio:not(.inspecting) .main{grid-template-columns:52px 208px minmax(0,1fr) 0}}@media(max-width:820px){.studio:not(.inspecting) .main{grid-template-columns:48px 0 minmax(0,1fr) 0}}\n\n.studio-cloud{position:relative;display:flex;align-items:center;gap:7px;max-width:310px;min-width:0}.studio-cloud-state{font-size:12px;max-width:185px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.studio-cloud-state.bad{color:var(--err)}.studio-cloud-off{color:var(--pc-muted);text-decoration:underline;text-underline-offset:3px}.studio-cloud-off:hover{color:var(--pc-text)}.studio-cloud-code{flex:none;padding:2px 6px;border:1px solid var(--pc-border);border-radius:6px;background:var(--pc-surface);color:var(--pc-text);font:600 12px/1.4 ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;letter-spacing:.04em;user-select:all}.studio-cloud-link{position:absolute;right:0;top:calc(100% + 10px);z-index:90;width:min(420px,calc(100vw - 32px));border:1px solid var(--pc-border);border-radius:8px;padding:12px;background:var(--pc-surface);color:var(--pc-text);box-shadow:0 6px 25px #0002;font-size:12px}.studio-cloud[hidden]{display:none}\n.studio.focus-preview:not(.inspecting) .main{grid-template-columns:64px 0 minmax(0,1fr) 0}\n.studio-topbar .studio-icon-btn{width:34px;height:34px;min-width:34px;padding:0;border:0;background:transparent;color:var(--pc-text);border-radius:6px;flex:none}.studio-topbar .studio-icon-btn svg{width:18px;height:18px}.studio-topbar .studio-icon-btn:hover{background:var(--pc-hover)}.studio-topbar .studio-icon-btn.selected,.studio-topbar .studio-icon-btn[aria-pressed=true]{background:var(--pc-accent-soft);color:var(--pc-accent)}.studio-topbar .studio-icon-btn:focus-visible{outline:2px solid var(--pc-accent);outline-offset:2px}.studio-topbar .studio-icon-btn:disabled{opacity:.4;cursor:default}\n/* A narrow window (an agent's side panel, 360 to 820 px): the app never grows wider than the window, the side panel is\n a drawer over the stage that a rail button opens (workspace.ts), and below 640 px the properties are one too. */\n.studio-drawer-scrim,.studio-drawer-close,.studio-inspector-close,.studio .studio-inspector-toggle{display:none}\n.studio .stage-area.comparing.stacked{grid-template-columns:minmax(0,1fr);grid-template-rows:repeat(2,minmax(0,1fr))}\n@media(max-width:820px){\n.studio #app{grid-template-columns:minmax(0,1fr);grid-template-rows:52px minmax(0,1fr) min(var(--timeline-height),38dvh) 24px}.studio #app>*{min-width:0}\n.studio.focus-preview .main{grid-template-columns:48px 0 minmax(0,1fr) 0}\n.studio-rail{padding:8px 2px;gap:3px}.studio-rail button{height:50px;min-width:0;padding:0;font-size:9px;letter-spacing:-.1px;overflow:hidden}\n.studio-content{display:none;position:fixed;z-index:61;left:48px;top:52px;bottom:0;width:min(320px,calc(100vw - 48px));max-width:none;padding-top:38px;box-shadow:14px 0 40px #0003}\n.studio.panel-code .studio-content{width:min(560px,calc(100vw - 48px))}\n.studio.drawer-open .studio-content{display:block}\n.studio.drawer-open .studio-drawer-scrim,.studio.inspector-open .studio-drawer-scrim{display:block;position:fixed;z-index:60;left:48px;top:52px;right:0;bottom:0;background:#0005}\n.studio .studio-drawer-close,.studio .studio-inspector-close{position:fixed;z-index:62;top:58px;width:30px;height:30px;min-width:30px;min-height:30px;padding:0;border:1px solid var(--pc-border);border-radius:7px;background:var(--pc-surface)}\n.studio.drawer-open .studio-drawer-close{display:inline-flex;left:calc(48px + min(320px,100vw - 48px) - 38px)}\n.studio.drawer-open.panel-code .studio-drawer-close{left:calc(48px + min(560px,100vw - 48px) - 38px)}\n.studio-code-wrap{height:calc(100% - 4px)}\n.studio-topbar{gap:6px;padding:0 8px}.studio-brand{font-size:19px;margin-right:0}\n.studio-global-actions{flex:0 1 auto;min-width:0;gap:2px;overflow-x:auto;scrollbar-width:none}.studio-global-actions::-webkit-scrollbar{display:none}.studio-global-actions>*{flex:none}\n.studio-topbar #studio-layout{display:none}.studio-topbar .primary{margin-left:2px}\n.studio-cloud-state{max-width:104px}.studio-cloud-link{position:fixed;left:8px;right:8px;top:58px;width:auto}\n.studio-timeline-toolbar{overflow-x:auto;scrollbar-width:none}.studio-timeline-toolbar::-webkit-scrollbar{display:none}.studio-timeline-toolbar>*,.studio-timeline-toolbar .edit-tools>*{flex:none}.studio-timeline-toolbar .spacer{flex:1 0 4px}\n.studio-stage-heading{padding:0 10px;gap:8px;height:36px}.studio .stage-area{padding:8px 10px;gap:10px}\n.studio .transport{height:auto;min-height:76px;padding:4px 8px}.studio .transport .readout{flex:1 1 120px}.studio-footer{padding:0 10px}\n}\n@media(max-width:640px){\n.studio.inspecting .main{grid-template-columns:48px 0 minmax(0,1fr) 0}.studio .panel{display:none}\n.studio.inspecting .studio-inspector-toggle{display:inline-flex;min-height:26px;padding:2px 8px;font-size:11px}\n.studio.inspecting.inspector-open .panel{display:block;position:fixed;z-index:61;right:0;top:52px;bottom:0;width:min(300px,calc(100vw - 48px));padding-top:42px;box-shadow:-14px 0 40px #0003}\n.studio.inspecting.inspector-open .studio-inspector-close{display:inline-flex;right:8px}\n.studio .lanes{--label:72px}\n}\n@media(max-width:820px) and (max-height:600px){.studio #app{grid-template-rows:44px minmax(0,1fr) min(var(--timeline-height),34dvh) 0}.studio-footer{display:none}.studio-content,.studio.inspecting.inspector-open .panel{top:44px}.studio.drawer-open .studio-drawer-scrim,.studio.inspector-open .studio-drawer-scrim{top:44px}.studio .studio-drawer-close,.studio .studio-inspector-close{top:50px}.studio-stage-heading{height:30px}.studio .transport{height:auto;min-height:44px}}\n";
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import type { Store, Actions } from '../app';
|
|
2
2
|
import type { EditActions } from '../edit/controller';
|
|
3
3
|
import { type Panel } from './sidebar';
|
|
4
|
+
/** Below this width the side panel is a drawer over the stage (the same number as the style's narrow layout). */
|
|
5
|
+
export declare const NARROW = "(max-width:820px)";
|
|
4
6
|
export declare const mountWorkspace: (root: HTMLElement, store: Store, actions: Actions, edit: EditActions) => {
|
|
5
7
|
refresh: () => Promise<void>;
|
|
6
8
|
choose: (panel: Panel) => void;
|