/* V11.7.15: independent crop editor; no changes to original media layout. */
#editpanel .kcrop-open { margin-left:6px; }
#editpanel .assetSlot .kcrop-open { font-size:12px; padding:9px 12px; }
.kcrop-overlay[hidden] { display:none!important; }
.kcrop-overlay { position:fixed; inset:0; z-index:5000; display:flex; align-items:center; justify-content:center; padding:20px; background:rgba(5,6,18,.82); }
.kcrop-dialog { width:min(850px,100%); max-height:94vh; overflow:auto; padding:22px; border-radius:18px; border:1px solid #bda5df; background:#171829; color:#f7f3ff; box-shadow:0 12px 60px #0009; }
.kcrop-dialog h2 { font-size:21px; margin:0 0 8px; }
.kcrop-help { color:#c7bfd7; font-size:13px; line-height:1.45; margin:0 0 15px; }
.kcrop-stage { display:flex; justify-content:center; align-items:center; min-height:200px; padding:12px; border-radius:13px; background:#080a15; overflow:hidden; }
.kcrop-frame { position:relative; overflow:hidden; flex:0 0 auto; width:min(100%,600px); height:auto; border:1px solid #bba4ed88; border-radius:11px; background:#262339; touch-action:none; cursor:grab; user-select:none; }
.kcrop-frame.dragging { cursor:grabbing; }
.kcrop-frame img { width:100%; height:100%; display:block; object-fit:cover; pointer-events:none; user-select:none; }
.kcrop-controls { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; margin-top:17px; }
.kcrop-controls label { display:flex; flex-direction:column; gap:8px; font-size:13px; font-weight:600; }
.kcrop-controls input { width:100%; accent-color:#c9a8ff; }
.kcrop-actions { display:flex; flex-wrap:wrap; justify-content:flex-end; gap:9px; margin-top:20px; }
.kcrop-actions button { border:1px solid #6b6081; border-radius:10px; background:#27243b; color:#f7f3ff; padding:10px 15px; font:inherit; cursor:pointer; }
.kcrop-actions .kcrop-save { background:#c9a8ff; color:#21152f; font-weight:700; }
.kcrop-status { color:#ffb5bc; font-size:12px; margin-top:9px; min-height:15px; }
@media(max-width:620px){.kcrop-controls{grid-template-columns:1fr}.kcrop-dialog{padding:14px}}

/* V11.7.16: editor card previews use the same tall shape as live cards. */
#editpanel #cardSlots .assetSlot .thumb { height:auto; width:min(100%,160px); aspect-ratio:210 / 267; margin-inline:auto; }
#editpanel #cardSlots .assetSlot .thumb img,
#editpanel #cardSlots .assetSlot .thumb video { width:100%; height:100%; object-fit:cover; }
.kcrop-frame video { width:100%;height:100%;display:block;object-fit:cover;pointer-events:none;user-select:none; }
.kcrop-frame img[hidden],.kcrop-frame video[hidden]{display:none!important;}
