/* Corte (não destrutivo): imagem inteira, área escolhida em destaque, formatos prontos embaixo */
.viewer.cortando .v-stage,.viewer.cortando .v-nav,.viewer.cortando .v-info{display:none}
.viewer.cortando .v-acts{visibility:hidden}
.crop-ui{position:absolute;inset:64px 0 0 0;display:flex;flex-direction:column;z-index:4}
.crop-area{flex:1;min-height:0;display:flex;align-items:center;justify-content:center;padding:16px}
.crop-wrap{position:relative;touch-action:none;cursor:crosshair}
.crop-wrap img{display:block;max-width:calc(100vw - 64px);max-height:calc(100vh - 250px);user-select:none;pointer-events:none}
.crop-box{position:absolute;box-shadow:0 0 0 9999px rgba(0,0,0,.62);outline:2px solid #fff;cursor:move}
.crop-box .g{position:absolute;background:rgba(255,255,255,.35);pointer-events:none}
.crop-box .gv1,.crop-box .gv2{top:0;bottom:0;width:1px}
.crop-box .gh1,.crop-box .gh2{left:0;right:0;height:1px}
.crop-box .gv1{left:33.33%}.crop-box .gv2{left:66.66%}
.crop-box .gh1{top:33.33%}.crop-box .gh2{top:66.66%}
.crop-box .h{position:absolute;width:16px;height:16px;background:#fff;border-radius:50%;box-shadow:0 0 0 3px var(--accent),0 2px 6px rgba(0,0,0,.5);transform:translate(-50%,-50%)}
.crop-box .h[data-h="nw"]{left:0;top:0;cursor:nwse-resize}
.crop-box .h[data-h="n"]{left:50%;top:0;cursor:ns-resize}
.crop-box .h[data-h="ne"]{left:100%;top:0;cursor:nesw-resize}
.crop-box .h[data-h="e"]{left:100%;top:50%;cursor:ew-resize}
.crop-box .h[data-h="se"]{left:100%;top:100%;cursor:nwse-resize}
.crop-box .h[data-h="s"]{left:50%;top:100%;cursor:ns-resize}
.crop-box .h[data-h="sw"]{left:0;top:100%;cursor:nesw-resize}
.crop-box .h[data-h="w"]{left:0;top:50%;cursor:ew-resize}

.crop-bar{display:flex;flex-direction:column;gap:10px;padding:12px 16px 16px;background:rgba(16,16,22,.9);backdrop-filter:blur(16px);border-top:1px solid rgba(255,255,255,.08)}
.crop-presets{display:flex;gap:6px;overflow-x:auto;padding-bottom:2px}
.crop-p{flex:none;flex-direction:column;gap:6px;min-width:76px;padding:8px 10px;font-size:11.5px;font-weight:600;color:#c4c8d2;background:rgba(255,255,255,.06);box-shadow:none;border-radius:10px;corner-shape:round;white-space:normal;text-align:center;line-height:1.2}
.crop-p:hover{background:rgba(255,255,255,.12);color:#fff}
.crop-p.on{background:color-mix(in srgb, var(--accent) 32%, transparent);color:#fff;box-shadow:0 0 0 1.5px var(--accent) inset}
.crop-pv{display:block;border:1.5px solid currentColor;border-radius:3px}
.crop-pv.livre{border-style:dashed}
.crop-acts{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.crop-acts button{border-radius:10px;corner-shape:round}
.crop-acts button:not(.primary){background:rgba(255,255,255,.08);color:#eef0f5;box-shadow:none}
.crop-acts .ic{width:16px;height:16px}
.crop-size{font-size:13px;color:#aab0bb;font-variant-numeric:tabular-nums}
