$(function(){
    if (window.location.href.includes('/chtm/app/getcourse/chat')) {
    	$('head').append(`
			<style>
				@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300..700;1,300..700&family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap');

                body {
                    padding-top:40px;
                    background-image:url(/fileservice/file/download/a/954256/sc/252/h/83d7ef8920aca6cc9a1874cd93e3d460.png);
                    background-size:cover;
                }

                .gc-account-leftbar {
                    display:none;
                }

                .Presenter {
                    background-color:transparent
                }

                .DesktopAppearance {
                    height:100%;
                    background:transparent;
                }

                .ModalStack__BaseLayer, .ModalStack__Modal {
                    mask-image:none;
                    -webkit-mask-image:none;
                }

                .DesktopLayoutColumn__presenter {
                    background-color:transparent;
                    margin-bottom:50px;
                }

                .DesktopLayoutColumn__bg {
                    background:transparent;
                    box-shadow:none;
                }

                .PresenterLayout__content {
                    margin-bottom:50px;
                }

                .PresenterLayout__content,
                .DesktopLayoutColumn__content {
                    max-width:1000px;
                }

                /*Шапка*/
                .DesktopLayoutColumn__content.CompactHeader {
                    padding:5px 20px 8px!important;
                    height:unset!important;
                }

                .CompactHeader__background {
                    background: #fff;
                    border-bottom: 1px solid rgba(0, 0, 0, 0.2);
                    border-radius: 5px;
                }

                .CompactHeader__left svg {
                    display:none
                }

                .CompactHeader__back-wrapper:before {
                    content:'';
                    width:24px;
                    height:24px;
                    display:block;
                    mask-image:url(/fileservice/file/download/a/954256/sc/195/h/f811c5b3cd734edfe3c92b5612a85545.svg);
                    mask-size:cover;
                    -webkit-mask-image:url(/fileservice/file/download/a/954256/sc/195/h/f811c5b3cd734edfe3c92b5612a85545.svg);
                    -webkit-mask-size:cover;
                    background:#858FA0
                }

                .CompactHeader__title.TextBlock {
                    font-family: 'Cormorant Garamond', sans-serif;
                    font-weight: 700;
                    font-size: 24px;
                    text-align: center;
                    color: #0b2041;
                    margin-bottom:5px;
                }

                .CompactHeader__description.TextBlock {
                    font-family: 'Inter', sans-serif;
                    font-weight: 400;
                    font-size: 12px;
                    text-align: center;
                    color: #535353;
                }

                /*Тело*/
                .ChatPresenter {
                    background:#fff;
                    border-radius: 5px;
                }

                .ChatPresenter__footer {
                    border-top: 1px solid rgba(0, 0, 0, 0.2);
                }

                .ChatPresenter__footer-message {
                    padding:27px 20px;
                }

                .ChatRichInput {
                    padding:0;
                }

                .ChatRichInput__editor .ProseMirror {
                    padding-left:66px;
                    font-family: 'Inter', sans-serif;
                    font-weight: 400;
                    font-size: 16px;
                    color: #535353;
                }

                .ChatPresenter__footer-user,
                .ChatPresenter__footer-user-current,
                .ChatPresenter__footer-user-group{
                    top:50%;
                    transform:translatey(-50%);
                }

                .ChatPresenter__footer-user-current,
                .ChatPresenter__footer-user-group {
                    left:0;
                    width:46px;
                    height:46px;
                }

                .ChatPresenter__footer-attach {
                    right:20px;
                    top:50%;
                    transform:translatey(-50%);
                    width:20px;
                    height:20px;
                }

                .ChatPresenter__footer-attach:before {
                    content:'';
                    mask-image:url(/fileservice/file/download/a/954256/sc/3/h/430f905a6e3a46f35a05914e4229b983.svg);
                    mask-size:cover;
                    -webkit-mask-image:url(/fileservice/file/download/a/954256/sc/3/h/430f905a6e3a46f35a05914e4229b983.svg);
                    -webkit-mask-size:cover;
                    background:#858FA0;
                    display:block;
                    width:24px;
                    height:24px;
                }

                .ChatPresenter__footer-attach svg {
                    display:none;
                }

                .ChatPresenter__footer-emoji {
                    right:60px;
                    top:50%;
                    transform:translatey(-50%);
                    width:24px;
                    height:24px;
                }

                .ChatPresenter__footer-emoji:before {
                    content:'';
                    mask-image:url(/fileservice/file/download/a/954256/sc/270/h/0829f8de91c0fe7c6138e47fdc866cc9.svg);
                    mask-size:cover;
                    -webkit-mask-image:url(/fileservice/file/download/a/954256/sc/270/h/0829f8de91c0fe7c6138e47fdc866cc9.svg);
                    -webkit-mask-size:cover;
                    background:#858FA0;
                    display:block;
                    width:24px;
                    height:24px;
                }

                .ChatPresenter__footer-emoji svg {
                    display:none;
                }
			</style>
		`)
    }
})