.social-dialog{border:0;border-radius:22px;padding:24px;width:min(420px,calc(100vw - 32px));max-height:80dvh;overflow:auto;color:#171717;background:#fff;box-sizing:border-box}.social-dialog::backdrop{background:#0005}.social-close{position:absolute;right:20px;top:22px;border:0;background:transparent;color:#007aff}.social-dialog h3{margin:0 60px 24px 0}.social-dialog textarea{width:100%;min-height:90px;box-sizing:border-box;border:1px solid #ddd;border-radius:12px;padding:12px;font:inherit}.social-target{display:block;width:100%;border:0;border-radius:12px;padding:14px;background:#f2f2f7;color:#007aff;font:inherit;margin-top:12px}.social-repost{margin:12px 0;padding:14px;border:1px solid #ddd;border-radius:16px;white-space:pre-wrap}.social-repost p{margin:6px 0 0}.social-comments p{white-space:pre-wrap;overflow-wrap:anywhere}.social-empty{padding:30px;text-align:center;color:#888}.thread-avatar-wrap{object-fit:cover;border-radius:50%}.thread-text-content{white-space:pre-wrap;overflow-wrap:anywhere}
.collection-actions{margin-top:32px}.collection-actions button{display:block;width:100%;padding:17px 20px;border:0;background:transparent;color:#007aff;text-align:center;font:inherit;font-size:17px}.collection-actions button+button{border-top:1px solid #e5e5ea;color:#ff3b30}.post-chat-card{border:1px solid #ddd;border-radius:15px;padding:12px;background:#fff;color:#222;white-space:pre-wrap;max-width:100%;overflow-wrap:anywhere}.post-chat-card strong{display:block;font-size:12px;color:#777;margin-bottom:8px}

#socialEnabled{width:auto;flex:0 0 auto}.tool-connection-card p{margin:0;font-size:12px;line-height:1.5;color:#8e8e93}.message-content{touch-action:pan-y}.post-chat-card img{max-width:100%;max-height:220px;border-radius:10px;object-fit:cover}

.social-deleted{display:block;color:#8e8e93;font-size:12px;margin-bottom:8px}

/* Explicit positioning overrides page resets that remove dialog's default margins. */
dialog.social-dialog{position:fixed;inset:0;margin:auto;height:fit-content;max-height:calc(100dvh - 48px);font-family:inherit}
.thread-post-item .thread-more-btn{appearance:none;-webkit-appearance:none;display:inline-flex;align-items:center;justify-content:center;flex:0 0 36px;width:36px;height:36px;padding:0;margin:-6px -6px -6px 0;border:0;border-radius:0;background:transparent;box-shadow:none;color:#8e8e93;cursor:pointer;line-height:1;letter-spacing:0;-webkit-tap-highlight-color:transparent}
.social-menu-dots{display:inline-flex;align-items:center;gap:3px}.social-menu-dots i{display:block;width:3px;height:3px;border-radius:50%;background:currentColor}
.thread-post-item .thread-more-btn:focus-visible{outline:2px solid #007aff;outline-offset:2px;border-radius:8px}
dialog.social-alert{width:270px;max-width:calc(100vw - 40px);padding:0;border:0;border-radius:14px;background:rgba(248,248,248,.88);backdrop-filter:blur(20px);-webkit-backdrop-filter:blur(20px);box-shadow:0 10px 30px rgba(0,0,0,.25);overflow:auto}
dialog.social-alert::backdrop{background:rgba(0,0,0,.4);backdrop-filter:blur(5px);-webkit-backdrop-filter:blur(5px)}
.social-alert-content{padding:19px 16px 16px;text-align:center;display:flex;flex-direction:column;gap:6px}
.social-dialog h3.social-alert-title{margin:0;font-size:17px;font-weight:600;letter-spacing:-.4px;color:#000;line-height:1.3}
.social-alert-message{margin:0;font-size:13px;line-height:1.4;letter-spacing:-.1px;color:#3c3c43}
.social-alert-actions{display:flex;flex-direction:column}.social-alert-button{appearance:none;-webkit-appearance:none;display:flex;align-items:center;justify-content:center;width:100%;min-height:44px;margin:0;padding:10px 12px;border:0;border-top:.5px solid rgba(60,60,67,.2);border-radius:0;background:none;box-shadow:none;font-family:inherit;font-size:17px;line-height:1.3;font-weight:400;color:#007aff;cursor:pointer}.social-alert-button:active{background:rgba(0,0,0,.05)}.social-alert-button.danger{color:#ff3b30}.social-alert-button.confirm{font-weight:600}
.social-alert-actions.social-alert-pair{flex-direction:row;border-top:.5px solid rgba(60,60,67,.2)}.social-alert-pair .social-alert-button{flex:1;width:50%;border-top:0}.social-alert-pair .cancel{border-right:.5px solid rgba(60,60,67,.2)}

.social-alert-input{box-sizing:border-box;width:100%;height:31px;margin-top:10px;background:#fff;border:.5px solid rgba(0,0,0,.18);border-radius:6px;padding:0 8px;font-family:inherit;font-size:14px;color:#000;outline:none}.social-alert-input:focus-visible{outline:2px solid #007aff;outline-offset:1px}

/* Only profile timelines connect adjacent posts; the mixed Post feed stays unthreaded. */
.thread-post-item .thread-left-line{display:none}
#userPostsContainer .thread-left-col,#charPostsContainer .thread-left-col{position:relative}
#userPostsContainer .thread-post-item:not(:last-child) .thread-left-line,
#charPostsContainer .thread-post-item:not(:last-child) .thread-left-line{display:block;position:absolute;top:48px;bottom:-18.5px;left:50%;transform:translateX(-50%);width:1.5px;margin:0;border-radius:1px;background:#e5e5e5;pointer-events:none}

/* Shared posts in private chat use the same compact card for either sender. */
.post-chat-card{box-sizing:border-box;width:320px;max-width:100%;padding:0;overflow:hidden;border:1px solid #cfd9de;border-radius:18px;background:#fff;color:#0f1419;white-space:normal;text-align:left}
.post-card-body{padding:13px 14px}.post-card-author{display:flex;align-items:center;gap:5px;min-width:0;margin-bottom:10px;line-height:20px}
.post-chat-card .post-card-avatar{display:block;flex:0 0 20px;width:20px;height:20px;max-height:none;margin:0;border-radius:50%;object-fit:cover}
.post-card-name{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:700;font-size:13px}.post-card-handle{min-width:0;flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px;color:#536471}.post-card-time{flex:0 0 auto;margin-left:auto;white-space:nowrap;font-size:11px;color:#536471}
.post-card-text{font-size:14px;line-height:1.5;white-space:pre-wrap;overflow-wrap:anywhere}.post-chat-card .post-card-media{display:block;width:100%;height:auto;max-width:100%;max-height:none;margin:0;border-radius:0;object-fit:contain;background:#f5f5f7}.post-chat-card video.post-card-media{max-height:480px}
.post-card-repost{margin:10px 0 0;padding:10px;border:1px solid #cfd9de;border-radius:12px}.post-card-repost .post-card-text{margin-top:5px}
.world-picker-button{border:0;border-radius:14px;background:#f2f2f7;color:#007aff;padding:11px 14px;font:14px inherit}.world-picker-dialog{position:fixed;inset:0;margin:auto;width:min(420px,92vw);max-height:80dvh;border:0;border-radius:24px;padding:18px;background:#f7f7fbeF;backdrop-filter:blur(24px)}.world-picker-dialog::backdrop{background:#0005;backdrop-filter:blur(4px)}.world-picker-dialog header{display:flex;justify-content:space-between;align-items:center;margin-bottom:15px}.world-picker-dialog header button{border:0;background:none;color:#007aff;padding:8px}.world-picker-dialog>input{width:100%;padding:12px;border:0;border-radius:12px;background:white;font:inherit;box-sizing:border-box}.world-picker-list{margin-top:12px;border-radius:15px;background:white;max-height:55dvh;overflow:auto}.world-picker-list label{display:flex;justify-content:space-between;align-items:center;padding:14px;border-bottom:1px solid #eee;gap:14px;text-align:left;font-size:14px}.world-picker-list small{display:block;font-size:11px;line-height:1.6;color:#999;margin-top:4px}.world-picker-list input{accent-color:#007aff;width:18px;height:18px;flex:none}
.rv-inline-comments{margin-top:15px}.rv-social-reply{position:relative;display:flex;gap:10px;padding:12px 0 8px;min-width:0;white-space:normal}.rv-social-reply::before{content:'';position:absolute;left:-28px;top:-20px;width:20px;height:45px;border-left:2px solid #e5e5e5;border-bottom:2px solid #e5e5e5;border-bottom-left-radius:20px}.rv-social-reply img{width:30px;height:30px;border-radius:50%;object-fit:cover;flex:none}.rv-social-reply-copy{min-width:0;flex:1}.rv-social-reply strong{font-size:13px}.rv-social-reply p{font-size:14px;line-height:1.6;margin:5px 0;white-space:pre-wrap;overflow-wrap:anywhere}.rv-social-reply small{color:#999;font-size:11px}.rv-social-reply button{border:0;background:none;color:#999;font-size:11px;padding:4px 0}.rv-view-replies{border:0;background:none;font-size:12px;color:#999;padding:10px 0}
dialog.rv-discussion{inset:0;width:min(600px,100vw);height:100dvh;max-height:100dvh;margin:auto;border-radius:0;padding:20px 24px calc(25px + env(safe-area-inset-bottom));background:#fff}.rv-discussion .social-close{top:22px}.rv-discussion>.social-comments{margin:20px 0 25px}.rv-discussion .rv-social-reply::before{left:-14px;width:10px}.rv-post-brand{font-family:'Snell Roundhand','Apple Chancery','URW Chancery L',cursive!important;font-size:30px;font-style:italic;font-weight:600}.rv-post-header{display:flex!important;align-items:center!important;justify-content:space-between!important;padding-inline:20px!important}.rv-post-header button,.rv-post-header>a{border:0;background:transparent;color:#111;width:35px;height:35px;font-size:29px;display:grid;place-items:center;text-decoration:none}.rv-post-header svg{width:22px;height:22px}
/* Compact reply previews keep the original post visually primary. */
.rv-inline-comments{margin-top:1px}.rv-social-reply{gap:8px;padding:5px 0 2px}.rv-social-reply::before{left:-24px;top:-5px;width:17px;height:25px;border-bottom-left-radius:17px}.rv-social-reply img{width:24px;height:24px}.rv-social-reply strong{font-size:12px}.rv-social-reply p{font-size:12px;line-height:1.55;margin:4px 0}.rv-comment-actions{display:flex;align-items:center;gap:16px;margin:3px 0 2px}.rv-comment-actions .action-icon-btn{width:22px;height:22px;padding:2px;display:grid;place-items:center}.rv-comment-actions svg{width:17px;height:17px}.rv-social-reply .liked{color:#ff375f}.rv-discussion .rv-social-reply{padding:10px 0}



/* Chat card constraints are independent of timeline images and custom bubble themes. */
.rv-chat .post-chat-card{display:block;box-sizing:border-box;width:320px;max-width:100%;min-width:0;overflow:hidden;padding:0;border:1px solid #cfd9de;border-radius:18px;background:#fff;color:#0f1419;text-align:left;white-space:normal}
.rv-chat .post-chat-card .post-card-body{padding:13px 14px}
.rv-chat .post-chat-card .post-card-author{display:flex;align-items:center;gap:5px;min-width:0;margin:0 0 10px;line-height:20px}
.rv-chat .post-chat-card img.post-card-avatar{position:static!important;display:block!important;flex:0 0 20px!important;width:20px!important;min-width:20px!important;max-width:20px!important;height:20px!important;min-height:20px!important;max-height:20px!important;object-fit:cover!important;border-radius:50%!important;margin:0!important;transform:none!important}
.rv-chat .post-chat-card .post-card-name{flex:0 1 auto;max-width:45%;font:700 13px/20px -apple-system,BlinkMacSystemFont,sans-serif}
.rv-chat .post-chat-card .post-card-handle{flex:1 1 0;font-size:12px;color:#536471;min-width:0}
.rv-chat .post-chat-card .post-card-time{margin-left:auto;font-size:11px;color:#536471;flex:none}
.rv-chat .post-chat-card .post-card-text{font-size:14px;line-height:1.5;white-space:pre-wrap;overflow-wrap:anywhere}
.rv-chat .post-chat-card .post-card-media{display:block;width:100%;max-width:100%;height:auto;max-height:360px;object-fit:cover;border-radius:0;margin:0}
.rv-chat .post-chat-card video.post-card-media{object-fit:contain}
