.cropx{margin-top:22px;border-top:1px solid var(--line);padding-top:18px}
.cropx[hidden]{display:none}
.cropx-bar{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:6px;background:#3b3b52;color:#fff;border-radius:12px;padding:8px 12px;margin-bottom:10px}
.cropx-bar button{border:0;background:transparent;color:#fff;border-radius:8px;min-width:36px;height:36px;font-size:18px;font-weight:700;cursor:pointer}
.cropx-bar button:hover:not(:disabled){background:rgba(255,255,255,.14)}
.cropx-bar button:disabled{opacity:.35;cursor:not-allowed}
.cropx-bar input{background:rgba(255,255,255,.14);border:0;border-radius:8px;color:#fff;height:36px;text-align:center;font-size:15px;font-weight:700;width:64px}
.cropx-bar input::-webkit-outer-spin-button,.cropx-bar input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}
.cropx-bar input[type=number]{-moz-appearance:textfield}
.cropx-bar .cropx-zoom{width:78px}
.cropx-bar .cropx-sep{width:1px;height:22px;background:rgba(255,255,255,.28);margin:0 6px}
.cropx-bar .cropx-total{font-size:15px;font-weight:700;opacity:.9;margin-right:4px}
.cropx-stage{background:#e9edf3;border:1px solid var(--line);border-radius:14px;padding:18px 14px;max-height:78vh;overflow:auto;text-align:center}
.cropx-page{position:relative;display:inline-block;margin:6px auto;background:#fff;box-shadow:0 4px 18px rgba(15,23,42,.2);text-align:left;line-height:0}
.cropx-page canvas{display:block}
.cropx-clip{position:absolute;inset:0;overflow:hidden;pointer-events:none}
.cropx-clip>div{position:absolute;background:rgba(15,23,42,.5)}
.cropx-skip .cropx-clip>div{background:rgba(15,23,42,.18)}
.cropx-box{position:absolute;border:2px solid #2f80ed;box-sizing:border-box;cursor:move;touch-action:none;outline:none}
.cropx-box:focus-visible{box-shadow:0 0 0 3px rgba(47,128,237,.35)}
.cropx-box.cropx-off{border-color:#98a2b3;border-style:dashed}
.cropx-h{position:absolute;width:14px;height:14px;margin:-7px 0 0 -7px;border-radius:50%;background:#2f80ed;border:2px solid #fff;box-shadow:0 1px 4px rgba(0,0,0,.35);touch-action:none;z-index:2}
.cropx-h::after{content:'';position:absolute;inset:-12px}
.cropx-box.cropx-off .cropx-h{background:#98a2b3}
.cropx-h[data-h=nw]{left:0;top:0;cursor:nwse-resize}.cropx-h[data-h=n]{left:50%;top:0;cursor:ns-resize}.cropx-h[data-h=ne]{left:100%;top:0;cursor:nesw-resize}
.cropx-h[data-h=w]{left:0;top:50%;cursor:ew-resize}.cropx-h[data-h=e]{left:100%;top:50%;cursor:ew-resize}
.cropx-h[data-h=sw]{left:0;top:100%;cursor:nesw-resize}.cropx-h[data-h=s]{left:50%;top:100%;cursor:ns-resize}.cropx-h[data-h=se]{left:100%;top:100%;cursor:nwse-resize}
.cropx-loading canvas{opacity:.25}
.cropx-meta{display:flex;flex-wrap:wrap;gap:8px 16px;align-items:center;justify-content:space-between;margin-top:10px;font-size:13px;color:var(--muted)}
.cropx-meta strong{color:var(--ink,#172033)}
.cropx-scope{display:flex;flex-wrap:wrap;gap:8px;margin-top:10px}
.cropx-scope button{border:1px solid var(--line);background:#fff;border-radius:9px;padding:8px 12px;font-weight:700;font-size:13px;cursor:pointer}
.cropx-scope button:hover{border-color:#e9a4ac;color:var(--red)}
.cropx-hint{margin:8px 0 0;font-size:13px;color:var(--muted);line-height:1.6}
@media(max-width:680px){.cropx-stage{padding:10px 6px}.cropx-bar{gap:4px;padding:6px}.cropx-bar .cropx-sep{display:none}}
