.image-crop-trigger{position:absolute;inset:10px 10px auto auto;z-index:4;display:grid;place-items:center;width:36px;height:36px;padding:7px;border:0;border-radius:50%;background:#0006;color:#fff;cursor:pointer}.image-crop-trigger svg{width:22px;height:22px}.image-crop-trigger:disabled{opacity:.45;cursor:default}.image-crop-dialog{position:fixed;inset:0;margin:auto;width:min(480px,calc(100vw - 32px));max-height:90dvh;overflow:auto;padding:16px;border:1px solid #18181b;border-radius:24px;background:#0a0b0c;color:white;box-shadow:0 25px 50px #0008;box-sizing:border-box;z-index:5100;font-family:inherit}.image-crop-dialog::backdrop{background:#000b}.image-crop-dialog header{display:flex;align-items:center;justify-content:space-between;margin-bottom:16px}.image-crop-dialog h2{font-size:18px;font-weight:600;letter-spacing:-.09px;margin:0}.image-crop-dialog header button{display:grid;place-items:center;background:none;border:0;color:white;font-size:24px;width:24px;height:24px;padding:0}.image-crop-preview{display:flex;justify-content:center;align-items:center;min-height:80px;overflow:hidden;margin-bottom:16px}.image-crop-stage{position:relative;max-width:100%;line-height:0;overflow:hidden;touch-action:none;user-select:none}.image-crop-stage img{display:block;max-width:100%;max-height:min(400px,48dvh);width:auto;height:auto;transform-origin:center;pointer-events:none}.image-crop-selection{position:absolute;box-sizing:border-box;border:1px dashed #fff;box-shadow:0 0 0 2000px #0008;cursor:move;touch-action:none}.image-crop-selection:focus-visible{outline:2px solid #54a9e7;outline-offset:3px}.image-crop-handle{position:absolute;display:block;width:8px;height:8px;background:#333;border:1px solid #fff;box-sizing:border-box;transform:translate(-50%,-50%)}.handle-nw{left:0;top:0;cursor:nwse-resize}.handle-n{left:50%;top:0;cursor:ns-resize}.handle-ne{left:100%;top:0;cursor:nesw-resize}.handle-e{left:100%;top:50%;cursor:ew-resize}.handle-se{left:100%;top:100%;cursor:nwse-resize}.handle-s{left:50%;top:100%;cursor:ns-resize}.handle-sw{left:0;top:100%;cursor:nesw-resize}.handle-w{left:0;top:50%;cursor:ew-resize}.image-crop-ratios{margin:0 0 16px;padding:0;border:0;min-width:0}.image-crop-ratios legend{font-size:14px;text-align:left;margin-bottom:8px}.image-crop-ratios>div{display:flex;gap:8px}.image-crop-ratios button{flex:1;min-width:0;padding:6px 2px;border-radius:8px;border:1px solid #27272a;background:#18181b;color:white;font:inherit;font-size:12px;white-space:nowrap}.image-crop-ratios button[aria-pressed=true]{background:#3f3f46;border-color:#71717a}.image-crop-zoom{display:block;margin-bottom:16px;font-size:14px}.image-crop-zoom>span{display:flex;justify-content:space-between;margin-bottom:8px}.image-crop-zoom output{opacity:.6}.image-crop-zoom input{display:block;width:100%;height:6px;margin:0;appearance:none;border:0;border-radius:100px;cursor:pointer}.image-crop-zoom input::-webkit-slider-thumb{appearance:none;width:14px;height:14px;border-radius:50%;background:white}.image-crop-zoom input::-moz-range-thumb{width:14px;height:14px;border:0;border-radius:50%;background:white}.image-crop-dialog footer{display:flex;flex-direction:column;gap:8px}.image-crop-dialog footer button{width:100%;border:0;border-radius:100px;font-size:14px;padding:10px;font-family:inherit}.image-crop-confirm{background:#fff;color:#09090b}.image-crop-cancel{background:transparent;color:white}.image-crop-dialog button:disabled{opacity:.5}.image-crop-dialog p[role=alert]{font-size:13px;color:#f3b8b8;margin:0 0 12px}.image-crop-upload{position:relative}.reference-slot:has(>.image-crop-trigger)>.reference-remove{inset-inline-end:auto;inset-inline-start:10px;top:10px;width:36px;height:36px;z-index:4}.training-source-tools .image-crop-trigger{position:static}.reference-thumbs>div>.image-crop-trigger{inset-inline-end:2px;inset-inline-start:auto;top:2px}.reference-thumbs>div:has(>.image-crop-trigger)>button:not(.image-crop-trigger){inset-inline-start:2px;inset-inline-end:auto}@media(max-width:768px){.image-crop-stage img{max-height:min(300px,45dvh)}.image-crop-ratios>div{gap:5px}.image-crop-ratios button{font-size:11px}.image-crop-handle:after{content:"";position:absolute;inset:-8px}}