@yugoo-design/dsh-design-studio-ui 0.2.7 → 0.2.11
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 +5 -1
- package/lib/index.d.ts +16 -2
- package/lib/index.js +119 -45
- package/licenses/dsh-distribution.json +47 -47
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -211,7 +211,11 @@ copy and its new saved revision in place, so the existing export action reads
|
|
|
211
211
|
the saved source. A proposal arriving during human edits waits without reloading
|
|
212
212
|
or replacing them. A stale base cannot save; an uncertain save receipt disables
|
|
213
213
|
resubmission and export until the existing refresh/reopen path verifies the copy.
|
|
214
|
-
|
|
214
|
+
Verification reads the current revision and changed file contents without asking
|
|
215
|
+
to discard source or conversation drafts. If the save never committed, the exact
|
|
216
|
+
draft remains available for an explicit retry; matching saved contents complete
|
|
217
|
+
the existing save flow. Different saved contents retain the draft and report a
|
|
218
|
+
conflict. A failed read leaves the uncertainty intact. Late receipts cannot switch the
|
|
215
219
|
selected copy or candidate.
|
|
216
220
|
|
|
217
221
|
Operation failures use contextual `StudioFeedback` cards with recovery actions.
|
package/lib/index.d.ts
CHANGED
|
@@ -134,6 +134,19 @@ interface StudioAuthoring {
|
|
|
134
134
|
}) => ReactElement;
|
|
135
135
|
}
|
|
136
136
|
//#endregion
|
|
137
|
+
//#region src/BundleCard.d.ts
|
|
138
|
+
type Title = Readonly<{
|
|
139
|
+
zh: string;
|
|
140
|
+
en: string;
|
|
141
|
+
}>;
|
|
142
|
+
interface StudioBundleCardContent {
|
|
143
|
+
readonly name: string;
|
|
144
|
+
readonly version: string;
|
|
145
|
+
readonly title?: Title;
|
|
146
|
+
readonly description?: string;
|
|
147
|
+
readonly displayDescription?: Title;
|
|
148
|
+
}
|
|
149
|
+
//#endregion
|
|
137
150
|
//#region src/source-candidate-state.d.ts
|
|
138
151
|
interface StudioPreparedSourceChanges {
|
|
139
152
|
readonly request: StudioInstanceChangeRequest;
|
|
@@ -141,7 +154,7 @@ interface StudioPreparedSourceChanges {
|
|
|
141
154
|
}
|
|
142
155
|
interface SourceCandidateOptions {
|
|
143
156
|
readonly prepared: StudioPreparedSourceChanges;
|
|
144
|
-
readonly client: Pick<StudioInstanceClient, 'read'> & Required<Pick<StudioInstanceClient, 'saveChanges'>>;
|
|
157
|
+
readonly client: Pick<StudioInstanceClient, 'read' | 'readFile'> & Required<Pick<StudioInstanceClient, 'saveChanges'>>;
|
|
145
158
|
readonly locale: 'zh' | 'en';
|
|
146
159
|
readonly renderPreview?: unknown;
|
|
147
160
|
readonly instanceId?: string;
|
|
@@ -197,6 +210,7 @@ interface StudioInstance {
|
|
|
197
210
|
};
|
|
198
211
|
};
|
|
199
212
|
readonly instanceId?: string;
|
|
213
|
+
readonly display?: Pick<StudioBundleCardContent, 'title' | 'description' | 'displayDescription'>;
|
|
200
214
|
}[];
|
|
201
215
|
readonly refs: readonly {
|
|
202
216
|
readonly id: string;
|
|
@@ -570,7 +584,7 @@ interface StudioObjectAuthoringContext {
|
|
|
570
584
|
declare function StudioWorkspace({ client, controller: supplied, authoring, renderPreview, trials, instances, initialInstance, renderInstanceWorkbench, renderContent, componentLibrary, renderSelect, contentClient, onDraftDirtyChange, locale: hostLocale, onLocaleChange }: StudioWorkspaceProps): ReactElement;
|
|
571
585
|
//#endregion
|
|
572
586
|
//#region src/styles.d.ts
|
|
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";
|
|
587
|
+
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 var(--ds-border);border-radius:8px;background:var(--ds-surface);box-shadow:none}\n.ygd-studio-trial button{min-height:32px;padding:5px 10px;border:1px solid var(--ds-border);border-radius:8px;background:var(--ds-background);color:var(--ds-text);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 var(--ds-border);border-radius:8px;font:inherit;background:var(--ds-surface);color:var(--ds-text);resize:vertical}\n.ygd-studio-trial small{color:var(--ds-text-secondary);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:light-dark(#f7f4fe,#2c2342);--ds-primary-dark:light-dark(#6849d8,#bba5ff);--ds-primary-active:#5032bc;\n --ds-secondary:#64748B;--ds-accent:#0EA5E9;\n --ds-background:var(--dsw-alias-bg-layer-1,light-dark(#f7f7f7,#232326));--ds-surface:var(--dsw-alias-bg-base,light-dark(#fff,#19191c));\n --ds-bg-secondary:var(--ds-background);--ds-bg-hover:var(--dsw-alias-interactive-bg-hover-solid,var(--ds-background));\n --ds-text:var(--dsw-alias-label-primary,light-dark(#272727,#f2f2f5));--ds-text-secondary:var(--dsw-alias-label-tertiary,light-dark(#6d6d6d,#aaaab5));--ds-border:var(--dsw-alias-border-l2,light-dark(#e8e8e8,#46464e));\n --ds-success:light-dark(#059669,#55cf8b);--ds-warning:light-dark(#d97706,#f2ad65);--ds-error:light-dark(#dc2626,#f38486);--ds-info:light-dark(#0284c7,#86baff);\n --ds-danger:var(--ds-error);--ds-error-light-bg-default:light-dark(#fff1ef,#3e2226);--ds-error-text-primary:var(--ds-error);\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:var(--ds-surface);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:var(--ds-surface)}\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:var(--ds-surface);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:var(--ds-text-secondary)}\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:var(--ds-surface);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:var(--ds-surface);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:var(--ds-surface);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:var(--ds-surface);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:var(--ds-surface);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:var(--ds-surface);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:var(--ds-surface);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:var(--ds-surface)}\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:var(--ds-surface)}\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:var(--ds-error);background:var(--ds-error-light-bg-default)}\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";
|
|
574
588
|
//#endregion
|
|
575
589
|
//#region src/StudioFeedback.d.ts
|
|
576
590
|
interface StudioFeedbackDetail {
|
package/lib/index.js
CHANGED
|
@@ -709,18 +709,20 @@ ${CONVERSATION_ACTIVITY_CSS}
|
|
|
709
709
|
@keyframes ygd-studio-progress{0%{transform:translateX(-110%);opacity:.45}50%{opacity:1}100%{transform:translateX(310%);opacity:.45}}
|
|
710
710
|
@media(prefers-reduced-motion:reduce){.ygd-studio-spinner::before{animation:none;width:100%;opacity:.8}}
|
|
711
711
|
.ygd-studio-trial{margin-top:8px;font-size:14px}
|
|
712
|
-
.ygd-studio-trial .ygd-studio-summary-card{display:grid;gap:8px;margin-top:8px;padding:12px;border:1px solid
|
|
713
|
-
.ygd-studio-trial button{min-height:32px;padding:5px 10px;border:1px solid
|
|
712
|
+
.ygd-studio-trial .ygd-studio-summary-card{display:grid;gap:8px;margin-top:8px;padding:12px;border:1px solid var(--ds-border);border-radius:8px;background:var(--ds-surface);box-shadow:none}
|
|
713
|
+
.ygd-studio-trial button{min-height:32px;padding:5px 10px;border:1px solid var(--ds-border);border-radius:8px;background:var(--ds-background);color:var(--ds-text);font:inherit;cursor:pointer;width:fit-content}
|
|
714
714
|
.ygd-studio-trial button:disabled{opacity:.5;cursor:default}
|
|
715
|
-
.ygd-studio-trial textarea{display:block;margin-top:6px;padding:8px;border:1px solid
|
|
716
|
-
.ygd-studio-trial small{color
|
|
715
|
+
.ygd-studio-trial textarea{display:block;margin-top:6px;padding:8px;border:1px solid var(--ds-border);border-radius:8px;font:inherit;background:var(--ds-surface);color:var(--ds-text);resize:vertical}
|
|
716
|
+
.ygd-studio-trial small{color:var(--ds-text-secondary);overflow-wrap:anywhere}
|
|
717
717
|
.ygd-studio-trial button:focus-visible,.ygd-studio-trial textarea:focus-visible{outline:2px solid var(--ds-primary);outline-offset:2px}
|
|
718
718
|
.ygd-studio-workspace{
|
|
719
|
-
--ds-primary:#7c5af6;--ds-primary-light
|
|
719
|
+
--ds-primary:#7c5af6;--ds-primary-light:light-dark(#f7f4fe,#2c2342);--ds-primary-dark:light-dark(#6849d8,#bba5ff);--ds-primary-active:#5032bc;
|
|
720
720
|
--ds-secondary:#64748B;--ds-accent:#0EA5E9;
|
|
721
|
-
--ds-background
|
|
722
|
-
--ds-
|
|
723
|
-
--ds-
|
|
721
|
+
--ds-background:var(--dsw-alias-bg-layer-1,light-dark(#f7f7f7,#232326));--ds-surface:var(--dsw-alias-bg-base,light-dark(#fff,#19191c));
|
|
722
|
+
--ds-bg-secondary:var(--ds-background);--ds-bg-hover:var(--dsw-alias-interactive-bg-hover-solid,var(--ds-background));
|
|
723
|
+
--ds-text:var(--dsw-alias-label-primary,light-dark(#272727,#f2f2f5));--ds-text-secondary:var(--dsw-alias-label-tertiary,light-dark(#6d6d6d,#aaaab5));--ds-border:var(--dsw-alias-border-l2,light-dark(#e8e8e8,#46464e));
|
|
724
|
+
--ds-success:light-dark(#059669,#55cf8b);--ds-warning:light-dark(#d97706,#f2ad65);--ds-error:light-dark(#dc2626,#f38486);--ds-info:light-dark(#0284c7,#86baff);
|
|
725
|
+
--ds-danger:var(--ds-error);--ds-error-light-bg-default:light-dark(#fff1ef,#3e2226);--ds-error-text-primary:var(--ds-error);
|
|
724
726
|
--ds-heading-font:'PingFang SC',-apple-system,BlinkMacSystemFont,'Segoe UI','Microsoft YaHei',sans-serif;
|
|
725
727
|
--ds-body-font:'PingFang SC',-apple-system,BlinkMacSystemFont,'Segoe UI','Microsoft YaHei',sans-serif;
|
|
726
728
|
--ds-mono-font:'JetBrains Mono','Fira Code','Consolas',monospace;
|
|
@@ -767,7 +769,7 @@ button.ygd-studio-select>span:last-child{display:flex;flex:none;align-items:cent
|
|
|
767
769
|
.ygd-studio-sidebar-item:hover{color:var(--ds-text);background:var(--ds-background)}
|
|
768
770
|
.ygd-studio-sidebar-item[aria-current="page"]{color:var(--ds-primary-dark);background:var(--ds-primary-light);font-weight:500}
|
|
769
771
|
.ygd-studio-stage{position:relative;display:flex;flex:1;flex-direction:column;min-width:0;min-height:0}
|
|
770
|
-
.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
|
|
772
|
+
.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:var(--ds-surface);font-size:12px;color:var(--ds-text-secondary)}
|
|
771
773
|
.ygd-studio-topbar span span{padding:0 10px;color:#b2b2b2}
|
|
772
774
|
.ygd-studio-topbar-actions{display:flex;align-items:center;gap:12px}
|
|
773
775
|
.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)}
|
|
@@ -1019,9 +1021,9 @@ button.ygd-studio-select>span:last-child{display:flex;flex:none;align-items:cent
|
|
|
1019
1021
|
.ygd-studio-file-icon.markdown{color:#698aaf}.ygd-studio-file-icon.config{color:#a98e4e}
|
|
1020
1022
|
.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)}
|
|
1021
1023
|
.ygd-studio-file-path{font:12px var(--ds-body-font);color:var(--ds-text-secondary);padding-bottom:12px;overflow-wrap:anywhere}
|
|
1022
|
-
.ygd-studio-content-pane{padding:14px 20px;background
|
|
1024
|
+
.ygd-studio-content-pane{padding:14px 20px;background:var(--ds-surface)}
|
|
1023
1025
|
.ygd-studio-mindset-layout{display:grid;grid-template-columns:minmax(0,1fr) 205px;gap:14px;min-height:0;flex:1}
|
|
1024
|
-
.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
|
|
1026
|
+
.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:var(--ds-surface);overflow:hidden}
|
|
1025
1027
|
.ygd-studio-document-card>.ygd-studio-doc-toolbar{padding:9px 14px;border-bottom:1px solid var(--ds-border);margin:0}
|
|
1026
1028
|
|
|
1027
1029
|
/* Authoring composition: conversation stays mounted while the adjacent content changes. */
|
|
@@ -1071,7 +1073,7 @@ button.ygd-studio-select>span:last-child{display:flex;flex:none;align-items:cent
|
|
|
1071
1073
|
.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)}
|
|
1072
1074
|
.ygd-studio-modal::backdrop{background:#0005}
|
|
1073
1075
|
.ygd-studio-modal>header{display:flex;align-items:center;justify-content:space-between;margin-bottom:14px;gap:12px}
|
|
1074
|
-
.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
|
|
1076
|
+
.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:var(--ds-text-secondary)}
|
|
1075
1077
|
.ygd-studio-modal>p{margin:10px 0;color:var(--ds-text-secondary);font-size:13px}
|
|
1076
1078
|
.ygd-studio-transfer{display:grid;gap:14px;min-width:0}
|
|
1077
1079
|
.ygd-studio-transfer p{margin:0;overflow-wrap:anywhere}
|
|
@@ -1108,11 +1110,11 @@ button.ygd-studio-select>span:last-child{display:flex;flex:none;align-items:cent
|
|
|
1108
1110
|
.ygd-studio-bundles-list[aria-label="Mounted Bundles"] .ygd-studio-bundle-actions{border-top:1px solid var(--ds-border);padding-top:10px}
|
|
1109
1111
|
.ygd-studio-bundles-list[aria-label="Mounted Bundles"] .ygd-studio-bundle-id{display:none}
|
|
1110
1112
|
.ygd-studio-mindset-document{padding:18px 24px;overflow:auto;flex:1;min-height:0}
|
|
1111
|
-
.ygd-studio-mindset-info{padding:16px;border:1px solid var(--ds-border);border-radius:10px;background
|
|
1113
|
+
.ygd-studio-mindset-info{padding:16px;border:1px solid var(--ds-border);border-radius:10px;background:var(--ds-surface);align-self:start;max-height:100%;overflow:auto}
|
|
1112
1114
|
.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}
|
|
1113
1115
|
.ygd-studio-toc{margin-top:13px;padding-top:12px;border-top:1px solid var(--ds-border)}
|
|
1114
1116
|
.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}
|
|
1115
|
-
.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
|
|
1117
|
+
.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:var(--ds-surface);padding:0}
|
|
1116
1118
|
.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)}
|
|
1117
1119
|
.ygd-studio-preview-actions{display:flex;gap:8px;align-items:center}
|
|
1118
1120
|
.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}
|
|
@@ -1120,20 +1122,20 @@ button.ygd-studio-select>span:last-child{display:flex;flex:none;align-items:cent
|
|
|
1120
1122
|
.ygd-studio-preview-sample{margin-top:16px;font-size:12px}
|
|
1121
1123
|
.ygd-studio-preview-sample summary{cursor:pointer;padding:8px 0}
|
|
1122
1124
|
.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}
|
|
1123
|
-
.ygd-studio-mounts-inspector{margin:0 20px 14px;padding:14px;border:1px solid var(--ds-border);border-radius:10px;background
|
|
1125
|
+
.ygd-studio-mounts-inspector{margin:0 20px 14px;padding:14px;border:1px solid var(--ds-border);border-radius:10px;background:var(--ds-surface);max-height:240px;overflow:auto}
|
|
1124
1126
|
.ygd-studio-mounts-inspector p{margin:8px 0;font-size:13px}
|
|
1125
1127
|
.ygd-studio-trial{display:inline-flex;vertical-align:middle;margin:0}
|
|
1126
1128
|
.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}
|
|
1127
1129
|
.ygd-studio-installed-status{font-size:12px;line-height:20px;color:var(--ds-text-secondary);white-space:nowrap}
|
|
1128
1130
|
.ygd-studio-instance-menu{position:relative;display:inline-block;margin-left:auto}
|
|
1129
|
-
.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
|
|
1131
|
+
.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:var(--ds-surface);font-weight:600}
|
|
1130
1132
|
.ygd-studio-instance-menu>summary::-webkit-details-marker{display:none}
|
|
1131
|
-
.ygd-studio-instance-menu>div{position:absolute;right:0;top:100%;z-index:20;min-width:160px;padding:4px;background
|
|
1133
|
+
.ygd-studio-instance-menu>div{position:absolute;right:0;top:100%;z-index:20;min-width:160px;padding:4px;background:var(--ds-surface);border:1px solid var(--ds-border);border-radius:8px;box-shadow:0 4px 16px #00000012}
|
|
1132
1134
|
.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}
|
|
1133
1135
|
.ygd-studio-instance-menu>div>button:hover{background:var(--ds-primary-light)}
|
|
1134
1136
|
.ygd-studio-instance-menu>div>button[data-tone=danger]{color:var(--ds-error-text-primary,#b02d2f)}
|
|
1135
1137
|
.ygd-studio-instance-menu>div>button[data-tone=danger]:hover{background:var(--ds-error-light-bg-default,#fff5f4)}
|
|
1136
|
-
.ygd-studio-trial select{max-width:100%;height:32px;border:1px solid var(--ds-border);border-radius:8px;background
|
|
1138
|
+
.ygd-studio-trial select{max-width:100%;height:32px;border:1px solid var(--ds-border);border-radius:8px;background:var(--ds-surface);font:inherit}
|
|
1137
1139
|
.ygd-studio-workspace button:focus-visible,.ygd-studio-workspace summary:focus-visible{outline:2px solid var(--ds-primary);outline-offset:2px}
|
|
1138
1140
|
/* Responsive */
|
|
1139
1141
|
/* Demo geometry, Yugoo brand tokens: one hero, one document toolbar, one body. */
|
|
@@ -1161,7 +1163,7 @@ button.ygd-studio-select>span:last-child{display:flex;flex:none;align-items:cent
|
|
|
1161
1163
|
.ygd-studio-doc-toggle-group{border:0;background:var(--ds-background);padding:3px;gap:2px}
|
|
1162
1164
|
.ygd-studio-doc-toggle{background:transparent;border-radius:5px;padding:4px 9px}
|
|
1163
1165
|
.ygd-studio-doc-toggle+.ygd-studio-doc-toggle{border:0}
|
|
1164
|
-
.ygd-studio-doc-toggle[aria-pressed="true"]{background
|
|
1166
|
+
.ygd-studio-doc-toggle[aria-pressed="true"]{background:var(--ds-surface);color:var(--ds-text);box-shadow:0 1px 3px #0001}
|
|
1165
1167
|
.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}
|
|
1166
1168
|
.ygd-studio-doc-footer>span:last-child{margin-left:auto}
|
|
1167
1169
|
.ygd-studio-doc-footer button{font-size:11px;padding:0}
|
|
@@ -1198,7 +1200,7 @@ button.ygd-studio-select>span:last-child{display:flex;flex:none;align-items:cent
|
|
|
1198
1200
|
.ygd-studio-mindset-info{max-height:140px}.ygd-studio-toc{display:none}
|
|
1199
1201
|
}
|
|
1200
1202
|
.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}
|
|
1201
|
-
.ygd-studio-preview-slot,.ygd-studio-trial-slot{flex:1;min-height:0;min-width:0;display:flex;overflow:hidden;background
|
|
1203
|
+
.ygd-studio-preview-slot,.ygd-studio-trial-slot{flex:1;min-height:0;min-width:0;display:flex;overflow:hidden;background:var(--ds-surface)}
|
|
1202
1204
|
.ygd-studio-preview-slot[hidden],.ygd-studio-trial-slot[hidden],.ygd-studio-trial-workspace[hidden],.ygd-studio-trial-input[hidden]{display:none}
|
|
1203
1205
|
.ygd-studio-trial-workspace{display:flex;flex-direction:column;flex:1;min-width:0;min-height:0;width:100%}
|
|
1204
1206
|
.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}
|
|
@@ -1207,14 +1209,14 @@ button.ygd-studio-select>span:last-child{display:flex;flex:none;align-items:cent
|
|
|
1207
1209
|
.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}
|
|
1208
1210
|
.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}
|
|
1209
1211
|
.ygd-studio-trial-slot{margin:0;border:0;border-radius:0}
|
|
1210
|
-
.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
|
|
1212
|
+
.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:var(--ds-surface)}
|
|
1211
1213
|
.ygd-studio-trial-save .ygd-studio-trial-hint{margin:0 auto 0 0;font-size:12px;color:var(--ds-text-secondary)}
|
|
1212
1214
|
.ygd-studio-trial-save button{height:32px;white-space:nowrap}
|
|
1213
1215
|
.ygd-studio-trial-input-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:24px}
|
|
1214
1216
|
.ygd-studio-trial-input .ygd-studio-trial-input-heading h3{margin:0}
|
|
1215
1217
|
.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}
|
|
1216
1218
|
.ygd-studio-trial-status[data-state="waiting"],.ygd-studio-trial-status[data-state="completed"]{background:var(--ds-primary-light);color:var(--ds-primary)}
|
|
1217
|
-
.ygd-studio-trial-status[data-state="failed"]{color
|
|
1219
|
+
.ygd-studio-trial-status[data-state="failed"]{color:var(--ds-error);background:var(--ds-error-light-bg-default)}
|
|
1218
1220
|
.ygd-studio-workspace button:disabled{opacity:.45;cursor:not-allowed}
|
|
1219
1221
|
.ygd-studio-bundle-main .ygd-studio-installed-preview{position:relative;margin:0;flex:1;min-height:0;overflow:auto;padding:8px 16px}
|
|
1220
1222
|
.ygd-studio-editor-heading{display:flex;align-items:center;gap:12px;padding:8px 12px;border-bottom:1px solid var(--ds-border);font-size:13px}
|
|
@@ -1445,7 +1447,7 @@ function NoticeFeedback({ feedbackId, tone, title, message, details = [], action
|
|
|
1445
1447
|
restoreFocus.current = true;
|
|
1446
1448
|
setDismissed(void 0);
|
|
1447
1449
|
},
|
|
1448
|
-
children: zh ? "
|
|
1450
|
+
children: zh ? "查看提示" : "Show notice"
|
|
1449
1451
|
})]
|
|
1450
1452
|
});
|
|
1451
1453
|
const hasDetails = !!message || details.length > 0;
|
|
@@ -1467,7 +1469,7 @@ function NoticeFeedback({ feedbackId, tone, title, message, details = [], action
|
|
|
1467
1469
|
"aria-expanded": open,
|
|
1468
1470
|
"aria-controls": detailsId,
|
|
1469
1471
|
onClick: () => setExpanded(open ? void 0 : feedbackId),
|
|
1470
|
-
children: open ? zh ? "收起详情" : "Hide details" : zh ? "
|
|
1472
|
+
children: open ? zh ? "收起详情" : "Hide details" : zh ? "查看详情" : "View details"
|
|
1471
1473
|
}),
|
|
1472
1474
|
actions.map((action) => /* @__PURE__ */ jsx("button", {
|
|
1473
1475
|
type: "button",
|
|
@@ -1616,11 +1618,11 @@ function FileExplorer({ paths, selected, openFile, disabled = false }) {
|
|
|
1616
1618
|
const FILE_ROLES = {
|
|
1617
1619
|
"mindset.md": {
|
|
1618
1620
|
zh: "设计心智:描述领域设计方法、判断原则,以及如何选择和协同使用技能包。",
|
|
1619
|
-
en: "
|
|
1621
|
+
en: "Domain methods, decision criteria, and guidance for choosing and combining Bundles."
|
|
1620
1622
|
},
|
|
1621
1623
|
"kit.yaml": {
|
|
1622
1624
|
zh: "挂载清单:声明此设计套件引用的技能包及其顺序。",
|
|
1623
|
-
en: "
|
|
1625
|
+
en: "Lists the Bundles used by this Kit and their order."
|
|
1624
1626
|
},
|
|
1625
1627
|
"relations.yaml": {
|
|
1626
1628
|
zh: "关系词汇:定义此设计套件扩展的知识关联类型,不是项目设计内容。",
|
|
@@ -1628,7 +1630,7 @@ const FILE_ROLES = {
|
|
|
1628
1630
|
},
|
|
1629
1631
|
"SKILL.md": {
|
|
1630
1632
|
zh: "技能方法:描述适用场景、设计方法、证据要求与交付规范。",
|
|
1631
|
-
en: "
|
|
1633
|
+
en: "Explains when to use this Bundle, how to carry out the work, and what evidence and outputs to provide."
|
|
1632
1634
|
},
|
|
1633
1635
|
"skill.yaml": {
|
|
1634
1636
|
zh: "技能包声明:定义身份、展示名称、执行策略、面板模式及可选摘要规则。",
|
|
@@ -1660,7 +1662,7 @@ const FILE_ROLES = {
|
|
|
1660
1662
|
},
|
|
1661
1663
|
"reference/cooperation-guide.md": {
|
|
1662
1664
|
zh: "协作指南:说明与其他技能包需要对齐或补充的信息及事实边界。",
|
|
1663
|
-
en: "
|
|
1665
|
+
en: "Information to align or supplement across Bundles, including who owns each fact."
|
|
1664
1666
|
},
|
|
1665
1667
|
"reference/runtime-guide.md": {
|
|
1666
1668
|
zh: "运行指南:记录此技能包特有的执行、环境或工具使用要求。",
|
|
@@ -2953,7 +2955,11 @@ function MountEditorSession({ client, record, locale, onSaved, onActions, onDirt
|
|
|
2953
2955
|
}), /* @__PURE__ */ jsxs("div", {
|
|
2954
2956
|
className: "ygd-studio-mounts-card-list",
|
|
2955
2957
|
children: [[...selected].map((key) => {
|
|
2956
|
-
const
|
|
2958
|
+
const mounted = record.mounts.find((mount) => keyOf(mount.bundle) === key);
|
|
2959
|
+
const bundle = mounted?.display ? {
|
|
2960
|
+
...mounted.bundle,
|
|
2961
|
+
...mounted.display
|
|
2962
|
+
} : choices.get(key) ?? mounted?.bundle ?? {
|
|
2957
2963
|
name: key.split("@")[0],
|
|
2958
2964
|
version: key.split("@")[1]
|
|
2959
2965
|
};
|
|
@@ -3029,6 +3035,7 @@ function useSourceCandidate(options) {
|
|
|
3029
3035
|
const generation = useRef(0), callbacks = useRef(options);
|
|
3030
3036
|
callbacks.current = options;
|
|
3031
3037
|
const submitted = useRef(false), selected = useRef(), readOwner = useRef(client);
|
|
3038
|
+
const submittedRecord = useRef();
|
|
3032
3039
|
const isSaveSubmitted = useCallback(() => submitted.current, []);
|
|
3033
3040
|
const request = prepared?.request, candidate = prepared?.candidate;
|
|
3034
3041
|
const zh = options?.locale === "zh";
|
|
@@ -3042,6 +3049,7 @@ function useSourceCandidate(options) {
|
|
|
3042
3049
|
if (selected.current !== key) {
|
|
3043
3050
|
selected.current = key;
|
|
3044
3051
|
submitted.current = false;
|
|
3052
|
+
submittedRecord.current = void 0;
|
|
3045
3053
|
setSaved(false);
|
|
3046
3054
|
setSaveUnverified(false);
|
|
3047
3055
|
}
|
|
@@ -3083,6 +3091,7 @@ function useSourceCandidate(options) {
|
|
|
3083
3091
|
const current = generation.current;
|
|
3084
3092
|
const isCurrent = () => generation.current === current && callbacks.current?.client === client && currentKey() === key && callbacks.current?.instanceId === instanceId;
|
|
3085
3093
|
submitted.current = true;
|
|
3094
|
+
submittedRecord.current = currentRecord;
|
|
3086
3095
|
setBusy(true);
|
|
3087
3096
|
try {
|
|
3088
3097
|
const value = await client.saveChanges({
|
|
@@ -3106,6 +3115,62 @@ function useSourceCandidate(options) {
|
|
|
3106
3115
|
if (isCurrent()) setBusy(false);
|
|
3107
3116
|
}
|
|
3108
3117
|
};
|
|
3118
|
+
const verifySave = async () => {
|
|
3119
|
+
if (!saveUnverified || busy || !submitted.current || !request || !candidate || !client) return;
|
|
3120
|
+
const current = generation.current;
|
|
3121
|
+
const isCurrent = () => generation.current === current && callbacks.current?.client === client && currentKey() === key && callbacks.current?.instanceId === instanceId;
|
|
3122
|
+
setBusy(true);
|
|
3123
|
+
try {
|
|
3124
|
+
const value = await client.read({ id: request.id });
|
|
3125
|
+
if (!isCurrent()) return;
|
|
3126
|
+
if (value.id !== request.id || value.kind !== submittedRecord.current?.kind || value.deletedAt) throw Error(zh ? "无法核对当前副本,草稿已保留。" : "The current copy could not be verified. Your draft is retained.");
|
|
3127
|
+
if (value.revision === request.expectedRevision) {
|
|
3128
|
+
submitted.current = false;
|
|
3129
|
+
setSaveUnverified(false);
|
|
3130
|
+
setRecord(value);
|
|
3131
|
+
setError("");
|
|
3132
|
+
return;
|
|
3133
|
+
}
|
|
3134
|
+
let matchesSaved = value.revision === candidate.revision;
|
|
3135
|
+
if (matchesSaved && !value.files) throw Error(zh ? "未能读取已保存文件清单,草稿已保留。请重试核对。" : "The saved file list is unavailable. Your draft is retained. Retry verification.");
|
|
3136
|
+
if (matchesSaved) for (const change of request.changes) {
|
|
3137
|
+
const exists = value.files?.some((file) => file.path === change.path);
|
|
3138
|
+
if (change.content === null) {
|
|
3139
|
+
if (exists) matchesSaved = false;
|
|
3140
|
+
continue;
|
|
3141
|
+
}
|
|
3142
|
+
if (!exists) {
|
|
3143
|
+
matchesSaved = false;
|
|
3144
|
+
break;
|
|
3145
|
+
}
|
|
3146
|
+
const file = await client.readFile({
|
|
3147
|
+
id: request.id,
|
|
3148
|
+
path: change.path
|
|
3149
|
+
});
|
|
3150
|
+
if (!isCurrent()) return;
|
|
3151
|
+
if (file.id !== request.id || file.path !== change.path || file.revision !== value.revision || file.content !== change.content) {
|
|
3152
|
+
matchesSaved = false;
|
|
3153
|
+
break;
|
|
3154
|
+
}
|
|
3155
|
+
}
|
|
3156
|
+
if (!matchesSaved) {
|
|
3157
|
+
submitted.current = false;
|
|
3158
|
+
setSaveUnverified(false);
|
|
3159
|
+
setError(zh ? "已保存内容与这次修改不同,草稿已保留。请对比当前内容后重新准备修改。" : "The saved content differs from these changes. Your draft is retained. Compare the current content and prepare changes again.");
|
|
3160
|
+
return;
|
|
3161
|
+
}
|
|
3162
|
+
setRecord(value);
|
|
3163
|
+
setSaved(true);
|
|
3164
|
+
setSaveUnverified(false);
|
|
3165
|
+
setError("");
|
|
3166
|
+
callbacks.current?.onDirtyChange?.(false);
|
|
3167
|
+
callbacks.current?.onSaved(value);
|
|
3168
|
+
} catch (failure) {
|
|
3169
|
+
if (isCurrent()) setError(failure instanceof Error ? failure.message : String(failure));
|
|
3170
|
+
} finally {
|
|
3171
|
+
if (isCurrent()) setBusy(false);
|
|
3172
|
+
}
|
|
3173
|
+
};
|
|
3109
3174
|
return prepared ? {
|
|
3110
3175
|
prepared,
|
|
3111
3176
|
record: currentRecord,
|
|
@@ -3116,6 +3181,7 @@ function useSourceCandidate(options) {
|
|
|
3116
3181
|
matches,
|
|
3117
3182
|
canSave,
|
|
3118
3183
|
save,
|
|
3184
|
+
verifySave,
|
|
3119
3185
|
isSaveSubmitted
|
|
3120
3186
|
} : void 0;
|
|
3121
3187
|
}
|
|
@@ -3261,6 +3327,7 @@ function InstanceWorkbench({ client, id, locale, onBack, onChanged, onExport, re
|
|
|
3261
3327
|
const draftKey = draftRequest ? JSON.stringify(draftRequest) : void 0;
|
|
3262
3328
|
const draftClient = useMemo(() => client.saveChanges ? {
|
|
3263
3329
|
read: client.read.bind(client),
|
|
3330
|
+
readFile: client.readFile.bind(client),
|
|
3264
3331
|
saveChanges: client.saveChanges.bind(client)
|
|
3265
3332
|
} : void 0, [client]);
|
|
3266
3333
|
const currentPrepared = sourceDirty ? preparedDraft && preparedDraft.key === draftKey ? preparedDraft.prepared : void 0 : proposal;
|
|
@@ -3569,6 +3636,10 @@ function InstanceWorkbench({ client, id, locale, onBack, onChanged, onExport, re
|
|
|
3569
3636
|
if (mountActions.saveUnverified) mountActions.verifySave();
|
|
3570
3637
|
return;
|
|
3571
3638
|
}
|
|
3639
|
+
if (candidateState?.isSaveSubmitted()) {
|
|
3640
|
+
if (candidateState.saveUnverified) candidateState.verifySave();
|
|
3641
|
+
return;
|
|
3642
|
+
}
|
|
3572
3643
|
if (busy || candidateBusy || !discard()) return;
|
|
3573
3644
|
const current = generation.current;
|
|
3574
3645
|
mutate(async () => {
|
|
@@ -3682,6 +3753,7 @@ function InstanceWorkbench({ client, id, locale, onBack, onChanged, onExport, re
|
|
|
3682
3753
|
if (candidatePending) dismissChanges();
|
|
3683
3754
|
};
|
|
3684
3755
|
const sourceStatus = candidateState?.saveUnverified ? zh ? "保存结果待确认" : "Save needs verification" : sourcePending ? zh ? `${draftRequest?.changes.length ?? proposal?.request.changes.length ?? 1} 个文件未保存` : `${draftRequest?.changes.length ?? proposal?.request.changes.length ?? 1} unsaved files` : zh ? "已保存" : "Saved";
|
|
3756
|
+
const exportDisabledReason = !exportDisabled ? void 0 : !record || record.id !== id ? zh ? "正在打开内容,请稍后再导出。" : "Wait for the content to open before exporting." : candidateState?.saveUnverified || mountActions?.saveUnverified ? zh ? "请先核对保存结果,再导出。" : "Verify the save result before exporting." : busy || candidateBusy || mountActions?.isSaveSubmitted() ? zh ? "请等待当前操作完成,再导出。" : "Wait for the current operation to finish before exporting." : renaming ? zh ? "请先完成名称修改,再导出。" : "Finish renaming before exporting." : dirty || candidatePending ? zh ? "请先保存或还原修改,再导出。" : "Save or revert changes before exporting." : zh ? "正在准备预览,请稍后再导出。" : "Wait for the preview to finish before exporting.";
|
|
3685
3757
|
const editSource = (text) => {
|
|
3686
3758
|
if (sourceLocked || !loaded || readOnly || text === content) return;
|
|
3687
3759
|
++prepareRequest.current;
|
|
@@ -3978,6 +4050,8 @@ function InstanceWorkbench({ client, id, locale, onBack, onChanged, onExport, re
|
|
|
3978
4050
|
onExport && /* @__PURE__ */ jsx("button", {
|
|
3979
4051
|
type: "button",
|
|
3980
4052
|
disabled: exportDisabled,
|
|
4053
|
+
title: exportDisabledReason,
|
|
4054
|
+
"aria-description": exportDisabledReason,
|
|
3981
4055
|
onClick: exportSaved,
|
|
3982
4056
|
children: zh ? "导出" : "Export"
|
|
3983
4057
|
}),
|
|
@@ -4487,7 +4561,7 @@ function ComponentLibrary({ library, locale }) {
|
|
|
4487
4561
|
className: "ygd-studio-component-content",
|
|
4488
4562
|
children: tab === "preview" && entry.panelYaml ? /* @__PURE__ */ jsx(Fragment$1, { children: /* @__PURE__ */ jsx("div", {
|
|
4489
4563
|
className: `ygd-studio-component-preview ygd-studio-component-preview-${entry.previewLayout ?? "inline"}`,
|
|
4490
|
-
"aria-label": zh ? "固定样例预览" : "
|
|
4564
|
+
"aria-label": zh ? "固定样例预览" : "Component example",
|
|
4491
4565
|
children: /* @__PURE__ */ jsx("div", {
|
|
4492
4566
|
className: "ygd-studio-component-stage",
|
|
4493
4567
|
children: library.renderExample(entry.id, { locale })
|
|
@@ -4495,8 +4569,8 @@ function ComponentLibrary({ library, locale }) {
|
|
|
4495
4569
|
}, `${entry.id}:${locale}`) }) : tab === "preview" ? /* @__PURE__ */ jsxs("div", {
|
|
4496
4570
|
className: "ygd-studio-component-unavailable",
|
|
4497
4571
|
children: [
|
|
4498
|
-
/* @__PURE__ */ jsx("h3", { children: zh ? "需要完整工作区或宿主数据" : "
|
|
4499
|
-
/* @__PURE__ */ jsx("p", { children: zh ? "此组件已注册,但暂未提供独立交互样例。请查看声明与用法,通过同版本作者工具核对绑定。" : "This
|
|
4572
|
+
/* @__PURE__ */ jsx("h3", { children: zh ? "需要完整工作区或宿主数据" : "No standalone example yet" }),
|
|
4573
|
+
/* @__PURE__ */ jsx("p", { children: zh ? "此组件已注册,但暂未提供独立交互样例。请查看声明与用法,通过同版本作者工具核对绑定。" : "This component needs workspace or host data. Read its usage and check bindings with the authoring tool from the same installed version." }),
|
|
4500
4574
|
/* @__PURE__ */ jsx("button", {
|
|
4501
4575
|
className: "ygd-studio-btn-secondary",
|
|
4502
4576
|
type: "button",
|
|
@@ -4508,7 +4582,7 @@ function ComponentLibrary({ library, locale }) {
|
|
|
4508
4582
|
className: "ygd-studio-component-doc",
|
|
4509
4583
|
children: [
|
|
4510
4584
|
/* @__PURE__ */ jsx("p", { children: entry.description }),
|
|
4511
|
-
/* @__PURE__ */ jsx("p", { children: zh ? "用途和参数以已安装的同版本组件契约为准;下面的查询不运行模型、不创建项目。" : "Use the component contract from the same installed version.
|
|
4585
|
+
/* @__PURE__ */ jsx("p", { children: zh ? "用途和参数以已安装的同版本组件契约为准;下面的查询不运行模型、不创建项目。" : "Use the component contract from the same installed version. The query below reads its definition without running a model or creating a project." }),
|
|
4512
4586
|
/* @__PURE__ */ jsx("pre", { children: JSON.stringify({
|
|
4513
4587
|
name: entry.id,
|
|
4514
4588
|
reference: "contract"
|
|
@@ -4518,7 +4592,7 @@ function ComponentLibrary({ library, locale }) {
|
|
|
4518
4592
|
tabIndex: 0,
|
|
4519
4593
|
children: entry.panelYaml
|
|
4520
4594
|
})] }),
|
|
4521
|
-
/* @__PURE__ */ jsxs("details", { children: [/* @__PURE__ */ jsx("summary", { children: zh ? "组件扩展 Skill(可手动复制)" : "Component Extension Skill
|
|
4595
|
+
/* @__PURE__ */ jsxs("details", { children: [/* @__PURE__ */ jsx("summary", { children: zh ? "组件扩展 Skill(可手动复制)" : "Component Extension Skill" }), /* @__PURE__ */ jsx("pre", {
|
|
4522
4596
|
tabIndex: 0,
|
|
4523
4597
|
children: library.skillSource
|
|
4524
4598
|
})] })
|
|
@@ -4526,7 +4600,7 @@ function ComponentLibrary({ library, locale }) {
|
|
|
4526
4600
|
})
|
|
4527
4601
|
})
|
|
4528
4602
|
]
|
|
4529
|
-
}) : /* @__PURE__ */ jsx("p", { children: zh ? "该宿主没有提供组件目录。" : "This host
|
|
4603
|
+
}) : /* @__PURE__ */ jsx("p", { children: zh ? "该宿主没有提供组件目录。" : "This host does not provide a component catalog." })]
|
|
4530
4604
|
})]
|
|
4531
4605
|
});
|
|
4532
4606
|
}
|
|
@@ -4915,20 +4989,20 @@ const STRINGS = {
|
|
|
4915
4989
|
mountedBundlesLabel: "Mounted Bundles",
|
|
4916
4990
|
openWorkspace: "Open workspace",
|
|
4917
4991
|
openInBundleWorkspace: "Open in bundle workspace",
|
|
4918
|
-
mountedBy: (kits) => `Mounted
|
|
4992
|
+
mountedBy: (kits) => `Mounted in ${kits}`,
|
|
4919
4993
|
usedBy: (kits) => `Used by ${kits}`,
|
|
4920
4994
|
noMountedBy: "no installed Kits",
|
|
4921
4995
|
mountedInKits: "Mounted in Kits:",
|
|
4922
|
-
noKits: "No
|
|
4923
|
-
noBundles: "No
|
|
4924
|
-
noMounts: "This Kit
|
|
4925
|
-
noFiles: "
|
|
4996
|
+
noKits: "No Kits found.",
|
|
4997
|
+
noBundles: "No Bundles match your search.",
|
|
4998
|
+
noMounts: "This Kit has no mounted Bundles.",
|
|
4999
|
+
noFiles: "No readable files in this Bundle.",
|
|
4926
5000
|
resources: "Resources",
|
|
4927
|
-
resourcesNone: "
|
|
5001
|
+
resourcesNone: "None",
|
|
4928
5002
|
tabMindset: "Kit Files",
|
|
4929
5003
|
tabRelations: "KAG Relations",
|
|
4930
5004
|
tabMounts: "Bundles",
|
|
4931
|
-
noRelations: "This Kit
|
|
5005
|
+
noRelations: "This Kit uses the built-in relationship types without extensions.",
|
|
4932
5006
|
sourceFiles: "Source Files",
|
|
4933
5007
|
richToggle: "Read",
|
|
4934
5008
|
sourceToggle: "Source",
|
|
@@ -4939,11 +5013,11 @@ const STRINGS = {
|
|
|
4939
5013
|
requiredWord: "required",
|
|
4940
5014
|
optionalWord: "optional",
|
|
4941
5015
|
validationSummaryTitle: "Validation Summary",
|
|
4942
|
-
validationRules: (rules, drivers) => `${rules} ${rules === 1 ? "rule" : "rules"} ·
|
|
4943
|
-
driversNone: "
|
|
5016
|
+
validationRules: (rules, drivers) => `${rules} ${rules === 1 ? "rule" : "rules"} · Drivers: ${drivers}`,
|
|
5017
|
+
driversNone: "None",
|
|
4944
5018
|
panelProviderOwned: "provider-owned",
|
|
4945
5019
|
panelDeclarative: "declarative",
|
|
4946
|
-
panelReadonly: "
|
|
5020
|
+
panelReadonly: "read-only",
|
|
4947
5021
|
requestFailed: "Request failed",
|
|
4948
5022
|
loading: "Loading…"
|
|
4949
5023
|
},
|
|
@@ -4,16 +4,16 @@
|
|
|
4
4
|
"scope": "observed-current-dsh-output-and-selected-original-materials",
|
|
5
5
|
"sourceArchiveObserved": null,
|
|
6
6
|
"outputSha256": {
|
|
7
|
-
"lib/index.js": "
|
|
7
|
+
"lib/index.js": "b3f8094246aec1ab9e0db46a67c052076e734c048a197a6e19c66631c36d2b9b"
|
|
8
8
|
},
|
|
9
9
|
"normalBuildMaps": [
|
|
10
10
|
{
|
|
11
11
|
"output": "lib/index.js",
|
|
12
12
|
"observation": "normal-build-done-module-membership",
|
|
13
13
|
"evidenceFile": "dsh-release-studio-ui-0-output-modules.json",
|
|
14
|
-
"evidenceSha256": "
|
|
15
|
-
"normalOutputSha256": "
|
|
16
|
-
"packedOutputSha256": "
|
|
14
|
+
"evidenceSha256": "60a1296f3b73848438139b5c3bab00d7e7216a60791c0b53ea86c905c3ade627",
|
|
15
|
+
"normalOutputSha256": "b3f8094246aec1ab9e0db46a67c052076e734c048a197a6e19c66631c36d2b9b",
|
|
16
|
+
"packedOutputSha256": "b3f8094246aec1ab9e0db46a67c052076e734c048a197a6e19c66631c36d2b9b",
|
|
17
17
|
"projectOwnedSources": [
|
|
18
18
|
"packages/studio-ui/src/BundleCard.tsx",
|
|
19
19
|
"packages/studio-ui/src/BundleMounts.tsx",
|
|
@@ -47,20 +47,20 @@
|
|
|
47
47
|
"packages/studio-ui/src/BundleCard.tsx": "ed9e8bc78c61c7222dd68b3a97f734f987eff6e48efc3754e6d9392041e40717",
|
|
48
48
|
"packages/studio-ui/src/BundleMounts.tsx": "838ee0e841549b68314018754a6420e423b58116fbe52468bc49dfc07d4b1cea",
|
|
49
49
|
"packages/studio-ui/src/BundleTrial.tsx": "7296be83b30f62881f28afcb4de5889f618342e52dc8c7d27018f72f3a688efb",
|
|
50
|
-
"packages/studio-ui/src/ComponentLibrary.tsx": "
|
|
50
|
+
"packages/studio-ui/src/ComponentLibrary.tsx": "ef0fdb2cba98952a3803398a217e875e72ec9f2ae9d59d57f6000a6eb5710a50",
|
|
51
51
|
"packages/studio-ui/src/ConversationActivity.tsx": "df169ab93f22f1ad2afccb19b1f562dc3d4942a75dca21539c1d037901a67a63",
|
|
52
52
|
"packages/studio-ui/src/FileExplorer.tsx": "5f0393f704d868bf968910bb81b29c87fc818dc4a977a6c0f293fb4470515bf9",
|
|
53
|
-
"packages/studio-ui/src/FileInfoSidebar.tsx": "
|
|
54
|
-
"packages/studio-ui/src/InstanceWorkbench.tsx": "
|
|
53
|
+
"packages/studio-ui/src/FileInfoSidebar.tsx": "0b3c6482281127e4e0f891ed00d8a94eae6bb6246a15ff1e322c4e3da185c9dd",
|
|
54
|
+
"packages/studio-ui/src/InstanceWorkbench.tsx": "fe3d732c5e48dc811812189efef50f8d208b61cfdc0e5e96a100fe2dbaebbfec",
|
|
55
55
|
"packages/studio-ui/src/KitFiles.tsx": "b3f44dc61df7c36f304d8de3ac98d8bc069a577c2ef433aef8d5df8ec2592037",
|
|
56
56
|
"packages/studio-ui/src/LoadingIndicator.tsx": "6bd2c5bc11d950d0574dd6e1e4e96be53985d1dca9e95033a9d9cf9981c9b24a",
|
|
57
|
-
"packages/studio-ui/src/MountEditor.tsx": "
|
|
57
|
+
"packages/studio-ui/src/MountEditor.tsx": "98012d959e499255f2c440db5b67218230e797f9f9136e3369f8591485dd263d",
|
|
58
58
|
"packages/studio-ui/src/SourceFileDiff.tsx": "cf45245f0c24f5376537041c6bed37ac1eb8784c723d86a6926935178a91ac36",
|
|
59
59
|
"packages/studio-ui/src/StudioEmptyState.tsx": "fa6347006b0463cdcf52a367aa64acc1e35fb0a0912f1ddcee6f098040d0c850",
|
|
60
60
|
"packages/studio-ui/src/StudioErrorDialog.tsx": "63aa36f58454c14344ad071d01659b8405d4d1933e3b2c4fbc8372d0b0ae5bf3",
|
|
61
|
-
"packages/studio-ui/src/StudioFeedback.tsx": "
|
|
61
|
+
"packages/studio-ui/src/StudioFeedback.tsx": "3f1adec418de538984a2fcc440bc96d877f13ae9067848501c1da63f86a7b303",
|
|
62
62
|
"packages/studio-ui/src/StudioSelect.tsx": "88b66f7c2bc46c256f8348614f2bfd51c81cb16b2e01e41281b629507150f60c",
|
|
63
|
-
"packages/studio-ui/src/StudioWorkspace.tsx": "
|
|
63
|
+
"packages/studio-ui/src/StudioWorkspace.tsx": "3a6dd27e4921fd4ca49bcd0bfa36b24ad486992f74457b4989140fd97a0e6fee",
|
|
64
64
|
"packages/studio-ui/src/content-source-import.ts": "3ddc85a5afe7378f55b540f7081180fad8696108d9ccdb61c1310a1f529a9e1a",
|
|
65
65
|
"packages/studio-ui/src/content-transfer.ts": "0193aa79b5c59ecb7cafd456fcda22eef07bb6ffa3200d28627e0ef82469da05",
|
|
66
66
|
"packages/studio-ui/src/content-versions.ts": "27f2c3ceaa457123d12319e76fabd78ae7d79c1d888a14f039a6f4d6db322eb9",
|
|
@@ -68,8 +68,8 @@
|
|
|
68
68
|
"packages/studio-ui/src/controller.ts": "be785d85cc64233e05768661500db6cc64c19e279023f2ae9027ddca38d0f2c6",
|
|
69
69
|
"packages/studio-ui/src/markdown.tsx": "ee82eb233d3a0ea824c0f5f7fe1b6fc12689d9a69f194322b125903feb9d78a1",
|
|
70
70
|
"packages/studio-ui/src/mount-save-receipt.ts": "8d4cf423cbac45e5b1ae4cc987f7eff34e0e8ba8bed3dce39cdf040ced2c663e",
|
|
71
|
-
"packages/studio-ui/src/source-candidate-state.ts": "
|
|
72
|
-
"packages/studio-ui/src/styles.ts": "
|
|
71
|
+
"packages/studio-ui/src/source-candidate-state.ts": "b36c6f2093276501d37938f15a2b53926d4cbd9a536651a03ae8989bbc644d25",
|
|
72
|
+
"packages/studio-ui/src/styles.ts": "e4405e54ba95a41f4a9f26e5797c9509f7c4d4185592c12dfa58e5fab8425f66",
|
|
73
73
|
"packages/studio-ui/src/trial-controller.ts": "932f9fd5b88f40d5f2657ae237efb8f4dd400756a567ad9ee7021ec9655da4a7"
|
|
74
74
|
},
|
|
75
75
|
"sourceCount": 27,
|
|
@@ -92,7 +92,7 @@
|
|
|
92
92
|
"firstParty": true,
|
|
93
93
|
"currentSourceIdentity": {
|
|
94
94
|
"manifestPath": "packages/studio-ui/package.json",
|
|
95
|
-
"sourceCommit": "
|
|
95
|
+
"sourceCommit": "1c813ae4a77e3087224db27e3a898cea5ca61b97",
|
|
96
96
|
"name": "dsh-design-studio-ui",
|
|
97
97
|
"version": "0.0.0",
|
|
98
98
|
"packageMetadataSha256": "c193bf0059fb9e4364c3aadded6d4bc5dc4867ef16679bf921d381e7def3f171"
|
|
@@ -108,7 +108,7 @@
|
|
|
108
108
|
"firstParty": true,
|
|
109
109
|
"currentSourceIdentity": {
|
|
110
110
|
"manifestPath": "packages/studio-ui/package.json",
|
|
111
|
-
"sourceCommit": "
|
|
111
|
+
"sourceCommit": "1c813ae4a77e3087224db27e3a898cea5ca61b97",
|
|
112
112
|
"name": "dsh-design-studio-ui",
|
|
113
113
|
"version": "0.0.0",
|
|
114
114
|
"packageMetadataSha256": "c193bf0059fb9e4364c3aadded6d4bc5dc4867ef16679bf921d381e7def3f171"
|
|
@@ -124,7 +124,7 @@
|
|
|
124
124
|
"firstParty": true,
|
|
125
125
|
"currentSourceIdentity": {
|
|
126
126
|
"manifestPath": "packages/studio-ui/package.json",
|
|
127
|
-
"sourceCommit": "
|
|
127
|
+
"sourceCommit": "1c813ae4a77e3087224db27e3a898cea5ca61b97",
|
|
128
128
|
"name": "dsh-design-studio-ui",
|
|
129
129
|
"version": "0.0.0",
|
|
130
130
|
"packageMetadataSha256": "c193bf0059fb9e4364c3aadded6d4bc5dc4867ef16679bf921d381e7def3f171"
|
|
@@ -133,14 +133,14 @@
|
|
|
133
133
|
{
|
|
134
134
|
"output": "lib/index.js",
|
|
135
135
|
"path": "packages/studio-ui/src/ComponentLibrary.tsx",
|
|
136
|
-
"sha256": "
|
|
136
|
+
"sha256": "ef0fdb2cba98952a3803398a217e875e72ec9f2ae9d59d57f6000a6eb5710a50",
|
|
137
137
|
"name": "dsh-design-studio-ui",
|
|
138
138
|
"version": "0.0.0",
|
|
139
139
|
"packageMetadataSha256": "c193bf0059fb9e4364c3aadded6d4bc5dc4867ef16679bf921d381e7def3f171",
|
|
140
140
|
"firstParty": true,
|
|
141
141
|
"currentSourceIdentity": {
|
|
142
142
|
"manifestPath": "packages/studio-ui/package.json",
|
|
143
|
-
"sourceCommit": "
|
|
143
|
+
"sourceCommit": "1c813ae4a77e3087224db27e3a898cea5ca61b97",
|
|
144
144
|
"name": "dsh-design-studio-ui",
|
|
145
145
|
"version": "0.0.0",
|
|
146
146
|
"packageMetadataSha256": "c193bf0059fb9e4364c3aadded6d4bc5dc4867ef16679bf921d381e7def3f171"
|
|
@@ -156,7 +156,7 @@
|
|
|
156
156
|
"firstParty": true,
|
|
157
157
|
"currentSourceIdentity": {
|
|
158
158
|
"manifestPath": "packages/studio-ui/package.json",
|
|
159
|
-
"sourceCommit": "
|
|
159
|
+
"sourceCommit": "1c813ae4a77e3087224db27e3a898cea5ca61b97",
|
|
160
160
|
"name": "dsh-design-studio-ui",
|
|
161
161
|
"version": "0.0.0",
|
|
162
162
|
"packageMetadataSha256": "c193bf0059fb9e4364c3aadded6d4bc5dc4867ef16679bf921d381e7def3f171"
|
|
@@ -172,7 +172,7 @@
|
|
|
172
172
|
"firstParty": true,
|
|
173
173
|
"currentSourceIdentity": {
|
|
174
174
|
"manifestPath": "packages/studio-ui/package.json",
|
|
175
|
-
"sourceCommit": "
|
|
175
|
+
"sourceCommit": "1c813ae4a77e3087224db27e3a898cea5ca61b97",
|
|
176
176
|
"name": "dsh-design-studio-ui",
|
|
177
177
|
"version": "0.0.0",
|
|
178
178
|
"packageMetadataSha256": "c193bf0059fb9e4364c3aadded6d4bc5dc4867ef16679bf921d381e7def3f171"
|
|
@@ -181,14 +181,14 @@
|
|
|
181
181
|
{
|
|
182
182
|
"output": "lib/index.js",
|
|
183
183
|
"path": "packages/studio-ui/src/FileInfoSidebar.tsx",
|
|
184
|
-
"sha256": "
|
|
184
|
+
"sha256": "0b3c6482281127e4e0f891ed00d8a94eae6bb6246a15ff1e322c4e3da185c9dd",
|
|
185
185
|
"name": "dsh-design-studio-ui",
|
|
186
186
|
"version": "0.0.0",
|
|
187
187
|
"packageMetadataSha256": "c193bf0059fb9e4364c3aadded6d4bc5dc4867ef16679bf921d381e7def3f171",
|
|
188
188
|
"firstParty": true,
|
|
189
189
|
"currentSourceIdentity": {
|
|
190
190
|
"manifestPath": "packages/studio-ui/package.json",
|
|
191
|
-
"sourceCommit": "
|
|
191
|
+
"sourceCommit": "1c813ae4a77e3087224db27e3a898cea5ca61b97",
|
|
192
192
|
"name": "dsh-design-studio-ui",
|
|
193
193
|
"version": "0.0.0",
|
|
194
194
|
"packageMetadataSha256": "c193bf0059fb9e4364c3aadded6d4bc5dc4867ef16679bf921d381e7def3f171"
|
|
@@ -197,14 +197,14 @@
|
|
|
197
197
|
{
|
|
198
198
|
"output": "lib/index.js",
|
|
199
199
|
"path": "packages/studio-ui/src/InstanceWorkbench.tsx",
|
|
200
|
-
"sha256": "
|
|
200
|
+
"sha256": "fe3d732c5e48dc811812189efef50f8d208b61cfdc0e5e96a100fe2dbaebbfec",
|
|
201
201
|
"name": "dsh-design-studio-ui",
|
|
202
202
|
"version": "0.0.0",
|
|
203
203
|
"packageMetadataSha256": "c193bf0059fb9e4364c3aadded6d4bc5dc4867ef16679bf921d381e7def3f171",
|
|
204
204
|
"firstParty": true,
|
|
205
205
|
"currentSourceIdentity": {
|
|
206
206
|
"manifestPath": "packages/studio-ui/package.json",
|
|
207
|
-
"sourceCommit": "
|
|
207
|
+
"sourceCommit": "1c813ae4a77e3087224db27e3a898cea5ca61b97",
|
|
208
208
|
"name": "dsh-design-studio-ui",
|
|
209
209
|
"version": "0.0.0",
|
|
210
210
|
"packageMetadataSha256": "c193bf0059fb9e4364c3aadded6d4bc5dc4867ef16679bf921d381e7def3f171"
|
|
@@ -220,7 +220,7 @@
|
|
|
220
220
|
"firstParty": true,
|
|
221
221
|
"currentSourceIdentity": {
|
|
222
222
|
"manifestPath": "packages/studio-ui/package.json",
|
|
223
|
-
"sourceCommit": "
|
|
223
|
+
"sourceCommit": "1c813ae4a77e3087224db27e3a898cea5ca61b97",
|
|
224
224
|
"name": "dsh-design-studio-ui",
|
|
225
225
|
"version": "0.0.0",
|
|
226
226
|
"packageMetadataSha256": "c193bf0059fb9e4364c3aadded6d4bc5dc4867ef16679bf921d381e7def3f171"
|
|
@@ -236,7 +236,7 @@
|
|
|
236
236
|
"firstParty": true,
|
|
237
237
|
"currentSourceIdentity": {
|
|
238
238
|
"manifestPath": "packages/studio-ui/package.json",
|
|
239
|
-
"sourceCommit": "
|
|
239
|
+
"sourceCommit": "1c813ae4a77e3087224db27e3a898cea5ca61b97",
|
|
240
240
|
"name": "dsh-design-studio-ui",
|
|
241
241
|
"version": "0.0.0",
|
|
242
242
|
"packageMetadataSha256": "c193bf0059fb9e4364c3aadded6d4bc5dc4867ef16679bf921d381e7def3f171"
|
|
@@ -245,14 +245,14 @@
|
|
|
245
245
|
{
|
|
246
246
|
"output": "lib/index.js",
|
|
247
247
|
"path": "packages/studio-ui/src/MountEditor.tsx",
|
|
248
|
-
"sha256": "
|
|
248
|
+
"sha256": "98012d959e499255f2c440db5b67218230e797f9f9136e3369f8591485dd263d",
|
|
249
249
|
"name": "dsh-design-studio-ui",
|
|
250
250
|
"version": "0.0.0",
|
|
251
251
|
"packageMetadataSha256": "c193bf0059fb9e4364c3aadded6d4bc5dc4867ef16679bf921d381e7def3f171",
|
|
252
252
|
"firstParty": true,
|
|
253
253
|
"currentSourceIdentity": {
|
|
254
254
|
"manifestPath": "packages/studio-ui/package.json",
|
|
255
|
-
"sourceCommit": "
|
|
255
|
+
"sourceCommit": "1c813ae4a77e3087224db27e3a898cea5ca61b97",
|
|
256
256
|
"name": "dsh-design-studio-ui",
|
|
257
257
|
"version": "0.0.0",
|
|
258
258
|
"packageMetadataSha256": "c193bf0059fb9e4364c3aadded6d4bc5dc4867ef16679bf921d381e7def3f171"
|
|
@@ -268,7 +268,7 @@
|
|
|
268
268
|
"firstParty": true,
|
|
269
269
|
"currentSourceIdentity": {
|
|
270
270
|
"manifestPath": "packages/studio-ui/package.json",
|
|
271
|
-
"sourceCommit": "
|
|
271
|
+
"sourceCommit": "1c813ae4a77e3087224db27e3a898cea5ca61b97",
|
|
272
272
|
"name": "dsh-design-studio-ui",
|
|
273
273
|
"version": "0.0.0",
|
|
274
274
|
"packageMetadataSha256": "c193bf0059fb9e4364c3aadded6d4bc5dc4867ef16679bf921d381e7def3f171"
|
|
@@ -284,7 +284,7 @@
|
|
|
284
284
|
"firstParty": true,
|
|
285
285
|
"currentSourceIdentity": {
|
|
286
286
|
"manifestPath": "packages/studio-ui/package.json",
|
|
287
|
-
"sourceCommit": "
|
|
287
|
+
"sourceCommit": "1c813ae4a77e3087224db27e3a898cea5ca61b97",
|
|
288
288
|
"name": "dsh-design-studio-ui",
|
|
289
289
|
"version": "0.0.0",
|
|
290
290
|
"packageMetadataSha256": "c193bf0059fb9e4364c3aadded6d4bc5dc4867ef16679bf921d381e7def3f171"
|
|
@@ -300,7 +300,7 @@
|
|
|
300
300
|
"firstParty": true,
|
|
301
301
|
"currentSourceIdentity": {
|
|
302
302
|
"manifestPath": "packages/studio-ui/package.json",
|
|
303
|
-
"sourceCommit": "
|
|
303
|
+
"sourceCommit": "1c813ae4a77e3087224db27e3a898cea5ca61b97",
|
|
304
304
|
"name": "dsh-design-studio-ui",
|
|
305
305
|
"version": "0.0.0",
|
|
306
306
|
"packageMetadataSha256": "c193bf0059fb9e4364c3aadded6d4bc5dc4867ef16679bf921d381e7def3f171"
|
|
@@ -309,14 +309,14 @@
|
|
|
309
309
|
{
|
|
310
310
|
"output": "lib/index.js",
|
|
311
311
|
"path": "packages/studio-ui/src/StudioFeedback.tsx",
|
|
312
|
-
"sha256": "
|
|
312
|
+
"sha256": "3f1adec418de538984a2fcc440bc96d877f13ae9067848501c1da63f86a7b303",
|
|
313
313
|
"name": "dsh-design-studio-ui",
|
|
314
314
|
"version": "0.0.0",
|
|
315
315
|
"packageMetadataSha256": "c193bf0059fb9e4364c3aadded6d4bc5dc4867ef16679bf921d381e7def3f171",
|
|
316
316
|
"firstParty": true,
|
|
317
317
|
"currentSourceIdentity": {
|
|
318
318
|
"manifestPath": "packages/studio-ui/package.json",
|
|
319
|
-
"sourceCommit": "
|
|
319
|
+
"sourceCommit": "1c813ae4a77e3087224db27e3a898cea5ca61b97",
|
|
320
320
|
"name": "dsh-design-studio-ui",
|
|
321
321
|
"version": "0.0.0",
|
|
322
322
|
"packageMetadataSha256": "c193bf0059fb9e4364c3aadded6d4bc5dc4867ef16679bf921d381e7def3f171"
|
|
@@ -332,7 +332,7 @@
|
|
|
332
332
|
"firstParty": true,
|
|
333
333
|
"currentSourceIdentity": {
|
|
334
334
|
"manifestPath": "packages/studio-ui/package.json",
|
|
335
|
-
"sourceCommit": "
|
|
335
|
+
"sourceCommit": "1c813ae4a77e3087224db27e3a898cea5ca61b97",
|
|
336
336
|
"name": "dsh-design-studio-ui",
|
|
337
337
|
"version": "0.0.0",
|
|
338
338
|
"packageMetadataSha256": "c193bf0059fb9e4364c3aadded6d4bc5dc4867ef16679bf921d381e7def3f171"
|
|
@@ -341,14 +341,14 @@
|
|
|
341
341
|
{
|
|
342
342
|
"output": "lib/index.js",
|
|
343
343
|
"path": "packages/studio-ui/src/StudioWorkspace.tsx",
|
|
344
|
-
"sha256": "
|
|
344
|
+
"sha256": "3a6dd27e4921fd4ca49bcd0bfa36b24ad486992f74457b4989140fd97a0e6fee",
|
|
345
345
|
"name": "dsh-design-studio-ui",
|
|
346
346
|
"version": "0.0.0",
|
|
347
347
|
"packageMetadataSha256": "c193bf0059fb9e4364c3aadded6d4bc5dc4867ef16679bf921d381e7def3f171",
|
|
348
348
|
"firstParty": true,
|
|
349
349
|
"currentSourceIdentity": {
|
|
350
350
|
"manifestPath": "packages/studio-ui/package.json",
|
|
351
|
-
"sourceCommit": "
|
|
351
|
+
"sourceCommit": "1c813ae4a77e3087224db27e3a898cea5ca61b97",
|
|
352
352
|
"name": "dsh-design-studio-ui",
|
|
353
353
|
"version": "0.0.0",
|
|
354
354
|
"packageMetadataSha256": "c193bf0059fb9e4364c3aadded6d4bc5dc4867ef16679bf921d381e7def3f171"
|
|
@@ -364,7 +364,7 @@
|
|
|
364
364
|
"firstParty": true,
|
|
365
365
|
"currentSourceIdentity": {
|
|
366
366
|
"manifestPath": "packages/studio-ui/package.json",
|
|
367
|
-
"sourceCommit": "
|
|
367
|
+
"sourceCommit": "1c813ae4a77e3087224db27e3a898cea5ca61b97",
|
|
368
368
|
"name": "dsh-design-studio-ui",
|
|
369
369
|
"version": "0.0.0",
|
|
370
370
|
"packageMetadataSha256": "c193bf0059fb9e4364c3aadded6d4bc5dc4867ef16679bf921d381e7def3f171"
|
|
@@ -380,7 +380,7 @@
|
|
|
380
380
|
"firstParty": true,
|
|
381
381
|
"currentSourceIdentity": {
|
|
382
382
|
"manifestPath": "packages/studio-ui/package.json",
|
|
383
|
-
"sourceCommit": "
|
|
383
|
+
"sourceCommit": "1c813ae4a77e3087224db27e3a898cea5ca61b97",
|
|
384
384
|
"name": "dsh-design-studio-ui",
|
|
385
385
|
"version": "0.0.0",
|
|
386
386
|
"packageMetadataSha256": "c193bf0059fb9e4364c3aadded6d4bc5dc4867ef16679bf921d381e7def3f171"
|
|
@@ -396,7 +396,7 @@
|
|
|
396
396
|
"firstParty": true,
|
|
397
397
|
"currentSourceIdentity": {
|
|
398
398
|
"manifestPath": "packages/studio-ui/package.json",
|
|
399
|
-
"sourceCommit": "
|
|
399
|
+
"sourceCommit": "1c813ae4a77e3087224db27e3a898cea5ca61b97",
|
|
400
400
|
"name": "dsh-design-studio-ui",
|
|
401
401
|
"version": "0.0.0",
|
|
402
402
|
"packageMetadataSha256": "c193bf0059fb9e4364c3aadded6d4bc5dc4867ef16679bf921d381e7def3f171"
|
|
@@ -412,7 +412,7 @@
|
|
|
412
412
|
"firstParty": true,
|
|
413
413
|
"currentSourceIdentity": {
|
|
414
414
|
"manifestPath": "packages/studio-ui/package.json",
|
|
415
|
-
"sourceCommit": "
|
|
415
|
+
"sourceCommit": "1c813ae4a77e3087224db27e3a898cea5ca61b97",
|
|
416
416
|
"name": "dsh-design-studio-ui",
|
|
417
417
|
"version": "0.0.0",
|
|
418
418
|
"packageMetadataSha256": "c193bf0059fb9e4364c3aadded6d4bc5dc4867ef16679bf921d381e7def3f171"
|
|
@@ -428,7 +428,7 @@
|
|
|
428
428
|
"firstParty": true,
|
|
429
429
|
"currentSourceIdentity": {
|
|
430
430
|
"manifestPath": "packages/studio-ui/package.json",
|
|
431
|
-
"sourceCommit": "
|
|
431
|
+
"sourceCommit": "1c813ae4a77e3087224db27e3a898cea5ca61b97",
|
|
432
432
|
"name": "dsh-design-studio-ui",
|
|
433
433
|
"version": "0.0.0",
|
|
434
434
|
"packageMetadataSha256": "c193bf0059fb9e4364c3aadded6d4bc5dc4867ef16679bf921d381e7def3f171"
|
|
@@ -444,7 +444,7 @@
|
|
|
444
444
|
"firstParty": true,
|
|
445
445
|
"currentSourceIdentity": {
|
|
446
446
|
"manifestPath": "packages/studio-ui/package.json",
|
|
447
|
-
"sourceCommit": "
|
|
447
|
+
"sourceCommit": "1c813ae4a77e3087224db27e3a898cea5ca61b97",
|
|
448
448
|
"name": "dsh-design-studio-ui",
|
|
449
449
|
"version": "0.0.0",
|
|
450
450
|
"packageMetadataSha256": "c193bf0059fb9e4364c3aadded6d4bc5dc4867ef16679bf921d381e7def3f171"
|
|
@@ -460,7 +460,7 @@
|
|
|
460
460
|
"firstParty": true,
|
|
461
461
|
"currentSourceIdentity": {
|
|
462
462
|
"manifestPath": "packages/studio-ui/package.json",
|
|
463
|
-
"sourceCommit": "
|
|
463
|
+
"sourceCommit": "1c813ae4a77e3087224db27e3a898cea5ca61b97",
|
|
464
464
|
"name": "dsh-design-studio-ui",
|
|
465
465
|
"version": "0.0.0",
|
|
466
466
|
"packageMetadataSha256": "c193bf0059fb9e4364c3aadded6d4bc5dc4867ef16679bf921d381e7def3f171"
|
|
@@ -469,14 +469,14 @@
|
|
|
469
469
|
{
|
|
470
470
|
"output": "lib/index.js",
|
|
471
471
|
"path": "packages/studio-ui/src/source-candidate-state.ts",
|
|
472
|
-
"sha256": "
|
|
472
|
+
"sha256": "b36c6f2093276501d37938f15a2b53926d4cbd9a536651a03ae8989bbc644d25",
|
|
473
473
|
"name": "dsh-design-studio-ui",
|
|
474
474
|
"version": "0.0.0",
|
|
475
475
|
"packageMetadataSha256": "c193bf0059fb9e4364c3aadded6d4bc5dc4867ef16679bf921d381e7def3f171",
|
|
476
476
|
"firstParty": true,
|
|
477
477
|
"currentSourceIdentity": {
|
|
478
478
|
"manifestPath": "packages/studio-ui/package.json",
|
|
479
|
-
"sourceCommit": "
|
|
479
|
+
"sourceCommit": "1c813ae4a77e3087224db27e3a898cea5ca61b97",
|
|
480
480
|
"name": "dsh-design-studio-ui",
|
|
481
481
|
"version": "0.0.0",
|
|
482
482
|
"packageMetadataSha256": "c193bf0059fb9e4364c3aadded6d4bc5dc4867ef16679bf921d381e7def3f171"
|
|
@@ -485,14 +485,14 @@
|
|
|
485
485
|
{
|
|
486
486
|
"output": "lib/index.js",
|
|
487
487
|
"path": "packages/studio-ui/src/styles.ts",
|
|
488
|
-
"sha256": "
|
|
488
|
+
"sha256": "e4405e54ba95a41f4a9f26e5797c9509f7c4d4185592c12dfa58e5fab8425f66",
|
|
489
489
|
"name": "dsh-design-studio-ui",
|
|
490
490
|
"version": "0.0.0",
|
|
491
491
|
"packageMetadataSha256": "c193bf0059fb9e4364c3aadded6d4bc5dc4867ef16679bf921d381e7def3f171",
|
|
492
492
|
"firstParty": true,
|
|
493
493
|
"currentSourceIdentity": {
|
|
494
494
|
"manifestPath": "packages/studio-ui/package.json",
|
|
495
|
-
"sourceCommit": "
|
|
495
|
+
"sourceCommit": "1c813ae4a77e3087224db27e3a898cea5ca61b97",
|
|
496
496
|
"name": "dsh-design-studio-ui",
|
|
497
497
|
"version": "0.0.0",
|
|
498
498
|
"packageMetadataSha256": "c193bf0059fb9e4364c3aadded6d4bc5dc4867ef16679bf921d381e7def3f171"
|
|
@@ -508,7 +508,7 @@
|
|
|
508
508
|
"firstParty": true,
|
|
509
509
|
"currentSourceIdentity": {
|
|
510
510
|
"manifestPath": "packages/studio-ui/package.json",
|
|
511
|
-
"sourceCommit": "
|
|
511
|
+
"sourceCommit": "1c813ae4a77e3087224db27e3a898cea5ca61b97",
|
|
512
512
|
"name": "dsh-design-studio-ui",
|
|
513
513
|
"version": "0.0.0",
|
|
514
514
|
"packageMetadataSha256": "c193bf0059fb9e4364c3aadded6d4bc5dc4867ef16679bf921d381e7def3f171"
|
package/package.json
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
"directory": "packages/studio-ui"
|
|
6
6
|
},
|
|
7
7
|
"name": "@yugoo-design/dsh-design-studio-ui",
|
|
8
|
-
"version": "0.2.
|
|
8
|
+
"version": "0.2.11",
|
|
9
9
|
"license": "Apache-2.0",
|
|
10
10
|
"type": "module",
|
|
11
11
|
"description": "Host-neutral shared React workspace for Kit and Bundle browsing and current-source editing.",
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
"test:source-candidates:built": "STUDIO_SOURCE_CANDIDATE_REVIEW_BUILT=1 TSX_TSCONFIG_PATH=tests/source-tsconfig.json node --import tsx --test tests/instance-source-changes.test.mjs tests/studio-feedback.test.mjs"
|
|
28
28
|
},
|
|
29
29
|
"peerDependencies": {
|
|
30
|
-
"@yugoo-design/dsh-design-studio": "0.2.
|
|
30
|
+
"@yugoo-design/dsh-design-studio": "0.2.11",
|
|
31
31
|
"react": "^18.2.0",
|
|
32
32
|
"react-dom": "^18.2.0"
|
|
33
33
|
},
|