/* «بینندگان استوری» — Instagram-style full-screen insights panel (loaded last). */
.mr-sv-viewers-sheet{background:#0e1115;align-items:stretch;-webkit-backdrop-filter:none;backdrop-filter:none;z-index:9}
.mr-sv-viewers-sheet .mr-sv-sheet-card{
  position:relative;width:100%;height:100%;max-height:none;min-height:0;padding:0;border:0;border-radius:0;
  background:#0e1115;box-shadow:none;overflow:hidden;display:flex;flex-direction:column;
}
.mr-sv-vclose{position:absolute;top:calc(14px + env(safe-area-inset-top,0px));right:16px;z-index:2;display:grid;place-items:center;width:40px;height:40px;padding:0;border:0;background:none;color:#fff;cursor:pointer}
.mr-sv-vclose svg{width:28px;height:28px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round}

/* story thumbnails (current one is larger, with a notch pointing at the tab bar) */
.mr-sv-vthumbs{flex:none;display:flex;align-items:center;justify-content:center;gap:12px;
  padding:calc(64px + env(safe-area-inset-top,0px)) 16px 26px;background:#181a1d}
.mr-sv-vthumb{position:relative;flex:none;width:68px;height:120px;padding:0;border:0;border-radius:8px;overflow:hidden;background:#000;cursor:pointer;opacity:.75}
.mr-sv-vthumb.is-cur{width:92px;height:164px;opacity:1;overflow:visible;border-radius:8px}
.mr-sv-vthumb img{display:block;width:100%;height:100%;object-fit:cover;border-radius:8px}
.mr-sv-vthumb-n{position:absolute;left:0;right:0;bottom:6px;display:flex;align-items:center;justify-content:center;gap:4px;color:#fff;font-size:13px;font-weight:600;text-shadow:0 1px 4px rgba(0,0,0,.7)}
.mr-sv-vthumb-n svg{width:14px;height:14px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.mr-sv-vthumb.is-cur::after{content:"";position:absolute;left:50%;bottom:-27px;width:18px;height:18px;margin-left:-9px;background:#0e1115;
  border-left:1px solid rgba(255,255,255,.14);border-top:1px solid rgba(255,255,255,.14);transform:rotate(45deg)}

/* tab bar */
.mr-sv-vtabs{flex:none;display:flex;align-items:center;justify-content:space-between;padding:0 16px;border-top:1px solid rgba(255,255,255,.14);border-bottom:1px solid rgba(255,255,255,.1);background:#0e1115}
.mr-sv-vtab{display:flex;align-items:center;gap:7px;height:54px;padding:0 6px;color:#fff;border-bottom:2px solid #fff;margin-bottom:-1px}
.mr-sv-vtab svg,.mr-sv-vtrash svg{width:23px;height:23px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.mr-sv-vtab .mr-sv-viewers-summary{color:#fff;font-size:17px;font-weight:600}
.mr-sv-vtrash{display:grid;place-items:center;width:40px;height:40px;padding:0;border:0;background:none;color:#fff;cursor:pointer}

.mr-sv-vtitle{flex:none;margin:0;padding:18px 16px 8px;color:#fff;font-size:17px;font-weight:700;text-align:right}

/* viewer rows */
.mr-sv-viewers-sheet .mr-sv-viewers-list{flex:1;min-height:0;gap:0;padding:0 0 max(20px,env(safe-area-inset-bottom));overflow-y:auto;overscroll-behavior:contain}
.mr-sv-viewer-group{display:flex;flex-direction:column;background:none;border-radius:0}
.mr-sv-viewer-row,.mr-sv-viewer-guest{display:flex;align-items:center;gap:14px;padding:9px 16px;min-height:72px;background:none;border-radius:0}
.mr-sv-viewer-row + .mr-sv-viewer-row::before{display:none}
.mr-sv-viewer-avatar{width:54px;height:54px;flex:0 0 54px;font-size:20px;font-weight:600;color:#e5e7eb;background:#2a2d33;box-shadow:none}
.mr-sv-viewer-avatar.is-guest{background:#2a2d33;color:#9ca3af}
.mr-sv-viewer-avatar.is-guest svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.mr-sv-viewer-copy{gap:2px}
.mr-sv-viewer-copy b{font-size:16.5px;font-weight:600;color:#fff}
.mr-sv-viewer-copy small{font-size:13px;color:#9ca3af}
.mr-sv-viewer-copy small[dir="ltr"]{align-self:flex-start}
.mr-sv-viewer-time,.mr-sv-viewer-count{flex:none;padding:0;background:none;color:#9ca3af;font-size:13px;font-weight:400;white-space:nowrap}
.mr-sv-viewers-state{color:#9ca3af}
/* «استوری جدید با دوربین» — last tile, like Instagram */
.mr-sv-vcam{display:grid;place-items:center;background:#000;opacity:1;color:#fff}
.mr-sv-vcam svg{width:34px;height:34px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
