@yugoo-design/dsh-design-studio-ui 0.1.2 → 0.2.2
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 +261 -90
- package/THIRD_PARTY_NOTICES.md +26 -0
- package/lib/index.d.ts +318 -313
- package/lib/index.js +3471 -2918
- package/licenses/dsh-distribution.json +209 -119
- package/package.json +10 -5
package/lib/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ReactElement, ReactNode } from "react";
|
|
2
|
-
import { DesignBundleVersionPin, DesignKitVersionPin, StudioBundleFileResult, StudioBundleWorkspaceResult, StudioBundleWorkspaceView, StudioContentArchive, StudioDiagnostic,
|
|
2
|
+
import { DesignBundleVersionPin, DesignKitVersionPin, StudioBundleFileResult, StudioBundleWorkspaceResult, StudioBundleWorkspaceView, StudioContentArchive, StudioDiagnostic, StudioInstanceCandidate, StudioInstanceChangeReceipt, StudioInstanceChangeRequest, StudioInstanceSaveChanges, StudioKitWorkspaceResult, StudioKitWorkspaceView, StudioManagementFailure, StudioManagementFailure as StudioManagementFailure$1, StudioPanelPreview, StudioPanelPreviewResult, StudioWorkspaceView } from "@yugoo-design/dsh-design-studio";
|
|
3
3
|
//#region src/types.d.ts
|
|
4
4
|
/** UI name for the canonical management failure. */
|
|
5
5
|
type StudioClientFailure = StudioManagementFailure$1;
|
|
@@ -100,35 +100,6 @@ declare class StudioWorkspaceController {
|
|
|
100
100
|
closeBundleWorkspace(): void;
|
|
101
101
|
}
|
|
102
102
|
//#endregion
|
|
103
|
-
//#region src/panel-draft-controller.d.ts
|
|
104
|
-
interface StudioPanelPreviewClient {
|
|
105
|
-
preparePreview(request: StudioPanelPreviewRequest): Promise<StudioPanelPreviewResult>;
|
|
106
|
-
}
|
|
107
|
-
interface StudioPanelDraftState {
|
|
108
|
-
readonly request: StudioPanelPreviewRequest;
|
|
109
|
-
readonly phase: 'editing' | 'previewing' | 'ready' | 'invalid';
|
|
110
|
-
readonly preview?: StudioPanelPreview;
|
|
111
|
-
readonly diagnostics: readonly StudioDiagnostic[];
|
|
112
|
-
}
|
|
113
|
-
/**
|
|
114
|
-
* One isolated editor. An older async compilation must never replace a newer
|
|
115
|
-
* edit or resurrect a preview after the author has left this workspace.
|
|
116
|
-
* `ready` means a definition and sample compiled, not saved/published or run.
|
|
117
|
-
*/
|
|
118
|
-
declare class StudioPanelDraftController {
|
|
119
|
-
#private;
|
|
120
|
-
constructor(client: StudioPanelPreviewClient, seed: StudioPanelPreviewRequest);
|
|
121
|
-
getSnapshot: () => StudioPanelDraftState;
|
|
122
|
-
subscribe: (listener: () => void) => (() => void);
|
|
123
|
-
/** Replace either source; both are carried by the same editor revision. */
|
|
124
|
-
edit(change: {
|
|
125
|
-
panelSource?: string;
|
|
126
|
-
sampleSource?: string;
|
|
127
|
-
}): void;
|
|
128
|
-
preview(): Promise<void>;
|
|
129
|
-
dispose(): void;
|
|
130
|
-
}
|
|
131
|
-
//#endregion
|
|
132
103
|
//#region src/StudioSelect.d.ts
|
|
133
104
|
/** Host-neutral control contract; choosing only reports the exact caller value. */
|
|
134
105
|
interface StudioSelectProps {
|
|
@@ -145,181 +116,37 @@ interface StudioSelectProps {
|
|
|
145
116
|
}
|
|
146
117
|
type StudioSelectRenderer = (props: StudioSelectProps) => ReactElement;
|
|
147
118
|
//#endregion
|
|
148
|
-
//#region src/
|
|
149
|
-
/**
|
|
150
|
-
type StudioTrialSource = {
|
|
151
|
-
readonly kind: 'installed' | 'panel-draft';
|
|
152
|
-
readonly kit: {
|
|
153
|
-
readonly name: string;
|
|
154
|
-
readonly version: string;
|
|
155
|
-
};
|
|
156
|
-
readonly bundle: {
|
|
157
|
-
readonly name: string;
|
|
158
|
-
readonly version: string;
|
|
159
|
-
};
|
|
160
|
-
readonly id?: string;
|
|
161
|
-
readonly expectedRevision?: number;
|
|
162
|
-
};
|
|
163
|
-
interface StudioTrialRecord {
|
|
164
|
-
readonly locale?: 'zh-CN' | 'en-US';
|
|
165
|
-
readonly id: string;
|
|
166
|
-
readonly createdAt?: string;
|
|
167
|
-
readonly source: StudioTrialSource;
|
|
168
|
-
readonly status: 'preparing' | 'queued' | 'running' | 'waiting' | 'completed' | 'failed' | 'stopped' | 'unknown';
|
|
169
|
-
readonly task?: string;
|
|
170
|
-
readonly inputMode?: 'generated' | 'manual';
|
|
171
|
-
readonly sourceLabel: string;
|
|
172
|
-
readonly projectLabel: string;
|
|
173
|
-
readonly resultUrl?: string;
|
|
174
|
-
readonly message?: string;
|
|
175
|
-
}
|
|
176
|
-
interface StudioTrialClient {
|
|
177
|
-
/** Transport/session evidence only; never a model turn or execution receipt. */
|
|
178
|
-
checkConnection?(): Promise<{
|
|
179
|
-
status: 'available' | 'unavailable' | 'unknown';
|
|
180
|
-
}>;
|
|
181
|
-
panelUrl?(record: StudioTrialRecord): string | undefined;
|
|
182
|
-
list(): Promise<readonly StudioTrialRecord[]>;
|
|
183
|
-
start(input: {
|
|
184
|
-
source: StudioTrialSource;
|
|
185
|
-
task?: string;
|
|
186
|
-
locale?: 'zh-CN' | 'en-US';
|
|
187
|
-
}): Promise<StudioTrialRecord>;
|
|
188
|
-
read(id: string): Promise<StudioTrialRecord>;
|
|
189
|
-
stop(id: string): Promise<StudioTrialRecord>;
|
|
190
|
-
remove(id: string): Promise<void>;
|
|
191
|
-
}
|
|
192
|
-
interface StudioTrialState {
|
|
193
|
-
readonly busy: boolean;
|
|
194
|
-
readonly history?: readonly StudioTrialRecord[];
|
|
195
|
-
readonly record?: StudioTrialRecord;
|
|
196
|
-
readonly error?: string;
|
|
197
|
-
}
|
|
198
|
-
/** Bounded non-generating probe. Legacy/invalid evidence is unknown, not ready. */
|
|
199
|
-
declare function checkStudioTrialConnection(client: StudioTrialClient, timeoutMs?: number): Promise<'available' | 'unavailable' | 'unknown'>;
|
|
200
|
-
declare const trialActive: (record?: StudioTrialRecord) => boolean;
|
|
201
|
-
/** Do not navigate to scripts, credentials or remote sites returned as a result. */
|
|
202
|
-
declare function localTrialUrl(value?: string): string | undefined;
|
|
203
|
-
declare class StudioTrialController {
|
|
204
|
-
private readonly client;
|
|
205
|
-
private state;
|
|
206
|
-
private listeners;
|
|
207
|
-
private generation;
|
|
208
|
-
private reading;
|
|
209
|
-
private recovered;
|
|
210
|
-
private owns;
|
|
211
|
-
private readonly source;
|
|
212
|
-
constructor(client: StudioTrialClient, source: StudioTrialSource);
|
|
213
|
-
getSnapshot: () => StudioTrialState;
|
|
214
|
-
subscribe: (listener: () => void) => (() => void);
|
|
215
|
-
private update;
|
|
216
|
-
recover(): Promise<void>;
|
|
217
|
-
select(id: string): void;
|
|
218
|
-
start(task: string, locale?: 'zh-CN' | 'en-US'): Promise<void>;
|
|
219
|
-
/** Only an explicit first-open click requests native preparation, never mounting or polling. */
|
|
220
|
-
startExample(locale?: 'zh-CN' | 'en-US'): Promise<void>;
|
|
221
|
-
refresh(): Promise<void>;
|
|
222
|
-
stop(): Promise<void>;
|
|
223
|
-
remove(): Promise<void>;
|
|
224
|
-
private perform;
|
|
225
|
-
}
|
|
226
|
-
//#endregion
|
|
227
|
-
//#region src/PanelDraftWorkbench.d.ts
|
|
119
|
+
//#region src/authoring.d.ts
|
|
120
|
+
/** Host-owned preview capability. Editing uses StudioInstanceClient exclusively. */
|
|
228
121
|
interface StudioAuthoringClient {
|
|
229
|
-
/** Inspect an installed declarative Panel with sample-only ports; creates no draft. */
|
|
230
122
|
previewInstalled?(input: {
|
|
231
123
|
kit?: DesignKitVersionPin;
|
|
232
124
|
bundle: DesignBundleVersionPin;
|
|
233
125
|
revision: number;
|
|
234
126
|
sampleSource?: string;
|
|
235
127
|
}): Promise<StudioPanelPreviewResult>;
|
|
236
|
-
create(input: {
|
|
237
|
-
kit: DesignKitVersionPin;
|
|
238
|
-
bundle: DesignBundleVersionPin;
|
|
239
|
-
sampleSource?: string;
|
|
240
|
-
}): Promise<StudioPanelDraftRecord>;
|
|
241
|
-
list(): Promise<readonly StudioPanelDraftSummary[]>;
|
|
242
|
-
read(id: string): Promise<StudioPanelDraftRecord>;
|
|
243
|
-
save(input: StudioPanelDraftEdit): Promise<StudioPanelDraftRecord>;
|
|
244
|
-
preview(input: StudioPanelDraftEdit & {
|
|
245
|
-
revision: number;
|
|
246
|
-
}): Promise<StudioPanelPreviewResult>;
|
|
247
|
-
confirm(input: {
|
|
248
|
-
id: string;
|
|
249
|
-
expectedRevision: number;
|
|
250
|
-
}): Promise<StudioPanelPreviewResult & {
|
|
251
|
-
draft?: StudioPanelDraftRecord;
|
|
252
|
-
}>;
|
|
253
|
-
fork(id: string): Promise<StudioPanelDraftRecord>;
|
|
254
128
|
}
|
|
255
129
|
interface StudioAuthoring {
|
|
256
130
|
readonly client: StudioAuthoringClient;
|
|
257
|
-
/** Must use the shared runtime renderer with isolated sample-only ports. */
|
|
258
131
|
readonly renderPreview: (preview: StudioPanelPreview, adoptSample: (value: Record<string, unknown>) => void, options: {
|
|
259
132
|
readOnly: boolean;
|
|
260
133
|
toolbarTarget?: HTMLElement | null;
|
|
261
134
|
}) => ReactElement;
|
|
262
135
|
}
|
|
263
136
|
//#endregion
|
|
264
|
-
//#region src/
|
|
265
|
-
interface
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
}): Promise<StudioKitDraftRecord>;
|
|
269
|
-
list(): Promise<readonly Pick<StudioKitDraftRecord, 'id' | 'revision' | 'baseKit' | 'confirmed'>[]>;
|
|
270
|
-
read(id: string): Promise<StudioKitDraftRecord>;
|
|
271
|
-
save(input: StudioKitDraftEdit): Promise<StudioKitDraftRecord>;
|
|
272
|
-
validate(input: {
|
|
273
|
-
id: string;
|
|
274
|
-
expectedRevision: number;
|
|
275
|
-
}): Promise<StudioKitDraftValidation>;
|
|
276
|
-
preview(input: {
|
|
277
|
-
id: string;
|
|
278
|
-
expectedRevision: number;
|
|
279
|
-
bundle: DesignBundleVersionPin;
|
|
280
|
-
sampleSource: string;
|
|
281
|
-
}): Promise<StudioPanelPreviewResult>;
|
|
282
|
-
confirm(input: {
|
|
283
|
-
id: string;
|
|
284
|
-
expectedRevision: number;
|
|
285
|
-
}): Promise<StudioKitDraftValidation & {
|
|
286
|
-
draft?: StudioKitDraftRecord;
|
|
287
|
-
}>;
|
|
288
|
-
fork(id: string): Promise<StudioKitDraftRecord>;
|
|
137
|
+
//#region src/source-candidate-state.d.ts
|
|
138
|
+
interface StudioPreparedSourceChanges {
|
|
139
|
+
readonly request: StudioInstanceChangeRequest;
|
|
140
|
+
readonly candidate: StudioInstanceCandidate;
|
|
289
141
|
}
|
|
290
|
-
interface
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
private listeners;
|
|
299
|
-
private state;
|
|
300
|
-
constructor(record: StudioKitDraftRecord, client: StudioKitAuthoringClient);
|
|
301
|
-
getSnapshot: () => {
|
|
302
|
-
record: StudioKitDraftRecord;
|
|
303
|
-
mindsetSource: string;
|
|
304
|
-
relationsSource: string | null;
|
|
305
|
-
dirty: boolean;
|
|
306
|
-
busy: boolean;
|
|
307
|
-
validation?: StudioKitDraftValidation;
|
|
308
|
-
preview?: StudioPanelPreviewResult;
|
|
309
|
-
error?: string;
|
|
310
|
-
};
|
|
311
|
-
subscribe: (listener: () => void) => () => void;
|
|
312
|
-
private update;
|
|
313
|
-
edit(patch: {
|
|
314
|
-
mindsetSource?: string;
|
|
315
|
-
relationsSource?: string | null;
|
|
316
|
-
}): void;
|
|
317
|
-
clearPreview(): void;
|
|
318
|
-
dispose(): void;
|
|
319
|
-
perform(action: 'save' | 'validate' | 'confirm' | 'fork' | 'preview', input?: {
|
|
320
|
-
bundle: DesignBundleVersionPin;
|
|
321
|
-
sampleSource: string;
|
|
322
|
-
}): Promise<StudioKitDraftRecord | undefined>;
|
|
142
|
+
interface SourceCandidateOptions {
|
|
143
|
+
readonly prepared: StudioPreparedSourceChanges;
|
|
144
|
+
readonly client: Pick<StudioInstanceClient, 'read'> & Required<Pick<StudioInstanceClient, 'saveChanges'>>;
|
|
145
|
+
readonly locale: 'zh' | 'en';
|
|
146
|
+
readonly renderPreview?: unknown;
|
|
147
|
+
readonly instanceId?: string;
|
|
148
|
+
readonly onSaved: (record: StudioInstance) => void;
|
|
149
|
+
readonly onDirtyChange?: (dirty: boolean) => void;
|
|
323
150
|
}
|
|
324
151
|
//#endregion
|
|
325
152
|
//#region src/InstanceWorkbench.d.ts
|
|
@@ -342,13 +169,33 @@ interface StudioInstance {
|
|
|
342
169
|
readonly kit?: DesignKitVersionPin;
|
|
343
170
|
readonly bundle?: DesignBundleVersionPin;
|
|
344
171
|
readonly revision: number;
|
|
172
|
+
/** This record is the current content of an existing catalog identity. */
|
|
173
|
+
readonly current?: boolean;
|
|
174
|
+
/** Existing S2 creation provenance; never implies definition validity. */
|
|
175
|
+
readonly createdBlank?: boolean;
|
|
176
|
+
readonly readiness?: {
|
|
177
|
+
readonly ready: boolean;
|
|
178
|
+
readonly diagnostics: readonly {
|
|
179
|
+
code: string;
|
|
180
|
+
message: string;
|
|
181
|
+
path?: string;
|
|
182
|
+
severity?: 'error' | 'warning';
|
|
183
|
+
}[];
|
|
184
|
+
};
|
|
345
185
|
readonly files?: readonly {
|
|
346
186
|
readonly path: string;
|
|
347
187
|
readonly bytes: number;
|
|
348
188
|
readonly editable: boolean;
|
|
349
189
|
}[];
|
|
350
190
|
readonly mounts: readonly {
|
|
351
|
-
readonly bundle: DesignBundleVersionPin
|
|
191
|
+
readonly bundle: DesignBundleVersionPin & {
|
|
192
|
+
readonly instanceId?: string;
|
|
193
|
+
readonly revision?: number;
|
|
194
|
+
readonly source?: {
|
|
195
|
+
readonly snapshot: string;
|
|
196
|
+
readonly sourceId: string;
|
|
197
|
+
};
|
|
198
|
+
};
|
|
352
199
|
readonly instanceId?: string;
|
|
353
200
|
}[];
|
|
354
201
|
readonly refs: readonly {
|
|
@@ -367,9 +214,39 @@ interface StudioInstance {
|
|
|
367
214
|
readonly instanceId?: string;
|
|
368
215
|
readonly revision?: number;
|
|
369
216
|
readonly runtimeName?: string;
|
|
217
|
+
readonly description?: string;
|
|
218
|
+
readonly displayDescription?: {
|
|
219
|
+
readonly zh: string;
|
|
220
|
+
readonly en: string;
|
|
221
|
+
};
|
|
370
222
|
})[];
|
|
371
223
|
}
|
|
372
224
|
interface StudioInstanceClient {
|
|
225
|
+
/** Open the current library item for editing without creating a new identity. */
|
|
226
|
+
editCurrent?(input: {
|
|
227
|
+
kind: 'kit' | 'bundle';
|
|
228
|
+
kit?: DesignKitVersionPin;
|
|
229
|
+
bundle?: DesignBundleVersionPin;
|
|
230
|
+
}): Promise<StudioInstance>;
|
|
231
|
+
importSources?(input: {
|
|
232
|
+
kind: 'kit' | 'bundle';
|
|
233
|
+
files: readonly {
|
|
234
|
+
path: string;
|
|
235
|
+
base64: string;
|
|
236
|
+
}[];
|
|
237
|
+
title?: {
|
|
238
|
+
zh: string;
|
|
239
|
+
en: string;
|
|
240
|
+
};
|
|
241
|
+
}): Promise<StudioInstance>;
|
|
242
|
+
/** Optional explicit blank-object creation through the same S2 repository. */
|
|
243
|
+
create?(input: {
|
|
244
|
+
kind: 'kit' | 'bundle';
|
|
245
|
+
title: {
|
|
246
|
+
zh: string;
|
|
247
|
+
en: string;
|
|
248
|
+
};
|
|
249
|
+
}): Promise<StudioInstance>;
|
|
373
250
|
list(input?: {
|
|
374
251
|
kind?: 'kit' | 'bundle';
|
|
375
252
|
}): Promise<readonly StudioInstance[]>;
|
|
@@ -401,8 +278,7 @@ interface StudioInstanceClient {
|
|
|
401
278
|
}): Promise<{
|
|
402
279
|
id: string;
|
|
403
280
|
revision: number;
|
|
404
|
-
|
|
405
|
-
recoverable: true;
|
|
281
|
+
trashed: true;
|
|
406
282
|
}>;
|
|
407
283
|
readFile(input: {
|
|
408
284
|
id: string;
|
|
@@ -419,6 +295,11 @@ interface StudioInstanceClient {
|
|
|
419
295
|
path: string;
|
|
420
296
|
content: string;
|
|
421
297
|
}): Promise<StudioInstance>;
|
|
298
|
+
/** Optional host capability; shares the same source record and CAS as saveFile. */
|
|
299
|
+
prepareChanges?(input: StudioInstanceChangeRequest): Promise<StudioInstanceCandidate>;
|
|
300
|
+
saveChanges?(input: StudioInstanceSaveChanges): Promise<StudioInstance & {
|
|
301
|
+
changeReceipt: StudioInstanceChangeReceipt;
|
|
302
|
+
}>;
|
|
422
303
|
preview(input: {
|
|
423
304
|
id: string;
|
|
424
305
|
expectedRevision: number;
|
|
@@ -434,6 +315,56 @@ interface StudioInstanceClient {
|
|
|
434
315
|
})[];
|
|
435
316
|
}): Promise<StudioInstance>;
|
|
436
317
|
}
|
|
318
|
+
interface InstanceWorkbenchProps {
|
|
319
|
+
client: StudioInstanceClient;
|
|
320
|
+
id: string;
|
|
321
|
+
locale: 'zh' | 'en';
|
|
322
|
+
onBack: () => void;
|
|
323
|
+
onChanged: (record?: StudioInstance) => void;
|
|
324
|
+
onExport?: (record: StudioInstance) => void;
|
|
325
|
+
renderPreview?: StudioAuthoring['renderPreview'];
|
|
326
|
+
/** Navigation may also protect host conversation input; export uses the canonical source state. */
|
|
327
|
+
onDirtyChange?: (dirty: boolean, state?: {
|
|
328
|
+
readonly sourceDirty: boolean;
|
|
329
|
+
}) => void;
|
|
330
|
+
/** Optional host contribution alongside the current source editor. Never owns its source state. */
|
|
331
|
+
renderSupplement?: (state: {
|
|
332
|
+
record?: StudioInstance;
|
|
333
|
+
dirty: boolean;
|
|
334
|
+
busy: boolean;
|
|
335
|
+
previewBundle?: DesignBundleVersionPin;
|
|
336
|
+
currentFile?: string;
|
|
337
|
+
intent?: 'create' | 'edit';
|
|
338
|
+
proposalReplacement?: {
|
|
339
|
+
/** Derived from this editor's drafts and save fence; grants no source/save authority. */
|
|
340
|
+
canReplace: () => boolean;
|
|
341
|
+
canDiscard: () => boolean;
|
|
342
|
+
/** Explicit user choice, using the ordinary discard confirmation and restoration. */
|
|
343
|
+
discard: () => boolean;
|
|
344
|
+
};
|
|
345
|
+
}) => ReactNode;
|
|
346
|
+
/** User's entry action; a prompt hint, never source or save authority. */
|
|
347
|
+
authoringIntent?: 'create' | 'edit';
|
|
348
|
+
/** Host composition only; ordinary catalog editors retain their standalone main. */
|
|
349
|
+
embedded?: boolean;
|
|
350
|
+
/** A host-verified proposal uses this workbench's existing file tree and save surface. */
|
|
351
|
+
sourceChanges?: {
|
|
352
|
+
prepared: StudioPreparedSourceChanges;
|
|
353
|
+
client: SourceCandidateOptions['client'];
|
|
354
|
+
onDismiss: () => void;
|
|
355
|
+
onSaved?: (record: StudioInstance) => void;
|
|
356
|
+
};
|
|
357
|
+
/** Read-only browsing never activates host authoring or source mutation controls. */
|
|
358
|
+
readOnly?: boolean;
|
|
359
|
+
onEdit?: () => void;
|
|
360
|
+
initialView?: 'files' | 'preview';
|
|
361
|
+
/** Exact host handoff. A Kit without a Bundle pin starts in its source view. */
|
|
362
|
+
initialSelection?: {
|
|
363
|
+
expectedRevision: number;
|
|
364
|
+
bundle?: DesignBundleVersionPin;
|
|
365
|
+
};
|
|
366
|
+
}
|
|
367
|
+
declare function InstanceWorkbench({ client, id, locale, onBack, onChanged, onExport, renderPreview, onDirtyChange, renderSupplement, authoringIntent, embedded, readOnly, onEdit, initialView, initialSelection, sourceChanges }: InstanceWorkbenchProps): ReactElement;
|
|
437
368
|
//#endregion
|
|
438
369
|
//#region src/ComponentLibrary.d.ts
|
|
439
370
|
interface StudioComponentEntry {
|
|
@@ -484,109 +415,115 @@ interface StudioComponentLibrary {
|
|
|
484
415
|
}) => ReactElement;
|
|
485
416
|
}
|
|
486
417
|
//#endregion
|
|
487
|
-
//#region src/
|
|
488
|
-
interface
|
|
418
|
+
//#region src/content-transfer.d.ts
|
|
419
|
+
interface StudioInstanceExportTarget {
|
|
489
420
|
id: string;
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
name: string;
|
|
493
|
-
version: string;
|
|
494
|
-
};
|
|
495
|
-
validation: {
|
|
496
|
-
valid: boolean;
|
|
497
|
-
diagnostics: readonly {
|
|
498
|
-
code: string;
|
|
499
|
-
message: string;
|
|
500
|
-
}[];
|
|
501
|
-
};
|
|
502
|
-
executionGranted: false;
|
|
503
|
-
requiresTrustReview: boolean;
|
|
421
|
+
expectedRevision: number;
|
|
422
|
+
title: string;
|
|
504
423
|
}
|
|
505
|
-
|
|
424
|
+
type StudioContentExportInput = {
|
|
425
|
+
provenance?: {
|
|
426
|
+
source?: string;
|
|
427
|
+
license?: string;
|
|
428
|
+
};
|
|
429
|
+
} & ({
|
|
430
|
+
kind: 'kit' | 'bundle';
|
|
431
|
+
pin: DesignKitVersionPin;
|
|
432
|
+
id?: never;
|
|
433
|
+
expectedRevision?: never;
|
|
434
|
+
} | {
|
|
506
435
|
id: string;
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
}
|
|
512
|
-
interface StudioContentAdoptionResult {
|
|
513
|
-
importId: string;
|
|
514
|
-
contents: readonly {
|
|
515
|
-
kind: 'kit' | 'bundle';
|
|
516
|
-
pin: {
|
|
517
|
-
name: string;
|
|
518
|
-
version: string;
|
|
519
|
-
};
|
|
520
|
-
}[];
|
|
521
|
-
/** Only Kit adoption creates a new unconfirmed working copy. */
|
|
522
|
-
draft?: StudioKitDraftRecord;
|
|
523
|
-
executionGranted: false;
|
|
524
|
-
requiresTrustReview: boolean;
|
|
525
|
-
}
|
|
436
|
+
expectedRevision: number;
|
|
437
|
+
kind?: never;
|
|
438
|
+
pin?: never;
|
|
439
|
+
});
|
|
526
440
|
interface StudioContentClient {
|
|
527
|
-
export(input:
|
|
528
|
-
|
|
529
|
-
pin: DesignKitVersionPin;
|
|
530
|
-
provenance: {
|
|
531
|
-
source: string;
|
|
532
|
-
license: string;
|
|
533
|
-
};
|
|
534
|
-
}): Promise<string>;
|
|
535
|
-
prepare(input: {
|
|
441
|
+
export(input: StudioContentExportInput): Promise<string>;
|
|
442
|
+
readArchive(input: {
|
|
536
443
|
source: string;
|
|
537
|
-
}): Promise<
|
|
538
|
-
list(): Promise<readonly StudioContentImportSummary[]>;
|
|
539
|
-
read(input: {
|
|
540
|
-
id: string;
|
|
541
|
-
}): Promise<StudioContentImportRecord>;
|
|
542
|
-
adopt(input: {
|
|
543
|
-
id: string;
|
|
544
|
-
}): Promise<StudioContentAdoptionResult>;
|
|
444
|
+
}): Promise<StudioContentArchive>;
|
|
545
445
|
}
|
|
546
446
|
/** HTTP counts the JSON wrapper and escaping too, not just the uploaded file. */
|
|
547
447
|
declare function assertStudioImportRequestSize(source: string): void;
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
items: readonly StudioContentImportSummary[];
|
|
561
|
-
record?: StudioContentImportRecord;
|
|
562
|
-
error?: string;
|
|
448
|
+
//#endregion
|
|
449
|
+
//#region src/trial-controller.d.ts
|
|
450
|
+
/** Trial transport: hosts own snapshots, isolation and native execution. */
|
|
451
|
+
type StudioTrialSource = {
|
|
452
|
+
readonly kind: 'installed' | 'panel-draft';
|
|
453
|
+
readonly kit: {
|
|
454
|
+
readonly name: string;
|
|
455
|
+
readonly version: string;
|
|
456
|
+
};
|
|
457
|
+
readonly bundle: {
|
|
458
|
+
readonly name: string;
|
|
459
|
+
readonly version: string;
|
|
563
460
|
};
|
|
564
|
-
|
|
461
|
+
readonly id?: string;
|
|
462
|
+
readonly expectedRevision?: number;
|
|
463
|
+
};
|
|
464
|
+
interface StudioTrialRecord {
|
|
465
|
+
readonly locale?: 'zh-CN' | 'en-US';
|
|
466
|
+
readonly id: string;
|
|
467
|
+
readonly createdAt?: string;
|
|
468
|
+
readonly source: StudioTrialSource;
|
|
469
|
+
readonly status: 'preparing' | 'queued' | 'running' | 'waiting' | 'completed' | 'failed' | 'stopped' | 'unknown';
|
|
470
|
+
readonly task?: string;
|
|
471
|
+
readonly inputMode?: 'generated' | 'manual';
|
|
472
|
+
readonly sourceLabel: string;
|
|
473
|
+
readonly projectLabel: string;
|
|
474
|
+
readonly resultUrl?: string;
|
|
475
|
+
readonly message?: string;
|
|
476
|
+
}
|
|
477
|
+
interface StudioTrialClient {
|
|
478
|
+
/** Transport/session evidence only; never a model turn or execution receipt. */
|
|
479
|
+
checkConnection?(): Promise<{
|
|
480
|
+
status: 'available' | 'unavailable' | 'unknown';
|
|
481
|
+
}>;
|
|
482
|
+
panelUrl?(record: StudioTrialRecord): string | undefined;
|
|
483
|
+
list(): Promise<readonly StudioTrialRecord[]>;
|
|
484
|
+
start(input: {
|
|
485
|
+
source: StudioTrialSource;
|
|
486
|
+
task?: string;
|
|
487
|
+
locale?: 'zh-CN' | 'en-US';
|
|
488
|
+
}): Promise<StudioTrialRecord>;
|
|
489
|
+
read(id: string): Promise<StudioTrialRecord>;
|
|
490
|
+
stop(id: string): Promise<StudioTrialRecord>;
|
|
491
|
+
remove(id: string): Promise<void>;
|
|
492
|
+
}
|
|
493
|
+
interface StudioTrialState {
|
|
494
|
+
readonly busy: boolean;
|
|
495
|
+
readonly history?: readonly StudioTrialRecord[];
|
|
496
|
+
readonly record?: StudioTrialRecord;
|
|
497
|
+
readonly error?: string;
|
|
498
|
+
}
|
|
499
|
+
/** Bounded non-generating probe. Legacy/invalid evidence is unknown, not ready. */
|
|
500
|
+
declare function checkStudioTrialConnection(client: StudioTrialClient, timeoutMs?: number): Promise<'available' | 'unavailable' | 'unknown'>;
|
|
501
|
+
declare const trialActive: (record?: StudioTrialRecord) => boolean;
|
|
502
|
+
/** Do not navigate to scripts, credentials or remote sites returned as a result. */
|
|
503
|
+
declare function localTrialUrl(value?: string): string | undefined;
|
|
504
|
+
declare class StudioTrialController {
|
|
505
|
+
private readonly client;
|
|
506
|
+
private state;
|
|
507
|
+
private listeners;
|
|
508
|
+
private generation;
|
|
509
|
+
private reading;
|
|
510
|
+
private recovered;
|
|
511
|
+
private owns;
|
|
512
|
+
private readonly source;
|
|
513
|
+
constructor(client: StudioTrialClient, source: StudioTrialSource);
|
|
514
|
+
getSnapshot: () => StudioTrialState;
|
|
515
|
+
subscribe: (listener: () => void) => (() => void);
|
|
565
516
|
private update;
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
refresh(): Promise<
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
adopt(): Promise<StudioContentAdoptionResult | undefined>;
|
|
576
|
-
export(pin: DesignKitVersionPin, provenance: {
|
|
577
|
-
source: string;
|
|
578
|
-
license: string;
|
|
579
|
-
}): Promise<string | undefined>;
|
|
517
|
+
recover(): Promise<void>;
|
|
518
|
+
select(id: string): void;
|
|
519
|
+
start(task: string, locale?: 'zh-CN' | 'en-US'): Promise<void>;
|
|
520
|
+
/** Only an explicit first-open click requests native preparation, never mounting or polling. */
|
|
521
|
+
startExample(locale?: 'zh-CN' | 'en-US'): Promise<void>;
|
|
522
|
+
refresh(): Promise<void>;
|
|
523
|
+
stop(): Promise<void>;
|
|
524
|
+
remove(): Promise<void>;
|
|
525
|
+
private perform;
|
|
580
526
|
}
|
|
581
|
-
declare function ContentArchiveWorkbench({ client, installedKit, locale, canAdoptKit, onAdopt, onDirtyChange, onBack }: {
|
|
582
|
-
client: StudioContentClient;
|
|
583
|
-
installedKit?: DesignKitVersionPin;
|
|
584
|
-
locale: 'zh' | 'en';
|
|
585
|
-
canAdoptKit: boolean;
|
|
586
|
-
onAdopt: (result: StudioContentAdoptionResult) => void;
|
|
587
|
-
onDirtyChange: (dirty: boolean) => void;
|
|
588
|
-
onBack?: () => void;
|
|
589
|
-
}): ReactElement;
|
|
590
527
|
//#endregion
|
|
591
528
|
//#region src/StudioWorkspace.d.ts
|
|
592
529
|
/** Props accepted by embedded and companion Studio presentations. */
|
|
@@ -600,9 +537,20 @@ interface StudioWorkspaceProps {
|
|
|
600
537
|
readonly controller?: StudioWorkspaceController;
|
|
601
538
|
/** Explicit host capability; omitted hosts remain read-only. */
|
|
602
539
|
readonly authoring?: StudioAuthoring;
|
|
603
|
-
|
|
540
|
+
/** Sample-only rendering for saved instances, including ordinary read-only Open. */
|
|
541
|
+
readonly renderPreview?: StudioAuthoring['renderPreview'];
|
|
604
542
|
readonly trials?: StudioTrialClient;
|
|
605
543
|
readonly instances?: StudioInstanceClient;
|
|
544
|
+
/** Open one exact working copy supplied by the host, without selecting a latest revision or first Bundle. */
|
|
545
|
+
readonly initialInstance?: {
|
|
546
|
+
id: string;
|
|
547
|
+
expectedRevision: number;
|
|
548
|
+
bundle?: DesignBundleVersionPin;
|
|
549
|
+
};
|
|
550
|
+
/** Optional host presentation for an existing instance; nullish returns use the standard workbench. */
|
|
551
|
+
readonly renderInstanceWorkbench?: (props: InstanceWorkbenchProps) => ReactNode;
|
|
552
|
+
/** Only an explicit editable object enters host authoring; catalog browsing is never wrapped. */
|
|
553
|
+
readonly renderContent?: (content: ReactNode, context: StudioObjectAuthoringContext) => ReactNode;
|
|
606
554
|
/** Trusted host-owned catalog and sample-only shared renderer. */
|
|
607
555
|
readonly componentLibrary?: StudioComponentLibrary;
|
|
608
556
|
/** Optional host-owned shared choice control; no Panel implementation enters Studio UI. */
|
|
@@ -612,39 +560,96 @@ interface StudioWorkspaceProps {
|
|
|
612
560
|
/** Lets the host guard dialog closure as well as internal navigation. */
|
|
613
561
|
readonly onDraftDirtyChange?: (dirty: boolean) => void;
|
|
614
562
|
}
|
|
563
|
+
interface StudioObjectAuthoringContext {
|
|
564
|
+
readonly id: string;
|
|
565
|
+
readonly intent: 'create' | 'edit';
|
|
566
|
+
readonly initialPrompt?: string;
|
|
567
|
+
readonly onDirtyChange: (dirty: boolean) => void;
|
|
568
|
+
}
|
|
615
569
|
/** Read-only Studio surface: one complete page with global nav, sidebar, and workspace main. */
|
|
616
|
-
declare function StudioWorkspace({ client, controller: supplied, authoring,
|
|
570
|
+
declare function StudioWorkspace({ client, controller: supplied, authoring, renderPreview, trials, instances, initialInstance, renderInstanceWorkbench, renderContent, componentLibrary, renderSelect, contentClient, onDraftDirtyChange, locale: hostLocale, onLocaleChange }: StudioWorkspaceProps): ReactElement;
|
|
617
571
|
//#endregion
|
|
618
572
|
//#region src/styles.d.ts
|
|
619
|
-
/**
|
|
620
|
-
* Scoped responsive stylesheet for the shared Studio workspace.
|
|
621
|
-
*
|
|
622
|
-
* Composition follows the approved compact Studio demo; control typography,
|
|
623
|
-
* purple brand accents, neutral text and radii follow the Yugoo UI. The stylesheet is scoped so
|
|
624
|
-
* embedded and Companion hosts share it without importing a host/Core theme.
|
|
625
|
-
*/
|
|
626
|
-
declare const STUDIO_WORKSPACE_CSS = "\n.ygd-studio-component-browser{display:flex;flex:1;min-width:0;min-height:0;border-top:1px solid var(--ds-border)}\n.ygd-studio-component-directory{width:240px;flex-shrink:0;display:flex;flex-direction:column;gap:12px;padding:12px;border-right:1px solid var(--ds-border);min-height:0}\n.ygd-studio-component-directory>.ygd-studio-search-input{width:100%;min-width:0}\n.ygd-studio-component-catalog-tabs{display:flex;gap:4px;background:var(--ds-surface);border:1px solid var(--ds-border);border-radius:8px;padding:3px}\n.ygd-studio-component-catalog-tabs button{flex:1;min-width:0;border:0;border-radius:5px;padding:6px 4px;font:inherit;font-size:12px;background:transparent;color:var(--ds-text-secondary);cursor:pointer}\n.ygd-studio-component-catalog-tabs button[aria-selected=true]{background:var(--ds-primary-light);color:var(--ds-primary-dark)}\n.ygd-studio-component-list{overflow:auto;min-height:0;flex:1}\n.ygd-studio-component-directory-group summary{font-size:14px;font-weight:500;padding:8px;cursor:pointer}\n.ygd-studio-component-directory-item{display:flex;flex-direction:column;align-items:flex-start;width:calc(100% - 24px);margin-left:24px;gap:3px;padding:8px;border:0;border-radius:8px;background:transparent;color:var(--ds-text);text-align:left;font:inherit;font-size:14px;overflow-wrap:anywhere;cursor:pointer}\n.ygd-studio-component-directory-item:hover{background:var(--ds-bg-hover,#f5f4f9)}\n.ygd-studio-component-directory-item[aria-current=page]{background:var(--ds-primary-light);color:var(--ds-primary)}\n.ygd-studio-components code{font-family:var(--ds-mono-font,'Consolas',ui-monospace,monospace)}\n.ygd-studio-component-list code{display:block;font-size:11px;color:var(--ds-text-secondary);margin-top:2px}\n.ygd-studio-component-tree.dsh-panel-workspace-tree{padding:0;min-width:0}\n.ygd-studio-component-tree .dsh-panel-workspace-tree-group{width:auto;padding:0;border:0}\n.ygd-studio-component-tree .dsh-panel-workspace-tree-body{display:grid;gap:4px}\n.ygd-studio-component-detail{display:flex;flex-direction:column;flex:1;min-width:0;min-height:0}\n.ygd-studio-component-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:16px 20px 12px}\n.ygd-studio-component-heading>div{display:flex;align-items:baseline;flex-wrap:wrap;gap:8px}\n.ygd-studio-component-heading h2{font-size:18px;line-height:24px;font-weight:500}\n.ygd-studio-component-heading code,.ygd-studio-component-support{font-size:12px;color:var(--ds-text-secondary);overflow-wrap:anywhere}\n.ygd-studio-component-toolbar{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:0 20px;border-bottom:1px solid var(--ds-border)}\n.ygd-studio-component-actions{display:flex;align-items:center;flex-wrap:wrap;gap:8px}\n.ygd-studio-component-library-version{font-family:var(--ds-body-font);font-size:12px;font-variant-numeric:tabular-nums;line-height:20px;padding:2px 8px;border-radius:6px;background:var(--ds-primary-light);color:var(--ds-text-secondary)}\n.ygd-studio-component-tabs{display:flex;gap:20px}\n.ygd-studio-component-tabs button{border:0;border-bottom:2px solid transparent;background:transparent;padding:10px 0;font:inherit;font-size:14px;color:var(--ds-text-secondary);cursor:pointer}\n.ygd-studio-component-tabs button[aria-selected=true]{border-color:var(--ds-primary);color:var(--ds-primary)}\n.ygd-studio-component-content{display:flex;flex-direction:column;flex:1;min-height:0;min-width:0;overflow:hidden}\n.ygd-studio-component-preview{flex:1;min-width:0;min-height:0;overflow:auto;display:flex;flex-direction:column;padding:16px;background:var(--ds-background)}\n.ygd-studio-component-stage{width:100%;min-width:0;border:1px solid var(--ds-border);border-radius:8px;background:var(--ds-surface)}\n.ygd-studio-component-preview-inline .ygd-studio-component-stage{max-width:880px;margin:0 auto;padding:16px}\n.ygd-studio-component-preview-navigation .ygd-studio-component-stage{max-width:360px;padding:12px;min-height:240px}\n.ygd-studio-component-preview-inline .dsh-design-panel,.ygd-studio-component-preview-navigation .dsh-design-panel{height:auto;min-height:0}\n.ygd-studio-component-preview-workspace{overflow:hidden}\n.ygd-studio-component-preview-workspace .ygd-studio-component-stage{display:flex;flex-direction:column;flex:1;min-height:0;overflow:hidden}\n.ygd-studio-component-preview-workspace .dsh-design-dock-panel-body{flex:1;min-height:0;overflow:hidden}\n.ygd-studio-component-preview-workspace .dsh-design-panel{height:100%;min-height:0}\n.ygd-studio-component-library-info{max-width:760px;padding:8px 20px 24px;overflow:auto;display:flex;flex-direction:column;gap:24px;font-size:14px;line-height:1.6}\n.ygd-studio-component-library-info dl{margin:0;border-top:1px solid var(--ds-border)}\n.ygd-studio-component-library-info dl>div{display:grid;grid-template-columns:112px minmax(0,1fr);gap:12px;padding:12px 0;border-bottom:1px solid var(--ds-border)}\n.ygd-studio-component-library-info dt{color:var(--ds-text-secondary)}\n.ygd-studio-component-library-info dd{margin:0;overflow-wrap:anywhere}\n.ygd-studio-component-library-info code{font-size:12px}\n.ygd-studio-component-library-note{color:var(--ds-text-secondary);font-size:12px}\n.ygd-studio-component-doc{padding:16px 20px;display:flex;flex-direction:column;gap:16px;overflow:auto;min-width:0;line-height:1.6;font-size:14px}\n.ygd-studio-component-doc pre{font-size:12px;line-height:1.65;white-space:pre-wrap;overflow-wrap:anywhere;background:var(--ds-bg-secondary,#f7f7f9);border:1px solid var(--ds-border);border-radius:8px;padding:12px;margin:0}\n.ygd-studio-component-doc h3{font-size:14px;font-weight:500}\n.ygd-studio-component-doc summary{cursor:pointer}\n.ygd-studio-component-feedback{padding:8px 20px;color:var(--ds-text-secondary);font-size:12px}\n.ygd-studio-component-feedback[role=alert]{color:var(--ds-danger,#bd3540)}\n.ygd-studio-component-unavailable{margin:auto;padding:24px;max-width:480px;display:flex;flex-direction:column;align-items:flex-start;gap:16px;font-size:14px;line-height:1.6}\n.ygd-studio-component-unavailable h3{font-size:16px;font-weight:500}\n@media(max-width:760px){.ygd-studio-component-directory{width:180px}.ygd-studio-component-heading{align-items:flex-start;flex-direction:column;padding:12px}.ygd-studio-component-toolbar{padding:0 12px 8px;flex-wrap:wrap}.ygd-studio-component-preview{padding:12px}.ygd-studio-component-library-info dl>div{grid-template-columns:1fr;gap:4px}}\n@media(max-width:480px){.ygd-studio-component-directory{width:140px;padding:8px}.ygd-studio-component-tabs{gap:12px}.ygd-studio-component-tabs button{font-size:12px}.ygd-studio-component-list button{font-size:12px}.ygd-studio-component-doc{padding:12px}}\n.ygd-studio-back{display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;width:28px;height:28px;padding:0;border:0;border-radius:6px;background:transparent;color:var(--ds-text-secondary);cursor:pointer}\n.ygd-studio-back:hover{background:var(--ds-primary-light);color:var(--ds-primary)}\n.ygd-studio-back:focus-visible{outline:2px solid var(--ds-primary);outline-offset:2px}\n.ygd-studio-header-title-group:has(>.ygd-studio-back){padding-left:0;flex-wrap:nowrap}\n.ygd-studio-header-title-group:has(>.ygd-studio-back)>.ygd-studio-kitmark{position:static;flex-shrink:0}\n.ygd-studio-loading{display:flex;align-items:center;justify-content:center;flex:1;min-height:96px;width:100%;align-self:stretch}\n.ygd-studio-spinner{position:relative;display:inline-block;overflow:hidden;width:180px;height:2px;background:var(--ds-primary-light,#e5f0ed)}\n.ygd-studio-spinner::before{content:'';position:absolute;inset:0 auto 0 0;width:34%;background:var(--ds-primary,#3f9e8b);animation:ygd-studio-progress 1.6s ease-in-out infinite}\n@keyframes ygd-studio-progress{0%{transform:translateX(-110%);opacity:.45}50%{opacity:1}100%{transform:translateX(310%);opacity:.45}}\n@media(prefers-reduced-motion:reduce){.ygd-studio-spinner::before{animation:none;width:100%;opacity:.8}}\n.ygd-studio-trial{margin-top:8px;font-size:14px}\n.ygd-studio-trial .ygd-studio-summary-card{display:grid;gap:8px;margin-top:8px;padding:12px;border:1px solid #e8e8e8;border-radius:8px;background:#fff;box-shadow:none}\n.ygd-studio-trial button{min-height:32px;padding:5px 10px;border:1px solid #e8e8e8;border-radius:8px;background:#f7f7f7;color:#272727;font:inherit;cursor:pointer;width:fit-content}\n.ygd-studio-trial button:disabled{opacity:.5;cursor:default}\n.ygd-studio-trial textarea{display:block;margin-top:6px;padding:8px;border:1px solid #dfdfdf;border-radius:8px;font:inherit;background:#fff;color:#272727;resize:vertical}\n.ygd-studio-trial small{color:#6d6d6d;overflow-wrap:anywhere}\n.ygd-studio-trial button:focus-visible,.ygd-studio-trial textarea:focus-visible{outline:2px solid var(--ds-primary);outline-offset:2px}\n.ygd-studio-workspace{\n --ds-primary:#7c5af6;--ds-primary-light:#f7f4fe;--ds-primary-dark:#6849d8;--ds-primary-active:#5032bc;\n --ds-secondary:#64748B;--ds-accent:#0EA5E9;\n --ds-background:#F7F7F7;--ds-surface:#FFFFFF;\n --ds-text:#272727;--ds-text-secondary:#6d6d6d;--ds-border:#E8E8E8;\n --ds-success:#059669;--ds-warning:#D97706;--ds-error:#DC2626;--ds-info:#0284C7;\n --ds-heading-font:'PingFang SC',-apple-system,BlinkMacSystemFont,'Segoe UI','Microsoft YaHei',sans-serif;\n --ds-body-font:'PingFang SC',-apple-system,BlinkMacSystemFont,'Segoe UI','Microsoft YaHei',sans-serif;\n --ds-mono-font:'JetBrains Mono','Fira Code','Consolas',monospace;\n --ds-base-font-size:14px;--ds-heading-weight:600;--ds-line-height:1.5;\n --ds-radius:8px;\n --ds-shadow:0 1px 3px rgba(0,0,0,.03);\n --ds-density-padding:12px;\n --ds-duration-fast:120ms;--ds-duration-normal:200ms;\n --ds-space-1:4px;--ds-space-2:8px;--ds-space-3:12px;--ds-space-4:16px;--ds-space-5:24px;--ds-space-6:32px;\n --ds-z-drawer:30;\n box-sizing:border-box;display:flex;flex-direction:column;width:100%;height:100%;min-height:24rem;\n background:var(--ds-background);color:var(--ds-text);\n font-family:var(--ds-body-font);font-size:var(--ds-base-font-size);line-height:var(--ds-line-height)}\n.ygd-studio-workspace *{box-sizing:border-box}\n.ygd-studio-workspace .ygd-studio-select{\n --ds-bg-white:var(--ds-surface);--ds-fill-5:var(--ds-border);--ds-border-default:var(--ds-border);\n --ds-text-primary:var(--ds-text);--ds-icon-outline-default:var(--ds-text-secondary);\n --ds-brand-light-bg-default:var(--ds-primary-light);--ds-brand-text-primary:var(--ds-primary-dark);\n --ds-radius-4:var(--ds-radius);--ygd-panel-control-focus:var(--ds-primary);\n display:inline-flex;align-items:center;justify-content:space-between;gap:8px;min-width:0;max-width:100%;height:32px;\n padding:4px 10px;border:1px solid var(--ds-border);border-radius:var(--ds-radius);background:var(--ds-surface);color:var(--ds-text);font:inherit;line-height:20px;text-align:start;cursor:pointer}\n.ygd-studio-select:focus-visible{outline:2px solid var(--ds-primary);outline-offset:2px}\n.ygd-studio-select:disabled{cursor:not-allowed;opacity:.6}\nbutton.ygd-studio-select>span:first-child{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}\nbutton.ygd-studio-select>span:last-child{display:flex;flex:none;align-items:center;color:var(--ds-text-secondary)}\n.ygd-studio-workspace h1,.ygd-studio-workspace h2,.ygd-studio-workspace h3,.ygd-studio-workspace h4,.ygd-studio-workspace p,.ygd-studio-workspace ul,.ygd-studio-workspace ol{margin:0}\n\n/* Narrow-viewport drawer toggle; positioned by the responsive block below */\n.ygd-studio-menu-btn{display:none;align-items:center;justify-content:center;width:28px;height:28px;border:1px solid var(--ds-border);\n background:var(--ds-surface);cursor:pointer;color:var(--ds-text-secondary);font-size:16px;border-radius:var(--ds-radius);\n box-shadow:var(--ds-shadow)}\n.ygd-studio-menu-btn:hover{background:var(--ds-background);color:var(--ds-text)}\n\n/* Shell */\n.ygd-studio-body{display:flex;flex:1;min-height:0}\n.ygd-studio-sidebar{width:176px;padding:20px 12px 12px;flex-shrink:0;background:var(--ds-background);border-right:1px solid var(--ds-border);\n display:flex;flex-direction:column;overflow-y:auto}\n.ygd-studio-sidebar-logo{padding:0 6px 24px;font-family:var(--ds-heading-font);\n font-weight:var(--ds-heading-weight);font-size:18px;color:var(--ds-text);letter-spacing:-.6px;white-space:nowrap}\n.ygd-studio-sidebar-nav{padding:var(--ds-space-2) 0}\n.ygd-studio-sidebar-item{display:block;width:100%;padding:8px 10px;margin:2px 0;min-height:36px;border-radius:8px;font-size:14px;\n color:var(--ds-text-secondary);cursor:pointer;border:none;background:none;text-align:left;font-family:var(--ds-body-font);\n transition:color var(--ds-duration-fast),background var(--ds-duration-fast)}\n.ygd-studio-sidebar-item:hover{color:var(--ds-text);background:var(--ds-background)}\n.ygd-studio-sidebar-item[aria-current=\"page\"]{color:var(--ds-primary-dark);background:var(--ds-primary-light);font-weight:500}\n.ygd-studio-stage{display:flex;flex:1;flex-direction:column;min-width:0;min-height:0}\n.ygd-studio-topbar{height:46px;flex-shrink:0;display:flex;align-items:center;justify-content:space-between;padding:0 20px;border-bottom:1px solid var(--ds-border);background:#fff;font-size:12px;color:var(--ds-text-secondary)}\n.ygd-studio-topbar span span{padding:0 10px;color:#b2b2b2}\n.ygd-studio-topbar-actions{display:flex;align-items:center;gap:12px}\n.ygd-studio-language{display:flex;align-items:center;padding:2px;border:1px solid var(--ds-border);border-radius:var(--ds-radius);background:var(--ds-background)}\n.ygd-studio-sidebar-footer{margin-top:auto;padding:16px 0 0;display:flex;flex-direction:column;align-items:flex-start;gap:12px}\n.ygd-studio-sidebar-utilities{width:100%}\n.ygd-studio-sidebar-footer>.ygd-studio-language{margin-left:4px}\n.ygd-studio-language button{height:30px;min-width:38px;padding:0 8px;border:0;border-radius:4px;background:transparent;color:var(--ds-text-secondary);font:400 14px/20px var(--ds-body-font);cursor:pointer}\n.ygd-studio-language button[aria-pressed=\"true\"]{background:var(--ds-primary-light);color:var(--ds-primary-dark);font-weight:500}\n.ygd-studio-language button:focus-visible{outline:2px solid var(--ds-primary);outline-offset:1px}\n.ygd-studio-main{flex:1;display:flex;flex-direction:column;min-width:0;overflow:hidden}\n\n/* Content header */\n.ygd-studio-content-header{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px 12px;\n min-height:48px;padding:8px 20px;background:transparent;border-bottom:0;flex-shrink:0}\n.ygd-studio-header-title-group{display:flex;align-items:center;gap:var(--ds-space-2);flex-wrap:nowrap;min-height:32px;min-width:0}\n.ygd-studio-header-title-group>.ygd-studio-kitmark{position:static;width:32px;height:32px;border-radius:8px}\n.ygd-studio-header-title-group>.ygd-studio-kitmark svg{width:20px;height:20px}\n.ygd-studio-header-title-group>.ygd-studio-search-input{height:32px;min-height:32px;min-width:0}\n.ygd-studio-page-title{font-family:var(--ds-heading-font);font-weight:500;font-size:18px;line-height:24px;color:var(--ds-text);letter-spacing:-.5px;min-width:0;overflow-wrap:anywhere}\n.ygd-studio-subtitle{font-size:12px;color:var(--ds-text-secondary);margin:0}\n.ygd-studio-context-label{display:none}\n.ygd-studio-version-badge{font-size:11px;padding:2px 8px;border-radius:var(--ds-radius);background:var(--ds-background);\n border:1px solid var(--ds-border);color:var(--ds-text-secondary);white-space:nowrap}\n.ygd-studio-readonly-badge{font-size:11px;padding:2px 8px;border-radius:var(--ds-radius);background:var(--ds-background);\n border:1px solid var(--ds-border);color:var(--ds-text-secondary);white-space:nowrap;font-weight:500}\n.ygd-studio-mounted-ref{font-size:11px;color:var(--ds-text-secondary);display:flex;align-items:center;gap:var(--ds-space-1)}\n.ygd-studio-mounted-ref strong{color:var(--ds-text);font-weight:500}\n.ygd-studio-breadcrumb{display:flex;align-items:center;gap:var(--ds-space-2);font-size:12px;color:var(--ds-text-secondary)}\n.ygd-studio-breadcrumb-sep{color:var(--ds-border)}\n.ygd-studio-breadcrumb-current{color:var(--ds-text);font-weight:500}\n.ygd-studio-breadcrumb-button{border:none;background:none;padding:0;font:inherit;color:inherit;cursor:pointer}\n.ygd-studio-breadcrumb-button:hover{color:var(--ds-primary)}\n\n/* Workplane tabs */\n.ygd-studio-workplane-bar{display:flex;gap:23px;border-bottom:1px solid var(--ds-border);background:transparent;\n margin:0 20px 14px;padding:0;flex-shrink:0;flex-wrap:wrap}\n.ygd-studio-workplane-tab{padding:0 2px 9px;font-size:13px;font-weight:500;\n color:var(--ds-text-secondary);cursor:pointer;border:none;background:none;border-bottom:2px solid transparent;\n font-family:var(--ds-body-font);transition:color var(--ds-duration-fast),border-color var(--ds-duration-fast)}\n.ygd-studio-workplane-tab:hover{color:var(--ds-text)}\n.ygd-studio-workplane-tab[aria-selected=\"true\"],.ygd-studio-workplane-tab[aria-pressed=\"true\"]{color:var(--ds-primary);border-bottom-color:var(--ds-primary)}\n\n/* Content body */\n.ygd-studio-content-body{flex:1;min-height:0;overflow-y:auto;padding:0 20px 18px;display:flex;flex-direction:column}\n/* File workspaces own their shared outer margins; do not add a second Kit inset. */\n.ygd-studio-kit-files-body{padding:0;overflow:hidden}\n\n/* Bundle search */\n.ygd-studio-search{margin-bottom:var(--ds-space-4);max-width:400px}\n.ygd-studio-search-input{width:100%;height:34px;min-height:34px;margin:0;padding:0 10px;font-size:13px;\n font-family:var(--ds-body-font);color:var(--ds-text);background:var(--ds-surface);\n border:1px solid var(--ds-border);border-radius:var(--ds-radius);outline:none;\n transition:border-color var(--ds-duration-fast)}\n.ygd-studio-search-input:focus{border-color:var(--ds-primary)}\n.ygd-studio-search-input::placeholder{color:var(--ds-text-secondary)}\n\n/* Shared Kit / Bundle catalog cards */\n.ygd-studio-kits-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:12px}\n.ygd-studio-kit-card{background:var(--ds-surface);border:1px solid var(--ds-border);border-radius:var(--ds-radius);\n padding:15px;display:flex;flex-direction:column;gap:0;min-width:0;text-align:left;font:inherit;color:inherit;\n cursor:pointer;transition:box-shadow var(--ds-duration-fast)}\n.ygd-studio-kit-card:hover{box-shadow:var(--ds-shadow)}\n.ygd-studio-kit-card-header{display:flex;align-items:flex-start;justify-content:space-between;gap:var(--ds-space-2)}\n.ygd-studio-kit-card-name{font-family:var(--ds-heading-font);font-weight:var(--ds-heading-weight);font-size:15px;color:var(--ds-text)}\n.ygd-studio-kit-card-meta{display:flex;flex-direction:column;gap:var(--ds-space-1)}\n.ygd-studio-kit-card-meta-row{font-size:12px;color:var(--ds-text-secondary);display:flex;align-items:center;gap:var(--ds-space-2)}\n.ygd-studio-meta-label{color:var(--ds-text-secondary);min-width:80px}\n.ygd-studio-meta-value{color:var(--ds-text)}\n.ygd-studio-kit-card-actions{margin-top:var(--ds-space-1);padding-top:var(--ds-space-3);border-top:1px solid var(--ds-border)}\n.ygd-studio-btn-primary{display:inline-flex;align-items:center;gap:var(--ds-space-2);padding:var(--ds-space-2) var(--ds-space-3);\n font-size:12px;font-weight:500;font-family:var(--ds-body-font);color:#fff;background:var(--ds-primary);border:none;\n border-radius:var(--ds-radius);cursor:pointer;transition:background var(--ds-duration-fast)}\n.ygd-studio-btn-primary:hover{background:var(--ds-primary-dark)}\n.ygd-studio-btn-primary:active{background:var(--ds-primary-active)}\n.ygd-studio-trial button.ygd-studio-btn-primary{background:var(--ds-primary);color:#fff;border-color:transparent}\n.ygd-studio-trial button.ygd-studio-btn-primary:hover{background:var(--ds-primary-dark)}\n.ygd-studio-trial button.ygd-studio-btn-primary:active{background:var(--ds-primary-active)}\n.ygd-studio-btn-link{font-size:12px;color:var(--ds-primary);cursor:pointer;border:none;background:none;\n font-family:var(--ds-body-font);padding:var(--ds-space-1) var(--ds-space-2);border-radius:var(--ds-radius);\n transition:background var(--ds-duration-fast)}\n.ygd-studio-btn-link:hover{background:var(--ds-background)}\n\n/* Empty state */\n.ygd-studio-empty{display:flex;flex-direction:column;align-items:center;justify-content:center;\n padding:var(--ds-space-6);text-align:center;color:var(--ds-text-secondary);font-size:14px}\n\n/* Bundle items */\n.ygd-studio-bundles-list{display:flex;flex-direction:column;gap:var(--ds-space-3)}\n.ygd-studio-bundle-item{display:flex;align-items:center;justify-content:space-between;gap:var(--ds-space-3);\n background:var(--ds-surface);border:1px solid var(--ds-border);border-radius:var(--ds-radius);\n padding:var(--ds-space-3) var(--ds-space-4);transition:box-shadow var(--ds-duration-fast)}\n.ygd-studio-bundle-item:hover{box-shadow:var(--ds-shadow)}\n.ygd-studio-bundle-info{display:flex;flex-direction:column;gap:var(--ds-space-1);min-width:0;flex:1}\n.ygd-studio-bundle-name-row{display:flex;align-items:center;gap:var(--ds-space-2);flex-wrap:wrap}\n.ygd-studio-bundle-name{font-weight:500;font-size:14px;color:var(--ds-text)}\n.ygd-studio-bundle-id{font-family:var(--ds-mono-font);font-size:11px;color:var(--ds-text-secondary)}\n.ygd-studio-bundle-purpose{font-size:12px;color:var(--ds-text-secondary)}\n.ygd-studio-bundle-item-card{align-items:flex-start}\n.ygd-studio-card-description{font-size:12px;line-height:1.6;color:var(--ds-text-secondary);display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}\n.ygd-studio-card-description .ygd-studio-markdown{max-width:none;font-size:12px;line-height:1.6;color:var(--ds-text-secondary)}\n.ygd-studio-card-description .ygd-studio-markdown p,\n.ygd-studio-card-description .ygd-studio-markdown ul,\n.ygd-studio-card-description .ygd-studio-markdown ol{margin-bottom:var(--ds-space-1)}\n.ygd-studio-card-description .ygd-studio-markdown ul,\n.ygd-studio-card-description .ygd-studio-markdown ol{padding-left:var(--ds-space-4)}\n.ygd-studio-card-description .ygd-studio-markdown li{margin-bottom:2px}\n.ygd-studio-card-description .ygd-studio-markdown strong{color:var(--ds-text);font-weight:600}\n.ygd-studio-bundle-actions{flex-shrink:0}\n\n/* Document toolbar (rich/source toggle) */\n.ygd-studio-doc-toolbar{display:flex;align-items:center;gap:var(--ds-space-2);margin-bottom:var(--ds-space-3);flex-shrink:0}\n.ygd-studio-doc-toggle-group{display:inline-flex;border:1px solid var(--ds-border);border-radius:var(--ds-radius);\n overflow:hidden;background:var(--ds-surface)}\n.ygd-studio-doc-toggle{padding:var(--ds-space-1) var(--ds-space-3);font-size:12px;line-height:18px;border:none;\n background:var(--ds-surface);color:var(--ds-text-secondary);cursor:pointer;font-family:var(--ds-body-font);\n transition:color var(--ds-duration-fast),background var(--ds-duration-fast)}\n.ygd-studio-doc-toggle+.ygd-studio-doc-toggle{border-left:1px solid var(--ds-border)}\n.ygd-studio-doc-toggle:hover{color:var(--ds-text);background:var(--ds-background)}\n.ygd-studio-doc-toggle[aria-pressed=\"true\"]{background:var(--ds-primary);color:#fff}\n.ygd-studio-doc-meta{margin-left:auto;font-size:11px;color:var(--ds-text-secondary);font-family:var(--ds-mono-font)}\n\n/* Frontmatter + rich markdown */\n.ygd-studio-frontmatter{background:var(--ds-background);border:1px solid var(--ds-border);border-radius:var(--ds-radius);\n padding:var(--ds-space-3) var(--ds-space-4);margin-bottom:var(--ds-space-4);font-family:var(--ds-mono-font);\n font-size:12px;line-height:1.6;color:var(--ds-text-secondary);white-space:pre-wrap;word-break:break-word}\n.ygd-studio-markdown{max-width:800px;font-size:var(--ds-base-font-size);line-height:1.7;color:var(--ds-text)}\n.ygd-studio-markdown h1{font-family:var(--ds-heading-font);font-weight:var(--ds-heading-weight);font-size:20px;margin-bottom:var(--ds-space-3)}\n.ygd-studio-markdown h2{font-family:var(--ds-heading-font);font-weight:var(--ds-heading-weight);font-size:16px;margin-top:var(--ds-space-5);margin-bottom:var(--ds-space-2)}\n.ygd-studio-markdown h3,.ygd-studio-markdown h4{font-family:var(--ds-heading-font);font-weight:var(--ds-heading-weight);font-size:14px;margin-top:var(--ds-space-4);margin-bottom:var(--ds-space-2)}\n.ygd-studio-markdown p{margin-bottom:var(--ds-space-3)}\n.ygd-studio-markdown ul,.ygd-studio-markdown ol{margin-bottom:var(--ds-space-3);padding-left:var(--ds-space-5)}\n.ygd-studio-markdown li{margin-bottom:var(--ds-space-1)}\n.ygd-studio-markdown code{font-family:var(--ds-mono-font);font-size:12px;background:var(--ds-background);padding:1px 4px;border-radius:3px;color:var(--ds-text)}\n.ygd-studio-markdown pre{background:var(--ds-background);border:1px solid var(--ds-border);border-radius:var(--ds-radius);\n padding:var(--ds-space-3);margin-bottom:var(--ds-space-4);font-family:var(--ds-mono-font);font-size:12px;line-height:1.6;overflow-x:auto}\n.ygd-studio-markdown pre code{background:none;padding:0}\n.ygd-studio-markdown-table-scroll{max-width:100%;overflow-x:auto;margin-bottom:var(--ds-space-4);border:1px solid var(--ds-border);border-radius:var(--ds-radius)}\n.ygd-studio-markdown-table-scroll:focus-visible{outline:2px solid var(--ds-primary);outline-offset:2px}\n.ygd-studio-markdown table{width:100%;border-collapse:collapse;font-size:inherit;line-height:1.6}\n.ygd-studio-markdown th,.ygd-studio-markdown td{padding:8px 12px;text-align:left;vertical-align:top;overflow-wrap:anywhere;border-bottom:1px solid var(--ds-border)}\n.ygd-studio-markdown th{background:var(--ds-background);font-weight:600}\n.ygd-studio-markdown th+th,.ygd-studio-markdown td+td{border-left:1px solid var(--ds-border)}\n.ygd-studio-markdown tbody tr:last-child td{border-bottom:0}\n.ygd-studio-markdown tbody tr:nth-child(even){background:var(--ds-background)}\n\n/* Code viewer with line numbers; fills the remaining height of its flex parent */\n.ygd-studio-code-frame{flex:1 1 auto;min-height:min(64vh,52rem);display:flex;flex-direction:column;\n background:var(--ds-surface);border:1px solid var(--ds-border);border-radius:var(--ds-radius);overflow:hidden}\n.ygd-studio-code-scroll{flex:1;min-height:0;overflow:auto;padding:var(--ds-space-4) 0}\n.ygd-studio-code-view{display:flex;font-family:var(--ds-mono-font);font-size:13px;line-height:1.6;color:var(--ds-text)}\n.ygd-studio-line-numbers{width:44px;flex-shrink:0;text-align:right;padding:0 var(--ds-space-3);color:var(--ds-text-secondary);\n font-size:12px;line-height:1.6;user-select:none;border-right:1px solid var(--ds-border);margin-right:var(--ds-space-3);white-space:pre}\n.ygd-studio-code-body{margin:0;padding:0 var(--ds-space-4) 0 0;white-space:pre-wrap;word-break:break-word;flex:1;min-width:0;\n font-family:var(--ds-mono-font);font-size:13px;line-height:1.6}\n\n/* Summaries */\n.ygd-studio-summary-panel{margin-top:var(--ds-space-5);border-top:1px solid var(--ds-border);padding-top:var(--ds-space-4)}\n.ygd-studio-summary-title{font-family:var(--ds-heading-font);font-weight:var(--ds-heading-weight);font-size:14px;color:var(--ds-text);margin-bottom:var(--ds-space-3)}\n.ygd-studio-summary-grid{display:grid;grid-template-columns:1fr 1fr;gap:var(--ds-space-4)}\n.ygd-studio-summary-card{background:var(--ds-background);border:1px solid var(--ds-border);border-radius:var(--ds-radius);padding:var(--ds-space-3)}\n.ygd-studio-summary-card-title{font-size:12px;font-weight:600;color:var(--ds-text-secondary);margin-bottom:var(--ds-space-2);text-transform:uppercase;letter-spacing:.03em}\n.ygd-studio-summary-field{display:flex;justify-content:space-between;gap:var(--ds-space-2);padding:var(--ds-space-1) 0;font-size:12px;border-bottom:1px solid var(--ds-border)}\n.ygd-studio-summary-field:last-child{border-bottom:none}\n.ygd-studio-summary-field-name{color:var(--ds-text)}\n.ygd-studio-summary-field-type{font-family:var(--ds-mono-font);color:var(--ds-text-secondary);font-size:11px}\n\n/* Native Panel readonly placeholder */\n.ygd-studio-panel-container{margin-top:var(--ds-space-5);border:1px solid var(--ds-border);border-radius:var(--ds-radius);overflow:hidden}\n.ygd-studio-panel-header{padding:var(--ds-space-2) var(--ds-space-3);background:var(--ds-background);\n border-bottom:1px solid var(--ds-border);font-size:12px;font-weight:600;color:var(--ds-text-secondary);\n display:flex;align-items:center;gap:var(--ds-space-2);flex-wrap:wrap}\n.ygd-studio-panel-badge{font-size:10px;padding:1px 6px;border-radius:var(--ds-radius);background:var(--ds-border);color:var(--ds-text-secondary)}\n.ygd-studio-panel-placeholder{display:flex;flex-direction:column;align-items:center;justify-content:center;\n padding:var(--ds-space-5);text-align:center;color:var(--ds-text-secondary);gap:var(--ds-space-2)}\n.ygd-studio-panel-placeholder-text{font-size:13px}\n.ygd-studio-panel-placeholder-sub{font-size:11px;opacity:.7}\n\n/* Bundle workspace two-pane body */\n.ygd-studio-workspace-body{flex:1;display:flex;min-height:0;overflow:hidden;margin:0 20px 18px;border:1px solid var(--ds-border);border-radius:10px;background:#fff}\n.ygd-studio-workspace [hidden]{display:none!important}\n.ygd-studio-file-tree-pane{width:240px;flex-shrink:0;background:var(--ds-surface);border-right:1px solid var(--ds-border);\n display:flex;flex-direction:column;overflow:hidden}\n.ygd-studio-file-tree-header{padding:var(--ds-space-2) var(--ds-space-3);font-size:11px;font-weight:600;\n color:var(--ds-text-secondary);border-bottom:1px solid var(--ds-border)}\n.ygd-studio-file-tree{flex:1;overflow-y:auto;padding:var(--ds-space-2) 0}\n.ygd-studio-tree-section{padding:var(--ds-space-2) var(--ds-space-3) var(--ds-space-1);font-size:11px;font-weight:600;\n color:var(--ds-text-secondary);text-transform:uppercase;letter-spacing:.03em}\n.ygd-studio-tree-node{display:flex;align-items:center;gap:var(--ds-space-2);width:100%;padding:var(--ds-space-1) var(--ds-space-3);\n font-size:13px;color:var(--ds-text);cursor:pointer;border:none;background:none;text-align:left;font-family:var(--ds-body-font);\n transition:background var(--ds-duration-fast)}\n.ygd-studio-tree-node:hover{background:var(--ds-background)}\n.ygd-studio-tree-node[aria-current=\"true\"]{background:var(--ds-primary-light);color:var(--ds-primary-dark)}\n.ygd-studio-tree-label{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}\n.ygd-studio-content-pane{flex:1;display:flex;flex-direction:column;min-width:0;overflow-y:auto;padding:var(--ds-space-4) var(--ds-space-5)}\n\n/* Diagnostics */\n.ygd-studio-diagnostics{margin:var(--ds-space-3) var(--ds-space-5) 0;padding:10px 14px;border-radius:var(--ds-radius);\n border:1px solid #FECACA;background:#FEF2F2;color:var(--ds-error);list-style:none;font-size:13px}\n\n/* Explicit sample-only authoring. Runtime Panel descendants keep their own styles. */\n.ygd-studio-draft-layout{display:flex;flex:1;min-height:0;overflow:hidden;font-size:14px}\n.ygd-studio-draft-list{width:210px;flex-shrink:0;overflow:auto;border-right:1px solid var(--ds-border,#e5e7eb);padding:12px}\n.ygd-studio-draft-list>button{display:flex;flex-direction:column;gap:4px;width:100%;padding:10px;text-align:left;border:1px solid transparent;border-radius:6px;background:transparent;color:inherit;font:inherit;cursor:pointer}\n.ygd-studio-draft-list>button[aria-current]{background:var(--ds-bg-hover,#f1f5f9);border-color:var(--ds-border,#e5e7eb)}\n.ygd-studio-draft-list small{opacity:.7;overflow-wrap:anywhere}\n.ygd-studio-draft-editor{display:flex;flex:1;flex-direction:column;min-width:0;min-height:0;overflow:auto}\n.ygd-studio-draft-toolbar{display:flex;align-items:center;flex-wrap:wrap;gap:8px;padding:12px;border-bottom:1px solid var(--ds-border,#e5e7eb)}\n.ygd-studio-draft-toolbar>span{font-size:12px;opacity:.7}\n.ygd-studio-draft-toolbar>button{font:inherit;padding:6px 10px;border:1px solid var(--ds-border,#d1d5db);border-radius:6px;background:var(--ds-bg,#fff);color:inherit;cursor:pointer}\n.ygd-studio-draft-toolbar>button:disabled{opacity:.45;cursor:default}\n.ygd-studio-draft-sources{padding:12px}\n.ygd-studio-draft-sources summary{cursor:pointer}\n.ygd-studio-draft-sources fieldset{display:grid;grid-template-columns:1fr 1fr;gap:12px;border:0;padding:12px 0}\n.ygd-studio-draft-sources label{display:flex;flex-direction:column;gap:6px;min-width:0}\n.ygd-studio-draft-sources textarea{height:220px;resize:vertical;font:12px/1.5 monospace;border:1px solid var(--ds-border,#d1d5db);border-radius:6px;padding:8px;color:inherit;background:var(--ds-bg,#fff)}\n.ygd-studio-draft-preview{flex:1;min-height:320px;position:relative;overflow:auto;padding:12px}\n/* Archive stages form one scrolling document, not competing flex editors. */\n.ygd-studio-archive .ygd-studio-content-body{display:block}\n.ygd-studio-archive .ygd-studio-draft-editor{flex:none;overflow:visible;gap:12px;padding:16px 0}\n.ygd-studio-archive .ygd-studio-draft-editor>button{align-self:flex-start}\n.ygd-studio-archive h2,.ygd-studio-archive h3{font-size:14px;font-weight:600;margin:0}\n.ygd-studio-archive p{margin:0;overflow-wrap:anywhere}\n.ygd-studio-archive details{margin:12px 0}\n.ygd-studio-archive summary{cursor:pointer}\n.ygd-studio-archive .ygd-studio-draft-list{width:auto;border-right:0}\n.ygd-studio-archive fieldset.ygd-studio-draft-sources{display:grid;gap:12px;border:0;padding:0}\n.ygd-studio-archive .ygd-studio-draft-sources input{width:100%}\n/* Approved compact Studio composition; neutral controls measured on yugoo.cn. */\n.ygd-studio-content-header:has(.ygd-studio-breadcrumb){display:block}\n.ygd-studio-content-header .ygd-studio-breadcrumb{margin-bottom:10px}\n.ygd-studio-content-header>div:has(>.ygd-studio-header-title-group){display:flex;align-items:center;gap:8px 12px;flex-wrap:wrap;width:100%;min-width:0}\n.ygd-studio-content-header>div:has(>.ygd-studio-hero-actions)>.ygd-studio-header-title-group{flex:1 1 200px}\n.ygd-studio-hero-actions{display:flex;align-items:center;gap:6px;flex-shrink:0;flex-wrap:wrap;max-width:100%}\n.ygd-studio-hero-actions .ygd-studio-trial{position:relative}\n.ygd-studio-hero-actions .ygd-studio-trial:has([aria-expanded=\"true\"]){width:auto}\n.ygd-studio-hero-actions .ygd-studio-trial>.ygd-studio-summary-card{position:absolute;right:0;top:100%;z-index:20;width:min(480px,75vw);max-height:65vh;overflow:auto;box-shadow:0 8px 30px #0002}\n.ygd-studio-content-header .ygd-studio-btn-primary,.ygd-studio-content-header .ygd-studio-btn-link{margin-top:8px;margin-right:6px}\n.ygd-studio-file-tree-pane{width:230px;background:#f8f9fb}\n.ygd-studio-file-tree{padding:8px 0}\n.ygd-studio-tree-node,.ygd-studio-tree-folder>summary{height:28px;min-height:28px;display:flex;align-items:center;gap:6px;padding:0 10px;font:400 13px/28px var(--ds-body-font);color:#404957;white-space:nowrap;cursor:pointer}\n.ygd-studio-tree-folder>summary{list-style:none}\n.ygd-studio-tree-folder>summary::-webkit-details-marker{display:none}\n.ygd-studio-tree-folder>summary:hover,.ygd-studio-tree-node:hover{background:#eef0f4}\n.ygd-studio-tree-children{margin-left:14px;padding-left:8px;border-left:1px solid #e3e6ec}\n.ygd-studio-chevron{width:10px;flex:0 0 10px;color:#8793a6;font-size:16px}\n.ygd-studio-tree-folder[open]>summary .ygd-studio-chevron{transform:rotate(90deg)}\n.ygd-studio-file-icon{width:16px;height:16px;flex:0 0 16px;fill:none;stroke:currentColor;stroke-width:1.3;stroke-linecap:round;stroke-linejoin:round;color:#8793a6}\n.ygd-studio-file-icon.markdown{color:#698aaf}.ygd-studio-file-icon.config{color:#a98e4e}\n.ygd-studio-tree-node[aria-current=\"true\"]{background:var(--ds-primary-light);box-shadow:inset 2px 0 var(--ds-primary);color:var(--ds-primary-dark)}\n.ygd-studio-file-path{font:12px var(--ds-body-font);color:var(--ds-text-secondary);padding-bottom:12px;overflow-wrap:anywhere}\n.ygd-studio-content-pane{padding:14px 20px;background:#fff}\n.ygd-studio-mindset-layout{display:grid;grid-template-columns:minmax(0,1fr) 205px;gap:14px;min-height:0;flex:1}\n.ygd-studio-document-card{display:flex;flex-direction:column;min-height:0;min-width:0;border:1px solid var(--ds-border);border-radius:10px;background:#fff;overflow:hidden}\n.ygd-studio-document-card>.ygd-studio-doc-toolbar{padding:9px 14px;border-bottom:1px solid var(--ds-border);margin:0}\n.ygd-studio-document-name{font:500 13px var(--ds-mono-font);margin-right:auto}\n.ygd-studio-file-heading{display:flex;align-items:baseline;flex-wrap:wrap;gap:4px 10px;flex:1;min-width:180px}\n.ygd-studio-file-heading>.ygd-studio-document-name{margin-right:0;overflow-wrap:anywhere}\n.ygd-studio-file-purpose{font:400 12px/1.6 var(--ds-body-font);color:var(--ds-text-secondary);flex:1;min-width:140px;overflow-wrap:anywhere}\n.ygd-studio-file-info{flex:0 0 224px;box-sizing:border-box;min-height:0;overflow:auto;border-left:1px solid var(--ds-border);padding:16px;background:var(--ds-surface,#fafafa)}\n.ygd-studio-file-info h3{margin:0 0 8px;font:500 13px/1.5 var(--ds-body-font)}\n.ygd-studio-file-info .ygd-studio-markdown{font:400 12px/1.7 var(--ds-body-font);color:var(--ds-text-secondary);max-width:none}\n.ygd-studio-file-info .ygd-studio-markdown p{margin:0 0 8px}\n.ygd-studio-file-info .ygd-studio-markdown ul{padding-left:16px;margin:0}\n.ygd-studio-card-meta{font-size:11px;line-height:1.6;color:var(--ds-text-secondary);margin:0 0 12px}\n@media(max-width:1100px){.ygd-studio-file-info{flex-basis:180px;padding:12px}}\n@media(max-width:800px){\n .ygd-studio-files-layout{display:grid;grid-template-columns:150px minmax(0,1fr);grid-template-rows:minmax(0,1fr) auto}\n .ygd-studio-files-layout>.ygd-studio-file-tree-pane{grid-row:1 / 3;width:150px}\n .ygd-studio-files-layout>.ygd-studio-content-pane{grid-column:2;grid-row:1;min-height:0}\n .ygd-studio-files-layout>.ygd-studio-file-info{grid-column:2;grid-row:2;border-left:0;border-top:1px solid var(--ds-border);max-height:140px}\n}\n.ygd-studio-doc-meta{margin-left:0}\n.ygd-studio-kitmark{width:43px;height:43px;border-radius:11px;background:#ededed;color:#575757;display:inline-flex;align-items:center;justify-content:center;flex-shrink:0}\n.ygd-studio-kitmark svg{width:24px;height:24px}\n.ygd-studio-btn-secondary{border:1px solid var(--ds-border);border-radius:8px;padding:6px 11px;background:white;font:500 13px var(--ds-body-font);color:var(--ds-text);cursor:pointer;white-space:nowrap}\n.ygd-studio-btn-secondary:disabled{color:#aaa;cursor:not-allowed;background:#fafafa}\n.ygd-studio-instance-actions{display:flex;gap:6px}\n.ygd-studio-modal{width:min(640px,90vw);max-height:82vh;overflow:auto;margin:auto;padding:22px;border:1px solid var(--ds-border);border-radius:12px;background:#fff;color:var(--ds-text);font:14px/1.6 var(--ds-body-font)}\n.ygd-studio-modal::backdrop{background:#0005}\n.ygd-studio-modal>header{display:flex;align-items:center;justify-content:space-between;margin-bottom:14px;gap:12px}\n.ygd-studio-modal h2{font-size:18px}.ygd-studio-modal>header button{border:0;background:none;font:24px var(--ds-body-font);cursor:pointer;color:#6d6d6d}\n.ygd-studio-modal>p{margin:10px 0;color:var(--ds-text-secondary);font-size:13px}\n.ygd-studio-modal .ygd-studio-code-frame{min-height:0;max-height:60vh}.ygd-studio-modal .ygd-studio-code-scroll{max-height:60vh}\n.ygd-studio-topbar{gap:12px}.ygd-studio-topbar>span{display:flex;align-items:center;gap:8px}\n.ygd-studio-content-header .ygd-studio-breadcrumb{display:none}\n.ygd-studio-filter-row{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:12px;font-size:12px;color:var(--ds-text-secondary)}\n.ygd-studio-filter-row input{max-width:280px}\n.ygd-studio-bundles-list[aria-label=\"Mounted Bundles\"]{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:12px}\n.ygd-studio-bundles-list[aria-label=\"Mounted Bundles\"] .ygd-studio-bundle-item{display:flex;flex-direction:column;align-items:stretch;padding:15px}\n.ygd-studio-bundles-list[aria-label=\"Mounted Bundles\"] .ygd-studio-kitmark{width:28px;height:28px;border-radius:7px;margin-bottom:8px}\n.ygd-studio-bundles-list[aria-label=\"Mounted Bundles\"] .ygd-studio-kitmark svg{width:18px;height:18px}\n.ygd-studio-bundles-list[aria-label=\"Mounted Bundles\"] .ygd-studio-bundle-actions{border-top:1px solid var(--ds-border);padding-top:10px}\n.ygd-studio-bundles-list[aria-label=\"Mounted Bundles\"] .ygd-studio-bundle-id{display:none}\n.ygd-studio-mindset-document{padding:18px 24px;overflow:auto;flex:1;min-height:0}\n.ygd-studio-mindset-info{padding:16px;border:1px solid var(--ds-border);border-radius:10px;background:#fff;align-self:start;max-height:100%;overflow:auto}\n.ygd-studio-mindset-info h3{font-size:14px}.ygd-studio-mindset-info p{font-size:12px;color:var(--ds-text-secondary);margin:8px 0 12px}\n.ygd-studio-toc{margin-top:13px;padding-top:12px;border-top:1px solid var(--ds-border)}\n.ygd-studio-toc button{display:block;width:100%;text-align:left;border:0;background:none;padding:4px 0;font:12px/1.6 var(--ds-body-font);color:var(--ds-text-secondary);cursor:pointer;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}\n.ygd-studio-installed-preview{display:flex;flex-direction:column;margin:0 20px 18px;min-height:0;flex:1;overflow:auto;border:1px solid var(--ds-border);border-radius:10px;background:#fff;padding:0}\n.ygd-studio-preview-toolbar{display:flex;gap:12px;align-items:center;justify-content:space-between;flex-wrap:wrap;font-size:12px;padding:6px 12px;border-bottom:1px solid var(--ds-border);color:var(--ds-text-secondary)}\n.ygd-studio-preview-actions{display:flex;gap:8px;align-items:center}\n.ygd-studio-preview-actions button{height:30px;min-height:30px;padding:0 10px;font-size:12px;line-height:1;border-radius:8px;display:inline-flex;align-items:center;justify-content:center}\n.ygd-studio-preview-toolbar strong{color:var(--ds-text)}\n.ygd-studio-preview-sample{margin-top:16px;font-size:12px}\n.ygd-studio-preview-sample summary{cursor:pointer;padding:8px 0}\n.ygd-studio-preview-sample textarea{display:block;width:100%;padding:12px;border:1px solid var(--ds-border);border-radius:8px;font:13px/1.6 var(--ds-mono-font);margin-bottom:8px}\n.ygd-studio-mounts-inspector{margin:0 20px 14px;padding:14px;border:1px solid var(--ds-border);border-radius:10px;background:#fff;max-height:240px;overflow:auto}\n.ygd-studio-mounts-inspector p{margin:8px 0;font-size:13px}\n.ygd-studio-trial{display:inline-flex;vertical-align:middle;margin:0}\n.ygd-studio-hero-actions .ygd-studio-trial>button{height:32px;min-height:32px;margin:0;padding:0 12px;line-height:1;display:inline-flex;align-items:center;justify-content:center;font-size:13px}\n.ygd-studio-installed-status{font-size:12px;line-height:20px;color:var(--ds-text-secondary);white-space:nowrap}\n.ygd-studio-instance-menu{position:relative;display:inline-block}\n.ygd-studio-instance-menu>summary{display:flex;align-items:center;justify-content:center;list-style:none;cursor:pointer;width:32px;height:32px;border:1px solid var(--ds-border);border-radius:8px;background:#fff;font-weight:600}\n.ygd-studio-instance-menu>summary::-webkit-details-marker{display:none}\n.ygd-studio-instance-menu>div{position:absolute;right:0;top:100%;z-index:20;min-width:160px;padding:4px;background:#fff;border:1px solid var(--ds-border);border-radius:8px;box-shadow:0 4px 16px #00000012}\n.ygd-studio-instance-menu>div>button{display:block;width:100%;padding:8px;border:0;background:none;text-align:left;font:inherit;cursor:pointer;border-radius:4px;white-space:nowrap}\n.ygd-studio-instance-menu>div>button:hover{background:var(--ds-primary-light)}\n.ygd-studio-trial select{max-width:100%;height:32px;border:1px solid var(--ds-border);border-radius:8px;background:#fff;font:inherit}\n.ygd-studio-workspace button:focus-visible,.ygd-studio-workspace summary:focus-visible{outline:2px solid var(--ds-primary);outline-offset:2px}\n/* Responsive */\n/* Demo geometry, Yugoo brand tokens: one hero, one document toolbar, one body. */\n.ygd-studio-content-header .ygd-studio-btn-primary,.ygd-studio-content-header .ygd-studio-btn-link{margin:0}\n.ygd-studio-content-header .ygd-studio-catalog-link{display:inline-flex;align-items:center;gap:6px;min-height:32px;max-width:100%;margin:0 0 0 auto;color:var(--ds-primary-dark);text-decoration:none;overflow-wrap:anywhere}\n.ygd-studio-catalog-link svg{flex-shrink:0}\n.ygd-studio-catalog-link:focus-visible{outline:2px solid var(--ds-primary);outline-offset:2px}\n.ygd-studio-sidebar-nav{padding:0}\n.ygd-studio-sidebar-item{display:flex;align-items:center;gap:10px}\n.ygd-studio-sidebar-item .ygd-studio-kitmark{width:18px;height:18px;background:none;color:inherit;border-radius:0}\n.ygd-studio-sidebar-item .ygd-studio-kitmark svg{width:18px;height:18px}\n.ygd-studio-kitmark{background:var(--ds-primary-light);color:var(--ds-primary-dark)}\n.ygd-studio-content-pane{display:flex;flex-direction:column;padding:0;overflow:hidden}\n.ygd-studio-content-pane>.ygd-studio-doc-toolbar{margin:0;padding:9px 14px;border-bottom:1px solid var(--ds-border)}\n.ygd-studio-document-body{flex:1;min-height:0;overflow:auto;padding:18px 24px}\n.ygd-studio-document-body:has(>.ygd-studio-loading),.ygd-studio-live-pane-body:has(>.ygd-studio-loading){display:flex;flex-direction:column}\n.ygd-studio-file-metadata{margin-bottom:18px;border-radius:8px;background:var(--ds-primary-light,#f7f4fe);color:var(--ds-text-secondary)}\n.ygd-studio-file-metadata>summary{padding:12px;font-size:12px;cursor:pointer}\n.ygd-studio-file-metadata .ygd-studio-frontmatter{margin:0;border:0;background:transparent}\n.ygd-studio-document-body:has(>.ygd-studio-code-frame){padding:0}\n.ygd-studio-mindset-document .ygd-studio-markdown,.ygd-studio-document-body .ygd-studio-markdown{max-width:none}\n.ygd-studio-mindset-document .ygd-studio-markdown h1,.ygd-studio-document-body .ygd-studio-markdown h1{font-size:22px;margin-bottom:14px}\n.ygd-studio-mindset-document .ygd-studio-markdown h2,.ygd-studio-document-body .ygd-studio-markdown h2{font-size:17px;margin:23px 0 10px;padding-bottom:6px;border-bottom:1px solid var(--ds-border)}\n.ygd-studio-doc-toolbar{min-height:51px;gap:10px;flex-wrap:wrap}\n.ygd-studio-doc-toggle-group{border:0;background:var(--ds-background);padding:3px;gap:2px}\n.ygd-studio-doc-toggle{background:transparent;border-radius:5px;padding:4px 9px}\n.ygd-studio-doc-toggle+.ygd-studio-doc-toggle{border:0}\n.ygd-studio-doc-toggle[aria-pressed=\"true\"]{background:#fff;color:var(--ds-text);box-shadow:0 1px 3px #0001}\n.ygd-studio-doc-footer{display:flex;align-items:center;gap:12px;padding:7px 14px;border-top:1px solid var(--ds-border);font-size:11px;color:var(--ds-text-secondary);flex-shrink:0}\n.ygd-studio-doc-footer>span:last-child{margin-left:auto}\n.ygd-studio-doc-footer button{font-size:11px;padding:0}\n.ygd-studio-inline-actions{display:inline-flex;align-items:center;gap:6px;font-size:12px}\n.ygd-studio-inline-actions button{font:inherit;padding:7px 11px;border:0;border-radius:8px;background:var(--ds-primary-light);color:var(--ds-primary-dark);cursor:pointer}\n.ygd-studio-inline-actions button:disabled{opacity:.5;cursor:default}\n.ygd-studio-btn-soft{background:var(--ds-primary-light);color:var(--ds-primary-dark);border-color:transparent}\n.ygd-studio-mindset-info>.ygd-studio-btn-link{background:var(--ds-primary-light);color:var(--ds-primary-dark);padding:8px 11px}\n.ygd-studio-card-top{display:flex;align-items:center;justify-content:space-between;margin-bottom:8px}\n.ygd-studio-card-top .ygd-studio-kitmark{width:28px;height:28px;border-radius:7px}\n.ygd-studio-card-top .ygd-studio-kitmark svg{width:18px;height:18px}\n.ygd-studio-card-pill{font-size:11px;border:1px solid var(--ds-border);border-radius:5px;padding:2px 6px;color:var(--ds-text-secondary)}\n.ygd-studio-source-id{font:11px/1.6 var(--ds-mono-font);color:var(--ds-text-secondary);margin-top:2px}\n.ygd-studio-kit-card .ygd-studio-card-description{margin:8px 0 12px;min-height:0}\n.ygd-studio-kit-card-actions{display:flex;align-items:center;gap:5px;margin-top:auto}\n.ygd-studio-kit-card-actions button{font-size:12px;padding:5px 8px}\n.ygd-studio-filter-row>span{margin-right:auto}\n.ygd-studio-workplane-tab[aria-selected=\"true\"],.ygd-studio-workplane-tab[aria-pressed=\"true\"]{color:var(--ds-text)}\n.ygd-studio-mindset-inline{padding:8px 16px;border-bottom:1px solid var(--ds-border)}\n.ygd-studio-mindset-inline .ygd-studio-draft-toolbar{display:flex;align-items:center;gap:8px}\n.ygd-studio-mindset-inline button,.ygd-studio-mindset-recovery select{font:inherit;min-height:30px;border:1px solid var(--ds-border);border-radius:8px;padding:4px 10px;background:#fff;color:var(--ds-text)}\n.ygd-studio-mindset-inline button:last-of-type{background:var(--ds-primary);color:white;border-color:transparent}\n.ygd-studio-mindset-inline button:disabled{opacity:.5}\n.ygd-studio-mindset-inline textarea{display:block;box-sizing:border-box;width:100%;min-height:80px;padding:12px;font:13px/1.6 var(--ds-mono-font);border:1px solid var(--ds-border);border-radius:8px;resize:vertical}\n.ygd-studio-mindset-inline pre{white-space:pre-wrap;overflow-wrap:anywhere;max-height:180px;overflow:auto}\n.ygd-studio-mindset-inline .ygd-studio-draft-sources{display:grid;gap:10px}\n.ygd-studio-mindset-inline:has(textarea)+.ygd-studio-mindset-document{display:none}\n.ygd-studio-mindset-recovery{display:flex;align-items:center;gap:8px;padding:8px 16px;color:var(--ds-text-secondary);font-size:12px}\n@media(max-width:1023px){\n .ygd-studio-sidebar{position:fixed;left:-200px;top:0;bottom:0;z-index:var(--ds-z-drawer);\n transition:left var(--ds-duration-normal);width:200px}\n .ygd-studio-sidebar.open{left:0}\n .ygd-studio-menu-btn{display:flex;position:fixed;top:var(--ds-space-2);left:var(--ds-space-2);z-index:calc(var(--ds-z-drawer) + 1)}\n .ygd-studio-content-header{padding-left:48px}\n .ygd-studio-file-tree-pane{width:180px}\n .ygd-studio-summary-grid{grid-template-columns:minmax(0,1fr)}\n .ygd-studio-topbar{padding-left:48px}\n .ygd-studio-mindset-layout{grid-template-columns:minmax(0,1fr)}\n .ygd-studio-mindset-info{max-height:140px}.ygd-studio-toc{display:none}\n}\n.ygd-studio-hero-actions button{box-sizing:border-box;height:32px;min-height:32px;margin-top:0;padding:0 12px;display:inline-flex;align-items:center;justify-content:center;line-height:1}\n.ygd-studio-preview-slot,.ygd-studio-trial-slot{flex:1;min-height:0;min-width:0;display:flex;overflow:hidden;background:#fff}\n.ygd-studio-preview-slot[hidden],.ygd-studio-trial-slot[hidden],.ygd-studio-trial-workspace[hidden],.ygd-studio-trial-input[hidden]{display:none}\n.ygd-studio-trial-workspace{display:flex;flex-direction:column;flex:1;min-width:0;min-height:0;width:100%}\n.ygd-studio-trial-history{display:flex;align-items:center;gap:10px;padding:6px 10px;border-bottom:1px solid var(--ds-border);font-size:12px;flex-wrap:wrap}\n.ygd-studio-trial-history button,.ygd-studio-trial-history select{height:30px;box-sizing:border-box}\n.ygd-studio-trial-workarea{display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0,1fr);flex:1;min-height:0}\n.ygd-studio-trial-result{grid-column:2;grid-row:1;min-width:0;min-height:0;display:flex;flex-direction:column}.ygd-studio-trial-result iframe{width:100%;flex:1;min-height:0;border:0;background:#fff}.ygd-studio-trial-result-details{padding:6px 12px;border-top:1px solid var(--ds-border);font-size:12px;max-height:150px;overflow:auto}\n.ygd-studio-trial-input{grid-column:1;grid-row:1;display:flex;flex-direction:column;gap:12px;border-right:1px solid var(--ds-border);padding:12px;overflow:auto;min-width:0;min-height:0;font-size:12px}.ygd-studio-trial-input h3{font-size:13px;margin:0}.ygd-studio-trial-input textarea{width:100%;box-sizing:border-box;flex:1;min-height:120px;resize:none;padding:12px;margin:0;font:inherit;line-height:1.65;border:1px solid var(--ds-border);border-radius:8px}.ygd-studio-trial-input pre{white-space:pre-wrap;overflow-wrap:anywhere;font:inherit}\n.ygd-studio-trial-slot{margin:0;border:0;border-radius:0}\n.ygd-studio-trial-save{display:flex;align-items:center;justify-content:flex-end;flex-shrink:0;gap:8px;padding:10px 16px;border-top:1px solid var(--ds-border);background:#fff}\n.ygd-studio-trial-save .ygd-studio-trial-hint{margin:0 auto 0 0;font-size:12px;color:var(--ds-text-secondary)}\n.ygd-studio-trial-save button{height:32px;white-space:nowrap}\n.ygd-studio-trial-input-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:24px}\n.ygd-studio-trial-input .ygd-studio-trial-input-heading h3{margin:0}\n.ygd-studio-trial-status{font-size:11px;line-height:20px;padding:0 7px;border-radius:10px;background:var(--ds-background);color:var(--ds-text-secondary);white-space:nowrap}\n.ygd-studio-trial-status[data-state=\"waiting\"],.ygd-studio-trial-status[data-state=\"completed\"]{background:var(--ds-primary-light);color:var(--ds-primary)}\n.ygd-studio-trial-status[data-state=\"failed\"]{color:#b42318;background:#fff1ef}\n.ygd-studio-workspace button:disabled{opacity:.45;cursor:not-allowed}\n.ygd-studio-bundle-main .ygd-studio-content-header{padding:8px 16px}\n.ygd-studio-bundle-main .ygd-studio-hero-actions{margin:0}\n.ygd-studio-bundle-main .ygd-studio-workplane-bar{min-height:36px;padding:0 16px;margin:0}\n.ygd-studio-bundle-main .ygd-studio-installed-preview{position:relative;margin:0;flex:1;min-height:0;overflow:auto;padding:8px 16px}\n.ygd-studio-editor-heading{display:flex;align-items:center;gap:12px;padding:8px 12px;border-bottom:1px solid var(--ds-border);font-size:13px}\n.ygd-studio-editor-heading>span{margin-left:auto;color:var(--ds-text-secondary);font-size:12px}\n.ygd-studio-panel-split,.ygd-studio-trial-workarea.with-input{grid-template-columns:minmax(260px,32%) minmax(0,1fr)}\n.ygd-studio-panel-split{display:grid;grid-template-rows:minmax(0,1fr);flex:1;min-width:0;min-height:0;overflow:hidden}\n.ygd-studio-yaml-pane,.ygd-studio-live-pane{display:flex;flex-direction:column;min-width:0;min-height:0}\n.ygd-studio-yaml-pane{border-right:1px solid var(--ds-border)}\n.ygd-studio-yaml-pane>header,.ygd-studio-live-pane>header{display:flex;align-items:center;gap:10px;padding:6px 12px;border-bottom:1px solid var(--ds-border);min-height:34px;font-size:12px}\n.ygd-studio-yaml-pane>header>span,.ygd-studio-live-pane>header>span{color:var(--ds-text-secondary);font-size:11px}\n.ygd-studio-yaml-pane>header>button,.ygd-studio-live-pane>header>button{margin-left:auto;height:30px}\n.ygd-studio-yaml-pane>textarea{flex:1;min-height:0;resize:none;border:0;outline-offset:-2px;padding:12px;background:#fafafa;font:12px/1.65 ui-monospace,SFMono-Regular,Consolas,monospace;tab-size:2}\n.ygd-studio-live-pane-body{display:flex;flex-direction:column;flex:1;min-height:0;overflow:auto;padding:0}\n.ygd-studio-workspace .ygd-studio-trial-availability{padding:16px;max-width:400px;margin:auto;text-align:center;color:var(--ds-text-secondary);font-size:13px;line-height:1.6}\n.ygd-studio-trial-input>.ygd-studio-loading{flex:1}\n.ygd-studio-editor-errors{max-height:120px;overflow:auto;padding:0 12px;font-size:12px;color:#b42318}\n.ygd-studio-trial-columns{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:20px}\n.ygd-studio-trial-columns>section{min-width:0;padding:16px;border:1px solid var(--ds-border);border-radius:10px;font-size:13px}\n.ygd-studio-trial-columns h3{margin:0 0 12px;font-size:14px}.ygd-studio-trial-columns textarea{display:block;box-sizing:border-box;width:100%;margin:8px 0 12px;resize:vertical;font:inherit;line-height:1.6;padding:10px;border:1px solid var(--ds-border);border-radius:8px}\n.ygd-studio-trial-columns pre{white-space:pre-wrap;overflow-wrap:anywhere;font:inherit}.ygd-studio-trial-columns details{margin:12px 0}.ygd-studio-trial-hint{color:var(--ds-text-secondary);font-size:12px}\n@media(max-width:650px){.ygd-studio-trial-columns{grid-template-columns:minmax(0,1fr)}.ygd-studio-file-tree-pane{width:150px}.ygd-studio-content-pane{padding:12px}.ygd-studio-workspace-body{margin:0 12px 12px}}\n";
|
|
573
|
+
declare const STUDIO_WORKSPACE_CSS = "\n\n.companion-message{padding:12px 0;border:0;min-width:0;overflow-wrap:anywhere}\n.companion-message-content{font-size:16px;line-height:24px;padding:9px 4px;min-width:0;overflow-wrap:anywhere}\n.companion-message[data-role=assistant] .companion-message-content{font-size:14px;line-height:1.7}\n.companion-message-content> :first-child{margin-top:0}.companion-message-content> :last-child{margin-bottom:0}\n.companion-message[data-role=user]{display:flex;flex-direction:column;align-items:flex-end;padding-left:52px}\n.companion-message[data-role=user] .companion-message-label{text-align:right}\n.companion-message[data-role=user] .companion-message-content{box-sizing:border-box;max-width:100%;padding:10px 12px;border-radius:8px;background:var(--ds-surface-muted,#f6f6f6);font-size:14px}\n.companion-message-label{font-size:12px;color:var(--ds-text-secondary,#6d6d6d);margin-bottom:4px}\n.companion-activity{margin:8px 0;font-size:12px;color:var(--ds-text-secondary,#6d6d6d)}\n.companion-spinner{display:inline-block;width:12px;height:12px;margin-right:6px;border:2px solid var(--ds-border,#ddd);border-top-color:var(--ds-text-secondary,#666);border-radius:50%;vertical-align:middle;animation:companion-spin .8s linear infinite}\n@keyframes companion-spin{to{transform:rotate(360deg)}}\n@media(prefers-reduced-motion:reduce){.companion-spinner{animation:none}}\n.companion-activity>summary{cursor:pointer;padding:5px 0;overflow-wrap:anywhere}\n.companion-activity>summary:focus-visible{outline:2px solid var(--ds-primary,#7c5af6);outline-offset:2px;border-radius:3px}\n.companion-activity>div{padding-left:12px;border-left:1px solid var(--ds-border,#e8e8e8)}\n.companion-activity article{padding:4px 0;border:0;overflow-wrap:anywhere}\n.companion-activity .companion-message-label{margin:0}.companion-activity-failed{color:var(--ds-danger,#a34232)}\n\n.ygd-studio-instance textarea:focus-visible{outline:2px solid var(--ds-primary);outline-offset:-2px}.ygd-studio-instance .ygd-studio-instance-pencil{display:inline-flex;align-items:center;justify-content:center;width:28px;height:28px;padding:0;border:0;background:transparent;border-radius:6px;color:var(--ds-text-secondary);cursor:pointer}.ygd-studio-instance .ygd-studio-instance-pencil:hover{background:var(--ds-primary-light);color:var(--ds-primary)}\n.ygd-studio-notice,.ygd-studio-notice-reopen{font:12px/1.6 var(--ds-body-font);color:var(--ds-text-secondary);min-width:0;overflow-wrap:anywhere}\n.ygd-studio-notice-notice{margin:8px 0;padding:10px 12px;border:1px solid var(--ds-border);border-radius:var(--ds-radius);background:var(--ds-surface)}\n.ygd-studio-notice-heading,.ygd-studio-notice-reopen{display:flex;align-items:center;flex-wrap:wrap;gap:6px}\n.ygd-studio-notice-title{display:block;font:12px/1.6 var(--ds-body-font);margin:0;overflow-wrap:anywhere}\n.ygd-studio-notice[data-tone=error] .ygd-studio-notice-title{color:var(--ds-error)}\n.ygd-studio-notice[data-tone=success] .ygd-studio-notice-title{color:var(--ds-success)}\n.ygd-studio-notice-details{max-height:240px;overflow:auto;margin-top:8px;white-space:pre-wrap}\n.ygd-studio-notice-details p{margin:0 0 6px}\n.ygd-studio-notice-details ul{margin:0;padding-left:18px}\n.ygd-studio-notice-details li+li{margin-top:6px}\n.ygd-studio-save-feedback{display:flex;align-items:center;min-width:0;max-width:100%}\n.ygd-studio-notice-inline .ygd-studio-notice-details{position:absolute;z-index:10;right:0;top:100%;width:min(420px,calc(100vw - 48px));padding:12px;border:1px solid var(--ds-border);border-radius:var(--ds-radius);background:var(--ds-surface);box-shadow:var(--ds-shadow,0 4px 18px #0002)}\n.ygd-studio-instance{position:relative}\n.ygd-studio-instance-feedback,.ygd-studio-notification-area{position:absolute;z-index:30;right:20px;bottom:20px;width:min(440px,calc(100% - 40px));max-height:calc(100% - 40px);overflow:auto;pointer-events:none}\n.ygd-studio-instance-feedback:empty,.ygd-studio-notification-area:empty{display:none}\n.ygd-studio-instance-feedback>.ygd-studio-notice,.ygd-studio-instance-feedback>.ygd-studio-notice-reopen,.ygd-studio-notification-area>.ygd-studio-notice,.ygd-studio-notification-area>.ygd-studio-notice-reopen{pointer-events:auto;background:var(--ds-surface);box-shadow:var(--ds-shadow,0 4px 18px #0002)}\n.ygd-studio-instance-feedback>.ygd-studio-notice-reopen,.ygd-studio-notification-area>.ygd-studio-notice-reopen{padding:6px 12px;border:1px solid var(--ds-border);border-radius:var(--ds-radius)}\n.ygd-studio-source-body{display:flex;flex-direction:column}\n.ygd-studio-source-input{flex:1;min-height:360px;width:100%;resize:none;border:0;padding:16px;box-sizing:border-box;background:transparent;color:inherit;font:13px/1.7 var(--ds-mono-font,ui-monospace,SFMono-Regular,Consolas,monospace);tab-size:2}\n.ygd-studio-component-browser{display:flex;flex:1;min-width:0;min-height:0;border-top:1px solid var(--ds-border)}\n.ygd-studio-component-directory{width:240px;flex-shrink:0;display:flex;flex-direction:column;gap:12px;padding:12px;border-right:1px solid var(--ds-border);min-height:0}\n.ygd-studio-component-directory>.ygd-studio-search-input{width:100%;min-width:0}\n.ygd-studio-component-catalog-tabs{display:flex;gap:4px;background:var(--ds-surface);border:1px solid var(--ds-border);border-radius:8px;padding:3px}\n.ygd-studio-component-catalog-tabs button{flex:1;min-width:0;border:0;border-radius:5px;padding:6px 4px;font:inherit;font-size:12px;background:transparent;color:var(--ds-text-secondary);cursor:pointer}\n.ygd-studio-component-catalog-tabs button[aria-selected=true]{background:var(--ds-primary-light);color:var(--ds-primary-dark)}\n.ygd-studio-component-list{overflow:auto;min-height:0;flex:1}\n.ygd-studio-component-directory-group summary{font-size:14px;font-weight:500;padding:8px;cursor:pointer}\n.ygd-studio-component-directory-item{display:flex;flex-direction:column;align-items:flex-start;width:calc(100% - 24px);margin-left:24px;gap:3px;padding:8px;border:0;border-radius:8px;background:transparent;color:var(--ds-text);text-align:left;font:inherit;font-size:14px;overflow-wrap:anywhere;cursor:pointer}\n.ygd-studio-component-directory-item:hover{background:var(--ds-bg-hover,#f5f4f9)}\n.ygd-studio-component-directory-item[aria-current=page]{background:var(--ds-primary-light);color:var(--ds-primary)}\n.ygd-studio-components code{font-family:var(--ds-mono-font,'Consolas',ui-monospace,monospace)}\n.ygd-studio-component-list code{display:block;font-size:11px;color:var(--ds-text-secondary);margin-top:2px}\n.ygd-studio-component-tree.dsh-panel-workspace-tree{padding:0;min-width:0}\n.ygd-studio-component-tree .dsh-panel-workspace-tree-group{width:auto;padding:0;border:0}\n.ygd-studio-component-tree .dsh-panel-workspace-tree-body{display:grid;gap:4px}\n.ygd-studio-component-detail{display:flex;flex-direction:column;flex:1;min-width:0;min-height:0}\n.ygd-studio-component-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:16px 20px 12px}\n.ygd-studio-component-heading>div{display:flex;align-items:baseline;flex-wrap:wrap;gap:8px}\n.ygd-studio-component-heading h2{font-size:18px;line-height:24px;font-weight:500}\n.ygd-studio-component-heading code,.ygd-studio-component-support{font-size:12px;color:var(--ds-text-secondary);overflow-wrap:anywhere}\n.ygd-studio-component-toolbar{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:0 20px;border-bottom:1px solid var(--ds-border)}\n.ygd-studio-component-actions{display:flex;align-items:center;flex-wrap:wrap;gap:8px}\n.ygd-studio-component-library-version{font-family:var(--ds-body-font);font-size:12px;font-variant-numeric:tabular-nums;line-height:20px;padding:2px 8px;border-radius:6px;background:var(--ds-primary-light);color:var(--ds-text-secondary)}\n.ygd-studio-component-tabs{display:flex;gap:20px}\n.ygd-studio-component-tabs button{border:0;border-bottom:2px solid transparent;background:transparent;padding:10px 0;font:inherit;font-size:14px;color:var(--ds-text-secondary);cursor:pointer}\n.ygd-studio-component-tabs button[aria-selected=true]{border-color:var(--ds-primary);color:var(--ds-primary)}\n.ygd-studio-component-content{display:flex;flex-direction:column;flex:1;min-height:0;min-width:0;overflow:hidden}\n.ygd-studio-component-preview{flex:1;min-width:0;min-height:0;overflow:auto;display:flex;flex-direction:column;padding:16px;background:var(--ds-background)}\n.ygd-studio-component-stage{width:100%;min-width:0;border:1px solid var(--ds-border);border-radius:8px;background:var(--ds-surface)}\n.ygd-studio-component-preview-inline .ygd-studio-component-stage{max-width:880px;margin:0 auto;padding:16px}\n.ygd-studio-component-preview-navigation .ygd-studio-component-stage{max-width:360px;padding:12px;min-height:240px}\n.ygd-studio-component-preview-inline .dsh-design-panel,.ygd-studio-component-preview-navigation .dsh-design-panel{height:auto;min-height:0}\n.ygd-studio-component-preview-workspace{overflow:hidden}\n.ygd-studio-component-preview-workspace .ygd-studio-component-stage{display:flex;flex-direction:column;flex:1;min-height:0;overflow:hidden}\n.ygd-studio-component-preview-workspace .dsh-design-dock-panel-body{flex:1;min-height:0;overflow:hidden}\n.ygd-studio-component-preview-workspace .dsh-design-panel{height:100%;min-height:0}\n.ygd-studio-component-library-info{max-width:760px;padding:8px 20px 24px;overflow:auto;display:flex;flex-direction:column;gap:24px;font-size:14px;line-height:1.6}\n.ygd-studio-component-library-info dl{margin:0;border-top:1px solid var(--ds-border)}\n.ygd-studio-component-library-info dl>div{display:grid;grid-template-columns:112px minmax(0,1fr);gap:12px;padding:12px 0;border-bottom:1px solid var(--ds-border)}\n.ygd-studio-component-library-info dt{color:var(--ds-text-secondary)}\n.ygd-studio-component-library-info dd{margin:0;overflow-wrap:anywhere}\n.ygd-studio-component-library-info code{font-size:12px}\n.ygd-studio-component-library-note{color:var(--ds-text-secondary);font-size:12px}\n.ygd-studio-component-doc{padding:16px 20px;display:flex;flex-direction:column;gap:16px;overflow:auto;min-width:0;line-height:1.6;font-size:14px}\n.ygd-studio-component-doc pre{font-size:12px;line-height:1.65;white-space:pre-wrap;overflow-wrap:anywhere;background:var(--ds-bg-secondary,#f7f7f9);border:1px solid var(--ds-border);border-radius:8px;padding:12px;margin:0}\n.ygd-studio-component-doc h3{font-size:14px;font-weight:500}\n.ygd-studio-component-doc summary{cursor:pointer}\n.ygd-studio-component-feedback{padding:8px 20px;color:var(--ds-text-secondary);font-size:12px}\n.ygd-studio-component-feedback[role=alert]{color:var(--ds-danger,#bd3540)}\n.ygd-studio-component-unavailable{margin:auto;padding:24px;max-width:480px;display:flex;flex-direction:column;align-items:flex-start;gap:16px;font-size:14px;line-height:1.6}\n.ygd-studio-component-unavailable h3{font-size:16px;font-weight:500}\n@media(max-width:760px){.ygd-studio-component-directory{width:180px}.ygd-studio-component-heading{align-items:flex-start;flex-direction:column;padding:12px}.ygd-studio-component-toolbar{padding:0 12px 8px;flex-wrap:wrap}.ygd-studio-component-preview{padding:12px}.ygd-studio-component-library-info dl>div{grid-template-columns:1fr;gap:4px}}\n@media(max-width:480px){.ygd-studio-component-directory{width:140px;padding:8px}.ygd-studio-component-tabs{gap:12px}.ygd-studio-component-tabs button{font-size:12px}.ygd-studio-component-list button{font-size:12px}.ygd-studio-component-doc{padding:12px}}\n.ygd-studio-back{display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;width:28px;height:28px;padding:0;border:0;border-radius:6px;background:transparent;color:var(--ds-text-secondary);cursor:pointer}\n.ygd-studio-back:hover{background:var(--ds-primary-light);color:var(--ds-primary)}\n.ygd-studio-back:focus-visible{outline:2px solid var(--ds-primary);outline-offset:2px}\n.ygd-studio-header-title-group:has(>.ygd-studio-back){padding-left:0;flex-wrap:nowrap}\n.ygd-studio-header-title-group:has(>.ygd-studio-back)>.ygd-studio-kitmark{position:static;flex-shrink:0}\n.ygd-studio-loading{display:flex;align-items:center;justify-content:center;flex:1;min-height:96px;width:100%;align-self:stretch}\n.ygd-studio-spinner{position:relative;display:inline-block;overflow:hidden;width:180px;height:2px;background:var(--ds-primary-light,#e5f0ed)}\n.ygd-studio-spinner::before{content:'';position:absolute;inset:0 auto 0 0;width:34%;background:var(--ds-primary,#3f9e8b);animation:ygd-studio-progress 1.6s ease-in-out infinite}\n@keyframes ygd-studio-progress{0%{transform:translateX(-110%);opacity:.45}50%{opacity:1}100%{transform:translateX(310%);opacity:.45}}\n@media(prefers-reduced-motion:reduce){.ygd-studio-spinner::before{animation:none;width:100%;opacity:.8}}\n.ygd-studio-trial{margin-top:8px;font-size:14px}\n.ygd-studio-trial .ygd-studio-summary-card{display:grid;gap:8px;margin-top:8px;padding:12px;border:1px solid #e8e8e8;border-radius:8px;background:#fff;box-shadow:none}\n.ygd-studio-trial button{min-height:32px;padding:5px 10px;border:1px solid #e8e8e8;border-radius:8px;background:#f7f7f7;color:#272727;font:inherit;cursor:pointer;width:fit-content}\n.ygd-studio-trial button:disabled{opacity:.5;cursor:default}\n.ygd-studio-trial textarea{display:block;margin-top:6px;padding:8px;border:1px solid #dfdfdf;border-radius:8px;font:inherit;background:#fff;color:#272727;resize:vertical}\n.ygd-studio-trial small{color:#6d6d6d;overflow-wrap:anywhere}\n.ygd-studio-trial button:focus-visible,.ygd-studio-trial textarea:focus-visible{outline:2px solid var(--ds-primary);outline-offset:2px}\n.ygd-studio-workspace{\n --ds-primary:#7c5af6;--ds-primary-light:#f7f4fe;--ds-primary-dark:#6849d8;--ds-primary-active:#5032bc;\n --ds-secondary:#64748B;--ds-accent:#0EA5E9;\n --ds-background:#F7F7F7;--ds-surface:#FFFFFF;\n --ds-text:#272727;--ds-text-secondary:#6d6d6d;--ds-border:#E8E8E8;\n --ds-success:#059669;--ds-warning:#D97706;--ds-error:#DC2626;--ds-info:#0284C7;\n --ds-heading-font:'PingFang SC',-apple-system,BlinkMacSystemFont,'Segoe UI','Microsoft YaHei',sans-serif;\n --ds-body-font:'PingFang SC',-apple-system,BlinkMacSystemFont,'Segoe UI','Microsoft YaHei',sans-serif;\n --ds-mono-font:'JetBrains Mono','Fira Code','Consolas',monospace;\n --ds-base-font-size:14px;--ds-heading-weight:600;--ds-line-height:1.5;\n --ds-radius:8px;\n --ds-shadow:0 1px 3px rgba(0,0,0,.03);\n --ds-density-padding:12px;\n --ds-duration-fast:120ms;--ds-duration-normal:200ms;\n --ds-space-1:4px;--ds-space-2:8px;--ds-space-3:12px;--ds-space-4:16px;--ds-space-5:24px;--ds-space-6:32px;\n --ds-z-drawer:30;\n box-sizing:border-box;position:relative;display:flex;flex-direction:column;width:100%;height:100%;min-height:24rem;\n background:var(--ds-background);color:var(--ds-text);\n font-family:var(--ds-body-font);font-size:var(--ds-base-font-size);line-height:var(--ds-line-height)}\n.ygd-studio-workspace *{box-sizing:border-box}\n.ygd-studio-workspace .ygd-studio-select{\n --ds-bg-white:var(--ds-surface);--ds-fill-5:var(--ds-border);--ds-border-default:var(--ds-border);\n --ds-text-primary:var(--ds-text);--ds-icon-outline-default:var(--ds-text-secondary);\n --ds-brand-light-bg-default:var(--ds-primary-light);--ds-brand-text-primary:var(--ds-primary-dark);\n --ds-radius-4:var(--ds-radius);--ygd-panel-control-focus:var(--ds-primary);\n display:inline-flex;align-items:center;justify-content:space-between;gap:8px;min-width:0;max-width:100%;height:32px;\n padding:4px 10px;border:1px solid var(--ds-border);border-radius:var(--ds-radius);background:var(--ds-surface);color:var(--ds-text);font:inherit;line-height:20px;text-align:start;cursor:pointer}\n.ygd-studio-select:focus-visible{outline:2px solid var(--ds-primary);outline-offset:2px}\n.ygd-studio-select:disabled{cursor:not-allowed;opacity:.6}\nbutton.ygd-studio-select>span:first-child{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}\nbutton.ygd-studio-select>span:last-child{display:flex;flex:none;align-items:center;color:var(--ds-text-secondary)}\n.ygd-studio-workspace h1,.ygd-studio-workspace h2,.ygd-studio-workspace h3,.ygd-studio-workspace h4,.ygd-studio-workspace p,.ygd-studio-workspace ul,.ygd-studio-workspace ol{margin:0}\n\n/* Narrow-viewport drawer toggle; positioned by the responsive block below */\n.ygd-studio-menu-btn{display:none;align-items:center;justify-content:center;width:28px;height:28px;border:1px solid var(--ds-border);\n background:var(--ds-surface);cursor:pointer;color:var(--ds-text-secondary);font-size:16px;border-radius:var(--ds-radius);\n box-shadow:var(--ds-shadow)}\n.ygd-studio-menu-btn:hover{background:var(--ds-background);color:var(--ds-text)}\n\n/* Shell */\n.ygd-studio-body{display:flex;flex:1;min-height:0}\n.ygd-studio-sidebar{width:176px;padding:20px 12px 12px;flex-shrink:0;background:var(--ds-background);border-right:1px solid var(--ds-border);\n display:flex;flex-direction:column;overflow-y:auto}\n.ygd-studio-sidebar-logo{padding:0 6px 24px;font-family:var(--ds-heading-font);\n font-weight:var(--ds-heading-weight);font-size:18px;color:var(--ds-text);letter-spacing:-.6px;white-space:nowrap}\n.ygd-studio-sidebar-nav{padding:var(--ds-space-2) 0}\n.ygd-studio-sidebar-item{display:block;width:100%;padding:8px 10px;margin:2px 0;min-height:36px;border-radius:8px;font-size:14px;\n color:var(--ds-text-secondary);cursor:pointer;border:none;background:none;text-align:left;font-family:var(--ds-body-font);\n transition:color var(--ds-duration-fast),background var(--ds-duration-fast)}\n.ygd-studio-sidebar-item:hover{color:var(--ds-text);background:var(--ds-background)}\n.ygd-studio-sidebar-item[aria-current=\"page\"]{color:var(--ds-primary-dark);background:var(--ds-primary-light);font-weight:500}\n.ygd-studio-stage{position:relative;display:flex;flex:1;flex-direction:column;min-width:0;min-height:0}\n.ygd-studio-topbar{height:46px;flex-shrink:0;display:flex;align-items:center;justify-content:space-between;padding:0 20px;border-bottom:1px solid var(--ds-border);background:#fff;font-size:12px;color:var(--ds-text-secondary)}\n.ygd-studio-topbar span span{padding:0 10px;color:#b2b2b2}\n.ygd-studio-topbar-actions{display:flex;align-items:center;gap:12px}\n.ygd-studio-language{display:flex;align-items:center;padding:2px;border:1px solid var(--ds-border);border-radius:var(--ds-radius);background:var(--ds-background)}\n.ygd-studio-sidebar-footer{margin-top:auto;padding:16px 0 0;display:flex;flex-direction:column;align-items:flex-start;gap:12px}\n.ygd-studio-sidebar-utilities{width:100%}\n.ygd-studio-sidebar-footer>.ygd-studio-language{margin-left:4px}\n.ygd-studio-language button{height:30px;min-width:38px;padding:0 8px;border:0;border-radius:4px;background:transparent;color:var(--ds-text-secondary);font:400 14px/20px var(--ds-body-font);cursor:pointer}\n.ygd-studio-language button[aria-pressed=\"true\"]{background:var(--ds-primary-light);color:var(--ds-primary-dark);font-weight:500}\n.ygd-studio-language button:focus-visible{outline:2px solid var(--ds-primary);outline-offset:1px}\n.ygd-studio-main{flex:1;display:flex;flex-direction:column;min-width:0;overflow:hidden}\n\n/* Content header */\n.ygd-studio-content-header{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px 12px;\n min-height:48px;padding:8px 20px;background:transparent;border-bottom:0;flex-shrink:0}\n.ygd-studio-header-title-group{display:flex;align-items:center;gap:var(--ds-space-2);flex-wrap:nowrap;min-height:32px;min-width:0}\n.ygd-studio-header-title-group>.ygd-studio-kitmark{position:static;width:32px;height:32px;border-radius:8px}\n.ygd-studio-header-title-group>.ygd-studio-kitmark svg{width:20px;height:20px}\n.ygd-studio-header-title-group>.ygd-studio-search-input{height:32px;min-height:32px;min-width:0}\n.ygd-studio-catalog-header{gap:12px 16px;padding:16px 20px 24px}\n.ygd-studio-catalog-tools{display:flex;align-items:center;gap:16px;min-width:0;max-width:100%;font-size:13px;color:var(--ds-text-secondary)}\n.ygd-studio-catalog-tools>[role=status]{white-space:nowrap;font-variant-numeric:tabular-nums}\n.ygd-studio-catalog-tools>.ygd-studio-search-input{width:300px;min-width:0;max-width:100%;height:32px;min-height:32px}\n@media(max-width:600px){.ygd-studio-catalog-tools{flex:1 1 100%;flex-wrap:wrap;gap:8px 12px}.ygd-studio-catalog-tools>.ygd-studio-search-input{flex:1 1 180px;width:auto}.ygd-studio-catalog-header>.ygd-studio-catalog-link{margin-left:0}}\n.ygd-studio-page-title{font-family:var(--ds-heading-font);font-weight:500;font-size:18px;line-height:24px;color:var(--ds-text);letter-spacing:-.5px;min-width:0;overflow-wrap:anywhere}\n.ygd-studio-subtitle{font-size:12px;color:var(--ds-text-secondary);margin:0}\n.ygd-studio-workspace .ygd-studio-feedback,.ygd-studio-workspace .ygd-studio-error{font:13px/1.6 var(--ds-body-font);margin:0 0 12px;white-space:pre-wrap;overflow-wrap:anywhere;color:var(--ds-text-secondary)}\n.ygd-studio-workspace .ygd-studio-error{color:var(--ds-error)}\n.ygd-studio-context-label{display:none}\n.ygd-studio-version-badge{font-size:11px;padding:2px 8px;border-radius:var(--ds-radius);background:var(--ds-background);\n border:1px solid var(--ds-border);color:var(--ds-text-secondary);white-space:nowrap}\n.ygd-studio-readonly-badge{font-size:11px;padding:2px 8px;border-radius:var(--ds-radius);background:var(--ds-background);\n border:1px solid var(--ds-border);color:var(--ds-text-secondary);white-space:nowrap;font-weight:500}\n.ygd-studio-mounted-ref{font-size:11px;color:var(--ds-text-secondary);display:flex;align-items:center;gap:var(--ds-space-1)}\n.ygd-studio-mounted-ref strong{color:var(--ds-text);font-weight:500}\n.ygd-studio-breadcrumb{display:flex;align-items:center;gap:var(--ds-space-2);font-size:12px;color:var(--ds-text-secondary)}\n.ygd-studio-breadcrumb-sep{color:var(--ds-border)}\n.ygd-studio-breadcrumb-current{color:var(--ds-text);font-weight:500}\n.ygd-studio-breadcrumb-button{border:none;background:none;padding:0;font:inherit;color:inherit;cursor:pointer}\n.ygd-studio-breadcrumb-button:hover{color:var(--ds-primary)}\n\n/* Workplane tabs */\n.ygd-studio-workplane-bar{display:flex;gap:23px;border-bottom:1px solid var(--ds-border);background:transparent;\n margin:0 20px;padding:0;flex-shrink:0;flex-wrap:wrap}\n.ygd-studio-workplane-tab{padding:0 2px 9px;font-size:13px;font-weight:500;\n color:var(--ds-text-secondary);cursor:pointer;border:none;background:none;border-bottom:2px solid transparent;\n font-family:var(--ds-body-font);transition:color var(--ds-duration-fast),border-color var(--ds-duration-fast)}\n.ygd-studio-workplane-tab:hover{color:var(--ds-text)}\n.ygd-studio-workplane-tab[aria-selected=\"true\"],.ygd-studio-workplane-tab[aria-pressed=\"true\"]{color:var(--ds-primary);border-bottom-color:var(--ds-primary)}\n\n/* Content body */\n.ygd-studio-content-body{flex:1;min-height:0;overflow-y:auto;padding:0 20px 18px;display:flex;flex-direction:column}\n/* File workspaces own their shared outer margins; do not add a second Kit inset. */\n.ygd-studio-kit-files-body{padding:0;overflow:hidden}\n\n/* Bundle search */\n.ygd-studio-search{margin-bottom:var(--ds-space-4);max-width:400px}\n.ygd-studio-section-title{font:500 15px/22px var(--ds-body-font);margin:0}\n.ygd-studio-field{display:grid;gap:6px}\n.ygd-studio-search-input,.ygd-studio-text-input{width:100%;height:34px;min-height:34px;margin:0;padding:0 10px;font-size:13px;\n font-family:var(--ds-body-font);color:var(--ds-text);background:var(--ds-surface);\n border:1px solid var(--ds-border);border-radius:var(--ds-radius);outline:none;\n transition:border-color var(--ds-duration-fast)}\n.ygd-studio-text-input.ygd-studio-textarea{height:auto;min-height:88px;padding:8px 10px;resize:vertical}\n.ygd-studio-search-input:focus,.ygd-studio-text-input:focus{border-color:var(--ds-primary)}\n.ygd-studio-search-input::placeholder,.ygd-studio-text-input::placeholder{color:var(--ds-text-secondary)}\n\n/* Shared Kit / Bundle catalog cards */\n.ygd-studio-kits-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:12px}\n.ygd-studio-kit-card{background:var(--ds-surface);border:1px solid var(--ds-border);border-radius:var(--ds-radius);\n padding:15px;display:flex;flex-direction:column;gap:0;min-width:0;text-align:left;font:inherit;color:inherit;\n cursor:pointer;transition:box-shadow var(--ds-duration-fast)}\n.ygd-studio-kit-card:hover{box-shadow:var(--ds-shadow)}\n.ygd-studio-kit-card-header{display:flex;align-items:flex-start;justify-content:space-between;gap:var(--ds-space-2)}\n.ygd-studio-kit-card-name{font-family:var(--ds-heading-font);font-weight:var(--ds-heading-weight);font-size:15px;color:var(--ds-text)}\n.ygd-studio-kit-card-meta{display:flex;flex-direction:column;gap:var(--ds-space-1)}\n.ygd-studio-kit-card-meta-row{font-size:12px;color:var(--ds-text-secondary);display:flex;align-items:center;gap:var(--ds-space-2)}\n.ygd-studio-meta-label{color:var(--ds-text-secondary);min-width:80px}\n.ygd-studio-meta-value{color:var(--ds-text)}\n.ygd-studio-kit-card-actions{margin-top:var(--ds-space-1);padding-top:var(--ds-space-3);border-top:1px solid var(--ds-border)}\n.ygd-studio-btn-primary{display:inline-flex;align-items:center;gap:var(--ds-space-2);padding:var(--ds-space-2) var(--ds-space-3);\n font-size:12px;font-weight:500;font-family:var(--ds-body-font);color:#fff;background:var(--ds-primary);border:none;\n border-radius:var(--ds-radius);cursor:pointer;transition:background var(--ds-duration-fast)}\n.ygd-studio-btn-primary:hover{background:var(--ds-primary-dark)}\n.ygd-studio-btn-primary:active{background:var(--ds-primary-active)}\n.ygd-studio-trial button.ygd-studio-btn-primary{background:var(--ds-primary);color:#fff;border-color:transparent}\n.ygd-studio-trial button.ygd-studio-btn-primary:hover{background:var(--ds-primary-dark)}\n.ygd-studio-trial button.ygd-studio-btn-primary:active{background:var(--ds-primary-active)}\n.ygd-studio-btn-link{font-size:12px;color:var(--ds-primary);cursor:pointer;border:none;background:none;\n font-family:var(--ds-body-font);padding:var(--ds-space-1) var(--ds-space-2);border-radius:var(--ds-radius);\n transition:background var(--ds-duration-fast)}\n.ygd-studio-btn-link:hover{background:var(--ds-background)}\n\n/* Empty state */\n.ygd-studio-empty{display:flex;flex-direction:column;align-items:center;justify-content:center;\n padding:var(--ds-space-6);text-align:center;color:var(--ds-text-secondary);font-size:14px}\n\n.ygd-studio-mounts-editor{display:flex;flex:1;min-height:0;min-width:0;flex-direction:column;padding:2px 20px 16px;gap:12px;container-type:inline-size;container-name:studio-mounts}\n.ygd-studio-mounts-columns{display:grid;grid-template-columns:minmax(240px,300px) minmax(0,1fr);gap:24px;flex:1;min-height:0;min-width:0}\n.ygd-studio-mounts-column{display:flex;flex-direction:column;gap:12px;min-width:0;min-height:0}\n.ygd-studio-mounts-heading{display:flex;align-items:center;gap:8px;min-height:32px}\n.ygd-studio-mounts-heading h2{font-size:14px;font-weight:500;flex-shrink:0}\n.ygd-studio-mounts-heading>span{flex-shrink:0;font-size:12px;color:var(--ds-text-secondary);font-variant-numeric:tabular-nums}\n.ygd-studio-mounts-search{flex:1;min-width:0;width:auto;height:32px;min-height:32px;margin-left:auto}\n.ygd-studio-mounts-selected{border-left:1px solid var(--ds-border);padding-left:20px}\n.ygd-studio-mounts-card-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,260px),1fr));align-content:start;gap:12px;min-height:0;overflow:auto;padding:1px 4px 4px 1px}\n.ygd-studio-mounts-candidates .ygd-studio-mounts-card-list{grid-template-columns:minmax(0,1fr)}\n.ygd-studio-mounts-card-list .ygd-studio-kit-card{cursor:default}\n.ygd-studio-mounts-change-status{margin-right:auto;color:var(--ds-text-secondary);font-size:12px}\n@container studio-mounts (max-width:640px){.ygd-studio-mounts-columns{grid-template-columns:minmax(0,1fr);grid-template-rows:repeat(2,minmax(0,1fr));gap:16px}.ygd-studio-mounts-selected{border-left:0;border-top:1px solid var(--ds-border);padding-left:0;padding-top:16px}}\n\n/* Bundle items */\n.ygd-studio-bundles-list{display:flex;flex-direction:column;gap:var(--ds-space-3)}\n.ygd-studio-bundle-item{display:flex;align-items:center;justify-content:space-between;gap:var(--ds-space-3);\n background:var(--ds-surface);border:1px solid var(--ds-border);border-radius:var(--ds-radius);\n padding:var(--ds-space-3) var(--ds-space-4);transition:box-shadow var(--ds-duration-fast)}\n.ygd-studio-bundle-item:hover{box-shadow:var(--ds-shadow)}\n.ygd-studio-bundle-info{display:flex;flex-direction:column;gap:var(--ds-space-1);min-width:0;flex:1}\n.ygd-studio-bundle-name-row{display:flex;align-items:center;gap:var(--ds-space-2);flex-wrap:wrap}\n.ygd-studio-bundle-name{font-weight:500;font-size:14px;color:var(--ds-text)}\n.ygd-studio-bundle-id{font-family:var(--ds-mono-font);font-size:11px;color:var(--ds-text-secondary)}\n.ygd-studio-bundle-purpose{font-size:12px;color:var(--ds-text-secondary)}\n.ygd-studio-bundle-item-card{align-items:flex-start}\n.ygd-studio-card-description{font-size:12px;line-height:1.6;color:var(--ds-text-secondary);display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}\n.ygd-studio-card-description .ygd-studio-markdown{max-width:none;font-size:12px;line-height:1.6;color:var(--ds-text-secondary)}\n.ygd-studio-card-description .ygd-studio-markdown p,\n.ygd-studio-card-description .ygd-studio-markdown ul,\n.ygd-studio-card-description .ygd-studio-markdown ol{margin-bottom:var(--ds-space-1)}\n.ygd-studio-card-description .ygd-studio-markdown ul,\n.ygd-studio-card-description .ygd-studio-markdown ol{padding-left:var(--ds-space-4)}\n.ygd-studio-card-description .ygd-studio-markdown li{margin-bottom:2px}\n.ygd-studio-card-description .ygd-studio-markdown strong{color:var(--ds-text);font-weight:600}\n.ygd-studio-bundle-actions{flex-shrink:0}\n\n/* Document toolbar (rich/source toggle) */\n.ygd-studio-doc-toolbar{display:flex;align-items:center;gap:var(--ds-space-2);margin-bottom:var(--ds-space-3);flex-shrink:0}\n.ygd-studio-doc-toggle-group{display:inline-flex;border:1px solid var(--ds-border);border-radius:var(--ds-radius);\n overflow:hidden;background:var(--ds-surface)}\n.ygd-studio-doc-toggle{padding:var(--ds-space-1) var(--ds-space-3);font-size:12px;line-height:18px;border:none;\n background:var(--ds-surface);color:var(--ds-text-secondary);cursor:pointer;font-family:var(--ds-body-font);\n transition:color var(--ds-duration-fast),background var(--ds-duration-fast)}\n.ygd-studio-doc-toggle+.ygd-studio-doc-toggle{border-left:1px solid var(--ds-border)}\n.ygd-studio-doc-toggle:hover{color:var(--ds-text);background:var(--ds-background)}\n.ygd-studio-doc-toggle[aria-pressed=\"true\"]{background:var(--ds-primary);color:#fff}\n.ygd-studio-doc-meta{margin-left:auto;font-size:11px;color:var(--ds-text-secondary);font-family:var(--ds-mono-font)}\n\n/* Frontmatter + rich markdown */\n.ygd-studio-frontmatter{background:var(--ds-background);border:1px solid var(--ds-border);border-radius:var(--ds-radius);\n padding:var(--ds-space-3) var(--ds-space-4);margin-bottom:var(--ds-space-4);font-family:var(--ds-mono-font);\n font-size:12px;line-height:1.6;color:var(--ds-text-secondary);white-space:pre-wrap;word-break:break-word}\n.ygd-studio-markdown{max-width:800px;font-size:var(--ds-base-font-size);line-height:1.7;color:var(--ds-text)}\n.ygd-studio-markdown h1{font-family:var(--ds-heading-font);font-weight:var(--ds-heading-weight);font-size:20px;margin-bottom:var(--ds-space-3)}\n.ygd-studio-markdown h2{font-family:var(--ds-heading-font);font-weight:var(--ds-heading-weight);font-size:16px;margin-top:var(--ds-space-5);margin-bottom:var(--ds-space-2)}\n.ygd-studio-markdown h3,.ygd-studio-markdown h4{font-family:var(--ds-heading-font);font-weight:var(--ds-heading-weight);font-size:14px;margin-top:var(--ds-space-4);margin-bottom:var(--ds-space-2)}\n.ygd-studio-markdown p{margin-bottom:var(--ds-space-3)}\n.ygd-studio-markdown ul,.ygd-studio-markdown ol{margin-bottom:var(--ds-space-3);padding-left:var(--ds-space-5)}\n.ygd-studio-markdown li{margin-bottom:var(--ds-space-1)}\n.ygd-studio-markdown code{font-family:var(--ds-mono-font);font-size:12px;background:var(--ds-background);padding:1px 4px;border-radius:3px;color:var(--ds-text)}\n.ygd-studio-markdown pre{background:var(--ds-background);border:1px solid var(--ds-border);border-radius:var(--ds-radius);\n padding:var(--ds-space-3);margin-bottom:var(--ds-space-4);font-family:var(--ds-mono-font);font-size:12px;line-height:1.6;overflow-x:auto}\n.ygd-studio-markdown pre code{background:none;padding:0}\n.ygd-studio-markdown-table-scroll{max-width:100%;overflow-x:auto;margin-bottom:var(--ds-space-4);border:1px solid var(--ds-border);border-radius:var(--ds-radius)}\n.ygd-studio-markdown-table-scroll:focus-visible{outline:2px solid var(--ds-primary);outline-offset:2px}\n.ygd-studio-markdown table{width:100%;border-collapse:collapse;font-size:inherit;line-height:1.6}\n.ygd-studio-markdown th,.ygd-studio-markdown td{padding:8px 12px;text-align:left;vertical-align:top;overflow-wrap:anywhere;border-bottom:1px solid var(--ds-border)}\n.ygd-studio-markdown th{background:var(--ds-background);font-weight:600}\n.ygd-studio-markdown th+th,.ygd-studio-markdown td+td{border-left:1px solid var(--ds-border)}\n.ygd-studio-markdown tbody tr:last-child td{border-bottom:0}\n.ygd-studio-markdown tbody tr:nth-child(even){background:var(--ds-background)}\n\n/* Code viewer with line numbers; fills the remaining height of its flex parent */\n.ygd-studio-code-frame{flex:1 1 auto;min-height:min(64vh,52rem);display:flex;flex-direction:column;\n background:var(--ds-surface);border:1px solid var(--ds-border);border-radius:var(--ds-radius);overflow:hidden}\n.ygd-studio-code-scroll{flex:1;min-height:0;overflow:auto;padding:var(--ds-space-4) 0}\n.ygd-studio-code-view{display:flex;font-family:var(--ds-mono-font);font-size:13px;line-height:1.6;color:var(--ds-text)}\n.ygd-studio-line-numbers{width:44px;flex-shrink:0;text-align:right;padding:0 var(--ds-space-3);color:var(--ds-text-secondary);\n font-size:12px;line-height:1.6;user-select:none;border-right:1px solid var(--ds-border);margin-right:var(--ds-space-3);white-space:pre}\n.ygd-studio-code-body{margin:0;padding:0 var(--ds-space-4) 0 0;white-space:pre-wrap;word-break:break-word;flex:1;min-width:0;\n font-family:var(--ds-mono-font);font-size:13px;line-height:1.6}\n\n/* Summaries */\n.ygd-studio-summary-panel{margin-top:var(--ds-space-5);border-top:1px solid var(--ds-border);padding-top:var(--ds-space-4)}\n.ygd-studio-summary-title{font-family:var(--ds-heading-font);font-weight:var(--ds-heading-weight);font-size:14px;color:var(--ds-text);margin-bottom:var(--ds-space-3)}\n.ygd-studio-summary-grid{display:grid;grid-template-columns:1fr 1fr;gap:var(--ds-space-4)}\n.ygd-studio-summary-card{background:var(--ds-background);border:1px solid var(--ds-border);border-radius:var(--ds-radius);padding:var(--ds-space-3)}\n.ygd-studio-summary-card-title{font-size:12px;font-weight:600;color:var(--ds-text-secondary);margin-bottom:var(--ds-space-2);text-transform:uppercase;letter-spacing:.03em}\n.ygd-studio-summary-field{display:flex;justify-content:space-between;gap:var(--ds-space-2);padding:var(--ds-space-1) 0;font-size:12px;border-bottom:1px solid var(--ds-border)}\n.ygd-studio-summary-field:last-child{border-bottom:none}\n.ygd-studio-summary-field-name{color:var(--ds-text)}\n.ygd-studio-summary-field-type{font-family:var(--ds-mono-font);color:var(--ds-text-secondary);font-size:11px}\n\n/* Native Panel readonly placeholder */\n.ygd-studio-panel-container{margin-top:var(--ds-space-5);border:1px solid var(--ds-border);border-radius:var(--ds-radius);overflow:hidden}\n.ygd-studio-panel-header{padding:var(--ds-space-2) var(--ds-space-3);background:var(--ds-background);\n border-bottom:1px solid var(--ds-border);font-size:12px;font-weight:600;color:var(--ds-text-secondary);\n display:flex;align-items:center;gap:var(--ds-space-2);flex-wrap:wrap}\n.ygd-studio-panel-badge{font-size:10px;padding:1px 6px;border-radius:var(--ds-radius);background:var(--ds-border);color:var(--ds-text-secondary)}\n.ygd-studio-panel-placeholder{display:flex;flex-direction:column;align-items:center;justify-content:center;\n padding:var(--ds-space-5);text-align:center;color:var(--ds-text-secondary);gap:var(--ds-space-2)}\n.ygd-studio-panel-placeholder-text{font-size:13px}\n.ygd-studio-panel-placeholder-sub{font-size:11px;opacity:.7}\n\n/* Bundle workspace two-pane body */\n.ygd-studio-workspace-body{flex:1;display:flex;min-height:0;overflow:hidden;background:var(--ds-surface)}\n.ygd-studio-workspace [hidden]{display:none!important}\n.ygd-studio-file-tree-pane{width:240px;flex-shrink:0;background:var(--ds-surface);border-right:1px solid var(--ds-border);\n display:flex;flex-direction:column;overflow:hidden}\n.ygd-studio-file-tree-header{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:var(--ds-space-2) var(--ds-space-3);font-size:11px;font-weight:600;\n color:var(--ds-text-secondary);border-bottom:1px solid var(--ds-border)}\n.ygd-studio-new-file{display:flex;flex-direction:column;gap:8px;padding:12px;border-bottom:1px solid var(--ds-border)}\n.ygd-studio-new-file .ygd-studio-text-input{width:100%;box-sizing:border-box}\n.ygd-studio-file-tree{flex:1;overflow-y:auto;padding:var(--ds-space-2) 0}\n.ygd-studio-tree-section{padding:var(--ds-space-2) var(--ds-space-3) var(--ds-space-1);font-size:11px;font-weight:600;\n color:var(--ds-text-secondary);text-transform:uppercase;letter-spacing:.03em}\n.ygd-studio-tree-node{display:flex;align-items:center;gap:var(--ds-space-2);width:100%;padding:var(--ds-space-1) var(--ds-space-3);\n font-size:13px;color:var(--ds-text);cursor:pointer;border:none;background:none;text-align:left;font-family:var(--ds-body-font);\n transition:background var(--ds-duration-fast)}\n.ygd-studio-tree-node:hover{background:var(--ds-background)}\n.ygd-studio-tree-node[aria-current=\"true\"]{background:var(--ds-primary-light);color:var(--ds-primary-dark)}\n.ygd-studio-tree-label{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}\n.ygd-studio-content-pane{flex:1;display:flex;flex-direction:column;min-width:0;overflow-y:auto;padding:var(--ds-space-4) var(--ds-space-5)}\n\n/* Diagnostics */\n.ygd-studio-diagnostics{margin:var(--ds-space-3) var(--ds-space-5) 0;padding:10px 14px;border-radius:var(--ds-radius);\n border:1px solid #FECACA;background:#FEF2F2;color:var(--ds-error);list-style:none;font-size:13px}\n\n/* Explicit sample-only authoring. Runtime Panel descendants keep their own styles. */\n/* Approved compact Studio composition; neutral controls measured on yugoo.cn. */\n.ygd-studio-content-header:has(.ygd-studio-breadcrumb){display:block}\n.ygd-studio-content-header .ygd-studio-breadcrumb{margin-bottom:10px}\n.ygd-studio-content-header>div:has(>.ygd-studio-header-title-group){display:flex;align-items:center;gap:8px 12px;flex-wrap:wrap;width:100%;min-width:0}\n.ygd-studio-content-header>div:has(>.ygd-studio-hero-actions)>.ygd-studio-header-title-group{flex:1 1 200px}\n.ygd-studio-hero-actions{display:flex;align-items:center;gap:6px;flex-shrink:0;flex-wrap:wrap;max-width:100%;margin-left:auto}\n.ygd-studio-editor-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}\n.ygd-studio-preview-caption{margin:0;padding:10px 16px;font-size:12px;color:var(--ds-text-secondary)}\n.ygd-studio-hero-actions .ygd-studio-trial{position:relative}\n.ygd-studio-hero-actions .ygd-studio-trial:has([aria-expanded=\"true\"]){width:auto}\n.ygd-studio-hero-actions .ygd-studio-trial>.ygd-studio-summary-card{position:absolute;right:0;top:100%;z-index:20;width:min(480px,75vw);max-height:65vh;overflow:auto;box-shadow:0 8px 30px #0002}\n.ygd-studio-content-header .ygd-studio-btn-primary,.ygd-studio-content-header .ygd-studio-btn-link{margin-top:8px;margin-right:6px}\n.ygd-studio-file-tree-pane{width:230px;background:#f8f9fb}\n.ygd-studio-file-tree{padding:8px 0}\n.ygd-studio-tree-node,.ygd-studio-tree-folder>summary{height:28px;min-height:28px;display:flex;align-items:center;gap:6px;padding:0 10px;font:400 13px/28px var(--ds-body-font);color:#404957;white-space:nowrap;cursor:pointer}\n.ygd-studio-tree-folder>summary{list-style:none}\n.ygd-studio-tree-folder>summary::-webkit-details-marker{display:none}\n.ygd-studio-tree-folder>summary:hover,.ygd-studio-tree-node:hover{background:#eef0f4}\n.ygd-studio-tree-children{margin-left:14px;padding-left:8px;border-left:1px solid #e3e6ec}\n.ygd-studio-chevron{width:10px;flex:0 0 10px;color:#8793a6;font-size:16px}\n.ygd-studio-tree-folder[open]>summary .ygd-studio-chevron{transform:rotate(90deg)}\n.ygd-studio-file-icon{width:16px;height:16px;flex:0 0 16px;fill:none;stroke:currentColor;stroke-width:1.3;stroke-linecap:round;stroke-linejoin:round;color:#8793a6}\n.ygd-studio-file-icon.markdown{color:#698aaf}.ygd-studio-file-icon.config{color:#a98e4e}\n.ygd-studio-tree-node[aria-current=\"true\"]{background:var(--ds-primary-light);box-shadow:inset 2px 0 var(--ds-primary);color:var(--ds-primary-dark)}\n.ygd-studio-file-path{font:12px var(--ds-body-font);color:var(--ds-text-secondary);padding-bottom:12px;overflow-wrap:anywhere}\n.ygd-studio-content-pane{padding:14px 20px;background:#fff}\n.ygd-studio-mindset-layout{display:grid;grid-template-columns:minmax(0,1fr) 205px;gap:14px;min-height:0;flex:1}\n.ygd-studio-document-card{display:flex;flex-direction:column;min-height:0;min-width:0;border:1px solid var(--ds-border);border-radius:10px;background:#fff;overflow:hidden}\n.ygd-studio-document-card>.ygd-studio-doc-toolbar{padding:9px 14px;border-bottom:1px solid var(--ds-border);margin:0}\n\n/* Authoring composition: conversation stays mounted while the adjacent content changes. */\n.ygd-studio-authoring-layout{display:grid;grid-template-columns:minmax(280px,360px) minmax(0,1fr);min-height:0;border-top:1px solid var(--ds-border)}\n.ygd-studio-conversation{display:flex;flex-direction:column;min-width:0;min-height:0;background:var(--ds-surface);border-right:1px solid var(--ds-border)}\n.ygd-studio-conversation-header{padding:16px;border-bottom:1px solid var(--ds-border)}\n.ygd-studio-conversation-header h2{font:500 15px/24px var(--ds-heading-font)}\n.ygd-studio-conversation-header p,.ygd-studio-conversation-note{color:var(--ds-text-secondary);font-size:12px;line-height:1.6}\n.ygd-studio-conversation-log{flex:1;min-height:0;overflow:auto;overscroll-behavior:contain;padding:20px 16px;scrollbar-gutter:stable}\n.ygd-studio-conversation-welcome{display:flex;flex-direction:column;gap:8px;font-size:13px;line-height:1.7}\n.ygd-studio-conversation-welcome strong{font-weight:500}\n.ygd-studio-conversation-welcome p{color:var(--ds-text-secondary)}\n.ygd-studio-conversation-turn{margin-bottom:24px}\n.ygd-studio-conversation-message{display:flex;flex-direction:column;gap:8px;font-size:13px;line-height:1.7;overflow-wrap:anywhere}\n.ygd-studio-conversation-message>p{white-space:pre-wrap}\n.ygd-studio-conversation-actions{display:flex;flex-wrap:wrap;gap:8px}\n.ygd-studio-conversation-composer{display:flex;flex-direction:column;gap:8px;flex:none;max-height:60%;overflow:auto;padding:12px 16px;border-top:1px solid var(--ds-border)}\n.ygd-studio-conversation-composer .ygd-studio-field{gap:8px;font-size:12px}\n.ygd-studio-conversation-composer textarea{min-height:88px;max-height:200px;resize:vertical;font:13px/1.7 var(--ds-body-font)}\n.ygd-studio-conversation-send{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px}\n.ygd-studio-authoring-content{container:studio-authoring-content / inline-size;display:flex;min-width:0;min-height:0;overflow:hidden}\n@media(max-width:1100px){.ygd-studio-authoring-layout{grid-template-columns:300px minmax(0,1fr)}.ygd-studio-authoring-content .ygd-studio-file-tree-pane{width:150px}}\n@container studio-authoring-content (max-width:800px){.ygd-studio-authoring-content .ygd-studio-files-layout{display:grid;grid-template-columns:150px minmax(0,1fr);grid-template-rows:minmax(0,1fr) auto}.ygd-studio-authoring-content .ygd-studio-file-tree-pane{grid-row:1 / 3;width:150px}.ygd-studio-authoring-content .ygd-studio-files-layout>.ygd-studio-content-pane{grid-column:2;grid-row:1;min-height:0}.ygd-studio-authoring-content .ygd-studio-file-info{grid-column:2;grid-row:2;border-left:0;border-top:1px solid var(--ds-border);max-height:140px}}\n@media(max-width:700px){.ygd-studio-authoring-layout{grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(240px,45%) minmax(0,1fr)}.ygd-studio-conversation{border-right:0;border-bottom:1px solid var(--ds-border)}.ygd-studio-conversation-header{padding:8px 12px}.ygd-studio-conversation-header p{display:none}.ygd-studio-conversation-log{padding:12px}.ygd-studio-conversation-composer{padding:8px 12px;max-height:70%}.ygd-studio-conversation-composer textarea{min-height:60px}}\n.ygd-studio-document-name{font:500 13px var(--ds-mono-font);margin-right:auto}\n.ygd-studio-file-heading{display:flex;align-items:baseline;flex-wrap:wrap;gap:4px 10px;flex:1;min-width:180px}\n.ygd-studio-file-heading>.ygd-studio-document-name{margin-right:0;overflow-wrap:anywhere}\n.ygd-studio-file-info{flex:0 0 224px;box-sizing:border-box;min-height:0;overflow:auto;border-left:1px solid var(--ds-border);padding:16px;background:var(--ds-surface,#fafafa)}\n.ygd-studio-file-info h3{margin:0 0 8px;font:500 13px/1.5 var(--ds-body-font)}\n.ygd-studio-file-info .ygd-studio-markdown{font:400 12px/1.7 var(--ds-body-font);color:var(--ds-text-secondary);max-width:none}\n.ygd-studio-file-info .ygd-studio-markdown p{margin:0 0 8px}\n.ygd-studio-file-info .ygd-studio-markdown ul{padding-left:16px;margin:0}\n.ygd-studio-card-meta{font-size:11px;line-height:1.6;color:var(--ds-text-secondary);margin:0 0 12px}\n@media(max-width:1100px){.ygd-studio-file-info{flex-basis:180px;padding:12px}}\n@media(max-width:800px){\n .ygd-studio-files-layout{display:grid;grid-template-columns:150px minmax(0,1fr);grid-template-rows:minmax(0,1fr) auto}\n .ygd-studio-files-layout>.ygd-studio-file-tree-pane{grid-row:1 / 3;width:150px}\n .ygd-studio-files-layout>.ygd-studio-content-pane{grid-column:2;grid-row:1;min-height:0}\n .ygd-studio-files-layout>.ygd-studio-file-info{grid-column:2;grid-row:2;border-left:0;border-top:1px solid var(--ds-border);max-height:140px}\n}\n.ygd-studio-doc-meta{margin-left:0}\n.ygd-studio-kitmark{width:43px;height:43px;border-radius:11px;background:#ededed;color:#575757;display:inline-flex;align-items:center;justify-content:center;flex-shrink:0}\n.ygd-studio-kitmark svg{width:24px;height:24px}\n.ygd-studio-btn-secondary{border:1px solid var(--ds-border);border-radius:8px;padding:6px 11px;background:white;font:500 13px var(--ds-body-font);color:var(--ds-text);cursor:pointer;white-space:nowrap}\n.ygd-studio-btn-secondary:disabled{color:#aaa;cursor:not-allowed;background:#fafafa}\n.ygd-studio-instance-actions{display:flex;gap:6px}\n.ygd-studio-modal{width:min(640px,90vw);max-height:82vh;overflow:auto;margin:auto;padding:22px;border:1px solid var(--ds-border);border-radius:12px;background:var(--ds-surface);color:var(--ds-text);font:14px/1.6 var(--ds-body-font)}\n.ygd-studio-modal::backdrop{background:#0005}\n.ygd-studio-modal>header{display:flex;align-items:center;justify-content:space-between;margin-bottom:14px;gap:12px}\n.ygd-studio-modal h2{font-size:18px}.ygd-studio-modal>header button{border:0;background:none;font:24px var(--ds-body-font);cursor:pointer;color:#6d6d6d}\n.ygd-studio-modal>p{margin:10px 0;color:var(--ds-text-secondary);font-size:13px}\n.ygd-studio-transfer{display:grid;gap:14px;min-width:0}\n.ygd-studio-transfer p{margin:0;overflow-wrap:anywhere}\n.ygd-studio-modal-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:8px}\n.ygd-studio-error-entry{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin:8px 0;padding:10px 12px;border:1px solid color-mix(in srgb,var(--ds-error) 25%,var(--ds-border));border-radius:var(--ds-radius);background:var(--ds-surface);color:var(--ds-text);font:13px/1.6 var(--ds-body-font);min-width:0;pointer-events:auto}\n.ygd-studio-feedback-icon{width:18px;height:18px;flex:none;color:var(--ds-error)}\n.ygd-studio-error-title{flex:1;min-width:120px;overflow-wrap:anywhere}\n.ygd-studio-content-state{display:flex;flex:1;align-items:center;justify-content:center;min-width:0;min-height:180px;width:100%;padding:24px;box-sizing:border-box;font:13px/1.6 var(--ds-body-font);color:var(--ds-text-secondary);text-align:center}\n.ygd-studio-content-state-card{display:flex;flex-direction:column;align-items:center;gap:6px;width:min(100%,320px);overflow-wrap:anywhere}\n.ygd-studio-content-state-heading{display:flex;align-items:center;justify-content:center;gap:7px}\n.ygd-studio-content-state-icon{width:18px;height:18px;flex:none;color:var(--ds-warning)}\n.ygd-studio-content-state-heading>strong{color:var(--ds-text-secondary);font-weight:500;font-size:13px}\n.ygd-studio-content-state-card>p{margin:0;max-width:100%;font-size:12px}\n.ygd-studio-content-state[data-tone=info] .ygd-studio-content-state-icon{color:var(--ds-text-secondary)}\n.ygd-studio-content-state-actions{display:flex;justify-content:center;flex-wrap:wrap;gap:8px;margin-top:4px}\n.ygd-studio-field-error{display:block;margin:4px 0;font:12px/1.6 var(--ds-body-font);color:var(--ds-error);overflow-wrap:anywhere}\n.ygd-studio-error-dialog{box-sizing:border-box;width:min(560px,calc(100vw - 32px));max-height:calc(100vh - 32px);overflow-wrap:anywhere;pointer-events:auto}\n.ygd-studio-error-dialog>p{white-space:pre-wrap}\n.ygd-studio-error-details{font:13px/1.6 var(--ds-body-font);margin:16px 0;color:var(--ds-text-secondary)}\n.ygd-studio-error-details summary{cursor:pointer;color:var(--ds-text);font-weight:500}\n.ygd-studio-error-details ul{padding-left:20px;max-height:40vh;overflow:auto;white-space:pre-wrap}\n.ygd-studio-error-details li+li{margin-top:10px}\n.ygd-studio-error-details li>.ygd-studio-btn-link{margin-right:8px}\n.ygd-studio-error-dialog .ygd-studio-modal-actions{flex-wrap:wrap}\n.ygd-studio-modal .ygd-studio-code-frame{min-height:0;max-height:60vh}.ygd-studio-modal .ygd-studio-code-scroll{max-height:60vh}\n.ygd-studio-topbar{gap:12px}.ygd-studio-topbar>span{display:flex;align-items:center;gap:8px}\n.ygd-studio-content-header .ygd-studio-breadcrumb{display:none}\n.ygd-studio-filter-row{display:flex;align-items:center;justify-content:flex-start;flex-wrap:wrap;gap:12px;margin-bottom:12px;font-size:12px;color:var(--ds-text-secondary)}\n.ygd-studio-filter-row input{width:280px;max-width:100%;min-width:0;flex:0 1 280px}\n.ygd-studio-bundles-list[aria-label=\"Mounted Bundles\"]{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:12px}\n.ygd-studio-bundles-list[aria-label=\"Mounted Bundles\"] .ygd-studio-bundle-item{display:flex;flex-direction:column;align-items:stretch;padding:15px}\n.ygd-studio-bundles-list[aria-label=\"Mounted Bundles\"] .ygd-studio-kitmark{width:28px;height:28px;border-radius:7px;margin-bottom:8px}\n.ygd-studio-bundles-list[aria-label=\"Mounted Bundles\"] .ygd-studio-kitmark svg{width:18px;height:18px}\n.ygd-studio-bundles-list[aria-label=\"Mounted Bundles\"] .ygd-studio-bundle-actions{border-top:1px solid var(--ds-border);padding-top:10px}\n.ygd-studio-bundles-list[aria-label=\"Mounted Bundles\"] .ygd-studio-bundle-id{display:none}\n.ygd-studio-mindset-document{padding:18px 24px;overflow:auto;flex:1;min-height:0}\n.ygd-studio-mindset-info{padding:16px;border:1px solid var(--ds-border);border-radius:10px;background:#fff;align-self:start;max-height:100%;overflow:auto}\n.ygd-studio-mindset-info h3{font-size:14px}.ygd-studio-mindset-info p{font-size:12px;color:var(--ds-text-secondary);margin:8px 0 12px}\n.ygd-studio-toc{margin-top:13px;padding-top:12px;border-top:1px solid var(--ds-border)}\n.ygd-studio-toc button{display:block;width:100%;text-align:left;border:0;background:none;padding:4px 0;font:12px/1.6 var(--ds-body-font);color:var(--ds-text-secondary);cursor:pointer;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}\n.ygd-studio-installed-preview{display:flex;flex-direction:column;margin:0 20px 18px;min-height:0;flex:1;overflow:auto;border:1px solid var(--ds-border);border-radius:10px;background:#fff;padding:0}\n.ygd-studio-preview-toolbar{display:flex;gap:12px;align-items:center;justify-content:space-between;flex-wrap:wrap;font-size:12px;padding:6px 12px;border-bottom:1px solid var(--ds-border);color:var(--ds-text-secondary)}\n.ygd-studio-preview-actions{display:flex;gap:8px;align-items:center}\n.ygd-studio-preview-actions button{height:30px;min-height:30px;padding:0 10px;font-size:12px;line-height:1;border-radius:8px;display:inline-flex;align-items:center;justify-content:center}\n.ygd-studio-preview-toolbar strong{color:var(--ds-text)}\n.ygd-studio-preview-sample{margin-top:16px;font-size:12px}\n.ygd-studio-preview-sample summary{cursor:pointer;padding:8px 0}\n.ygd-studio-preview-sample textarea{display:block;width:100%;padding:12px;border:1px solid var(--ds-border);border-radius:8px;font:13px/1.6 var(--ds-mono-font);margin-bottom:8px}\n.ygd-studio-mounts-inspector{margin:0 20px 14px;padding:14px;border:1px solid var(--ds-border);border-radius:10px;background:#fff;max-height:240px;overflow:auto}\n.ygd-studio-mounts-inspector p{margin:8px 0;font-size:13px}\n.ygd-studio-trial{display:inline-flex;vertical-align:middle;margin:0}\n.ygd-studio-hero-actions .ygd-studio-trial>button{height:32px;min-height:32px;margin:0;padding:0 12px;line-height:1;display:inline-flex;align-items:center;justify-content:center;font-size:13px}\n.ygd-studio-installed-status{font-size:12px;line-height:20px;color:var(--ds-text-secondary);white-space:nowrap}\n.ygd-studio-instance-menu{position:relative;display:inline-block;margin-left:auto}\n.ygd-studio-instance-menu>summary{display:flex;align-items:center;justify-content:center;list-style:none;cursor:pointer;width:32px;height:32px;border:1px solid var(--ds-border);border-radius:8px;background:#fff;font-weight:600}\n.ygd-studio-instance-menu>summary::-webkit-details-marker{display:none}\n.ygd-studio-instance-menu>div{position:absolute;right:0;top:100%;z-index:20;min-width:160px;padding:4px;background:#fff;border:1px solid var(--ds-border);border-radius:8px;box-shadow:0 4px 16px #00000012}\n.ygd-studio-instance-menu>div>button{display:block;width:100%;padding:8px;border:0;background:none;text-align:left;font:inherit;cursor:pointer;border-radius:4px;white-space:nowrap}\n.ygd-studio-instance-menu>div>button:hover{background:var(--ds-primary-light)}\n.ygd-studio-instance-menu>div>button[data-tone=danger]{color:var(--ds-error-text-primary,#b02d2f)}\n.ygd-studio-instance-menu>div>button[data-tone=danger]:hover{background:var(--ds-error-light-bg-default,#fff5f4)}\n.ygd-studio-trial select{max-width:100%;height:32px;border:1px solid var(--ds-border);border-radius:8px;background:#fff;font:inherit}\n.ygd-studio-workspace button:focus-visible,.ygd-studio-workspace summary:focus-visible{outline:2px solid var(--ds-primary);outline-offset:2px}\n/* Responsive */\n/* Demo geometry, Yugoo brand tokens: one hero, one document toolbar, one body. */\n.ygd-studio-content-header .ygd-studio-btn-primary,.ygd-studio-content-header .ygd-studio-btn-link{margin:0}\n.ygd-studio-content-header .ygd-studio-catalog-link{display:inline-flex;align-items:center;gap:6px;min-height:32px;max-width:100%;margin:0 0 0 auto;color:var(--ds-primary-dark);text-decoration:none;overflow-wrap:anywhere}\n.ygd-studio-catalog-link svg{flex-shrink:0}\n.ygd-studio-catalog-link:focus-visible{outline:2px solid var(--ds-primary);outline-offset:2px}\n.ygd-studio-sidebar-nav{padding:0}\n.ygd-studio-sidebar-item{display:flex;align-items:center;gap:10px}\n.ygd-studio-sidebar-item .ygd-studio-kitmark{width:18px;height:18px;background:none;color:inherit;border-radius:0}\n.ygd-studio-sidebar-item .ygd-studio-kitmark svg{width:18px;height:18px}\n.ygd-studio-kitmark{background:var(--ds-primary-light);color:var(--ds-primary-dark)}\n.ygd-studio-content-pane{display:flex;flex-direction:column;padding:0;overflow:hidden}\n.ygd-studio-content-pane>.ygd-studio-doc-toolbar{margin:0;padding:9px 14px;border-bottom:1px solid var(--ds-border)}\n.ygd-studio-document-body{flex:1;min-height:0;overflow:auto;padding:18px 24px}\n.ygd-studio-document-body:has(>.ygd-studio-loading),.ygd-studio-live-pane-body:has(>.ygd-studio-loading){display:flex;flex-direction:column}\n.ygd-studio-file-metadata{margin-bottom:18px;border-radius:8px;background:var(--ds-primary-light,#f7f4fe);color:var(--ds-text-secondary)}\n.ygd-studio-file-metadata>summary{padding:12px;font-size:12px;cursor:pointer}\n.ygd-studio-file-metadata .ygd-studio-frontmatter{margin:0;border:0;background:transparent}\n.ygd-studio-document-body:has(>.ygd-studio-code-frame){padding:0}\n.ygd-studio-mindset-document .ygd-studio-markdown,.ygd-studio-document-body .ygd-studio-markdown{max-width:none}\n.ygd-studio-mindset-document .ygd-studio-markdown h1,.ygd-studio-document-body .ygd-studio-markdown h1{font-size:22px;margin-bottom:14px}\n.ygd-studio-mindset-document .ygd-studio-markdown h2,.ygd-studio-document-body .ygd-studio-markdown h2{font-size:17px;margin:23px 0 10px;padding-bottom:6px;border-bottom:1px solid var(--ds-border)}\n.ygd-studio-doc-toolbar{min-height:51px;gap:10px;flex-wrap:wrap}\n.ygd-studio-doc-toggle-group{border:0;background:var(--ds-background);padding:3px;gap:2px}\n.ygd-studio-doc-toggle{background:transparent;border-radius:5px;padding:4px 9px}\n.ygd-studio-doc-toggle+.ygd-studio-doc-toggle{border:0}\n.ygd-studio-doc-toggle[aria-pressed=\"true\"]{background:#fff;color:var(--ds-text);box-shadow:0 1px 3px #0001}\n.ygd-studio-doc-footer{display:flex;align-items:center;gap:12px;padding:7px 14px;border-top:1px solid var(--ds-border);font-size:11px;color:var(--ds-text-secondary);flex-shrink:0}\n.ygd-studio-doc-footer>span:last-child{margin-left:auto}\n.ygd-studio-doc-footer button{font-size:11px;padding:0}\n.ygd-studio-inline-actions{display:inline-flex;align-items:center;gap:6px;font-size:12px}\n.ygd-studio-inline-actions button{font:inherit;padding:7px 11px;border:0;border-radius:8px;background:var(--ds-primary-light);color:var(--ds-primary-dark);cursor:pointer}\n.ygd-studio-inline-actions button:disabled{opacity:.5;cursor:default}\n.ygd-studio-mindset-info>.ygd-studio-btn-link{background:var(--ds-primary-light);color:var(--ds-primary-dark);padding:8px 11px}\n.ygd-studio-card-top{display:flex;align-items:center;justify-content:space-between;margin-bottom:8px}\n.ygd-studio-card-top .ygd-studio-kitmark{width:28px;height:28px;border-radius:7px}\n.ygd-studio-card-top .ygd-studio-kitmark svg{width:18px;height:18px}\n.ygd-studio-card-pill{font-size:11px;border:1px solid var(--ds-border);border-radius:5px;padding:2px 6px;color:var(--ds-text-secondary)}\n.ygd-studio-card-pill-action{background:transparent;font-family:inherit;cursor:pointer;line-height:inherit}\n.ygd-studio-card-pill-action:hover{color:var(--ds-text-primary);border-color:var(--ds-text-secondary)}\n.ygd-studio-card-pill-action:focus-visible{outline:2px solid var(--ds-accent);outline-offset:2px}\n.ygd-studio-import-actions{display:flex;align-items:center;gap:4px}\n.ygd-studio-import-warning{color:var(--ds-warning,#a86712);text-align:left;align-self:flex-start}\n.ygd-studio-import-issues{padding-left:20px;max-height:40vh;overflow:auto}\n\n.ygd-studio-source-id{font:11px/1.6 var(--ds-mono-font);color:var(--ds-text-secondary);margin-top:2px;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}\n.ygd-studio-kit-card .ygd-studio-card-description{margin:8px 0 12px;min-height:0}\n.ygd-studio-kit-card-actions{display:flex;align-items:center;gap:5px;margin-top:auto}\n.ygd-studio-kit-card-actions button{font-size:12px;padding:5px 8px}\n.ygd-studio-workplane-tab[aria-selected=\"true\"],.ygd-studio-workplane-tab[aria-pressed=\"true\"]{color:var(--ds-text)}\n@media(max-width:1023px){\n .ygd-studio-sidebar{position:absolute;left:0;top:0;bottom:0;z-index:var(--ds-z-drawer);visibility:hidden;opacity:0;\n transition:opacity var(--ds-duration-normal);width:200px;max-width:100%;padding-top:calc(var(--ds-space-2) + 28px + var(--ds-space-3))}\n .ygd-studio-sidebar.open{visibility:visible;opacity:1}\n .ygd-studio-menu-btn{display:flex;position:absolute;top:var(--ds-space-2);left:var(--ds-space-2);z-index:calc(var(--ds-z-drawer) + 1)}\n .ygd-studio-content-header{padding-left:48px}\n .ygd-studio-file-tree-pane{width:180px}\n .ygd-studio-summary-grid{grid-template-columns:minmax(0,1fr)}\n .ygd-studio-topbar{padding-left:48px}\n .ygd-studio-mindset-layout{grid-template-columns:minmax(0,1fr)}\n .ygd-studio-mindset-info{max-height:140px}.ygd-studio-toc{display:none}\n}\n.ygd-studio-hero-actions button{box-sizing:border-box;height:32px;min-height:32px;margin-top:0;padding:0 12px;display:inline-flex;align-items:center;justify-content:center;line-height:1}\n.ygd-studio-preview-slot,.ygd-studio-trial-slot{flex:1;min-height:0;min-width:0;display:flex;overflow:hidden;background:#fff}\n.ygd-studio-preview-slot[hidden],.ygd-studio-trial-slot[hidden],.ygd-studio-trial-workspace[hidden],.ygd-studio-trial-input[hidden]{display:none}\n.ygd-studio-trial-workspace{display:flex;flex-direction:column;flex:1;min-width:0;min-height:0;width:100%}\n.ygd-studio-trial-history{display:flex;align-items:center;gap:10px;padding:6px 10px;border-bottom:1px solid var(--ds-border);font-size:12px;flex-wrap:wrap}\n.ygd-studio-trial-history button,.ygd-studio-trial-history select{height:30px;box-sizing:border-box}\n.ygd-studio-trial-workarea{display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0,1fr);flex:1;min-height:0}\n.ygd-studio-trial-result{grid-column:2;grid-row:1;min-width:0;min-height:0;display:flex;flex-direction:column}.ygd-studio-trial-result iframe{width:100%;flex:1;min-height:0;border:0;background:#fff}.ygd-studio-trial-result-details{padding:6px 12px;border-top:1px solid var(--ds-border);font-size:12px;max-height:150px;overflow:auto}\n.ygd-studio-trial-input{grid-column:1;grid-row:1;display:flex;flex-direction:column;gap:12px;border-right:1px solid var(--ds-border);padding:12px;overflow:auto;min-width:0;min-height:0;font-size:12px}.ygd-studio-trial-input h3{font-size:13px;margin:0}.ygd-studio-trial-input textarea{width:100%;box-sizing:border-box;flex:1;min-height:120px;resize:none;padding:12px;margin:0;font:inherit;line-height:1.65;border:1px solid var(--ds-border);border-radius:8px}.ygd-studio-trial-input pre{white-space:pre-wrap;overflow-wrap:anywhere;font:inherit}\n.ygd-studio-trial-slot{margin:0;border:0;border-radius:0}\n.ygd-studio-trial-save{display:flex;align-items:center;justify-content:flex-end;flex-shrink:0;gap:8px;padding:10px 16px;border-top:1px solid var(--ds-border);background:#fff}\n.ygd-studio-trial-save .ygd-studio-trial-hint{margin:0 auto 0 0;font-size:12px;color:var(--ds-text-secondary)}\n.ygd-studio-trial-save button{height:32px;white-space:nowrap}\n.ygd-studio-trial-input-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:24px}\n.ygd-studio-trial-input .ygd-studio-trial-input-heading h3{margin:0}\n.ygd-studio-trial-status{font-size:11px;line-height:20px;padding:0 7px;border-radius:10px;background:var(--ds-background);color:var(--ds-text-secondary);white-space:nowrap}\n.ygd-studio-trial-status[data-state=\"waiting\"],.ygd-studio-trial-status[data-state=\"completed\"]{background:var(--ds-primary-light);color:var(--ds-primary)}\n.ygd-studio-trial-status[data-state=\"failed\"]{color:#b42318;background:#fff1ef}\n.ygd-studio-workspace button:disabled{opacity:.45;cursor:not-allowed}\n.ygd-studio-bundle-main .ygd-studio-installed-preview{position:relative;margin:0;flex:1;min-height:0;overflow:auto;padding:8px 16px}\n.ygd-studio-editor-heading{display:flex;align-items:center;gap:12px;padding:8px 12px;border-bottom:1px solid var(--ds-border);font-size:13px}\n.ygd-studio-editor-heading>span{margin-left:auto;color:var(--ds-text-secondary);font-size:12px}\n.ygd-studio-panel-split,.ygd-studio-trial-workarea.with-input{grid-template-columns:minmax(260px,32%) minmax(0,1fr)}\n.ygd-studio-panel-split{display:grid;grid-template-rows:minmax(0,1fr);flex:1;min-width:0;min-height:0;overflow:hidden}\n.ygd-studio-yaml-pane,.ygd-studio-live-pane{display:flex;flex-direction:column;min-width:0;min-height:0}\n.ygd-studio-yaml-pane{border-right:1px solid var(--ds-border)}\n.ygd-studio-yaml-pane>header,.ygd-studio-live-pane>header{display:flex;align-items:center;gap:10px;padding:6px 12px;border-bottom:1px solid var(--ds-border);min-height:34px;font-size:12px}\n.ygd-studio-yaml-pane>header>span,.ygd-studio-live-pane>header>span{color:var(--ds-text-secondary);font-size:11px}\n.ygd-studio-yaml-pane>header>button,.ygd-studio-live-pane>header>button{margin-left:auto;height:30px}\n.ygd-studio-yaml-pane>textarea{flex:1;min-height:0;resize:none;border:0;outline-offset:-2px;padding:12px;background:#fafafa;font:12px/1.65 ui-monospace,SFMono-Regular,Consolas,monospace;tab-size:2}\n.ygd-studio-live-pane-body{display:flex;flex-direction:column;flex:1;min-height:0;overflow:auto;padding:0}\n.ygd-studio-workspace .ygd-studio-trial-availability{padding:16px;max-width:400px;margin:auto;text-align:center;color:var(--ds-text-secondary);font-size:13px;line-height:1.6}\n.ygd-studio-trial-input>.ygd-studio-loading{flex:1}\n.ygd-studio-editor-errors{max-height:120px;overflow:auto;padding:0 12px;font-size:12px;color:#b42318}\n.ygd-studio-trial-columns{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:20px}\n.ygd-studio-trial-columns>section{min-width:0;padding:16px;border:1px solid var(--ds-border);border-radius:10px;font-size:13px}\n.ygd-studio-trial-columns h3{margin:0 0 12px;font-size:14px}.ygd-studio-trial-columns textarea{display:block;box-sizing:border-box;width:100%;margin:8px 0 12px;resize:vertical;font:inherit;line-height:1.6;padding:10px;border:1px solid var(--ds-border);border-radius:8px}\n.ygd-studio-trial-columns pre{white-space:pre-wrap;overflow-wrap:anywhere;font:inherit}.ygd-studio-trial-columns details{margin:12px 0}.ygd-studio-trial-hint{color:var(--ds-text-secondary);font-size:12px}\n@media(max-width:650px){.ygd-studio-trial-columns{grid-template-columns:minmax(0,1fr)}.ygd-studio-file-tree-pane{width:150px}.ygd-studio-content-pane{padding:12px}}\n\n.ygd-studio-inline-diff{flex:1;min-height:0;overflow:auto;margin:0;padding:12px 0;background:var(--ds-surface);font:13px/1.7 var(--ds-mono-font);tab-size:2}\n.ygd-studio-diff-line{display:flex;min-width:max-content;min-height:1.7em;padding:0 16px 0 8px}\n.ygd-studio-diff-line code{font:inherit;white-space:pre}\n.ygd-studio-diff-sign{display:inline-block;flex:0 0 24px;user-select:none;text-align:center;color:var(--ds-text-secondary)}\n.ygd-studio-diff-line[data-change=added]{background:color-mix(in srgb,var(--ds-success) 10%,var(--ds-surface))}\n.ygd-studio-diff-line[data-change=removed]{background:color-mix(in srgb,var(--ds-error) 10%,var(--ds-surface))}\n.ygd-studio-diff-line[data-change=added] .ygd-studio-diff-sign{color:var(--ds-success)}\n.ygd-studio-diff-line[data-change=removed] .ygd-studio-diff-sign{color:var(--ds-error)}\n.ygd-studio-kit-file-source{padding:16px;white-space:pre-wrap;font:13px/1.7 var(--ds-mono-font,ui-monospace,monospace)}\n.ygd-studio-bundle-mount-choice{display:flex;align-items:center;gap:8px;padding:6px}\n.ygd-studio-bundle-mount-choice>input[type=checkbox]{appearance:auto;font:inherit;accent-color:var(--ds-primary);margin:0}\n";
|
|
627
574
|
//#endregion
|
|
628
|
-
//#region src/
|
|
629
|
-
interface
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
575
|
+
//#region src/StudioFeedback.d.ts
|
|
576
|
+
interface StudioFeedbackDetail {
|
|
577
|
+
message: string;
|
|
578
|
+
file?: string;
|
|
579
|
+
onOpen?: () => void;
|
|
580
|
+
}
|
|
581
|
+
interface StudioFeedbackAction {
|
|
582
|
+
label: string;
|
|
583
|
+
onClick: () => void;
|
|
584
|
+
disabled?: boolean;
|
|
585
|
+
primary?: boolean;
|
|
586
|
+
}
|
|
587
|
+
interface StudioFeedbackProps {
|
|
588
|
+
/** Identifies one outcome. Polling the same outcome must not reopen a dismissed notice. */
|
|
589
|
+
feedbackId: string;
|
|
590
|
+
tone: 'success' | 'error' | 'info';
|
|
591
|
+
title: string;
|
|
592
|
+
message?: string;
|
|
593
|
+
details?: readonly StudioFeedbackDetail[];
|
|
594
|
+
actions?: readonly StudioFeedbackAction[];
|
|
595
|
+
layout?: 'notice' | 'inline';
|
|
596
|
+
dismissible?: boolean;
|
|
597
|
+
/** Explicitly failed blocking actions may open once. Other errors remain in context. */
|
|
598
|
+
autoOpen?: boolean;
|
|
599
|
+
locale: 'zh' | 'en';
|
|
600
|
+
}
|
|
601
|
+
/** Presentation only. Owners supply outcomes, retry operations and exact file navigation. */
|
|
602
|
+
declare function StudioFeedback(props: StudioFeedbackProps): import("react").JSX.Element;
|
|
603
|
+
//#endregion
|
|
604
|
+
//#region src/StudioEmptyState.d.ts
|
|
605
|
+
/** Content absence belongs to the empty region; it is not an operation error. */
|
|
606
|
+
declare function StudioEmptyState({ title, description, tone, actions }: {
|
|
607
|
+
title: string;
|
|
608
|
+
description?: string;
|
|
609
|
+
tone?: 'warning' | 'info';
|
|
610
|
+
actions?: readonly StudioFeedbackAction[];
|
|
611
|
+
}): import("react").JSX.Element;
|
|
612
|
+
//#endregion
|
|
613
|
+
//#region src/ConversationActivity.d.ts
|
|
614
|
+
interface AgentConversationRow {
|
|
615
|
+
id: string;
|
|
616
|
+
role: string;
|
|
617
|
+
label: string;
|
|
618
|
+
text: string;
|
|
619
|
+
status: string;
|
|
620
|
+
}
|
|
621
|
+
declare function ConversationActivity({ rows, active, terminal, locale, renderText }: {
|
|
622
|
+
rows: readonly AgentConversationRow[];
|
|
623
|
+
active: boolean;
|
|
624
|
+
terminal: boolean;
|
|
636
625
|
locale?: 'zh' | 'en';
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
626
|
+
renderText?: (text: string) => ReactNode;
|
|
627
|
+
}): import("react").JSX.Element;
|
|
628
|
+
declare function ConversationMessage({ row, renderText, children }: {
|
|
629
|
+
row: AgentConversationRow;
|
|
630
|
+
renderText?: (text: string) => ReactNode;
|
|
631
|
+
children?: ReactNode;
|
|
632
|
+
}): import("react").JSX.Element;
|
|
633
|
+
/** Contiguous tools share one disclosure; assistant messages keep their recorded order. */
|
|
634
|
+
declare function ConversationMessages({ rows, active, terminal, locale }: {
|
|
635
|
+
rows: readonly AgentConversationRow[];
|
|
636
|
+
active: boolean;
|
|
637
|
+
terminal: boolean;
|
|
638
|
+
locale: 'zh' | 'en';
|
|
639
|
+
}): import("react").JSX.Element;
|
|
640
|
+
declare const CONVERSATION_ACTIVITY_CSS = "\n.companion-message{padding:12px 0;border:0;min-width:0;overflow-wrap:anywhere}\n.companion-message-content{font-size:16px;line-height:24px;padding:9px 4px;min-width:0;overflow-wrap:anywhere}\n.companion-message[data-role=assistant] .companion-message-content{font-size:14px;line-height:1.7}\n.companion-message-content> :first-child{margin-top:0}.companion-message-content> :last-child{margin-bottom:0}\n.companion-message[data-role=user]{display:flex;flex-direction:column;align-items:flex-end;padding-left:52px}\n.companion-message[data-role=user] .companion-message-label{text-align:right}\n.companion-message[data-role=user] .companion-message-content{box-sizing:border-box;max-width:100%;padding:10px 12px;border-radius:8px;background:var(--ds-surface-muted,#f6f6f6);font-size:14px}\n.companion-message-label{font-size:12px;color:var(--ds-text-secondary,#6d6d6d);margin-bottom:4px}\n.companion-activity{margin:8px 0;font-size:12px;color:var(--ds-text-secondary,#6d6d6d)}\n.companion-spinner{display:inline-block;width:12px;height:12px;margin-right:6px;border:2px solid var(--ds-border,#ddd);border-top-color:var(--ds-text-secondary,#666);border-radius:50%;vertical-align:middle;animation:companion-spin .8s linear infinite}\n@keyframes companion-spin{to{transform:rotate(360deg)}}\n@media(prefers-reduced-motion:reduce){.companion-spinner{animation:none}}\n.companion-activity>summary{cursor:pointer;padding:5px 0;overflow-wrap:anywhere}\n.companion-activity>summary:focus-visible{outline:2px solid var(--ds-primary,#7c5af6);outline-offset:2px;border-radius:3px}\n.companion-activity>div{padding-left:12px;border-left:1px solid var(--ds-border,#e8e8e8)}\n.companion-activity article{padding:4px 0;border:0;overflow-wrap:anywhere}\n.companion-activity .companion-message-label{margin:0}.companion-activity-failed{color:var(--ds-danger,#a34232)}\n";
|
|
641
|
+
//#endregion
|
|
642
|
+
//#region src/StudioErrorDialog.d.ts
|
|
643
|
+
interface StudioErrorDialogProps {
|
|
644
|
+
open: boolean;
|
|
645
|
+
onClose: () => void;
|
|
646
|
+
title: string;
|
|
647
|
+
message?: string;
|
|
648
|
+
details?: readonly StudioFeedbackDetail[];
|
|
649
|
+
actions?: readonly StudioFeedbackAction[];
|
|
650
|
+
locale: 'zh' | 'en';
|
|
646
651
|
}
|
|
647
|
-
/**
|
|
648
|
-
declare function
|
|
652
|
+
/** One shared error surface. Closing or inspecting never saves, retries or discards input. */
|
|
653
|
+
declare function StudioErrorDialog({ open, onClose, title, message, details, actions, locale }: StudioErrorDialogProps): import("react").JSX.Element | null;
|
|
649
654
|
//#endregion
|
|
650
|
-
export {
|
|
655
|
+
export { type AgentConversationRow, CONVERSATION_ACTIVITY_CSS, ConversationActivity, ConversationMessage, ConversationMessages, InstanceWorkbench, type InstanceWorkbenchProps, STUDIO_WORKSPACE_CSS, type StudioAuthoring, type StudioAuthoringClient, type StudioBundleFileViewerState, type StudioClientFailure, type StudioComponentDirectoryProps, type StudioComponentEntry, type StudioComponentLibrary, type StudioContentClient, type StudioContentExportInput, StudioEmptyState, StudioErrorDialog, type StudioErrorDialogProps, StudioFeedback, type StudioFeedbackAction, type StudioFeedbackDetail, type StudioFeedbackProps, type StudioInstance, type StudioInstanceClient, type StudioInstanceExportTarget, type StudioKitWorkspaceTab, type StudioManagementClient, type StudioManagementFailure, type StudioObjectAuthoringContext, type StudioPreparedSourceChanges, type StudioSection, type StudioSelectProps, type StudioSelectRenderer, type StudioTrialClient, StudioTrialController, type StudioTrialRecord, type StudioTrialSource, type StudioTrialState, type StudioUiLibrary, StudioWorkspace, StudioWorkspaceController, type StudioWorkspaceProps, type StudioWorkspaceState, assertStudioImportRequestSize, checkStudioTrialConnection, localTrialUrl, trialActive };
|