.mochi-crop {
 width:min(620px,calc(100vw - 22px));max-width:none;max-height:calc(100dvh - 18px);
 padding:clamp(12px,3vw,22px);overflow:auto;overscroll-behavior:contain;color:var(--ink);
 border-color:#edcfdf;border-radius:24px;background:#fff9fc;
}
.mochi-crop::backdrop {background:#342334b0;backdrop-filter:blur(4px)}
.mochi-crop .crop-head {display:flex;align-items:end;justify-content:space-between;gap:12px;margin-bottom:11px}
.mochi-crop .crop-kicker {margin:0 0 4px;color:var(--deep);font-size:10px;font-weight:850;letter-spacing:.16em}
.mochi-crop h2 {margin:0;font-size:clamp(21px,4vw,28px);line-height:1.1;letter-spacing:.02em}
.mochi-crop .crop-size {color:var(--mute);font-size:12px;font-variant-numeric:tabular-nums;white-space:nowrap;font-weight:750;background:#f9e9f1;border-radius:999px;padding:5px 9px}
.mochi-crop .crop-stage {
 display:grid;place-items:center;position:relative;min-width:0;height:clamp(145px,52dvh,440px);
 background:radial-gradient(#e5bad11f 1px,transparent 1.5px) 0 0/12px 12px,#332332;border:1px solid #49354a;border-radius:16px;
}
.mochi-crop .crop-picture {position:relative;flex:none;display:block;touch-action:none;user-select:none;-webkit-user-select:none}
.mochi-crop canvas.crop-source {max-width:none;width:100%;height:100%;border:0;border-radius:0;box-shadow:none;pointer-events:none}
.mochi-crop .crop-mask {position:absolute;inset:0;pointer-events:none}
.mochi-crop .crop-mask i {position:absolute;background:#201625a8}
.mochi-crop .crop-outline {position:absolute;border:1px solid #fff5f9;box-shadow:0 0 0 1px #38192a69;touch-action:none;cursor:move}
.mochi-crop .crop-outline::before {
 position:absolute;inset:0;content:'';pointer-events:none;
 background:linear-gradient(to right,transparent 33%,#fffb 33% calc(33% + 1px),transparent calc(33% + 1px) 66%,#fffb 66% calc(66% + 1px),transparent calc(66% + 1px)),linear-gradient(to bottom,transparent 33%,#fffb 33% calc(33% + 1px),transparent calc(33% + 1px) 66%,#fffb 66% calc(66% + 1px),transparent calc(66% + 1px));
}
.mochi-crop .crop-handle,.mochi-crop .crop-move {
 position:absolute;display:block;margin:0;min-height:0;padding:0;border:0;border-radius:0;background:transparent;touch-action:none;
}
.mochi-crop .crop-move {inset:0;width:100%;height:100%;cursor:move}
.mochi-crop .crop-move:hover,.mochi-crop .crop-handle:hover {background:transparent}
.mochi-crop .crop-move:focus-visible,.mochi-crop .crop-handle:focus-visible {outline:2px solid #fda8d1;outline-offset:1px}
.mochi-crop .crop-handle {width:44px;height:44px;transform:translate(-50%,-50%);z-index:1}
.mochi-crop .crop-handle::after {
 position:absolute;left:50%;top:50%;content:'';width:15px;height:15px;border:3px solid white;filter:drop-shadow(0 1px 1px #4b254c);
}
.mochi-crop .crop-handle--nw {top:0;left:0;cursor:nwse-resize}
.mochi-crop .crop-handle--ne {top:0;left:100%;cursor:nesw-resize}
.mochi-crop .crop-handle--sw {top:100%;left:0;cursor:nesw-resize}
.mochi-crop .crop-handle--se {top:100%;left:100%;cursor:nwse-resize}
.mochi-crop .crop-handle--nw::after {transform:translate(-1px,-1px);border-right:0;border-bottom:0;border-radius:3px 0 0}
.mochi-crop .crop-handle--ne::after {transform:translate(calc(-100% + 1px),-1px);border-left:0;border-bottom:0;border-radius:0 3px 0 0}
.mochi-crop .crop-handle--sw::after {transform:translate(-1px,calc(-100% + 1px));border-right:0;border-top:0;border-radius:0 0 0 3px}
.mochi-crop .crop-handle--se::after {transform:translate(calc(-100% + 1px),calc(-100% + 1px));border-left:0;border-top:0;border-radius:0 0 3px}
.mochi-crop .crop-hint {margin:6px 1px 8px;color:var(--mute);font-size:12px}
.mochi-crop .crop-ratios {display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:5px;margin-bottom:8px}
.mochi-crop .crop-ratios button {min-width:0;min-height:44px;padding:0 2px;border-radius:11px;font-variant-numeric:tabular-nums}
.mochi-crop .crop-ratios button[aria-pressed=true] {background:#f9dce9;border-color:#efbad0;color:#873053}
.mochi-crop .crop-bottom,.mochi-crop .crop-rotate,.mochi-crop .crop-actions {display:flex;align-items:center;gap:5px}
.mochi-crop .crop-bottom {justify-content:space-between;flex-wrap:wrap}
.mochi-crop .crop-bottom button {min-width:44px;min-height:44px;padding:0 9px;border-radius:11px}
.mochi-crop .crop-rotate button {padding:0}
.mochi-crop .crop-actions {margin-left:auto}
.mochi-crop .crop-error {color:#9d2c54;font-size:13px;margin-bottom:0}
@media(max-height:540px) {
 .mochi-crop .crop-stage {height:clamp(110px,42dvh,225px)}
 .mochi-crop .crop-kicker {display:none}
}
@media(max-width:370px) {
 .mochi-crop .crop-actions .primary {font-size:13px}
 .mochi-crop .crop-rotate button {min-width:40px}
}
