/* Hedrh UI — أيقونات خفيفة وتصميم خلاصة بأسلوب تويتر/X */
.hi{display:inline-block;width:1.15em;height:1.15em;vertical-align:-.2em;background-color:currentColor;-webkit-mask:var(--hi) center/contain no-repeat;mask:var(--hi) center/contain no-repeat;flex-shrink:0}
.hi-home{--hi:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 10l9-7 9 7v10a2 2 0 0 1-2 2h-4v-7H9v7H5a2 2 0 0 1-2-2z'/%3E%3C/svg%3E")}
.hi-user{--hi:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='8' r='4'/%3E%3Cpath d='M4 21a8 8 0 0 1 16 0'/%3E%3C/svg%3E")}
.hi-video{--hi:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2' y='6' width='14' height='12' rx='2'/%3E%3Cpath d='m16 10 6-3v10l-6-3'/%3E%3C/svg%3E")}
.hi-cart{--hi:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='20' r='1.5'/%3E%3Ccircle cx='18' cy='20' r='1.5'/%3E%3Cpath d='M2 3h3l2.7 12.4a2 2 0 0 0 2 1.6h7.8a2 2 0 0 0 2-1.6L21 7H6'/%3E%3C/svg%3E")}
.hi-landmark{--hi:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 21h18M5 21V10M19 21V10M9.5 21V10M14.5 21V10M2 10l10-7 10 7z'/%3E%3C/svg%3E")}
.hi-chat{--hi:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 12a8.5 8.5 0 0 1-12.6 7.4L3 21l1.6-5.4A8.5 8.5 0 1 1 21 12z'/%3E%3C/svg%3E")}
.hi-bell{--hi:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 8a6 6 0 0 1 12 0c0 7 3 9 3 9H3s3-2 3-9'/%3E%3Cpath d='M10.3 21a1.9 1.9 0 0 0 3.4 0'/%3E%3C/svg%3E")}
.hi-key{--hi:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='7.5' cy='15.5' r='4.5'/%3E%3Cpath d='m10.7 12.3 9.8-9.8M16 7l3 3M19 4l2 2'/%3E%3C/svg%3E")}
.hi-search{--hi:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m21 21-4.3-4.3'/%3E%3C/svg%3E")}
.hi-x{--hi:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 6 6 18M6 6l12 12'/%3E%3C/svg%3E")}
.hi-pin{--hi:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 10c0 6-8 12-8 12S4 16 4 10a8 8 0 0 1 16 0z'/%3E%3Ccircle cx='12' cy='10' r='3'/%3E%3C/svg%3E")}
.hi-cake{--hi:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 21v-8a2 2 0 0 0-2-2H6a2 2 0 0 0-2 2v8M4 16s1.5-1 4-1 4 2 4 2 1.5 1 4 1 4-1 4-1M2 21h20M7 8v3M12 8v3M17 8v3'/%3E%3C/svg%3E")}
.hi-settings{--hi:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3Cpath d='M19.4 15a1.7 1.7 0 0 0 .3 1.8l.1.1a2 2 0 1 1-2.8 2.8l-.1-.1a1.7 1.7 0 0 0-1.8-.3 1.7 1.7 0 0 0-1 1.5V21a2 2 0 1 1-4 0v-.1a1.7 1.7 0 0 0-1.1-1.5 1.7 1.7 0 0 0-1.8.3l-.1.1a2 2 0 1 1-2.8-2.8l.1-.1a1.7 1.7 0 0 0 .3-1.8 1.7 1.7 0 0 0-1.5-1H3a2 2 0 1 1 0-4h.1a1.7 1.7 0 0 0 1.5-1.1 1.7 1.7 0 0 0-.3-1.8l-.1-.1a2 2 0 1 1 2.8-2.8l.1.1a1.7 1.7 0 0 0 1.8.3H9a1.7 1.7 0 0 0 1-1.5V3a2 2 0 1 1 4 0v.1a1.7 1.7 0 0 0 1 1.5 1.7 1.7 0 0 0 1.8-.3l.1-.1a2 2 0 1 1 2.8 2.8l-.1.1a1.7 1.7 0 0 0-.3 1.8V9a1.7 1.7 0 0 0 1.5 1H21a2 2 0 1 1 0 4h-.1a1.7 1.7 0 0 0-1.5 1z'/%3E%3C/svg%3E")}
.hi-tool{--hi:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.8-3.8a6 6 0 0 1-7.9 7.9l-6.9 6.9a2.1 2.1 0 0 1-3-3l6.9-6.9a6 6 0 0 1 7.9-7.9z'/%3E%3C/svg%3E")}
.hi-compass{--hi:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='m16.2 7.8-2.1 6.3-6.3 2.1 2.1-6.3z'/%3E%3C/svg%3E")}
.hi-logout{--hi:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4M16 17l5-5-5-5M21 12H9'/%3E%3C/svg%3E")}
.hi-lock{--hi:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='11' width='18' height='11' rx='2'/%3E%3Cpath d='M7 11V7a5 5 0 0 1 10 0v4'/%3E%3C/svg%3E")}
.hi-bulb{--hi:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 18h6M10 22h4M12 2a7 7 0 0 0-4 12.7c.6.5 1 1.3 1 2.3h6c0-1 .4-1.8 1-2.3A7 7 0 0 0 12 2z'/%3E%3C/svg%3E")}
.hi-star{--hi:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m12 2 3.1 6.3 6.9 1-5 4.9 1.2 6.8L12 17.8 5.8 21l1.2-6.8-5-4.9 6.9-1z'/%3E%3C/svg%3E")}
.hi-zap{--hi:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M13 2 3 14h9l-1 8 10-12h-9z'/%3E%3C/svg%3E")}
.hi-flame{--hi:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8.5 14.5A2.5 2.5 0 0 0 11 12c0-1.4-.5-2-1-3-1.1-2.1-.2-4.1 2-6 .5 2.5 2 4.9 4 6.5 2 1.6 3 3.5 3 5.5a7 7 0 1 1-14 0c0-1.2.4-2.3 1-3.3.2 1.6 1.3 2.8 2.5 2.8z'/%3E%3C/svg%3E")}
.hi-rocket{--hi:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4.5 16.5c-1.5 1.3-2 5-2 5s3.7-.5 5-2c.7-.8.7-2.1-.1-2.9a2.2 2.2 0 0 0-2.9-.1zM12 15l-3-3a22 22 0 0 1 2-3.9A12.9 12.9 0 0 1 22 2c0 2.7-.8 7.5-6 11a22.4 22.4 0 0 1-4 2zM9 12H4s.6-3 2-4c1.6-1.1 5 0 5 0M12 15v5s3-.6 4-2c1.1-1.6 0-5 0-5'/%3E%3C/svg%3E")}
.hi-image{--hi:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='18' height='18' rx='2'/%3E%3Ccircle cx='9' cy='9' r='2'/%3E%3Cpath d='m21 15-3.1-3.1a2 2 0 0 0-2.8 0L6 21'/%3E%3C/svg%3E")}
.hi-mic{--hi:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='9' y='2' width='6' height='12' rx='3'/%3E%3Cpath d='M19 10v1a7 7 0 0 1-14 0v-1M12 18v4'/%3E%3C/svg%3E")}
.hi-chart{--hi:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 3v18h18M18 17V9M13 17V5M8 17v-3'/%3E%3C/svg%3E")}
.hi-heart{--hi:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M19 14c1.5-1.5 3-3.2 3-5.5A5.5 5.5 0 0 0 16.5 3c-1.8 0-3 .5-4.5 2-1.5-1.5-2.7-2-4.5-2A5.5 5.5 0 0 0 2 8.5c0 2.3 1.5 4 3 5.5l7 7z'/%3E%3C/svg%3E")}
.hi-share{--hi:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12v8a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-8M16 6l-4-4-4 4M12 2v13'/%3E%3C/svg%3E")}
.hi-globe{--hi:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M2 12h20M12 2a15.3 15.3 0 0 1 4 10 15.3 15.3 0 0 1-4 10 15.3 15.3 0 0 1-4-10 15.3 15.3 0 0 1 4-10z'/%3E%3C/svg%3E")}
.hi-link{--hi:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10 13a5 5 0 0 0 7.5.5l3-3a5 5 0 0 0-7-7l-1.7 1.7M14 11a5 5 0 0 0-7.5-.5l-3 3a5 5 0 0 0 7 7l1.7-1.7'/%3E%3C/svg%3E")}
.hi-send{--hi:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m22 2-7 20-4-9-9-4z'/%3E%3Cpath d='M22 2 11 13'/%3E%3C/svg%3E")}
.hi-store{--hi:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m2 7 1.5-4h17L22 7M2 7h20v2a3 3 0 0 1-5 2 3 3 0 0 1-5 0 3 3 0 0 1-5 0 3 3 0 0 1-5-2zM4 11v10h16V11M9 21v-6h6v6'/%3E%3C/svg%3E")}
.hi-megaphone{--hi:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m3 11 18-5v12L3 14v-3zM11.6 16.8a3 3 0 1 1-5.8-1.6'/%3E%3C/svg%3E")}
.hi-up{--hi:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 19V5M5 12l7-7 7 7'/%3E%3C/svg%3E")}
.hi-reply{--hi:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 14 4 9l5-5'/%3E%3Cpath d='M4 9h10.5a5.5 5.5 0 0 1 0 11H11'/%3E%3C/svg%3E")}
.hi-alert{--hi:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10.3 3.9 1.8 18a2 2 0 0 0 1.7 3h17a2 2 0 0 0 1.7-3L13.7 3.9a2 2 0 0 0-3.4 0zM12 9v4M12 17h.01'/%3E%3C/svg%3E")}
.hi-sparkle{--hi:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3l1.9 5.8L20 11l-6.1 2.2L12 19l-1.9-5.8L4 11l6.1-2.2z'/%3E%3C/svg%3E")}
.hi-pen{--hi:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M17 3a2.8 2.8 0 1 1 4 4L7.5 20.5 2 22l1.5-5.5z'/%3E%3C/svg%3E")}
.hi-smile{--hi:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M8 14s1.5 2 4 2 4-2 4-2M9 9h.01M15 9h.01'/%3E%3C/svg%3E")}
.hi-heart-fill{--hi:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black' stroke='black' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M19 14c1.5-1.5 3-3.2 3-5.5A5.5 5.5 0 0 0 16.5 3c-1.8 0-3 .5-4.5 2-1.5-1.5-2.7-2-4.5-2A5.5 5.5 0 0 0 2 8.5c0 2.3 1.5 4 3 5.5l7 7z'/%3E%3C/svg%3E")}
.like-btn.text-brand-700 .hi-heart{--hi:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black' stroke='black' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M19 14c1.5-1.5 3-3.2 3-5.5A5.5 5.5 0 0 0 16.5 3c-1.8 0-3 .5-4.5 2-1.5-1.5-2.7-2-4.5-2A5.5 5.5 0 0 0 2 8.5c0 2.3 1.5 4 3 5.5l7 7z'/%3E%3C/svg%3E");color:#f91880}

/* ===== الخلاصة: كروت منفصلة بحواف ===== */
#hedrhFeed{display:flex;flex-direction:column;gap:12px}
#hedrhFeed .hedrh-feed-page{display:flex;flex-direction:column;gap:12px}
#hedrhFeed .hedrh-post-card{margin:0!important}
#hedrhFeed > .hedrh-post-card .reply-form,#hedrhFeed > .hedrh-post-card .post-replies-wrap,
#hedrhFeed .hedrh-feed-page > .hedrh-post-card .reply-form,#hedrhFeed .hedrh-feed-page > .hedrh-post-card .post-replies-wrap{display:none!important}

/* ===== نافذة المنشور والتعليقات: مقاس واحد ثابت ===== */
#imageModal{padding:16px!important}
#imageModal > .bg-white{width:min(980px,94vw)!important;max-width:none!important;height:min(86vh,760px)!important;max-height:none!important;border-radius:18px!important;box-shadow:0 20px 60px rgba(0,0,0,.35)}
#imageModalImgWrap:not(.hidden){flex:0 0 56%;height:100%;width:auto!important}
#imageModalImgWrap img{max-height:100%!important;max-width:100%!important;object-fit:contain}
#imageModalPost{flex:1 1 auto;width:auto!important;height:100%;overflow-y:auto;background:#fff!important;padding:0!important;border:0!important}
#imageModalImgWrap:not(.hidden) + #imageModalPost{border-inline-start:1px solid #eff3f4!important}
#imageModalPost .hedrh-post-card{border:0!important;box-shadow:none!important;border-radius:0!important;margin:0!important}
#imageModalPost .hedrh-post-text{max-height:none!important;overflow:visible!important;-webkit-line-clamp:unset!important;display:block!important}
#imageModalPost .reply-form{display:block!important;margin:0!important;padding:10px 14px!important;border-top:1px solid #eff3f4!important;border-bottom:1px solid #eff3f4!important;position:sticky;top:0;background:#fff;z-index:2}
#imageModalPost .post-replies-wrap{display:block!important;margin:0!important;padding:8px 14px 16px!important;border-top:0!important}
#imageModalPost .extra-reply.hidden{display:block!important}
#imageModalClose{z-index:60}
@media (max-width:768px){
  #imageModal{padding:0!important}
  #imageModal > .bg-white{width:100vw!important;height:100dvh!important;border-radius:0!important;flex-direction:column!important}
  #imageModalImgWrap:not(.hidden){flex:0 0 42%;height:auto}
}

/* شريط التفاعل */
.hedrh-actions{display:flex;align-items:center;justify-content:space-between;max-width:440px;padding:2px 10px 8px!important;margin-top:4px!important;color:#536471!important;gap:0!important}
.hedrh-actions > button{display:inline-flex;align-items:center;gap:6px;padding:7px 8px;border-radius:999px;font-weight:400!important;font-size:13px;color:inherit;margin:0!important;transition:color .15s,background-color .15s}
.hedrh-actions .hi{width:18px;height:18px}
.hedrh-actions .act-label{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.hedrh-actions .open-post-modal-btn:hover{color:#1d9bf0;background:rgba(29,155,240,.1)}
.hedrh-actions .like-btn:hover{color:#f91880;background:rgba(249,24,128,.1)}
.hedrh-actions .share-btn:hover{color:#00ba7c;background:rgba(0,186,124,.1)}
.hedrh-actions .like-btn.text-brand-700{color:#f91880!important}

/* مؤشر التحميل */
.hedrh-feed-loader{display:flex;justify-content:center;gap:6px;padding:22px 0}
.hedrh-feed-loader span{width:7px;height:7px;border-radius:50%;background:#1d9bf0;opacity:.25}
.hedrh-feed-loader.is-loading span{animation:hedrhDot 1s infinite ease-in-out}
.hedrh-feed-loader.is-loading span:nth-child(2){animation-delay:.15s}
.hedrh-feed-loader.is-loading span:nth-child(3){animation-delay:.3s}
@keyframes hedrhDot{0%,80%,100%{opacity:.25;transform:scale(.8)}40%{opacity:1;transform:scale(1)}}
@media (max-width:640px){#hedrhFeed{border-radius:0;border-inline:0}}

/* v3: توزيع الأيقونات على عرض الكرت + زر إغلاق واضح داخل النافذة */
.hedrh-actions{max-width:none!important;justify-content:space-around!important;padding:4px 8px 10px!important}
.hedrh-actions > button{padding:8px 14px!important;font-size:15px!important;gap:8px!important}
.hedrh-actions .hi{width:23px!important;height:23px!important}
.hedrh-actions .ms-auto{margin-inline-start:0!important}
#imageModalClose{position:fixed!important;z-index:70!important;
  top:calc((100vh - min(86vh,760px)) / 2 + 10px)!important;
  left:calc((100vw - min(980px,94vw)) / 2 + 10px)!important;
  width:38px;height:38px;padding:0!important;border-radius:999px;
  display:flex!important;align-items:center;justify-content:center;
  font-size:26px!important;line-height:1!important;
  background:#eef1f4!important;color:#0f1419!important;box-shadow:0 1px 4px rgba(0,0,0,.15)}
#imageModalClose:hover{background:#dfe4e9!important}
#imageModalPost{padding-top:54px!important}
@media (max-width:768px){#imageModalClose{top:10px!important;left:10px!important}}

/* v4: شريط الأقسام — أيقونات خفيفة وتسمية صغيرة */
.hedrh-secnav{gap:4px!important}
.hedrh-secnav-item{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;flex:1 1 0;max-width:120px;padding:8px 6px 6px;border-radius:12px;color:#64748b;font-size:11.5px;font-weight:500;line-height:1.2;white-space:nowrap;position:relative;transition:color .15s,background-color .15s}
.hedrh-secnav-item .hi{width:24px;height:24px}
.hedrh-secnav-item:hover{background:#f1f5f9;color:#0f1419}
.hedrh-secnav-item.is-active{color:#1877d2;font-weight:700}
.hedrh-secnav-item.is-active::after{content:"";position:absolute;bottom:0;width:24px;height:3px;border-radius:3px;background:#1877d2}

/* v5: زر الإغلاق في نفس سطر رأس المنشور بدون مساحة فارغة */
#imageModalPost{padding-top:0!important}
#imageModalPost .hedrh-post-card > header{padding:12px 16px 6px 60px!important;min-height:58px}
#imageModalClose{top:calc((100vh - min(86vh,760px)) / 2 + 12px)!important;left:calc((100vw - min(980px,94vw)) / 2 + 12px)!important;width:34px!important;height:34px!important;font-size:22px!important}
@media (max-width:768px){#imageModalClose{top:12px!important;left:12px!important}}

/* v6: الأيقونات ممتدة على كامل عرض الكرت */
.hedrh-actions{justify-content:space-between!important;padding:4px 18px 10px!important}
.hedrh-actions .like-btn.text-brand-700,.hedrh-actions .like-btn.text-brand-700 .like-count{color:#f91880!important}

/* v7: أيقونات إضافية + دعم الوسم بدون علامات اقتباس */
[class^="hi-"]{display:inline-block;width:1.15em;height:1.15em;vertical-align:-.2em;background-color:currentColor;-webkit-mask:var(--hi) center/contain no-repeat;mask:var(--hi) center/contain no-repeat;flex-shrink:0;font-style:normal}
.hi-camera{--hi:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14.5 4h-5L7 7H4a2 2 0 0 0-2 2v9a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V9a2 2 0 0 0-2-2h-3z'/%3E%3Ccircle cx='12' cy='13' r='3.5'/%3E%3C/svg%3E")}
.hi-calendar{--hi:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='18' rx='2'/%3E%3Cpath d='M16 2v4M8 2v4M3 10h18'/%3E%3C/svg%3E")}
.hi-users{--hi:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='9' cy='7' r='4'/%3E%3Cpath d='M22 21v-2a4 4 0 0 0-3-3.9M16 3.1a4 4 0 0 1 0 7.8'/%3E%3C/svg%3E")}
.hi-mail{--hi:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2' y='4' width='20' height='16' rx='2'/%3E%3Cpath d='m22 7-10 6L2 7'/%3E%3C/svg%3E")}
.hi-phone{--hi:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 16.9v3a2 2 0 0 1-2.2 2 19.8 19.8 0 0 1-8.6-3.1 19.5 19.5 0 0 1-6-6A19.8 19.8 0 0 1 2.1 4.2 2 2 0 0 1 4.1 2h3a2 2 0 0 1 2 1.7c.1 1 .4 1.9.7 2.8a2 2 0 0 1-.5 2.1L8 9.9a16 16 0 0 0 6 6l1.3-1.3a2 2 0 0 1 2.1-.4c.9.3 1.8.6 2.8.7a2 2 0 0 1 1.7 2z'/%3E%3C/svg%3E")}
.hi-building{--hi:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='2' width='16' height='20' rx='2'/%3E%3Cpath d='M9 22v-4h6v4M8 6h.01M16 6h.01M12 6h.01M12 10h.01M12 14h.01M16 10h.01M16 14h.01M8 10h.01M8 14h.01'/%3E%3C/svg%3E")}
.hi-check{--hi:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E")}
.hi-plus{--hi:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E")}
.hi-info{--hi:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M12 16v-4M12 8h.01'/%3E%3C/svg%3E")}
.hi-ban{--hi:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='m4.9 4.9 14.2 14.2'/%3E%3C/svg%3E")}
.hi-repeat{--hi:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m17 2 4 4-4 4'/%3E%3Cpath d='M3 11v-1a4 4 0 0 1 4-4h14M7 22l-4-4 4-4'/%3E%3Cpath d='M21 13v1a4 4 0 0 1-4 4H3'/%3E%3C/svg%3E")}
.hi-shield{--hi:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z'/%3E%3C/svg%3E")}

/* v8: صندوق النشر ونافذة النشر */
.hi-hash{--hi:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 9h16M4 15h16M10 3 8 21M16 3l-2 18'/%3E%3C/svg%3E")}
.hedrh-composer-input{padding:11px 16px!important;font-size:14px!important;color:#64748b!important;cursor:text}
.hedrh-composer-tools{display:flex!important;flex-wrap:nowrap!important;justify-content:space-between!important;gap:2px!important;padding:6px 0 0!important;font-size:13px!important;color:#475569!important}
.hedrh-composer-tools > span{flex:1 1 0;justify-content:center;gap:6px!important;padding:7px 4px;border-radius:999px;cursor:pointer;white-space:nowrap;transition:background-color .15s}
.hedrh-composer-tools > span:hover{background:#f1f5f9}
.hedrh-composer-tools .hi{width:21px;height:21px}
.hedrh-composer-tools .hi-image,.hedrh-modal-tools .hi-image{color:#16a34a}
.hedrh-composer-tools .hi-mic,.hedrh-modal-tools .hi-mic{color:#8b5cf6}
.hedrh-composer-tools .hi-hash,.hedrh-modal-tools .hi-hash{color:#1877d2}
.hedrh-composer-tools .hi-video,.hedrh-modal-tools .hi-video{color:#ef4444}
.hedrh-composer-tools .hi-chart,.hedrh-modal-tools .hi-chart{color:#f59e0b}
.hedrh-modal-tools .hi-smile{color:#eab308}
@media (max-width:480px){.hedrh-composer-tools{font-size:11.5px!important}.hedrh-composer-tools > span{flex-direction:column;gap:3px!important;padding:6px 2px}}
#postModal textarea#modalPostContent{min-height:140px;font-size:15px!important;line-height:1.7}
.hedrh-modal-tools{gap:6px!important;padding-top:8px;border-top:1px solid #f1f5f9;margin-top:6px;font-size:12.5px!important}
.hedrh-modal-tools > label,.hedrh-modal-tools > button,.hedrh-modal-tools > div:not(.ms-auto):not([id]):not(.hidden){border:0!important;background:#f8fafc!important;border-radius:999px!important;padding:7px 12px!important;gap:6px!important;display:inline-flex;align-items:center}
.hedrh-modal-tools > label:hover,.hedrh-modal-tools > button:hover{background:#eef2f7!important}
.hedrh-modal-tools .hi{width:20px;height:20px}
.hedrh-modal-tools > .ms-auto{background:none!important;padding:0!important}
#postModal button[type="submit"]{padding:9px 28px!important;border-radius:999px!important;font-size:15px!important;font-weight:700}
#postModal h2 .hi{width:22px;height:22px}
@media (max-width:767px){.hedrh-modal-tools{justify-content:space-between}.hedrh-modal-tools > label span,.hedrh-modal-tools > button span:not(#recordTimer){font-size:11.5px}}

/* v10: أدوات النشر ممتدة تحت صورة المستخدم + نافذة النشر بارتفاع المحتوى */
.hedrh-composer-tools{margin-inline-start:-52px!important;width:calc(100% + 52px);padding-inline-start:0!important;margin-top:4px}
@media (min-width:768px){#postModal > .animate-fade-in{height:auto!important;align-self:center}}

/* v11: أيقونات السوق */
.hi-folder{--hi:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.7-.9l-.8-1.2A2 2 0 0 0 7.9 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2z'/%3E%3C/svg%3E")}
.hi-coins{--hi:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='8' cy='8' r='6'/%3E%3Cpath d='M18.1 10.4A6 6 0 1 1 10.3 18M7 6h1v4M16.7 13.9l.7.7-2.8 2.8'/%3E%3C/svg%3E")}
.hi-receipt{--hi:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 2v20l2-1 2 1 2-1 2 1 2-1 2 1 2-1 2 1V2l-2 1-2-1-2 1-2-1-2 1-2-1-2 1zM16 8H8M16 12H8M13 16H8'/%3E%3C/svg%3E")}
.hi-clock{--hi:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M12 6v6l4 2'/%3E%3C/svg%3E")}
.hi-inbox{--hi:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 12h-6l-2 3h-4l-2-3H2'/%3E%3Cpath d='M5.5 5.1 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.5-6.9A2 2 0 0 0 16.8 4H7.2a2 2 0 0 0-1.7 1.1z'/%3E%3C/svg%3E")}
.hi-eye{--hi:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 12s3.5-7 10-7 10 7 10 7-3.5 7-10 7S2 12 2 12z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E")}
.hi-eyeoff{--hi:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9.9 4.2A10 10 0 0 1 12 4c6.5 0 10 8 10 8a17 17 0 0 1-2.2 3.2M6.6 6.6A17 17 0 0 0 2 12s3.5 8 10 8a9.7 9.7 0 0 0 5.4-1.6M2 2l20 20M14.1 14.1A3 3 0 0 1 9.9 9.9'/%3E%3C/svg%3E")}
.hi-package{--hi:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 8a2 2 0 0 0-1-1.7l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.7l7 4a2 2 0 0 0 2 0l7-4a2 2 0 0 0 1-1.7z'/%3E%3Cpath d='M3.3 7 12 12l8.7-5M12 22V12'/%3E%3C/svg%3E")}
.hi-bag{--hi:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 2 3 6v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V6l-3-4zM3 6h18M16 10a4 4 0 0 1-8 0'/%3E%3C/svg%3E")}
.hi-tag{--hi:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12.6 2.6A2 2 0 0 0 11.2 2H4a2 2 0 0 0-2 2v7.2a2 2 0 0 0 .6 1.4l8.7 8.7a2.4 2.4 0 0 0 3.4 0l6.6-6.6a2.4 2.4 0 0 0 0-3.4z'/%3E%3Ccircle cx='7.5' cy='7.5' r='1.5'/%3E%3C/svg%3E")}
.hi-trash{--hi:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 6h18M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2M10 11v6M14 11v6'/%3E%3C/svg%3E")}
.hi-refresh{--hi:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 12a9 9 0 0 1-15 6.7L3 16M3 12a9 9 0 0 1 15-6.7L21 8M21 3v5h-5M3 21v-5h5'/%3E%3C/svg%3E")}
.hi-lifebuoy{--hi:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Ccircle cx='12' cy='12' r='4'/%3E%3Cpath d='m4.9 4.9 4.3 4.3M14.8 14.8l4.3 4.3M14.8 9.2l4.3-4.3M4.9 19.1l4.3-4.3'/%3E%3C/svg%3E")}
.hi-grid{--hi:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='7' height='7' rx='1'/%3E%3Crect x='14' y='3' width='7' height='7' rx='1'/%3E%3Crect x='3' y='14' width='7' height='7' rx='1'/%3E%3Crect x='14' y='14' width='7' height='7' rx='1'/%3E%3C/svg%3E")}
.hi-external{--hi:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 3h6v6M10 14 21 3M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6'/%3E%3C/svg%3E")}
.hi-car{--hi:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M19 17h2v-4l-2-5H5L3 13v4h2M5 17a2 2 0 1 0 4 0 2 2 0 1 0-4 0M15 17a2 2 0 1 0 4 0 2 2 0 1 0-4 0M9 17h6M3 13h18'/%3E%3C/svg%3E")}
.hi-briefcase{--hi:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2' y='7' width='20' height='14' rx='2'/%3E%3Cpath d='M16 21V5a2 2 0 0 0-2-2h-4a2 2 0 0 0-2 2v16'/%3E%3C/svg%3E")}
.hi-smartphone{--hi:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='5' y='2' width='14' height='20' rx='2'/%3E%3Cpath d='M12 18h.01'/%3E%3C/svg%3E")}
.hi-monitor{--hi:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2' y='3' width='20' height='14' rx='2'/%3E%3Cpath d='M8 21h8M12 17v4'/%3E%3C/svg%3E")}
.hi-sofa{--hi:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 9V6a2 2 0 0 0-2-2H6a2 2 0 0 0-2 2v3M2 11v5a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-5a2 2 0 0 0-4 0v2H6v-2a2 2 0 0 0-4 0zM4 18v2M20 18v2'/%3E%3C/svg%3E")}
.hi-utensils{--hi:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 2v7c0 1.1.9 2 2 2h4a2 2 0 0 0 2-2V2M7 2v20M21 15V2a5 5 0 0 0-5 5v6c0 1.1.9 2 2 2h3zm0 0v7'/%3E%3C/svg%3E")}

/* v12: صفحة الإشعارات بأسلوب تويتر */
.hi-at{--hi:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='4'/%3E%3Cpath d='M16 8v5a3 3 0 0 0 6 0v-1a10 10 0 1 0-4 8'/%3E%3C/svg%3E")}
.hi-user-plus{--hi:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='9' cy='7' r='4'/%3E%3Cpath d='M19 8v6M22 11h-6'/%3E%3C/svg%3E")}
.hedrh-notif-form .hedrh-notif-bulk{display:none!important}
.hedrh-notif-form.is-selecting .hedrh-notif-bulk{display:flex!important;padding:10px 14px;background:#f8fafc;border-bottom:1px solid #eff3f4}
.hedrh-notif-tabs{display:flex;gap:2px;overflow-x:auto;border-bottom:1px solid #eff3f4;padding:0 6px;scrollbar-width:none}
.hedrh-notif-tabs::-webkit-scrollbar{display:none}
.hedrh-notif-tabs button{position:relative;padding:14px 14px;font-size:14px;font-weight:500;color:#536471;white-space:nowrap;border-radius:0;transition:background-color .15s}
.hedrh-notif-tabs button:hover{background:#f7f9f9}
.hedrh-notif-tabs button.is-active{color:#0f1419;font-weight:700}
.hedrh-notif-tabs button[data-filter].is-active::after{content:"";position:absolute;bottom:0;left:50%;transform:translateX(-50%);width:44px;height:4px;border-radius:4px;background:#1877d2}
.hedrh-notif-tabs .hedrh-notif-select{margin-inline-start:auto;display:inline-flex;align-items:center;gap:6px;font-size:13px}
.hedrh-notif-tabs .hedrh-notif-select.is-active{color:#1877d2}
.hedrh-notif-empty{padding:40px 16px;text-align:center;color:#536471;font-size:14px}
.hedrh-notif{display:flex;align-items:stretch;position:relative;transition:background-color .15s}
.hedrh-notif:hover{background:#f7f9f9}
.hedrh-notif.is-unread{background:#f0f7ff}
.hedrh-notif.is-unread:hover{background:#e6f1fd}
.hedrh-notif-check{display:none;align-items:center;padding-inline-start:14px}
.hedrh-notif-form.is-selecting .hedrh-notif-check{display:flex}
.hedrh-notif-link{flex:1;display:flex;align-items:flex-start;gap:12px;padding:14px 16px;min-width:0}
.hedrh-notif-type{flex:0 0 32px;display:flex;justify-content:center;padding-top:2px}
.hedrh-notif-type .hi{width:26px;height:26px}
.hedrh-notif-type.t-likes{color:#f91880}
.hedrh-notif-type.t-mentions,.hedrh-notif-type.t-follows,.hedrh-notif-type.t-posts,.hedrh-notif-type.t-other{color:#1877d2}
.hedrh-notif-type.t-councils{color:#0d9488}
.hedrh-notif-type.t-market{color:#16a34a}
.hedrh-notif-main{flex:1;min-width:0;display:flex;flex-direction:column;gap:6px}
.hedrh-notif-top{display:flex;align-items:center;justify-content:space-between;gap:8px}
.hedrh-notif-avatar{width:34px;height:34px;border-radius:999px;object-fit:cover;flex-shrink:0}
.hedrh-notif-letter{display:flex;align-items:center;justify-content:center;background:#e0f2fe;color:#0369a1;font-weight:700;font-size:14px}
.hedrh-notif-time{font-size:12.5px;color:#536471;white-space:nowrap}
.hedrh-notif-text{font-size:14.5px;line-height:1.6;color:#0f1419;word-break:break-word}
.hedrh-notif-text b{font-weight:700}
.hedrh-notif-dot{position:absolute;top:18px;left:14px;width:9px;height:9px;border-radius:50%;background:#1877d2}
.hedrh-notif-form.is-selecting .hedrh-notif-dot{display:none}
@media (max-width:640px){.hedrh-notif-form{border-radius:0!important;border-inline:0!important}.hedrh-notif-link{padding:12px}.hedrh-notif-tabs button{padding:12px 10px;font-size:13px}}

/* v13: صورة المستخدم صغيرة بجانب اسمه في الإشعارات */
.hedrh-notif-main{display:grid!important;grid-template-columns:auto 1fr auto;align-items:start;column-gap:8px}
.hedrh-notif-top{display:contents!important}
.hedrh-notif-avatar{grid-column:1;grid-row:1;width:24px!important;height:24px!important;font-size:11px!important;margin-top:1px}
.hedrh-notif-text{grid-column:2;grid-row:1}
.hedrh-notif-time{grid-column:3;grid-row:1;padding-top:2px}
.hedrh-notif-link{align-items:center}
.hedrh-notif-type .hi{width:24px!important;height:24px!important}

/* v14: قائمة الإشعارات المنسدلة (الجرس) */
#notifDropdown{border-radius:16px!important;box-shadow:0 10px 40px rgba(15,20,25,.18),0 0 0 1px rgba(15,20,25,.05)!important;overflow:hidden;border:0!important}
@media (min-width:768px){#notifDropdown{width:370px!important;max-width:370px!important}}
#notifDropdown > div:first-child{padding:12px 16px!important}
#notifDropdown > div:first-child > span{font-size:16px!important;font-weight:800!important;color:#0f1419}
#notifDropdown > div:first-child > a{font-size:13px!important;font-weight:600;color:#1877d2!important}
#notifDropdown .max-h-72{max-height:min(440px,70vh)!important}
#notifDropdown .max-h-72 > div{gap:10px!important;padding:12px 16px!important;border-bottom:1px solid #f1f3f5}
#notifDropdown .max-h-72 > div:last-child{border-bottom:0}
#notifDropdown .max-h-72 > div:hover{background:#f7f9f9!important}
#notifDropdown .max-h-72 img,#notifDropdown .max-h-72 .w-8.h-8{width:36px!important;height:36px!important;border-radius:999px;font-size:13px!important}
#notifDropdown .max-h-72 p.text-xs{font-size:13.5px!important;line-height:1.55!important;color:#0f1419!important;margin-top:0!important}
#notifDropdown .max-h-72 p.text-\[11px\]{font-size:12px!important;color:#536471!important;margin-top:2px!important}
#notifDropdown .join-request-action{padding:5px 16px!important;border-radius:999px!important;font-size:12.5px!important;font-weight:700;transition:background-color .15s}
#notifDropdown .join-request-action.bg-emerald-600{background:#0f1419!important;color:#fff!important}
#notifDropdown .join-request-action.bg-emerald-600:hover{background:#272c30!important}
#notifDropdown .join-request-action.bg-red-500{background:#fff!important;color:#0f1419!important;box-shadow:inset 0 0 0 1px #cfd9de}
#notifDropdown .join-request-action.bg-red-500:hover{background:#fdecee!important;color:#e0245e!important;box-shadow:inset 0 0 0 1px #f4c2cc}
#notifDropdown .max-h-72 .flex.items-center.gap-2.mt-1{margin-top:8px!important;gap:8px!important}
#notifDropdown > div:last-child:not(.max-h-72){padding:10px 16px!important;font-size:13px;border-top:1px solid #eff3f4}

/* v15: إعجاب الردود + صندوق التعديل */
.reply-like-btn,.reply-reply-btn{padding:3px 6px;border-radius:999px;font-size:12px!important;color:#536471;transition:color .15s,background-color .15s}
.reply-like-btn .hi,.reply-reply-btn .hi{width:16px;height:16px}
.reply-like-btn:hover{color:#f91880!important;background:rgba(249,24,128,.08)}
.reply-reply-btn:hover{color:#1877d2!important;background:rgba(24,119,210,.08)}
.reply-like-btn.text-brand-700{color:#f91880!important}
.reply-like-btn.text-brand-700 .hi-heart{--hi:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black' stroke='black' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M19 14c1.5-1.5 3-3.2 3-5.5A5.5 5.5 0 0 0 16.5 3c-1.8 0-3 .5-4.5 2-1.5-1.5-2.7-2-4.5-2A5.5 5.5 0 0 0 2 8.5c0 2.3 1.5 4 3 5.5l7 7z'/%3E%3C/svg%3E")}
.hedrh-edit-box{display:flex;flex-direction:column;gap:8px;width:100%}
.hedrh-edit-input{width:100%;border:1px solid #cfd9de;border-radius:12px;padding:10px 12px;font-size:14.5px;line-height:1.7;resize:none;outline:none;background:#fff;font-weight:400}
.hedrh-edit-input:focus{border-color:#1877d2;box-shadow:0 0 0 3px rgba(24,119,210,.15)}
.hedrh-edit-actions{display:flex;align-items:center;gap:8px;justify-content:flex-end}
.hedrh-edit-msg{margin-inline-end:auto;font-size:12px;color:#536471}
.hedrh-edit-actions button{padding:6px 18px;border-radius:999px;font-size:13px;font-weight:700}
.hedrh-edit-cancel{background:#fff;color:#0f1419;box-shadow:inset 0 0 0 1px #cfd9de}
.hedrh-edit-save{background:#1877d2;color:#fff}
.hedrh-edit-save:disabled{opacity:.6}

/* v16: نافذة يوتيوب */
.hedrh-yt-open{display:inline-flex;align-items:center;gap:6px;margin-top:6px;padding:7px 14px;border-radius:999px;background:#fee2e2;color:#dc2626;font-size:12.5px;font-weight:700;transition:background-color .15s}
.hedrh-yt-open:hover{background:#fecaca}
.hedrh-yt-open .hi{width:17px;height:17px}
.hedrh-yt-picked{display:flex;align-items:center;gap:10px;margin-top:8px;padding:6px;border:1px solid #e2e8f0;border-radius:12px;background:#fff}
.hedrh-yt-picked[hidden]{display:none}
.hedrh-yt-picked img{width:88px;height:50px;object-fit:cover;border-radius:8px}
.hedrh-yt-picked span{flex:1;font-size:12.5px;line-height:1.5;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.hedrh-yt-unpick{width:28px;height:28px;border-radius:999px;display:flex;align-items:center;justify-content:center;color:#64748b}
.hedrh-yt-unpick:hover{background:#f1f5f9}
.hedrh-yt-modal{position:fixed;inset:0;z-index:80;display:none;align-items:center;justify-content:center;padding:16px}
.hedrh-yt-modal.is-open{display:flex}
html.hedrh-yt-lock{overflow:hidden}
.hedrh-yt-backdrop{position:absolute;inset:0;background:rgba(15,23,42,.55)}
.hedrh-yt-box{position:relative;background:#fff;border-radius:18px;width:min(760px,96vw);height:min(80vh,680px);display:flex;flex-direction:column;box-shadow:0 20px 60px rgba(0,0,0,.35);overflow:hidden}
.hedrh-yt-head{display:flex;align-items:center;justify-content:space-between;padding:12px 16px 6px;font-size:16px}
.hedrh-yt-close{width:34px;height:34px;border-radius:999px;display:flex;align-items:center;justify-content:center;background:#eef1f4}
.hedrh-yt-close:hover{background:#dfe4e9}
.hedrh-yt-search{display:flex;align-items:center;gap:8px;margin:6px 16px 10px;padding:0 12px;border:1px solid #e2e8f0;border-radius:12px;background:#f8fafc}
.hedrh-yt-search:focus-within{border-color:#1877d2;background:#fff}
.hedrh-yt-search .hi{color:#64748b;width:18px;height:18px}
.hedrh-yt-search input{flex:1;border:0;background:transparent;outline:none;padding:10px 0;font-size:14px}
.hedrh-yt-status{padding:0 16px;font-size:13px;color:#64748b}
.hedrh-yt-status:empty{display:none}
.hedrh-yt-grid{flex:1;overflow-y:auto;display:grid;grid-template-columns:repeat(3,1fr);gap:12px;padding:6px 16px 12px;align-content:start}
.hedrh-yt-item{display:flex;flex-direction:column;gap:6px;text-align:right;border-radius:12px;padding:0 0 4px;transition:transform .12s}
.hedrh-yt-item:hover{transform:translateY(-2px)}
.hedrh-yt-thumb{position:relative;display:block;aspect-ratio:16/9;border-radius:12px;overflow:hidden;background:#e2e8f0}
.hedrh-yt-thumb img{width:100%;height:100%;object-fit:cover}
.hedrh-yt-thumb .hi{position:absolute;bottom:6px;left:6px;width:20px;height:20px;color:#fff;filter:drop-shadow(0 1px 2px rgba(0,0,0,.6))}
.hedrh-yt-title{font-size:12.5px;line-height:1.55;color:#0f1419;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.hedrh-yt-more{margin:0 16px 14px;padding:10px;border-radius:12px;background:#f1f5f9;font-size:13px;font-weight:700;color:#1877d2}
.hedrh-yt-more:hover{background:#e2e8f0}
@media (max-width:640px){.hedrh-yt-modal{padding:0}.hedrh-yt-box{width:100vw;height:100dvh;border-radius:0}.hedrh-yt-grid{grid-template-columns:repeat(2,1fr)}}

/* v17: الصور المتحركة */
.hedrh-gif-badge{display:inline-flex;align-items:center;justify-content:center;font-size:10px;font-weight:800;letter-spacing:.5px;padding:1px 5px;border:1.6px solid currentColor;border-radius:5px;color:#0891b2;line-height:1.3}
.hedrh-gif-picked{flex-basis:100%;position:relative;display:inline-block;max-width:220px;margin-top:6px}
.hedrh-gif-picked[hidden]{display:none}
.hedrh-gif-picked img{display:block;max-width:220px;max-height:180px;border-radius:12px}
.hedrh-gif-unpick{position:absolute;top:6px;left:6px;width:28px;height:28px;border-radius:999px;background:rgba(15,20,25,.75);color:#fff;display:flex;align-items:center;justify-content:center}
.hedrh-gif-chips{display:flex;gap:6px;overflow-x:auto;padding:0 16px 10px;scrollbar-width:none}
.hedrh-gif-chips::-webkit-scrollbar{display:none}
.hedrh-gif-chips button{white-space:nowrap;padding:5px 12px;border-radius:999px;background:#f1f5f9;font-size:12.5px;color:#334155}
.hedrh-gif-chips button:hover{background:#e2e8f0}
.hedrh-gif-grid{flex:1;overflow-y:auto;padding:4px 16px 12px;columns:3;column-gap:8px}
.hedrh-gif-item{display:block;width:100%;margin:0 0 8px;break-inside:avoid;border-radius:10px;overflow:hidden;background:#f1f5f9}
.hedrh-gif-item img{width:100%;height:100%;object-fit:cover;display:block}
.hedrh-gif-item:hover{outline:3px solid #1877d2;outline-offset:-3px}
@media (max-width:640px){.hedrh-gif-grid{columns:2}}

/* v18: نافذة النشر بأسلوب تويتر — أيقونات زرقاء بدون نصوص */
.hedrh-composer-tools .hedrh-gif-badge{font-size:9.5px}
.hedrh-composer-tools .hedrh-quick-yt .hi{color:#dc2626}
#postModal .hedrh-modal-tools{gap:2px!important;border-top:1px solid #eff3f4;padding-top:10px}
#postModal .hedrh-modal-tools > label,#postModal .hedrh-modal-tools > button,#postModal .hedrh-modal-tools > div:not(.ms-auto):not([id]):not(.hidden){background:transparent!important;padding:8px!important;border-radius:999px!important;color:#1877d2!important}
#postModal .hedrh-modal-tools > label:hover,#postModal .hedrh-modal-tools > button:hover{background:rgba(24,119,210,.1)!important}
#postModal .hedrh-modal-tools > label > span,#postModal .hedrh-modal-tools > button > span:not(.hedrh-gif-badge):not(#recordTimer){position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
#postModal .hedrh-modal-tools .hi{width:21px!important;height:21px!important;color:#1877d2!important}
#postModal .hedrh-modal-tools .hedrh-gif-badge{color:#1877d2}
#postModal .hedrh-modal-tools > div.cursor-not-allowed{opacity:.4}
#postModal textarea#modalPostContent{background:transparent!important;border:0!important;box-shadow:none!important;font-size:18px!important;padding:8px 4px!important;min-height:120px}
#postModal textarea#modalPostContent:focus{outline:none!important;box-shadow:none!important}
#postModal button[type="submit"]{background:#1877d2!important}

/* v19: نافذة الصور المتحركة — أربعة أعمدة بدون شريط تمرير */
.hedrh-gif-modal .hedrh-yt-box{height:auto;max-height:min(86vh,760px)}
.hedrh-gif-grid{columns:auto!important;display:grid!important;grid-template-columns:repeat(4,1fr);gap:8px;overflow-y:auto;overflow-x:hidden;scrollbar-width:none;-ms-overflow-style:none;align-content:start;min-height:120px}
.hedrh-gif-grid::-webkit-scrollbar{display:none}
.hedrh-gif-item{aspect-ratio:1/1!important;margin:0!important;border-radius:12px}
.hedrh-gif-item img{width:100%;height:100%;object-fit:cover}
.hedrh-yt-grid{scrollbar-width:none;overflow-x:hidden}
.hedrh-yt-grid::-webkit-scrollbar{display:none}
@media (max-width:640px){.hedrh-gif-grid{grid-template-columns:repeat(3,1fr)}}

/* v20: مربعات ثابتة للصور المتحركة */
.hedrh-gif-grid{grid-auto-rows:auto}
.hedrh-gif-grid .hedrh-gif-item{position:relative!important;display:block!important;height:0!important;padding:0 0 100% 0!important;aspect-ratio:auto!important;overflow:hidden!important}
.hedrh-gif-grid .hedrh-gif-item img{position:absolute;inset:0;width:100%!important;height:100%!important;object-fit:cover}
.hedrh-gif-modal .hedrh-gif-grid{flex:1 1 auto;min-height:0}

/* v21: الكلمات المقترحة */
.hedrh-gif-chips{display:flex!important;flex-wrap:nowrap;gap:6px;overflow-x:auto;padding:0 16px 10px;scrollbar-width:none}
.hedrh-gif-chips[hidden]{display:none!important}
.hedrh-gif-chips::-webkit-scrollbar{display:none}
.hedrh-gif-chips button{flex-shrink:0;white-space:nowrap;padding:6px 14px;border-radius:999px;background:#f1f5f9;border:1px solid #e2e8f0;font-size:13px;color:#334155;transition:background-color .15s}
.hedrh-gif-chips button:hover{background:#e0ecfb;border-color:#bcd6f5;color:#1877d2}

/* v22: الصورة المتحركة داخل المحرر + ترتيب شريط الأدوات */
#postModal .hedrh-gif-picked{display:block!important;position:relative;max-width:min(320px,100%);margin:4px 4px 10px;padding:0!important;background:transparent!important}
#postModal .hedrh-gif-picked[hidden]{display:none!important}
#postModal .hedrh-gif-picked img{max-width:100%;max-height:260px;border-radius:16px;display:block}
#postModal .hedrh-gif-unpick{top:8px;left:8px;background:rgba(15,20,25,.75)!important;color:#fff!important}
#postModal .hedrh-gif-unpick .hi{color:#fff!important;width:16px!important;height:16px!important}
#postModal .hedrh-modal-tools{align-items:center}
#postModal .hedrh-modal-tools > .ms-auto{margin-inline-start:auto!important;color:#536471}
#postModal .hedrh-modal-tools > .ms-auto .hi{color:#536471!important;width:16px!important;height:16px!important}

/* v23 */
#postModal .hedrh-gif-picked{width:fit-content!important}

/* v24: محرر النشر داخل الصفحة على الكمبيوتر + صفحة منزلقة على الجوال */
#postModal.hedrh-inline{position:static!important;inset:auto!important;background:transparent!important;z-index:auto!important;display:block!important;margin-bottom:12px}
#postModal.hedrh-inline > .hidden.md\:block{display:none!important}
#postModal.hedrh-inline > .animate-fade-in{max-width:none!important;margin:0!important;max-height:none!important;height:auto!important;box-shadow:0 1px 2px rgba(0,0,0,.05)!important;border:1px solid #e5e7eb;border-radius:16px!important}
#postModal.hedrh-inline h2{font-size:15px!important}
.hedrh-collapsed-hide{display:none!important}
@media (max-width:767px){
  #postModal:not(.hidden) > .animate-fade-in{animation:hedrhSheetUp .28s cubic-bezier(.2,.8,.2,1)!important;padding-bottom:max(12px,env(safe-area-inset-bottom))!important}
  #postModal button[type="submit"]{position:sticky;bottom:0}
}
@keyframes hedrhSheetUp{from{transform:translateY(100%)}to{transform:translateY(0)}}

/* v25: ترتيب نافذة الصور + تمرير عمودي واضح */
.hedrh-yt-head,.hedrh-yt-search,.hedrh-gif-chips,.hedrh-yt-status,.hedrh-yt-more{flex-shrink:0!important}
.hedrh-gif-chips{padding:2px 16px 12px!important;min-height:44px;align-items:center}
.hedrh-gif-chips button{line-height:1.4}
.hedrh-gif-modal .hedrh-gif-grid,.hedrh-yt-grid{overflow-y:auto!important;overflow-x:hidden!important;scrollbar-width:thin!important;scrollbar-color:#cbd5e1 transparent;-ms-overflow-style:auto!important;padding-inline-end:10px!important}
.hedrh-gif-modal .hedrh-gif-grid::-webkit-scrollbar,.hedrh-yt-grid::-webkit-scrollbar{display:block!important;width:6px}
.hedrh-gif-modal .hedrh-gif-grid::-webkit-scrollbar-thumb,.hedrh-yt-grid::-webkit-scrollbar-thumb{background:#cbd5e1;border-radius:6px}
.hedrh-gif-modal .hedrh-gif-grid::-webkit-scrollbar-track,.hedrh-yt-grid::-webkit-scrollbar-track{background:transparent}
.hedrh-yt-more{margin-top:8px!important}

/* v26: أداة يوتيوب مستقلة + معاينتها داخل المحرر */
.hi-youtube{--hi:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2.5 17a24 24 0 0 1 0-10 2 2 0 0 1 1.4-1.4 49.6 49.6 0 0 1 16.2 0A2 2 0 0 1 21.5 7a24 24 0 0 1 0 10 2 2 0 0 1-1.4 1.4 49.6 49.6 0 0 1-16.2 0A2 2 0 0 1 2.5 17'/%3E%3Cpath d='m10 15 5-3-5-3z'/%3E%3C/svg%3E")}
#postModal .hedrh-yt-tool .hi{color:#dc2626!important}
.hedrh-composer-tools .hedrh-quick-yt .hi{--hi:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2.5 17a24 24 0 0 1 0-10 2 2 0 0 1 1.4-1.4 49.6 49.6 0 0 1 16.2 0A2 2 0 0 1 21.5 7a24 24 0 0 1 0 10 2 2 0 0 1-1.4 1.4 49.6 49.6 0 0 1-16.2 0A2 2 0 0 1 2.5 17'/%3E%3Cpath d='m10 15 5-3-5-3z'/%3E%3C/svg%3E")}
#postModal .hedrh-yt-picked{display:flex!important;align-items:center;gap:10px;margin:4px 4px 10px;padding:8px!important;border:1px solid #e2e8f0!important;border-radius:14px!important;background:#fff!important;max-width:420px}
#postModal .hedrh-yt-picked[hidden]{display:none!important}
#postModal .hedrh-yt-picked img{width:120px;height:68px;border-radius:10px;object-fit:cover}
#postModal .hedrh-yt-unpick .hi{color:#64748b!important;width:16px!important;height:16px!important}

/* v27: شريط أدوات المحرر = نفس صندوق النشر (أيقونات + تسميات وبنفس الترتيب) */
#postModal .hedrh-modal-tools > label > span,#postModal .hedrh-modal-tools > button > span:not(.hedrh-gif-badge):not(#recordTimer){position:static!important;width:auto!important;height:auto!important;overflow:visible!important;clip:auto!important;font-size:12.5px;color:#475569;font-weight:500}
#postModal .hedrh-modal-tools{flex-wrap:wrap!important;gap:2px 4px!important}
#postModal .hedrh-modal-tools > label,#postModal .hedrh-modal-tools > button{gap:5px!important;padding:6px 8px!important}
#postModal .hedrh-modal-tools > label .hi-image{color:#16a34a!important}
#postModal .hedrh-modal-tools .hi-mic{color:#8b5cf6!important}
#postModal .hedrh-modal-tools .hi-hash{color:#1877d2!important}
#postModal .hedrh-modal-tools .hi-video{color:#ef4444!important}
#postModal .hedrh-modal-tools .hi-chart{color:#f59e0b!important}
#postModal .hedrh-modal-tools .hi-smile{color:#eab308!important}
#postModal .hedrh-modal-tools .hedrh-gif-badge{color:#0891b2!important}
#postModal .hedrh-modal-tools > *{order:30}
#postModal .hedrh-modal-tools > label{order:1}
#postModal .hedrh-modal-tools > #recordToggleBtn,#postModal .hedrh-modal-tools > div.cursor-not-allowed:has(.hi-mic){order:2}
#postModal .hedrh-modal-tools > #recordTimer{order:3}
#postModal .hedrh-modal-tools > button[onclick="toggleTagsBar()"]{order:4}
#postModal .hedrh-modal-tools > button[onclick="toggleVideoBar()"]{order:5}
#postModal .hedrh-modal-tools > button:has(.hi-chart){order:6}
#postModal .hedrh-modal-tools > .hedrh-gif-open{order:7}
#postModal .hedrh-modal-tools > .hedrh-yt-tool{order:8}
#postModal .hedrh-modal-tools > button[onclick="toggleEmojiBar()"]{order:9}
#postModal .hedrh-modal-tools > .ms-auto{order:10}
#postModal .hedrh-modal-tools > #emojiBar,#postModal .hedrh-modal-tools > #tagsBar,#postModal .hedrh-modal-tools > #videoToolWrap{order:40}
@media (max-width:480px){#postModal .hedrh-modal-tools > label > span,#postModal .hedrh-modal-tools > button > span:not(.hedrh-gif-badge):not(#recordTimer){font-size:11px}}

/* v28: فيديو يوتيوب مضاف داخل المحرر كمشغّل */
#postModal .hedrh-yt-picked{display:block!important;position:relative;max-width:100%!important;width:100%;padding:0!important;border:0!important;background:transparent!important;margin:4px 0 10px!important}
#postModal .hedrh-yt-picked[hidden]{display:none!important}
.hedrh-yt-embed{position:relative;width:100%;aspect-ratio:16/9;border-radius:16px;overflow:hidden;background:#000;border:1px solid #e2e8f0}
.hedrh-yt-embed iframe{position:absolute;inset:0;width:100%;height:100%;border:0}
#postModal .hedrh-yt-picked .hedrh-yt-unpick{position:absolute;top:8px;left:8px;width:32px;height:32px;border-radius:999px;background:rgba(15,20,25,.75)!important;z-index:2}
#postModal .hedrh-yt-picked .hedrh-yt-unpick .hi{color:#fff!important}
#postModal .hedrh-modal-tools > #recordToggleBtn .hi,#postModal .hedrh-modal-tools .hi-mic{display:inline-block!important;color:#8b5cf6!important;background-color:#8b5cf6}

/* v29: أيقونات بحجم واحد وسطر واحد + ترتيب الجوال */
.hi-stop{--hi:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Crect x='6' y='6' width='12' height='12' rx='2'/%3E%3C/svg%3E")}
#postModal .hedrh-modal-tools .hi{width:20px!important;height:20px!important;flex-shrink:0}
#postModal .hedrh-modal-tools .hedrh-gif-badge{height:20px;min-width:28px;font-size:9.5px!important;padding:0 4px!important;border-width:1.6px;border-radius:5px;display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box}
#postModal .hedrh-modal-tools .hi-stop{color:#ef4444!important}
#postModal .hedrh-modal-tools{flex-wrap:nowrap!important;overflow-x:auto;scrollbar-width:none;justify-content:flex-start}
#postModal .hedrh-modal-tools::-webkit-scrollbar{display:none}
#postModal .hedrh-modal-tools > *{flex-shrink:0}
#postModal .hedrh-modal-tools > #emojiBar:not(.hidden),#postModal .hedrh-modal-tools > #tagsBar:not(.hidden),#postModal .hedrh-modal-tools > #videoToolWrap:not(.hidden){flex-basis:100%;flex-shrink:1}
#postModal .hedrh-modal-tools:has(> #emojiBar:not(.hidden)),#postModal .hedrh-modal-tools:has(> #tagsBar:not(.hidden)),#postModal .hedrh-modal-tools:has(> #videoToolWrap:not(.hidden)){flex-wrap:wrap!important}
#postModal .hedrh-modal-tools > .ms-auto{white-space:nowrap}
@media (max-width:640px){
  #postModal .hedrh-modal-tools{display:grid!important;grid-template-columns:repeat(4,1fr);gap:4px!important;overflow:visible}
  #postModal .hedrh-modal-tools > label,#postModal .hedrh-modal-tools > button,#postModal .hedrh-modal-tools > div.cursor-not-allowed{flex-direction:column!important;justify-content:center;gap:3px!important;padding:8px 2px!important;border-radius:12px!important;background:#f8fafc!important}
  #postModal .hedrh-modal-tools > label > span,#postModal .hedrh-modal-tools > button > span:not(.hedrh-gif-badge):not(#recordTimer){font-size:11px!important}
  #postModal .hedrh-modal-tools > .ms-auto{grid-column:1/-1;justify-self:end;margin:2px 0 0!important}
  #postModal .hedrh-modal-tools > #recordTimer{grid-column:1/-1}
  #postModal .hedrh-modal-tools > #emojiBar,#postModal .hedrh-modal-tools > #tagsBar,#postModal .hedrh-modal-tools > #videoToolWrap{grid-column:1/-1}
}

/* v30: تكبير الفيديو في الخلاصة */
.hedrh-vzoom{position:absolute;top:10px;left:10px;z-index:5;width:34px;height:34px;border-radius:10px;display:flex;align-items:center;justify-content:center;color:#fff;background:rgba(15,20,25,.6);border:1px solid rgba(255,255,255,.35);backdrop-filter:blur(4px);opacity:.85;transition:opacity .15s,background-color .15s}
.hedrh-vzoom:hover{opacity:1;background:rgba(15,20,25,.85)}
.hedrh-vzoom-backdrop{position:fixed;inset:0;background:rgba(0,0,0,.82);z-index:88;display:none}
.hedrh-vzoom-backdrop.is-on{display:block}
.hedrh-vbig-host{transform:none!important;animation:none!important;overflow:visible!important}
.hedrh-vbig{position:fixed!important;z-index:89!important;top:50%!important;left:50%!important;transform:translate(-50%,-50%)!important;width:min(1100px,94vw)!important;max-height:88vh!important;aspect-ratio:16/9;height:auto!important;margin:0!important;border-radius:14px;overflow:hidden;background:#000;box-shadow:0 20px 60px rgba(0,0,0,.5)}
.hedrh-vbig > iframe,.hedrh-vbig > video{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;max-height:none!important;object-fit:contain}
.hedrh-vbig:fullscreen{width:100vw!important;height:100vh!important;max-height:none!important;border-radius:0;transform:none!important;top:0!important;left:0!important}

/* v31: ضبط مقاس التكبير */
.hedrh-vbig{width:min(1100px,94vw,calc(86vh * 16 / 9))!important;height:auto!important;max-height:86vh!important;aspect-ratio:16/9!important}
.hedrh-vbig > *:not(.hedrh-vzoom){position:absolute!important;inset:0!important;width:100%!important;height:100%!important;max-height:none!important;object-fit:contain;margin:0!important}
.hedrh-vbig > .hedrh-vzoom{z-index:6;opacity:1}

/* v32 */
.hedrh-vbig{padding:0!important;min-height:0!important}

/* v33: التصويت بأسلوب تويتر */
.hedrh-pollc{border:1px solid #cfd9de;border-radius:16px;padding:12px;margin:6px 2px 12px;display:flex;flex-direction:column;gap:10px;background:#fff}
.hedrh-pollc-opts{display:flex;flex-direction:column;gap:8px}
.hedrh-pollc-opt{position:relative}
.hedrh-pollc-opt input{width:100%;border:1px solid #cfd9de;border-radius:8px;padding:12px 12px 12px 54px;font-size:14.5px;outline:none;background:#fff}
.hedrh-pollc-opt input:focus{border-color:#1877d2;box-shadow:0 0 0 1px #1877d2}
.hedrh-pollc-count{position:absolute;left:12px;top:50%;transform:translateY(-50%);font-size:11.5px;color:#94a3b8}
.hedrh-pollc-add{align-self:flex-start;display:inline-flex;align-items:center;gap:6px;color:#1877d2;font-size:13.5px;font-weight:700;padding:4px 2px}
.hedrh-pollc-add[hidden]{display:none}
.hedrh-pollc-add .hi{width:18px;height:18px}
.hedrh-pollc-dur{border-top:1px solid #eff3f4;padding-top:10px}
.hedrh-pollc-dur b{display:block;font-size:13.5px;margin-bottom:8px;color:#0f1419}
.hedrh-pollc-dur > div{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}
.hedrh-pollc-sel{display:flex;flex-direction:column;border:1px solid #cfd9de;border-radius:8px;padding:4px 10px}
.hedrh-pollc-sel span{font-size:11.5px;color:#536471}
.hedrh-pollc-sel select{border:0;outline:none;background:transparent;font-size:14.5px;padding:2px 0}
.hedrh-pollc-remove{border-top:1px solid #eff3f4;padding-top:10px;color:#f4212e;font-size:14px;font-weight:600}
.hedrh-poll{display:flex;flex-direction:column;gap:8px;padding:6px 16px 4px;margin-top:6px}
.hedrh-poll-opt{width:100%;padding:9px 14px;border:1px solid #1877d2;color:#1877d2;border-radius:999px;font-weight:700;font-size:14.5px;background:#fff;transition:background-color .15s}
.hedrh-poll-opt:hover{background:rgba(24,119,210,.08)}
.hedrh-poll-res{position:relative;display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:36px;padding:0 12px;border-radius:6px;overflow:hidden;font-size:14.5px;color:#0f1419}
.hedrh-poll-bar{position:absolute;inset-block:0;right:0;background:#e7ecf0;border-radius:6px;transition:width .5s ease}
.hedrh-poll-res.is-top .hedrh-poll-bar{background:#bfdcf7}
.hedrh-poll-res.is-top{font-weight:700}
.hedrh-poll-label,.hedrh-poll-pct{position:relative;z-index:1;display:inline-flex;align-items:center;gap:6px}
.hedrh-poll-label .hi{width:16px;height:16px;color:#1877d2}
.hedrh-poll-meta{font-size:13px;color:#536471;padding-top:2px}

/* v34: الرسائل الخاصة بأسلوب تويتر */
.hi-arrow-right{--hi:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 5l7 7-7 7'/%3E%3C/svg%3E")}
main:has(#messagesBox) > div > div{border-radius:18px!important;overflow:hidden;border:1px solid #eff3f4!important;box-shadow:0 1px 3px rgba(15,20,25,.06)}
main:has(#messagesBox) > div > div > div:first-child{padding:10px 14px!important;gap:12px!important;background:#fff!important;border-bottom:1px solid #eff3f4!important}
main:has(#messagesBox) > div > div > div:first-child img{width:40px!important;height:40px!important}
main:has(#messagesBox) > div > div > div:first-child .font-semibold{font-size:15.5px!important;font-weight:800!important}
main:has(#messagesBox) > div > div > div:first-child button,main:has(#messagesBox) > div > div > div:first-child > a{width:36px!important;height:36px!important;color:#0f1419}
main:has(#messagesBox) > div > div > div:first-child .hi{width:20px;height:20px}
#messagesBox{background:#fff!important;padding:14px 12px!important;scroll-behavior:smooth}
#messagesBox > div{padding:2px 4px!important;align-items:flex-end!important;gap:8px!important}
#messagesBox > div .max-w-\[75\%\]{max-width:min(75%,520px)!important}
#messagesBox .rounded-2xl{font-weight:400!important;font-size:15px!important;line-height:1.55!important;padding:10px 14px!important;border-radius:22px!important;border:0!important;word-break:break-word}
#messagesBox > .justify-end .rounded-2xl{background:#1877d2!important;color:#fff!important;border-bottom-left-radius:6px!important}
#messagesBox > .justify-start .rounded-2xl{background:#eff3f4!important;color:#0f1419!important;border-bottom-right-radius:6px!important}
#messagesBox > .justify-end .rounded-2xl a{color:#fff!important}
#messagesBox > .justify-end > .shrink-0{display:none}
#messagesBox > .justify-start > .shrink-0 img{width:30px!important;height:30px!important;border:0!important}
#messagesBox .text-\[10px\]{font-size:11.5px!important;color:#8b98a5!important;margin-top:3px;padding:0 6px!important}
#messageForm{gap:8px!important}
main:has(#messagesBox) #messageForm{padding:8px 10px!important}
#messageForm > div.flex-1{background:#eff3f4!important;border:0!important;border-radius:22px!important;padding:2px 6px!important;min-height:44px}
#messageForm textarea{font-weight:400!important;font-size:15px!important;resize:none;max-height:140px}
#emojiBtn{width:36px!important;height:36px!important;color:#1877d2}
#emojiBtn .hi{width:21px;height:21px}
#messageForm button.bg-brand-600{width:38px!important;height:38px!important;background:#1877d2!important}
#messageForm button.bg-brand-600 .hi{width:18px;height:18px}
#emojiPicker{border-radius:16px!important;box-shadow:0 10px 30px rgba(15,20,25,.15)!important}
/* قائمة المحادثات */
main:has(a[href*="thread.php"]):not(:has(#messagesBox)) a[href*="thread.php"]{border-radius:0}

/* v35: قائمة المحادثات */
main:has(ul.divide-y a[href*="thread.php"]) > div{border-radius:18px!important;padding:0!important;overflow:hidden;border:1px solid #eff3f4!important}
main:has(ul.divide-y a[href*="thread.php"]) > div > div:first-child{padding:14px 16px!important;margin:0!important;border-bottom:1px solid #eff3f4}
main:has(ul.divide-y a[href*="thread.php"]) h1{font-size:19px!important;font-weight:800!important;color:#0f1419!important}
main:has(ul.divide-y a[href*="thread.php"]) > div > div:first-child .hi{width:20px;height:20px}
main ul.divide-y:has(a[href*="thread.php"]) > li > a{padding:14px 16px 14px 52px!important;gap:12px!important;border-radius:0!important;transition:background-color .15s}
main ul.divide-y:has(a[href*="thread.php"]) > li > a:hover{background:#f7f9f9!important}
main ul.divide-y:has(a[href*="thread.php"]) > li > a img,main ul.divide-y:has(a[href*="thread.php"]) > li > a .shrink-0 > div{width:48px!important;height:48px!important;border:0!important;font-size:17px}
main ul.divide-y:has(a[href*="thread.php"]) > li > a .font-semibold{font-size:15px!important;font-weight:700!important;color:#0f1419!important}
main ul.divide-y:has(a[href*="thread.php"]) > li > a .text-\[11px\]{font-size:14px!important;color:#536471!important;margin-top:2px}
main ul.divide-y:has(a[href*="thread.php"]) > li > a .text-\[10px\]{font-size:12.5px!important;color:#536471!important}
main ul.divide-y:has(a[href*="thread.php"]) > li > form{left:14px!important;opacity:0;transition:opacity .15s}
main ul.divide-y:has(a[href*="thread.php"]) > li:hover > form{opacity:1}
main ul.divide-y:has(a[href*="thread.php"]) > li > form button{width:32px!important;height:32px!important;border:0!important;background:#fff;color:#536471}
main ul.divide-y:has(a[href*="thread.php"]) > li > form button:hover{color:#f4212e;background:#fdecee}
main ul.divide-y:has(a[href*="thread.php"]) > li > form .hi{width:17px;height:17px}
@media (hover:none){main ul.divide-y:has(a[href*="thread.php"]) > li > form{opacity:1}}

/* v36: أيقونات الشريط العلوي أكبر */
#notifToggle,#dmToggle{width:42px;height:42px;display:inline-flex!important;align-items:center;justify-content:center;border-radius:999px!important;padding:0!important}
#notifToggle .hi,#dmToggle .hi{width:26px!important;height:26px!important}
#notifToggle:hover,#dmToggle:hover,#userTrigger:hover{background:rgba(255,255,255,.15)!important}
#userTrigger{border-radius:999px!important;padding:3px!important}
#userTrigger img{width:38px!important;height:38px!important;box-shadow:0 0 0 2px rgba(255,255,255,.7)}

/* v37: العمود الجانبي */
#leftDrawer .hedrh-sidenav{padding:6px!important;display:flex;flex-direction:column;gap:2px}
.hedrh-sidenav-item{display:flex;align-items:center;gap:14px;padding:10px 14px;border-radius:999px;font-size:15.5px;font-weight:600;color:#0f1419;transition:background-color .15s;position:relative}
.hedrh-sidenav-item .hi{width:23px;height:23px;flex-shrink:0}
.hedrh-sidenav-item:hover{background:#f1f5f9}
.hedrh-sidenav-item.is-active{font-weight:800;color:#1877d2}
.hedrh-sidenav-item.is-active .hi{color:#1877d2}
.hedrh-sidenav-item.is-danger{color:#e0245e}
.hedrh-sidenav-item.is-danger:hover{background:#fdecee}
.hedrh-sidenav-badge{margin-inline-start:auto;min-width:22px;height:22px;padding:0 7px;border-radius:999px;background:#1877d2;color:#fff;font-size:11.5px;font-weight:800;display:inline-flex;align-items:center;justify-content:center}
.hedrh-sidenav-sep{height:1px;background:#eff3f4;margin:4px 10px}
.hedrh-sidestats{display:grid;grid-template-columns:repeat(3,1fr);margin-top:12px;border-top:1px solid #eff3f4;padding-top:10px;text-align:center}
.hedrh-sidestats a{display:flex;flex-direction:column;gap:1px;border-radius:10px;padding:4px 0}
.hedrh-sidestats a:hover{background:#f7f9f9}
.hedrh-sidestats b{font-size:15px;font-weight:800;color:#0f1419}
.hedrh-sidestats span{font-size:11.5px;color:#536471}
#leftDrawer .relative.h-24{height:88px!important}

/* v38: زر النغمة */
.hedrh-notif-tabs .hedrh-notif-sound{margin-inline-start:auto;display:inline-flex;align-items:center;gap:6px;font-size:13px;color:#1877d2}
.hedrh-notif-tabs .hedrh-notif-sound.is-off{color:#94a3b8}
.hedrh-notif-tabs .hedrh-notif-sound .hi{width:17px;height:17px}
.hedrh-notif-tabs .hedrh-notif-sound + .hedrh-notif-select{margin-inline-start:0}

/* v39: توحيد مقاسات الصفحات مع القائمة الجانبية */
@media (min-width:768px){
  body:has(#leftDrawer) .md\:max-w-\[70\%\]:not(header *):not(.md\:pr-80):not(:has(.md\:pr-80)){padding-right:20rem!important}
}
@media (min-width:768px) and (max-width:1599px){
  body:has(#leftDrawer) .md\:max-w-\[70\%\]:not(header *) .lg\:grid-cols-3:not(#hedrhFeed *){grid-template-columns:minmax(0,1fr)!important}
  body:has(#leftDrawer) .md\:max-w-\[70\%\]:not(header *) .lg\:grid-cols-3:not(#hedrhFeed *) > .lg\:col-span-2{grid-column:auto!important}
}

/* v40: صفحة الحساب بنفس المقاس + منع اهتزاز الصفحة */
@media (min-width:768px){
  body:has(#leftDrawer) .md\:max-w-\[60\%\]:not(header *){max-width:70%!important;padding-right:20rem!important}
}
html{scrollbar-gutter:stable;overflow-y:scroll}
html.hedrh-yt-lock,body[style*="overflow: hidden"]{scrollbar-gutter:stable}
#postModal.hedrh-inline > .animate-fade-in{animation:none!important}
#postModal.hedrh-inline{overflow-anchor:none}
.fade-in{animation-duration:.18s!important}

/* v41: المجالس داخل الخلاصة */
#hedrhFeed .hedrh-feed-councils > section{margin:0!important}

/* v42: المشغّل العائم للفيديو */
.hedrh-vfloat{position:fixed!important;z-index:85!important;transform:none!important;margin:0!important;padding:0!important;aspect-ratio:16/9!important;height:auto!important;border-radius:14px!important;overflow:hidden!important;background:#000;box-shadow:0 12px 40px rgba(0,0,0,.45)!important;
  right:16px;bottom:16px;width:min(400px,40vw)!important}
.hedrh-vfloat > *:not(.hedrh-vzoom):not(.hedrh-vfloat-bar){position:absolute!important;inset:0!important;width:100%!important;height:100%!important;max-height:none!important;object-fit:contain}
.hedrh-vfloat-bar{display:none}
.hedrh-vfloat > .hedrh-vfloat-bar{display:flex;position:absolute;top:0;left:0;right:0;height:30px;z-index:7;align-items:center;justify-content:center;background:linear-gradient(to bottom,rgba(0,0,0,.55),transparent);cursor:grab;touch-action:none}
.hedrh-vfloat-grip{width:40px;height:4px;border-radius:4px;background:rgba(255,255,255,.75)}
.hedrh-vfloat-close{position:absolute;right:6px;top:4px;width:24px;height:24px;border-radius:999px;background:rgba(0,0,0,.55);color:#fff;display:flex;align-items:center;justify-content:center}
.hedrh-vfloat > .hedrh-vzoom{top:auto!important;bottom:8px;left:8px;width:30px;height:30px}
.hedrh-vfloat:fullscreen{width:100vw!important;height:100vh!important;border-radius:0!important;left:0!important;top:0!important}
@media (max-width:767px){.hedrh-vfloat{left:8px;right:8px;top:58px;bottom:auto;width:auto!important}}

/* v43: مستويا المشغّل العائم: صغير ثم أكبر */
.hedrh-vfloat.hedrh-vfloat-lg{width:min(680px,52vw)!important}
@media (max-width:767px){
  .hedrh-vfloat{left:auto;right:8px;top:58px;width:62vw!important}
  .hedrh-vfloat.hedrh-vfloat-lg{left:8px;right:8px;width:auto!important}
}

/* v44: صفحة الريلز — هيدر بلون الصفحة */
body.hedrh-reels{background:#000!important}
body.hedrh-reels > header{background:#000!important;border-bottom:1px solid rgba(255,255,255,.08)!important;box-shadow:none!important}
body.hedrh-reels > header input{background:rgba(255,255,255,.12)!important;color:#fff!important}
body.hedrh-reels > header input::placeholder{color:rgba(255,255,255,.55)!important}
body.hedrh-reels #leftDrawer .bg-white{background:#16181c!important;border-color:#2f3336!important;color:#e7e9ea}
body.hedrh-reels .hedrh-sidenav-item{color:#e7e9ea}
body.hedrh-reels .hedrh-sidenav-item:hover{background:#1d1f23}
body.hedrh-reels .hedrh-sidenav-item.is-active,body.hedrh-reels .hedrh-sidenav-item.is-active .hi{color:#1d9bf0}
body.hedrh-reels .hedrh-sidestats b{color:#e7e9ea}
body.hedrh-reels #leftDrawer .text-slate-900,body.hedrh-reels #leftDrawer .text-slate-600,body.hedrh-reels #leftDrawer .text-slate-500{color:#c4c9ce!important}

/* v45: سطر النشر */
#postModal .hedrh-submit-row{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:12px;width:100%;border-top:1px solid #eff3f4;padding-top:10px!important;margin-top:6px}
#postModal .hedrh-submit-row > .ms-auto{margin:0!important;order:0;display:inline-flex;align-items:center;gap:4px;color:#536471;font-size:12.5px;white-space:nowrap}
#postModal .hedrh-submit-row > button[type="submit"]{order:1;margin:0!important;position:static!important}
#postModal .hedrh-modal-tools{border-bottom:0}

/* v46: كرت الإيموجي بنفس حجم باقي الكروت */
#postModal .hedrh-modal-tools > button[onclick="toggleEmojiBar()"]::after{content:"إيموجي";font-size:12.5px;color:#475569;font-weight:500}
@media (max-width:640px){
  #postModal .hedrh-modal-tools > label,#postModal .hedrh-modal-tools > button,#postModal .hedrh-modal-tools > div.cursor-not-allowed{min-height:58px;width:100%;align-self:stretch}
  #postModal .hedrh-modal-tools > button[onclick="toggleEmojiBar()"]::after{font-size:11px}
}

/* v47: أنت ترد على */
.hedrh-replying{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:0 0 6px;padding:6px 12px;border-radius:12px;background:#e8f2fc;color:#1877d2;font-size:12.5px}
.hedrh-replying b{font-weight:700}
.hedrh-replying button{width:22px;height:22px;border-radius:999px;color:#536471;font-size:12px;line-height:1}
.hedrh-replying button:hover{background:rgba(15,20,25,.08)}

/* v48: تبويبات الرئيسية لك / المتابَعون + قائمة المزيد */
.hedrh-secnav{position:relative;overflow:visible!important}
.hedrh-secnav-more{display:none;position:relative;flex:1 1 0;max-width:120px}
.hedrh-secnav-more > .hedrh-secnav-item{width:100%;max-width:none}
.hedrh-more-menu{display:none;position:absolute;top:calc(100% + 6px);left:0;min-width:170px;background:#fff;border:1px solid #eff3f4;border-radius:14px;box-shadow:0 10px 30px rgba(15,20,25,.14);padding:6px;z-index:30}
.hedrh-secnav-more.is-open .hedrh-more-menu{display:block}
.hedrh-more-menu a{display:flex;align-items:center;gap:10px;padding:9px 12px;border-radius:10px;font-size:14px;color:#0f1419}
.hedrh-more-menu a:hover{background:#f1f5f9}
.hedrh-more-menu .hi{width:19px;height:19px}
@media (max-width:640px){
  .hedrh-secnav .hedrh-tab-3,.hedrh-secnav .hedrh-tab-4{display:none!important}
  .hedrh-secnav-more{display:block}
  .hedrh-more-menu .hedrh-more-2{display:none}
}

/* v49: قسم الصفحة الحالية في العمود */
.hedrh-ctxnav{margin-bottom:12px}
.hedrh-ctxnav-title{display:flex;align-items:center;gap:8px;padding:8px 14px 6px;font-size:13px;font-weight:800;color:#536471}
.hedrh-ctxnav-title .hi{width:17px;height:17px}
.hedrh-sidenav-compact .hedrh-sidenav-item{padding:8px 14px;font-size:14.5px}
.hedrh-sidenav-compact .hedrh-sidenav-item .hi{width:21px;height:21px}

/* v50: أزرار العمود تتبدل حسب الصفحة (بدون تمرير) */
.hedrh-sidenav.has-ctx > a.hedrh-sidenav-item:not(.hedrh-ctx-item):not([href="/"]):not([href="/notifications/"]):not([href="/messages/"]):not([href="/profile/"]){display:none!important}
.hedrh-sidenav.has-ctx > .hedrh-sidenav-sep:last-of-type{display:none}
.hedrh-sidenav.has-ctx .hedrh-ctxnav-title{padding:10px 14px 2px}
.hedrh-sidenav.has-ctx > a[href="/"].is-active{color:#0f1419;font-weight:600}
.hedrh-sidenav.has-ctx > a[href="/"].is-active .hi{color:inherit}

/* v51: رأس السوق */
.hedrh-market-head{padding:14px 18px!important;gap:12px}
.hedrh-market-head h2{font-size:19px!important;font-weight:800!important;color:#0f1419;gap:10px!important}
.hedrh-market-head h2 > span:first-child{width:40px;height:40px;border-radius:12px;background:#e8f2fc;color:#1877d2;display:inline-flex;align-items:center;justify-content:center}
.hedrh-market-head h2 .hi{width:22px;height:22px}
.hedrh-market-head p{font-size:13px!important;color:#536471!important;margin-inline-start:50px}
.hedrh-market-head > a{padding:9px 18px!important;border-radius:999px!important;font-size:14px!important;font-weight:700;gap:8px!important;background:#1877d2!important;white-space:nowrap}
.hedrh-market-head > a .hi{width:18px;height:18px}
@media (max-width:480px){.hedrh-market-head p{margin-inline-start:0}.hedrh-market-head > a span:last-child{display:none}.hedrh-market-head > a{padding:10px!important}}

/* v52: قائمة المزيد فوق المحتوى */
nav:has(> .hedrh-secnav){position:relative;z-index:35}
.hedrh-secnav{z-index:35}
.hedrh-more-menu{z-index:60;background:#fff!important;opacity:1}

/* v53: صفحة نشر إعلان — مناسبة للجوال + كرت رفع الصور */
.hedrh-upcard-input{position:absolute!important;width:1px!important;height:1px!important;opacity:0!important;pointer-events:none}
.hedrh-upcard{margin-top:6px;border:2px dashed #cbd5e1;border-radius:16px;padding:10px;background:#f8fafc;transition:border-color .15s,background-color .15s}
.hedrh-upcard.is-drag{border-color:#1877d2;background:#eef5fd}
.hedrh-upcard-drop{width:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;padding:26px 12px;border-radius:12px;color:#475569}
.hedrh-upcard-drop:hover{background:#eef2f7}
.hedrh-upcard-drop .hi{width:38px;height:38px;color:#1877d2}
.hedrh-upcard-drop b{font-size:15px;color:#0f1419}
.hedrh-upcard-drop span{font-size:12.5px;color:#64748b}
.hedrh-upcard-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:8px}
.hedrh-upcard-grid:empty{display:none}
.hedrh-upcard-thumb{position:relative;aspect-ratio:1/1;border-radius:12px;overflow:hidden;background:#e2e8f0}
.hedrh-upcard-thumb img{width:100%;height:100%;object-fit:cover}
.hedrh-upcard-rm{position:absolute;top:6px;left:6px;width:26px;height:26px;border-radius:999px;background:rgba(15,20,25,.75);color:#fff;font-size:12px}
.hedrh-upcard-main{position:absolute;bottom:6px;right:6px;font-size:10.5px;padding:2px 8px;border-radius:999px;background:#1877d2;color:#fff}
.hedrh-upcard-add{aspect-ratio:1/1;border-radius:12px;border:2px dashed #cbd5e1;display:flex;align-items:center;justify-content:center;color:#1877d2}
.hedrh-upcard-add .hi{width:26px;height:26px}
form:has(input[name="images[]"]):has(select[name="condition_id"]) input:not([type=checkbox]):not([type=radio]):not([type=file]),
form:has(input[name="images[]"]):has(select[name="condition_id"]) select,
form:has(input[name="images[]"]):has(select[name="condition_id"]) textarea{min-height:46px;font-size:16px!important;border:1px solid #e2e8f0!important;background:#fff!important;border-radius:12px!important}
form:has(input[name="images[]"]):has(select[name="condition_id"]) label.text-sm{font-size:14px!important;color:#0f1419}
@media (max-width:640px){
  form:has(input[name="images[]"]):has(select[name="condition_id"]){padding-bottom:76px}
  form:has(input[name="images[]"]):has(select[name="condition_id"]) button[type=submit]{position:fixed!important;left:12px;right:12px;bottom:max(12px,env(safe-area-inset-bottom));z-index:45;width:auto!important;padding:14px!important;border-radius:999px!important;font-size:16px!important;box-shadow:0 8px 24px rgba(24,119,210,.35)}
  .hedrh-upcard-grid{grid-template-columns:repeat(3,1fr)}
}

/* v54: كرت غلاف المجلس + نماذج المجالس */
.hedrh-cover-prev{position:relative;border-radius:12px;overflow:hidden;aspect-ratio:3/1;background:#e2e8f0}
.hedrh-cover-prev[hidden]{display:none}
.hedrh-cover-prev img{width:100%;height:100%;object-fit:cover}
.hedrh-cover-change{position:absolute;bottom:8px;right:8px;padding:6px 14px;border-radius:999px;background:rgba(15,20,25,.75);color:#fff;font-size:12.5px;font-weight:700}
form:has(input[name="cover"]){padding:18px!important;border-radius:18px!important;box-shadow:0 1px 3px rgba(15,20,25,.08)!important;border:1px solid #eff3f4}
form:has(input[name="cover"]) input:not([type=checkbox]):not([type=radio]):not([type=file]),form:has(input[name="cover"]) select,form:has(input[name="cover"]) textarea{min-height:46px;font-size:16px!important;border:1px solid #e2e8f0!important;border-radius:12px!important;background:#fff!important;padding:10px 12px!important}
form:has(input[name="cover"]) label{font-size:14px;color:#0f1419}
form:has(input[name="cover"]) button[type=submit]{padding:12px!important;border-radius:999px!important;font-size:15.5px!important;font-weight:700;background:#1877d2!important}

/* v55: كرت الفيديو + معرض صور الإعلان */
.hedrh-hide-old{display:none!important}
.hedrh-vidcard{margin-top:8px}
.hedrh-vid-prev{display:flex;flex-direction:column;gap:8px}
.hedrh-vid-prev[hidden]{display:none}
.hedrh-vid-prev video{width:100%;max-height:260px;border-radius:12px;background:#000}
.hedrh-vid-meta{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:12.5px;color:#475569}
.hedrh-vid-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.hedrh-vid-rm{padding:5px 12px;border-radius:999px;color:#e0245e;background:#fdecee;font-weight:700;font-size:12px;flex-shrink:0}
article:has(#adMainImage){border-radius:18px!important}
.hedrh-adgal{position:relative;overflow:hidden;background:#0f1419!important}
.hedrh-adgal::before{content:"";position:absolute;inset:-30px;background:var(--adbg) center/cover;filter:blur(24px) brightness(.7);transform:scale(1.1)}
.hedrh-adgal #adMainImage{position:relative;z-index:1;width:100%;height:420px;max-height:none!important;object-fit:contain!important}
.hedrh-adgal > div{z-index:2}
img[onclick*="adMainImage"]{width:72px!important;height:72px!important;border-radius:12px!important;border:2px solid transparent!important;opacity:.7;transition:opacity .15s,border-color .15s}
img[onclick*="adMainImage"]:hover{opacity:1}
img[onclick*="adMainImage"].is-active{border-color:#1877d2!important;opacity:1}
.hedrh-lightbox{position:fixed;inset:0;z-index:95;background:rgba(0,0,0,.92);display:none;align-items:center;justify-content:center;padding:20px}
.hedrh-lightbox.is-open{display:flex}
.hedrh-lightbox img{max-width:100%;max-height:100%;object-fit:contain;border-radius:8px}
.hedrh-lightbox button{position:absolute;top:16px;left:16px;width:40px;height:40px;border-radius:999px;background:rgba(255,255,255,.15);color:#fff;font-size:18px}
@media (max-width:640px){.hedrh-adgal #adMainImage{height:300px}}

/* v56: محاذاة زر يوتيوب مع باقي الأدوات */
#postModal .hedrh-modal-tools > .hedrh-yt-tool{margin:0!important;align-self:center;background:transparent!important;color:#1877d2!important;font-weight:500!important;font-size:inherit!important}
#postModal .hedrh-modal-tools > .hedrh-yt-tool:hover{background:rgba(24,119,210,.1)!important}
#postModal .hedrh-modal-tools > *{vertical-align:middle}
@media (max-width:640px){#postModal .hedrh-modal-tools > .hedrh-yt-tool{background:#f8fafc!important;align-self:stretch}}

/* v57: يحدث الآن + أشخاص قد تعرفهم */
.hedrh-trends,.hedrh-wtf{padding:0!important;overflow:hidden;margin-bottom:12px}
.hedrh-wtitle{font-size:19px;font-weight:800;color:#0f1419;padding:12px 16px 6px}
.hedrh-trend{display:flex;flex-direction:column;gap:1px;padding:10px 16px;transition:background-color .15s}
.hedrh-trend:hover{background:#f7f9f9}
.hedrh-trend-meta{font-size:12.5px;color:#536471}
.hedrh-trend-name{font-size:15px;font-weight:700;color:#0f1419;direction:rtl}
.hedrh-trend-count{font-size:12.5px;color:#536471}
.hedrh-trends .is-extra{display:none}
.hedrh-trends.is-open .is-extra{display:flex}
.hedrh-wmore{display:block;width:100%;text-align:right;padding:14px 16px;color:#1877d2;font-size:14.5px;transition:background-color .15s}
.hedrh-wmore:hover{background:#f7f9f9}
.hedrh-wtf-row{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px 16px;transition:background-color .15s}
.hedrh-wtf-row:hover{background:#f7f9f9}
.hedrh-wtf-user{display:flex;align-items:center;gap:10px;min-width:0}
.hedrh-wtf-user img,.hedrh-wtf-letter{width:40px;height:40px;border-radius:999px;object-fit:cover;flex-shrink:0}
.hedrh-wtf-letter{display:flex;align-items:center;justify-content:center;background:#e0f2fe;color:#0369a1;font-weight:800}
.hedrh-wtf-info{display:flex;flex-direction:column;min-width:0}
.hedrh-wtf-info b{font-size:14.5px;color:#0f1419;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.hedrh-wtf-info small{font-size:12.5px;color:#536471}
.hedrh-follow-btn{flex-shrink:0;padding:7px 16px;border-radius:999px;background:#0f1419;color:#fff;font-size:13.5px;font-weight:700;transition:background-color .15s}
.hedrh-follow-btn:hover{background:#272c30}
.hedrh-follow-btn.is-following{background:#fff;color:#0f1419;box-shadow:inset 0 0 0 1px #cfd9de}

/* v58: مسافة بين صندوق النشر وأول منشور */
#hedrhFeed{margin-top:12px}


/* v59: مشغل صوت مصغّر (سطر واحد) */
.hedrh-audio-player{display:flex!important;align-items:center;gap:10px;padding:10px 12px!important;text-align:start!important}
.hedrh-audio-player > .flex.flex-col{order:3;flex:none;margin:0!important;gap:0!important;position:relative}
.hedrh-audio-player > .flex.flex-col > img,.hedrh-audio-player > .flex.flex-col > div:first-child{width:40px!important;height:40px!important;font-size:15px!important}
.hedrh-audio-player > .flex.flex-col > .leading-snug{display:none}
.hedrh-audio-player > .flex.flex-col::after{content:"";position:absolute;bottom:-2px;left:-2px;width:16px;height:16px;border-radius:50%;border:2px solid #0f172a;background:#22c3e6 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23fff'%3E%3Cpath d='M12 15a3 3 0 0 0 3-3V5a3 3 0 0 0-6 0v7a3 3 0 0 0 3 3zm5-3a5 5 0 0 1-10 0H5a7 7 0 0 0 6 6.9V22h2v-3.1A7 7 0 0 0 19 12z'/%3E%3C/svg%3E") center/8px no-repeat}
.hedrh-audio-player > .flex.items-center.gap-3{flex:1;min-width:0;gap:10px!important}
.hedrh-audio-player .hedrh-audio-toggle{width:38px!important;height:38px!important;border-radius:50%!important;flex:none}
.hedrh-audio-player .flex-1{min-width:0;display:flex;flex-direction:column-reverse;gap:6px}
.hedrh-audio-player .hedrh-audio-progress-wrapper{margin:0!important;height:4px!important}
.hedrh-audio-player .flex-1 > .justify-between{flex-direction:row-reverse;gap:8px;font-size:11px!important}
.hedrh-audio-player .hedrh-audio-time{direction:ltr;color:#94a3b8;flex:none}
.hedrh-audio-player .hedrh-audio-name{font-size:13px!important;font-weight:600;color:#fff!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0}

/* v59: يحدث الآن كأزرار خفيفة */
.hedrh-trends{display:flex;flex-wrap:wrap;gap:6px;padding:0 12px 12px!important}
.hedrh-trends > .hedrh-wtitle{width:100%;padding:12px 4px 4px;font-size:17px}
.hedrh-trends > p{width:100%}
.hedrh-trends .hedrh-trend,.hedrh-trends .is-extra{display:inline-flex!important;flex-direction:row;align-items:center;gap:4px;padding:5px 11px;border-radius:999px;background:#eef6ff;border:1px solid #d6e8ff;max-width:100%}
.hedrh-trends .hedrh-trend:hover{background:#1877d2;border-color:#1877d2}
.hedrh-trends .hedrh-trend:hover .hedrh-trend-name{color:#fff}
.hedrh-trends .hedrh-trend-meta,.hedrh-trends .hedrh-trend-count,.hedrh-trends .hedrh-wmore{display:none!important}
.hedrh-trends .hedrh-trend-name{font-size:13px;font-weight:600;color:#1877d2;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

/* v59: أزرار النشر في الصناديق الضيقة */
.flex-1:has(> .hedrh-composer-tools){min-width:0;container-type:inline-size}
.hedrh-composer-tools,.hedrh-composer-tools > span{min-width:0}
@container (max-width:520px){.hedrh-composer-tools > span{flex-direction:column;gap:3px!important;padding:6px 2px!important;font-size:11px}}

/* v60: إعادة النشر */
.repost-btn:hover{color:#00ba7c!important}
.repost-btn.is-reposted{color:#00ba7c!important}
.repost-btn svg{display:block}
.hedrh-repost-by{display:flex;align-items:center;gap:6px;font-size:12.5px;font-weight:700;color:#536471;padding:8px 14px 0}
.hedrh-repost-by svg{color:#00ba7c;flex:none}
/* v61: قائمة إعادة النشر + الاقتباس */
.hq-menu{position:absolute;z-index:9999;background:#fff;border:1px solid #e2e8f0;border-radius:14px;box-shadow:0 10px 30px rgba(15,23,42,.15);padding:6px;display:flex;flex-direction:column;min-width:190px}
.hq-menu button{text-align:right;padding:10px 12px;border-radius:10px;font-size:14px;font-weight:600;color:#0f1419}
.hq-menu button:hover{background:#f1f5f9}
.hedrh-quote-card{display:block;margin:10px 12px 4px;border:1px solid #e2e8f0;border-radius:14px;padding:10px 12px;color:#0f1419;background:#fff;transition:background .15s}
a.hedrh-quote-card:hover{background:#f8fafc}
.hedrh-quote-card .hq-head{display:flex;align-items:center;gap:6px;font-size:13px;margin-bottom:4px}
.hedrh-quote-card .hq-head img{width:20px;height:20px;border-radius:50%;object-fit:cover}
.hedrh-quote-card .hq-head span{color:#64748b;font-size:12px}
.hedrh-quote-card .hq-text{font-size:14px;line-height:1.6;white-space:normal;word-break:break-word}
.hedrh-quote-card .hq-media{font-size:12.5px;color:#64748b;margin-top:4px}
.hedrh-quote-card.hq-gone{color:#94a3b8;font-size:13px;background:#f8fafc}
.hq-modal{position:fixed;inset:0;z-index:10000;background:rgba(15,23,42,.45);display:flex;align-items:flex-start;justify-content:center;padding:60px 16px 16px}
.hq-box{background:#fff;border-radius:18px;width:100%;max-width:560px;padding:14px;box-shadow:0 20px 50px rgba(0,0,0,.2)}
.hq-top{display:flex;justify-content:space-between;align-items:center;margin-bottom:8px;font-size:16px}
.hq-x{width:32px;height:32px;border-radius:50%;font-size:15px;color:#475569}
.hq-x:hover{background:#f1f5f9}
.hq-input{width:100%;min-height:90px;border:0;outline:none;resize:vertical;font:inherit;font-size:16px;padding:6px 2px}
.hq-box .hedrh-quote-card{margin:6px 0 10px}
.hq-actions{display:flex;justify-content:flex-start;gap:8px;flex-direction:row-reverse}
.hq-send{background:#1877d2;color:#fff;border-radius:999px;padding:8px 20px;font-weight:700}
.hq-send:disabled{opacity:.6}
.hq-cancel{border-radius:999px;padding:8px 16px;color:#475569}
.hq-cancel:hover{background:#f1f5f9}
/* v62: قائمة من أعاد النشر */
.repost-stat{cursor:pointer}
.hr-box{max-width:420px}
.hr-list{max-height:60vh;overflow:auto;margin:0 -6px}
.hr-row{display:flex;align-items:center;gap:10px;padding:9px 8px;border-radius:12px;color:#0f1419}
.hr-row:hover{background:#f1f5f9}
.hr-row img,.hr-ph{width:40px;height:40px;border-radius:50%;object-fit:cover;flex:none}
.hr-ph{display:flex;align-items:center;justify-content:center;background:#1877d2;color:#fff;font-weight:700}
.hr-name{flex:1;font-weight:700;font-size:14.5px;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.hr-kind{font-size:12px;color:#00ba7c;background:#e8fbf3;border-radius:999px;padding:2px 10px;flex:none}
.hr-kind.is-q{color:#1877d2;background:#eef6ff}
.hr-empty{padding:24px;text-align:center;color:#94a3b8;font-size:14px}
/* v63: تكبير أيقونة إعادة النشر */
.repost-btn svg,.repost-stat svg{width:23px!important;height:23px!important;stroke-width:1.9}
/* v65: بطاقة السيرة المهنية / النشاط + عمود الملف الثالث */
.hcv{background:#fff;border:1px solid #e2e8f0;border-radius:18px;overflow:hidden;box-shadow:0 1px 2px rgba(0,0,0,.04);margin-bottom:12px}
.hcv-top{display:flex;align-items:center;gap:10px;padding:14px 14px 12px;background:linear-gradient(135deg,#f0f9ff,#fff 70%);border-bottom:1px solid #f1f5f9}
.hcv-business .hcv-top{background:linear-gradient(135deg,#fff7ed,#fff 70%)}
.hcv-media .hcv-top{background:linear-gradient(135deg,#fdf2f8,#fff 70%)}
.hcv-organization .hcv-top{background:linear-gradient(135deg,#ecfdf5,#fff 70%)}
.hcv-ic{width:40px;height:40px;border-radius:12px;background:#0ea5e9;color:#fff;display:flex;align-items:center;justify-content:center;font-size:19px;flex:none}
.hcv-business .hcv-ic{background:#f97316}.hcv-media .hcv-ic{background:#db2777}.hcv-organization .hcv-ic{background:#059669}
.hcv-ttl{flex:1;min-width:0}
.hcv-ttl small{display:block;font-size:11.5px;color:#64748b}
.hcv-ttl b{display:block;font-size:15px;color:#0f172a;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.hcv-status{font-size:11.5px;font-weight:700;border-radius:999px;padding:3px 10px;white-space:nowrap}
.hcv-status:before{content:'';display:inline-block;width:7px;height:7px;border-radius:50%;margin-left:5px;vertical-align:middle;background:currentColor}
.st-available{background:#dcfce7;color:#15803d}.st-services{background:#e0f2fe;color:#0369a1}.st-busy{background:#f1f5f9;color:#64748b}
.hcv-stats{display:grid;grid-template-columns:repeat(3,1fr);text-align:center;border-bottom:1px solid #f1f5f9}
.hcv-stats div{padding:10px 4px}
.hcv-stats div+div{border-right:1px solid #f1f5f9}
.hcv-stats b{display:block;font-size:17px;color:#0f172a}
.hcv-stats span{font-size:11.5px;color:#64748b}
.hcv-about{padding:12px 14px 0;font-size:13.5px;line-height:1.75;color:#334155;margin:0}
.hcv-line{display:flex;flex-wrap:wrap;align-items:center;gap:6px;padding:8px 14px 0;font-size:13px;color:#334155}
.hcv-line .hi{color:#64748b;font-size:15px}
.hcv-days{width:100%;padding-right:21px;color:#94a3b8;font-size:11.5px}
.hcv-sec{padding:12px 14px 0}
.hcv-sec h4{font-size:12px;color:#64748b;font-weight:700;margin:0 0 6px}
.hcv-tags{display:flex;flex-wrap:wrap;gap:5px}
.hcv-tags span{font-size:12px;background:#f1f5f9;color:#0f172a;border-radius:8px;padding:4px 9px}
.hcv-tl{list-style:none;margin:0;padding:0 14px 0 0;border-right:2px solid #e0f2fe}
.hcv-tl li{position:relative;padding:0 0 10px;display:flex;flex-direction:column}
.hcv-tl li:before{content:'';position:absolute;right:-20px;top:4px;width:10px;height:10px;border-radius:50%;background:#0ea5e9;border:2px solid #fff;box-shadow:0 0 0 2px #e0f2fe}
.hcv-tl b{font-size:13.5px;color:#0f172a}
.hcv-tl span{font-size:12.5px;color:#475569}
.hcv-tl small{font-size:11.5px;color:#94a3b8}
.hcv-links{display:flex;flex-wrap:wrap;gap:6px;padding:12px 14px 0}
.hcv-links a{display:inline-flex;align-items:center;gap:5px;font-size:12.5px;color:#0369a1;background:#f0f9ff;border-radius:999px;padding:5px 11px}
.hcv-links a:hover{background:#e0f2fe}
.hcv-cta{display:flex;gap:8px;padding:14px}
.hcv-btn{flex:1;display:inline-flex;align-items:center;justify-content:center;gap:6px;background:#0ea5e9;color:#fff;font-weight:700;font-size:13.5px;border-radius:12px;padding:9px 10px}
.hcv-btn:hover{background:#0284c7;color:#fff}
.hcv-wa{background:#22c55e}.hcv-wa:hover{background:#16a34a}
.hcv-btn2{background:#f1f5f9;color:#0f172a}.hcv-btn2:hover{background:#e2e8f0;color:#0f172a}
.hcv-empty{margin:-6px 14px 14px;font-size:12px;color:#94a3b8;text-align:center}
/* الملف الشخصي: 3 أعمدة على الشاشات الكبيرة */
@media (min-width:1200px){
  #hpf-grid{grid-template-columns:270px minmax(0,1fr) 300px!important}
  #hpf-grid > *{grid-column:auto!important}
  #hpf-grid > .hpf-left{display:block!important}
  .hpf-inline-cv{display:none}
}
.hpf-left{display:none}
.hpf-left .hcv{position:sticky;top:64px}
/* حقول الإعدادات */
.hx-group{display:flex;flex-direction:column;gap:12px;border-top:1px dashed #e2e8f0;padding-top:14px}
.hx-group[hidden]{display:none!important}
.hx-field > label{display:block;font-size:13px;font-weight:600;color:#334155;margin-bottom:6px}
.hx-in{width:100%;border:1px solid #cbd5e1;border-radius:12px;padding:8px 12px;font-size:14px;background:#fff}
.hx-in:focus{outline:none;border-color:#0ea5e9;box-shadow:0 0 0 3px rgba(14,165,233,.12)}
.hx-short{max-width:150px}
.hx-cnt,.hx-hint{display:block;font-size:11px;color:#94a3b8;margin-top:3px}
.hx-cnt{text-align:left}
.hx-pills,.hx-days{display:flex;flex-wrap:wrap;gap:6px}
.hx-pill{position:relative;cursor:pointer}
.hx-pill input{position:absolute;inset:0;opacity:0;margin:0}
.hx-pill span{display:inline-block;border:1px solid #e2e8f0;border-radius:999px;padding:5px 12px;font-size:13px;color:#334155;user-select:none}
.hx-pill input:checked + span{background:#0ea5e9;border-color:#0ea5e9;color:#fff}
.hx-time{display:flex;align-items:center;gap:8px;margin-top:8px;font-size:13px;color:#64748b}
.hx-tl{display:flex;flex-direction:column;gap:6px}
.hx-tl-row{display:grid;grid-template-columns:1.3fr 1fr 120px;gap:6px}
@media (max-width:640px){.hx-tl-row{grid-template-columns:1fr 1fr}.hx-tl-row .hx-short{grid-column:1/-1;max-width:none}}
/* v67: البطاقة الافتراضية */
.hcv-default .hcv-ic{background:linear-gradient(135deg,#0ea5e9,#6366f1)}
.hcv-types{display:grid;grid-template-columns:1fr 1fr;gap:6px;padding:12px 14px 0}
.hcv-types a{display:flex;align-items:center;gap:6px;font-size:12.5px;font-weight:600;color:#0f172a;border:1px solid #e2e8f0;border-radius:12px;padding:8px 10px}
.hcv-types a:hover{border-color:#0ea5e9;background:#f0f9ff}
.hcv-person{display:flex;align-items:center;gap:10px;padding:6px 0;color:#0f172a}
.hcv-person img,.hcv-ph{width:36px;height:36px;border-radius:50%;object-fit:cover;flex:none}
.hcv-ph{display:flex;align-items:center;justify-content:center;background:#0ea5e9;color:#fff;font-weight:700}
.hcv-pn{min-width:0;display:flex;flex-direction:column}
.hcv-pn b{font-size:13.5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.hcv-pn small{font-size:11.5px;color:#64748b}
.hcv-person:hover b{color:#0284c7}
#mobileSidebarWidgets .hcv{position:static}
/* v68: عمود الملف مضغوط (أعمدة داخل الكروت) */
#desktopSidebarWidgets .grid.grid-cols-2.gap-3, #mobileSidebarWidgets .grid.grid-cols-2.gap-3, #hpfInfoDrawer .grid.grid-cols-2.gap-3{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:6px!important}
#desktopSidebarWidgets .grid.grid-cols-2.gap-3 > .flex.flex-col, #mobileSidebarWidgets .grid.grid-cols-2.gap-3 > .flex.flex-col, #hpfInfoDrawer .grid.grid-cols-2.gap-3 > .flex.flex-col{flex-direction:column-reverse!important;align-items:center;text-align:center;padding:8px 4px!important}
#desktopSidebarWidgets .grid.grid-cols-2.gap-3 > .flex.flex-col > span:first-child, #mobileSidebarWidgets .grid.grid-cols-2.gap-3 > .flex.flex-col > span:first-child, #hpfInfoDrawer .grid.grid-cols-2.gap-3 > .flex.flex-col > span:first-child{font-size:11px!important;margin:0!important}
#desktopSidebarWidgets .grid.grid-cols-2.gap-3 > .flex.flex-col > span.font-bold, #mobileSidebarWidgets .grid.grid-cols-2.gap-3 > .flex.flex-col > span.font-bold, #hpfInfoDrawer .grid.grid-cols-2.gap-3 > .flex.flex-col > span.font-bold{font-size:16px!important;line-height:1.3}
#desktopSidebarWidgets .space-y-2.text-slate-600, #mobileSidebarWidgets .space-y-2.text-slate-600, #hpfInfoDrawer .space-y-2.text-slate-600{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}
#desktopSidebarWidgets .space-y-2.text-slate-600 > *, #mobileSidebarWidgets .space-y-2.text-slate-600 > *, #hpfInfoDrawer .space-y-2.text-slate-600 > *{margin:0!important;flex-direction:column;justify-content:center;text-align:center;background:#f8fafc;border-radius:10px;padding:8px 4px;gap:3px!important;font-size:12px;min-width:0}
#desktopSidebarWidgets .space-y-2.text-slate-600 > * > span:last-child, #mobileSidebarWidgets .space-y-2.text-slate-600 > * > span:last-child, #hpfInfoDrawer .space-y-2.text-slate-600 > * > span:last-child{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}
#desktopSidebarWidgets .space-y-2:has(> .justify-between.border-b), #mobileSidebarWidgets .space-y-2:has(> .justify-between.border-b), #hpfInfoDrawer .space-y-2:has(> .justify-between.border-b){display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}
#desktopSidebarWidgets .space-y-2 > .justify-between.border-b, #mobileSidebarWidgets .space-y-2 > .justify-between.border-b, #hpfInfoDrawer .space-y-2 > .justify-between.border-b{margin:0!important;flex-direction:column;align-items:center;justify-content:center;text-align:center;gap:2px!important;border:0!important;background:#f8fafc;border-radius:10px;padding:8px 4px!important;min-width:0}
#desktopSidebarWidgets .space-y-2 > .justify-between.border-b > span:first-child, #mobileSidebarWidgets .space-y-2 > .justify-between.border-b > span:first-child, #hpfInfoDrawer .space-y-2 > .justify-between.border-b > span:first-child{font-size:11px}
#desktopSidebarWidgets .space-y-2 > .justify-between.border-b > span:last-child, #mobileSidebarWidgets .space-y-2 > .justify-between.border-b > span:last-child, #hpfInfoDrawer .space-y-2 > .justify-between.border-b > span:last-child{font-size:12.5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}
#desktopSidebarWidgets .grid.grid-cols-1.gap-4, #mobileSidebarWidgets .grid.grid-cols-1.gap-4, #hpfInfoDrawer .grid.grid-cols-1.gap-4{gap:10px!important}
/* v70: أزرار الملف ممتدة على الجوال */
@media (max-width:767px){
  .hpf-actions{align-self:stretch!important;width:100%;gap:8px!important;margin-top:10px!important}
  .hpf-actions > a, .hpf-actions > button, .hpf-actions > .relative{flex:1 1 0;justify-content:center}
  .hpf-actions > a, .hpf-actions > button, .hpf-actions > .relative > button{font-size:14px!important;padding:9px 12px!important;border-radius:12px!important;font-weight:700;width:100%;justify-content:center}
  .hpf-actions .w-3, .hpf-actions .w-4{width:auto!important;height:auto!important;font-size:16px}
}

/* ===== HEDRH_ADGAL_V2: صورة الإعلان ملاصقة بدون حواف + معرض كامل ===== */
article:has(#adMainImage){border-radius:0 0 18px 18px!important;border-top:0!important}
.hedrh-adgal{background:#000!important}
.hedrh-adgal::before{display:none!important}
.hedrh-adgal #adMainImage{display:block;width:100%!important;height:auto!important;aspect-ratio:4/3;max-height:520px!important;object-fit:cover!important;cursor:zoom-in}
@media (max-width:767px){.hedrh-adgal #adMainImage{aspect-ratio:1/1}}
.hedrh-agv{position:fixed;inset:0;z-index:9999;background:#000;display:none;flex-direction:column;touch-action:pan-y}
.hedrh-agv.is-open{display:flex}
.hedrh-agv-top{display:flex;align-items:center;justify-content:space-between;padding:12px 14px;color:#fff;font-size:14px;direction:rtl}
.hedrh-agv-btn{width:40px;height:40px;border-radius:999px;border:0;background:rgba(255,255,255,.14);color:#fff;font-size:22px;line-height:40px;cursor:pointer}
.hedrh-agv-btn{direction:ltr;unicode-bidi:isolate}
.hedrh-agv-prev{right:12px!important;left:auto!important}.hedrh-agv-next{left:12px!important;right:auto!important}
.hedrh-agv-btn:hover{background:rgba(255,255,255,.26)}
.hedrh-agv-stage{flex:1;position:relative;display:flex;align-items:center;justify-content:center;overflow:hidden}
.hedrh-agv-stage img{max-width:100%;max-height:100%;object-fit:contain;user-select:none;-webkit-user-drag:none}
.hedrh-agv-prev,.hedrh-agv-next{position:absolute;top:50%;transform:translateY(-50%)}
.hedrh-agv-prev{right:12px}.hedrh-agv-next{left:12px}
.hedrh-agv-strip{display:flex;gap:6px;justify-content:center;padding:10px;overflow-x:auto}
.hedrh-agv-strip img{width:56px;height:56px;object-fit:cover;border-radius:8px;opacity:.5;border:2px solid transparent;cursor:pointer;flex-shrink:0}
.hedrh-agv-strip img.on{opacity:1;border-color:#fff}
@media (max-width:767px){.hedrh-agv-prev,.hedrh-agv-next{display:none}}

/* ===== HEDRH_COUNCIL_MEMBERS_V2: قائمة أعضاء المجلس مرتبة ===== */
#desktopSidebarWidgets .space-y-2.text-sm:has(> .member-row.justify-between.border-b),#mobileSidebarWidgets .space-y-2.text-sm:has(> .member-row.justify-between.border-b),#hpfInfoDrawer .space-y-2.text-sm:has(> .member-row.justify-between.border-b){display:flex!important;flex-direction:column!important;gap:2px!important}
#desktopSidebarWidgets .space-y-2.text-sm:has(> .member-row.justify-between.border-b) > *,#mobileSidebarWidgets .space-y-2.text-sm:has(> .member-row.justify-between.border-b) > *,#hpfInfoDrawer .space-y-2.text-sm:has(> .member-row.justify-between.border-b) > *{margin:0!important}
#desktopSidebarWidgets .space-y-2.text-sm > .member-row.justify-between.border-b,#mobileSidebarWidgets .space-y-2.text-sm > .member-row.justify-between.border-b,#hpfInfoDrawer .space-y-2.text-sm > .member-row.justify-between.border-b{display:flex!important;flex-direction:row!important;align-items:center!important;justify-content:space-between!important;text-align:start!important;gap:10px!important;padding:8px 10px!important;border:0!important;border-radius:12px!important;background:transparent!important;min-height:0!important;width:100%!important}
#desktopSidebarWidgets .space-y-2.text-sm > .member-row.justify-between.border-b:hover,#mobileSidebarWidgets .space-y-2.text-sm > .member-row.justify-between.border-b:hover,#hpfInfoDrawer .space-y-2.text-sm > .member-row.justify-between.border-b:hover{background:#f4f6f8!important}
#desktopSidebarWidgets .member-row.justify-between.border-b > div:first-child,#mobileSidebarWidgets .member-row.justify-between.border-b > div:first-child,#hpfInfoDrawer .member-row.justify-between.border-b > div:first-child{display:flex!important;flex-direction:row!important;align-items:center!important;gap:10px!important;min-width:0!important;flex:1 1 auto!important;text-align:start!important}
#desktopSidebarWidgets .member-row.justify-between.border-b img,#mobileSidebarWidgets .member-row.justify-between.border-b img,#hpfInfoDrawer .member-row.justify-between.border-b img{width:40px!important;height:40px!important;border-radius:999px!important;flex-shrink:0!important;margin:0!important}
#desktopSidebarWidgets .member-row.justify-between.border-b .flex-col,#mobileSidebarWidgets .member-row.justify-between.border-b .flex-col,#hpfInfoDrawer .member-row.justify-between.border-b .flex-col{display:flex!important;flex-direction:column!important;align-items:flex-start!important;min-width:0!important}
#desktopSidebarWidgets .member-row.justify-between.border-b .flex-col > span:first-child,#mobileSidebarWidgets .member-row.justify-between.border-b .flex-col > span:first-child,#hpfInfoDrawer .member-row.justify-between.border-b .flex-col > span:first-child{font-size:14px!important;font-weight:700!important;color:#0f1419!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;max-width:100%!important}
#desktopSidebarWidgets .member-row.justify-between.border-b .flex-col > span + span,#mobileSidebarWidgets .member-row.justify-between.border-b .flex-col > span + span,#hpfInfoDrawer .member-row.justify-between.border-b .flex-col > span + span{font-size:12px!important;color:#536471!important;white-space:nowrap!important}
#desktopSidebarWidgets .member-row.justify-between.border-b > *:not(:first-child),#mobileSidebarWidgets .member-row.justify-between.border-b > *:not(:first-child),#hpfInfoDrawer .member-row.justify-between.border-b > *:not(:first-child){flex-shrink:0!important;margin:0!important}
/* ===== HEDRH_MODAL_STICKY_REPLY: حقل التعليق ثابت أسفل نافذة المنشور ===== */
#imageModalPost > article{overflow:visible!important}
#imageModalPost .post-content-wrap{display:flex!important;flex-direction:column}
#imageModalPost .post-content-wrap > .reply-form{order:99;position:sticky;bottom:0;z-index:5;background:#fff;margin:8px -8px -12px!important;padding:10px 8px!important;border-top:1px solid #eef1f4;box-shadow:0 -6px 14px rgba(15,20,25,.06)}
/* HEDRH_MODAL_REPLY_BOTTOM: الحقل أسفل النافذة حتى للمنشورات القصيرة */
#imageModalPost:not(.hidden){display:flex;flex-direction:column}
#imageModalPost > article{flex:1 0 auto;display:flex;flex-direction:column}
#imageModalPost .post-content-wrap{flex:1 0 auto}
#imageModalPost .post-content-wrap > .reply-form{margin-top:auto!important}

/* ===== HEDRH_MOBILE_BOTTOMBAR: شريط سفلي للجوال بدل الهيدر ===== */
#hedrhBottomBar{display:none}
@media (max-width:1023px){
  body.hedrh-mobbar > header{display:none!important}
  body.hedrh-mobbar{padding-bottom:calc(62px + env(safe-area-inset-bottom))!important}
  #hedrhBottomBar{display:block;position:fixed;left:0;right:0;bottom:0;z-index:45;height:calc(52px + env(safe-area-inset-bottom));transition:transform .28s ease;filter:drop-shadow(0 -2px 8px rgba(15,20,25,.10))}
  #hedrhBottomBar.is-hidden{transform:translateY(calc(100% + 40px));pointer-events:none}
  #hedrhBottomBar .hbb-bg{position:absolute;inset:0;background:#fff;-webkit-mask:radial-gradient(circle 31px at 50% -4px,transparent 30px,#000 31px);mask:radial-gradient(circle 31px at 50% -4px,transparent 30px,#000 31px)}
  #hedrhBottomBar .hbb-row{position:relative;height:52px;display:flex;align-items:center;justify-content:space-around;padding:0 2px;direction:rtl}
  #hedrhBottomBar .hbb-slot{flex:1;display:flex;justify-content:center;align-items:center;min-width:0}
  #hedrhBottomBar .hbb-slot > *{color:#0f1419!important;background:transparent!important;padding:4px!important}
  #hedrhBottomBar .hbb-slot .text-2xl{font-size:23px!important;line-height:1}
  #hedrhBottomBar #userTrigger img{width:28px!important;height:28px!important;box-shadow:0 0 0 2px #fff,0 0 0 3.5px #1877d2}
  #hedrhBottomBar .hbb-fab-slot{flex:0 0 62px;position:relative;height:52px}
  #hedrhBottomBar .hbb-fab{position:absolute;left:50%;top:-20px;transform:translateX(-50%);width:48px;height:48px;border-radius:999px;border:0;background:linear-gradient(145deg,#1d9bf0,#1877d2);color:#fff;font-size:26px;line-height:48px;box-shadow:0 6px 16px rgba(24,119,210,.45);cursor:pointer;display:flex;align-items:center;justify-content:center;padding:0}
  #hedrhBottomBar .hbb-fab:active{transform:translateX(-50%) scale(.94)}
  #hedrhBottomBar .hbb-fab svg{width:22px;height:22px}
  #notifDropdown{position:fixed!important;top:0!important;bottom:auto!important;left:0!important;right:0!important;inset-inline:0!important;width:100vw!important;max-width:100vw!important;margin:0!important;border-radius:0 0 18px 18px!important;border-top:0!important;max-height:82vh!important;overflow-y:auto!important;padding-top:env(safe-area-inset-top);box-shadow:0 10px 30px rgba(15,20,25,.22)!important;z-index:1000!important}
  body.hedrh-reels #hedrhBottomBar .hbb-bg{background:#000}
  body.hedrh-reels #hedrhBottomBar .hbb-slot > *{color:#fff!important}
  body.hedrh-reels #hedrhBottomBar #userTrigger img{box-shadow:0 0 0 2px #000,0 0 0 3.5px #1d9bf0}
}
/* HEDRH_SEARCH_ICON: أيقونة البحث ظاهرة داخل الحقل */
#q ~ span, #q-mobile ~ span{color:#536471!important;opacity:1!important;pointer-events:none}
#q ~ span .hi, #q-mobile ~ span .hi{color:inherit!important}
#q, #q-mobile{color:#0f1419!important}
/* HEDRH_BACK_BTN: سهم رجوع للجوال */
#hedrhBackBtn{display:none}
@media (max-width:1023px){
  #hedrhBackBtn{display:flex;position:fixed;top:calc(10px + env(safe-area-inset-top));right:10px;z-index:44;width:38px;height:38px;border-radius:999px;border:0;align-items:center;justify-content:center;background:rgba(255,255,255,.92);color:#0f1419;box-shadow:0 2px 10px rgba(15,20,25,.18);-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);transition:transform .28s ease,opacity .28s ease;cursor:pointer;padding:0}
  #hedrhBackBtn svg{width:20px;height:20px}
  body.hbb-down #hedrhBackBtn{transform:translateY(-70px);opacity:0;pointer-events:none}
  body.hedrh-reels #hedrhBackBtn{background:rgba(0,0,0,.55);color:#fff}
}
/* HEDRH_VIDEOS_HOME: أيقونة الرئيسية مقابل عنوان الفيديوهات (جوال) */
.hv-home{display:none}
@media (max-width:1023px){
  .hv-title{display:flex!important;align-items:center;width:100%}
  .hv-home{display:flex;margin-inline-start:auto;width:40px;height:40px;border-radius:999px;align-items:center;justify-content:center;background:rgba(255,255,255,.12);color:#fff;flex-shrink:0}
  .hv-home svg{width:22px;height:22px}
  body:not(.hedrh-reels) .hv-home{background:#eef3f8;color:#0f1419}
}
/* HEDRH_SECNAV_COMPACT: تقليل الهوامش في شريط الأقسام */
.hedrh-secnav{padding:2px 4px!important;gap:0!important}
.hedrh-secnav .hedrh-secnav-item{padding:5px 4px 4px!important;gap:2px!important;font-size:12px!important}
.hedrh-secnav .hedrh-secnav-item .hi{font-size:21px!important;width:21px;height:21px}
/* HEDRH_VIDEO_STABLE: ثبات مساحة الفيديو أثناء التحميل */
.post-media-block video.object-contain{height:320px;background:#000}
@media (min-width:640px){.post-media-block video.object-contain{height:380px}}