/* Velvet Room R349 — compact reaction ribbon and bottom-drawer comments. */
.vrFeedReactionSummaryR349[hidden]{display:none!important}
.vrFeedReactionSummaryR349{display:flex;gap:8px;align-items:center;min-height:34px;padding:5px 20px 6px;border-bottom:1px solid rgba(255,255,255,.09);background:#06050a;color:#cfc8d9;font:600 12px/1.2 system-ui,sans-serif}
.vrFeedReactionIconsR349{display:inline-flex;align-items:center;padding-left:2px}
.vrFeedReactionIconR349{display:grid;place-items:center;width:23px;height:23px;margin-left:-3px;border-radius:50%;border:2px solid #050408;background:#2c1837;font:normal 14px/1 system-ui}
/* R405: no public totals; active positive icons left, negative icons right. */
.vrFeedReactionCountR349{display:none!important}
.vrFeedReactionSummaryR349{gap:7px!important;min-height:38px}
.vrR405EmojiGroup{display:inline-flex;gap:0;align-items:center}
.vrR405EmojiGroup--negative{margin-left:auto;justify-content:flex-end}
.vrR405EmojiSpacer{flex:1 1 auto;min-width:0}
.vrR405OwnerReactions{min-height:34px;padding:4px 10px;border-radius:11px;
 border:1px solid rgba(214,178,245,.35);background:rgba(130,61,190,.12);
 color:#e6d0f7;font:750 11px/1.2 system-ui;white-space:nowrap;cursor:pointer}
.vrR405OwnerReactions:focus-visible{outline:2px solid #d6aaff;outline-offset:2px}
.vrFeedReactionIconR349{font-size:16px;width:26px;height:26px}
@media(max-width:350px){.vrFeedReactionSummaryR349{padding:4px 9px}.vrR405OwnerReactions{font-size:10px;padding:4px 6px}}
.vrFeedCommentPreviewR349{display:flex;align-items:center;gap:10px;width:100%;padding:12px 18px;color:#f4eef9;border:0;border-top:1px solid rgba(255,255,255,.07);background:#09060f;text-align:left;cursor:pointer;min-height:58px;font-family:system-ui,sans-serif}
.vrFeedCommentPreviewR349:hover,.vrFeedCommentPreviewR349:focus-visible{background:#1c1124;outline:none}
.vrFeedCommentPreviewAvatarR349{flex:0 0 34px;width:34px;height:34px;display:grid;place-items:center;border-radius:50%;overflow:hidden;background:#412551;color:#fff;font-size:16px;font-weight:800}
.vrFeedCommentPreviewAvatarR349 img{width:100%;height:100%;object-fit:cover}
.vrFeedCommentPreviewTextR349{display:flex;flex:1;min-width:0;flex-direction:column;gap:3px;font-size:12px;line-height:1.4}
.vrFeedCommentPreviewTextR349 strong{font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.vrFeedCommentPreviewTextR349>span{color:#bfb5c7;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.vrFeedCommentPreviewMoreR349{font-size:11px;color:#d38efb;white-space:nowrap;font-weight:700}
body.vrFeedSheetOpenR349{overflow:hidden!important}
.vrFeedCommentBackdropR349[hidden]{display:none!important}
.vrFeedCommentBackdropR349{position:fixed;inset:0;z-index:2147482400;display:flex;justify-content:center;align-items:flex-end;background:rgba(0,0,0,.67);overscroll-behavior:contain}
.vrFeedCommentSheetR349{display:flex;flex-direction:column;width:min(100%,800px);height:min(82dvh,840px);max-height:calc(100dvh - env(safe-area-inset-top,0px) - 18px);min-height:280px;border:1px solid rgba(202,109,255,.38);border-bottom:0;border-radius:23px 23px 0 0;background:#0d0a11;color:#fff;box-shadow:0 -18px 50px rgba(0,0,0,.55);font:normal 14px/1.45 system-ui,sans-serif;transform:translateY(110%);transition:transform .24s ease;overflow:hidden;padding-bottom:env(safe-area-inset-bottom,0px)}
.vrFeedCommentBackdropR349.is-open .vrFeedCommentSheetR349{transform:translateY(0)}
.vrFeedCommentHeadR349{flex:0 0 auto;padding:0 18px 11px;border-bottom:1px solid rgba(255,255,255,.12)}
.vrFeedCommentHandleR349{display:grid;place-items:center;width:100%;height:24px;border:0;background:transparent;cursor:pointer}
.vrFeedCommentHandleR349 span{display:block;width:42px;height:5px;background:#86788e;border-radius:99px}
.vrFeedCommentHeadRowR349{display:flex;align-items:center;justify-content:space-between;gap:12px}
.vrFeedCommentHeadRowR349 h2{font-size:19px;margin:0;line-height:1.1}
.vrFeedCommentHeadRowR349 small{font-size:12px;color:#b8aabd}
.vrFeedCommentCloseR349{width:42px;height:42px;border-radius:50%;border:1px solid rgba(255,255,255,.13);background:#1d1424;color:#fff;cursor:pointer;font-size:18px}
.vrFeedCommentSortWrapR349{display:inline-flex;align-items:center;gap:8px;font-size:12px;margin:2px 0 0;color:#bdafc5}
.vrFeedCommentSortWrapR349 select{padding:7px 9px;background:#191021;border:1px solid rgba(206,105,255,.28);border-radius:8px;color:#f9f1ff;font:700 12px system-ui}
.vrFeedCommentListR349{flex:1;overflow-y:auto;overscroll-behavior:contain;padding:11px 18px 20px}
.vrFeedCommentThreadR349{padding:6px 0 13px;border-bottom:1px solid rgba(255,255,255,.08)}
.vrFeedCommentItemR349{display:flex;align-items:flex-start;gap:11px;padding:9px 0}
.vrFeedCommentItemR349.is-reply{margin-left:38px;padding:8px 0;border-left:2px solid rgba(188,100,255,.24);padding-left:11px}
.vrFeedCommentAvatarR349{flex:0 0 36px;width:36px;height:36px;border-radius:50%;overflow:hidden;background:#352044;display:grid;place-items:center;color:#fff;font-weight:800}
.vrFeedCommentItemR349.is-reply .vrFeedCommentAvatarR349{flex-basis:30px;width:30px;height:30px}
.vrFeedCommentAvatarR349 img{width:100%;height:100%;object-fit:cover}
.vrFeedCommentTextR349{min-width:0;flex:1}
.vrFeedCommentMetaR349{display:flex;align-items:baseline;gap:9px}
.vrFeedCommentMetaR349 strong{font-size:13px}
.vrFeedCommentMetaR349 time{font-size:11px;color:#a999b4}
.vrFeedCommentTextR349 p{margin:5px 0;white-space:pre-wrap;overflow-wrap:anywhere;font-size:14px;line-height:1.55}
.vrFeedCommentReplyBtnR349{padding:2px 5px;border:0;color:#ca92f7;background:transparent;font-size:12px;font-weight:750;cursor:pointer}
.vrFeedCommentEmptyR349{text-align:center;color:#bcadca;margin:45px 8px 12px}
.vrFeedCommentRetryR349{display:block;margin:12px auto;padding:8px 16px;border-radius:10px;background:#281338;border:1px solid #a56ddd;color:white;cursor:pointer}
.vrFeedCommentReplyR349{display:flex;align-items:center;justify-content:space-between;gap:10px;flex:0 0 auto;padding:7px 16px;border-top:1px solid rgba(255,255,255,.13);background:#190e24;color:#efcbff;font-size:12px}
.vrFeedCommentReplyR349[hidden]{display:none!important}
.vrFeedCommentReplyR349 button{border:0;background:transparent;color:#fff;font:700 12px system-ui}
.vrFeedCommentComposeR349{display:flex;align-items:flex-end;gap:10px;padding:12px 15px 10px;border-top:1px solid rgba(255,255,255,.1);background:#0b080e}
.vrFeedCommentSrR349{position:absolute!important;width:1px!important;height:1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important}
#vrFeedCommentInputR349{min-width:0;flex:1;resize:none;min-height:44px;max-height:104px;padding:11px 14px;border:1px solid rgba(255,255,255,.17);border-radius:16px;background:#17101d;color:#fff;font:14px/1.4 system-ui;outline:none}
#vrFeedCommentInputR349:focus{border-color:#ba75fa}
#vrFeedCommentSendR349{min-height:44px;padding:8px 17px;border:1px solid #bc70e9;border-radius:14px;background:#7435aa;color:#fff;font:750 13px system-ui;cursor:pointer}
#vrFeedCommentSendR349:disabled{opacity:.5}
.vrFeedCommentStatusR349{min-height:0;padding:0 16px 6px;color:#b9ffa8;font-size:12px}
.vrFeedCommentStatusR349[data-error="1"]{color:#ffb8c5}
@media(max-width:380px){.vrFeedCommentPreviewMoreR349{font-size:10px}.vrFeedCommentPreviewR349{padding:10px 12px}.vrFeedCommentListR349{padding:9px 12px}.vrFeedCommentHeadR349{padding-left:12px;padding-right:12px}}
@media(prefers-reduced-motion:reduce){.vrFeedCommentSheetR349{transition:none}}

/* R349 narrow-phone containment: a long comment must never move Close offscreen. */
.vrFeedCommentSheetR349{width:100%!important;max-width:min(800px,100vw)!important;min-width:0!important;flex:0 1 100%;box-sizing:border-box}
.vrFeedCommentHeadR349,.vrFeedCommentHeadRowR349{width:100%;max-width:100%;min-width:0;box-sizing:border-box}
.vrFeedCommentHeadRowR349>div{min-width:0;flex:1 1 auto}
.vrFeedCommentCloseR349{flex:0 0 42px;position:relative;z-index:2;pointer-events:auto}

/* R351 — restore full threaded comments and reaction gestures. */
.vrFeedCommentSheetR349{
  margin-bottom:var(--vrR351CommentBottom,75px);
  height:min(82dvh,calc(100dvh - var(--vrR351CommentBottom,75px) - 12px));
  max-height:calc(100dvh - var(--vrR351CommentBottom,75px) - 12px);
}
.vrFeedCommentActionRowR351{display:flex;align-items:center;gap:12px;min-height:32px;margin-top:6px;flex-wrap:wrap}
.vrFeedCommentActionRowR351>button{background:transparent;border:0;padding:5px 2px;color:#c18ae8;font-size:13px;font-weight:750;min-width:28px;min-height:30px;cursor:pointer}
.vrFeedCommentActionRowR351 .vrFeedCommentReactionR351{font-size:22px;line-height:1.15;color:#fff;padding:3px 7px;border-radius:9px;touch-action:manipulation}
.vrFeedCommentReactionR351[aria-pressed="true"]{background:rgba(165,75,225,.21)}
.vrFeedCommentReactionTotalR351{font-size:11px;color:#c9bacd;font-weight:700}
.vrFeedCommentProfileLinkR351{color:inherit;text-decoration:none;display:inline-flex;min-width:0;align-items:center}
.vrFeedCommentProfileLinkR351:focus-visible{outline:2px solid #bd7bfb;border-radius:9px}
.vrFeedCommentExpandR351{display:inline-flex;min-height:36px;padding:7px 13px;margin:2px 0 7px 46px;border:0;border-left:2px solid #8b48bb;border-radius:0 9px 9px 0;color:#c993f1;background:rgba(132,58,178,.09);font:750 13px system-ui;cursor:pointer}
.vrFeedCommentRepliesR351{margin-left:41px;border-left:2px solid rgba(188,100,255,.24);padding-left:9px}
.vrFeedCommentRepliesR351>.vrFeedCommentItemR349.is-reply{margin-left:0;border:0;padding-left:0}
.vrFeedCommentRepliesR351>.vrFeedCommentItemR349.is-reply[style*="--vr-reply-depth-r351: 2"]{margin-left:13px}
.vrFeedCommentRepliesR351>.vrFeedCommentItemR349.is-reply[style*="--vr-reply-depth-r351: 3"]{margin-left:22px}
.vrFeedCommentStatusR349{flex:0 0 auto}
.vrFeedCommentComposeR349{flex:0 0 auto}
@media(max-width:370px){
 .vrFeedCommentActionRowR351{gap:8px}
 .vrFeedCommentRepliesR351{margin-left:25px;padding-left:6px}
 .vrFeedCommentExpandR351{margin-left:30px}
}

/* R351: Header background opens post; only author name/avatar opens profile. */
.postcard[data-vr-feed-card="r36"] .postcard-head{cursor:pointer}
.postcard[data-vr-feed-card="r36"] .vrPostAvatarLinkR351{
 display:inline-flex;flex:0 0 auto;align-items:center;text-decoration:none;position:relative;z-index:2
}
.postcard[data-vr-feed-card="r36"] .vrPostNameLinkR351{
 display:inline-block;max-width:100%;text-decoration:none;color:inherit;position:relative;z-index:2
}
.postcard[data-vr-feed-card="r36"] .vrPostNameLinkR351:focus-visible,
.postcard[data-vr-feed-card="r36"] .vrPostAvatarLinkR351:focus-visible{
 outline:2px solid #c378fb;outline-offset:3px;border-radius:9px
}

/* R351 WebView visual-viewport containment, including media-heavy Feed pages. */
.vrFeedCommentBackdropR349{right:auto!important;max-width:100vw}
.vrFeedCommentSheetR349{max-width:100%!important}


/* R355: The comment sheet is owned by the post's ORIGINAL mode, not by the
   viewer's current browsing persona. No global body/theme changes. */
.vrFeedCommentBackdropR349[data-vr-post-mode="social"]{
  --vrR355Accent:#c986ff;
  --vrR355Line:rgba(190,111,245,.55);
  --vrR355Soft:rgba(171,71,234,.17);
  --vrR355Bg:#110b18;
  --vrR355Bright:#f1d8ff;
  --vrR355Button:#7938b2;
  --vrR355BtnBorder:#c57bf2;
  --vrR355Edge:#a05ac5;
}
.vrFeedCommentBackdropR349[data-vr-post-mode="friends"]{
  --vrR355Accent:#efba6e;
  --vrR355Line:rgba(244,180,94,.60);
  --vrR355Soft:rgba(219,146,58,.17);
  --vrR355Bg:#161008;
  --vrR355Bright:#ffdfaf;
  --vrR355Button:#86511c;
  --vrR355BtnBorder:#e8b36b;
  --vrR355Edge:#c88b42;
}
.vrFeedCommentBackdropR349[data-vr-post-mode="work"]{
  --vrR355Accent:#73c2ff;
  --vrR355Line:rgba(104,184,245,.58);
  --vrR355Soft:rgba(75,158,232,.17);
  --vrR355Bg:#071321;
  --vrR355Bright:#c7e9ff;
  --vrR355Button:#225989;
  --vrR355BtnBorder:#74c0f6;
  --vrR355Edge:#398ecb;
}
.vrFeedCommentBackdropR349[data-vr-post-mode] .vrFeedCommentSheetR349{
  background:var(--vrR355Bg);
  border-color:var(--vrR355Line);
  box-shadow:0 -16px 45px rgba(0,0,0,.58),0 -2px 12px var(--vrR355Soft);
}
.vrFeedCommentBackdropR349[data-vr-post-mode] .vrFeedCommentHeadR349{
  background:linear-gradient(145deg,var(--vrR355Soft),transparent 75%);
  border-bottom-color:var(--vrR355Line);
}
.vrFeedCommentBackdropR349[data-vr-post-mode] .vrFeedCommentHeadRowR349 h2{
  color:#fff;
}
.vrFeedCommentModeR355{
  display:block;
  color:var(--vrR355Accent);
  font:800 11px/1.45 system-ui,sans-serif;
  letter-spacing:.12em;
  text-transform:uppercase;
  padding:4px 0 0;
}
.vrFeedCommentBackdropR349[data-vr-post-mode] .vrFeedCommentHandleR349 span{
  background:var(--vrR355Accent);
}
.vrFeedCommentBackdropR349[data-vr-post-mode] .vrFeedCommentSortWrapR349 select,
.vrFeedCommentBackdropR349[data-vr-post-mode] .vrFeedCommentCloseR349,
.vrFeedCommentBackdropR349[data-vr-post-mode] #vrFeedCommentInputR349{
  border-color:var(--vrR355Line);
  background-color:var(--vrR355Soft);
  color:#fff;
}
.vrFeedCommentBackdropR349[data-vr-post-mode] .vrFeedCommentCloseR349{
  background-color:var(--vrR355Bg);
  box-shadow:inset 0 0 0 1px var(--vrR355Soft);
}
.vrFeedCommentBackdropR349[data-vr-post-mode] .vrFeedCommentSortWrapR349{
  color:var(--vrR355Bright);
}
.vrFeedCommentBackdropR349[data-vr-post-mode] .vrFeedCommentListR349{
  scrollbar-color:var(--vrR355Edge) transparent;
}
.vrFeedCommentBackdropR349[data-vr-post-mode] .vrFeedCommentItemR349.is-reply,
.vrFeedCommentBackdropR349[data-vr-post-mode] .vrFeedCommentRepliesR351{
  border-color:var(--vrR355Line);
}
.vrFeedCommentBackdropR349[data-vr-post-mode] .vrFeedCommentReplyBtnR349,
.vrFeedCommentBackdropR349[data-vr-post-mode] .vrFeedCommentEditR351,
.vrFeedCommentBackdropR349[data-vr-post-mode] .vrFeedCommentExpandR351,
.vrFeedCommentBackdropR349[data-vr-post-mode] .vrFeedCommentActionRowR351>button{
  color:var(--vrR355Accent);
}
.vrFeedCommentBackdropR349[data-vr-post-mode] .vrFeedCommentExpandR351{
  border-color:var(--vrR355Edge);
  background:var(--vrR355Soft);
}
.vrFeedCommentBackdropR349[data-vr-post-mode] .vrFeedCommentReactionR351[aria-pressed="true"]{
  background:var(--vrR355Soft);
  box-shadow:0 0 0 1px var(--vrR355Line);
}
.vrFeedCommentBackdropR349[data-vr-post-mode] .vrFeedCommentAvatarR349,
.vrFeedCommentBackdropR349[data-vr-post-mode] .vrFeedCommentPreviewAvatarR349{
  background:var(--vrR355Soft);
}
.vrFeedCommentBackdropR349[data-vr-post-mode] .vrFeedCommentReplyR349,
.vrFeedCommentBackdropR349[data-vr-post-mode] .vrFeedCommentComposeR349{
  border-top-color:var(--vrR355Line);
  background:var(--vrR355Bg);
}
.vrFeedCommentBackdropR349[data-vr-post-mode] .vrFeedCommentReplyR349{
  color:var(--vrR355Bright);
}
.vrFeedCommentBackdropR349[data-vr-post-mode] #vrFeedCommentInputR349:focus-visible,
.vrFeedCommentBackdropR349[data-vr-post-mode] #vrFeedCommentInputR349:focus{
  outline:2px solid var(--vrR355Accent);
  outline-offset:1px;
  border-color:var(--vrR355Line);
}
.vrFeedCommentBackdropR349[data-vr-post-mode] #vrFeedCommentSendR349{
  background:var(--vrR355Button);
  border-color:var(--vrR355BtnBorder);
  color:#fff;
}
.vrFeedCommentBackdropR349[data-vr-post-mode] .vrFeedCommentCloseR349:focus-visible,
.vrFeedCommentBackdropR349[data-vr-post-mode] .vrFeedCommentExpandR351:focus-visible,
.vrFeedCommentBackdropR349[data-vr-post-mode] .vrFeedCommentActionRowR351 button:focus-visible{
  outline:2px solid var(--vrR355Accent);
  outline-offset:2px;
}

