#contourStudio{width:min(1440px,97vw);max-width:97vw;height:94vh;max-height:94vh;padding:20px;box-sizing:border-box}#contourStudio .dialog-head{margin-bottom:10px}#contourStudio h2{margin:0}.cs-layout{display:grid;grid-template-columns:minmax(350px,1fr) 310px;gap:16px;height:calc(100% - 126px)}.cs-main{display:flex;flex-direction:column;min-height:0}.cs-tools{overflow:auto;padding-right:8px}.cs-tools details{border-bottom:1px solid #dae4df;padding:12px 0}.cs-tools summary{font-weight:700;cursor:pointer;margin-bottom:10px}.cs-tools label{margin-bottom:8px}.cs-bar{display:flex;gap:6px;flex-wrap:wrap;margin-bottom:8px}.cs-bar button{padding:7px 10px}.cs-bar button.active{background:#176b59;color:white}#csCanvas{flex:1;width:100%;min-height:260px;background:#f4f7f5;border:1px solid #cddbd5;border-radius:10px;touch-action:none;user-select:none}#csCanvas path[data-path]{cursor:pointer}#csCanvas circle[data-node]{cursor:move}#csMessage{min-height:22px;font-size:13px;margin:6px 0;color:#31574a}#csMessage.error{color:#b3261e}.cs-path-row{display:flex;gap:6px;align-items:center;margin:5px 0}.cs-path-row input{width:18px}.cs-path-row button{flex:1;text-align:left;padding:6px}.cs-path-row.active button{background:#d9eee4}.cs-footer{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-top:10px}.cs-footer button{padding:9px 13px}#csLibrary{width:min(1080px,95vw);max-width:95vw}#csLibraryList{display:grid;grid-template-columns:repeat(auto-fill,minmax(210px,1fr));gap:14px;max-height:64vh;overflow:auto}.cs-card{border:1px solid #d4e1da;border-radius:12px;padding:12px}.cs-card svg{width:100%;height:140px;background:#f4f7f5}.cs-card h3{overflow-wrap:anywhere}.cs-card button{width:100%;margin-top:8px}.cs-note{font-size:12px;color:#61766b;line-height:1.45}.cs-tools input[type=checkbox]{width:auto}.cs-tools .two{gap:8px}.cs-tools input,.cs-tools select{max-width:100%;box-sizing:border-box}@media(max-width:850px){.cs-layout{grid-template-columns:minmax(260px,1fr) 240px}.cs-tools{font-size:12px}#contourStudio{padding:12px}}
#contourStudio[open]{display:flex;flex-direction:column}#contourStudio .dialog-head,#contourStudio .cs-footer{flex:none}#contourStudio .cs-layout{height:auto;flex:1;min-height:0}#csCanvas{min-height:100px}