.post-btn-go {
    user-select: none;
}

.post-btn-go.focus {
    border: 1px solid #09f9;
    border-left: 1px solid #ddd;
}

.simple-editor {
    position: relative;
    transition: box-shadow 0.2s ease !important;
    z-index: 10002;
}

.simple-editor:focus-within,
.simple-editor.simple-editor-focused {
    box-shadow: 0 0 0 1px #9100ff8a inset, 0 0 20px #9100ff36 !important;
}

.solik-editor-text {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    font-size: 14px;
    line-height: 1.4;
    color: #333;
    border: none;
    outline: none;
    resize: none;
}

.solik-editor-text:focus {
    outline: none;
    border: none;
}

.solik-editor-text:empty:before {
    content: attr(data-placeholder);
    color: #999;
    pointer-events: none;
}

.solik-editor-counter {
    font-size: 12px;
    color: #ccc;
    transition: color 0.2s ease;
}

.resol-simple {
    position: relative;
    z-index: 1;
    transition: z-index 0.1s ease;
}

.resol-simple.resol-simple-focused {
    z-index: 10002;
}

.post-form { 
    min-height: 3em; 
    padding-right: 90px; 
    position: relative; 
}
.post-form-btns {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    display: flex;
    z-index: 2;
}
.post-btn-go {
    background: linear-gradient(0, #ddd, #fff);
    border-radius: 0 5px 5px 0;
    border: 1px solid #ddd;
    cursor: pointer;
    width: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.post-btn-go:hover {
    background: linear-gradient(0, #eee, #fff);
}
.post-btn-go img {
    width: 50%;
    height: auto;
    opacity: 0.7;
    transition: opacity 0.2s;
}
.post-btn-go:hover img {
    opacity: 1;
}
.post-btn-clear {
    background: url(/i/icons/close.png) 50% / 30% no-repeat;
    cursor: pointer;
    width: 36px;
    margin: 3px 1px;
    transition: .2s;
}
.post-btn-clear:hover {
    background: url(/i/icons/close.png) 50% / 30% no-repeat, #fee;
}
.post-form-btns .post-btn-go {
    opacity: 1;
    transition: opacity 200ms ease-out;
}
.post-form:placeholder-shown + label + .post-form-btns .post-btn-go {
    background: linear-gradient(0, #ddd, #fff);
    opacity: 0.3;
}
.post-form:placeholder-shown + label + .post-form-btns .post-btn-go img {
    opacity: 0.5;
}
.post-form:placeholder-shown + label + .post-form-btns .post-btn-clear {
    display: none;
}

.solik-list {
    margin: 0 auto;
    padding: 0 1em;
    position: relative;
}
.solik-item {
    margin-bottom: 4em;
    width: 500px;
    position: relative;
    z-index: 1;
    /* background: url(/i/bg/bg7l.png) #f8f8f8; */
    background: #fff;
    border-radius: 1em;
    text-align: left;
    box-shadow: 0 0 0 1px #0002 inset, 0 0 1em #0001;
    padding: 1em 0;
}
.popup .solik-item {
    box-shadow: 0 0 0 1px #0002 inset, 0 0 1em #0001;
    margin-bottom: 3em;
}
.popup .solik-item:last-child {
    margin-bottom: 2em;
}
/* .solik-chain {
    margin-bottom: 0;
    margin-top: 3em;
} */
.solik-chain:not(:last-child):after {
    content: '';
    display: block;
    width: 2.4em;
    height: 2.4em;
    position: absolute;
    bottom: -3.3em;
    left: 50%;
    transform: translateX(-50%);
    background: url(/i/icons/arrow-up.png) 50% / cover no-repeat;
    border-radius: 50%;
    opacity: .7;
}
.solik-header {
    /* box-shadow: 0 0 0 1px #0001 inset, 0 -1px 0 0 #0000 inset; */
    /* background: url(/i/bg1-2.png) #fff; */
    /* overflow: hidden; */
    position: relative;
    display: flex;
    /* align-items: center; */
    /* opacity: .7; */
    transition: opacity 300ms ease-out;
    /* border-radius: .5em .5em 0 0;  */
    /* border-radius: .5em;  */
    /* margin-bottom: 1em; */
    margin: 0 1em 1em;
    border-radius: .5em;
    /* transition: background 300ms ease-out; */
}

.solik-header:hover {
    background: #2747ff0a;
}
.solik-header-avatar {
    z-index: 10;
    position: relative;
    width: 3em;
    min-width: 3em;
    height: 3em;
    margin-right: .8em;
    /* box-shadow: 0 0 0 1px #0001 inset; */
    border-radius: .5em;
    border: none;
    display: block;
}
.solik-header a.solik-header-avatar:hover {
    opacity: .8;
}
.solik-header-link {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 16em;
    margin: .4em 0 .2em;
}
.solik-header-link a {
    color: #000;
}
.solik-header .solik-header-link a:hover {
    color: #0077cf!important;
}
/* .solik-header-link a:hover {
    background: #a81fa169;
    color: #fff;
    opacity: 1;
} */
.solik-header a {
    border: none;
    position: relative;
    z-index: 10;
}
.solik-header a:hover {
    color: #000!important;
    opacity: 1;
    border: none;
}
.solik-body {
    /* padding: 0 1em; */
    /* border: 1px solid #0001; */
    /* background: #fff; */
    /* border-radius: 0 0 .5em .5em; */
    /* border-top: 0; */
}

.solik-resol {
    padding: 0 1em;
}

.solik-item:hover .solik-header {
    opacity: 1;
}
.popup .solik-item {
    background: #fff;
}
.solik-single {
    width: 100%;
    /* margin-bottom: 0; */
}
.solik-single .solik-header:hover {
    background: transparent;
}
.solik-list.masonry-inited {
    position: relative;
}
.solik-list.masonry-inited .solik-item {
    position: absolute;
    transition: none;
} 
.solik-manage-btn {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 3em;
    background: url(/i/icons/menu.png) 50% / 1.3em no-repeat, #00000028;
    /* border-left: 1px solid #0003; */
    cursor: pointer;
    opacity: .3;
    z-index: 10;
    border-radius: .5em;
}
.solik-manage-btn:hover {
    opacity: .6;
    background: url(/i/icons/menu.png) 50% / 1.3em no-repeat, #0002;
    /* border-left: 1px solid #0002; */
}

.solik-orbiki-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fff;
    border-top: 1px dashed #0001;
    min-height: 3em;
    margin: 0 1px;
    cursor: pointer;
    user-select: none;
}

.solik-orbiki-item .orbik-info {
    flex: 1;
    height: 3em;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 .5em;
}

.solik-orbiki-item .orbik-go {
    height: 3em;
    min-width: calc(3em + 1px);
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
}
.solik-orbiki-item .orbik-go:hover {
    background: linear-gradient(0, #0014ff0f, #ff00ba08);
    box-shadow: 0 0 0 1px #0001;
    z-index: 10;
}

.solik-orbiki-item .orbik-info:hover {
    background: linear-gradient(0, #0014ff0f, #ff00ba08);
    box-shadow: 0 0 0 1px #0001;
    z-index: 10;
}

.solik-orbiki-descr {
    max-height: 0;
    overflow: hidden;
    transition: max-height 200ms ease-out, opacity 200ms ease-out, padding 200ms ease-out;
    opacity: 0;
    padding: 0 .8em 0 1.7em;
    /* background: linear-gradient(to bottom, #eee, #f8f8f8 10%, #f8f8f8 80%, #eee); */
    background: url(/i/bg/bg7l.png);
    filter: contrast(0.97);
    border-top: 0px solid #00000016;
}

.solik-orbiki-descr.expanded {
    max-height: 200px;
    opacity: 1;
    padding: 1.5em .8em 1.5em 1.7em;
    box-shadow: 0 0 0 1px #00000008 inset, 0 0 10px #00000008 inset;
    margin-bottom: -1px;
    position: relative;
}

.solik-item-actions {
    display: flex;
    justify-content: flex-start;
    font-size: 0.85em;
    white-space: nowrap;
    margin: 1.2em 1em 0;
    user-select: none;
}
.solik-item-actions > * {
    margin-right: .5em;
    display: flex;
    line-height: 2em;
}

/* Базовые стили для кнопок */
.solik-item-actions > * > span {
    padding: .3em .8em .2em;
    cursor: pointer;
    border-radius: .5em;
    /* transition: all 200ms ease-out; */
}

/* Кнопка лайка */
/* .solik-item-actions .solik-like-btn {
    background: url(/i/icons/outline/like-psi.png) .8em 50% / 1.3em no-repeat, #f8bbff7d;
    padding: .3em .8em .2em 2.5em;
    color: #961ea3;
    position: relative;
    border-radius: .5em 0 0 .5em;
} */
.solik-item-actions .solik-like-btn {
    background: url(/i/icons/outline/like-blue.png) .8em 50% / 1.3em no-repeat, #b2cdff7d;
    padding: .3em .8em .2em 2.5em;
    color: #2a53a1cf;
    position: relative;
    border-radius: .5em 0 0 .5em;
    /* opacity: .7; */
    /* transition: opacity 300ms ease-out; */
}
.solik-item:hover .solik-item-actions .solik-like-btn {
    /* background: url(/i/icons/outline/like-blue.png) .8em 50% / 1.3em no-repeat, #b2cdff7d; */
    /* opacity: 1; */
}
.solik-item-actions .solik-like-btn:hover {
    background: url(/i/icons/outline/like-blue.png) .8em 50% / 1.3em no-repeat #6c92ff7d;
    color: #4656d7;
}
.solik-item-actions .solik-like-btn.active {
    background: url(/i/icons/outline/like-white.png) .8em 50% / 1.3em no-repeat, linear-gradient(0, #a930cf, #56076f) !important;
    color: #fff;
}
.solik-item-actions .solik-like-btn .loading {
    background: url(/i/ajax-bg-50.gif) #000;
    position: absolute;
    inset: 0;
    opacity: .1;
    border-radius: .5em 0 0 .5em;
    z-index: 2;
    display: none;
}

/* Счетчик лайков */
.solik-item-actions .solik-like-count {
    border-radius: 0 .5em .5em 0;
    background: #5552;
    color: #666;
    margin-left: 1px;
    padding: .3em .5em .2em;
    min-width: 2.2em;
    text-align: center;
    cursor: pointer;
}
.solik-item-actions .solik-like-count.clickable {
}
.solik-item-actions .solik-like-count.clickable:hover {
    background: #3333;
    color: #333;
}
.solik-item-actions .solik-like-count:not(.clickable) {
    cursor: default;
    color: #999;
    opacity: .4;
}

/* Кнопка шаблона */
.solik-item-actions .solik-template-btn > span {
    background: url(/i/icons/outline/solik-psi.png) .8em 50% / 1.3em no-repeat, #f8bbff7d;
    color: #961ea3;
    padding: .3em .8em .2em 2.5em;
    border-radius: .5em;
}
.solik-item-actions .solik-template-btn > span:hover {
    background: url(/i/icons/outline/solik-psi.png) .8em 50% / 1.3em no-repeat, #f6a1ff7d;
    color: rgb(78, 0, 87);
}

/* Кнопка ресола */
/* .solik-item-actions .solik-resol-btn > span:first-child {
    background: url(/i/icons/outline/solik-psi.png) .8em 50% / 1.3em no-repeat, #f8bbff7d;
    color: #961ea3;
    padding: .3em .8em .2em 2.5em;
    border-radius: .5em 0 0 .5em;
} */
.solik-item-actions .solik-resol-btn > span:first-child {
    background: url(/i/icons/outline/solik-blue.png) .8em 50% / 1.3em no-repeat, #b2cdff7d;
    color: #2a53a1cf;
    padding: .3em .8em .2em 2.5em;
    border-radius: .5em 0 0 .5em;
    /* opacity: .7; */
    /* transition: opacity 300ms ease-out; */
}
.solik-item:hover .solik-item-actions .solik-resol-btn > span:first-child {
    /* background: url(/i/icons/outline/solik-blue.png) .8em 50% / 1.3em no-repeat, #b2cdff7d;
    opacity: 1; */
}

/* Счетчик ресолов */
.solik-item-actions .solik-resol-count {
    border-radius: 0 .5em .5em 0;
    background: #5552;
    color: #666;
    margin-left: 1px;
    padding: .3em .5em .2em;
    min-width: 2.2em;
    text-align: center;
    cursor: pointer;
}
.solik-item-actions .solik-resol-count.clickable {
}
.solik-item-actions .solik-resol-count.clickable:hover {
    background: #3333;
    color: #333;
}
.solik-item-actions .solik-resol-count:not(.clickable) {
    cursor: default;
    color: #999;
    opacity: .4;
}
.solik-item-actions .solik-resol-btn > span:first-child:hover {
    background: url(/i/icons/outline/solik-blue.png) .8em 50% / 1.3em no-repeat, #6c92ff7d;
    color: #4656d7;
}
.solik-item-actions > * > span img {
    opacity: .5;
}
.solik-item-actions > * > span:hover img {
    opacity: 1;
}
.solik-item-actions .solik-share-btn {
    background: url(/i/icons/url1.png) 50% / 1.8em no-repeat;
    height: 2.5em;
    width: 2.5em;
    cursor: pointer;
    border-radius: .5em;
    opacity: .7;
}
.solik-item-actions .solik-share-btn:hover {
    opacity: 1;
    background-color: #0001;
}

.resol-expand-btn {
    display: none;
    user-select: none;
}
.resol-content:hover + .resol-expand-btn {
    background: #5558!important;
    backdrop-filter: blur(3px)!important;
}
.resol-expand-btn:hover {
    background: #4448!important;
    backdrop-filter: blur(3px)!important;
}
.resol-content {
    overflow: hidden;
    transition: max-height 300ms ease-out, opacity 200ms ease-out;
    opacity: .5;
    padding: 0 1.2em 1.2em;
    font-size: 0.8em;
}
.resol-container.expanded .resol-content {
    max-height: none !important;
    opacity: .8;
    overflow: visible !important;
}
.resol-container.expanded:hover .resol-content,
.resol-content.expanded:focus-within {
    opacity: .1!important;
}

/* Overlay для анимации обновления содержимого */
.solik-update-overlay {
    position: absolute;
    inset: -1em -1em 1em -1em;
    background: linear-gradient(135deg, #f8bbff40, #d642e340);
    border-radius: .5em;
    z-index: 1000;
    pointer-events: none;
    opacity: 1;
    transition: opacity 1000ms ease-out;
}
.solik-update-overlay.fade-out {
    opacity: 0;
}

.solik-content {
    overflow: hidden;
    position: relative;
    transition: max-height 300ms ease-out;
}
.solik-item.expanded .solik-content {
    max-height: none !important;
    overflow: visible !important;
}

/* Кнопка раскрытия солика */
.solik-expand-btn {
    display: none;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4.4em;
    background: linear-gradient(to top, #555a, #5555);
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #fff;
    font-size: .8em;
    backdrop-filter: blur(2px);
    user-select: none;
    z-index: 5;
    transition: all 200ms ease-out;
}
.solik-content:hover + .solik-expand-btn {
    background: linear-gradient(to top, #666a, #6665);
    backdrop-filter: blur(3px);
}
.solik-expand-btn:hover {
    background: linear-gradient(to top, #777a, #7775);
    backdrop-filter: blur(3px);
}

@media (max-width: 800px) {

    .solik-item {
        margin-bottom: 2em;
    }

}