.crop-tool{min-width:0}.crop-controls{display:grid;grid-template-columns:1.5fr 1fr;gap:18px;margin:22px 0}.crop-actions{display:flex;flex-wrap:wrap;gap:8px;align-content:start}.crop-numbers{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin:18px 0}.crop-stage{position:relative;width:100%;overflow:hidden;background:#111;touch-action:none;-webkit-user-select:none;user-select:none}.crop-stage>canvas{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;height:100%;object-fit:contain}.crop-shade{position:absolute;background:#00000080;pointer-events:none}.crop-shade-top,.crop-shade-bottom{left:0;right:0}.crop-shade-top{top:0}.crop-shade-bottom{bottom:0}.crop-shade-left,.crop-shade-right{bottom:auto}.crop-box{position:absolute;border:2px solid #fff;box-shadow:0 0 0 1px #2563eb;outline:none;touch-action:none;cursor:move}.crop-grid{position:absolute;top:0;right:0;bottom:0;left:0;background:linear-gradient(90deg,transparent 33.1%,rgba(255,255,255,.7) 33.3%,transparent 33.7%,transparent 66.3%,rgba(255,255,255,.7) 66.6%,transparent 66.9%),linear-gradient(0deg,transparent 33.1%,rgba(255,255,255,.7) 33.3%,transparent 33.7%,transparent 66.3%,rgba(255,255,255,.7) 66.6%,transparent 66.9%);pointer-events:none;opacity:0}.crop-box:focus .crop-grid,.crop-box:active .crop-grid{opacity:1}.crop-handle{touch-action:none;position:absolute;width:44px;height:44px;min-height:44px;padding:0;border:0!important;background:transparent!important;z-index:2}.handle-nw{left:-22px;top:-22px;cursor:nwse-resize}.handle-n{left:calc(50% - 22px);top:-22px;cursor:ns-resize}.handle-ne{right:-22px;top:-22px;cursor:nesw-resize}.handle-w{left:-22px;top:calc(50% - 22px);cursor:ew-resize}.handle-e{right:-22px;top:calc(50% - 22px);cursor:ew-resize}.handle-sw{left:-22px;bottom:-22px;cursor:nesw-resize}.handle-s{left:calc(50% - 22px);bottom:-22px;cursor:ns-resize}.handle-se{right:-22px;bottom:-22px;cursor:nwse-resize}.crop-output{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin:18px 0}.resize-check{display:flex;gap:8px;align-items:center;min-height:44px}.resize-check input{width:18px}.crop-tool>.result{margin-top:14px}.crop-tool .result{display:flex;align-items:center;gap:14px;flex-wrap:wrap}.crop-tool .result img{object-fit:contain;background:#f1f5f9}.crop-tool .result span{font-weight:600}.crop-tool .crop-output+.button{margin-top:8px}@media(max-width:600px){.crop-controls,.crop-output{grid-template-columns:1fr}.crop-numbers{grid-template-columns:repeat(2,1fr)}.crop-stage{max-height:none}.crop-actions button{flex:1 1 140px}}
