.crop-preview{position:relative;margin:14px auto;max-width:100%;overflow:hidden;background:repeating-conic-gradient(#253329 0 25%,#17241b 0 50%) 0/16px 16px;touch-action:none}.crop-preview canvas{display:block;width:100%;height:100%}.crop-region{position:absolute;border:2px solid #c5f582;box-shadow:0 0 0 1000px #0008;cursor:move;touch-action:none;box-sizing:border-box}.crop-grid{position:absolute;inset:0;pointer-events:none;background:linear-gradient(to right,transparent 32.9%,#fff8 33%,#fff8 33.4%,transparent 33.5%,transparent 66.2%,#fff8 66.3%,#fff8 66.7%,transparent 66.8%),linear-gradient(to bottom,transparent 32.9%,#fff8 33%,#fff8 33.4%,transparent 33.5%,transparent 66.2%,#fff8 66.3%,#fff8 66.7%,transparent 66.8%)}.crop-handle{position:absolute;width:16px;height:16px;background:#c5f582;border:2px solid #18231a;border-radius:3px;touch-action:none}.crop-nw{left:0;top:0;cursor:nwse-resize}.crop-n{left:calc(50% - 8px);top:0;cursor:ns-resize}.crop-ne{right:0;top:0;cursor:nesw-resize}.crop-e{right:0;top:calc(50% - 8px);cursor:ew-resize}.crop-se{right:0;bottom:0;cursor:nwse-resize}.crop-s{left:calc(50% - 8px);bottom:0;cursor:ns-resize}.crop-sw{left:0;bottom:0;cursor:nesw-resize}.crop-w{left:0;top:calc(50% - 8px);cursor:ew-resize}.crop-result{display:flex;align-items:center;justify-content:center;gap:12px;min-height:60px}.crop-result canvas{max-height:100px;max-width:180px;background:#101813}#editor-crop-dialog{width:590px;max-height:90dvh;overflow:auto}.layer-actions{flex-wrap:wrap}.layer-row[draggable=true]{cursor:grab}.layer-row.drag-over{outline:2px solid #c5f582}.snap-guide{position:absolute;background:#f4bd79;pointer-events:none;z-index:4}.snap-guide-x{width:1px;top:0;bottom:0}.snap-guide-y{height:1px;left:0;right:0}.library-projects{display:grid;gap:12px;margin:18px 0}.library-card{display:flex;flex-wrap:wrap;gap:10px;padding:12px;border:1px solid #455743;border-radius:8px;align-items:center}.library-card img{width:72px;height:54px;object-fit:contain;background:repeating-conic-gradient(#253329 0 25%,#17241b 0 50%) 0/12px 12px}.library-card .library-info{flex:1;min-width:120px}.library-card .library-info p{font-size:11px;margin:5px 0}.library-card button{min-height:36px;padding:6px 10px}.library-card input{width:auto}.library-error{color:#ffc299}#library-dialog,#batch-dialog{max-height:90dvh;overflow:auto;width:680px}.version-row{display:flex;gap:8px;align-items:center;margin:8px 0}.version-row span{flex:1}.mask-preview{display:block;max-width:100%;margin:14px auto;touch-action:none;cursor:crosshair;background:repeating-conic-gradient(#253329 0 25%,#17241b 0 50%) 0/16px 16px}#mask-dialog{width:740px;max-height:92dvh;overflow:auto}.mask-settings{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.export-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.editor-actions{max-width:100%}.editor-inspector .property-grid>select{min-width:0}#export-preset{width:100%}.batch-check{display:flex;gap:10px;align-items:center;padding:8px;border-bottom:1px solid #394839}.batch-check input{width:auto}.batch-check span{flex:1}#mask-panel button{min-height:32px;margin:3px}.image-editor dialog .library-card img{border-radius:4px}.image-editor dialog label.inline-label{display:flex;align-items:center;gap:8px}.image-editor dialog label.inline-label input{width:auto}.image-editor dialog button{cursor:pointer}.image-editor dialog .property-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.image-editor dialog input,.image-editor dialog select{max-width:100%}.image-editor dialog canvas{max-width:100%}.image-editor dialog button:disabled{cursor:default;opacity:.45}
@media(max-width:760px){.editor-actions{flex-wrap:wrap}.editor-actions .button{flex:1 1 28%}.crop-preview{max-width:100%}.mask-settings{grid-template-columns:repeat(2,minmax(0,1fr))}.library-card{gap:6px}.image-editor dialog{padding:18px}.image-editor dialog .dialog-actions{gap:8px}.layer-actions button{min-height:40px}.export-options{grid-template-columns:1fr}}

.editor-layers .layer-row{grid-template-columns:24px 22px 26px minmax(0,1fr) 26px}.editor-layers input.layer-multi{width:16px;height:16px;min-height:16px!important;padding:0;margin:0;align-self:center;cursor:pointer}.editor-layers .layer-drag{flex:0 0 24px;cursor:grab;touch-action:none;user-select:none;font-size:18px;padding:4px 0}.editor-layers .layer-drag:active{cursor:grabbing}
