.gallery-image-editor *{box-sizing:border-box}.gallery-image-editor{box-sizing:border-box;width:min(760px,96vw);max-height:92dvh;overflow:auto;padding:20px;border:1px solid #9ca3af;border-radius:14px;background:#fff;color:#172033;font:14px/1.8 Tahoma,sans-serif;z-index:2147483647;text-align:right}.gallery-image-editor::backdrop{background:#0009}.gallery-image-editor h2{font-size:20px;font-weight:bold;margin:0 0 8px}.gallery-image-editor p{margin:8px 0}.gallery-image-editor .gie-stage{background:#26303e;display:flex;justify-content:center;margin:12px 0}.gallery-image-editor canvas{display:block;max-width:100%;max-height:48dvh;object-fit:contain;touch-action:none;cursor:move}.gallery-image-editor .gie-controls{display:grid;grid-template-columns:1fr 1fr;gap:12px}.gallery-image-editor label{display:block;margin:8px 0}.gallery-image-editor input[type=number],.gallery-image-editor select{display:block;border:1px solid #64748b;border-radius:5px;padding:7px;max-width:100%;width:100%;background:white;color:#172033}.gallery-image-editor input[type=range]{display:block;width:100%;direction:ltr}.gallery-image-editor input[type=checkbox]{appearance:auto;width:18px;height:18px;vertical-align:middle;margin-left:6px}.gallery-image-editor .gie-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px}.gallery-image-editor button{border:1px solid #64748b;border-radius:6px;background:#102133;color:white;padding:8px 14px;cursor:pointer}.gallery-image-editor button:disabled{opacity:.5;cursor:wait}.gallery-image-editor .gie-error{color:#b91c1c}.gallery-image-editor .gie-output{max-width:100%;max-height:220px;margin:8px auto}.gallery-image-editor [hidden]{display:none!important}.gallery-image-editor :focus-visible{outline:3px solid #2563eb;outline-offset:2px}@media(max-width:480px){.gallery-image-editor{padding:12px}.gallery-image-editor .gie-controls{grid-template-columns:1fr}.gallery-image-editor canvas{max-height:36dvh}}
