.diagram-editor-ui{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;color:#304340;background:#f7f9fa;font-synthesis:none;font-weight:400;font-size:13px;-webkit-font-smoothing:antialiased;--green: #198b72;--border: #e5ebea;--muted: #95a29f}:where(.diagram-editor-ui) *{box-sizing:border-box}.diagram-editor-ui{margin:0}:where(.diagram-editor-ui) button,:where(.diagram-editor-ui) input,:where(.diagram-editor-ui) textarea{font:inherit}:where(.diagram-editor-ui) button{cursor:pointer}:where(.diagram-editor-ui) button:disabled{cursor:default;opacity:.35}:where(.diagram-editor-ui) button,:where(.diagram-editor-ui) a,:where(.diagram-editor-ui) input,:where(.diagram-editor-ui) textarea{outline-offset:4px}:where(.diagram-editor-ui) button:focus-visible,:where(.diagram-editor-ui) a:focus-visible{outline:2px solid #239b80}:where(.diagram-editor-ui) button{color:inherit}:where(.diagram-editor-ui) button svg{flex-shrink:0}:where(.diagram-editor-ui) a{text-decoration:none;color:inherit}:where(.diagram-editor-ui) input,:where(.diagram-editor-ui) textarea{color:#354743}:where(.diagram-editor-ui) button{transition:background .15s,color .15s,box-shadow .15s}:where(.diagram-editor-ui) button:hover:not(:disabled){filter:brightness(.98)}:where(.diagram-editor-ui) button:disabled:hover{filter:none}.diagram-editor-ui .button{height:36px;display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:0 13px;border-radius:6px;font-size:11px;font-weight:500;border:1px solid transparent;white-space:nowrap}.diagram-editor-ui .button.primary{background:#208a70;color:#fff;box-shadow:0 2px 2px #218b7010}.diagram-editor-ui .button.primary:hover{background:#177d65}.diagram-editor-ui .button.secondary{background:#fff;border-color:#e0e7e3;color:#667970}.diagram-editor-ui .button.secondary:hover{background:#f8faf8}.diagram-editor-ui .icon-button{display:flex;align-items:center;justify-content:center;width:31px;height:31px;padding:0;background:none;border:0;border-radius:5px;color:#849890}.diagram-editor-ui .icon-button:hover:not(:disabled){background:#edf4f0;color:#23886c}.diagram-editor-ui .toolbar-separator{width:1px;height:19px;background:#e4eae7;display:block;margin:0 9px}.diagram-editor-ui .script-error{background:#fff0e9;border:1px solid #f2dcd0;color:#b0755a;padding:12px;border-radius:7px;margin-top:13px;font-size:11px;line-height:1.8}@media(prefers-reduced-motion:reduce){:where(.diagram-editor-ui) *{transition:none!important}}.diagram-editor-ui .standalone-script{display:flex;flex-direction:column;gap:16px;flex:1;min-height:0;padding:18px 24px;background:#f5f8f6}.diagram-editor-ui .script-input-section,.diagram-editor-ui .script-preview-section{display:flex;flex-direction:column;min-height:0;gap:10px}.diagram-editor-ui .script-input-section{flex:0 0 35%}.diagram-editor-ui .script-preview-section{flex:1}.diagram-editor-ui .script-section-heading{display:flex;justify-content:space-between;align-items:center;min-height:30px;gap:16px}.diagram-editor-ui .script-section-heading label,.diagram-editor-ui .script-section-heading h2{margin:0;font-size:14px;font-weight:600;color:#395449}.diagram-editor-ui .script-section-heading>span{font-size:10px;color:#87998c}.diagram-editor-ui .script-input-section textarea{flex:1;min-height:80px;resize:none;width:100%;padding:14px 16px;border:1px solid #dce6df;border-radius:9px;font:13px/1.7 ui-monospace,SFMono-Regular,Consolas,monospace;color:#354c41;background:#fff;-moz-tab-size:2;tab-size:2}.diagram-editor-ui .script-input-section textarea:focus{outline:2px solid #79b49a;outline-offset:-1px}.diagram-editor-ui .script-input-section .script-error{margin:0;padding:6px 10px;max-height:70px;overflow:auto;flex-shrink:0}.diagram-editor-ui .script-preview-area{flex:1;min-height:0;overflow:auto;border:1px solid #dce6df;border-radius:9px;background:#fff}.diagram-editor-ui .script-preview-tools{display:flex;align-items:center;border-radius:7px;background:#eaf0ec;padding:2px}.diagram-editor-ui .preview-fit{border:0;background:none;min-width:45px;font-size:11px;color:#617c6a;padding:5px}.diagram-editor-ui .script-input-section{flex-basis:30%}.diagram-editor-ui .script-preview-section{flex:3}.diagram-editor-ui .script-code-section{display:flex;flex-direction:column;flex:1;min-height:0;gap:8px}.diagram-editor-ui .script-code-section h2{font-size:12px}.diagram-editor-ui .script-code-section pre{flex:1;min-height:0;overflow:auto;margin:0;padding:10px 14px;border:1px solid #dce6df;border-radius:8px;background:#fff;font:11px/1.6 ui-monospace,SFMono-Regular,Consolas,monospace;white-space:pre-wrap;overflow-wrap:anywhere}.diagram-editor-ui .script-heading-actions{display:flex;align-items:center;gap:8px}.diagram-editor-ui .script-heading-actions>span{font-size:10px;color:#87998c}.diagram-editor-ui .script-heading-actions .button,.diagram-editor-ui .script-code-section .button{height:29px;padding:0 11px}.diagram-editor-ui .diagram-preview{width:100%;min-height:100%;display:flex;align-items:center;justify-content:center;padding:8px}.diagram-editor-ui .diagram-preview>svg{flex-shrink:0}.diagram-editor-ui .script-notice{margin:0;font-size:11px;color:#527b64}.diagram-editor-ui .standalone-script{width:100%}@media(max-width:760px){.diagram-editor-ui .standalone-script{padding:12px;gap:12px}}@media(max-width:760px){.diagram-editor-ui .script-section-heading{gap:8px;flex-wrap:wrap}}@media(max-width:760px){.diagram-editor-ui .script-heading-actions{gap:4px}}.diagram-editor-ui .editor-conversion-bar{display:flex;align-items:center;gap:16px;flex-shrink:0;min-height:54px;padding:9px 20px;background:#fff;border-bottom:1px solid var(--border)}.diagram-editor-ui .editor-conversion-actions{display:flex;gap:8px;flex-shrink:0}.diagram-editor-ui .editor-conversion-bar p{margin:0;font-size:11px;line-height:1.6;color:#758b7d;overflow-wrap:anywhere}.diagram-editor-ui .editor-conversion-bar .editor-conversion-error{color:#a15e43}.diagram-editor-ui .editor-conversion-actions .button{height:32px}@media(max-width:760px){.diagram-editor-ui .editor-conversion-bar{padding:8px 12px;gap:8px;align-items:flex-start;flex-wrap:wrap}}@media(max-width:760px){.diagram-editor-ui .editor-conversion-bar p{font-size:10px}}.diagram-editor-ui .diagram-canvas-controls .icon-button{width:31px;height:30px}.diagram-editor-ui .diagram-canvas-controls .icon-button.active{background:#e9f5ef;color:#258d6d}@media(max-width:900px){.diagram-editor-ui .diagram-canvas-controls .icon-button{width:25px}}.script-preview-frame{position:relative;flex:1;min-height:0;border:1px solid #dce6df;border-radius:9px;overflow:hidden;background:#fff}.diagram-editor-ui .script-scrollport{position:absolute;top:0;right:0;bottom:0;left:0;border:0;border-radius:0;overflow:auto;overscroll-behavior:contain;overflow-anchor:none}.script-scrollport:focus-visible{outline:2px solid #239b80;outline-offset:-2px}.script-scrollport::-webkit-scrollbar{width:12px;height:12px}.script-scrollport::-webkit-scrollbar-track,.script-scrollport::-webkit-scrollbar-corner{background:#f1f5f3}.script-scrollport::-webkit-scrollbar-thumb{background:#8caaa0;border:2px solid #f1f5f3;border-radius:8px}.script-preview-stage{display:grid;place-items:center;width:max-content;height:max-content;min-width:100%;min-height:100%}.script-preview-stage[data-pannable=true]{cursor:grab;-webkit-user-select:none;user-select:none}.script-preview-stage[data-pannable=true]:active{cursor:grabbing}.script-preview-drawing>svg{display:block;width:100%;height:100%;max-width:none!important}.script-preview-map{position:absolute;right:16px;bottom:16px;width:min(140px,26%);height:min(84px,30%);padding:4px;border:1px solid #c7d7cf;border-radius:6px;background:#fffffff2;box-shadow:0 2px 8px #243d3517;pointer-events:none}.script-preview-map svg{display:block;width:100%;height:100%}
