.avatar-cropper-backdrop { position: fixed; inset: 0; z-index: 1200; display: grid; place-items: center; padding: 18px; background: rgba(15,23,42,.64); }
.avatar-cropper-backdrop.hidden { display: none; }
.avatar-cropper-dialog { display: flex; flex-direction: column; width: min(920px, calc(100vw - 36px)); max-height: calc(100vh - 36px); overflow: hidden; border-radius: 16px; background: #fff; box-shadow: 0 28px 80px rgba(15,23,42,.32); }
.avatar-cropper-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid #e2e8f0; }
.avatar-cropper-head h2 { margin: 0; color: #172033; font-size: 20px; }
.avatar-cropper-close { display: grid; place-items: center; width: 34px; height: 34px; border: 0; border-radius: 9px; background: #f1f5f9; color: #334155; font-size: 25px; cursor: pointer; }
.avatar-cropper-body { display: grid; min-height: 0; padding: 14px; overflow: hidden; background: #777; }
.avatar-cropper-stage { position: relative; justify-self: center; height: min(66vh, 690px); max-width: 100%; aspect-ratio: 9 / 16; overflow: hidden; background: #fff; box-shadow: 0 0 0 1px rgba(255,255,255,.65); cursor: grab; touch-action: none; }
.avatar-cropper-stage.is-dragging { cursor: grabbing; }
.avatar-cropper-stage canvas { display: block; width: 100%; height: 100%; }
.avatar-cropper-grid { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(to right, transparent 33.1%, rgba(255,255,255,.56) 33.2%, rgba(255,255,255,.56) 33.5%, transparent 33.6%, transparent 66.3%, rgba(255,255,255,.56) 66.4%, rgba(255,255,255,.56) 66.7%, transparent 66.8%), linear-gradient(to bottom, transparent 33.1%, rgba(255,255,255,.56) 33.2%, rgba(255,255,255,.56) 33.5%, transparent 33.6%, transparent 66.3%, rgba(255,255,255,.56) 66.4%, rgba(255,255,255,.56) 66.7%, transparent 66.8%); }
.avatar-cropper-toolbar { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 12px 18px 5px; }
.avatar-cropper-toolbar button { width: 34px; height: 34px; border: 1px solid #dbe3ef; border-radius: 9px; background: #fff; color: #334155; font-size: 21px; cursor: pointer; }
.avatar-cropper-toolbar input { width: min(320px, 48vw); accent-color: #3157df; }
.avatar-cropper-help { margin: 2px 18px 9px; color: #64748b; font-size: 12px; text-align: center; }
.avatar-cropper-foot { display: flex; justify-content: flex-end; gap: 9px; padding: 12px 18px 16px; border-top: 1px solid #e2e8f0; }
.avatar-cropper-foot button { padding: 9px 18px; border: 1px solid #dbe3ef; border-radius: 9px; background: #fff; color: #334155; font-weight: 700; cursor: pointer; }
.avatar-cropper-foot .avatar-cropper-confirm { border-color: #3157df; background: #3157df; color: #fff; }
@media (max-width: 640px) { .avatar-cropper-dialog { width: calc(100vw - 18px); max-height: calc(100vh - 18px); } .avatar-cropper-stage { height: min(62vh, 600px); } }
