.crop-open{overflow:hidden}.avatar-cropper{position:fixed;inset:0;z-index:2100;display:grid;place-items:center;padding:20px;background:#000c}.avatar-cropper>section{width:min(520px,100%);max-height:calc(100vh - 30px);overflow:auto;border:1px solid var(--border);border-radius:15px;background:var(--surface);color:var(--text);box-shadow:0 28px 90px #0009}.avatar-cropper header{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:18px 20px;border-bottom:1px solid var(--border)}.avatar-cropper header>div{display:grid;gap:3px}.avatar-cropper header b{font-size:1rem}.avatar-cropper header small{color:var(--muted)}.avatar-cropper header button{width:40px;height:40px;border:0;border-radius:50%;background:var(--control);color:var(--text);font-size:1.5rem}.crop-stage{position:relative;display:grid;place-items:center;padding:22px;background:#080808;overflow:hidden}.crop-stage canvas{display:block;width:min(400px,100%);height:auto;aspect-ratio:1;border-radius:8px;cursor:grab;touch-action:none;user-select:none}.crop-stage canvas.dragging{cursor:grabbing}.crop-hint{position:absolute;bottom:35px;padding:6px 10px;border-radius:99px;background:#000a;color:#fff;font-size:.67rem;pointer-events:none}.crop-controls{display:grid;grid-template-columns:42px 1fr 42px;align-items:end;gap:10px;padding:18px 20px}.crop-controls button{width:42px;height:42px;border:1px solid var(--border);border-radius:50%;background:var(--surface-2);color:var(--text);font-size:1.3rem}.crop-controls label{display:grid;gap:7px;color:var(--muted);font-size:.72rem}.crop-controls input{width:100%;accent-color:var(--text)}.avatar-cropper footer{display:flex;align-items:center;gap:9px;padding:0 20px 20px}.avatar-cropper footer>span{flex:1}.avatar-cropper footer .button{min-height:40px;font-size:.78rem}@media(max-width:560px){.avatar-cropper{padding:0;align-items:end}.avatar-cropper>section{width:100%;max-height:96vh;border-radius:18px 18px 0 0}.crop-stage{padding:12px}.crop-stage canvas{width:min(360px,100%)}.crop-hint{bottom:24px}.avatar-cropper footer{position:sticky;bottom:0;padding-top:12px;background:var(--surface)}.avatar-cropper footer .text-button{display:none}}
