@yugoo-design/dsh-design-studio-ui 0.1.0-beta.3 → 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +41 -15
- package/lib/index.d.ts +21 -3
- package/lib/index.js +422 -376
- package/licenses/dsh-distribution.json +594 -31
- package/package.json +8 -3
package/README.md
CHANGED
|
@@ -1,5 +1,24 @@
|
|
|
1
1
|
# Shared Design Studio UI
|
|
2
2
|
|
|
3
|
+
`dsh-design-studio-ui` is the shared React Studio. Its sidebar contains Kits
|
|
4
|
+
and Bundles, with Kits as the entry view. A host may additionally expose the
|
|
5
|
+
Component Library capability. The established Studio layout has a compact
|
|
6
|
+
breadcrumb/refresh bar above the workspace, with neutral typography, colors and
|
|
7
|
+
control details. Shared authoring guidance is in the
|
|
8
|
+
[Panel UIUX standard](../../docs/panel-uiux-standard.md). Storage concepts such as
|
|
9
|
+
Panel drafts must not add top-level navigation sections. The optional **Panel Component Library / 面板组件库**
|
|
10
|
+
entry is a bottom sidebar utility, above the shared language switch, not another
|
|
11
|
+
primary Kit/Bundle section.
|
|
12
|
+
|
|
13
|
+
The Kit list provides a compact **Browse official kits / 浏览官方设计套件**
|
|
14
|
+
documentation link to the maintained public `docs/wiki/kit-sharing.md#official-kits`
|
|
15
|
+
guide. It opens a separate tab and does not install, adopt or update content, or
|
|
16
|
+
retarget project pins. The installed catalog still comes only from the host.
|
|
17
|
+
Public repository visibility and document synchronization must be verified before
|
|
18
|
+
claiming that this external guide is available to anonymous users.
|
|
19
|
+
|
|
20
|
+
## Locale and catalog copy
|
|
21
|
+
|
|
3
22
|
Studio accepts an explicit host `locale` (`zh` or `en`) with a document/browser
|
|
4
23
|
fallback. Bundle cards use the loader's existing bilingual title and display
|
|
5
24
|
description; IDs and raw source files remain unchanged. Search includes those
|
|
@@ -24,6 +43,8 @@ User task text remains byte-exact; natural-language locale
|
|
|
24
43
|
inference is not implemented. Hosts must bind the result Panel to its recorded
|
|
25
44
|
trial locale rather than inheriting an unrelated browser-origin preference.
|
|
26
45
|
|
|
46
|
+
## Mindset editing and source files
|
|
47
|
+
|
|
27
48
|
`MindsetInlineEditor` is an optional control embedded in the original Kit page.
|
|
28
49
|
It lazily creates/reopens a Kit working copy via the existing authoring client,
|
|
29
50
|
edits body segments without trimming, and preserves frontmatter and the unique
|
|
@@ -51,6 +72,8 @@ copy, not uninstalling a Kit or Bundle. UI classes use the `ygd-studio` prefix;
|
|
|
51
72
|
package identities are unchanged. Studio loading locations share one indicator
|
|
52
73
|
with the KAG indeterminate sweep treatment (no fake completion percentage).
|
|
53
74
|
|
|
75
|
+
## Bundle trials
|
|
76
|
+
|
|
54
77
|
The title row owns the sole explicit trial entry. It checks the host connection,
|
|
55
78
|
then asks the native Agent to prepare a concrete input and execute it in the same
|
|
56
79
|
turn; merely mounting the UI never runs a Bundle. Preview uses left `panel.yaml`
|
|
@@ -82,6 +105,8 @@ They demonstrate the Panel's saved UI state in the current browser only; they do
|
|
|
82
105
|
not publish design changes or send an Agent continuation. Undo returns to the
|
|
83
106
|
latest local demonstration baseline. Reload restores the actual generated result.
|
|
84
107
|
|
|
108
|
+
## Panel authoring and shared controls
|
|
109
|
+
|
|
85
110
|
Optional authoring: hosts may supply `StudioAuthoring` to edit the left YAML in
|
|
86
111
|
the preview workplane. The first actual source change lazily creates a retained
|
|
87
112
|
Panel draft through the existing port, preserving text typed during creation.
|
|
@@ -98,21 +123,18 @@ render with sample-only ports; the shared UI imports no Panel implementation.
|
|
|
98
123
|
`onDraftDirtyChange` guards host closure and navigation. Confirmation locks a
|
|
99
124
|
local draft, not a published Kit; preview alone never starts execution.
|
|
100
125
|
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
126
|
+
The optional host-neutral `renderSelect: StudioSelectRenderer` port supplies the
|
|
127
|
+
shared choice control for Bundle/Kit versions, Mindset working-copy recovery and
|
|
128
|
+
the two Kit preview Bundle selectors. DSH's standalone browser page and Companion
|
|
129
|
+
inject the existing Panel control; Studio UI imports only the local port types.
|
|
130
|
+
Hosts without the port retain a controlled native select. Values, empty choices,
|
|
131
|
+
unknown stored values and disabled options remain caller-owned. Studio supplies
|
|
132
|
+
its compact 32px trigger geometry and semantic token bridge; the shared popup
|
|
133
|
+
keeps keyboard/focus handling and carries its own styles. Recovery menus stay
|
|
134
|
+
inside an open native dialog's top layer. This changes presentation only, not
|
|
135
|
+
working-copy, preview, CAS or save operations.
|
|
109
136
|
|
|
110
|
-
|
|
111
|
-
documentation link to the maintained public `docs/wiki/kit-sharing.md#official-kits`
|
|
112
|
-
guide. It opens a separate tab and does not install, adopt or update content, or
|
|
113
|
-
retarget project pins. The installed catalog still comes only from the host.
|
|
114
|
-
Public repository visibility and document synchronization must be verified before
|
|
115
|
-
claiming that this external guide is available to anonymous users.
|
|
137
|
+
## Component library
|
|
116
138
|
|
|
117
139
|
The optional `componentLibrary: StudioComponentLibrary` adapter supplies the
|
|
118
140
|
actual same-build DSL catalog, display names, trusted synthetic examples and
|
|
@@ -150,6 +172,8 @@ plugin activation are separate integration steps. Custom compiled components
|
|
|
150
172
|
require a development-source change and the existing registration/validation/UI
|
|
151
173
|
contract; this view is not a dynamic executable component marketplace.
|
|
152
174
|
|
|
175
|
+
## Source browsing and retained copies
|
|
176
|
+
|
|
153
177
|
Bundle pages put Source files first and Panel preview second. The recursive file
|
|
154
178
|
explorer displays actual source paths, including nested reference folders. Trial
|
|
155
179
|
execution is a Bundle-local action. Installed previews use the optional read-only
|
|
@@ -188,6 +212,8 @@ requires confirmation. This is not Kit publication or full Bundle-file editing.
|
|
|
188
212
|
|
|
189
213
|
The package renders installed Kits, searchable Bundles, Kit workspaces and byte-exact read-only Bundle source files. Resource inventories belong in the file explorer, not a paragraph beneath the Kit cards. File viewing uses one toolbar, a scrollable document body and a compact byte-count/status footer; Markdown metadata is folded without removing it from the raw source. Schema and validation files use that same viewer without additional compiled-summary blocks. A Bundle workspace overlays its original section and returns without a re-read. Kit selection carries the exact `name@version` pin; divergent identities and obsolete asynchronous responses cannot replace the current workspace. Without the explicit authoring capability there are no draft controls. With it, edits are kept in a separate draft rather than changing installed content. All data comes from server views; the UI hardcodes no Kit, Bundle or version and imports no Agent Host, Design Core, G/R/A or filesystem API.
|
|
190
214
|
|
|
215
|
+
## Layout and typography
|
|
216
|
+
|
|
191
217
|
Styles are scoped to Studio: system CJK typography, purple `#7c5af6` brand accents
|
|
192
218
|
(hover `#6849d8`, active `#5032bc`), neutral `#272727` primary text,
|
|
193
219
|
`#6d6d6d` secondary text, light borders, 8px control radii, and compact search and
|
|
@@ -205,7 +231,7 @@ use compact borders and a horizontal scroll container within the file viewer.
|
|
|
205
231
|
UI copy follows the host document/browser locale, but authored file content is never
|
|
206
232
|
translated or abbreviated in the document viewer.
|
|
207
233
|
|
|
208
|
-
|
|
234
|
+
## Content archives
|
|
209
235
|
|
|
210
236
|
Hosts may pass `contentClient` to expose **Content archives** in the existing
|
|
211
237
|
workspace toolbar; the sidebar remains Kits / Bundles. The archive workbench
|
package/lib/index.d.ts
CHANGED
|
@@ -129,6 +129,22 @@ declare class StudioPanelDraftController {
|
|
|
129
129
|
dispose(): void;
|
|
130
130
|
}
|
|
131
131
|
//#endregion
|
|
132
|
+
//#region src/StudioSelect.d.ts
|
|
133
|
+
/** Host-neutral control contract; choosing only reports the exact caller value. */
|
|
134
|
+
interface StudioSelectProps {
|
|
135
|
+
readonly value: string;
|
|
136
|
+
readonly options: readonly {
|
|
137
|
+
readonly value: string;
|
|
138
|
+
readonly label: string;
|
|
139
|
+
readonly disabled?: boolean;
|
|
140
|
+
}[];
|
|
141
|
+
readonly onValueChange: (value: string) => void;
|
|
142
|
+
readonly disabled?: boolean;
|
|
143
|
+
readonly 'aria-label': string;
|
|
144
|
+
readonly className?: string;
|
|
145
|
+
}
|
|
146
|
+
type StudioSelectRenderer = (props: StudioSelectProps) => ReactElement;
|
|
147
|
+
//#endregion
|
|
132
148
|
//#region src/trial-controller.d.ts
|
|
133
149
|
/** Trial transport: hosts own snapshots, isolation and native execution. */
|
|
134
150
|
type StudioTrialSource = {
|
|
@@ -589,13 +605,15 @@ interface StudioWorkspaceProps {
|
|
|
589
605
|
readonly instances?: StudioInstanceClient;
|
|
590
606
|
/** Trusted host-owned catalog and sample-only shared renderer. */
|
|
591
607
|
readonly componentLibrary?: StudioComponentLibrary;
|
|
608
|
+
/** Optional host-owned shared choice control; no Panel implementation enters Studio UI. */
|
|
609
|
+
readonly renderSelect?: StudioSelectRenderer;
|
|
592
610
|
/** Optional inert content import/export; only Kit adoption requires Kit authoring. */
|
|
593
611
|
readonly contentClient?: StudioContentClient;
|
|
594
612
|
/** Lets the host guard dialog closure as well as internal navigation. */
|
|
595
613
|
readonly onDraftDirtyChange?: (dirty: boolean) => void;
|
|
596
614
|
}
|
|
597
615
|
/** Read-only Studio surface: one complete page with global nav, sidebar, and workspace main. */
|
|
598
|
-
declare function StudioWorkspace({ client, controller: supplied, authoring, kitAuthoring, trials, instances, componentLibrary, contentClient, onDraftDirtyChange, locale: hostLocale, onLocaleChange }: StudioWorkspaceProps): ReactElement;
|
|
616
|
+
declare function StudioWorkspace({ client, controller: supplied, authoring, kitAuthoring, trials, instances, componentLibrary, renderSelect, contentClient, onDraftDirtyChange, locale: hostLocale, onLocaleChange }: StudioWorkspaceProps): ReactElement;
|
|
599
617
|
//#endregion
|
|
600
618
|
//#region src/styles.d.ts
|
|
601
619
|
/**
|
|
@@ -605,7 +623,7 @@ declare function StudioWorkspace({ client, controller: supplied, authoring, kitA
|
|
|
605
623
|
* purple brand accents, neutral text and radii follow the Yugoo UI. The stylesheet is scoped so
|
|
606
624
|
* embedded and Companion hosts share it without importing a host/Core theme.
|
|
607
625
|
*/
|
|
608
|
-
declare const STUDIO_WORKSPACE_CSS = "\n.ygd-studio-component-browser{display:flex;flex:1;min-width:0;min-height:0;border-top:1px solid var(--ds-border)}\n.ygd-studio-component-directory{width:240px;flex-shrink:0;display:flex;flex-direction:column;gap:12px;padding:12px;border-right:1px solid var(--ds-border);min-height:0}\n.ygd-studio-component-directory>.ygd-studio-search-input{width:100%;min-width:0}\n.ygd-studio-component-catalog-tabs{display:flex;gap:4px;background:var(--ds-surface);border:1px solid var(--ds-border);border-radius:8px;padding:3px}\n.ygd-studio-component-catalog-tabs button{flex:1;min-width:0;border:0;border-radius:5px;padding:6px 4px;font:inherit;font-size:12px;background:transparent;color:var(--ds-text-secondary);cursor:pointer}\n.ygd-studio-component-catalog-tabs button[aria-selected=true]{background:var(--ds-primary-light);color:var(--ds-primary-dark)}\n.ygd-studio-component-list{overflow:auto;min-height:0;flex:1}\n.ygd-studio-component-directory-group summary{font-size:14px;font-weight:500;padding:8px;cursor:pointer}\n.ygd-studio-component-directory-item{display:flex;flex-direction:column;align-items:flex-start;width:calc(100% - 24px);margin-left:24px;gap:3px;padding:8px;border:0;border-radius:8px;background:transparent;color:var(--ds-text);text-align:left;font:inherit;font-size:14px;overflow-wrap:anywhere;cursor:pointer}\n.ygd-studio-component-directory-item:hover{background:var(--ds-bg-hover,#f5f4f9)}\n.ygd-studio-component-directory-item[aria-current=page]{background:var(--ds-primary-light);color:var(--ds-primary)}\n.ygd-studio-components code{font-family:var(--ds-mono-font,'Consolas',ui-monospace,monospace)}\n.ygd-studio-component-list code{display:block;font-size:11px;color:var(--ds-text-secondary);margin-top:2px}\n.ygd-studio-component-tree.dsh-panel-workspace-tree{padding:0;min-width:0}\n.ygd-studio-component-tree .dsh-panel-workspace-tree-group{width:auto;padding:0;border:0}\n.ygd-studio-component-tree .dsh-panel-workspace-tree-body{display:grid;gap:4px}\n.ygd-studio-component-detail{display:flex;flex-direction:column;flex:1;min-width:0;min-height:0}\n.ygd-studio-component-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:16px 20px 12px}\n.ygd-studio-component-heading>div{display:flex;align-items:baseline;flex-wrap:wrap;gap:8px}\n.ygd-studio-component-heading h2{font-size:18px;line-height:24px;font-weight:500}\n.ygd-studio-component-heading code,.ygd-studio-component-support{font-size:12px;color:var(--ds-text-secondary);overflow-wrap:anywhere}\n.ygd-studio-component-toolbar{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:0 20px;border-bottom:1px solid var(--ds-border)}\n.ygd-studio-component-actions{display:flex;align-items:center;flex-wrap:wrap;gap:8px}\n.ygd-studio-component-library-version{font-family:var(--ds-body-font);font-size:12px;font-variant-numeric:tabular-nums;line-height:20px;padding:2px 8px;border-radius:6px;background:var(--ds-primary-light);color:var(--ds-text-secondary)}\n.ygd-studio-component-tabs{display:flex;gap:20px}\n.ygd-studio-component-tabs button{border:0;border-bottom:2px solid transparent;background:transparent;padding:10px 0;font:inherit;font-size:14px;color:var(--ds-text-secondary);cursor:pointer}\n.ygd-studio-component-tabs button[aria-selected=true]{border-color:var(--ds-primary);color:var(--ds-primary)}\n.ygd-studio-component-content{display:flex;flex-direction:column;flex:1;min-height:0;min-width:0;overflow:hidden}\n.ygd-studio-component-preview{flex:1;min-width:0;min-height:0;overflow:auto;display:flex;flex-direction:column;padding:16px;background:var(--ds-background)}\n.ygd-studio-component-stage{width:100%;min-width:0;border:1px solid var(--ds-border);border-radius:8px;background:var(--ds-surface)}\n.ygd-studio-component-preview-inline .ygd-studio-component-stage{max-width:880px;margin:0 auto;padding:16px}\n.ygd-studio-component-preview-navigation .ygd-studio-component-stage{max-width:360px;padding:12px;min-height:240px}\n.ygd-studio-component-preview-inline .dsh-design-panel,.ygd-studio-component-preview-navigation .dsh-design-panel{height:auto;min-height:0}\n.ygd-studio-component-preview-workspace{overflow:hidden}\n.ygd-studio-component-preview-workspace .ygd-studio-component-stage{display:flex;flex-direction:column;flex:1;min-height:0;overflow:hidden}\n.ygd-studio-component-preview-workspace .dsh-design-dock-panel-body{flex:1;min-height:0;overflow:hidden}\n.ygd-studio-component-preview-workspace .dsh-design-panel{height:100%;min-height:0}\n.ygd-studio-component-library-info{max-width:760px;padding:8px 20px 24px;overflow:auto;display:flex;flex-direction:column;gap:24px;font-size:14px;line-height:1.6}\n.ygd-studio-component-library-info dl{margin:0;border-top:1px solid var(--ds-border)}\n.ygd-studio-component-library-info dl>div{display:grid;grid-template-columns:112px minmax(0,1fr);gap:12px;padding:12px 0;border-bottom:1px solid var(--ds-border)}\n.ygd-studio-component-library-info dt{color:var(--ds-text-secondary)}\n.ygd-studio-component-library-info dd{margin:0;overflow-wrap:anywhere}\n.ygd-studio-component-library-info code{font-size:12px}\n.ygd-studio-component-library-note{color:var(--ds-text-secondary);font-size:12px}\n.ygd-studio-component-doc{padding:16px 20px;display:flex;flex-direction:column;gap:16px;overflow:auto;min-width:0;line-height:1.6;font-size:14px}\n.ygd-studio-component-doc pre{font-size:12px;line-height:1.65;white-space:pre-wrap;overflow-wrap:anywhere;background:var(--ds-bg-secondary,#f7f7f9);border:1px solid var(--ds-border);border-radius:8px;padding:12px;margin:0}\n.ygd-studio-component-doc h3{font-size:14px;font-weight:500}\n.ygd-studio-component-doc summary{cursor:pointer}\n.ygd-studio-component-feedback{padding:8px 20px;color:var(--ds-text-secondary);font-size:12px}\n.ygd-studio-component-feedback[role=alert]{color:var(--ds-danger,#bd3540)}\n.ygd-studio-component-unavailable{margin:auto;padding:24px;max-width:480px;display:flex;flex-direction:column;align-items:flex-start;gap:16px;font-size:14px;line-height:1.6}\n.ygd-studio-component-unavailable h3{font-size:16px;font-weight:500}\n@media(max-width:760px){.ygd-studio-component-directory{width:180px}.ygd-studio-component-heading{align-items:flex-start;flex-direction:column;padding:12px}.ygd-studio-component-toolbar{padding:0 12px 8px;flex-wrap:wrap}.ygd-studio-component-preview{padding:12px}.ygd-studio-component-library-info dl>div{grid-template-columns:1fr;gap:4px}}\n@media(max-width:480px){.ygd-studio-component-directory{width:140px;padding:8px}.ygd-studio-component-tabs{gap:12px}.ygd-studio-component-tabs button{font-size:12px}.ygd-studio-component-list button{font-size:12px}.ygd-studio-component-doc{padding:12px}}\n.ygd-studio-back{display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;width:28px;height:28px;padding:0;border:0;border-radius:6px;background:transparent;color:var(--ds-text-secondary);cursor:pointer}\n.ygd-studio-back:hover{background:var(--ds-primary-light);color:var(--ds-primary)}\n.ygd-studio-back:focus-visible{outline:2px solid var(--ds-primary);outline-offset:2px}\n.ygd-studio-header-title-group:has(>.ygd-studio-back){padding-left:0;flex-wrap:nowrap}\n.ygd-studio-header-title-group:has(>.ygd-studio-back)>.ygd-studio-kitmark{position:static;flex-shrink:0}\n.ygd-studio-loading{display:flex;align-items:center;justify-content:center;flex:1;min-height:96px;width:100%;align-self:stretch}\n.ygd-studio-spinner{position:relative;display:inline-block;overflow:hidden;width:180px;height:2px;background:var(--ds-primary-light,#e5f0ed)}\n.ygd-studio-spinner::before{content:'';position:absolute;inset:0 auto 0 0;width:34%;background:var(--ds-primary,#3f9e8b);animation:ygd-studio-progress 1.6s ease-in-out infinite}\n@keyframes ygd-studio-progress{0%{transform:translateX(-110%);opacity:.45}50%{opacity:1}100%{transform:translateX(310%);opacity:.45}}\n@media(prefers-reduced-motion:reduce){.ygd-studio-spinner::before{animation:none;width:100%;opacity:.8}}\n.ygd-studio-trial{margin-top:8px;font-size:14px}\n.ygd-studio-trial .ygd-studio-summary-card{display:grid;gap:8px;margin-top:8px;padding:12px;border:1px solid #e8e8e8;border-radius:8px;background:#fff;box-shadow:none}\n.ygd-studio-trial button{min-height:32px;padding:5px 10px;border:1px solid #e8e8e8;border-radius:8px;background:#f7f7f7;color:#272727;font:inherit;cursor:pointer;width:fit-content}\n.ygd-studio-trial button:disabled{opacity:.5;cursor:default}\n.ygd-studio-trial textarea{display:block;margin-top:6px;padding:8px;border:1px solid #dfdfdf;border-radius:8px;font:inherit;background:#fff;color:#272727;resize:vertical}\n.ygd-studio-trial small{color:#6d6d6d;overflow-wrap:anywhere}\n.ygd-studio-trial button:focus-visible,.ygd-studio-trial textarea:focus-visible{outline:2px solid var(--ds-primary);outline-offset:2px}\n.ygd-studio-workspace{\n --ds-primary:#7c5af6;--ds-primary-light:#f7f4fe;--ds-primary-dark:#6849d8;--ds-primary-active:#5032bc;\n --ds-secondary:#64748B;--ds-accent:#0EA5E9;\n --ds-background:#F7F7F7;--ds-surface:#FFFFFF;\n --ds-text:#272727;--ds-text-secondary:#6d6d6d;--ds-border:#E8E8E8;\n --ds-success:#059669;--ds-warning:#D97706;--ds-error:#DC2626;--ds-info:#0284C7;\n --ds-heading-font:'PingFang SC',-apple-system,BlinkMacSystemFont,'Segoe UI','Microsoft YaHei',sans-serif;\n --ds-body-font:'PingFang SC',-apple-system,BlinkMacSystemFont,'Segoe UI','Microsoft YaHei',sans-serif;\n --ds-mono-font:'JetBrains Mono','Fira Code','Consolas',monospace;\n --ds-base-font-size:14px;--ds-heading-weight:600;--ds-line-height:1.5;\n --ds-radius:8px;\n --ds-shadow:0 1px 3px rgba(0,0,0,.03);\n --ds-density-padding:12px;\n --ds-duration-fast:120ms;--ds-duration-normal:200ms;\n --ds-space-1:4px;--ds-space-2:8px;--ds-space-3:12px;--ds-space-4:16px;--ds-space-5:24px;--ds-space-6:32px;\n --ds-z-drawer:30;\n box-sizing:border-box;display:flex;flex-direction:column;width:100%;height:100%;min-height:24rem;\n background:var(--ds-background);color:var(--ds-text);\n font-family:var(--ds-body-font);font-size:var(--ds-base-font-size);line-height:var(--ds-line-height)}\n.ygd-studio-workspace *{box-sizing:border-box}\n.ygd-studio-workspace h1,.ygd-studio-workspace h2,.ygd-studio-workspace h3,.ygd-studio-workspace h4,.ygd-studio-workspace p,.ygd-studio-workspace ul,.ygd-studio-workspace ol{margin:0}\n\n/* Narrow-viewport drawer toggle; positioned by the responsive block below */\n.ygd-studio-menu-btn{display:none;align-items:center;justify-content:center;width:28px;height:28px;border:1px solid var(--ds-border);\n background:var(--ds-surface);cursor:pointer;color:var(--ds-text-secondary);font-size:16px;border-radius:var(--ds-radius);\n box-shadow:var(--ds-shadow)}\n.ygd-studio-menu-btn:hover{background:var(--ds-background);color:var(--ds-text)}\n\n/* Shell */\n.ygd-studio-body{display:flex;flex:1;min-height:0}\n.ygd-studio-sidebar{width:176px;padding:20px 12px 12px;flex-shrink:0;background:var(--ds-background);border-right:1px solid var(--ds-border);\n display:flex;flex-direction:column;overflow-y:auto}\n.ygd-studio-sidebar-logo{padding:0 6px 24px;font-family:var(--ds-heading-font);\n font-weight:var(--ds-heading-weight);font-size:18px;color:var(--ds-text);letter-spacing:-.6px;white-space:nowrap}\n.ygd-studio-sidebar-nav{padding:var(--ds-space-2) 0}\n.ygd-studio-sidebar-item{display:block;width:100%;padding:8px 10px;margin:2px 0;min-height:36px;border-radius:8px;font-size:14px;\n color:var(--ds-text-secondary);cursor:pointer;border:none;background:none;text-align:left;font-family:var(--ds-body-font);\n transition:color var(--ds-duration-fast),background var(--ds-duration-fast)}\n.ygd-studio-sidebar-item:hover{color:var(--ds-text);background:var(--ds-background)}\n.ygd-studio-sidebar-item[aria-current=\"page\"]{color:var(--ds-primary-dark);background:var(--ds-primary-light);font-weight:500}\n.ygd-studio-stage{display:flex;flex:1;flex-direction:column;min-width:0;min-height:0}\n.ygd-studio-topbar{height:46px;flex-shrink:0;display:flex;align-items:center;justify-content:space-between;padding:0 20px;border-bottom:1px solid var(--ds-border);background:#fff;font-size:12px;color:var(--ds-text-secondary)}\n.ygd-studio-topbar span span{padding:0 10px;color:#b2b2b2}\n.ygd-studio-topbar-actions{display:flex;align-items:center;gap:12px}\n.ygd-studio-language{display:flex;align-items:center;padding:2px;border:1px solid var(--ds-border);border-radius:var(--ds-radius);background:var(--ds-background)}\n.ygd-studio-sidebar-footer{margin-top:auto;padding:16px 0 0;display:flex;flex-direction:column;align-items:flex-start;gap:12px}\n.ygd-studio-sidebar-utilities{width:100%}\n.ygd-studio-sidebar-footer>.ygd-studio-language{margin-left:4px}\n.ygd-studio-language button{height:30px;min-width:38px;padding:0 8px;border:0;border-radius:4px;background:transparent;color:var(--ds-text-secondary);font:400 14px/20px var(--ds-body-font);cursor:pointer}\n.ygd-studio-language button[aria-pressed=\"true\"]{background:var(--ds-primary-light);color:var(--ds-primary-dark);font-weight:500}\n.ygd-studio-language button:focus-visible{outline:2px solid var(--ds-primary);outline-offset:1px}\n.ygd-studio-main{flex:1;display:flex;flex-direction:column;min-width:0;overflow:hidden}\n\n/* Content header */\n.ygd-studio-content-header{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px 12px;\n min-height:48px;padding:8px 20px;background:transparent;border-bottom:0;flex-shrink:0}\n.ygd-studio-header-title-group{display:flex;align-items:center;gap:var(--ds-space-2);flex-wrap:nowrap;min-height:32px;min-width:0}\n.ygd-studio-header-title-group>.ygd-studio-kitmark{position:static;width:32px;height:32px;border-radius:8px}\n.ygd-studio-header-title-group>.ygd-studio-kitmark svg{width:20px;height:20px}\n.ygd-studio-header-title-group>.ygd-studio-search-input{height:32px;min-height:32px;min-width:0}\n.ygd-studio-page-title{font-family:var(--ds-heading-font);font-weight:500;font-size:18px;line-height:24px;color:var(--ds-text);letter-spacing:-.5px;min-width:0;overflow-wrap:anywhere}\n.ygd-studio-subtitle{font-size:12px;color:var(--ds-text-secondary);margin:0}\n.ygd-studio-context-label{display:none}\n.ygd-studio-version-badge{font-size:11px;padding:2px 8px;border-radius:var(--ds-radius);background:var(--ds-background);\n border:1px solid var(--ds-border);color:var(--ds-text-secondary);white-space:nowrap}\n.ygd-studio-readonly-badge{font-size:11px;padding:2px 8px;border-radius:var(--ds-radius);background:var(--ds-background);\n border:1px solid var(--ds-border);color:var(--ds-text-secondary);white-space:nowrap;font-weight:500}\n.ygd-studio-mounted-ref{font-size:11px;color:var(--ds-text-secondary);display:flex;align-items:center;gap:var(--ds-space-1)}\n.ygd-studio-mounted-ref strong{color:var(--ds-text);font-weight:500}\n.ygd-studio-breadcrumb{display:flex;align-items:center;gap:var(--ds-space-2);font-size:12px;color:var(--ds-text-secondary)}\n.ygd-studio-breadcrumb-sep{color:var(--ds-border)}\n.ygd-studio-breadcrumb-current{color:var(--ds-text);font-weight:500}\n.ygd-studio-breadcrumb-button{border:none;background:none;padding:0;font:inherit;color:inherit;cursor:pointer}\n.ygd-studio-breadcrumb-button:hover{color:var(--ds-primary)}\n\n/* Workplane tabs */\n.ygd-studio-workplane-bar{display:flex;gap:23px;border-bottom:1px solid var(--ds-border);background:transparent;\n margin:0 20px 14px;padding:0;flex-shrink:0;flex-wrap:wrap}\n.ygd-studio-workplane-tab{padding:0 2px 9px;font-size:13px;font-weight:500;\n color:var(--ds-text-secondary);cursor:pointer;border:none;background:none;border-bottom:2px solid transparent;\n font-family:var(--ds-body-font);transition:color var(--ds-duration-fast),border-color var(--ds-duration-fast)}\n.ygd-studio-workplane-tab:hover{color:var(--ds-text)}\n.ygd-studio-workplane-tab[aria-selected=\"true\"],.ygd-studio-workplane-tab[aria-pressed=\"true\"]{color:var(--ds-primary);border-bottom-color:var(--ds-primary)}\n\n/* Content body */\n.ygd-studio-content-body{flex:1;min-height:0;overflow-y:auto;padding:0 20px 18px;display:flex;flex-direction:column}\n/* File workspaces own their shared outer margins; do not add a second Kit inset. */\n.ygd-studio-kit-files-body{padding:0;overflow:hidden}\n\n/* Bundle search */\n.ygd-studio-search{margin-bottom:var(--ds-space-4);max-width:400px}\n.ygd-studio-search-input{width:100%;height:34px;min-height:34px;margin:0;padding:0 10px;font-size:13px;\n font-family:var(--ds-body-font);color:var(--ds-text);background:var(--ds-surface);\n border:1px solid var(--ds-border);border-radius:var(--ds-radius);outline:none;\n transition:border-color var(--ds-duration-fast)}\n.ygd-studio-search-input:focus{border-color:var(--ds-primary)}\n.ygd-studio-search-input::placeholder{color:var(--ds-text-secondary)}\n\n/* Shared Kit / Bundle catalog cards */\n.ygd-studio-kits-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:12px}\n.ygd-studio-kit-card{background:var(--ds-surface);border:1px solid var(--ds-border);border-radius:var(--ds-radius);\n padding:15px;display:flex;flex-direction:column;gap:0;min-width:0;text-align:left;font:inherit;color:inherit;\n cursor:pointer;transition:box-shadow var(--ds-duration-fast)}\n.ygd-studio-kit-card:hover{box-shadow:var(--ds-shadow)}\n.ygd-studio-kit-card-header{display:flex;align-items:flex-start;justify-content:space-between;gap:var(--ds-space-2)}\n.ygd-studio-kit-card-name{font-family:var(--ds-heading-font);font-weight:var(--ds-heading-weight);font-size:15px;color:var(--ds-text)}\n.ygd-studio-kit-card-meta{display:flex;flex-direction:column;gap:var(--ds-space-1)}\n.ygd-studio-kit-card-meta-row{font-size:12px;color:var(--ds-text-secondary);display:flex;align-items:center;gap:var(--ds-space-2)}\n.ygd-studio-meta-label{color:var(--ds-text-secondary);min-width:80px}\n.ygd-studio-meta-value{color:var(--ds-text)}\n.ygd-studio-kit-card-actions{margin-top:var(--ds-space-1);padding-top:var(--ds-space-3);border-top:1px solid var(--ds-border)}\n.ygd-studio-btn-primary{display:inline-flex;align-items:center;gap:var(--ds-space-2);padding:var(--ds-space-2) var(--ds-space-3);\n font-size:12px;font-weight:500;font-family:var(--ds-body-font);color:#fff;background:var(--ds-primary);border:none;\n border-radius:var(--ds-radius);cursor:pointer;transition:background var(--ds-duration-fast)}\n.ygd-studio-btn-primary:hover{background:var(--ds-primary-dark)}\n.ygd-studio-btn-primary:active{background:var(--ds-primary-active)}\n.ygd-studio-trial button.ygd-studio-btn-primary{background:var(--ds-primary);color:#fff;border-color:transparent}\n.ygd-studio-trial button.ygd-studio-btn-primary:hover{background:var(--ds-primary-dark)}\n.ygd-studio-trial button.ygd-studio-btn-primary:active{background:var(--ds-primary-active)}\n.ygd-studio-btn-link{font-size:12px;color:var(--ds-primary);cursor:pointer;border:none;background:none;\n font-family:var(--ds-body-font);padding:var(--ds-space-1) var(--ds-space-2);border-radius:var(--ds-radius);\n transition:background var(--ds-duration-fast)}\n.ygd-studio-btn-link:hover{background:var(--ds-background)}\n\n/* Empty state */\n.ygd-studio-empty{display:flex;flex-direction:column;align-items:center;justify-content:center;\n padding:var(--ds-space-6);text-align:center;color:var(--ds-text-secondary);font-size:14px}\n\n/* Bundle items */\n.ygd-studio-bundles-list{display:flex;flex-direction:column;gap:var(--ds-space-3)}\n.ygd-studio-bundle-item{display:flex;align-items:center;justify-content:space-between;gap:var(--ds-space-3);\n background:var(--ds-surface);border:1px solid var(--ds-border);border-radius:var(--ds-radius);\n padding:var(--ds-space-3) var(--ds-space-4);transition:box-shadow var(--ds-duration-fast)}\n.ygd-studio-bundle-item:hover{box-shadow:var(--ds-shadow)}\n.ygd-studio-bundle-info{display:flex;flex-direction:column;gap:var(--ds-space-1);min-width:0;flex:1}\n.ygd-studio-bundle-name-row{display:flex;align-items:center;gap:var(--ds-space-2);flex-wrap:wrap}\n.ygd-studio-bundle-name{font-weight:500;font-size:14px;color:var(--ds-text)}\n.ygd-studio-bundle-id{font-family:var(--ds-mono-font);font-size:11px;color:var(--ds-text-secondary)}\n.ygd-studio-bundle-purpose{font-size:12px;color:var(--ds-text-secondary)}\n.ygd-studio-bundle-item-card{align-items:flex-start}\n.ygd-studio-card-description{font-size:12px;line-height:1.6;color:var(--ds-text-secondary);display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}\n.ygd-studio-card-description .ygd-studio-markdown{max-width:none;font-size:12px;line-height:1.6;color:var(--ds-text-secondary)}\n.ygd-studio-card-description .ygd-studio-markdown p,\n.ygd-studio-card-description .ygd-studio-markdown ul,\n.ygd-studio-card-description .ygd-studio-markdown ol{margin-bottom:var(--ds-space-1)}\n.ygd-studio-card-description .ygd-studio-markdown ul,\n.ygd-studio-card-description .ygd-studio-markdown ol{padding-left:var(--ds-space-4)}\n.ygd-studio-card-description .ygd-studio-markdown li{margin-bottom:2px}\n.ygd-studio-card-description .ygd-studio-markdown strong{color:var(--ds-text);font-weight:600}\n.ygd-studio-bundle-actions{flex-shrink:0}\n\n/* Document toolbar (rich/source toggle) */\n.ygd-studio-doc-toolbar{display:flex;align-items:center;gap:var(--ds-space-2);margin-bottom:var(--ds-space-3);flex-shrink:0}\n.ygd-studio-doc-toggle-group{display:inline-flex;border:1px solid var(--ds-border);border-radius:var(--ds-radius);\n overflow:hidden;background:var(--ds-surface)}\n.ygd-studio-doc-toggle{padding:var(--ds-space-1) var(--ds-space-3);font-size:12px;line-height:18px;border:none;\n background:var(--ds-surface);color:var(--ds-text-secondary);cursor:pointer;font-family:var(--ds-body-font);\n transition:color var(--ds-duration-fast),background var(--ds-duration-fast)}\n.ygd-studio-doc-toggle+.ygd-studio-doc-toggle{border-left:1px solid var(--ds-border)}\n.ygd-studio-doc-toggle:hover{color:var(--ds-text);background:var(--ds-background)}\n.ygd-studio-doc-toggle[aria-pressed=\"true\"]{background:var(--ds-primary);color:#fff}\n.ygd-studio-doc-meta{margin-left:auto;font-size:11px;color:var(--ds-text-secondary);font-family:var(--ds-mono-font)}\n\n/* Frontmatter + rich markdown */\n.ygd-studio-frontmatter{background:var(--ds-background);border:1px solid var(--ds-border);border-radius:var(--ds-radius);\n padding:var(--ds-space-3) var(--ds-space-4);margin-bottom:var(--ds-space-4);font-family:var(--ds-mono-font);\n font-size:12px;line-height:1.6;color:var(--ds-text-secondary);white-space:pre-wrap;word-break:break-word}\n.ygd-studio-markdown{max-width:800px;font-size:var(--ds-base-font-size);line-height:1.7;color:var(--ds-text)}\n.ygd-studio-markdown h1{font-family:var(--ds-heading-font);font-weight:var(--ds-heading-weight);font-size:20px;margin-bottom:var(--ds-space-3)}\n.ygd-studio-markdown h2{font-family:var(--ds-heading-font);font-weight:var(--ds-heading-weight);font-size:16px;margin-top:var(--ds-space-5);margin-bottom:var(--ds-space-2)}\n.ygd-studio-markdown h3,.ygd-studio-markdown h4{font-family:var(--ds-heading-font);font-weight:var(--ds-heading-weight);font-size:14px;margin-top:var(--ds-space-4);margin-bottom:var(--ds-space-2)}\n.ygd-studio-markdown p{margin-bottom:var(--ds-space-3)}\n.ygd-studio-markdown ul,.ygd-studio-markdown ol{margin-bottom:var(--ds-space-3);padding-left:var(--ds-space-5)}\n.ygd-studio-markdown li{margin-bottom:var(--ds-space-1)}\n.ygd-studio-markdown code{font-family:var(--ds-mono-font);font-size:12px;background:var(--ds-background);padding:1px 4px;border-radius:3px;color:var(--ds-text)}\n.ygd-studio-markdown pre{background:var(--ds-background);border:1px solid var(--ds-border);border-radius:var(--ds-radius);\n padding:var(--ds-space-3);margin-bottom:var(--ds-space-4);font-family:var(--ds-mono-font);font-size:12px;line-height:1.6;overflow-x:auto}\n.ygd-studio-markdown pre code{background:none;padding:0}\n.ygd-studio-markdown-table-scroll{max-width:100%;overflow-x:auto;margin-bottom:var(--ds-space-4);border:1px solid var(--ds-border);border-radius:var(--ds-radius)}\n.ygd-studio-markdown-table-scroll:focus-visible{outline:2px solid var(--ds-primary);outline-offset:2px}\n.ygd-studio-markdown table{width:100%;border-collapse:collapse;font-size:inherit;line-height:1.6}\n.ygd-studio-markdown th,.ygd-studio-markdown td{padding:8px 12px;text-align:left;vertical-align:top;overflow-wrap:anywhere;border-bottom:1px solid var(--ds-border)}\n.ygd-studio-markdown th{background:var(--ds-background);font-weight:600}\n.ygd-studio-markdown th+th,.ygd-studio-markdown td+td{border-left:1px solid var(--ds-border)}\n.ygd-studio-markdown tbody tr:last-child td{border-bottom:0}\n.ygd-studio-markdown tbody tr:nth-child(even){background:var(--ds-background)}\n\n/* Code viewer with line numbers; fills the remaining height of its flex parent */\n.ygd-studio-code-frame{flex:1 1 auto;min-height:min(64vh,52rem);display:flex;flex-direction:column;\n background:var(--ds-surface);border:1px solid var(--ds-border);border-radius:var(--ds-radius);overflow:hidden}\n.ygd-studio-code-scroll{flex:1;min-height:0;overflow:auto;padding:var(--ds-space-4) 0}\n.ygd-studio-code-view{display:flex;font-family:var(--ds-mono-font);font-size:13px;line-height:1.6;color:var(--ds-text)}\n.ygd-studio-line-numbers{width:44px;flex-shrink:0;text-align:right;padding:0 var(--ds-space-3);color:var(--ds-text-secondary);\n font-size:12px;line-height:1.6;user-select:none;border-right:1px solid var(--ds-border);margin-right:var(--ds-space-3);white-space:pre}\n.ygd-studio-code-body{margin:0;padding:0 var(--ds-space-4) 0 0;white-space:pre-wrap;word-break:break-word;flex:1;min-width:0;\n font-family:var(--ds-mono-font);font-size:13px;line-height:1.6}\n\n/* Summaries */\n.ygd-studio-summary-panel{margin-top:var(--ds-space-5);border-top:1px solid var(--ds-border);padding-top:var(--ds-space-4)}\n.ygd-studio-summary-title{font-family:var(--ds-heading-font);font-weight:var(--ds-heading-weight);font-size:14px;color:var(--ds-text);margin-bottom:var(--ds-space-3)}\n.ygd-studio-summary-grid{display:grid;grid-template-columns:1fr 1fr;gap:var(--ds-space-4)}\n.ygd-studio-summary-card{background:var(--ds-background);border:1px solid var(--ds-border);border-radius:var(--ds-radius);padding:var(--ds-space-3)}\n.ygd-studio-summary-card-title{font-size:12px;font-weight:600;color:var(--ds-text-secondary);margin-bottom:var(--ds-space-2);text-transform:uppercase;letter-spacing:.03em}\n.ygd-studio-summary-field{display:flex;justify-content:space-between;gap:var(--ds-space-2);padding:var(--ds-space-1) 0;font-size:12px;border-bottom:1px solid var(--ds-border)}\n.ygd-studio-summary-field:last-child{border-bottom:none}\n.ygd-studio-summary-field-name{color:var(--ds-text)}\n.ygd-studio-summary-field-type{font-family:var(--ds-mono-font);color:var(--ds-text-secondary);font-size:11px}\n\n/* Native Panel readonly placeholder */\n.ygd-studio-panel-container{margin-top:var(--ds-space-5);border:1px solid var(--ds-border);border-radius:var(--ds-radius);overflow:hidden}\n.ygd-studio-panel-header{padding:var(--ds-space-2) var(--ds-space-3);background:var(--ds-background);\n border-bottom:1px solid var(--ds-border);font-size:12px;font-weight:600;color:var(--ds-text-secondary);\n display:flex;align-items:center;gap:var(--ds-space-2);flex-wrap:wrap}\n.ygd-studio-panel-badge{font-size:10px;padding:1px 6px;border-radius:var(--ds-radius);background:var(--ds-border);color:var(--ds-text-secondary)}\n.ygd-studio-panel-placeholder{display:flex;flex-direction:column;align-items:center;justify-content:center;\n padding:var(--ds-space-5);text-align:center;color:var(--ds-text-secondary);gap:var(--ds-space-2)}\n.ygd-studio-panel-placeholder-text{font-size:13px}\n.ygd-studio-panel-placeholder-sub{font-size:11px;opacity:.7}\n\n/* Bundle workspace two-pane body */\n.ygd-studio-workspace-body{flex:1;display:flex;min-height:0;overflow:hidden;margin:0 20px 18px;border:1px solid var(--ds-border);border-radius:10px;background:#fff}\n.ygd-studio-workspace [hidden]{display:none!important}\n.ygd-studio-file-tree-pane{width:240px;flex-shrink:0;background:var(--ds-surface);border-right:1px solid var(--ds-border);\n display:flex;flex-direction:column;overflow:hidden}\n.ygd-studio-file-tree-header{padding:var(--ds-space-2) var(--ds-space-3);font-size:11px;font-weight:600;\n color:var(--ds-text-secondary);border-bottom:1px solid var(--ds-border)}\n.ygd-studio-file-tree{flex:1;overflow-y:auto;padding:var(--ds-space-2) 0}\n.ygd-studio-tree-section{padding:var(--ds-space-2) var(--ds-space-3) var(--ds-space-1);font-size:11px;font-weight:600;\n color:var(--ds-text-secondary);text-transform:uppercase;letter-spacing:.03em}\n.ygd-studio-tree-node{display:flex;align-items:center;gap:var(--ds-space-2);width:100%;padding:var(--ds-space-1) var(--ds-space-3);\n font-size:13px;color:var(--ds-text);cursor:pointer;border:none;background:none;text-align:left;font-family:var(--ds-body-font);\n transition:background var(--ds-duration-fast)}\n.ygd-studio-tree-node:hover{background:var(--ds-background)}\n.ygd-studio-tree-node[aria-current=\"true\"]{background:var(--ds-primary-light);color:var(--ds-primary-dark)}\n.ygd-studio-tree-label{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}\n.ygd-studio-content-pane{flex:1;display:flex;flex-direction:column;min-width:0;overflow-y:auto;padding:var(--ds-space-4) var(--ds-space-5)}\n\n/* Diagnostics */\n.ygd-studio-diagnostics{margin:var(--ds-space-3) var(--ds-space-5) 0;padding:10px 14px;border-radius:var(--ds-radius);\n border:1px solid #FECACA;background:#FEF2F2;color:var(--ds-error);list-style:none;font-size:13px}\n\n/* Explicit sample-only authoring. Runtime Panel descendants keep their own styles. */\n.ygd-studio-draft-layout{display:flex;flex:1;min-height:0;overflow:hidden;font-size:14px}\n.ygd-studio-draft-list{width:210px;flex-shrink:0;overflow:auto;border-right:1px solid var(--ds-border,#e5e7eb);padding:12px}\n.ygd-studio-draft-list>button{display:flex;flex-direction:column;gap:4px;width:100%;padding:10px;text-align:left;border:1px solid transparent;border-radius:6px;background:transparent;color:inherit;font:inherit;cursor:pointer}\n.ygd-studio-draft-list>button[aria-current]{background:var(--ds-bg-hover,#f1f5f9);border-color:var(--ds-border,#e5e7eb)}\n.ygd-studio-draft-list small{opacity:.7;overflow-wrap:anywhere}\n.ygd-studio-draft-editor{display:flex;flex:1;flex-direction:column;min-width:0;min-height:0;overflow:auto}\n.ygd-studio-draft-toolbar{display:flex;align-items:center;flex-wrap:wrap;gap:8px;padding:12px;border-bottom:1px solid var(--ds-border,#e5e7eb)}\n.ygd-studio-draft-toolbar>span{font-size:12px;opacity:.7}\n.ygd-studio-draft-toolbar>button{font:inherit;padding:6px 10px;border:1px solid var(--ds-border,#d1d5db);border-radius:6px;background:var(--ds-bg,#fff);color:inherit;cursor:pointer}\n.ygd-studio-draft-toolbar>button:disabled{opacity:.45;cursor:default}\n.ygd-studio-draft-sources{padding:12px}\n.ygd-studio-draft-sources summary{cursor:pointer}\n.ygd-studio-draft-sources fieldset{display:grid;grid-template-columns:1fr 1fr;gap:12px;border:0;padding:12px 0}\n.ygd-studio-draft-sources label{display:flex;flex-direction:column;gap:6px;min-width:0}\n.ygd-studio-draft-sources textarea{height:220px;resize:vertical;font:12px/1.5 monospace;border:1px solid var(--ds-border,#d1d5db);border-radius:6px;padding:8px;color:inherit;background:var(--ds-bg,#fff)}\n.ygd-studio-draft-preview{flex:1;min-height:320px;position:relative;overflow:auto;padding:12px}\n/* Archive stages form one scrolling document, not competing flex editors. */\n.ygd-studio-archive .ygd-studio-content-body{display:block}\n.ygd-studio-archive .ygd-studio-draft-editor{flex:none;overflow:visible;gap:12px;padding:16px 0}\n.ygd-studio-archive .ygd-studio-draft-editor>button{align-self:flex-start}\n.ygd-studio-archive h2,.ygd-studio-archive h3{font-size:14px;font-weight:600;margin:0}\n.ygd-studio-archive p{margin:0;overflow-wrap:anywhere}\n.ygd-studio-archive details{margin:12px 0}\n.ygd-studio-archive summary{cursor:pointer}\n.ygd-studio-archive .ygd-studio-draft-list{width:auto;border-right:0}\n.ygd-studio-archive fieldset.ygd-studio-draft-sources{display:grid;gap:12px;border:0;padding:0}\n.ygd-studio-archive .ygd-studio-draft-sources input{width:100%}\n/* Approved compact Studio composition; neutral controls measured on yugoo.cn. */\n.ygd-studio-content-header:has(.ygd-studio-breadcrumb){display:block}\n.ygd-studio-content-header .ygd-studio-breadcrumb{margin-bottom:10px}\n.ygd-studio-content-header>div:has(>.ygd-studio-header-title-group){display:flex;align-items:center;gap:8px 12px;flex-wrap:wrap;width:100%;min-width:0}\n.ygd-studio-content-header>div:has(>.ygd-studio-hero-actions)>.ygd-studio-header-title-group{flex:1 1 200px}\n.ygd-studio-hero-actions{display:flex;align-items:center;gap:6px;flex-shrink:0;flex-wrap:wrap;max-width:100%}\n.ygd-studio-hero-actions .ygd-studio-trial{position:relative}\n.ygd-studio-hero-actions .ygd-studio-trial:has([aria-expanded=\"true\"]){width:auto}\n.ygd-studio-hero-actions .ygd-studio-trial>.ygd-studio-summary-card{position:absolute;right:0;top:100%;z-index:20;width:min(480px,75vw);max-height:65vh;overflow:auto;box-shadow:0 8px 30px #0002}\n.ygd-studio-content-header .ygd-studio-btn-primary,.ygd-studio-content-header .ygd-studio-btn-link{margin-top:8px;margin-right:6px}\n.ygd-studio-file-tree-pane{width:230px;background:#f8f9fb}\n.ygd-studio-file-tree{padding:8px 0}\n.ygd-studio-tree-node,.ygd-studio-tree-folder>summary{height:28px;min-height:28px;display:flex;align-items:center;gap:6px;padding:0 10px;font:400 13px/28px var(--ds-body-font);color:#404957;white-space:nowrap;cursor:pointer}\n.ygd-studio-tree-folder>summary{list-style:none}\n.ygd-studio-tree-folder>summary::-webkit-details-marker{display:none}\n.ygd-studio-tree-folder>summary:hover,.ygd-studio-tree-node:hover{background:#eef0f4}\n.ygd-studio-tree-children{margin-left:14px;padding-left:8px;border-left:1px solid #e3e6ec}\n.ygd-studio-chevron{width:10px;flex:0 0 10px;color:#8793a6;font-size:16px}\n.ygd-studio-tree-folder[open]>summary .ygd-studio-chevron{transform:rotate(90deg)}\n.ygd-studio-file-icon{width:16px;height:16px;flex:0 0 16px;fill:none;stroke:currentColor;stroke-width:1.3;stroke-linecap:round;stroke-linejoin:round;color:#8793a6}\n.ygd-studio-file-icon.markdown{color:#698aaf}.ygd-studio-file-icon.config{color:#a98e4e}\n.ygd-studio-tree-node[aria-current=\"true\"]{background:var(--ds-primary-light);box-shadow:inset 2px 0 var(--ds-primary);color:var(--ds-primary-dark)}\n.ygd-studio-file-path{font:12px var(--ds-body-font);color:var(--ds-text-secondary);padding-bottom:12px;overflow-wrap:anywhere}\n.ygd-studio-content-pane{padding:14px 20px;background:#fff}\n.ygd-studio-mindset-layout{display:grid;grid-template-columns:minmax(0,1fr) 205px;gap:14px;min-height:0;flex:1}\n.ygd-studio-document-card{display:flex;flex-direction:column;min-height:0;min-width:0;border:1px solid var(--ds-border);border-radius:10px;background:#fff;overflow:hidden}\n.ygd-studio-document-card>.ygd-studio-doc-toolbar{padding:9px 14px;border-bottom:1px solid var(--ds-border);margin:0}\n.ygd-studio-document-name{font:500 13px var(--ds-mono-font);margin-right:auto}\n.ygd-studio-file-heading{display:flex;align-items:baseline;flex-wrap:wrap;gap:4px 10px;flex:1;min-width:180px}\n.ygd-studio-file-heading>.ygd-studio-document-name{margin-right:0;overflow-wrap:anywhere}\n.ygd-studio-file-purpose{font:400 12px/1.6 var(--ds-body-font);color:var(--ds-text-secondary);flex:1;min-width:140px;overflow-wrap:anywhere}\n.ygd-studio-file-info{flex:0 0 224px;box-sizing:border-box;min-height:0;overflow:auto;border-left:1px solid var(--ds-border);padding:16px;background:var(--ds-surface,#fafafa)}\n.ygd-studio-file-info h3{margin:0 0 8px;font:500 13px/1.5 var(--ds-body-font)}\n.ygd-studio-file-info .ygd-studio-markdown{font:400 12px/1.7 var(--ds-body-font);color:var(--ds-text-secondary);max-width:none}\n.ygd-studio-file-info .ygd-studio-markdown p{margin:0 0 8px}\n.ygd-studio-file-info .ygd-studio-markdown ul{padding-left:16px;margin:0}\n.ygd-studio-card-meta{font-size:11px;line-height:1.6;color:var(--ds-text-secondary);margin:0 0 12px}\n@media(max-width:1100px){.ygd-studio-file-info{flex-basis:180px;padding:12px}}\n@media(max-width:800px){\n .ygd-studio-files-layout{display:grid;grid-template-columns:150px minmax(0,1fr);grid-template-rows:minmax(0,1fr) auto}\n .ygd-studio-files-layout>.ygd-studio-file-tree-pane{grid-row:1 / 3;width:150px}\n .ygd-studio-files-layout>.ygd-studio-content-pane{grid-column:2;grid-row:1;min-height:0}\n .ygd-studio-files-layout>.ygd-studio-file-info{grid-column:2;grid-row:2;border-left:0;border-top:1px solid var(--ds-border);max-height:140px}\n}\n.ygd-studio-doc-meta{margin-left:0}\n.ygd-studio-kitmark{width:43px;height:43px;border-radius:11px;background:#ededed;color:#575757;display:inline-flex;align-items:center;justify-content:center;flex-shrink:0}\n.ygd-studio-kitmark svg{width:24px;height:24px}\n.ygd-studio-btn-secondary{border:1px solid var(--ds-border);border-radius:8px;padding:6px 11px;background:white;font:500 13px var(--ds-body-font);color:var(--ds-text);cursor:pointer;white-space:nowrap}\n.ygd-studio-btn-secondary:disabled{color:#aaa;cursor:not-allowed;background:#fafafa}\n.ygd-studio-instance-actions{display:flex;gap:6px}\n.ygd-studio-modal{width:min(640px,90vw);max-height:82vh;overflow:auto;margin:auto;padding:22px;border:1px solid var(--ds-border);border-radius:12px;background:#fff;color:var(--ds-text);font:14px/1.6 var(--ds-body-font)}\n.ygd-studio-modal::backdrop{background:#0005}\n.ygd-studio-modal>header{display:flex;align-items:center;justify-content:space-between;margin-bottom:14px;gap:12px}\n.ygd-studio-modal h2{font-size:18px}.ygd-studio-modal>header button{border:0;background:none;font:24px var(--ds-body-font);cursor:pointer;color:#6d6d6d}\n.ygd-studio-modal>p{margin:10px 0;color:var(--ds-text-secondary);font-size:13px}\n.ygd-studio-modal .ygd-studio-code-frame{min-height:0;max-height:60vh}.ygd-studio-modal .ygd-studio-code-scroll{max-height:60vh}\n.ygd-studio-topbar{gap:12px}.ygd-studio-topbar>span{display:flex;align-items:center;gap:8px}\n.ygd-studio-content-header .ygd-studio-breadcrumb{display:none}\n.ygd-studio-filter-row{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:12px;font-size:12px;color:var(--ds-text-secondary)}\n.ygd-studio-filter-row input{max-width:280px}\n.ygd-studio-bundles-list[aria-label=\"Mounted Bundles\"]{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:12px}\n.ygd-studio-bundles-list[aria-label=\"Mounted Bundles\"] .ygd-studio-bundle-item{display:flex;flex-direction:column;align-items:stretch;padding:15px}\n.ygd-studio-bundles-list[aria-label=\"Mounted Bundles\"] .ygd-studio-kitmark{width:28px;height:28px;border-radius:7px;margin-bottom:8px}\n.ygd-studio-bundles-list[aria-label=\"Mounted Bundles\"] .ygd-studio-kitmark svg{width:18px;height:18px}\n.ygd-studio-bundles-list[aria-label=\"Mounted Bundles\"] .ygd-studio-bundle-actions{border-top:1px solid var(--ds-border);padding-top:10px}\n.ygd-studio-bundles-list[aria-label=\"Mounted Bundles\"] .ygd-studio-bundle-id{display:none}\n.ygd-studio-mindset-document{padding:18px 24px;overflow:auto;flex:1;min-height:0}\n.ygd-studio-mindset-info{padding:16px;border:1px solid var(--ds-border);border-radius:10px;background:#fff;align-self:start;max-height:100%;overflow:auto}\n.ygd-studio-mindset-info h3{font-size:14px}.ygd-studio-mindset-info p{font-size:12px;color:var(--ds-text-secondary);margin:8px 0 12px}\n.ygd-studio-toc{margin-top:13px;padding-top:12px;border-top:1px solid var(--ds-border)}\n.ygd-studio-toc button{display:block;width:100%;text-align:left;border:0;background:none;padding:4px 0;font:12px/1.6 var(--ds-body-font);color:var(--ds-text-secondary);cursor:pointer;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}\n.ygd-studio-installed-preview{display:flex;flex-direction:column;margin:0 20px 18px;min-height:0;flex:1;overflow:auto;border:1px solid var(--ds-border);border-radius:10px;background:#fff;padding:0}\n.ygd-studio-preview-toolbar{display:flex;gap:12px;align-items:center;justify-content:space-between;flex-wrap:wrap;font-size:12px;padding:6px 12px;border-bottom:1px solid var(--ds-border);color:var(--ds-text-secondary)}\n.ygd-studio-preview-actions{display:flex;gap:8px;align-items:center}\n.ygd-studio-preview-actions button{height:30px;min-height:30px;padding:0 10px;font-size:12px;line-height:1;border-radius:8px;display:inline-flex;align-items:center;justify-content:center}\n.ygd-studio-preview-toolbar strong{color:var(--ds-text)}\n.ygd-studio-preview-sample{margin-top:16px;font-size:12px}\n.ygd-studio-preview-sample summary{cursor:pointer;padding:8px 0}\n.ygd-studio-preview-sample textarea{display:block;width:100%;padding:12px;border:1px solid var(--ds-border);border-radius:8px;font:13px/1.6 var(--ds-mono-font);margin-bottom:8px}\n.ygd-studio-mounts-inspector{margin:0 20px 14px;padding:14px;border:1px solid var(--ds-border);border-radius:10px;background:#fff;max-height:240px;overflow:auto}\n.ygd-studio-mounts-inspector p{margin:8px 0;font-size:13px}\n.ygd-studio-trial{display:inline-flex;vertical-align:middle;margin:0}\n.ygd-studio-hero-actions .ygd-studio-trial>button{height:32px;min-height:32px;margin:0;padding:0 12px;line-height:1;display:inline-flex;align-items:center;justify-content:center;font-size:13px}\n.ygd-studio-installed-status{font-size:12px;line-height:20px;color:var(--ds-text-secondary);white-space:nowrap}\n.ygd-studio-instance-menu{position:relative;display:inline-block}\n.ygd-studio-instance-menu>summary{display:flex;align-items:center;justify-content:center;list-style:none;cursor:pointer;width:32px;height:32px;border:1px solid var(--ds-border);border-radius:8px;background:#fff;font-weight:600}\n.ygd-studio-instance-menu>summary::-webkit-details-marker{display:none}\n.ygd-studio-instance-menu>div{position:absolute;right:0;top:100%;z-index:20;min-width:160px;padding:4px;background:#fff;border:1px solid var(--ds-border);border-radius:8px;box-shadow:0 4px 16px #00000012}\n.ygd-studio-instance-menu>div>button{display:block;width:100%;padding:8px;border:0;background:none;text-align:left;font:inherit;cursor:pointer;border-radius:4px;white-space:nowrap}\n.ygd-studio-instance-menu>div>button:hover{background:var(--ds-primary-light)}\n.ygd-studio-trial select{max-width:100%;height:32px;border:1px solid var(--ds-border);border-radius:8px;background:#fff;font:inherit}\n.ygd-studio-workspace button:focus-visible,.ygd-studio-workspace summary:focus-visible{outline:2px solid var(--ds-primary);outline-offset:2px}\n/* Responsive */\n/* Demo geometry, Yugoo brand tokens: one hero, one document toolbar, one body. */\n.ygd-studio-content-header .ygd-studio-btn-primary,.ygd-studio-content-header .ygd-studio-btn-link{margin:0}\n.ygd-studio-content-header .ygd-studio-catalog-link{display:inline-flex;align-items:center;gap:6px;min-height:32px;max-width:100%;margin:0 0 0 auto;color:var(--ds-primary-dark);text-decoration:none;overflow-wrap:anywhere}\n.ygd-studio-catalog-link svg{flex-shrink:0}\n.ygd-studio-catalog-link:focus-visible{outline:2px solid var(--ds-primary);outline-offset:2px}\n.ygd-studio-sidebar-nav{padding:0}\n.ygd-studio-sidebar-item{display:flex;align-items:center;gap:10px}\n.ygd-studio-sidebar-item .ygd-studio-kitmark{width:18px;height:18px;background:none;color:inherit;border-radius:0}\n.ygd-studio-sidebar-item .ygd-studio-kitmark svg{width:18px;height:18px}\n.ygd-studio-kitmark{background:var(--ds-primary-light);color:var(--ds-primary-dark)}\n.ygd-studio-content-pane{display:flex;flex-direction:column;padding:0;overflow:hidden}\n.ygd-studio-content-pane>.ygd-studio-doc-toolbar{margin:0;padding:9px 14px;border-bottom:1px solid var(--ds-border)}\n.ygd-studio-document-body{flex:1;min-height:0;overflow:auto;padding:18px 24px}\n.ygd-studio-document-body:has(>.ygd-studio-loading),.ygd-studio-live-pane-body:has(>.ygd-studio-loading){display:flex;flex-direction:column}\n.ygd-studio-file-metadata{margin-bottom:18px;border-radius:8px;background:var(--ds-primary-light,#f7f4fe);color:var(--ds-text-secondary)}\n.ygd-studio-file-metadata>summary{padding:12px;font-size:12px;cursor:pointer}\n.ygd-studio-file-metadata .ygd-studio-frontmatter{margin:0;border:0;background:transparent}\n.ygd-studio-document-body:has(>.ygd-studio-code-frame){padding:0}\n.ygd-studio-mindset-document .ygd-studio-markdown,.ygd-studio-document-body .ygd-studio-markdown{max-width:none}\n.ygd-studio-mindset-document .ygd-studio-markdown h1,.ygd-studio-document-body .ygd-studio-markdown h1{font-size:22px;margin-bottom:14px}\n.ygd-studio-mindset-document .ygd-studio-markdown h2,.ygd-studio-document-body .ygd-studio-markdown h2{font-size:17px;margin:23px 0 10px;padding-bottom:6px;border-bottom:1px solid var(--ds-border)}\n.ygd-studio-doc-toolbar{min-height:51px;gap:10px;flex-wrap:wrap}\n.ygd-studio-doc-toggle-group{border:0;background:var(--ds-background);padding:3px;gap:2px}\n.ygd-studio-doc-toggle{background:transparent;border-radius:5px;padding:4px 9px}\n.ygd-studio-doc-toggle+.ygd-studio-doc-toggle{border:0}\n.ygd-studio-doc-toggle[aria-pressed=\"true\"]{background:#fff;color:var(--ds-text);box-shadow:0 1px 3px #0001}\n.ygd-studio-doc-footer{display:flex;align-items:center;gap:12px;padding:7px 14px;border-top:1px solid var(--ds-border);font-size:11px;color:var(--ds-text-secondary);flex-shrink:0}\n.ygd-studio-doc-footer>span:last-child{margin-left:auto}\n.ygd-studio-doc-footer button{font-size:11px;padding:0}\n.ygd-studio-inline-actions{display:inline-flex;align-items:center;gap:6px;font-size:12px}\n.ygd-studio-inline-actions button{font:inherit;padding:7px 11px;border:0;border-radius:8px;background:var(--ds-primary-light);color:var(--ds-primary-dark);cursor:pointer}\n.ygd-studio-inline-actions button:disabled{opacity:.5;cursor:default}\n.ygd-studio-btn-soft{background:var(--ds-primary-light);color:var(--ds-primary-dark);border-color:transparent}\n.ygd-studio-mindset-info>.ygd-studio-btn-link{background:var(--ds-primary-light);color:var(--ds-primary-dark);padding:8px 11px}\n.ygd-studio-card-top{display:flex;align-items:center;justify-content:space-between;margin-bottom:8px}\n.ygd-studio-card-top .ygd-studio-kitmark{width:28px;height:28px;border-radius:7px}\n.ygd-studio-card-top .ygd-studio-kitmark svg{width:18px;height:18px}\n.ygd-studio-card-pill{font-size:11px;border:1px solid var(--ds-border);border-radius:5px;padding:2px 6px;color:var(--ds-text-secondary)}\n.ygd-studio-source-id{font:11px/1.6 var(--ds-mono-font);color:var(--ds-text-secondary);margin-top:2px}\n.ygd-studio-kit-card .ygd-studio-card-description{margin:8px 0 12px;min-height:0}\n.ygd-studio-kit-card-actions{display:flex;align-items:center;gap:5px;margin-top:auto}\n.ygd-studio-kit-card-actions button{font-size:12px;padding:5px 8px}\n.ygd-studio-filter-row>span{margin-right:auto}\n.ygd-studio-workplane-tab[aria-selected=\"true\"],.ygd-studio-workplane-tab[aria-pressed=\"true\"]{color:var(--ds-text)}\n.ygd-studio-mindset-inline{padding:8px 16px;border-bottom:1px solid var(--ds-border)}\n.ygd-studio-mindset-inline .ygd-studio-draft-toolbar{display:flex;align-items:center;gap:8px}\n.ygd-studio-mindset-inline button,.ygd-studio-mindset-recovery select{font:inherit;min-height:30px;border:1px solid var(--ds-border);border-radius:8px;padding:4px 10px;background:#fff;color:var(--ds-text)}\n.ygd-studio-mindset-inline button:last-of-type{background:var(--ds-primary);color:white;border-color:transparent}\n.ygd-studio-mindset-inline button:disabled{opacity:.5}\n.ygd-studio-mindset-inline textarea{display:block;box-sizing:border-box;width:100%;min-height:80px;padding:12px;font:13px/1.6 var(--ds-mono-font);border:1px solid var(--ds-border);border-radius:8px;resize:vertical}\n.ygd-studio-mindset-inline pre{white-space:pre-wrap;overflow-wrap:anywhere;max-height:180px;overflow:auto}\n.ygd-studio-mindset-inline .ygd-studio-draft-sources{display:grid;gap:10px}\n.ygd-studio-mindset-inline:has(textarea)+.ygd-studio-mindset-document{display:none}\n.ygd-studio-mindset-recovery{display:flex;align-items:center;gap:8px;padding:8px 16px;color:var(--ds-text-secondary);font-size:12px}\n@media(max-width:1023px){\n .ygd-studio-sidebar{position:fixed;left:-200px;top:0;bottom:0;z-index:var(--ds-z-drawer);\n transition:left var(--ds-duration-normal);width:200px}\n .ygd-studio-sidebar.open{left:0}\n .ygd-studio-menu-btn{display:flex;position:fixed;top:var(--ds-space-2);left:var(--ds-space-2);z-index:calc(var(--ds-z-drawer) + 1)}\n .ygd-studio-content-header{padding-left:48px}\n .ygd-studio-file-tree-pane{width:180px}\n .ygd-studio-summary-grid{grid-template-columns:minmax(0,1fr)}\n .ygd-studio-topbar{padding-left:48px}\n .ygd-studio-mindset-layout{grid-template-columns:minmax(0,1fr)}\n .ygd-studio-mindset-info{max-height:140px}.ygd-studio-toc{display:none}\n}\n.ygd-studio-hero-actions button{box-sizing:border-box;height:32px;min-height:32px;margin-top:0;padding:0 12px;display:inline-flex;align-items:center;justify-content:center;line-height:1}\n.ygd-studio-preview-slot,.ygd-studio-trial-slot{flex:1;min-height:0;min-width:0;display:flex;overflow:hidden;background:#fff}\n.ygd-studio-preview-slot[hidden],.ygd-studio-trial-slot[hidden],.ygd-studio-trial-workspace[hidden],.ygd-studio-trial-input[hidden]{display:none}\n.ygd-studio-trial-workspace{display:flex;flex-direction:column;flex:1;min-width:0;min-height:0;width:100%}\n.ygd-studio-trial-history{display:flex;align-items:center;gap:10px;padding:6px 10px;border-bottom:1px solid var(--ds-border);font-size:12px;flex-wrap:wrap}\n.ygd-studio-trial-history button,.ygd-studio-trial-history select{height:30px;box-sizing:border-box}\n.ygd-studio-trial-workarea{display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0,1fr);flex:1;min-height:0}\n.ygd-studio-trial-result{grid-column:2;grid-row:1;min-width:0;min-height:0;display:flex;flex-direction:column}.ygd-studio-trial-result iframe{width:100%;flex:1;min-height:0;border:0;background:#fff}.ygd-studio-trial-result-details{padding:6px 12px;border-top:1px solid var(--ds-border);font-size:12px;max-height:150px;overflow:auto}\n.ygd-studio-trial-input{grid-column:1;grid-row:1;display:flex;flex-direction:column;gap:12px;border-right:1px solid var(--ds-border);padding:12px;overflow:auto;min-width:0;min-height:0;font-size:12px}.ygd-studio-trial-input h3{font-size:13px;margin:0}.ygd-studio-trial-input textarea{width:100%;box-sizing:border-box;flex:1;min-height:120px;resize:none;padding:12px;margin:0;font:inherit;line-height:1.65;border:1px solid var(--ds-border);border-radius:8px}.ygd-studio-trial-input pre{white-space:pre-wrap;overflow-wrap:anywhere;font:inherit}\n.ygd-studio-trial-slot{margin:0;border:0;border-radius:0}\n.ygd-studio-trial-save{display:flex;align-items:center;justify-content:flex-end;flex-shrink:0;gap:8px;padding:10px 16px;border-top:1px solid var(--ds-border);background:#fff}\n.ygd-studio-trial-save .ygd-studio-trial-hint{margin:0 auto 0 0;font-size:12px;color:var(--ds-text-secondary)}\n.ygd-studio-trial-save button{height:32px;white-space:nowrap}\n.ygd-studio-trial-input-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:24px}\n.ygd-studio-trial-input .ygd-studio-trial-input-heading h3{margin:0}\n.ygd-studio-trial-status{font-size:11px;line-height:20px;padding:0 7px;border-radius:10px;background:var(--ds-background);color:var(--ds-text-secondary);white-space:nowrap}\n.ygd-studio-trial-status[data-state=\"waiting\"],.ygd-studio-trial-status[data-state=\"completed\"]{background:var(--ds-primary-light);color:var(--ds-primary)}\n.ygd-studio-trial-status[data-state=\"failed\"]{color:#b42318;background:#fff1ef}\n.ygd-studio-workspace button:disabled{opacity:.45;cursor:not-allowed}\n.ygd-studio-bundle-main .ygd-studio-content-header{padding:8px 16px}\n.ygd-studio-bundle-main .ygd-studio-hero-actions{margin:0}\n.ygd-studio-bundle-main .ygd-studio-workplane-bar{min-height:36px;padding:0 16px;margin:0}\n.ygd-studio-bundle-main .ygd-studio-installed-preview{position:relative;margin:0;flex:1;min-height:0;overflow:auto;padding:8px 16px}\n.ygd-studio-editor-heading{display:flex;align-items:center;gap:12px;padding:8px 12px;border-bottom:1px solid var(--ds-border);font-size:13px}\n.ygd-studio-editor-heading>span{margin-left:auto;color:var(--ds-text-secondary);font-size:12px}\n.ygd-studio-panel-split,.ygd-studio-trial-workarea.with-input{grid-template-columns:minmax(260px,32%) minmax(0,1fr)}\n.ygd-studio-panel-split{display:grid;grid-template-rows:minmax(0,1fr);flex:1;min-width:0;min-height:0;overflow:hidden}\n.ygd-studio-yaml-pane,.ygd-studio-live-pane{display:flex;flex-direction:column;min-width:0;min-height:0}\n.ygd-studio-yaml-pane{border-right:1px solid var(--ds-border)}\n.ygd-studio-yaml-pane>header,.ygd-studio-live-pane>header{display:flex;align-items:center;gap:10px;padding:6px 12px;border-bottom:1px solid var(--ds-border);min-height:34px;font-size:12px}\n.ygd-studio-yaml-pane>header>span,.ygd-studio-live-pane>header>span{color:var(--ds-text-secondary);font-size:11px}\n.ygd-studio-yaml-pane>header>button,.ygd-studio-live-pane>header>button{margin-left:auto;height:30px}\n.ygd-studio-yaml-pane>textarea{flex:1;min-height:0;resize:none;border:0;outline-offset:-2px;padding:12px;background:#fafafa;font:12px/1.65 ui-monospace,SFMono-Regular,Consolas,monospace;tab-size:2}\n.ygd-studio-live-pane-body{display:flex;flex-direction:column;flex:1;min-height:0;overflow:auto;padding:0}\n.ygd-studio-workspace .ygd-studio-trial-availability{padding:16px;max-width:400px;margin:auto;text-align:center;color:var(--ds-text-secondary);font-size:13px;line-height:1.6}\n.ygd-studio-trial-input>.ygd-studio-loading{flex:1}\n.ygd-studio-editor-errors{max-height:120px;overflow:auto;padding:0 12px;font-size:12px;color:#b42318}\n.ygd-studio-trial-columns{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:20px}\n.ygd-studio-trial-columns>section{min-width:0;padding:16px;border:1px solid var(--ds-border);border-radius:10px;font-size:13px}\n.ygd-studio-trial-columns h3{margin:0 0 12px;font-size:14px}.ygd-studio-trial-columns textarea{display:block;box-sizing:border-box;width:100%;margin:8px 0 12px;resize:vertical;font:inherit;line-height:1.6;padding:10px;border:1px solid var(--ds-border);border-radius:8px}\n.ygd-studio-trial-columns pre{white-space:pre-wrap;overflow-wrap:anywhere;font:inherit}.ygd-studio-trial-columns details{margin:12px 0}.ygd-studio-trial-hint{color:var(--ds-text-secondary);font-size:12px}\n@media(max-width:650px){.ygd-studio-trial-columns{grid-template-columns:minmax(0,1fr)}.ygd-studio-file-tree-pane{width:150px}.ygd-studio-content-pane{padding:12px}.ygd-studio-workspace-body{margin:0 12px 12px}}\n";
|
|
626
|
+
declare const STUDIO_WORKSPACE_CSS = "\n.ygd-studio-component-browser{display:flex;flex:1;min-width:0;min-height:0;border-top:1px solid var(--ds-border)}\n.ygd-studio-component-directory{width:240px;flex-shrink:0;display:flex;flex-direction:column;gap:12px;padding:12px;border-right:1px solid var(--ds-border);min-height:0}\n.ygd-studio-component-directory>.ygd-studio-search-input{width:100%;min-width:0}\n.ygd-studio-component-catalog-tabs{display:flex;gap:4px;background:var(--ds-surface);border:1px solid var(--ds-border);border-radius:8px;padding:3px}\n.ygd-studio-component-catalog-tabs button{flex:1;min-width:0;border:0;border-radius:5px;padding:6px 4px;font:inherit;font-size:12px;background:transparent;color:var(--ds-text-secondary);cursor:pointer}\n.ygd-studio-component-catalog-tabs button[aria-selected=true]{background:var(--ds-primary-light);color:var(--ds-primary-dark)}\n.ygd-studio-component-list{overflow:auto;min-height:0;flex:1}\n.ygd-studio-component-directory-group summary{font-size:14px;font-weight:500;padding:8px;cursor:pointer}\n.ygd-studio-component-directory-item{display:flex;flex-direction:column;align-items:flex-start;width:calc(100% - 24px);margin-left:24px;gap:3px;padding:8px;border:0;border-radius:8px;background:transparent;color:var(--ds-text);text-align:left;font:inherit;font-size:14px;overflow-wrap:anywhere;cursor:pointer}\n.ygd-studio-component-directory-item:hover{background:var(--ds-bg-hover,#f5f4f9)}\n.ygd-studio-component-directory-item[aria-current=page]{background:var(--ds-primary-light);color:var(--ds-primary)}\n.ygd-studio-components code{font-family:var(--ds-mono-font,'Consolas',ui-monospace,monospace)}\n.ygd-studio-component-list code{display:block;font-size:11px;color:var(--ds-text-secondary);margin-top:2px}\n.ygd-studio-component-tree.dsh-panel-workspace-tree{padding:0;min-width:0}\n.ygd-studio-component-tree .dsh-panel-workspace-tree-group{width:auto;padding:0;border:0}\n.ygd-studio-component-tree .dsh-panel-workspace-tree-body{display:grid;gap:4px}\n.ygd-studio-component-detail{display:flex;flex-direction:column;flex:1;min-width:0;min-height:0}\n.ygd-studio-component-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:16px 20px 12px}\n.ygd-studio-component-heading>div{display:flex;align-items:baseline;flex-wrap:wrap;gap:8px}\n.ygd-studio-component-heading h2{font-size:18px;line-height:24px;font-weight:500}\n.ygd-studio-component-heading code,.ygd-studio-component-support{font-size:12px;color:var(--ds-text-secondary);overflow-wrap:anywhere}\n.ygd-studio-component-toolbar{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:0 20px;border-bottom:1px solid var(--ds-border)}\n.ygd-studio-component-actions{display:flex;align-items:center;flex-wrap:wrap;gap:8px}\n.ygd-studio-component-library-version{font-family:var(--ds-body-font);font-size:12px;font-variant-numeric:tabular-nums;line-height:20px;padding:2px 8px;border-radius:6px;background:var(--ds-primary-light);color:var(--ds-text-secondary)}\n.ygd-studio-component-tabs{display:flex;gap:20px}\n.ygd-studio-component-tabs button{border:0;border-bottom:2px solid transparent;background:transparent;padding:10px 0;font:inherit;font-size:14px;color:var(--ds-text-secondary);cursor:pointer}\n.ygd-studio-component-tabs button[aria-selected=true]{border-color:var(--ds-primary);color:var(--ds-primary)}\n.ygd-studio-component-content{display:flex;flex-direction:column;flex:1;min-height:0;min-width:0;overflow:hidden}\n.ygd-studio-component-preview{flex:1;min-width:0;min-height:0;overflow:auto;display:flex;flex-direction:column;padding:16px;background:var(--ds-background)}\n.ygd-studio-component-stage{width:100%;min-width:0;border:1px solid var(--ds-border);border-radius:8px;background:var(--ds-surface)}\n.ygd-studio-component-preview-inline .ygd-studio-component-stage{max-width:880px;margin:0 auto;padding:16px}\n.ygd-studio-component-preview-navigation .ygd-studio-component-stage{max-width:360px;padding:12px;min-height:240px}\n.ygd-studio-component-preview-inline .dsh-design-panel,.ygd-studio-component-preview-navigation .dsh-design-panel{height:auto;min-height:0}\n.ygd-studio-component-preview-workspace{overflow:hidden}\n.ygd-studio-component-preview-workspace .ygd-studio-component-stage{display:flex;flex-direction:column;flex:1;min-height:0;overflow:hidden}\n.ygd-studio-component-preview-workspace .dsh-design-dock-panel-body{flex:1;min-height:0;overflow:hidden}\n.ygd-studio-component-preview-workspace .dsh-design-panel{height:100%;min-height:0}\n.ygd-studio-component-library-info{max-width:760px;padding:8px 20px 24px;overflow:auto;display:flex;flex-direction:column;gap:24px;font-size:14px;line-height:1.6}\n.ygd-studio-component-library-info dl{margin:0;border-top:1px solid var(--ds-border)}\n.ygd-studio-component-library-info dl>div{display:grid;grid-template-columns:112px minmax(0,1fr);gap:12px;padding:12px 0;border-bottom:1px solid var(--ds-border)}\n.ygd-studio-component-library-info dt{color:var(--ds-text-secondary)}\n.ygd-studio-component-library-info dd{margin:0;overflow-wrap:anywhere}\n.ygd-studio-component-library-info code{font-size:12px}\n.ygd-studio-component-library-note{color:var(--ds-text-secondary);font-size:12px}\n.ygd-studio-component-doc{padding:16px 20px;display:flex;flex-direction:column;gap:16px;overflow:auto;min-width:0;line-height:1.6;font-size:14px}\n.ygd-studio-component-doc pre{font-size:12px;line-height:1.65;white-space:pre-wrap;overflow-wrap:anywhere;background:var(--ds-bg-secondary,#f7f7f9);border:1px solid var(--ds-border);border-radius:8px;padding:12px;margin:0}\n.ygd-studio-component-doc h3{font-size:14px;font-weight:500}\n.ygd-studio-component-doc summary{cursor:pointer}\n.ygd-studio-component-feedback{padding:8px 20px;color:var(--ds-text-secondary);font-size:12px}\n.ygd-studio-component-feedback[role=alert]{color:var(--ds-danger,#bd3540)}\n.ygd-studio-component-unavailable{margin:auto;padding:24px;max-width:480px;display:flex;flex-direction:column;align-items:flex-start;gap:16px;font-size:14px;line-height:1.6}\n.ygd-studio-component-unavailable h3{font-size:16px;font-weight:500}\n@media(max-width:760px){.ygd-studio-component-directory{width:180px}.ygd-studio-component-heading{align-items:flex-start;flex-direction:column;padding:12px}.ygd-studio-component-toolbar{padding:0 12px 8px;flex-wrap:wrap}.ygd-studio-component-preview{padding:12px}.ygd-studio-component-library-info dl>div{grid-template-columns:1fr;gap:4px}}\n@media(max-width:480px){.ygd-studio-component-directory{width:140px;padding:8px}.ygd-studio-component-tabs{gap:12px}.ygd-studio-component-tabs button{font-size:12px}.ygd-studio-component-list button{font-size:12px}.ygd-studio-component-doc{padding:12px}}\n.ygd-studio-back{display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;width:28px;height:28px;padding:0;border:0;border-radius:6px;background:transparent;color:var(--ds-text-secondary);cursor:pointer}\n.ygd-studio-back:hover{background:var(--ds-primary-light);color:var(--ds-primary)}\n.ygd-studio-back:focus-visible{outline:2px solid var(--ds-primary);outline-offset:2px}\n.ygd-studio-header-title-group:has(>.ygd-studio-back){padding-left:0;flex-wrap:nowrap}\n.ygd-studio-header-title-group:has(>.ygd-studio-back)>.ygd-studio-kitmark{position:static;flex-shrink:0}\n.ygd-studio-loading{display:flex;align-items:center;justify-content:center;flex:1;min-height:96px;width:100%;align-self:stretch}\n.ygd-studio-spinner{position:relative;display:inline-block;overflow:hidden;width:180px;height:2px;background:var(--ds-primary-light,#e5f0ed)}\n.ygd-studio-spinner::before{content:'';position:absolute;inset:0 auto 0 0;width:34%;background:var(--ds-primary,#3f9e8b);animation:ygd-studio-progress 1.6s ease-in-out infinite}\n@keyframes ygd-studio-progress{0%{transform:translateX(-110%);opacity:.45}50%{opacity:1}100%{transform:translateX(310%);opacity:.45}}\n@media(prefers-reduced-motion:reduce){.ygd-studio-spinner::before{animation:none;width:100%;opacity:.8}}\n.ygd-studio-trial{margin-top:8px;font-size:14px}\n.ygd-studio-trial .ygd-studio-summary-card{display:grid;gap:8px;margin-top:8px;padding:12px;border:1px solid #e8e8e8;border-radius:8px;background:#fff;box-shadow:none}\n.ygd-studio-trial button{min-height:32px;padding:5px 10px;border:1px solid #e8e8e8;border-radius:8px;background:#f7f7f7;color:#272727;font:inherit;cursor:pointer;width:fit-content}\n.ygd-studio-trial button:disabled{opacity:.5;cursor:default}\n.ygd-studio-trial textarea{display:block;margin-top:6px;padding:8px;border:1px solid #dfdfdf;border-radius:8px;font:inherit;background:#fff;color:#272727;resize:vertical}\n.ygd-studio-trial small{color:#6d6d6d;overflow-wrap:anywhere}\n.ygd-studio-trial button:focus-visible,.ygd-studio-trial textarea:focus-visible{outline:2px solid var(--ds-primary);outline-offset:2px}\n.ygd-studio-workspace{\n --ds-primary:#7c5af6;--ds-primary-light:#f7f4fe;--ds-primary-dark:#6849d8;--ds-primary-active:#5032bc;\n --ds-secondary:#64748B;--ds-accent:#0EA5E9;\n --ds-background:#F7F7F7;--ds-surface:#FFFFFF;\n --ds-text:#272727;--ds-text-secondary:#6d6d6d;--ds-border:#E8E8E8;\n --ds-success:#059669;--ds-warning:#D97706;--ds-error:#DC2626;--ds-info:#0284C7;\n --ds-heading-font:'PingFang SC',-apple-system,BlinkMacSystemFont,'Segoe UI','Microsoft YaHei',sans-serif;\n --ds-body-font:'PingFang SC',-apple-system,BlinkMacSystemFont,'Segoe UI','Microsoft YaHei',sans-serif;\n --ds-mono-font:'JetBrains Mono','Fira Code','Consolas',monospace;\n --ds-base-font-size:14px;--ds-heading-weight:600;--ds-line-height:1.5;\n --ds-radius:8px;\n --ds-shadow:0 1px 3px rgba(0,0,0,.03);\n --ds-density-padding:12px;\n --ds-duration-fast:120ms;--ds-duration-normal:200ms;\n --ds-space-1:4px;--ds-space-2:8px;--ds-space-3:12px;--ds-space-4:16px;--ds-space-5:24px;--ds-space-6:32px;\n --ds-z-drawer:30;\n box-sizing:border-box;display:flex;flex-direction:column;width:100%;height:100%;min-height:24rem;\n background:var(--ds-background);color:var(--ds-text);\n font-family:var(--ds-body-font);font-size:var(--ds-base-font-size);line-height:var(--ds-line-height)}\n.ygd-studio-workspace *{box-sizing:border-box}\n.ygd-studio-workspace .ygd-studio-select{\n --ds-bg-white:var(--ds-surface);--ds-fill-5:var(--ds-border);--ds-border-default:var(--ds-border);\n --ds-text-primary:var(--ds-text);--ds-icon-outline-default:var(--ds-text-secondary);\n --ds-brand-light-bg-default:var(--ds-primary-light);--ds-brand-text-primary:var(--ds-primary-dark);\n --ds-radius-4:var(--ds-radius);--ygd-panel-control-focus:var(--ds-primary);\n display:inline-flex;align-items:center;justify-content:space-between;gap:8px;min-width:0;max-width:100%;height:32px;\n padding:4px 10px;border:1px solid var(--ds-border);border-radius:var(--ds-radius);background:var(--ds-surface);color:var(--ds-text);font:inherit;line-height:20px;text-align:start;cursor:pointer}\n.ygd-studio-select:focus-visible{outline:2px solid var(--ds-primary);outline-offset:2px}\n.ygd-studio-select:disabled{cursor:not-allowed;opacity:.6}\nbutton.ygd-studio-select>span:first-child{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}\nbutton.ygd-studio-select>span:last-child{display:flex;flex:none;align-items:center;color:var(--ds-text-secondary)}\n.ygd-studio-workspace h1,.ygd-studio-workspace h2,.ygd-studio-workspace h3,.ygd-studio-workspace h4,.ygd-studio-workspace p,.ygd-studio-workspace ul,.ygd-studio-workspace ol{margin:0}\n\n/* Narrow-viewport drawer toggle; positioned by the responsive block below */\n.ygd-studio-menu-btn{display:none;align-items:center;justify-content:center;width:28px;height:28px;border:1px solid var(--ds-border);\n background:var(--ds-surface);cursor:pointer;color:var(--ds-text-secondary);font-size:16px;border-radius:var(--ds-radius);\n box-shadow:var(--ds-shadow)}\n.ygd-studio-menu-btn:hover{background:var(--ds-background);color:var(--ds-text)}\n\n/* Shell */\n.ygd-studio-body{display:flex;flex:1;min-height:0}\n.ygd-studio-sidebar{width:176px;padding:20px 12px 12px;flex-shrink:0;background:var(--ds-background);border-right:1px solid var(--ds-border);\n display:flex;flex-direction:column;overflow-y:auto}\n.ygd-studio-sidebar-logo{padding:0 6px 24px;font-family:var(--ds-heading-font);\n font-weight:var(--ds-heading-weight);font-size:18px;color:var(--ds-text);letter-spacing:-.6px;white-space:nowrap}\n.ygd-studio-sidebar-nav{padding:var(--ds-space-2) 0}\n.ygd-studio-sidebar-item{display:block;width:100%;padding:8px 10px;margin:2px 0;min-height:36px;border-radius:8px;font-size:14px;\n color:var(--ds-text-secondary);cursor:pointer;border:none;background:none;text-align:left;font-family:var(--ds-body-font);\n transition:color var(--ds-duration-fast),background var(--ds-duration-fast)}\n.ygd-studio-sidebar-item:hover{color:var(--ds-text);background:var(--ds-background)}\n.ygd-studio-sidebar-item[aria-current=\"page\"]{color:var(--ds-primary-dark);background:var(--ds-primary-light);font-weight:500}\n.ygd-studio-stage{display:flex;flex:1;flex-direction:column;min-width:0;min-height:0}\n.ygd-studio-topbar{height:46px;flex-shrink:0;display:flex;align-items:center;justify-content:space-between;padding:0 20px;border-bottom:1px solid var(--ds-border);background:#fff;font-size:12px;color:var(--ds-text-secondary)}\n.ygd-studio-topbar span span{padding:0 10px;color:#b2b2b2}\n.ygd-studio-topbar-actions{display:flex;align-items:center;gap:12px}\n.ygd-studio-language{display:flex;align-items:center;padding:2px;border:1px solid var(--ds-border);border-radius:var(--ds-radius);background:var(--ds-background)}\n.ygd-studio-sidebar-footer{margin-top:auto;padding:16px 0 0;display:flex;flex-direction:column;align-items:flex-start;gap:12px}\n.ygd-studio-sidebar-utilities{width:100%}\n.ygd-studio-sidebar-footer>.ygd-studio-language{margin-left:4px}\n.ygd-studio-language button{height:30px;min-width:38px;padding:0 8px;border:0;border-radius:4px;background:transparent;color:var(--ds-text-secondary);font:400 14px/20px var(--ds-body-font);cursor:pointer}\n.ygd-studio-language button[aria-pressed=\"true\"]{background:var(--ds-primary-light);color:var(--ds-primary-dark);font-weight:500}\n.ygd-studio-language button:focus-visible{outline:2px solid var(--ds-primary);outline-offset:1px}\n.ygd-studio-main{flex:1;display:flex;flex-direction:column;min-width:0;overflow:hidden}\n\n/* Content header */\n.ygd-studio-content-header{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px 12px;\n min-height:48px;padding:8px 20px;background:transparent;border-bottom:0;flex-shrink:0}\n.ygd-studio-header-title-group{display:flex;align-items:center;gap:var(--ds-space-2);flex-wrap:nowrap;min-height:32px;min-width:0}\n.ygd-studio-header-title-group>.ygd-studio-kitmark{position:static;width:32px;height:32px;border-radius:8px}\n.ygd-studio-header-title-group>.ygd-studio-kitmark svg{width:20px;height:20px}\n.ygd-studio-header-title-group>.ygd-studio-search-input{height:32px;min-height:32px;min-width:0}\n.ygd-studio-page-title{font-family:var(--ds-heading-font);font-weight:500;font-size:18px;line-height:24px;color:var(--ds-text);letter-spacing:-.5px;min-width:0;overflow-wrap:anywhere}\n.ygd-studio-subtitle{font-size:12px;color:var(--ds-text-secondary);margin:0}\n.ygd-studio-context-label{display:none}\n.ygd-studio-version-badge{font-size:11px;padding:2px 8px;border-radius:var(--ds-radius);background:var(--ds-background);\n border:1px solid var(--ds-border);color:var(--ds-text-secondary);white-space:nowrap}\n.ygd-studio-readonly-badge{font-size:11px;padding:2px 8px;border-radius:var(--ds-radius);background:var(--ds-background);\n border:1px solid var(--ds-border);color:var(--ds-text-secondary);white-space:nowrap;font-weight:500}\n.ygd-studio-mounted-ref{font-size:11px;color:var(--ds-text-secondary);display:flex;align-items:center;gap:var(--ds-space-1)}\n.ygd-studio-mounted-ref strong{color:var(--ds-text);font-weight:500}\n.ygd-studio-breadcrumb{display:flex;align-items:center;gap:var(--ds-space-2);font-size:12px;color:var(--ds-text-secondary)}\n.ygd-studio-breadcrumb-sep{color:var(--ds-border)}\n.ygd-studio-breadcrumb-current{color:var(--ds-text);font-weight:500}\n.ygd-studio-breadcrumb-button{border:none;background:none;padding:0;font:inherit;color:inherit;cursor:pointer}\n.ygd-studio-breadcrumb-button:hover{color:var(--ds-primary)}\n\n/* Workplane tabs */\n.ygd-studio-workplane-bar{display:flex;gap:23px;border-bottom:1px solid var(--ds-border);background:transparent;\n margin:0 20px 14px;padding:0;flex-shrink:0;flex-wrap:wrap}\n.ygd-studio-workplane-tab{padding:0 2px 9px;font-size:13px;font-weight:500;\n color:var(--ds-text-secondary);cursor:pointer;border:none;background:none;border-bottom:2px solid transparent;\n font-family:var(--ds-body-font);transition:color var(--ds-duration-fast),border-color var(--ds-duration-fast)}\n.ygd-studio-workplane-tab:hover{color:var(--ds-text)}\n.ygd-studio-workplane-tab[aria-selected=\"true\"],.ygd-studio-workplane-tab[aria-pressed=\"true\"]{color:var(--ds-primary);border-bottom-color:var(--ds-primary)}\n\n/* Content body */\n.ygd-studio-content-body{flex:1;min-height:0;overflow-y:auto;padding:0 20px 18px;display:flex;flex-direction:column}\n/* File workspaces own their shared outer margins; do not add a second Kit inset. */\n.ygd-studio-kit-files-body{padding:0;overflow:hidden}\n\n/* Bundle search */\n.ygd-studio-search{margin-bottom:var(--ds-space-4);max-width:400px}\n.ygd-studio-search-input{width:100%;height:34px;min-height:34px;margin:0;padding:0 10px;font-size:13px;\n font-family:var(--ds-body-font);color:var(--ds-text);background:var(--ds-surface);\n border:1px solid var(--ds-border);border-radius:var(--ds-radius);outline:none;\n transition:border-color var(--ds-duration-fast)}\n.ygd-studio-search-input:focus{border-color:var(--ds-primary)}\n.ygd-studio-search-input::placeholder{color:var(--ds-text-secondary)}\n\n/* Shared Kit / Bundle catalog cards */\n.ygd-studio-kits-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:12px}\n.ygd-studio-kit-card{background:var(--ds-surface);border:1px solid var(--ds-border);border-radius:var(--ds-radius);\n padding:15px;display:flex;flex-direction:column;gap:0;min-width:0;text-align:left;font:inherit;color:inherit;\n cursor:pointer;transition:box-shadow var(--ds-duration-fast)}\n.ygd-studio-kit-card:hover{box-shadow:var(--ds-shadow)}\n.ygd-studio-kit-card-header{display:flex;align-items:flex-start;justify-content:space-between;gap:var(--ds-space-2)}\n.ygd-studio-kit-card-name{font-family:var(--ds-heading-font);font-weight:var(--ds-heading-weight);font-size:15px;color:var(--ds-text)}\n.ygd-studio-kit-card-meta{display:flex;flex-direction:column;gap:var(--ds-space-1)}\n.ygd-studio-kit-card-meta-row{font-size:12px;color:var(--ds-text-secondary);display:flex;align-items:center;gap:var(--ds-space-2)}\n.ygd-studio-meta-label{color:var(--ds-text-secondary);min-width:80px}\n.ygd-studio-meta-value{color:var(--ds-text)}\n.ygd-studio-kit-card-actions{margin-top:var(--ds-space-1);padding-top:var(--ds-space-3);border-top:1px solid var(--ds-border)}\n.ygd-studio-btn-primary{display:inline-flex;align-items:center;gap:var(--ds-space-2);padding:var(--ds-space-2) var(--ds-space-3);\n font-size:12px;font-weight:500;font-family:var(--ds-body-font);color:#fff;background:var(--ds-primary);border:none;\n border-radius:var(--ds-radius);cursor:pointer;transition:background var(--ds-duration-fast)}\n.ygd-studio-btn-primary:hover{background:var(--ds-primary-dark)}\n.ygd-studio-btn-primary:active{background:var(--ds-primary-active)}\n.ygd-studio-trial button.ygd-studio-btn-primary{background:var(--ds-primary);color:#fff;border-color:transparent}\n.ygd-studio-trial button.ygd-studio-btn-primary:hover{background:var(--ds-primary-dark)}\n.ygd-studio-trial button.ygd-studio-btn-primary:active{background:var(--ds-primary-active)}\n.ygd-studio-btn-link{font-size:12px;color:var(--ds-primary);cursor:pointer;border:none;background:none;\n font-family:var(--ds-body-font);padding:var(--ds-space-1) var(--ds-space-2);border-radius:var(--ds-radius);\n transition:background var(--ds-duration-fast)}\n.ygd-studio-btn-link:hover{background:var(--ds-background)}\n\n/* Empty state */\n.ygd-studio-empty{display:flex;flex-direction:column;align-items:center;justify-content:center;\n padding:var(--ds-space-6);text-align:center;color:var(--ds-text-secondary);font-size:14px}\n\n/* Bundle items */\n.ygd-studio-bundles-list{display:flex;flex-direction:column;gap:var(--ds-space-3)}\n.ygd-studio-bundle-item{display:flex;align-items:center;justify-content:space-between;gap:var(--ds-space-3);\n background:var(--ds-surface);border:1px solid var(--ds-border);border-radius:var(--ds-radius);\n padding:var(--ds-space-3) var(--ds-space-4);transition:box-shadow var(--ds-duration-fast)}\n.ygd-studio-bundle-item:hover{box-shadow:var(--ds-shadow)}\n.ygd-studio-bundle-info{display:flex;flex-direction:column;gap:var(--ds-space-1);min-width:0;flex:1}\n.ygd-studio-bundle-name-row{display:flex;align-items:center;gap:var(--ds-space-2);flex-wrap:wrap}\n.ygd-studio-bundle-name{font-weight:500;font-size:14px;color:var(--ds-text)}\n.ygd-studio-bundle-id{font-family:var(--ds-mono-font);font-size:11px;color:var(--ds-text-secondary)}\n.ygd-studio-bundle-purpose{font-size:12px;color:var(--ds-text-secondary)}\n.ygd-studio-bundle-item-card{align-items:flex-start}\n.ygd-studio-card-description{font-size:12px;line-height:1.6;color:var(--ds-text-secondary);display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}\n.ygd-studio-card-description .ygd-studio-markdown{max-width:none;font-size:12px;line-height:1.6;color:var(--ds-text-secondary)}\n.ygd-studio-card-description .ygd-studio-markdown p,\n.ygd-studio-card-description .ygd-studio-markdown ul,\n.ygd-studio-card-description .ygd-studio-markdown ol{margin-bottom:var(--ds-space-1)}\n.ygd-studio-card-description .ygd-studio-markdown ul,\n.ygd-studio-card-description .ygd-studio-markdown ol{padding-left:var(--ds-space-4)}\n.ygd-studio-card-description .ygd-studio-markdown li{margin-bottom:2px}\n.ygd-studio-card-description .ygd-studio-markdown strong{color:var(--ds-text);font-weight:600}\n.ygd-studio-bundle-actions{flex-shrink:0}\n\n/* Document toolbar (rich/source toggle) */\n.ygd-studio-doc-toolbar{display:flex;align-items:center;gap:var(--ds-space-2);margin-bottom:var(--ds-space-3);flex-shrink:0}\n.ygd-studio-doc-toggle-group{display:inline-flex;border:1px solid var(--ds-border);border-radius:var(--ds-radius);\n overflow:hidden;background:var(--ds-surface)}\n.ygd-studio-doc-toggle{padding:var(--ds-space-1) var(--ds-space-3);font-size:12px;line-height:18px;border:none;\n background:var(--ds-surface);color:var(--ds-text-secondary);cursor:pointer;font-family:var(--ds-body-font);\n transition:color var(--ds-duration-fast),background var(--ds-duration-fast)}\n.ygd-studio-doc-toggle+.ygd-studio-doc-toggle{border-left:1px solid var(--ds-border)}\n.ygd-studio-doc-toggle:hover{color:var(--ds-text);background:var(--ds-background)}\n.ygd-studio-doc-toggle[aria-pressed=\"true\"]{background:var(--ds-primary);color:#fff}\n.ygd-studio-doc-meta{margin-left:auto;font-size:11px;color:var(--ds-text-secondary);font-family:var(--ds-mono-font)}\n\n/* Frontmatter + rich markdown */\n.ygd-studio-frontmatter{background:var(--ds-background);border:1px solid var(--ds-border);border-radius:var(--ds-radius);\n padding:var(--ds-space-3) var(--ds-space-4);margin-bottom:var(--ds-space-4);font-family:var(--ds-mono-font);\n font-size:12px;line-height:1.6;color:var(--ds-text-secondary);white-space:pre-wrap;word-break:break-word}\n.ygd-studio-markdown{max-width:800px;font-size:var(--ds-base-font-size);line-height:1.7;color:var(--ds-text)}\n.ygd-studio-markdown h1{font-family:var(--ds-heading-font);font-weight:var(--ds-heading-weight);font-size:20px;margin-bottom:var(--ds-space-3)}\n.ygd-studio-markdown h2{font-family:var(--ds-heading-font);font-weight:var(--ds-heading-weight);font-size:16px;margin-top:var(--ds-space-5);margin-bottom:var(--ds-space-2)}\n.ygd-studio-markdown h3,.ygd-studio-markdown h4{font-family:var(--ds-heading-font);font-weight:var(--ds-heading-weight);font-size:14px;margin-top:var(--ds-space-4);margin-bottom:var(--ds-space-2)}\n.ygd-studio-markdown p{margin-bottom:var(--ds-space-3)}\n.ygd-studio-markdown ul,.ygd-studio-markdown ol{margin-bottom:var(--ds-space-3);padding-left:var(--ds-space-5)}\n.ygd-studio-markdown li{margin-bottom:var(--ds-space-1)}\n.ygd-studio-markdown code{font-family:var(--ds-mono-font);font-size:12px;background:var(--ds-background);padding:1px 4px;border-radius:3px;color:var(--ds-text)}\n.ygd-studio-markdown pre{background:var(--ds-background);border:1px solid var(--ds-border);border-radius:var(--ds-radius);\n padding:var(--ds-space-3);margin-bottom:var(--ds-space-4);font-family:var(--ds-mono-font);font-size:12px;line-height:1.6;overflow-x:auto}\n.ygd-studio-markdown pre code{background:none;padding:0}\n.ygd-studio-markdown-table-scroll{max-width:100%;overflow-x:auto;margin-bottom:var(--ds-space-4);border:1px solid var(--ds-border);border-radius:var(--ds-radius)}\n.ygd-studio-markdown-table-scroll:focus-visible{outline:2px solid var(--ds-primary);outline-offset:2px}\n.ygd-studio-markdown table{width:100%;border-collapse:collapse;font-size:inherit;line-height:1.6}\n.ygd-studio-markdown th,.ygd-studio-markdown td{padding:8px 12px;text-align:left;vertical-align:top;overflow-wrap:anywhere;border-bottom:1px solid var(--ds-border)}\n.ygd-studio-markdown th{background:var(--ds-background);font-weight:600}\n.ygd-studio-markdown th+th,.ygd-studio-markdown td+td{border-left:1px solid var(--ds-border)}\n.ygd-studio-markdown tbody tr:last-child td{border-bottom:0}\n.ygd-studio-markdown tbody tr:nth-child(even){background:var(--ds-background)}\n\n/* Code viewer with line numbers; fills the remaining height of its flex parent */\n.ygd-studio-code-frame{flex:1 1 auto;min-height:min(64vh,52rem);display:flex;flex-direction:column;\n background:var(--ds-surface);border:1px solid var(--ds-border);border-radius:var(--ds-radius);overflow:hidden}\n.ygd-studio-code-scroll{flex:1;min-height:0;overflow:auto;padding:var(--ds-space-4) 0}\n.ygd-studio-code-view{display:flex;font-family:var(--ds-mono-font);font-size:13px;line-height:1.6;color:var(--ds-text)}\n.ygd-studio-line-numbers{width:44px;flex-shrink:0;text-align:right;padding:0 var(--ds-space-3);color:var(--ds-text-secondary);\n font-size:12px;line-height:1.6;user-select:none;border-right:1px solid var(--ds-border);margin-right:var(--ds-space-3);white-space:pre}\n.ygd-studio-code-body{margin:0;padding:0 var(--ds-space-4) 0 0;white-space:pre-wrap;word-break:break-word;flex:1;min-width:0;\n font-family:var(--ds-mono-font);font-size:13px;line-height:1.6}\n\n/* Summaries */\n.ygd-studio-summary-panel{margin-top:var(--ds-space-5);border-top:1px solid var(--ds-border);padding-top:var(--ds-space-4)}\n.ygd-studio-summary-title{font-family:var(--ds-heading-font);font-weight:var(--ds-heading-weight);font-size:14px;color:var(--ds-text);margin-bottom:var(--ds-space-3)}\n.ygd-studio-summary-grid{display:grid;grid-template-columns:1fr 1fr;gap:var(--ds-space-4)}\n.ygd-studio-summary-card{background:var(--ds-background);border:1px solid var(--ds-border);border-radius:var(--ds-radius);padding:var(--ds-space-3)}\n.ygd-studio-summary-card-title{font-size:12px;font-weight:600;color:var(--ds-text-secondary);margin-bottom:var(--ds-space-2);text-transform:uppercase;letter-spacing:.03em}\n.ygd-studio-summary-field{display:flex;justify-content:space-between;gap:var(--ds-space-2);padding:var(--ds-space-1) 0;font-size:12px;border-bottom:1px solid var(--ds-border)}\n.ygd-studio-summary-field:last-child{border-bottom:none}\n.ygd-studio-summary-field-name{color:var(--ds-text)}\n.ygd-studio-summary-field-type{font-family:var(--ds-mono-font);color:var(--ds-text-secondary);font-size:11px}\n\n/* Native Panel readonly placeholder */\n.ygd-studio-panel-container{margin-top:var(--ds-space-5);border:1px solid var(--ds-border);border-radius:var(--ds-radius);overflow:hidden}\n.ygd-studio-panel-header{padding:var(--ds-space-2) var(--ds-space-3);background:var(--ds-background);\n border-bottom:1px solid var(--ds-border);font-size:12px;font-weight:600;color:var(--ds-text-secondary);\n display:flex;align-items:center;gap:var(--ds-space-2);flex-wrap:wrap}\n.ygd-studio-panel-badge{font-size:10px;padding:1px 6px;border-radius:var(--ds-radius);background:var(--ds-border);color:var(--ds-text-secondary)}\n.ygd-studio-panel-placeholder{display:flex;flex-direction:column;align-items:center;justify-content:center;\n padding:var(--ds-space-5);text-align:center;color:var(--ds-text-secondary);gap:var(--ds-space-2)}\n.ygd-studio-panel-placeholder-text{font-size:13px}\n.ygd-studio-panel-placeholder-sub{font-size:11px;opacity:.7}\n\n/* Bundle workspace two-pane body */\n.ygd-studio-workspace-body{flex:1;display:flex;min-height:0;overflow:hidden;margin:0 20px 18px;border:1px solid var(--ds-border);border-radius:10px;background:#fff}\n.ygd-studio-workspace [hidden]{display:none!important}\n.ygd-studio-file-tree-pane{width:240px;flex-shrink:0;background:var(--ds-surface);border-right:1px solid var(--ds-border);\n display:flex;flex-direction:column;overflow:hidden}\n.ygd-studio-file-tree-header{padding:var(--ds-space-2) var(--ds-space-3);font-size:11px;font-weight:600;\n color:var(--ds-text-secondary);border-bottom:1px solid var(--ds-border)}\n.ygd-studio-file-tree{flex:1;overflow-y:auto;padding:var(--ds-space-2) 0}\n.ygd-studio-tree-section{padding:var(--ds-space-2) var(--ds-space-3) var(--ds-space-1);font-size:11px;font-weight:600;\n color:var(--ds-text-secondary);text-transform:uppercase;letter-spacing:.03em}\n.ygd-studio-tree-node{display:flex;align-items:center;gap:var(--ds-space-2);width:100%;padding:var(--ds-space-1) var(--ds-space-3);\n font-size:13px;color:var(--ds-text);cursor:pointer;border:none;background:none;text-align:left;font-family:var(--ds-body-font);\n transition:background var(--ds-duration-fast)}\n.ygd-studio-tree-node:hover{background:var(--ds-background)}\n.ygd-studio-tree-node[aria-current=\"true\"]{background:var(--ds-primary-light);color:var(--ds-primary-dark)}\n.ygd-studio-tree-label{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}\n.ygd-studio-content-pane{flex:1;display:flex;flex-direction:column;min-width:0;overflow-y:auto;padding:var(--ds-space-4) var(--ds-space-5)}\n\n/* Diagnostics */\n.ygd-studio-diagnostics{margin:var(--ds-space-3) var(--ds-space-5) 0;padding:10px 14px;border-radius:var(--ds-radius);\n border:1px solid #FECACA;background:#FEF2F2;color:var(--ds-error);list-style:none;font-size:13px}\n\n/* Explicit sample-only authoring. Runtime Panel descendants keep their own styles. */\n.ygd-studio-draft-layout{display:flex;flex:1;min-height:0;overflow:hidden;font-size:14px}\n.ygd-studio-draft-list{width:210px;flex-shrink:0;overflow:auto;border-right:1px solid var(--ds-border,#e5e7eb);padding:12px}\n.ygd-studio-draft-list>button{display:flex;flex-direction:column;gap:4px;width:100%;padding:10px;text-align:left;border:1px solid transparent;border-radius:6px;background:transparent;color:inherit;font:inherit;cursor:pointer}\n.ygd-studio-draft-list>button[aria-current]{background:var(--ds-bg-hover,#f1f5f9);border-color:var(--ds-border,#e5e7eb)}\n.ygd-studio-draft-list small{opacity:.7;overflow-wrap:anywhere}\n.ygd-studio-draft-editor{display:flex;flex:1;flex-direction:column;min-width:0;min-height:0;overflow:auto}\n.ygd-studio-draft-toolbar{display:flex;align-items:center;flex-wrap:wrap;gap:8px;padding:12px;border-bottom:1px solid var(--ds-border,#e5e7eb)}\n.ygd-studio-draft-toolbar>span{font-size:12px;opacity:.7}\n.ygd-studio-draft-toolbar>button{font:inherit;padding:6px 10px;border:1px solid var(--ds-border,#d1d5db);border-radius:6px;background:var(--ds-bg,#fff);color:inherit;cursor:pointer}\n.ygd-studio-draft-toolbar>button:disabled{opacity:.45;cursor:default}\n.ygd-studio-draft-sources{padding:12px}\n.ygd-studio-draft-sources summary{cursor:pointer}\n.ygd-studio-draft-sources fieldset{display:grid;grid-template-columns:1fr 1fr;gap:12px;border:0;padding:12px 0}\n.ygd-studio-draft-sources label{display:flex;flex-direction:column;gap:6px;min-width:0}\n.ygd-studio-draft-sources textarea{height:220px;resize:vertical;font:12px/1.5 monospace;border:1px solid var(--ds-border,#d1d5db);border-radius:6px;padding:8px;color:inherit;background:var(--ds-bg,#fff)}\n.ygd-studio-draft-preview{flex:1;min-height:320px;position:relative;overflow:auto;padding:12px}\n/* Archive stages form one scrolling document, not competing flex editors. */\n.ygd-studio-archive .ygd-studio-content-body{display:block}\n.ygd-studio-archive .ygd-studio-draft-editor{flex:none;overflow:visible;gap:12px;padding:16px 0}\n.ygd-studio-archive .ygd-studio-draft-editor>button{align-self:flex-start}\n.ygd-studio-archive h2,.ygd-studio-archive h3{font-size:14px;font-weight:600;margin:0}\n.ygd-studio-archive p{margin:0;overflow-wrap:anywhere}\n.ygd-studio-archive details{margin:12px 0}\n.ygd-studio-archive summary{cursor:pointer}\n.ygd-studio-archive .ygd-studio-draft-list{width:auto;border-right:0}\n.ygd-studio-archive fieldset.ygd-studio-draft-sources{display:grid;gap:12px;border:0;padding:0}\n.ygd-studio-archive .ygd-studio-draft-sources input{width:100%}\n/* Approved compact Studio composition; neutral controls measured on yugoo.cn. */\n.ygd-studio-content-header:has(.ygd-studio-breadcrumb){display:block}\n.ygd-studio-content-header .ygd-studio-breadcrumb{margin-bottom:10px}\n.ygd-studio-content-header>div:has(>.ygd-studio-header-title-group){display:flex;align-items:center;gap:8px 12px;flex-wrap:wrap;width:100%;min-width:0}\n.ygd-studio-content-header>div:has(>.ygd-studio-hero-actions)>.ygd-studio-header-title-group{flex:1 1 200px}\n.ygd-studio-hero-actions{display:flex;align-items:center;gap:6px;flex-shrink:0;flex-wrap:wrap;max-width:100%}\n.ygd-studio-hero-actions .ygd-studio-trial{position:relative}\n.ygd-studio-hero-actions .ygd-studio-trial:has([aria-expanded=\"true\"]){width:auto}\n.ygd-studio-hero-actions .ygd-studio-trial>.ygd-studio-summary-card{position:absolute;right:0;top:100%;z-index:20;width:min(480px,75vw);max-height:65vh;overflow:auto;box-shadow:0 8px 30px #0002}\n.ygd-studio-content-header .ygd-studio-btn-primary,.ygd-studio-content-header .ygd-studio-btn-link{margin-top:8px;margin-right:6px}\n.ygd-studio-file-tree-pane{width:230px;background:#f8f9fb}\n.ygd-studio-file-tree{padding:8px 0}\n.ygd-studio-tree-node,.ygd-studio-tree-folder>summary{height:28px;min-height:28px;display:flex;align-items:center;gap:6px;padding:0 10px;font:400 13px/28px var(--ds-body-font);color:#404957;white-space:nowrap;cursor:pointer}\n.ygd-studio-tree-folder>summary{list-style:none}\n.ygd-studio-tree-folder>summary::-webkit-details-marker{display:none}\n.ygd-studio-tree-folder>summary:hover,.ygd-studio-tree-node:hover{background:#eef0f4}\n.ygd-studio-tree-children{margin-left:14px;padding-left:8px;border-left:1px solid #e3e6ec}\n.ygd-studio-chevron{width:10px;flex:0 0 10px;color:#8793a6;font-size:16px}\n.ygd-studio-tree-folder[open]>summary .ygd-studio-chevron{transform:rotate(90deg)}\n.ygd-studio-file-icon{width:16px;height:16px;flex:0 0 16px;fill:none;stroke:currentColor;stroke-width:1.3;stroke-linecap:round;stroke-linejoin:round;color:#8793a6}\n.ygd-studio-file-icon.markdown{color:#698aaf}.ygd-studio-file-icon.config{color:#a98e4e}\n.ygd-studio-tree-node[aria-current=\"true\"]{background:var(--ds-primary-light);box-shadow:inset 2px 0 var(--ds-primary);color:var(--ds-primary-dark)}\n.ygd-studio-file-path{font:12px var(--ds-body-font);color:var(--ds-text-secondary);padding-bottom:12px;overflow-wrap:anywhere}\n.ygd-studio-content-pane{padding:14px 20px;background:#fff}\n.ygd-studio-mindset-layout{display:grid;grid-template-columns:minmax(0,1fr) 205px;gap:14px;min-height:0;flex:1}\n.ygd-studio-document-card{display:flex;flex-direction:column;min-height:0;min-width:0;border:1px solid var(--ds-border);border-radius:10px;background:#fff;overflow:hidden}\n.ygd-studio-document-card>.ygd-studio-doc-toolbar{padding:9px 14px;border-bottom:1px solid var(--ds-border);margin:0}\n.ygd-studio-document-name{font:500 13px var(--ds-mono-font);margin-right:auto}\n.ygd-studio-file-heading{display:flex;align-items:baseline;flex-wrap:wrap;gap:4px 10px;flex:1;min-width:180px}\n.ygd-studio-file-heading>.ygd-studio-document-name{margin-right:0;overflow-wrap:anywhere}\n.ygd-studio-file-purpose{font:400 12px/1.6 var(--ds-body-font);color:var(--ds-text-secondary);flex:1;min-width:140px;overflow-wrap:anywhere}\n.ygd-studio-file-info{flex:0 0 224px;box-sizing:border-box;min-height:0;overflow:auto;border-left:1px solid var(--ds-border);padding:16px;background:var(--ds-surface,#fafafa)}\n.ygd-studio-file-info h3{margin:0 0 8px;font:500 13px/1.5 var(--ds-body-font)}\n.ygd-studio-file-info .ygd-studio-markdown{font:400 12px/1.7 var(--ds-body-font);color:var(--ds-text-secondary);max-width:none}\n.ygd-studio-file-info .ygd-studio-markdown p{margin:0 0 8px}\n.ygd-studio-file-info .ygd-studio-markdown ul{padding-left:16px;margin:0}\n.ygd-studio-card-meta{font-size:11px;line-height:1.6;color:var(--ds-text-secondary);margin:0 0 12px}\n@media(max-width:1100px){.ygd-studio-file-info{flex-basis:180px;padding:12px}}\n@media(max-width:800px){\n .ygd-studio-files-layout{display:grid;grid-template-columns:150px minmax(0,1fr);grid-template-rows:minmax(0,1fr) auto}\n .ygd-studio-files-layout>.ygd-studio-file-tree-pane{grid-row:1 / 3;width:150px}\n .ygd-studio-files-layout>.ygd-studio-content-pane{grid-column:2;grid-row:1;min-height:0}\n .ygd-studio-files-layout>.ygd-studio-file-info{grid-column:2;grid-row:2;border-left:0;border-top:1px solid var(--ds-border);max-height:140px}\n}\n.ygd-studio-doc-meta{margin-left:0}\n.ygd-studio-kitmark{width:43px;height:43px;border-radius:11px;background:#ededed;color:#575757;display:inline-flex;align-items:center;justify-content:center;flex-shrink:0}\n.ygd-studio-kitmark svg{width:24px;height:24px}\n.ygd-studio-btn-secondary{border:1px solid var(--ds-border);border-radius:8px;padding:6px 11px;background:white;font:500 13px var(--ds-body-font);color:var(--ds-text);cursor:pointer;white-space:nowrap}\n.ygd-studio-btn-secondary:disabled{color:#aaa;cursor:not-allowed;background:#fafafa}\n.ygd-studio-instance-actions{display:flex;gap:6px}\n.ygd-studio-modal{width:min(640px,90vw);max-height:82vh;overflow:auto;margin:auto;padding:22px;border:1px solid var(--ds-border);border-radius:12px;background:#fff;color:var(--ds-text);font:14px/1.6 var(--ds-body-font)}\n.ygd-studio-modal::backdrop{background:#0005}\n.ygd-studio-modal>header{display:flex;align-items:center;justify-content:space-between;margin-bottom:14px;gap:12px}\n.ygd-studio-modal h2{font-size:18px}.ygd-studio-modal>header button{border:0;background:none;font:24px var(--ds-body-font);cursor:pointer;color:#6d6d6d}\n.ygd-studio-modal>p{margin:10px 0;color:var(--ds-text-secondary);font-size:13px}\n.ygd-studio-modal .ygd-studio-code-frame{min-height:0;max-height:60vh}.ygd-studio-modal .ygd-studio-code-scroll{max-height:60vh}\n.ygd-studio-topbar{gap:12px}.ygd-studio-topbar>span{display:flex;align-items:center;gap:8px}\n.ygd-studio-content-header .ygd-studio-breadcrumb{display:none}\n.ygd-studio-filter-row{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:12px;font-size:12px;color:var(--ds-text-secondary)}\n.ygd-studio-filter-row input{max-width:280px}\n.ygd-studio-bundles-list[aria-label=\"Mounted Bundles\"]{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:12px}\n.ygd-studio-bundles-list[aria-label=\"Mounted Bundles\"] .ygd-studio-bundle-item{display:flex;flex-direction:column;align-items:stretch;padding:15px}\n.ygd-studio-bundles-list[aria-label=\"Mounted Bundles\"] .ygd-studio-kitmark{width:28px;height:28px;border-radius:7px;margin-bottom:8px}\n.ygd-studio-bundles-list[aria-label=\"Mounted Bundles\"] .ygd-studio-kitmark svg{width:18px;height:18px}\n.ygd-studio-bundles-list[aria-label=\"Mounted Bundles\"] .ygd-studio-bundle-actions{border-top:1px solid var(--ds-border);padding-top:10px}\n.ygd-studio-bundles-list[aria-label=\"Mounted Bundles\"] .ygd-studio-bundle-id{display:none}\n.ygd-studio-mindset-document{padding:18px 24px;overflow:auto;flex:1;min-height:0}\n.ygd-studio-mindset-info{padding:16px;border:1px solid var(--ds-border);border-radius:10px;background:#fff;align-self:start;max-height:100%;overflow:auto}\n.ygd-studio-mindset-info h3{font-size:14px}.ygd-studio-mindset-info p{font-size:12px;color:var(--ds-text-secondary);margin:8px 0 12px}\n.ygd-studio-toc{margin-top:13px;padding-top:12px;border-top:1px solid var(--ds-border)}\n.ygd-studio-toc button{display:block;width:100%;text-align:left;border:0;background:none;padding:4px 0;font:12px/1.6 var(--ds-body-font);color:var(--ds-text-secondary);cursor:pointer;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}\n.ygd-studio-installed-preview{display:flex;flex-direction:column;margin:0 20px 18px;min-height:0;flex:1;overflow:auto;border:1px solid var(--ds-border);border-radius:10px;background:#fff;padding:0}\n.ygd-studio-preview-toolbar{display:flex;gap:12px;align-items:center;justify-content:space-between;flex-wrap:wrap;font-size:12px;padding:6px 12px;border-bottom:1px solid var(--ds-border);color:var(--ds-text-secondary)}\n.ygd-studio-preview-actions{display:flex;gap:8px;align-items:center}\n.ygd-studio-preview-actions button{height:30px;min-height:30px;padding:0 10px;font-size:12px;line-height:1;border-radius:8px;display:inline-flex;align-items:center;justify-content:center}\n.ygd-studio-preview-toolbar strong{color:var(--ds-text)}\n.ygd-studio-preview-sample{margin-top:16px;font-size:12px}\n.ygd-studio-preview-sample summary{cursor:pointer;padding:8px 0}\n.ygd-studio-preview-sample textarea{display:block;width:100%;padding:12px;border:1px solid var(--ds-border);border-radius:8px;font:13px/1.6 var(--ds-mono-font);margin-bottom:8px}\n.ygd-studio-mounts-inspector{margin:0 20px 14px;padding:14px;border:1px solid var(--ds-border);border-radius:10px;background:#fff;max-height:240px;overflow:auto}\n.ygd-studio-mounts-inspector p{margin:8px 0;font-size:13px}\n.ygd-studio-trial{display:inline-flex;vertical-align:middle;margin:0}\n.ygd-studio-hero-actions .ygd-studio-trial>button{height:32px;min-height:32px;margin:0;padding:0 12px;line-height:1;display:inline-flex;align-items:center;justify-content:center;font-size:13px}\n.ygd-studio-installed-status{font-size:12px;line-height:20px;color:var(--ds-text-secondary);white-space:nowrap}\n.ygd-studio-instance-menu{position:relative;display:inline-block}\n.ygd-studio-instance-menu>summary{display:flex;align-items:center;justify-content:center;list-style:none;cursor:pointer;width:32px;height:32px;border:1px solid var(--ds-border);border-radius:8px;background:#fff;font-weight:600}\n.ygd-studio-instance-menu>summary::-webkit-details-marker{display:none}\n.ygd-studio-instance-menu>div{position:absolute;right:0;top:100%;z-index:20;min-width:160px;padding:4px;background:#fff;border:1px solid var(--ds-border);border-radius:8px;box-shadow:0 4px 16px #00000012}\n.ygd-studio-instance-menu>div>button{display:block;width:100%;padding:8px;border:0;background:none;text-align:left;font:inherit;cursor:pointer;border-radius:4px;white-space:nowrap}\n.ygd-studio-instance-menu>div>button:hover{background:var(--ds-primary-light)}\n.ygd-studio-trial select{max-width:100%;height:32px;border:1px solid var(--ds-border);border-radius:8px;background:#fff;font:inherit}\n.ygd-studio-workspace button:focus-visible,.ygd-studio-workspace summary:focus-visible{outline:2px solid var(--ds-primary);outline-offset:2px}\n/* Responsive */\n/* Demo geometry, Yugoo brand tokens: one hero, one document toolbar, one body. */\n.ygd-studio-content-header .ygd-studio-btn-primary,.ygd-studio-content-header .ygd-studio-btn-link{margin:0}\n.ygd-studio-content-header .ygd-studio-catalog-link{display:inline-flex;align-items:center;gap:6px;min-height:32px;max-width:100%;margin:0 0 0 auto;color:var(--ds-primary-dark);text-decoration:none;overflow-wrap:anywhere}\n.ygd-studio-catalog-link svg{flex-shrink:0}\n.ygd-studio-catalog-link:focus-visible{outline:2px solid var(--ds-primary);outline-offset:2px}\n.ygd-studio-sidebar-nav{padding:0}\n.ygd-studio-sidebar-item{display:flex;align-items:center;gap:10px}\n.ygd-studio-sidebar-item .ygd-studio-kitmark{width:18px;height:18px;background:none;color:inherit;border-radius:0}\n.ygd-studio-sidebar-item .ygd-studio-kitmark svg{width:18px;height:18px}\n.ygd-studio-kitmark{background:var(--ds-primary-light);color:var(--ds-primary-dark)}\n.ygd-studio-content-pane{display:flex;flex-direction:column;padding:0;overflow:hidden}\n.ygd-studio-content-pane>.ygd-studio-doc-toolbar{margin:0;padding:9px 14px;border-bottom:1px solid var(--ds-border)}\n.ygd-studio-document-body{flex:1;min-height:0;overflow:auto;padding:18px 24px}\n.ygd-studio-document-body:has(>.ygd-studio-loading),.ygd-studio-live-pane-body:has(>.ygd-studio-loading){display:flex;flex-direction:column}\n.ygd-studio-file-metadata{margin-bottom:18px;border-radius:8px;background:var(--ds-primary-light,#f7f4fe);color:var(--ds-text-secondary)}\n.ygd-studio-file-metadata>summary{padding:12px;font-size:12px;cursor:pointer}\n.ygd-studio-file-metadata .ygd-studio-frontmatter{margin:0;border:0;background:transparent}\n.ygd-studio-document-body:has(>.ygd-studio-code-frame){padding:0}\n.ygd-studio-mindset-document .ygd-studio-markdown,.ygd-studio-document-body .ygd-studio-markdown{max-width:none}\n.ygd-studio-mindset-document .ygd-studio-markdown h1,.ygd-studio-document-body .ygd-studio-markdown h1{font-size:22px;margin-bottom:14px}\n.ygd-studio-mindset-document .ygd-studio-markdown h2,.ygd-studio-document-body .ygd-studio-markdown h2{font-size:17px;margin:23px 0 10px;padding-bottom:6px;border-bottom:1px solid var(--ds-border)}\n.ygd-studio-doc-toolbar{min-height:51px;gap:10px;flex-wrap:wrap}\n.ygd-studio-doc-toggle-group{border:0;background:var(--ds-background);padding:3px;gap:2px}\n.ygd-studio-doc-toggle{background:transparent;border-radius:5px;padding:4px 9px}\n.ygd-studio-doc-toggle+.ygd-studio-doc-toggle{border:0}\n.ygd-studio-doc-toggle[aria-pressed=\"true\"]{background:#fff;color:var(--ds-text);box-shadow:0 1px 3px #0001}\n.ygd-studio-doc-footer{display:flex;align-items:center;gap:12px;padding:7px 14px;border-top:1px solid var(--ds-border);font-size:11px;color:var(--ds-text-secondary);flex-shrink:0}\n.ygd-studio-doc-footer>span:last-child{margin-left:auto}\n.ygd-studio-doc-footer button{font-size:11px;padding:0}\n.ygd-studio-inline-actions{display:inline-flex;align-items:center;gap:6px;font-size:12px}\n.ygd-studio-inline-actions button{font:inherit;padding:7px 11px;border:0;border-radius:8px;background:var(--ds-primary-light);color:var(--ds-primary-dark);cursor:pointer}\n.ygd-studio-inline-actions button:disabled{opacity:.5;cursor:default}\n.ygd-studio-btn-soft{background:var(--ds-primary-light);color:var(--ds-primary-dark);border-color:transparent}\n.ygd-studio-mindset-info>.ygd-studio-btn-link{background:var(--ds-primary-light);color:var(--ds-primary-dark);padding:8px 11px}\n.ygd-studio-card-top{display:flex;align-items:center;justify-content:space-between;margin-bottom:8px}\n.ygd-studio-card-top .ygd-studio-kitmark{width:28px;height:28px;border-radius:7px}\n.ygd-studio-card-top .ygd-studio-kitmark svg{width:18px;height:18px}\n.ygd-studio-card-pill{font-size:11px;border:1px solid var(--ds-border);border-radius:5px;padding:2px 6px;color:var(--ds-text-secondary)}\n.ygd-studio-source-id{font:11px/1.6 var(--ds-mono-font);color:var(--ds-text-secondary);margin-top:2px}\n.ygd-studio-kit-card .ygd-studio-card-description{margin:8px 0 12px;min-height:0}\n.ygd-studio-kit-card-actions{display:flex;align-items:center;gap:5px;margin-top:auto}\n.ygd-studio-kit-card-actions button{font-size:12px;padding:5px 8px}\n.ygd-studio-filter-row>span{margin-right:auto}\n.ygd-studio-workplane-tab[aria-selected=\"true\"],.ygd-studio-workplane-tab[aria-pressed=\"true\"]{color:var(--ds-text)}\n.ygd-studio-mindset-inline{padding:8px 16px;border-bottom:1px solid var(--ds-border)}\n.ygd-studio-mindset-inline .ygd-studio-draft-toolbar{display:flex;align-items:center;gap:8px}\n.ygd-studio-mindset-inline button,.ygd-studio-mindset-recovery select{font:inherit;min-height:30px;border:1px solid var(--ds-border);border-radius:8px;padding:4px 10px;background:#fff;color:var(--ds-text)}\n.ygd-studio-mindset-inline button:last-of-type{background:var(--ds-primary);color:white;border-color:transparent}\n.ygd-studio-mindset-inline button:disabled{opacity:.5}\n.ygd-studio-mindset-inline textarea{display:block;box-sizing:border-box;width:100%;min-height:80px;padding:12px;font:13px/1.6 var(--ds-mono-font);border:1px solid var(--ds-border);border-radius:8px;resize:vertical}\n.ygd-studio-mindset-inline pre{white-space:pre-wrap;overflow-wrap:anywhere;max-height:180px;overflow:auto}\n.ygd-studio-mindset-inline .ygd-studio-draft-sources{display:grid;gap:10px}\n.ygd-studio-mindset-inline:has(textarea)+.ygd-studio-mindset-document{display:none}\n.ygd-studio-mindset-recovery{display:flex;align-items:center;gap:8px;padding:8px 16px;color:var(--ds-text-secondary);font-size:12px}\n@media(max-width:1023px){\n .ygd-studio-sidebar{position:fixed;left:-200px;top:0;bottom:0;z-index:var(--ds-z-drawer);\n transition:left var(--ds-duration-normal);width:200px}\n .ygd-studio-sidebar.open{left:0}\n .ygd-studio-menu-btn{display:flex;position:fixed;top:var(--ds-space-2);left:var(--ds-space-2);z-index:calc(var(--ds-z-drawer) + 1)}\n .ygd-studio-content-header{padding-left:48px}\n .ygd-studio-file-tree-pane{width:180px}\n .ygd-studio-summary-grid{grid-template-columns:minmax(0,1fr)}\n .ygd-studio-topbar{padding-left:48px}\n .ygd-studio-mindset-layout{grid-template-columns:minmax(0,1fr)}\n .ygd-studio-mindset-info{max-height:140px}.ygd-studio-toc{display:none}\n}\n.ygd-studio-hero-actions button{box-sizing:border-box;height:32px;min-height:32px;margin-top:0;padding:0 12px;display:inline-flex;align-items:center;justify-content:center;line-height:1}\n.ygd-studio-preview-slot,.ygd-studio-trial-slot{flex:1;min-height:0;min-width:0;display:flex;overflow:hidden;background:#fff}\n.ygd-studio-preview-slot[hidden],.ygd-studio-trial-slot[hidden],.ygd-studio-trial-workspace[hidden],.ygd-studio-trial-input[hidden]{display:none}\n.ygd-studio-trial-workspace{display:flex;flex-direction:column;flex:1;min-width:0;min-height:0;width:100%}\n.ygd-studio-trial-history{display:flex;align-items:center;gap:10px;padding:6px 10px;border-bottom:1px solid var(--ds-border);font-size:12px;flex-wrap:wrap}\n.ygd-studio-trial-history button,.ygd-studio-trial-history select{height:30px;box-sizing:border-box}\n.ygd-studio-trial-workarea{display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0,1fr);flex:1;min-height:0}\n.ygd-studio-trial-result{grid-column:2;grid-row:1;min-width:0;min-height:0;display:flex;flex-direction:column}.ygd-studio-trial-result iframe{width:100%;flex:1;min-height:0;border:0;background:#fff}.ygd-studio-trial-result-details{padding:6px 12px;border-top:1px solid var(--ds-border);font-size:12px;max-height:150px;overflow:auto}\n.ygd-studio-trial-input{grid-column:1;grid-row:1;display:flex;flex-direction:column;gap:12px;border-right:1px solid var(--ds-border);padding:12px;overflow:auto;min-width:0;min-height:0;font-size:12px}.ygd-studio-trial-input h3{font-size:13px;margin:0}.ygd-studio-trial-input textarea{width:100%;box-sizing:border-box;flex:1;min-height:120px;resize:none;padding:12px;margin:0;font:inherit;line-height:1.65;border:1px solid var(--ds-border);border-radius:8px}.ygd-studio-trial-input pre{white-space:pre-wrap;overflow-wrap:anywhere;font:inherit}\n.ygd-studio-trial-slot{margin:0;border:0;border-radius:0}\n.ygd-studio-trial-save{display:flex;align-items:center;justify-content:flex-end;flex-shrink:0;gap:8px;padding:10px 16px;border-top:1px solid var(--ds-border);background:#fff}\n.ygd-studio-trial-save .ygd-studio-trial-hint{margin:0 auto 0 0;font-size:12px;color:var(--ds-text-secondary)}\n.ygd-studio-trial-save button{height:32px;white-space:nowrap}\n.ygd-studio-trial-input-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:24px}\n.ygd-studio-trial-input .ygd-studio-trial-input-heading h3{margin:0}\n.ygd-studio-trial-status{font-size:11px;line-height:20px;padding:0 7px;border-radius:10px;background:var(--ds-background);color:var(--ds-text-secondary);white-space:nowrap}\n.ygd-studio-trial-status[data-state=\"waiting\"],.ygd-studio-trial-status[data-state=\"completed\"]{background:var(--ds-primary-light);color:var(--ds-primary)}\n.ygd-studio-trial-status[data-state=\"failed\"]{color:#b42318;background:#fff1ef}\n.ygd-studio-workspace button:disabled{opacity:.45;cursor:not-allowed}\n.ygd-studio-bundle-main .ygd-studio-content-header{padding:8px 16px}\n.ygd-studio-bundle-main .ygd-studio-hero-actions{margin:0}\n.ygd-studio-bundle-main .ygd-studio-workplane-bar{min-height:36px;padding:0 16px;margin:0}\n.ygd-studio-bundle-main .ygd-studio-installed-preview{position:relative;margin:0;flex:1;min-height:0;overflow:auto;padding:8px 16px}\n.ygd-studio-editor-heading{display:flex;align-items:center;gap:12px;padding:8px 12px;border-bottom:1px solid var(--ds-border);font-size:13px}\n.ygd-studio-editor-heading>span{margin-left:auto;color:var(--ds-text-secondary);font-size:12px}\n.ygd-studio-panel-split,.ygd-studio-trial-workarea.with-input{grid-template-columns:minmax(260px,32%) minmax(0,1fr)}\n.ygd-studio-panel-split{display:grid;grid-template-rows:minmax(0,1fr);flex:1;min-width:0;min-height:0;overflow:hidden}\n.ygd-studio-yaml-pane,.ygd-studio-live-pane{display:flex;flex-direction:column;min-width:0;min-height:0}\n.ygd-studio-yaml-pane{border-right:1px solid var(--ds-border)}\n.ygd-studio-yaml-pane>header,.ygd-studio-live-pane>header{display:flex;align-items:center;gap:10px;padding:6px 12px;border-bottom:1px solid var(--ds-border);min-height:34px;font-size:12px}\n.ygd-studio-yaml-pane>header>span,.ygd-studio-live-pane>header>span{color:var(--ds-text-secondary);font-size:11px}\n.ygd-studio-yaml-pane>header>button,.ygd-studio-live-pane>header>button{margin-left:auto;height:30px}\n.ygd-studio-yaml-pane>textarea{flex:1;min-height:0;resize:none;border:0;outline-offset:-2px;padding:12px;background:#fafafa;font:12px/1.65 ui-monospace,SFMono-Regular,Consolas,monospace;tab-size:2}\n.ygd-studio-live-pane-body{display:flex;flex-direction:column;flex:1;min-height:0;overflow:auto;padding:0}\n.ygd-studio-workspace .ygd-studio-trial-availability{padding:16px;max-width:400px;margin:auto;text-align:center;color:var(--ds-text-secondary);font-size:13px;line-height:1.6}\n.ygd-studio-trial-input>.ygd-studio-loading{flex:1}\n.ygd-studio-editor-errors{max-height:120px;overflow:auto;padding:0 12px;font-size:12px;color:#b42318}\n.ygd-studio-trial-columns{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:20px}\n.ygd-studio-trial-columns>section{min-width:0;padding:16px;border:1px solid var(--ds-border);border-radius:10px;font-size:13px}\n.ygd-studio-trial-columns h3{margin:0 0 12px;font-size:14px}.ygd-studio-trial-columns textarea{display:block;box-sizing:border-box;width:100%;margin:8px 0 12px;resize:vertical;font:inherit;line-height:1.6;padding:10px;border:1px solid var(--ds-border);border-radius:8px}\n.ygd-studio-trial-columns pre{white-space:pre-wrap;overflow-wrap:anywhere;font:inherit}.ygd-studio-trial-columns details{margin:12px 0}.ygd-studio-trial-hint{color:var(--ds-text-secondary);font-size:12px}\n@media(max-width:650px){.ygd-studio-trial-columns{grid-template-columns:minmax(0,1fr)}.ygd-studio-file-tree-pane{width:150px}.ygd-studio-content-pane{padding:12px}.ygd-studio-workspace-body{margin:0 12px 12px}}\n";
|
|
609
627
|
//#endregion
|
|
610
628
|
//#region src/MindsetInlineEditor.d.ts
|
|
611
629
|
interface MindsetInlineEditorProps {
|
|
@@ -629,4 +647,4 @@ interface MindsetInlineEditorProps {
|
|
|
629
647
|
/** Embed in the selected Kit's Mindset page; no extra navigation/workbench. */
|
|
630
648
|
declare function MindsetInlineEditor({ authoring, kit, installedSource, initialId, onRecord, locale, onSource, onDirtyChange, renderContent }: MindsetInlineEditorProps): ReactElement;
|
|
631
649
|
//#endregion
|
|
632
|
-
export { ContentArchiveWorkbench, MindsetInlineEditor, type MindsetInlineEditorProps, STUDIO_WORKSPACE_CSS, type StudioAuthoring, type StudioAuthoringClient, type StudioBundleFileViewerState, type StudioClientFailure, type StudioComponentDirectoryProps, type StudioComponentEntry, type StudioComponentLibrary, type StudioContentAdoptionResult, StudioContentArchiveController, type StudioContentClient, type StudioContentImportRecord, type StudioContentImportSummary, type StudioInstance, type StudioInstanceClient, type StudioKitAuthoring, type StudioKitAuthoringClient, StudioKitDraftController, type StudioKitWorkspaceTab, type StudioManagementClient, type StudioManagementFailure, StudioPanelDraftController, type StudioPanelDraftState, type StudioPanelPreviewClient, type StudioSection, type StudioTrialClient, StudioTrialController, type StudioTrialRecord, type StudioTrialSource, type StudioTrialState, type StudioUiLibrary, StudioWorkspace, StudioWorkspaceController, type StudioWorkspaceProps, type StudioWorkspaceState, assertStudioImportRequestSize, checkStudioTrialConnection, localTrialUrl, trialActive };
|
|
650
|
+
export { ContentArchiveWorkbench, MindsetInlineEditor, type MindsetInlineEditorProps, STUDIO_WORKSPACE_CSS, type StudioAuthoring, type StudioAuthoringClient, type StudioBundleFileViewerState, type StudioClientFailure, type StudioComponentDirectoryProps, type StudioComponentEntry, type StudioComponentLibrary, type StudioContentAdoptionResult, StudioContentArchiveController, type StudioContentClient, type StudioContentImportRecord, type StudioContentImportSummary, type StudioInstance, type StudioInstanceClient, type StudioKitAuthoring, type StudioKitAuthoringClient, StudioKitDraftController, type StudioKitWorkspaceTab, type StudioManagementClient, type StudioManagementFailure, StudioPanelDraftController, type StudioPanelDraftState, type StudioPanelPreviewClient, type StudioSection, type StudioSelectProps, type StudioSelectRenderer, type StudioTrialClient, StudioTrialController, type StudioTrialRecord, type StudioTrialSource, type StudioTrialState, type StudioUiLibrary, StudioWorkspace, StudioWorkspaceController, type StudioWorkspaceProps, type StudioWorkspaceState, assertStudioImportRequestSize, checkStudioTrialConnection, localTrialUrl, trialActive };
|