.avatar-crop-dialog{width:min(460px,calc(100vw - 24px));max-height:calc(100dvh - 24px);margin:auto;padding:22px;border:1px solid #e9e7e2;border-radius:20px;background:#faf9f6;color:#25272c;overflow:auto;box-shadow:0 16px 70px #12151e33}.avatar-crop-dialog::backdrop{background:#14182199}.avatar-crop-dialog h2{margin:0 0 8px;font-size:19px}.avatar-crop-dialog p{font-size:12px;color:#858a91;line-height:1.6;margin:8px 0 14px}.avatar-crop-stage{width:min(100%,320px,calc(100dvh - 260px));min-width:120px;aspect-ratio:1;position:relative;margin:14px auto;background:#202630;border:2px solid #fff;outline:1px solid #dedbd7;overflow:hidden}.avatar-crop-stage canvas{position:absolute;inset:0;display:block;width:100%;height:100%;touch-action:none;cursor:grab}.avatar-crop-stage canvas:active{cursor:grabbing}.avatar-crop-stage canvas:focus-visible{outline:3px solid #ff3947;outline-offset:-4px}.avatar-crop-grid{position:absolute;inset:0;pointer-events:none;background:linear-gradient(to right,transparent 33%,#ffffff5c 33%,#ffffff5c calc(33% + 1px),transparent calc(33% + 1px),transparent 66%,#ffffff5c 66%,#ffffff5c calc(66% + 1px),transparent calc(66% + 1px)),linear-gradient(to bottom,transparent 33%,#ffffff5c 33%,#ffffff5c calc(33% + 1px),transparent calc(33% + 1px),transparent 66%,#ffffff5c 66%,#ffffff5c calc(66% + 1px),transparent calc(66% + 1px))}.avatar-crop-tools{display:flex;gap:16px;align-items:center}.avatar-crop-tools label{flex:1;min-width:0;font-size:12px;color:#707780}.avatar-crop-tools input{display:block;width:100%;margin:10px 0;accent-color:#ff3947}.avatar-crop-tools canvas{width:60px;height:60px;border-radius:50%;border:1px solid #e4e1dd;flex:none}.avatar-crop-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:16px}.avatar-crop-actions button{min-height:42px;padding:10px 20px;border-radius:10px;font:inherit;cursor:pointer}.avatar-crop-cancel{background:#fff;border:1px solid #e3dfdb;color:#6f747b}.avatar-crop-actions button:disabled{opacity:.45;cursor:default}@media(max-height:500px){.avatar-crop-dialog{padding:14px}.avatar-crop-dialog h2{font-size:16px}.avatar-crop-dialog p{margin:4px 0;font-size:11px}.avatar-crop-stage{margin:8px auto}.avatar-crop-tools canvas{width:42px;height:42px}.avatar-crop-actions{margin-top:6px}.avatar-crop-tools input{margin:4px 0}}
