.profile-avatar-editor.help-shell { width: min(600px, calc(100vw - 32px)); max-height: calc(var(--nm-viewport-height, 100dvh) - 32px); margin: 0; padding: 0; overflow: hidden; border: 0; border-radius: 16px; background: transparent; }
.profile-avatar-editor .help-shell__content { --modal-content-inline: 0px; padding: 0 0 56px; }
.profile-avatar-editor .comment-modal__header { box-sizing: border-box; min-height: 54px; margin: 0; padding: 12px 44px; }
.profile-avatar-editor .comment-modal__header h2 { top: 0; }
.profile-avatar-editor .help-shell__divider { margin: 0 0 38px; }
.profile-avatar-editor__preview { position: relative; box-sizing: border-box; width: min(400px, calc(100% - 32px), max(120px, calc(var(--nm-viewport-height, 100dvh) - 280px))); aspect-ratio: 1; margin: 0 auto; overflow: hidden; border-radius: 0; background: #9ca3af; }
.profile-avatar-editor__preview canvas { display: block; width: 100%; height: 100%; touch-action: none; cursor: grab; }
.profile-avatar-editor__preview canvas:active { cursor: grabbing; }
.profile-avatar-editor__preview canvas:focus-visible { outline: 2px solid #339dfb; outline-offset: -2px; }
.profile-avatar-editor__crop-circle { position: absolute; inset: 0; box-sizing: border-box; border: 1px solid #2a9cef; border-radius: 50%; pointer-events: none; }
.profile-avatar-editor__drop-hint { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 20px; color: #fff; font-size: 14px; text-align: center; cursor: pointer; }
.profile-avatar-editor__drop-hint:focus-visible { outline: 2px solid #339dfb; outline-offset: -2px; }
.profile-avatar-editor__preview canvas[hidden], .profile-avatar-editor__crop-circle[hidden], .profile-avatar-editor__drop-hint[hidden], .profile-avatar-editor__image-tools[hidden], .profile-avatar-editor__rail-action[hidden] { display: none; }
.profile-avatar-editor__color-row { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 8px; margin: 20px 16px 0; color: #344255; font-size: 13px; }
.profile-avatar-editor__color-row label { margin-right: 8px; }
.profile-avatar-editor__color-row input[type="color"] { box-sizing: border-box; flex: 0 0 48px; width: 48px; height: 32px; padding: 0; border: 0; border-radius: 3px; background: transparent; cursor: pointer; }
.profile-avatar-editor__color-row input[type="text"] { box-sizing: border-box; width: 84px; height: 32px; padding: 0 7px; border: 1px solid #e2e5e9; border-radius: 8px; color: #344255; background: #fff; font: inherit; }
.profile-avatar-editor__image-tools { display: flex; align-items: center; gap: 7px; width: min(344px, calc(100% - 40px)); margin: 45px auto 0; }
.profile-avatar-editor__image-tools input[type="range"] { flex: 1 1 auto; width: 100%; margin: 0; accent-color: #62b8f4; }
.profile-avatar-editor__image-tools output { flex: 0 0 38px; color: #344255; font-size: 11px; }
.profile-avatar-editor__error { width: min(400px, calc(100% - 32px)); margin: 12px auto 0; color: #b42318; font-size: 13px; }
.profile-avatar-editor__error:empty { display: none; }
.profile-avatar-editor__rail-action[data-icon^="rotate-"] { --icon-art-scale: .72; }
.profile-avatar-editor__color-row input:focus-visible, .profile-avatar-editor__image-tools input:focus-visible { outline: 2px solid #339dfb; outline-offset: 2px; }
@media (max-width: 390px) { .profile-avatar-editor .comment-modal__header { padding-inline: 22px; } .profile-avatar-editor__image-tools { margin-top: 28px; } }
