.avatar-editor{display:flex;flex-direction:column;align-items:center;margin:0 0 12px}.avatar-choose{display:flex;flex-direction:column;align-items:center;gap:8px;min-width:96px;min-height:96px;padding:0;border:0;background:transparent;color:#126145;box-shadow:none;font-size:13px;font-weight:650}.avatar-choose .avatar-photo{width:84px;height:84px;object-fit:cover;border-radius:50%;border:2px solid #dce8da}.avatar-feedback{font-size:13px;line-height:1.5;color:#a32922;margin:8px 0 0}.avatar-feedback:empty{display:none}.avatar-crop-dialog{width:min(362px,calc(100vw - 28px));max-height:calc(100dvh - 28px);padding:0;border:1px solid #d8e2d6;border-radius:20px;background:#fffefa;color:#1a4030;overflow:hidden;box-sizing:border-box}.avatar-crop-dialog::backdrop{background:#143c2b88;backdrop-filter:blur(3px)}.avatar-crop-dialog[open]{display:flex;flex-direction:column}
.avatar-crop-header{display:flex;flex:none;justify-content:space-between;align-items:center;gap:12px;padding:8px 12px;border-bottom:1px solid #e3e8de}.avatar-crop-header h2{min-width:0;font-size:18px;line-height:24px;margin:0}.avatar-crop-header button{flex:none;width:44px;height:44px;min-height:44px;padding:0;border:0;border-radius:12px;background:#f0f5eb;color:#1c533c;font-size:28px;line-height:1;display:flex;align-items:center;justify-content:center}.avatar-crop-body{min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:12px 16px}.avatar-crop-body canvas{display:block;width:100%;height:auto;aspect-ratio:1;border-radius:14px;background:#e9eee4;touch-action:none;cursor:grab}.avatar-crop-body canvas:active{cursor:grabbing}.avatar-crop-body canvas:focus-visible{outline:2px solid #146e49;outline-offset:3px}.avatar-crop-body>p:not(.avatar-feedback){font-size:12px;line-height:1.5;text-align:center;color:#6d7b6b;margin:10px 0 14px}.avatar-crop-body label{display:flex;align-items:center;gap:12px;min-height:44px;margin:0;font-size:14px}.avatar-crop-body input[type=range]{flex:1;min-width:0;width:auto;min-height:44px;margin:0;padding:0;border:0;background:transparent;accent-color:#08744a}.avatar-crop-actions{display:grid;flex:none;grid-template-columns:1fr 1fr;gap:12px;padding:0 16px 16px}.avatar-crop-actions button{min-width:0;min-height:46px;margin:0;padding:10px 12px;border:1px solid #cbdcc8;border-radius:12px;background:#f2f7ee;color:#145b3d;font-size:14px;font-weight:650}.avatar-crop-actions button:last-child{background:#08744a;color:#fff;border-color:#08744a}.avatar-choose:disabled,.avatar-crop-actions button:disabled{opacity:.6;cursor:default}@media(max-height:650px){.avatar-crop-body canvas{width:min(100%,42dvh);height:auto;max-width:100%;margin:auto}.avatar-crop-header{padding-block:8px}.avatar-crop-body{padding:12px 16px}}@media(prefers-reduced-motion:reduce){.avatar-crop-dialog{scroll-behavior:auto}}

.avatar-editor input[data-avatar-file]{display:none!important}
