/*
 * МОО «ЕДИНСТВО» — социальная лента внутри edinstvo-portal.
 * Автор и правообладатель: Ланцет Семён Борисович
 * License: proprietary / all rights reserved
 */
.ep-feed-shell{padding:30px 0 60px;background:linear-gradient(180deg,#f7f9fb 0,#fff 260px)}
.ep-feed-heading{margin-bottom:18px}
.ep-feed-grid{display:grid;grid-template-columns:minmax(0,1fr) 270px;gap:16px;align-items:start}
.ep-feed-main,.ep-feed-aside{min-width:0}
.ep-feed-main{display:grid;gap:14px}
.ep-feed-aside{display:grid;gap:12px;position:sticky;top:18px}
.ep-stories-card{padding:15px 16px}
.ep-card-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:10px}
.ep-card-head h2{margin:1px 0 0!important;font-size:19px!important}
.ep-stories-card .stories-strip{display:flex;gap:10px;overflow-x:auto;padding:2px 0 4px;scrollbar-width:thin}
.ep-stories-card .story-tile{flex:0 0 82px;min-height:104px;border:1px solid var(--ep-line);border-radius:10px;background:#fff;color:var(--ep-ink)}
.ep-stories-card .story-tile:hover{border-color:#aac4dc;background:#f8fbfd}
.ep-stories-card .story-tile-avatar,.ep-stories-card .story-tile-avatar img{width:54px;height:54px;border-radius:50%;object-fit:cover}
.ep-stories-card .story-tile b{display:block;margin-top:5px;overflow:hidden;text-overflow:ellipsis;font-size:9px;white-space:nowrap}
.ep-stories-card .story-add{background:var(--ep-blue);color:#fff}

/* Social composer: avatar + natural prompt, existing publisher backend remains unchanged. */
.ep-feed-composer>.wall-composer,.ep-feed-composer .wall-composer,.ep-feed-composer>.wall-create-shell{margin:0!important;border:1px solid var(--ep-line)!important;border-radius:var(--ep-radius)!important;background:#fff!important;box-shadow:0 8px 24px rgba(20,48,77,.055)!important}
.ep-feed-create-shell .wall-create-bar{display:flex!important;align-items:center!important;gap:10px!important;padding:12px 13px!important;border:0!important;background:#fff!important}
.ep-feed-create-row{display:flex;align-items:center;gap:10px;min-width:0;flex:1 1 auto}
.ep-feed-create-row>.avatar-sm,.ep-feed-create-row>img{width:42px!important;height:42px!important;flex:0 0 42px;border-radius:50%!important;object-fit:cover}
.ep-feed-create-primary{min-width:0!important;min-height:42px!important;flex:1 1 auto!important;justify-content:flex-start!important;padding:0 14px!important;border:1px solid #dde6ee!important;border-radius:999px!important;background:#f5f7f9!important;color:#66788a!important;text-align:left!important}
.ep-feed-create-primary:hover{border-color:#c6d5e2!important;background:#eef4f8!important;color:var(--ep-blue)!important}
.ep-feed-create-placeholder{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:11px;font-weight:700}
.ep-feed-create-shell .wall-create-tools{flex:0 0 auto}
.ep-feed-create-shell .wall-create-drafts b{display:none}

.ep-feed-tabs{display:flex;align-items:center;gap:5px;padding:5px;border:1px solid var(--ep-line);border-radius:10px;background:#fff}
.ep-feed-tabs a{padding:8px 12px;border-radius:7px;color:#52657a;font-size:10px;font-weight:850}
.ep-feed-tabs a:hover{background:#f2f6f9;color:var(--ep-blue)}
.ep-feed-tabs a.is-active{background:var(--ep-blue);color:#fff}
.ep-feed-list{display:grid;gap:12px}
.ep-feed-list>.feed-post,.ep-feed-list>.wall-post,.ep-feed-list>article:not(.ep-feed-empty){border:1px solid var(--ep-line)!important;border-radius:var(--ep-radius)!important;background:#fff!important;box-shadow:0 8px 24px rgba(20,48,77,.045)!important}
.ep-feed-list .wall-post-head{padding-top:14px}
.ep-feed-list .wall-post-text{font-size:13px;line-height:1.58}
.ep-feed-list .wall-post-actions{border-top-color:#edf1f5!important}
.ep-feed-empty{padding:28px;text-align:center}
.ep-feed-empty>b{display:block;color:var(--ep-blue);font:600 22px Georgia,"Times New Roman",serif}
.ep-feed-empty p{max-width:500px;margin:7px auto 10px}
.ep-feed-side-card{padding:16px}
.ep-feed-side-card h2{font-size:19px!important}
.ep-feed-side-card p{margin:0 0 11px}
.ep-feed-side-links{display:grid;border-top:1px solid var(--ep-line)}
.ep-feed-side-links a{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:9px 1px;border-bottom:1px solid var(--ep-line);color:#314960;font-size:10px;font-weight:800}
.ep-feed-side-links a:hover{color:var(--ep-blue-3)}
.ep-feed-aside>.ep-weather-wrap{padding:14px}
@media(max-width:980px){.ep-feed-grid{grid-template-columns:1fr}.ep-feed-aside{position:static;grid-template-columns:repeat(2,minmax(0,1fr))}.ep-feed-aside>.ep-weather-wrap{grid-column:1/-1}}
@media(max-width:640px){.ep-feed-shell{padding:18px 0 38px}.ep-feed-heading{align-items:flex-start;flex-direction:column}.ep-feed-grid{gap:10px}.ep-feed-aside{grid-template-columns:1fr}.ep-stories-card{padding:12px}.ep-feed-tabs{overflow-x:auto}.ep-feed-tabs a{flex:0 0 auto}.ep-stories-card .story-tile{flex-basis:72px}.ep-feed-aside>.ep-weather-wrap{grid-column:auto}.ep-feed-create-shell .wall-create-bar{padding:10px!important}.ep-feed-create-row>.avatar-sm,.ep-feed-create-row>img{width:38px!important;height:38px!important;flex-basis:38px}.ep-feed-create-primary{min-height:38px!important;padding-inline:12px!important}.ep-feed-create-placeholder{font-size:10px}.ep-feed-create-shell .wall-create-drafts{display:none}}
