@yugoo-design/dsh-design-studio-ui 0.1.0-beta.1 → 0.1.0-beta.3
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 +7 -0
- package/lib/index.d.ts +1 -1
- package/lib/index.js +38 -9
- package/licenses/dsh-distribution.json +6 -5
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -107,6 +107,13 @@ concepts such as Panel drafts must not add top-level navigation sections.
|
|
|
107
107
|
The optional **Panel Component Library / 面板组件库** entry is a bottom sidebar
|
|
108
108
|
utility, above the shared language switch, not another primary Kit/Bundle section.
|
|
109
109
|
|
|
110
|
+
The Kit list provides a compact **Browse official kits / 浏览官方设计套件**
|
|
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.
|
|
116
|
+
|
|
110
117
|
The optional `componentLibrary: StudioComponentLibrary` adapter supplies the
|
|
111
118
|
actual same-build DSL catalog, display names, trusted synthetic examples and
|
|
112
119
|
the bundled `design-component` Skill. The UI does not register components or
|
package/lib/index.d.ts
CHANGED
|
@@ -605,7 +605,7 @@ declare function StudioWorkspace({ client, controller: supplied, authoring, kitA
|
|
|
605
605
|
* purple brand accents, neutral text and radii follow the Yugoo UI. The stylesheet is scoped so
|
|
606
606
|
* embedded and Companion hosts share it without importing a host/Core theme.
|
|
607
607
|
*/
|
|
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-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";
|
|
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";
|
|
609
609
|
//#endregion
|
|
610
610
|
//#region src/MindsetInlineEditor.d.ts
|
|
611
611
|
interface MindsetInlineEditorProps {
|
package/lib/index.js
CHANGED
|
@@ -1051,6 +1051,9 @@ const STUDIO_WORKSPACE_CSS = `
|
|
|
1051
1051
|
/* Responsive */
|
|
1052
1052
|
/* Demo geometry, Yugoo brand tokens: one hero, one document toolbar, one body. */
|
|
1053
1053
|
.ygd-studio-content-header .ygd-studio-btn-primary,.ygd-studio-content-header .ygd-studio-btn-link{margin:0}
|
|
1054
|
+
.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}
|
|
1055
|
+
.ygd-studio-catalog-link svg{flex-shrink:0}
|
|
1056
|
+
.ygd-studio-catalog-link:focus-visible{outline:2px solid var(--ds-primary);outline-offset:2px}
|
|
1054
1057
|
.ygd-studio-sidebar-nav{padding:0}
|
|
1055
1058
|
.ygd-studio-sidebar-item{display:flex;align-items:center;gap:10px}
|
|
1056
1059
|
.ygd-studio-sidebar-item .ygd-studio-kitmark{width:18px;height:18px;background:none;color:inherit;border-radius:0}
|
|
@@ -4333,6 +4336,7 @@ function ContentArchiveWorkbench({ client, installedKit, locale, canAdoptKit, on
|
|
|
4333
4336
|
/** Reusable host-neutral React workspace for the read-only Kit-first Studio surface. */
|
|
4334
4337
|
const KIT_TABS = ["mindset", "mounts"];
|
|
4335
4338
|
const TABPANEL_ID = "ygd-studio-kit-tabpanel";
|
|
4339
|
+
const OFFICIAL_KITS_URL = "https://github.com/alibaba-damo-academy/yugoo-design/blob/main/docs/wiki/kit-sharing.md#official-kits";
|
|
4336
4340
|
const displayName = (name) => name.replace(/[_-]+/g, " ").replace(/\b\w/g, (letter) => letter.toUpperCase());
|
|
4337
4341
|
function InlineMindset(props) {
|
|
4338
4342
|
const [initialId] = useState(props.initialId);
|
|
@@ -4352,6 +4356,8 @@ const STRINGS = {
|
|
|
4352
4356
|
kitsTitle: "Kits",
|
|
4353
4357
|
kitsContext: "Studio 1.0 · Kits",
|
|
4354
4358
|
kitsSubtitle: "Manage domain methods and mounted Bundles.",
|
|
4359
|
+
browseOfficialKits: "Browse official kits",
|
|
4360
|
+
officialKitsHelp: "Browse official kits: descriptions and acquisition guidance (opens in a new tab)",
|
|
4355
4361
|
bundlesTitle: "Bundles",
|
|
4356
4362
|
bundlesContext: "Studio 1.0 · Bundles",
|
|
4357
4363
|
bundlesSubtitle: "Installed Bundles, read-only inspection",
|
|
@@ -4402,6 +4408,8 @@ const STRINGS = {
|
|
|
4402
4408
|
kitsTitle: "设计套件",
|
|
4403
4409
|
kitsContext: "Studio 1.0 · 设计套件",
|
|
4404
4410
|
kitsSubtitle: "管理领域方法与技能包挂载。",
|
|
4411
|
+
browseOfficialKits: "浏览官方设计套件",
|
|
4412
|
+
officialKitsHelp: "浏览官方设计套件:简介和获取指引(在新标签页打开)",
|
|
4405
4413
|
bundlesTitle: "技能包",
|
|
4406
4414
|
bundlesContext: "Studio 1.0 · 技能包",
|
|
4407
4415
|
bundlesSubtitle: "只读查看已安装技能包",
|
|
@@ -5413,16 +5421,37 @@ function StudioWorkspace({ client, controller: supplied, authoring, kitAuthoring
|
|
|
5413
5421
|
className: "ygd-studio-main",
|
|
5414
5422
|
children: [/* @__PURE__ */ jsx("header", {
|
|
5415
5423
|
className: "ygd-studio-content-header",
|
|
5416
|
-
children: /* @__PURE__ */ jsxs("div", { children: [
|
|
5417
|
-
|
|
5418
|
-
|
|
5419
|
-
|
|
5420
|
-
|
|
5424
|
+
children: /* @__PURE__ */ jsxs("div", { children: [
|
|
5425
|
+
/* @__PURE__ */ jsx("div", {
|
|
5426
|
+
className: "ygd-studio-header-title-group",
|
|
5427
|
+
children: /* @__PURE__ */ jsx("h1", {
|
|
5428
|
+
className: "ygd-studio-page-title",
|
|
5429
|
+
children: t.kitsTitle
|
|
5430
|
+
})
|
|
5431
|
+
}),
|
|
5432
|
+
/* @__PURE__ */ jsx("p", {
|
|
5433
|
+
className: "ygd-studio-subtitle",
|
|
5434
|
+
children: t.kitsSubtitle
|
|
5435
|
+
}),
|
|
5436
|
+
/* @__PURE__ */ jsxs("a", {
|
|
5437
|
+
className: "ygd-studio-btn-link ygd-studio-catalog-link",
|
|
5438
|
+
href: OFFICIAL_KITS_URL,
|
|
5439
|
+
target: "_blank",
|
|
5440
|
+
rel: "noopener noreferrer",
|
|
5441
|
+
title: t.officialKitsHelp,
|
|
5442
|
+
"aria-label": t.officialKitsHelp,
|
|
5443
|
+
children: [t.browseOfficialKits, /* @__PURE__ */ jsx("svg", {
|
|
5444
|
+
width: "14",
|
|
5445
|
+
height: "14",
|
|
5446
|
+
viewBox: "0 0 24 24",
|
|
5447
|
+
fill: "none",
|
|
5448
|
+
stroke: "currentColor",
|
|
5449
|
+
strokeWidth: "1.7",
|
|
5450
|
+
"aria-hidden": "true",
|
|
5451
|
+
children: /* @__PURE__ */ jsx("path", { d: "M14 3h7v7M10 14 21 3M21 14v6a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h6" })
|
|
5452
|
+
})]
|
|
5421
5453
|
})
|
|
5422
|
-
})
|
|
5423
|
-
className: "ygd-studio-subtitle",
|
|
5424
|
-
children: t.kitsSubtitle
|
|
5425
|
-
})] })
|
|
5454
|
+
] })
|
|
5426
5455
|
}), /* @__PURE__ */ jsxs("div", {
|
|
5427
5456
|
className: "ygd-studio-content-body",
|
|
5428
5457
|
children: [
|
|
@@ -2,14 +2,14 @@
|
|
|
2
2
|
"schemaVersion": 1,
|
|
3
3
|
"package": "@yugoo-design/dsh-design-studio-ui",
|
|
4
4
|
"scope": "observed-current-dsh-output-and-selected-original-materials",
|
|
5
|
-
"sourceArchiveObserved":
|
|
5
|
+
"sourceArchiveObserved": "2be6484ad947cd0170d91956d6cbe8915d29d587a16b6029cd2f4e4064092414",
|
|
6
6
|
"outputSha256": {
|
|
7
|
-
"lib/index.js": "
|
|
7
|
+
"lib/index.js": "10764ea8266c52a5c645579bd756c938bd69497a84086928b1b91ce1a10c9541"
|
|
8
8
|
},
|
|
9
9
|
"normalBuildMaps": [
|
|
10
10
|
{
|
|
11
11
|
"output": "lib/index.js",
|
|
12
|
-
"mapSha256": "
|
|
12
|
+
"mapSha256": "f2ef4e1dbcf7b6c34417f618e50c53461c4fb6ec33aac430f36c06004931c516",
|
|
13
13
|
"sourceCount": 21,
|
|
14
14
|
"projectOwnedSources": [
|
|
15
15
|
"packages/studio-ui/src/controller.ts",
|
|
@@ -39,8 +39,8 @@
|
|
|
39
39
|
"NOTICE"
|
|
40
40
|
],
|
|
41
41
|
"sourceContentsVerified": true,
|
|
42
|
-
"normalOutputSha256": "
|
|
43
|
-
"packedOutputSha256": "
|
|
42
|
+
"normalOutputSha256": "10764ea8266c52a5c645579bd756c938bd69497a84086928b1b91ce1a10c9541",
|
|
43
|
+
"packedOutputSha256": "10764ea8266c52a5c645579bd756c938bd69497a84086928b1b91ce1a10c9541",
|
|
44
44
|
"diagnosticOutputEqualsNormalIgnoringMapLink": true,
|
|
45
45
|
"actualArchiveOutputBindingVerified": false,
|
|
46
46
|
"binding": "Fresh source-only diagnostic map verified against exact ordinary output and current source bytes; actual archive binding pending pack verification."
|
|
@@ -52,6 +52,7 @@
|
|
|
52
52
|
"unresolvedEmbeddedFonts": [],
|
|
53
53
|
"externalDependencies": {},
|
|
54
54
|
"externalPeers": {
|
|
55
|
+
"@yugoo-design/dsh-design-studio": "0.1.0-beta.3",
|
|
55
56
|
"react": "^18.2.0",
|
|
56
57
|
"react-dom": "^18.2.0"
|
|
57
58
|
},
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@yugoo-design/dsh-design-studio-ui",
|
|
3
|
-
"version": "0.1.0-beta.
|
|
3
|
+
"version": "0.1.0-beta.3",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"description": "Host-neutral shared React workspace for the read-only Kit-first Design Studio surface.",
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
"test:content-archive": "TSX_TSCONFIG_PATH=./tsconfig.json node --import tsx --test tests/content-archive-controller.test.mjs tests/content-archive-render.test.mjs tests/content-archive-workspace.test.mjs"
|
|
21
21
|
},
|
|
22
22
|
"peerDependencies": {
|
|
23
|
-
"@yugoo-design/dsh-design-studio": "0.1.0-beta.
|
|
23
|
+
"@yugoo-design/dsh-design-studio": "0.1.0-beta.3",
|
|
24
24
|
"react": "^18.2.0",
|
|
25
25
|
"react-dom": "^18.2.0"
|
|
26
26
|
},
|