/* A fixed workspace: the three panels scroll independently inside the viewport. */
.editor-workspace{height:100vh;height:100dvh;min-height:0;overflow:hidden}
.editor-workspace .work{display:flex;flex-direction:column;height:100%;min-height:0;overflow:hidden}
.editor-workspace>aside.sidebar{height:100%;position:relative;top:auto}
.editor-workspace header{flex:0 0 64px;height:64px;padding:0 20px;gap:12px;min-width:0}
.editor-workspace header .team{max-width:100px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.editor-workspace .project-picker{min-width:130px;max-width:190px}
.editor-workspace main{flex:1;min-height:0;min-width:0;width:100%;max-width:none;margin:0;padding:0;overflow:hidden;display:flex}
#editor-toolbar{display:flex;align-items:center;gap:16px;justify-content:space-between;flex:1;min-width:0}
.editor-title{display:flex;align-items:center;gap:12px;min-width:0}
.editor-title h1{font-size:16px;font-weight:650;letter-spacing:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}
.editor-title #save-state{white-space:nowrap;flex-shrink:0;font-size:11px}
#editor-toolbar>.actions{flex-wrap:nowrap;flex-shrink:0;gap:7px}
#editor-toolbar button{min-height:36px;padding:7px 11px}
#editor-toolbar .workspace-toggle{display:none}
.editor-workspace .editor-layout{flex:1;min-width:0;min-height:0;height:100%;grid-template-columns:216px minmax(0,1fr) 280px;border:0;border-radius:0;position:relative}
.editor-workspace .library,.editor-workspace .inspector{min-height:0;height:100%;max-height:none;overflow-y:auto;overscroll-behavior:contain}
.editor-workspace .library{padding:18px 12px;background:#fbfcfe}
.editor-workspace .library>h2{font-size:13px;margin:0 8px 20px;color:var(--ink)}
.editor-workspace .canvas{min-height:0;height:100%;overflow:auto;overscroll-behavior:contain;scrollbar-gutter:stable}
.editor-workspace .graph{min-height:100%;min-width:100%}
.editor-workspace .inspector{padding:20px 18px}
.tool-group{margin:0 0 20px}
.tool-group>h3{font-size:10px;color:#8a96a6;letter-spacing:.7px;font-weight:600;margin:0 8px 8px}
.library .tool-trigger{display:flex;align-items:center;gap:10px;width:100%;min-height:40px;margin:0;padding:9px 8px;border:0;border-radius:7px;background:transparent;text-align:left;cursor:pointer;position:relative;font-size:12px;white-space:normal}
.library .tool-trigger:hover,.tool-item[open]>.tool-trigger{background:#edf2fc;color:var(--blue)}
.library .tool-trigger>.ui-icon{width:17px;height:17px;flex:0 0 17px;margin:0;color:#718099}
.tool-name{flex:1;min-width:0;line-height:1.4}
.tool-plus{display:flex;align-items:center;justify-content:center;flex:0 0 22px;width:22px;height:22px;color:#8391a5;border-radius:5px}
.tool-plus>.ui-icon{width:14px;height:14px;flex-basis:14px}
.tool-trigger:hover .tool-plus{background:#fff;color:var(--blue)}
.tool-item>summary{list-style:none}.tool-item>summary::-webkit-details-marker{display:none}
.tool-item[open]>.tool-trigger .tool-plus{transform:rotate(45deg)}
.tool-variants{margin:3px 0 8px 17px;padding:3px 0 3px 13px;border-left:1px solid #d5deed}
.library .tool-variants button{display:flex;align-items:center;justify-content:space-between;gap:8px;border:0;width:100%;padding:8px 9px;margin:0;background:transparent;border-radius:6px;min-height:34px;font-size:12px;text-align:left}
.library .tool-variants button:hover{background:#eaf0fc;color:var(--blue)}
.library .tool-variants button small{margin:0;font-size:10px;white-space:nowrap;color:#8794a6}
.tool-unavailable{position:absolute;left:20px;top:8px;width:5px;height:5px;border-radius:50%;background:#c3cad4;border:1px solid #fbfcfe}
@media(max-width:1250px){.editor-workspace header .team,.editor-workspace header>.separator{display:none}.editor-workspace .editor-layout{grid-template-columns:200px minmax(0,1fr) 250px}.editor-title #save-state{display:none}}
@media(max-width:800px){
 .editor-workspace header{height:auto;min-height:96px;flex-basis:auto;padding:10px 12px;flex-wrap:wrap;gap:5px}
 .editor-workspace .project-picker{max-width:calc(100% - 60px);min-width:140px;flex:1}
 #editor-toolbar{flex-basis:100%;gap:8px}.editor-title h1{font-size:13px;max-width:130px}
 #editor-toolbar>.actions{gap:4px}#editor-toolbar button{padding:6px;min-height:32px;font-size:11px;gap:4px}
 #editor-toolbar button .ui-icon{width:15px;height:15px;flex-basis:15px}
 #editor-toolbar .workspace-toggle{display:inline-flex}
 .editor-workspace .editor-layout{grid-template-columns:minmax(0,1fr)}
 .editor-workspace .library,.editor-workspace .inspector{display:none;position:absolute;top:0;bottom:0;z-index:20;background:#fff;width:250px;max-width:80%;border:1px solid var(--line);box-shadow:0 5px 24px #1b30451a}
 .editor-workspace .library{left:0}.editor-workspace .inspector{right:0}
 .editor-workspace .show-library>.library,.editor-workspace .show-inspector>.inspector{display:block}
}
