*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: system-ui, sans-serif; max-width: 800px; margin: 2rem auto; padding: 0 1rem; }
h1 { margin-bottom: 1.5rem; }
section { margin-bottom: 1.5rem; }
label { display: block; margin-bottom: .4rem; font-weight: 600; }
button { cursor: pointer; padding: .4rem .9rem; }

/* v2 cropperjs injects web components into crop-wrap; needs explicit height */
#crop-wrap { height: 400px; position: relative; }
#source-img { display: block; max-width: 100%; }
cropper-canvas { width: 100%; height: 100%; }

#overlays { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: .5rem; }
.overlay-btn { border: 2px solid transparent; padding: 2px; background: none; cursor: pointer; border-radius: 4px; }
.overlay-btn img { width: 64px; height: 64px; object-fit: contain; display: block; }
.overlay-btn.active { border-color: #0070f3; }
.overlay-btn.none-btn { width: 68px; height: 68px; border: 2px solid #ccc; border-radius: 4px; display: flex; align-items: center; justify-content: center; font-size: .75rem; color: #666; }

#preview-wrap { }
#preview-canvas { border: 1px solid #ccc; display: block; max-width: 100%; }

.row { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; margin-top: .5rem; }
