.wrap{max-width:1320px}.editor-shell{margin-top:14px}.editor-shell[hidden]{display:none}.editor-shell .workspace{display:grid;grid-template-columns:300px minmax(0,1fr);gap:18px;align-items:start}.editor-shell .card{box-shadow:none;margin:0}.editor-shell .settings h2{font-size:14px;margin:0 0 12px}.editor-shell button{border:1px solid var(--line);border-radius:8px;padding:10px 12px;font:inherit;font-size:14px;cursor:pointer;background:#fff;color:var(--ink);touch-action:manipulation}.editor-shell button:disabled{opacity:.45;cursor:not-allowed}.editor-shell button:hover:not(:disabled){border-color:#91aff3;background:#f4f7fe}.editor-shell .tools{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-bottom:22px}.editor-shell .tools button[aria-pressed=true]{background:#edf3ff;border-color:#5786e8;color:#2059cc}.editor-shell .field{display:flex;justify-content:space-between;align-items:center;gap:10px;margin:14px 0 6px;font-size:14px}.editor-shell .field:has(select){display:block}.editor-shell .field select{display:block;width:100%;margin-top:6px;font-size:13px}.editor-shell input[type=color]{width:52px;height:36px;padding:3px}.editor-shell input[type=range]{width:100%;accent-color:var(--accent);margin:6px 0}.editor-shell .check{display:flex;align-items:center;gap:6px;font-size:14px;margin-top:10px}.editor-shell .help{font-size:12px;color:var(--sub);line-height:1.65}.editor-shell .primary{background:var(--accent);border-color:var(--accent);color:white}.editor-shell .primary:hover:not(:disabled){background:var(--accent-d);color:white}.editor-shell .full{width:100%;margin-top:8px}.editor-shell .secondary{background:#f5f7fa}.editor-shell .history{display:flex;flex-wrap:wrap;gap:6px;margin-top:22px;padding-top:18px;border-top:1px solid var(--line)}.editor-shell .history button{font-size:12px;padding:6px 10px}.editor-shell .result{min-width:0}.editor-shell .preview-head{display:flex;justify-content:space-between;gap:12px;align-items:center}.editor-shell .preview-head h2{margin:0;font-size:17px}.editor-shell .instruction{padding:9px 12px;background:#f1f5fc;border-radius:6px;font-size:13px;margin:14px 0}.editor-shell .view-options{display:flex;gap:14px;flex-wrap:wrap;font-size:12px;margin-bottom:12px}.editor-shell .view-options select{padding:4px 6px;font-size:12px}.editor-shell .viewport{max-height:65vh;min-height:160px;overflow:auto;background:#edf0f4;border:1px solid var(--line);border-radius:8px;overscroll-behavior:contain}.editor-shell .canvas-frame{position:relative;background-color:#fff;background-image:conic-gradient(#e1e5eb 25%,#fff 0 50%,#e1e5eb 0 75%,#fff 0);background-size:20px 20px;margin:auto;line-height:0}.editor-shell .canvas-frame[data-background=white]{background:#fff}.editor-shell .canvas-frame[data-background=black]{background:#17191c}.editor-shell .canvas-frame[data-background=gray]{background:#808080}.editor-shell canvas{display:block;width:100%;height:100%}#edit-overlay{position:absolute;inset:0;touch-action:none;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none;cursor:crosshair}.editor-shell [hidden]{display:none!important}.editor-shell .hint{margin:0;display:block}.editor-shell #options,.editor-shell #singleActions,.editor-shell #bigRow{display:block;border:0;margin:10px 0;padding:0}.editor-shell #options>.lbl,.editor-shell #singleActions>span{display:none}.editor-shell #singleActions .btn{width:100%;margin:5px 0}.editor-shell #stageCard{border:0;border-top:1px solid var(--line);border-radius:0;padding:16px 0 0;margin-top:16px;box-shadow:none}.editor-shell #stageCard .checker{display:none}.editor-shell #stageCard .btn{background:var(--accent);color:white}.editor-shell #stageCard .btn.ghost{background:#eef2f8;color:var(--ink)}.editor-shell #bgRow{display:flex!important}.editor-shell #bgRow.hidden{display:none!important}.editor-shell #toggle{display:none}.editor-shell #preview{display:none!important}body.cutout-ready #dropSingle{padding:14px;background:#f8fafc;border:1px dashed #c6cfdd}.editor-shell .auto-privacy{font-size:12px;color:var(--sub)}.editor-shell .export-summary{font-size:12px;color:var(--sub);margin:8px 0}body.cutout-busy #edit-overlay{pointer-events:none}.editor-shell button:focus-visible,.editor-shell select:focus-visible{outline:3px solid #9ab8fa;outline-offset:2px}@media(max-width:800px){.editor-shell .workspace{display:flex;flex-direction:column;gap:12px}.editor-shell .result{order:0;width:100%}.editor-shell .settings{order:1;width:100%}.editor-shell .viewport{max-height:46vh}.editor-shell .tools{grid-template-columns:repeat(3,1fr);margin-bottom:16px}.editor-shell .card{padding:14px}.editor-shell .instruction{margin:10px 0}.editor-shell #stageCard .row{gap:10px}.editor-shell #stageCard select{max-width:100%;font-size:13px}.editor-shell .field:has(select){display:flex}.editor-shell .field select{width:auto;max-width:75%;margin:0}.editor-shell .result #download{margin-left:auto}.editor-shell #toTrace{font-size:12px}.wrap{padding:12px}.editor-shell .history{margin-top:14px}.editor-shell #edit-autoSlot .hint{line-height:1.7}}
.editor-shell .tool-panel{margin-bottom:16px}.editor-shell .tool-panel .tools{grid-template-columns:repeat(6,minmax(0,1fr));margin-bottom:10px}.editor-shell #status{min-height:24px}.editor-shell #stageCard.export-preview .checker{display:block;max-height:240px;overflow:auto;margin-top:10px}.editor-shell #stageCard .export-preview-label{display:none}.editor-shell #stageCard.export-preview .export-preview-label{display:block;margin:12px 0 0}.editor-shell #stageCard.export-preview #out{width:auto;height:auto;max-width:100%;max-height:220px;margin:auto}body.cutout-ready #preview{display:none!important}@media(max-width:800px){.editor-shell .tool-panel .tools{grid-template-columns:repeat(3,minmax(0,1fr))}.editor-shell .tool-panel{position:relative}.editor-shell .tool-panel button{padding:10px 5px;font-size:13px}}
.editor-shell #status.loading:before{content:"";display:inline-block;width:12px;height:12px;border:2px solid #cbd5e1;border-top-color:var(--accent);border-radius:50%;animation:spin .8s linear infinite;margin-right:7px;vertical-align:-2px}.editor-shell #status.error{color:var(--warn)}.editor-shell .tool-panel #status:empty{display:none}
.editor-shell #run{background:var(--accent);border-color:var(--accent);color:white}.editor-shell #run:hover:not(:disabled){background:var(--accent-d)}
.editor-shell .selection-shape-options{display:flex;gap:10px;flex-wrap:wrap;margin:10px 0}.editor-shell .selection-shape-options label{display:flex;align-items:center;gap:6px;font-size:13px}.editor-shell .selection-shape-options select{padding:6px;max-width:180px}.editor-shell #edit-overlay{touch-action:none}.editor-shell .tool-panel .tools{grid-template-columns:repeat(7,minmax(0,1fr))}@media(max-width:800px){.editor-shell .tool-panel .tools{grid-template-columns:repeat(3,minmax(0,1fr))}.editor-shell .selection-shape-options{gap:6px}.editor-shell .selection-shape-options label{flex:1;min-width:135px}.editor-shell .selection-shape-options select{max-width:100%;min-width:0}}
.editor-shell #edit-overlay:focus{outline:none}
.editor-shell .selection-detection{margin:12px 0;padding:10px;border:1px solid var(--line);border-radius:8px;background:#f8fafc}.editor-shell .selection-detection .full{margin-top:0}.editor-shell .selection-detection input[type=number]{width:66px;min-width:0;padding:6px;border:1px solid var(--line);border-radius:5px;font:inherit}.editor-shell .selection-detection .help{margin-bottom:0}
