.image-editor-open{overflow:hidden}.image-editor-dialog{width:min(1180px,calc(100vw - 28px));max-width:none;height:fit-content;max-height:calc(100svh - 28px);padding:0;overflow:hidden;border:0;background:#f7faff;color:#0b3568;box-shadow:0 30px 100px rgba(2,24,54,.42)}.image-editor-dialog::backdrop{background:rgba(2,18,41,.78);backdrop-filter:blur(4px)}.image-editor-shell{display:flex;height:fit-content;max-height:calc(100svh - 28px);min-height:0;flex-direction:column}.image-editor-shell>header{display:flex;flex:0 0 auto;align-items:flex-start;justify-content:space-between;gap:24px;padding:22px 26px;border-bottom:1px solid #cfdeed;background:#fff}.image-editor-shell>header small{font:600 9px "DM Sans",sans-serif;letter-spacing:.2em;color:#5a7592}.image-editor-shell>header h2{margin:5px 0 3px;font-size:clamp(23px,3vw,36px);font-weight:400}.image-editor-shell>header p{margin:0;color:#667c94;font-size:11px}.image-editor-close{flex:0 0 42px;width:42px;height:42px;border:1px solid #c5d5e5;border-radius:50%;background:#fff;color:#0b3568;font-size:25px;cursor:pointer}.image-editor-layout{display:grid;min-height:0;flex:0 1 auto;grid-template-columns:minmax(0,1.35fr) minmax(280px,.65fr);gap:24px;padding:24px;overflow:auto}.image-editor-stage-panel{min-width:0}.image-editor-stage{position:relative;display:grid;width:min(100%,680px);max-height:58svh;margin:auto;aspect-ratio:var(--image-ratio);place-items:center;overflow:hidden;background:#dce7f2;box-shadow:0 0 0 1px #bdcee0}.image-editor-stage canvas{display:block;width:100%;height:100%;touch-action:none;outline:0}.image-editor-stage canvas:focus-visible{box-shadow:inset 0 0 0 3px #398fdc}.image-editor-stage canvas.is-draggable{cursor:grab}.image-editor-stage canvas.is-dragging{cursor:grabbing}.image-editor-drag-hint{position:absolute;left:50%;top:50%;padding:8px 12px;transform:translate(-50%,-50%);border-radius:20px;background:rgba(7,35,71,.78);color:#fff;font-size:10px;pointer-events:none}.image-editor-actual,.image-editor-warning{width:min(100%,680px);margin:11px auto 0;font-size:10px;line-height:1.6}.image-editor-actual{color:#647c96}.image-editor-warning{padding:8px 10px;background:#fff1ce;color:#805d00}.image-editor-controls{display:grid;align-content:start;gap:20px;padding:20px;border:1px solid #cfdeed;background:#fff}.image-editor-controls b{display:block;margin-bottom:9px;font-size:12px}.image-editor-controls small{display:block;margin-top:8px;color:#687f98;font-size:10px;line-height:1.6}.image-editor-position-help{padding:14px;background:#eaf1f8}.image-editor-position-status{min-height:32px}.image-editor-reset{min-height:42px;border:1px solid #0b3568;background:#fff;color:#0b3568;font:500 11px "Noto Sans Thai",sans-serif;cursor:pointer}.image-editor-live>div{display:grid;grid-template-columns:1fr 1fr;gap:9px}.image-editor-live figure{min-width:0;margin:0}.image-editor-live canvas{display:block;width:100%;aspect-ratio:var(--preview-ratio,auto);object-fit:cover;background:#dce7f2}.image-editor-live figcaption{margin-top:5px;color:#647b94;font-size:9px;text-align:center}.image-editor-shell>footer{display:flex;flex:0 0 auto;justify-content:flex-end;gap:9px;padding:15px 24px;border-top:1px solid #cfdeed;background:#fff}.image-editor-shell>footer button{min-width:130px;min-height:44px;padding:10px 18px;border:1px solid #0b3568;background:#fff;color:#0b3568;font:600 12px "Noto Sans Thai",sans-serif;cursor:pointer}.image-editor-shell>footer .image-editor-confirm{background:#0b3568;color:#fff}.image-editor-shell>footer button:disabled{opacity:.55;cursor:wait}.image-size-hint{display:block;margin-top:7px;color:#69809a;font-size:10px;font-weight:400;line-height:1.55}.image-size-hint.is-warning{color:#9a6410}
@media(max-width:820px){.image-editor-dialog{width:calc(100vw - 12px);height:fit-content;max-height:calc(100svh - 12px);border-radius:16px}.image-editor-shell{height:fit-content;max-height:calc(100svh - 12px)}.image-editor-layout{grid-template-columns:1fr;padding:16px}.image-editor-stage{max-height:none}.image-editor-controls{padding:16px}.image-editor-shell>header{padding:17px 16px}.image-editor-shell>footer{position:static;padding:12px 16px}.image-editor-shell>footer button{flex:1;min-width:0}}
@media(max-width:480px){.image-editor-shell>header p{font-size:9px}.image-editor-live>div{grid-template-columns:1fr 1fr}.image-editor-shell>footer{gap:7px}.image-editor-shell>footer button{padding-inline:8px}}
@media(prefers-reduced-motion:reduce){.image-editor-dialog::backdrop{backdrop-filter:none}}
.image-editor-shell>footer{min-height:0}
