.editor-workspace{max-width:1080px;margin:0 auto}.editor-sources{grid-template-columns:repeat(2,minmax(0,1fr));gap:32px;display:grid}.editor-upload{min-width:0}.editor-upload>label{margin-bottom:12px;font-size:14px;font-weight:500;display:block}.editor-upload input{width:100%;min-width:0;height:50px;color:inherit;background:#fdfdf9;border:1px solid #dfe3d6;border-radius:13px;padding:6px;font-size:13px}.editor-upload input::file-selector-button{height:36px;color:var(--green);font:inherit;cursor:pointer;background:#e9eedc;border:0;border-radius:8px;margin-right:12px;padding:0 14px}.editor-link-input{gap:10px;display:flex}.editor-link-input input{padding:12px;font-size:16px}.editor-link-input .primary-button{flex-shrink:0;width:112px;height:50px;font-size:13px}.editor-link-input input[aria-invalid=true]{border-color:#a96646}.editor-hint{color:var(--muted);margin:10px 0 0;font-size:12px;line-height:1.6}.editor-status{text-align:center;min-height:22px;color:var(--green);margin:18px auto 24px;font-size:13px;line-height:1.6}.editor-layout{grid-template-columns:minmax(0,1fr) 260px;align-items:start;column-gap:32px;display:grid}.editor-preview{grid-area:1/1/span 2;min-width:0;position:sticky;top:12px}.editor-stage{background:#eef2e5;border:1px solid #dfe3d6;border-radius:18px;align-items:center;height:min(560px,100svh - 150px);padding:24px;display:flex;position:relative;overflow:hidden}#editor-placeholder{color:var(--muted);text-align:center;margin:auto;font-size:14px}.editor-image{background-color:#fdfdf9;background-image:linear-gradient(45deg,#dfe4d9 25%,#0000 25%),linear-gradient(-45deg,#dfe4d9 25%,#0000 25%),linear-gradient(45deg,#0000 75%,#dfe4d9 75%),linear-gradient(-45deg,#0000 75%,#dfe4d9 75%);background-position:0 0,0 10px,10px -10px,-10px 0;background-size:20px 20px;flex:none;margin:auto;line-height:0;position:relative;overflow:hidden}.editor-image[data-resizing]{margin:0;position:absolute}#editor-canvas{width:100%;height:100%;display:block}.editor-preview-hint{color:var(--muted);margin:10px 0 0;font-size:12px;line-height:1.6}[data-mode=crop] .editor-image{touch-action:none;cursor:crosshair}.editor-selection{border:2px solid #fff;position:absolute}[data-mode=crop] .editor-selection{cursor:move;box-shadow:0 0 0 10000px #0007}[data-mode=crop] .editor-selection:before,[data-mode=crop] .editor-selection:after{content:"";pointer-events:none;position:absolute}[data-mode=crop] .editor-selection:before{border-block:1px solid #fff7;inset:33.333% 0}[data-mode=crop] .editor-selection:after{border-inline:1px solid #fff7;inset:0 33.333%}[data-mode=resize] .editor-selection{pointer-events:none}.editor-handle{touch-action:none;pointer-events:auto;width:min(32px,25%);height:min(32px,25%);position:absolute}.editor-handle:after{content:"";background:#354f3f;border:2px solid #fff;border-radius:3px;width:min(12px,100%);height:min(12px,100%);position:absolute}[data-small-preview] .editor-handle,[data-small-preview] .editor-controls .editor-hint{display:none}[data-corner=nw]{cursor:nwse-resize;top:0;left:0}[data-corner=ne]{cursor:nesw-resize;top:0;right:0}[data-corner=sw]{cursor:nesw-resize;bottom:0;left:0}[data-corner=se]{cursor:nwse-resize;bottom:0;right:0}[data-corner=ne]:after{right:0}[data-corner=sw]:after{bottom:0}[data-corner=se]:after{bottom:0;right:0}.editor-info{min-height:36px;color:var(--muted);overflow-wrap:anywhere;margin:12px 0 0;font-size:12px;line-height:1.6}.editor-controls{grid-area:1/2;min-width:0}.editor-controls fieldset{border:0;min-width:0;margin:0;padding:0}.editor-controls fieldset:disabled{opacity:.55}.editor-controls legend{margin-bottom:18px;padding:0;font-size:15px;font-weight:500}.editor-field{min-width:0;color:var(--muted);gap:8px;font-size:12px;display:grid}.editor-field input,.editor-field select{width:100%;min-width:0;min-height:44px;color:var(--green);background:#fdfdf9;border:1px solid #dfe3d6;border-radius:10px;padding:10px;font-size:16px}.editor-fields{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin-top:16px;display:grid}.editor-field input:focus-visible,.editor-field select:focus-visible,.editor-upload input:focus-visible{outline-offset:3px;outline:2px solid #8b9f5f}.editor-checkbox{min-height:44px;color:var(--muted);cursor:pointer;align-items:center;gap:10px;margin-top:12px;font-size:13px;display:flex}.editor-checkbox input{width:18px;height:18px;accent-color:var(--green)}.editor-apply,.editor-rotate button{min-height:44px;color:var(--green);background:0 0;border:1px solid #cbd4bf;border-radius:10px;padding:10px 12px;font-size:13px}.editor-apply{width:100%;margin-top:14px}.editor-rotate{grid-template-columns:1fr 1fr;gap:10px;margin-top:18px;display:grid}.editor-rotate button{padding-inline:6px;font-size:12px}.editor-apply:hover:not(:disabled),.editor-rotate button:hover:not(:disabled){background:#e9eedc}.editor-export{border-top:1px solid #dfe3d6;grid-area:2/2;min-width:0;margin-top:24px;padding-top:20px}.editor-export .primary-button{width:100%;height:50px;margin-top:18px}.editor-reset{min-height:44px;color:var(--muted);background:0 0;border:0;border-radius:10px;margin:6px auto 0;padding:8px 12px;font-size:12px;display:block}.editor-reset:hover:not(:disabled){color:var(--green);text-underline-offset:3px;text-decoration:underline}.editor-note{text-align:center;max-width:720px;color:var(--muted);margin:24px auto 0;font-size:12px;line-height:1.7}.editor-note+.editor-note{margin-top:6px}:root[data-theme=dark] .editor-upload input,:root[data-theme=dark] .editor-field input,:root[data-theme=dark] .editor-field select{background:#202923;border-color:#46523e}:root[data-theme=dark] .editor-link-input input[aria-invalid=true]{border-color:#cb9b76}:root[data-theme=dark] .editor-apply:hover:not(:disabled),:root[data-theme=dark] .editor-rotate button:hover:not(:disabled){background:#2b3a2a}:root[data-theme=dark] .editor-upload input::file-selector-button{background:#2b3a2a}:root[data-theme=dark] .editor-stage{background:#202923;border-color:#46523e}:root[data-theme=dark] .editor-apply,:root[data-theme=dark] .editor-rotate button,:root[data-theme=dark] .editor-export{border-color:#46523e}@media (width<=700px) and (height>=501px),(width<=599px){.editor-sources{grid-template-columns:minmax(0,1fr);gap:24px}.editor-workspace:not([data-ready]) .editor-layout{display:none}.editor-status{margin-block:10px 12px}.editor-layout{flex-direction:column;gap:12px;display:flex}.editor-preview{width:100%;position:static}.editor-stage{height:clamp(144px,32svh,300px);padding:16px}.editor-workspace[data-ready]:not([data-small-preview]) .editor-preview-hint{display:none}.editor-info{white-space:nowrap;text-overflow:ellipsis;min-height:0;margin:8px 0 0;line-height:1.5;overflow:hidden}.editor-controls{width:100%;max-width:460px;margin:0 auto}.editor-controls legend{margin-bottom:10px}.editor-fields{gap:12px;margin-top:12px}.editor-checkbox{margin-top:8px}.editor-export{width:100%;max-width:460px;padding:12px 0 calc(6px + env(safe-area-inset-bottom));background:#f7f8f2;grid-template-columns:minmax(0,1fr) minmax(0,1.1fr);align-items:end;gap:6px 12px;margin:0 auto;display:grid}.editor-export .primary-button{height:44px;margin:0;font-size:13px}.editor-reset{grid-column:1/-1;margin:0 auto}:root[data-theme=dark] .editor-export{background:#171e1b}}@media (width<=700px) and (height>=740px){.editor-workspace[data-ready] .editor-export{z-index:2;position:sticky;bottom:0}}@media (width<=700px) and (height>=540px){.editor-preview{z-index:1;background:#f7f8f2;padding-bottom:8px;position:sticky;top:8px}:root[data-theme=dark] .editor-preview{background:#171e1b}}
