/* نشان باز/بسته + دکمه‌های اشتراک‌گذاری و نصب */
.hm-open{display:inline-flex;align-items:center;gap:6px;padding:3px 10px;border-radius:999px;font-size:12px;font-weight:800;line-height:1.6;white-space:nowrap;background:#dff7e8;color:#0d5b34}
.hm-open[hidden]{display:none}
.hm-open::before{content:"";width:8px;height:8px;border-radius:50%;background:#18a558;box-shadow:0 0 0 0 rgba(24,165,88,.6);animation:hmOpenPulse 2s infinite}
.hm-open.is-closed{background:#fde7e4;color:#8a2a1f}
.hm-open.is-closed::before{background:#d64232;animation:none}
.hm-c-item .hm-open{margin-inline-start:auto}
@keyframes hmOpenPulse{70%{box-shadow:0 0 0 7px rgba(24,165,88,0)}100%{box-shadow:0 0 0 0 rgba(24,165,88,0)}}
.hm-x-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}
.hm-x-btn{display:inline-flex;align-items:center;gap:7px;padding:9px 14px;border-radius:999px;border:1px solid rgba(255,255,255,.28);background:rgba(255,255,255,.1);color:inherit;font:inherit;font-size:13px;font-weight:700;cursor:pointer;transition:background .2s,transform .15s}
.hm-x-btn:hover{background:rgba(255,255,255,.2)}
.hm-x-btn:active{transform:scale(.97)}
.hm-x-btn[hidden]{display:none}
.hm-x-btn .hm-i{width:16px;height:16px}
.hm-x-toast{position:fixed;inset-inline:16px;bottom:calc(84px + env(safe-area-inset-bottom));margin:auto;max-width:340px;z-index:2000;padding:11px 16px;border-radius:14px;background:#12352a;color:#fff;font-size:13px;font-weight:700;text-align:center;box-shadow:0 12px 28px -10px rgba(0,0,0,.5);opacity:0;transform:translateY(8px);transition:opacity .25s,transform .25s;pointer-events:none}
.hm-x-toast.on{opacity:1;transform:none}
@media(prefers-reduced-motion:reduce){.hm-open::before{animation:none}}

/* نشان باز/بسته: کوتاه، تک‌خطی و بدون به‌هم‌ریختن نوار بالا */
.hm-open{max-width:100%;min-width:0;overflow:hidden;text-overflow:ellipsis;flex:0 1 auto;box-sizing:border-box}
.hm-topbar-info{flex-wrap:wrap}
.hm-c-item .hm-open{max-width:46%}
@media(max-width:639.98px){
  .hm-topbar-info .hm-open{max-width:100%;font-size:11.5px;padding:2px 9px;justify-self:end}
  .hm-topbar-in{overflow:hidden}
}
