.custom-canvas-viewport{width:100%;min-width:0;overflow:auto;--preview-width:400px;--preview-height:300px}
.custom-canvas-wrap{width:var(--preview-width);height:var(--preview-height);max-width:none;box-sizing:content-box;overflow:hidden;background:white;padding:6px;border:2px solid #111;margin:0 auto}
.custom-canvas-wrap .canvas-container{width:var(--preview-width)!important;height:var(--preview-height)!important}
.custom-canvas-wrap canvas{width:var(--preview-width)!important;height:var(--preview-height)!important;max-width:none;aspect-ratio:4/3;image-rendering:pixelated}
.custom-canvas-wrap .canvas-container canvas{width:100%!important;height:100%!important;aspect-ratio:auto;image-rendering:pixelated}
.custom-image #image-editor{background:white}
.custom-field textarea,.custom-field input:not([type=checkbox]):not([type=range]):not([type=file]),.custom-field select{display:block;width:100%;box-sizing:border-box;margin-top:6px;border:1px solid #cbd9d1;border-radius:8px;padding:8px;background:#fff;color:#254b3e;font:inherit}
.custom-field textarea{resize:vertical;min-height:100px;line-height:1.5}
.editor-fields{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.editor-fields .wide{grid-column:1/-1}
.editor-panel{padding:14px;border:1px solid var(--line);border-radius:10px;background:#f8faf8}
.editor-panel h3{font-size:14px;margin:0 0 12px}
.editor-panel[hidden]{display:none}
#image-layers{min-height:110px}
#image-preview{cursor:grab}
.mobile-wallpaper .add-buttons,.mobile-wallpaper .canvas-pin,.mobile-wallpaper .editor-pane-layers,.mobile-wallpaper .editor-tabs,.mobile-wallpaper .desktop-editor-hint{display:none!important}
.mobile-wallpaper .custom-grid{display:block;margin-top:12px}
.mobile-wallpaper .editor-pane-output{margin-top:16px}
.mobile-wallpaper #image-simple-controls{margin-bottom:16px}
.mobile-wallpaper #image-preview{cursor:default;touch-action:pan-y}
.mobile-wallpaper.mobile-image-gestures #image-preview{cursor:grab;touch-action:none}
.mobile-wallpaper .custom-canvas-wrap{margin:0 auto}
.mobile-wallpaper .custom-field textarea{font-size:16px}
.mobile-wallpaper #image-simple-text{font-family:sans-serif}
.custom-image .custom-notice{padding:12px 14px;border-radius:8px;line-height:1.7}
.mobile-wallpaper .custom-notice{margin-top:16px}
.wallpaper-loading .custom-grid{pointer-events:none}
.custom-controls button:disabled,.custom-controls select:disabled,.custom-controls input:disabled,.custom-controls textarea:disabled{opacity:.5;cursor:not-allowed}
@media(max-width:600px){.custom-grid{grid-template-columns:minmax(0,1fr)}.custom-canvas-wrap{margin:0 auto}.custom-field textarea{font-size:16px}}
