.kc-crop{width:min(680px,96vw);max-height:96dvh;padding:0;border:1px solid var(--orchid-border,#aaa);border-radius:12px;background:var(--orchid-surface,#fff);color:var(--bs-body-color,#222)}
.kc-crop::backdrop{background:rgba(0,0,0,.65)}
.kc-crop-heading,.kc-crop-actions,.kc-crop-controls{display:flex;align-items:center;gap:12px;padding:16px}.kc-crop-heading{justify-content:space-between}.kc-crop-actions{justify-content:flex-end}.kc-crop-controls input{flex:1;min-width:0}
.kc-crop-stage{height:min(52dvh,440px);position:relative;overflow:hidden;touch-action:none;background:#333;cursor:move}.kc-crop-stage img{position:absolute;max-width:none;pointer-events:none;user-select:none}
.kc-crop-frame{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);box-shadow:0 0 0 2000px #0008;border:2px dashed #fff;pointer-events:none}
.kc-crop-handle{position:absolute;width:24px;height:24px;border:2px solid #fff;background:#2563eb;border-radius:4px;pointer-events:auto;touch-action:none;padding:0}.kc-crop-nw{left:-12px;top:-12px;cursor:nwse-resize}.kc-crop-ne{right:-12px;top:-12px;cursor:nesw-resize}.kc-crop-sw{left:-12px;bottom:-12px;cursor:nesw-resize}.kc-crop-se{right:-12px;bottom:-12px;cursor:nwse-resize}
.ml-image-tiles{display:flex;flex-wrap:nowrap;gap:12px;overflow-x:auto;max-width:100%;padding:4px 2px 12px;overscroll-behavior-x:contain}.ml-image-tile{position:relative;flex:0 0 144px;width:144px;aspect-ratio:1;min-width:0;border:1px solid var(--orchid-border,#aaa);border-radius:8px;overflow:hidden}.ml-image-tile.is-active{outline:2px solid #2563eb}.ml-image-select{display:flex;align-items:center;justify-content:center;flex-direction:column;width:100%;height:100%;background:transparent;color:inherit;border:0;gap:6px;padding:12px}.ml-image-select img{width:100%;height:100%;object-fit:contain}.ml-image-tile:has(.ml-image-actions) .ml-image-select{padding:44px 12px 12px}.ml-image-actions{position:absolute;top:4px;right:4px;display:flex;gap:4px}.ml-image-actions button{width:36px;height:36px;padding:0;display:grid;place-items:center;border:1px solid #aaa;box-shadow:0 1px 3px #0002}.ml-image-select i{font-size:2rem}
@media(max-width:575px){.kc-crop{width:100%;max-width:100%;max-height:100dvh;border-radius:0}.kc-crop-stage{height:50dvh}.kc-crop-actions button{flex:1}.kc-crop-controls{padding-block:8px}}
