/* social.ui-fix.css 20260723-delmobile1 */
/* App dialog always above post ⋯ menus */
#app-dialog-root,
#app-dialog-root.is-open {
    z-index: 2147483646 !important;
}
#app-dialog-root .app-dialog-backdrop,
#app-dialog-root .app-dialog-wrap,
#app-dialog-root .app-dialog-card {
    z-index: 2147483647 !important;
}

/* While confirm/dialog open, hide open post menus so ⋯ never bleeds through */
html.app-dialog-open .post-menu.open .post-menu-panel,
body.app-dialog-open .post-menu.open .post-menu-panel,
html.app-dialog-open .post-menu-panel,
body.app-dialog-open .post-menu-panel {
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}
html.app-dialog-open .post-menu-trigger,
body.app-dialog-open .post-menu-trigger {
    z-index: 1 !important;
}

/* Post menu under app dialog */
.post-menu-panel {
    z-index: 40 !important;
}
body.post-menu-open .post-menu.open .post-menu-panel {
    z-index: 50 !important;
}

/* Mobile: counts never take flow space (icons stay put) */
@media (max-width: 700px) {
    .post-card .post-actions .post-actions-count,
    .post-card .post-actions .post-views-count,
    .post-card .post-actions .count-value,
    .post-card .post-actions .repost-count,
    .post-card-repost-entry .post-actions .post-actions-count,
    body.social-home .post-actions .post-actions-count,
    .feed .post-card .post-actions .post-actions-count {
        position: absolute !important;
        left: 100% !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
        margin: 0 0 0 2px !important;
        padding: 0 !important;
        width: max-content !important;
        max-width: 3ch !important;
        min-width: 0 !important;
        flex: 0 0 auto !important;
        display: block !important;
        pointer-events: none !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        line-height: 1 !important;
        font-size: 12px !important;
    }
    .post-card .post-actions .post-actions-btn,
    .post-card .post-actions .like-button,
    .post-card .post-actions a.post-views-link {
        position: relative !important;
        overflow: visible !important;
        width: auto !important;
        max-width: none !important;
    }
    .post-card .post-actions > .post-actions-item {
        overflow: visible !important;
    }
}

/* ========== tabs-over-composer fix 20260726-tabsfix5 ========== */
:root {
    --tb-mobile-header-offset: calc(var(--header-mobile, 53px) + env(safe-area-inset-top, 0px));
    --tb-top-tabs-height: 42px;
}
@media (max-width: 1100px) {
    /* Fixed header only — content starts below it once */
    body.social-page,
    body.social-home {
        padding-top: 0 !important;
    }
    body.social-page .page,
    body.social-home .page {
        padding-top: var(--tb-mobile-header-offset) !important;
        box-sizing: border-box !important;
    }
    body.social-page .main-content,
    body.social-home .main-content,
    body.social-page .layout-grid,
    body.social-home .layout-grid {
        padding-top: 0 !important;
        margin-top: 0 !important;
        /* CRITICAL: overflow clip/auto on these makes sticky use wrong container
           and pins For You/Discovery/News through the composer */
        overflow: visible !important;
        overflow-x: visible !important;
        overflow-y: visible !important;
    }

    /* Keep horizontal clip only on the feed list, not the tabs parent chain */
    body.social-page .feed,
    body.social-home .feed {
        max-width: 100% !important;
        overflow-x: clip !important;
    }

    /*
     * Tabs: IN DOCUMENT FLOW under header.
     * Use sticky with top = header offset so when you scroll they dock under header.
     * They must NOT use a larger top or they'll sit on the composer.
     */
    body.social-page .top-tabs,
    body.social-home .top-tabs,
    .panel.top-tabs,
    section.top-tabs,
    .top-tabs {
        position: relative !important;
        top: auto !important;
        z-index: 11 !important;
        display: block !important;
        width: 100% !important;
        height: var(--tb-top-tabs-height) !important;
        min-height: var(--tb-top-tabs-height) !important;
        max-height: var(--tb-top-tabs-height) !important;
        margin: 0 !important;
        padding: 0 !important;
        border: 0 !important;
        border-radius: 0 !important;
        background: #000 !important;
        box-shadow: none !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        overflow: hidden !important;
        transform: none !important;
        inset: auto !important;
        left: auto !important;
        right: auto !important;
        bottom: auto !important;
        /* reserve space in flow so composer never draws underneath */
        flex-shrink: 0 !important;
    }

    body.social-page .top-tabs .tabs,
    body.social-home .top-tabs .tabs,
    .panel.top-tabs .tabs,
    section.top-tabs .tabs,
    .tabs.tabs-three,
    .tabs.tabs-two {
        display: flex !important;
        flex-direction: row !important;
        width: 100% !important;
        height: var(--tb-top-tabs-height) !important;
        min-height: var(--tb-top-tabs-height) !important;
        margin: 0 !important;
        padding: 0 !important;
        border: 0 !important;
        border-bottom: 1px solid #2f3336 !important;
        background: #000 !important;
        box-sizing: border-box !important;
    }

    body.social-page .top-tabs .tabs .tab,
    body.social-home .top-tabs .tabs .tab,
    .panel.top-tabs .tabs .tab,
    .top-tabs .tab,
    .tabs.tabs-three .tab,
    .tabs.tabs-two .tab {
        flex: 1 1 0 !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        position: relative !important;
        height: var(--tb-top-tabs-height) !important;
        min-height: var(--tb-top-tabs-height) !important;
        margin: 0 !important;
        padding: 0 4px !important;
        border: 0 !important;
        background: transparent !important;
        color: #71767b !important;
        font-size: 14px !important;
        font-weight: 600 !important;
        text-decoration: none !important;
        white-space: nowrap !important;
    }
    .top-tabs .tab.active,
    .tabs .tab.active {
        color: #e7e9ea !important;
        font-weight: 700 !important;
    }
    .top-tabs .tab.active::after,
    .tabs .tab.active::after {
        content: "" !important;
        position: absolute !important;
        left: 50% !important;
        bottom: 0 !important;
        transform: translateX(-50%) !important;
        width: 48px !important;
        height: 3px !important;
        border-radius: 999px !important;
        background: #1d9bf0 !important;
        display: block !important;
    }

    /* Composer always BELOW tabs in normal flow — never under the bar */
    body.social-page .feed-composer,
    body.social-home .feed-composer,
    body.social-page #post-composer,
    body.social-home #post-composer,
    body.social-page .discovery-feed-head,
    body.social-home .discovery-feed-head {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        bottom: auto !important;
        z-index: 1 !important;
        margin-top: 0 !important;
        transform: none !important;
        clear: both !important;
    }

    /* Kill base social.css "top: 0" sticky that docks tabs through the header/composer */
    body.social-page .page-heading {
        top: var(--tb-mobile-header-offset) !important;
    }
}
/* ========== /tabs-over-composer fix 20260726-tabsfix5 ========== */

/* force in-flow tabs 20260726-tabsfix6 — last word in polish */
@media (max-width: 1100px) {
  body.social-page .top-tabs,
  body.social-home .top-tabs,
  .panel.top-tabs,
  section.top-tabs,
  .top-tabs {
    position: relative !important;
    top: auto !important;
    bottom: auto !important;
    left: auto !important;
    right: auto !important;
    inset: auto !important;
  }
}

/* ========== closer bigger badges + names 20260727-names2 ========== */
:root {
    --user-badge-emoji-size: 1.32em;
    --user-badge-emoji-size-profile: 1.5em;
}
.identity-name-wrap {
    gap: 0.04em !important;
    align-items: center !important;
}
.post-author .user-badges,
.notification-actor-link .user-badges,
.dm-thread-name .user-badges,
.profile-title .user-badges,
.suggestion-row-name .user-badges,
.reel-author .user-badges,
.tb-profile-preview-badges {
    margin-left: 0 !important;
    margin-right: 0 !important;
    gap: 0.05em !important;
}
.user-badge-emoji,
.user-badge-icon {
    width: var(--user-badge-emoji-size) !important;
    height: var(--user-badge-emoji-size) !important;
}
.profile-title .user-badge-emoji,
.profile-title .user-badge-icon,
.profile-title .user-badge-tip-btn {
    width: var(--user-badge-emoji-size-profile) !important;
    height: var(--user-badge-emoji-size-profile) !important;
}
/* Premium seal: slightly larger + snug to name */
.user-badge-icon--premium {
    width: 1.55em !important;
    height: 1.55em !important;
    margin-left: -0.06em !important;
    margin-right: -0.02em !important;
    vertical-align: -0.24em !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
    border: 0 !important;
    object-fit: contain !important;
}
.profile-title .user-badge-icon--premium,
.profile-title .user-badge-tip-btn .user-badge-icon--premium {
    width: 1.7em !important;
    height: 1.7em !important;
    margin-left: -0.04em !important;
}
body.reels-page .reel-author .user-badge-emoji,
body.reels-page .reel-author .user-badge-icon,
body.reels-page .reel-author .user-badge-tip-btn,
body.reels-page .reel-author .user-badge-tip-btn .user-badge-emoji,
body.reels-page .reel-author .user-badge-tip-btn .user-badge-icon {
    width: 1.4em !important;
    height: 1.4em !important;
    min-width: 1.4em !important;
    min-height: 1.4em !important;
    max-width: 1.55em !important;
    max-height: 1.55em !important;
}
body.reels-page .reel-author .user-badge-icon--premium {
    width: 1.55em !important;
    height: 1.55em !important;
    max-width: 1.55em !important;
    max-height: 1.55em !important;
    margin-left: -0.06em !important;
}
.tb-profile-preview-name-row {
    display: flex !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    gap: 0.04em !important;
}
.tb-profile-preview-name-row .tb-profile-preview-name {
    margin: 0 !important;
}
.tb-profile-preview-badges {
    display: inline-flex !important;
    align-items: center !important;
    line-height: 1 !important;
}
.tb-profile-preview-badges .user-badge-icon,
.tb-profile-preview-badges .user-badge-emoji {
    width: 1.55em !important;
    height: 1.55em !important;
}
.tb-profile-preview-badges .user-badge-icon--premium {
    width: 1.65em !important;
    height: 1.65em !important;
}
/* ========== /closer bigger badges + names 20260727-names2 ========== */

/* ========== thread fix 20260727-thread1 ========== */
/* Clean X-style continuous spine; aligned avatars; Show replies under parent */

.post-thread-main,
.post-thread-feed,
.post-detail-thread {
    --thread-pad-x: 16px;
    --thread-avatar-col: 40px;
    --thread-avatar-size: 40px;
    --thread-gap: 12px;
    --thread-spine-x: calc(var(--thread-pad-x) + (var(--thread-avatar-col) / 2));
    --thread-content-indent: calc(var(--thread-pad-x) + var(--thread-avatar-col) + var(--thread-gap));
    --thread-line: var(--social-border, #2f3336);
}

.post-detail-thread {
    --thread-pad-x: 16px;
    --thread-main-avatar-size: 48px;
    --thread-avatar-col: 40px;
    --thread-avatar-size: 40px;
}

@media (max-width: 640px) {
    .post-thread-main,
    .post-thread-feed,
    .post-detail-thread {
        --thread-pad-x: 12px;
        --thread-avatar-col: 36px;
        --thread-avatar-size: 36px;
        --thread-gap: 10px;
    }
    .post-detail-thread {
        --thread-main-avatar-size: 40px;
        --thread-avatar-col: 36px;
        --thread-avatar-size: 36px;
    }
}

/* Kill leftover elbows / grey nested panels / double lines */
.post-thread-replies .reply-thread-branch,
.reply-thread-branch,
.reply-thread-nested,
.reply-thread-meta {
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    margin: 0 !important;
}
.reply-card-nested::before,
.reply-card-nested::after,
.reply-card-nested:not(:last-child)::after,
.reply-thread-branch::before,
.reply-thread-branch:not([hidden])::before {
    content: none !important;
    display: none !important;
}

/* Main post → replies spine */
.post-detail-thread:has(.post-thread-replies > .reply-thread-node) .post-card-main {
    position: relative !important;
    border-bottom: none !important;
    overflow: visible !important;
}
.post-detail-thread:has(.post-thread-replies > .reply-thread-node) .post-card-main::after,
.post-card.post-thread-open:not(.post-card-expanded):has(+ .post-thread-feed:not([hidden]))::after {
    content: '' !important;
    position: absolute !important;
    left: var(--thread-spine-x) !important;
    width: 2px !important;
    transform: translateX(-50%) !important;
    background: var(--thread-line) !important;
    pointer-events: none !important;
    z-index: 0 !important;
}
.post-detail-thread:has(.post-thread-replies > .reply-thread-node) .post-card-main::after {
    top: calc(12px + var(--thread-main-avatar-size, 48px) + 2px) !important;
    bottom: 0 !important;
}
.post-card.post-thread-open:not(.post-card-expanded):has(+ .post-thread-feed:not([hidden])) {
    position: relative !important;
    overflow: visible !important;
    border-bottom: none !important;
}
.post-card.post-thread-open:not(.post-card-expanded):has(+ .post-thread-feed:not([hidden]))::after {
    top: calc(12px + var(--thread-avatar-size) + 2px) !important;
    bottom: 0 !important;
}

/* Root + nested share one avatar column so the spine is a single straight line */
.post-thread-feed .reply-card-root,
.post-detail-thread .reply-card-root,
.post-thread-main .reply-card-root,
.reply-card-root,
.post-thread-feed .reply-card-nested,
.post-detail-thread .reply-card-nested,
.post-thread-main .reply-card-nested,
.reply-card-nested {
    display: grid !important;
    grid-template-columns: var(--thread-avatar-col) minmax(0, 1fr) !important;
    column-gap: var(--thread-gap) !important;
    row-gap: 0 !important;
    padding: 10px var(--thread-pad-x) 0 !important;
    margin: 0 !important;
    border: none !important;
    border-bottom: none !important;
    background: transparent !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    position: relative !important;
}
.reply-card-root:hover,
.reply-card-nested:hover {
    background: rgba(255, 255, 255, 0.03) !important;
}
html[data-theme="light"] .reply-card-root:hover,
html[data-theme="light"] .reply-card-nested:hover {
    background: rgba(15, 20, 25, 0.03) !important;
}

.reply-rail {
    position: relative !important;
    display: flex !important;
    justify-content: center !important;
    align-items: flex-start !important;
    width: var(--thread-avatar-col) !important;
    min-height: var(--thread-avatar-size) !important;
    z-index: 1 !important;
}
.reply-card-root .post-avatar-link .author-avatar,
.reply-card-root .author-avatar,
.reply-card-nested .post-avatar-link .author-avatar,
.reply-card-nested .author-avatar {
    width: var(--thread-avatar-size) !important;
    height: var(--thread-avatar-size) !important;
    position: relative !important;
    z-index: 2 !important;
    background-color: var(--bg, #000) !important;
    border-radius: 999px !important;
}

.reply-body {
    min-width: 0 !important;
    padding-bottom: 2px !important;
}

/* Continuous spine through top-level nodes (and open nested) */
.post-thread-replies {
    position: relative !important;
}
.post-thread-replies > .reply-thread-node {
    position: relative !important;
    z-index: 1 !important;
    border: none !important;
}
.post-thread-replies > .reply-thread-node:not(:last-child)::after,
.post-thread-replies > .reply-thread-node--has-branch:has(.reply-thread-branch:not([hidden]))::after {
    content: '' !important;
    position: absolute !important;
    left: var(--thread-spine-x) !important;
    top: calc(10px + var(--thread-avatar-size) + 2px) !important;
    bottom: 0 !important;
    width: 2px !important;
    transform: translateX(-50%) !important;
    background: var(--thread-line) !important;
    pointer-events: none !important;
    z-index: 0 !important;
}

/* Cap under last leaf avatar so the line does not run into empty space */
.post-thread-replies > .reply-thread-node:last-child:not(:has(.reply-thread-branch:not([hidden]))) .reply-card-root .reply-rail::after,
.post-thread-replies > .reply-thread-node--has-branch:has(.reply-thread-branch:not([hidden])):last-child .reply-thread-nested > .reply-card-nested:last-child .reply-rail::after {
    content: '' !important;
    display: block !important;
    position: absolute !important;
    left: 50% !important;
    top: calc(var(--thread-avatar-size) + 2px) !important;
    bottom: -40vh !important;
    width: 8px !important;
    transform: translateX(-50%) !important;
    background: var(--bg, #000) !important;
    pointer-events: none !important;
    z-index: 1 !important;
}

/* Connector stub from parent post into first reply */
.post-thread-replies > .reply-thread-node:first-child .reply-card-root .reply-rail::before {
    content: '' !important;
    position: absolute !important;
    left: 50% !important;
    top: -12px !important;
    width: 2px !important;
    height: 12px !important;
    transform: translateX(-50%) !important;
    background: var(--thread-line) !important;
    pointer-events: none !important;
    z-index: 0 !important;
}

/* Kill old rail stubs that mis-align */
.post-thread-replies > .reply-thread-node .reply-card-root .reply-rail::after,
.reply-thread-node--has-branch .reply-card-root .reply-rail::after {
    /* only last-leaf mask above may show */
}
.post-thread-replies > .reply-thread-node:not(:last-child) .reply-card-root .reply-rail::after,
.post-thread-replies > .reply-thread-node--has-branch:has(.reply-thread-branch:not([hidden])):not(:last-child) .reply-card-root .reply-rail::after {
    content: none !important;
    display: none !important;
}

/* Show / Hide replies — under content column, blue, aligned with text */
.reply-thread-meta {
    position: relative !important;
    z-index: 2 !important;
    padding: 0 var(--thread-pad-x) 4px var(--thread-content-indent) !important;
    margin: 0 !important;
    background: transparent !important;
}
.reply-show-replies-btn {
    display: inline-flex !important;
    align-items: center !important;
    margin: 0 !important;
    padding: 2px 0 8px !important;
    min-height: 28px !important;
    border: none !important;
    background: none !important;
    color: var(--social-blue, #1d9bf0) !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    line-height: 18px !important;
    cursor: pointer !important;
    text-align: left !important;
    box-shadow: none !important;
    font-family: inherit !important;
}
.reply-show-replies-btn:hover {
    text-decoration: underline !important;
    color: var(--social-blue, #1d9bf0) !important;
}
@media (max-width: 640px) {
    .reply-show-replies-btn {
        min-height: 40px !important;
        padding: 6px 0 10px !important;
        font-size: 15px !important;
    }
}

/* Nested flat under parent — same grid column */
.reply-thread-branch {
    display: block !important;
    position: relative !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    background: transparent !important;
}
.reply-thread-branch[hidden] {
    display: none !important;
}
.reply-thread-nested {
    display: flex !important;
    flex-direction: column !important;
    gap: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
}
.reply-thread-nested > .reply-card-nested {
    padding-top: 6px !important;
}

/* Feed "View N replies" under posts */
a.post-view-thread {
    display: inline-flex !important;
    align-items: center !important;
    margin: 4px 0 0 !important;
    padding: 4px 0 !important;
    color: var(--social-blue, #1d9bf0) !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    text-decoration: none !important;
    min-height: 32px !important;
}
a.post-view-thread:hover {
    text-decoration: underline !important;
}

/* Typography consistent root/nested */
.reply-card-root .post-author,
.reply-card-nested .post-author {
    font-size: 15px !important;
    font-weight: 800 !important;
}
.reply-card-root .post-handle,
.reply-card-root .post-time,
.reply-card-nested .post-handle,
.reply-card-nested .post-time {
    font-size: 14px !important;
}
.reply-card-root .post-text,
.reply-card-root .reply-text,
.reply-card-nested .post-text,
.reply-card-nested .reply-text {
    font-size: 15px !important;
    line-height: 20px !important;
    margin: 2px 0 4px !important;
}

/* Action bars sit under text, not under avatar */
.reply-actions-thread,
.reply-actions-nested {
    max-width: 100% !important;
    width: 100% !important;
    margin: 0 0 2px -6px !important;
}

/* No divider lines between replies in a conversation block */
.post-thread-replies .reply-card,
.post-thread-replies > .reply-thread-node {
    border-bottom: none !important;
}
.post-thread-main .post-thread-replies {
    border-bottom: 1px solid var(--social-border, #2f3336);
}
.post-thread-feed .post-thread-main .post-thread-replies {
    border-bottom: none !important;
}

/* Show more (long posts) stays blue and left-aligned under text */
.post-text-block .post-read-more {
    display: inline !important;
    color: var(--social-blue, #1d9bf0) !important;
    font-size: 15px !important;
    font-weight: 500 !important;
    margin-top: 2px !important;
}
/* ========== /thread fix 20260727-thread1 ========== */

/* Premium name colour picker in edit profile */
.profile-edit-name-color-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.profile-edit-name-color-row input[type="color"] {
    width: 44px;
    height: 40px;
    padding: 0;
    border: 1px solid var(--social-border, #2f3336);
    border-radius: 10px;
    background: transparent;
    cursor: pointer;
}
.profile-edit-name-color-row #profileEditNameColor {
    max-width: 120px;
    text-transform: uppercase;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
.profile-edit-name-color-preview {
    margin: 8px 0 0;
    font-size: 14px;
    color: var(--text-muted);
}
.profile-edit-name-color-preview strong {
    font-size: 16px;
    font-weight: 800;
}

/* ========== larger profile avatars 20260727-avsave1 ========== */
.profile-page .profile-avatar {
    width: 168px !important;
    height: 168px !important;
    margin-top: -96px !important;
    font-size: 2.4rem !important;
    border-width: 5px !important;
}
.profile-avatar-row .avatar-live-link {
    width: 168px !important;
    height: 168px !important;
    max-width: 168px !important;
    max-height: 168px !important;
    margin-top: -96px !important;
}
.profile-page .avatar-live-ring > .profile-avatar {
    border-width: 5px !important;
}
.profile-avatar-row {
    min-height: 72px !important;
}

/* Profile preview modal avatars */
.tb-profile-preview-avatar {
    width: 104px !important;
    height: 104px !important;
}
.tb-profile-preview-avatar-wrap {
    left: 16px !important;
    top: -52px !important;
}
.tb-profile-preview-avatar-wrap.is-live .avatar-live-link {
    width: 104px !important;
    height: 104px !important;
    max-width: 104px !important;
    max-height: 104px !important;
}
.tb-profile-preview-body {
    padding-top: 56px !important;
}

@media (min-width: 641px) {
    .profile-page .profile-avatar {
        width: 180px !important;
        height: 180px !important;
        margin-top: -100px !important;
        font-size: 2.6rem !important;
    }
    .profile-avatar-row .avatar-live-link {
        width: 180px !important;
        height: 180px !important;
        max-width: 180px !important;
        max-height: 180px !important;
        margin-top: -100px !important;
    }
    .tb-profile-preview-avatar {
        width: 112px !important;
        height: 112px !important;
    }
    .tb-profile-preview-avatar-wrap {
        top: -56px !important;
    }
    .tb-profile-preview-avatar-wrap.is-live .avatar-live-link {
        width: 112px !important;
        height: 112px !important;
        max-width: 112px !important;
        max-height: 112px !important;
    }
    .tb-profile-preview-body {
        padding-top: 60px !important;
    }
}

@media (max-width: 640px) {
    .profile-page .profile-avatar {
        width: 112px !important;
        height: 112px !important;
        margin-top: -60px !important;
        font-size: 1.6rem !important;
        border-width: 4px !important;
    }
    .profile-avatar-row .avatar-live-link {
        width: 112px !important;
        height: 112px !important;
        max-width: 112px !important;
        max-height: 112px !important;
        margin-top: -60px !important;
    }
    .profile-page .avatar-live-ring > .profile-avatar {
        border-width: 4px !important;
    }
    .profile-avatar-row {
        min-height: 52px !important;
    }
    /* Mobile edit sheet: always show footer Save */
    .profile-edit-foot {
        display: flex !important;
    }
    .profile-edit-save-top {
        display: inline-flex !important;
    }
}
/* ========== /larger profile avatars 20260727-avsave1 ========== */

/* Profile music dock + themed profile 20260727-thememusic2 */
/* profile-fx simple: transparent canvas overlay, never blocks UI */
.profile-fx-canvas {
  pointer-events: none !important;
  background: transparent !important;
}
body > .profile-fx-canvas {
  position: fixed !important;
  left: 0 !important;
  top: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  z-index: 3 !important;
}
.tb-profile-preview-card > .profile-fx-canvas {
  position: absolute !important;
  inset: 0 !important;
  z-index: 3 !important;
  border-radius: inherit;
}


/* Profile music pill (next to stars) - replaces sticky dock */
.profile-music-dock { display: none !important; }

.profile-music-pill {
  appearance: none;
  display: inline-flex !important;
  align-items: center !important;
  gap: 7px !important;
  max-width: min(92vw, 420px);
  height: 30px;
  padding: 0 11px 0 9px !important;
  margin: 0 !important;
  border-radius: 999px !important;
  border: 1px solid rgba(29, 155, 240, 0.38) !important;
  background: linear-gradient(135deg, rgba(29, 155, 240, 0.16), rgba(29, 155, 240, 0.06)) !important;
  color: var(--social-blue, #1d9bf0) !important;
  box-shadow: 0 0 0 1px rgba(29, 155, 240, 0.06) inset, 0 4px 14px rgba(29, 155, 240, 0.12);
  cursor: pointer;
  font: inherit;
  font-size: 12px !important;
  font-weight: 800 !important;
  letter-spacing: -0.01em;
  line-height: 1;
  vertical-align: middle;
  transition: background .15s ease, border-color .15s ease, transform .12s ease, box-shadow .15s ease;
  -webkit-tap-highlight-color: transparent;
  position: relative;
  overflow: hidden;
}
.profile-music-pill::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 40%, rgba(255,255,255,.08) 50%, transparent 60%);
  transform: translateX(-120%);
  transition: none;
  pointer-events: none;
}
.profile-music-pill:hover {
  border-color: rgba(29, 155, 240, 0.6) !important;
  background: linear-gradient(135deg, rgba(29, 155, 240, 0.24), rgba(29, 155, 240, 0.1)) !important;
  box-shadow: 0 0 0 1px rgba(29, 155, 240, 0.1) inset, 0 6px 18px rgba(29, 155, 240, 0.18);
}
.profile-music-pill:active {
  transform: scale(0.97);
}
.profile-music-pill:focus-visible {
  outline: 2px solid rgba(29, 155, 240, 0.65);
  outline-offset: 2px;
}
.profile-music-pill.is-playing {
  border-color: rgba(29, 155, 240, 0.7) !important;
  background: linear-gradient(135deg, rgba(29, 155, 240, 0.28), rgba(20, 120, 200, 0.14)) !important;
  color: #e8f6ff !important;
  box-shadow: 0 0 0 1px rgba(29, 155, 240, 0.15) inset, 0 0 20px rgba(29, 155, 240, 0.22);
}
.profile-music-pill.is-playing::before {
  animation: profileMusicSheen 2.4s ease-in-out infinite;
}
.profile-music-pill-icon {
  font-size: 12px;
  line-height: 1;
  flex-shrink: 0;
  width: 14px;
  text-align: center;
  font-weight: 900;
  letter-spacing: 0;
}
.profile-music-pill.is-playing .profile-music-pill-icon {
  font-size: 9px;
  letter-spacing: -1px;
}
.profile-music-pill-label {
  max-width: none;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  opacity: 0.95;
}
.profile-music-pill-eq {
  display: none;
  align-items: flex-end;
  gap: 2px;
  height: 12px;
  flex-shrink: 0;
}
.profile-music-pill.is-playing .profile-music-pill-eq {
  display: inline-flex;
}
.profile-music-pill.is-playing .profile-music-pill-icon {
  display: none;
}
.profile-music-pill-eq i {
  display: block;
  width: 2.5px;
  height: 4px;
  border-radius: 2px;
  background: currentColor;
  transform-origin: bottom center;
  animation: profileMusicBar 0.9s ease-in-out infinite;
}
.profile-music-pill-eq i:nth-child(1) { animation-delay: 0s; height: 5px; }
.profile-music-pill-eq i:nth-child(2) { animation-delay: 0.15s; height: 10px; }
.profile-music-pill-eq i:nth-child(3) { animation-delay: 0.28s; height: 7px; }
/* fourth bar removed — 3-bar equalizer */

@keyframes profileMusicBar {
  0%, 100% { transform: scaleY(0.35); opacity: 0.75; }
  50% { transform: scaleY(1); opacity: 1; }
}
@keyframes profileMusicSheen {
  0% { transform: translateX(-120%); }
  60%, 100% { transform: translateX(120%); }
}

@media (max-width: 560px) {
  .profile-music-pill {
    max-width: 132px;
    height: 28px;
    padding: 0 9px 0 8px !important;
    font-size: 11px !important;
  }
  .profile-music-pill-label {
    max-width: 64px;
  }
}

/* Site-wide custom stream/global emotes in posts, comments, bios, DMs */
img.social-emote-img,
img.post-emote-img,
.post-text img.social-emote-img,
.reply-text img.social-emote-img,
.dm-bubble-text img.social-emote-img {
  display: inline-block !important;
  width: 1.35em !important;
  height: 1.35em !important;
  max-width: 1.35em !important;
  max-height: 1.35em !important;
  object-fit: contain !important;
  vertical-align: -0.25em !important;
  margin: 0 0.05em !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

/* Composer overlay: match proxy glyph width exactly (kill weird gaps) */
.composer-hl-emote-slot.composer-hl-emote-compact,
.composer-hl-emote-compact,
.composer-hl-emote-slot {
  display: inline-block !important;
  width: 1em !important;
  min-width: 1em !important;
  max-width: 1em !important;
  height: 1em !important;
  line-height: 1 !important;
  overflow: hidden !important;
  vertical-align: -0.15em !important;
  margin: 0 !important;
  padding: 0 !important;
  letter-spacing: 0 !important;
}
.composer-hl-emote-compact .composer-hl-emote,
.composer-hl-emote-slot .composer-hl-emote,
.composer-hl-emote {
  width: 1em !important;
  height: 1em !important;
  max-width: 1em !important;
  max-height: 1em !important;
  display: block !important;
  margin: 0 auto !important;
  padding: 0 !important;
  object-fit: contain !important;
}
.composer-highlight-input,
.composer-highlight-backdrop {
  letter-spacing: normal !important;
  font-variant-ligatures: none !important;
  font-kerning: none !important;
}

/* Discovery Ted Live banner */
.live-banner {
  position: relative;
  margin: 0 0 14px;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(244, 63, 94, 0.28);
  background: linear-gradient(135deg, rgba(30, 8, 18, 0.96), rgba(12, 14, 28, 0.96) 55%, rgba(10, 20, 40, 0.98));
  box-shadow: 0 16px 40px rgba(0,0,0,.28), inset 0 1px 0 rgba(255,255,255,.05);
}
.live-banner-bg {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(80% 120% at 0% 0%, rgba(244,63,94,.22), transparent 55%),
    radial-gradient(70% 100% at 100% 30%, rgba(29,155,240,.16), transparent 50%);
}
.live-banner-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.4fr 0.9fr;
  gap: 12px;
  padding: 16px 16px 14px;
  align-items: center;
}
.live-banner-kicker {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11px; font-weight: 900; letter-spacing: .12em;
  text-transform: uppercase; color: #fda4af; margin-bottom: 6px;
}
.live-banner-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #64748b; box-shadow: 0 0 0 0 rgba(244,63,94,.4);
}
.live-banner-dot.is-on {
  background: #f43f5e;
  animation: livePulse 1.6s ease-out infinite;
}
@keyframes livePulse {
  0% { box-shadow: 0 0 0 0 rgba(244,63,94,.55); }
  70% { box-shadow: 0 0 0 10px rgba(244,63,94,0); }
  100% { box-shadow: 0 0 0 0 rgba(244,63,94,0); }
}
.live-banner-count {
  color: #fecdd3; background: rgba(244,63,94,.16);
  border: 1px solid rgba(244,63,94,.28);
  border-radius: 999px; padding: 2px 8px; letter-spacing: 0; font-size: 11px;
}
.live-banner-title {
  margin: 0 0 4px; font-size: 1.25rem; letter-spacing: -.02em; color: #fff5f6;
}
.live-banner-sub {
  margin: 0 0 12px; color: #c4b5c8; font-size: .92rem; line-height: 1.4;
}
.live-banner-actions {
  display: flex; flex-wrap: wrap; gap: 8px;
}
.live-banner-btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 40px; padding: 0 16px; border-radius: 999px;
  font-weight: 900; font-size: .9rem; text-decoration: none;
  letter-spacing: -.01em;
}
.live-banner-btn-primary {
  color: #fff; background: linear-gradient(90deg, #f43f5e, #e11d48);
  box-shadow: 0 10px 24px rgba(244,63,94,.28);
}
.live-banner-btn-primary:hover { filter: brightness(1.06); text-decoration: none; color: #fff; }
.live-banner-btn-ghost {
  color: #e2e8f0; background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
}
.live-banner-btn-ghost:hover { background: rgba(255,255,255,.1); text-decoration: none; color: #fff; }
.live-banner-btn-soft {
  color: #bae6fd; background: rgba(29,155,240,.12);
  border: 1px solid rgba(29,155,240,.28);
}
.live-banner-right { display: flex; justify-content: flex-end; min-height: 72px; }
.live-banner-stack {
  display: flex; flex-direction: row-reverse; align-items: center;
  padding-right: 8px;
}
.live-banner-avatar {
  position: relative; width: 64px; height: 64px; margin-left: -14px;
  border-radius: 999px; display: block;
  border: 3px solid rgba(15,12,18,.95);
  box-shadow: 0 8px 20px rgba(0,0,0,.35);
  overflow: hidden; z-index: calc(10 - var(--i, 0));
  transition: transform .15s ease;
}
.live-banner-avatar:hover { transform: translateY(-3px) scale(1.04); z-index: 20; }
.live-banner-avatar-img,
.live-banner-avatar img {
  width: 100% !important; height: 100% !important;
  object-fit: cover; border-radius: 999px; display: block;
}
.live-banner-avatar-live {
  position: absolute; left: 50%; bottom: 2px; transform: translateX(-50%);
  font-size: 9px; font-weight: 900; letter-spacing: .04em;
  background: #f43f5e; color: #fff; border-radius: 999px;
  padding: 1px 5px; line-height: 1.2;
}
.live-banner-empty-art {
  width: 120px; height: 56px; display: flex; align-items: flex-end; gap: 6px; opacity: .55;
}
.live-banner-wave {
  flex: 1; border-radius: 8px 8px 0 0;
  background: linear-gradient(180deg, rgba(244,63,94,.5), rgba(29,155,240,.2));
  animation: liveWave 1.4s ease-in-out infinite;
}
.live-banner-wave:nth-child(1){height:40%;animation-delay:0s}
.live-banner-wave:nth-child(2){height:75%;animation-delay:.15s}
.live-banner-wave:nth-child(3){height:55%;animation-delay:.3s}
@keyframes liveWave {
  0%,100%{transform:scaleY(.7);opacity:.5}
  50%{transform:scaleY(1);opacity:1}
}
.live-banner-rail {
  position: relative;
  display: flex; gap: 8px; overflow-x: auto;
  padding: 0 12px 12px;
  scrollbar-width: none;
}
.live-banner-rail::-webkit-scrollbar { display: none; }
.live-banner-chip {
  flex: 0 0 auto; display: flex; align-items: center; gap: 8px;
  min-width: 148px; padding: 8px 10px; border-radius: 14px;
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08);
  text-decoration: none; color: inherit;
}
.live-banner-chip:hover { background: rgba(244,63,94,.1); border-color: rgba(244,63,94,.25); text-decoration: none; }
.live-banner-chip-av { width: 34px; height: 34px; border-radius: 999px; overflow: hidden; flex-shrink: 0; }
.live-banner-chip-img, .live-banner-chip-av img {
  width: 100% !important; height: 100% !important; object-fit: cover; display: block;
}
.live-banner-chip-meta { display: flex; flex-direction: column; min-width: 0; gap: 1px; }
.live-banner-chip-meta strong {
  font-size: .86rem; color: #fff1f2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.live-banner-chip-meta small { font-size: .72rem; color: #fb7185; font-weight: 700; }

/* Hide old pulse strip if any CSS remnants remain alone */
.live-pulse-strip { display: none !important; }

@media (max-width: 640px) {
  .live-banner-inner { grid-template-columns: 1fr; padding: 14px 12px 12px; }
  .live-banner-right { justify-content: flex-start; }
  .live-banner-title { font-size: 1.1rem; }
  .live-banner-avatar { width: 52px; height: 52px; margin-left: -10px; }
}

.emoji-picker-premium-upsell { padding: 8px 10px 12px; }
.emoji-picker-upsell-copy { margin: 0 0 8px; color: var(--text-muted, #8b98a5); font-size: 12px; line-height: 1.35; }
.emoji-picker-upsell-btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 34px; padding: 0 12px; border-radius: 999px;
  font-weight: 800; font-size: 12px; text-decoration: none;
  color: #fff; background: linear-gradient(90deg, #1d9bf0, #7c5cff);
}
.streams-chat-emote-premium {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 32px; padding: 0 12px; border-radius: 999px;
  font-size: 12px; font-weight: 800; text-decoration: none;
  color: #e0f2fe; background: rgba(29,155,240,.16);
  border: 1px solid rgba(29,155,240,.3);
  white-space: nowrap;
}


/* Music pill full title + static eq (no marquee) 20260727-profback1 */
.profile-music-pill {
  max-width: min(92vw, 360px) !important;
  height: auto !important;
  min-height: 30px !important;
  padding: 5px 12px 5px 10px !important;
  white-space: nowrap !important;
  overflow: hidden !important;
}
.profile-music-pill.is-playing {
  max-width: min(92vw, 360px) !important;
}
.profile-music-pill.is-playing::before {
  animation: none !important;
  display: none !important;
}
.profile-music-pill-label {
  max-width: none !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
  display: inline-block !important;
  vertical-align: middle !important;
  transform: none !important;
  animation: none !important;
  padding-right: 0 !important;
  mask-image: none !important;
  -webkit-mask-image: none !important;
}
.profile-music-pill.is-playing .profile-music-pill-label,
.profile-music-pill.is-playing .profile-music-pill-label.is-long {
  max-width: none !important;
  animation: none !important;
  mask-image: none !important;
  -webkit-mask-image: none !important;
  padding-right: 0 !important;
  transform: none !important;
}
.profile-music-pill-eq {
  display: none;
  align-items: flex-end !important;
  gap: 2px !important;
  height: 12px !important;
  flex-shrink: 0 !important;
  width: 14px !important;
  justify-content: center !important;
}
.profile-music-pill.is-playing .profile-music-pill-eq {
  display: inline-flex !important;
}
.profile-music-pill.is-playing .profile-music-pill-icon {
  display: none !important;
}
.profile-music-pill-eq i {
  display: block !important;
  width: 2.5px !important;
  border-radius: 2px !important;
  background: currentColor !important;
  transform-origin: bottom center !important;
  animation: profileMusicBar 0.9s ease-in-out infinite !important;
}
.profile-music-pill-eq i:nth-child(1) { animation-delay: 0s !important; height: 5px !important; }
.profile-music-pill-eq i:nth-child(2) { animation-delay: 0.18s !important; height: 11px !important; }
.profile-music-pill-eq i:nth-child(3) { animation-delay: 0.32s !important; height: 7px !important; }

@media (max-width: 1100px) {
  .profile-music-pill {
    max-width: min(88vw, 300px) !important;
    min-height: 28px !important;
    height: auto !important;
    padding: 4px 10px 4px 8px !important;
    font-size: 12px !important;
  }
  .profile-music-pill-label {
    max-width: min(70vw, 240px) !important;
  }
}

/* === mobile-nav beats post ⋮ (20260727-navtop) === */
@media (max-width: 1100px) {
  /* Bottom nav must win every tap over feed menus */
  .mobile-nav,
  .portal-mobile-nav,
  nav.mobile-nav,
  .mobile-nav.portal-mobile-nav {
    z-index: 100050 !important;
    position: fixed !important;
    pointer-events: auto !important;
    isolation: isolate !important;
    transform: translateZ(0) !important;
  }
  .mobile-nav-items,
  .mobile-nav-item,
  .mobile-nav a,
  .mobile-nav button,
  .portal-mobile-nav a,
  .portal-mobile-nav button {
    position: relative !important;
    z-index: 2 !important;
    pointer-events: auto !important;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
  }

  /* Post overflow menus stay UNDER the nav strip */
  .post-menu,
  .feed .post-menu,
  .main-content .post-menu,
  .post-card .post-menu,
  .reply-card .post-menu {
    position: relative !important;
    z-index: 2 !important;
  }
  .post-menu.open {
    z-index: 20 !important;
  }
  .post-menu-trigger,
  .feed .post-menu-trigger,
  .main-content .post-menu-trigger {
    position: relative !important;
    z-index: 3 !important;
  }
  .post-menu-panel,
  .post-menu.open .post-menu-panel,
  body.post-menu-open .post-menu-panel,
  body.post-menu-open .post-menu.open .post-menu-panel,
  .feed .post-menu-panel,
  .main-content .post-menu-panel {
    z-index: 40 !important;
    max-height: calc(100dvh - 72px - env(safe-area-inset-bottom, 0px) - 56px) !important;
    overflow-y: auto !important;
  }
  /* Closed panels must never intercept taps */
  .post-menu:not(.open) .post-menu-panel,
  .post-menu-panel[hidden],
  .post-menu-panel[aria-hidden="true"] {
    display: none !important;
    pointer-events: none !important;
    visibility: hidden !important;
  }
  /* When a menu is open, still keep nav clickable on top */
  body.post-menu-open .mobile-nav,
  body.post-menu-open .portal-mobile-nav {
    z-index: 100050 !important;
    pointer-events: auto !important;
  }
  /* Invisible hit shield under nav so nothing in the feed steals the rocket/tab taps */
  .mobile-nav::before,
  .portal-mobile-nav::before {
    content: "" !important;
    position: absolute !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    top: -8px !important;
    z-index: 0 !important;
    background: transparent !important;
    pointer-events: auto !important;
  }
}


/* discovery: no composer, tags only mobile */
.discovery-feed-head .feed-composer,
.discovery-feed-head #post-composer,
body.social-home .discovery-feed-head .feed-composer {
  display: none !important;
}
/* trending tags strip only belongs under discovery head on mobile */
.trending-mobile-home {
  display: none;
}
@media (max-width: 1100px) {
  .discovery-feed-head .trending-mobile-home {
    display: block;
  }
}

/* kill for-you mobile trending forever */
body.social-home[data-active-tab="for-you"] .trending-mobile-home,
body.social-home[data-active-tab="news"] .trending-mobile-home,
body.social-home:not([data-active-tab="discovery"]) .trending-mobile-home {
  display: none !important;
}


/* X-style pinned post label (profile only) 20260727-pin1 */
.post-pinned-badge {
  display: none !important;
}
.post-pinned-label {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0 0 2px;
  padding: 0;
  font-size: 13px;
  font-weight: 700;
  line-height: 16px;
  color: rgb(113, 118, 123);
}
.post-pinned-label span {
  color: inherit;
}
.post-pinned-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  fill: currentColor;
  color: rgb(113, 118, 123);
  display: block;
}
/* Keep post looking normal — no gold border treatment */
.post-card-pinned {
  border-color: var(--social-border, #2f3336) !important;
  box-shadow: none !important;
  background: transparent !important;
}
html[data-theme="light"] .post-pinned-label,
html[data-theme="light"] .post-pinned-icon {
  color: rgb(83, 100, 113);
}
/* Never show pin chrome on home feeds even if old markup lingers */
body.social-home .post-pinned-label,
body.social-home .post-pinned-badge,
body.social-home .post-card-pinned::before {
  display: none !important;
}
/* Profile pages keep the label */
body.profile-page .post-pinned-label {
  display: flex !important;
}


/* Desktop: full-width comfy banner in main column */
@media (min-width: 1101px) {
  .tl-banner {
    padding: 0 16px;
    margin: 4px 0 14px;
  }
  .tl-banner-inner {
    padding: 14px 16px;
    gap: 16px;
  }
  .tl-banner-title {
    font-size: 16px;
  }
  .tl-banner-av {
    width: 38px;
    height: 38px;
  }
}

/* Mobile: slightly tighter; still a real banner (not tag pills) */
@media (max-width: 1100px) {
  .tl-banner {
    padding: 0 12px;
    margin: 0 0 8px;
  }
  .tl-banner-inner {
    padding: 11px 12px;
    gap: 10px;
    border-radius: 14px;
  }
  .tl-banner-sub {
    font-size: 12px;
  }
  .tl-banner-avs {
    order: 3;
    width: 100%;
    justify-content: flex-start;
    flex-direction: row;
    padding-left: 0;
  }
  .tl-banner-av {
    margin-left: 0;
    margin-right: -8px;
  }
  .tl-banner-actions {
    margin-left: 0;
  }
}
@media (max-width: 420px) {
  .tl-banner-btn-ghost {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .tl-banner.is-live .tl-banner-dot {
    animation: none !important;
  }
}


/* keep secondary as a real link under card on mobile instead */
@media (hover: hover) and (pointer: fine) {
  .tl-banner:hover .tl-banner-secondary,
  .tl-banner:focus-within .tl-banner-secondary {
    opacity: 1;
    pointer-events: auto;
  }
}

html[data-theme="light"] .tl-banner-card {
  background: var(--card-bg, #fff);
}
html[data-theme="light"] .tl-banner-hero {
  box-shadow: 0 0 0 2px #fff, 0 0 0 4px rgba(244, 33, 46, 0.85);
}
html[data-theme="light"] .tl-banner.is-idle .tl-banner-hero {
  box-shadow: 0 0 0 2px #fff, 0 0 0 4px rgba(29, 155, 240, 0.35);
}
html[data-theme="light"] .tl-banner-more-av {
  border-color: #fff;
}
html[data-theme="light"] .tl-banner-hero-live {
  border-color: #fff;
}

@media (min-width: 1101px) {
  .tl-banner {
    margin: 6px 0 16px;
  }
  .tl-banner-card {
    padding: 16px 18px;
    gap: 16px 18px;
  }
  .tl-banner-hero {
    width: 64px;
    height: 64px;
  }
  .tl-banner-title {
    font-size: 18px;
  }
}

@media (max-width: 1100px) {
  .tl-banner {
    padding: 0 12px;
    margin: 0 0 10px;
  }
  .tl-banner-card {
    grid-template-columns: auto minmax(0, 1fr) auto;
    padding: 12px;
    gap: 12px;
    border-radius: 16px;
  }
  .tl-banner-hero {
    width: 52px;
    height: 52px;
  }
  .tl-banner-title {
    font-size: 15px;
  }
  .tl-banner-sub {
    font-size: 12px;
  }
  .tl-banner-cta {
    min-height: 34px;
    padding: 0 12px;
    font-size: 13px;
    box-shadow: none;
  }
  .tl-banner-side-note {
    display: none;
  }
  .tl-banner-secondary {
    position: static;
    display: inline-flex;
    margin: 8px 2px 0;
    opacity: 1;
    pointer-events: auto;
  }
}

@media (max-width: 380px) {
  .tl-banner-cta-label {
    /* icon-only on very small if needed — keep text */
  }
  .tl-banner-more-copy {
    max-width: 9ch;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tl-banner.is-live .tl-banner-dot {
    animation: none !important;
  }
  .tl-banner-card,
  .tl-banner-card:active {
    transition: none !important;
    transform: none !important;
  }
}

/* Discovery simplify: mini Ted Live + Who to follow sheet (20260727-discsimp1) */
.live-banner,
.live-banner--simple,
.live-mobile-strip,
.tl-banner {
  display: none !important;
}
.discovery-suggestions-mobile {
  display: none !important;
}

/* ---- Ted Live mini row ---- */
.tl-mini {
  display: block;
  width: 100%;
  max-width: 100%;
  margin: 0 0 10px;
  padding: 0 16px;
  box-sizing: border-box;
}
/* Desktop: breathing room under tabs / top of feed */
@media (min-width: 1101px) {
  .tl-mini {
    margin: 14px 0 12px !important;
    padding-top: 0;
  }
  body.social-home .main-content > .tl-mini,
  body.social-home[data-active-tab="discovery"] .tl-mini {
    margin-top: 14px !important;
  }
}
.tl-mini-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  padding: 8px 12px;
  border: 1px solid var(--social-border, #2f3336);
  border-radius: 12px;
  background: var(--card-bg, #16181c);
  box-sizing: border-box;
}
.tl-mini-left {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
  flex: 0 1 auto;
}
.tl-mini-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 800;
  color: var(--text, #e7e9ea);
  line-height: 1.15;
  white-space: nowrap;
}
.tl-mini-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #f4212e;
  flex-shrink: 0;
}
.tl-mini-meta {
  font-size: 12px;
  color: var(--text-muted, #71767b);
  white-space: nowrap;
}
.tl-mini-avs {
  display: flex;
  align-items: center;
  flex: 1 1 auto;
  min-width: 0;
  padding-left: 4px;
}
.tl-mini-av {
  width: 32px;
  height: 32px;
  margin-left: -8px;
  border-radius: 999px;
  overflow: hidden;
  display: block;
  flex-shrink: 0;
  box-sizing: border-box;
  /* red ring when live */
  box-shadow: 0 0 0 2px var(--card-bg, #16181c), 0 0 0 3.5px #f4212e;
  background: #000;
  z-index: calc(8 - var(--i, 0));
  transition: transform .12s ease;
}
.tl-mini-av:first-child {
  margin-left: 0;
}
.tl-mini-av:hover {
  transform: translateY(-1px);
  z-index: 20;
}
.tl-mini-av-img,
.tl-mini-av img,
.tl-mini-av-img img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  border-radius: 999px !important;
  display: block !important;
}
.tl-mini-btn {
  flex-shrink: 0;
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 0 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none !important;
  color: #fff !important;
  background: var(--social-blue, #1d9bf0);
  white-space: nowrap;
}
.tl-mini.is-live .tl-mini-btn {
  background: #f4212e;
}
.tl-mini-btn:hover {
  filter: brightness(1.06);
}
html[data-theme="light"] .tl-mini-av {
  box-shadow: 0 0 0 2px #fff, 0 0 0 3.5px #f4212e;
}

@media (max-width: 1100px) {
  .tl-mini {
    padding: 0 12px;
    /* space under tabs / top of discovery */
    margin: 12px 0 10px !important;
  }
  body.social-home[data-active-tab="discovery"] .tl-mini,
  body.social-home .main-content > .tl-mini {
    margin-top: 12px !important;
  }
  .tl-mini-av {
    width: 30px;
    height: 30px;
  }
}

/* ---- Who to follow link + sheet (mobile only) ---- */
.who-follow-mobile {
  display: none;
}
@media (max-width: 1100px) {
  body.social-home[data-active-tab="discovery"] .who-follow-mobile {
    display: block;
    padding: 0 16px 8px;
    box-sizing: border-box;
  }
}
.who-follow-link {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 0;
  margin: 0;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  color: var(--social-blue, #1d9bf0);
  cursor: pointer;
  text-decoration: none;
  line-height: 1.3;
  -webkit-tap-highlight-color: transparent;
}
.who-follow-link:hover,
.who-follow-link:active {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.who-follow-sheet {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  display: none;
}
.who-follow-sheet.is-open,
.who-follow-sheet:not([hidden]) {
  display: block;
}
.who-follow-sheet[hidden] {
  display: none !important;
}
.who-follow-sheet-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
}
.who-follow-sheet-panel {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  max-height: min(78dvh, 560px);
  display: flex;
  flex-direction: column;
  border-radius: 16px 16px 0 0;
  border: 1px solid var(--social-border, #2f3336);
  border-bottom: 0;
  background: var(--bg, #000);
  box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.45);
  padding-bottom: env(safe-area-inset-bottom, 0px);
  transform: translateY(8px);
  opacity: 0.98;
  transition: transform .18s ease;
}
.who-follow-sheet.is-open .who-follow-sheet-panel {
  transform: translateY(0);
}
.who-follow-sheet-grab {
  width: 36px;
  height: 4px;
  border-radius: 999px;
  background: rgba(113, 118, 123, 0.55);
  margin: 8px auto 4px;
  flex-shrink: 0;
}
.who-follow-sheet-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 16px 12px;
  border-bottom: 1px solid var(--social-border, #2f3336);
  flex-shrink: 0;
}
.who-follow-sheet-head h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text, #e7e9ea);
}
.who-follow-sheet-close {
  appearance: none;
  border: 0;
  background: var(--social-hover, rgba(255,255,255,.08));
  color: var(--text, #e7e9ea);
  width: 34px;
  height: 34px;
  border-radius: 999px;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}
.who-follow-sheet-list {
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 4px 0 max(12px, env(safe-area-inset-bottom));
}
.who-follow-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
}
.who-follow-row-profile {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 1;
  text-decoration: none;
  color: inherit;
}
.who-follow-row-av {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  overflow: hidden;
  flex-shrink: 0;
}
.who-follow-row-av img,
.who-follow-row-av .author-avatar {
  width: 42px !important;
  height: 42px !important;
  border-radius: 999px !important;
  object-fit: cover !important;
  display: block !important;
}
.who-follow-row-text {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.who-follow-row-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--text, #e7e9ea);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.who-follow-row-meta {
  font-size: 13px;
  color: var(--text-muted, #71767b);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.who-follow-row-form {
  flex-shrink: 0;
  margin: 0;
}
body.who-follow-open {
  overflow: hidden;
}
@media (min-width: 1101px) {
  .who-follow-mobile,
  .who-follow-sheet {
    display: none !important;
  }
}

/* DM/community reactions: Discord-plain (no blue ring) 20260727-react1 */
.dm-reaction-chip,
.portal-messages-app .dm-reaction-chip,
.dm-messages .dm-reaction-chip,
.dm-messages[data-channel="community"] .dm-reaction-chip,
.portal-messages-app .dm-messages[data-channel="community"] .dm-reaction-chip {
  display: inline-flex !important;
  align-items: center !important;
  gap: 3px !important;
  min-height: 24px !important;
  padding: 1px 6px !important;
  border-radius: 8px !important;
  border: 1px solid transparent !important;
  background: rgba(255, 255, 255, 0.06) !important;
  box-shadow: none !important;
  color: var(--text, #e7e9ea) !important;
  outline: none !important;
}
.dm-reaction-chip:hover,
.dm-reaction-chip:focus,
.dm-reaction-chip:focus-visible,
.portal-messages-app .dm-reaction-chip:hover,
.dm-messages .dm-reaction-chip:hover {
  background: rgba(255, 255, 255, 0.1) !important;
  border-color: transparent !important;
  box-shadow: none !important;
  outline: none !important;
}
/* Your reaction: slightly brighter fill only — no blue outline */
.dm-reaction-chip.is-mine,
.portal-messages-app .dm-reaction-chip.is-mine,
.dm-messages .dm-reaction-chip.is-mine {
  background: rgba(255, 255, 255, 0.1) !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
  box-shadow: none !important;
  outline: none !important;
}
.dm-reaction-chip.is-mine:hover {
  background: rgba(255, 255, 255, 0.14) !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
}
.dm-reaction-count,
.dm-reaction-chip .dm-reaction-count,
.portal-messages-app .dm-reaction-count {
  color: var(--text-muted, #b0b6bc) !important;
  font-weight: 600 !important;
  font-size: 12px !important;
}
.dm-reaction-emoji,
.dm-reaction-chip .dm-reaction-emoji {
  font-size: 15px !important;
  line-height: 1 !important;
}
.dm-reaction-emote-img,
.dm-reaction-chip .dm-reaction-emote-img {
  width: 16px !important;
  height: 16px !important;
  border: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
  outline: none !important;
}
.dm-reactions {
  gap: 4px !important;
}
html[data-theme="light"] .dm-reaction-chip,
html[data-theme="light"] .portal-messages-app .dm-reaction-chip {
  background: rgba(15, 20, 25, 0.06) !important;
  border-color: transparent !important;
}
html[data-theme="light"] .dm-reaction-chip:hover,
html[data-theme="light"] .dm-reaction-chip.is-mine {
  background: rgba(15, 20, 25, 0.1) !important;
  border-color: rgba(15, 20, 25, 0.08) !important;
}
html[data-theme="light"] .dm-reaction-count {
  color: #536471 !important;
}

/* Who-to-follow sheet stacking: hide feed post chrome underneath (20260727-whofix1) */
.who-follow-sheet,
.who-follow-sheet.is-open {
  z-index: 2147483000 !important;
  isolation: isolate !important;
}
.who-follow-sheet-backdrop {
  z-index: 1 !important;
}
.who-follow-sheet-panel {
  z-index: 2 !important;
  background: var(--bg, #000) !important;
}
/* While sheet open, kill feed post menus / action bars so icons never float on top */
html.who-follow-open .post-menu,
html.who-follow-open .post-menu.open,
html.who-follow-open .post-menu-trigger,
html.who-follow-open .post-menu-panel,
html.who-follow-open .post-menu.open .post-menu-panel,
html.who-follow-open .post-actions,
html.who-follow-open .post-card .post-actions,
html.who-follow-open .feed .post-actions,
html.who-follow-open .post-actions-item,
html.who-follow-open .post-actions-btn,
html.who-follow-open .post-actions-icon,
html.who-follow-open .repost-menu,
html.who-follow-open .like-form,
body.who-follow-open .post-menu,
body.who-follow-open .post-menu.open,
body.who-follow-open .post-menu-trigger,
body.who-follow-open .post-menu-panel,
body.who-follow-open .post-menu.open .post-menu-panel,
body.who-follow-open .post-actions,
body.who-follow-open .post-card .post-actions,
body.who-follow-open .feed .post-actions,
body.who-follow-open .post-actions-item,
body.who-follow-open .post-actions-btn,
body.who-follow-open .post-actions-icon,
body.who-follow-open .repost-menu,
body.who-follow-open .like-form {
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
  z-index: 0 !important;
}
/* Sheet itself never hosts post chrome */
.who-follow-sheet .post-actions,
.who-follow-sheet .post-menu,
.who-follow-sheet .post-menu-trigger,
.who-follow-sheet .post-menu-panel,
.who-follow-sheet .post-actions-item,
.who-follow-sheet .post-actions-icon {
  display: none !important;
}
/* Keep sheet list clean — name + @ + Follow only */
.who-follow-row {
  position: relative;
  z-index: 1;
}
.who-follow-row .user-badge-tip,
.who-follow-row .user-badge-tip-btn {
  pointer-events: none;
}
.who-follow-row .user-badge-tip {
  display: none !important;
}

/* Bookmark active: solid yellow fill only — no grey wash / yellow ring (20260727-bm1) */
.post-actions-bookmark .bookmark-btn.is-bookmarked,
.post-actions-bookmark .bookmark-btn.is-bookmarked .post-actions-icon,
.post-actions-bookmark .bookmark-btn.is-bookmarked .post-actions-icon svg,
.post-actions-bookmark .bookmark-btn.is-bookmarked .post-actions-icon svg path,
body.social-page .post-actions-bookmark .bookmark-btn.is-bookmarked,
body.social-page .post-actions-bookmark .bookmark-btn.is-bookmarked .post-actions-icon,
body.social-page .post-actions-bookmark .bookmark-btn.is-bookmarked .post-actions-icon svg,
body.social-home .post-actions-bookmark .bookmark-btn.is-bookmarked,
body.social-home .post-actions-bookmark .bookmark-btn.is-bookmarked .post-actions-icon,
body.social-home .post-actions-bookmark .bookmark-btn.is-bookmarked .post-actions-icon svg,
.feed .post-actions-bookmark .bookmark-btn.is-bookmarked,
.feed .post-actions-bookmark .bookmark-btn.is-bookmarked .post-actions-icon,
.feed .post-actions-bookmark .bookmark-btn.is-bookmarked .post-actions-icon svg {
  color: #ffd400 !important;
  fill: #ffd400 !important;
  stroke: none !important;
  background: transparent !important;
  box-shadow: none !important;
  opacity: 1 !important;
  filter: none !important;
}
/* Kill yellow circular surround on bookmark icon (hover + active) */
.post-actions-bookmark .post-actions-btn,
.post-actions-bookmark .bookmark-btn,
.post-actions-bookmark .post-actions-icon,
.post-actions-bookmark .bookmark-btn.is-bookmarked .post-actions-icon,
.post-actions-bookmark .post-actions-btn:hover .post-actions-icon,
.post-actions-bookmark .post-actions-btn:focus-visible .post-actions-icon,
.post-actions-bookmark .bookmark-btn.is-bookmarked:hover .post-actions-icon {
  background: transparent !important;
  box-shadow: none !important;
  border-radius: 0 !important;
}
.post-actions-bookmark .post-actions-btn:hover,
.post-actions-bookmark .post-actions-btn:focus-visible,
.post-actions-bookmark .bookmark-btn.is-bookmarked:hover {
  background: transparent !important;
}
/* Outline (not bookmarked) stays muted grey, fill-only stroke off */
.post-actions-bookmark .bookmark-btn:not(.is-bookmarked) .post-actions-icon svg,
.post-actions-bookmark .bookmark-btn:not(.is-bookmarked) .post-actions-icon svg path {
  stroke: none !important;
  fill: currentColor !important;
}
/* Mobile polish forced #71767b — reassert active yellow */
@media (max-width: 1100px) {
  .post-card .post-actions-bookmark .bookmark-btn.is-bookmarked,
  .post-card .post-actions-bookmark .bookmark-btn.is-bookmarked .post-actions-btn,
  .post-card .post-actions-bookmark .bookmark-btn.is-bookmarked .post-actions-icon,
  .post-card .post-actions-bookmark .bookmark-btn.is-bookmarked .post-actions-icon svg,
  .post-card .post-actions-bookmark .bookmark-btn.is-bookmarked .post-actions-icon svg path,
  body.social-home .post-actions-bookmark .bookmark-btn.is-bookmarked,
  body.social-home .post-actions-bookmark .bookmark-btn.is-bookmarked .post-actions-icon,
  body.social-home .post-actions-bookmark .bookmark-btn.is-bookmarked .post-actions-icon svg,
  body.social-page .post-actions-bookmark .bookmark-btn.is-bookmarked,
  body.social-page .post-actions-bookmark .bookmark-btn.is-bookmarked .post-actions-icon,
  body.social-page .post-actions-bookmark .bookmark-btn.is-bookmarked .post-actions-icon svg,
  .feed .post-actions-bookmark .bookmark-btn.is-bookmarked,
  .feed .post-actions-bookmark .bookmark-btn.is-bookmarked .post-actions-icon,
  .feed .post-actions-bookmark .bookmark-btn.is-bookmarked .post-actions-icon svg {
    color: #ffd400 !important;
    fill: #ffd400 !important;
    stroke: none !important;
    background: transparent !important;
    box-shadow: none !important;
    opacity: 1 !important;
  }
  /* same for likes so grey force doesn't wash them either */
  .post-card .post-actions-like .like-button.is-liked,
  .post-card .post-actions-like .like-button.is-liked .post-actions-icon,
  .post-card .post-actions-like .like-button.is-liked .post-actions-icon svg,
  body.social-home .post-actions-like .like-button.is-liked,
  body.social-home .post-actions-like .like-button.is-liked .post-actions-icon svg,
  .feed .post-actions-like .like-button.is-liked .post-actions-icon svg {
    color: var(--social-like-active, #f91880) !important;
    fill: currentColor !important;
    stroke: none !important;
    background: transparent !important;
  }
}

/* Repost active: solid green fill only — no grey wash / green surround (20260727-rp1) */
.post-actions-repost .repost-trigger.is-reposted,
.post-actions-repost .repost-btn.is-reposted,
.post-actions-repost .repost-trigger.is-reposted .post-actions-icon,
.post-actions-repost .repost-btn.is-reposted .post-actions-icon,
.post-actions-repost .repost-trigger.is-reposted .post-actions-icon svg,
.post-actions-repost .repost-btn.is-reposted .post-actions-icon svg,
.post-actions-repost .repost-trigger.is-reposted .post-actions-icon svg path,
.post-actions-repost .repost-btn.is-reposted .post-actions-icon svg path,
body.social-page .post-actions-repost .repost-trigger.is-reposted,
body.social-page .post-actions-repost .repost-trigger.is-reposted .post-actions-icon,
body.social-page .post-actions-repost .repost-trigger.is-reposted .post-actions-icon svg,
body.social-home .post-actions-repost .repost-trigger.is-reposted,
body.social-home .post-actions-repost .repost-trigger.is-reposted .post-actions-icon,
body.social-home .post-actions-repost .repost-trigger.is-reposted .post-actions-icon svg,
.feed .post-actions-repost .repost-trigger.is-reposted,
.feed .post-actions-repost .repost-trigger.is-reposted .post-actions-icon,
.feed .post-actions-repost .repost-trigger.is-reposted .post-actions-icon svg {
  color: #00ba7c !important;
  fill: #00ba7c !important;
  stroke: none !important;
  background: transparent !important;
  box-shadow: none !important;
  opacity: 1 !important;
  filter: none !important;
}
/* Kill green circular surround on repost icon */
.post-actions-repost .post-actions-btn,
.post-actions-repost .repost-trigger,
.post-actions-repost .post-actions-icon,
.post-actions-repost .repost-trigger.is-reposted .post-actions-icon,
.post-actions-repost .post-actions-btn:hover .post-actions-icon,
.post-actions-repost .post-actions-btn:focus-visible .post-actions-icon,
.post-actions-repost .repost-trigger.is-reposted:hover .post-actions-icon {
  background: transparent !important;
  box-shadow: none !important;
}
.post-actions-repost .post-actions-btn:hover,
.post-actions-repost .post-actions-btn:focus-visible,
.post-actions-repost .repost-trigger.is-reposted:hover {
  background: transparent !important;
}
.post-actions-repost .repost-trigger:not(.is-reposted) .post-actions-icon svg,
.post-actions-repost .repost-trigger:not(.is-reposted) .post-actions-icon svg path {
  stroke: none !important;
  fill: currentColor !important;
}
@media (max-width: 1100px) {
  .post-card .post-actions-repost .repost-trigger.is-reposted,
  .post-card .post-actions-repost .repost-btn.is-reposted,
  .post-card .post-actions-repost .repost-trigger.is-reposted .post-actions-icon,
  .post-card .post-actions-repost .repost-trigger.is-reposted .post-actions-icon svg,
  .post-card .post-actions-repost .repost-trigger.is-reposted .post-actions-icon svg path,
  body.social-home .post-actions-repost .repost-trigger.is-reposted,
  body.social-home .post-actions-repost .repost-trigger.is-reposted .post-actions-icon,
  body.social-home .post-actions-repost .repost-trigger.is-reposted .post-actions-icon svg,
  body.social-page .post-actions-repost .repost-trigger.is-reposted,
  body.social-page .post-actions-repost .repost-trigger.is-reposted .post-actions-icon svg,
  .feed .post-actions-repost .repost-trigger.is-reposted,
  .feed .post-actions-repost .repost-trigger.is-reposted .post-actions-icon svg {
    color: #00ba7c !important;
    fill: #00ba7c !important;
    stroke: none !important;
    background: transparent !important;
    box-shadow: none !important;
    opacity: 1 !important;
  }
  .post-card .post-actions-repost .post-actions-icon,
  body.social-home .post-actions-repost .post-actions-icon,
  .feed .post-actions-repost .post-actions-icon {
    background: transparent !important;
    box-shadow: none !important;
  }
}

/* DM search + Ted Support + News author polish (20260727-dmsup1) */
.mention-autocomplete {
  z-index: 2147483000 !important;
}
.new-message-modal.open .mention-autocomplete {
  z-index: 2147483000 !important;
}
.new-message-item {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  width: 100%;
  padding: 10px 14px !important;
  border: 0 !important;
  background: transparent !important;
  color: inherit !important;
  text-decoration: none !important;
  text-align: left !important;
  box-sizing: border-box !important;
  cursor: pointer !important;
  font: inherit !important;
}
.new-message-item:hover {
  background: var(--social-hover, rgba(231,233,234,.06)) !important;
}
.new-message-item .dm-convo-avatar,
.new-message-item .author-avatar {
  width: 40px !important;
  height: 40px !important;
  border-radius: 999px !important;
  object-fit: cover !important;
  flex-shrink: 0 !important;
  display: block !important;
}
.new-message-item-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
  gap: 1px;
}
.new-message-item-name {
  display: inline-flex;
  align-items: center;
  gap: 0.25em;
  font-weight: 700;
  font-size: 15px;
  color: var(--text, #e7e9ea);
}
.new-message-item-name .user-badge-icon--premium {
  width: 1.05em !important;
  height: 1.05em !important;
}
.new-message-item-handle {
  font-size: 13px;
  color: var(--text-muted, #71767b);
}

/* Ted Support = normal conversation row */
.dm-convo-support-ted .dm-convo-avatar,
.dm-support-new-item .dm-convo-avatar {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  overflow: hidden;
  border-radius: 999px !important;
  width: 48px !important;
  height: 48px !important;
}
.dm-support-avatar,
img.dm-support-avatar,
.dm-convo-support-ted .author-avatar,
.dm-support-new-item .author-avatar {
  width: 48px !important;
  height: 48px !important;
  border-radius: 999px !important;
  object-fit: cover !important;
  display: block !important;
  background: #16181c !important;
}
.dm-convo-support-ted .dm-convo-name,
.dm-support-new-item .new-message-item-name {
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.28em !important;
}
.dm-convo-support-ted .user-badge-icon--premium,
.dm-support-new-item .user-badge-icon--premium {
  width: 1.05em !important;
  height: 1.05em !important;
  border: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
}
.portal-messages-app .dm-convo-support-icon {
  background: transparent !important;
  border: 0 !important;
}
.portal-messages-app .dm-support-logo {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  border-radius: 999px !important;
}

/* News author: blue Ted-Bot, no News pill */
.post-news-badge {
  display: none !important;
}
.post-author-news-text,
.post-card-news .post-author .identity-name-text,
.post-card-news a.post-author .identity-name-text {
  color: var(--social-blue, #1d9bf0) !important;
  font-weight: 800 !important;
}
.post-card-news .post-author .user-badge-icon--premium {
  width: 1.1em !important;
  height: 1.1em !important;
}
.post-card-news .news-brand-avatar {
  border-radius: 999px !important;
  object-fit: cover !important;
}

/* Rooms tab bar spacing */
.tabs.tabs-four {
  display: flex;
  gap: 0;
}
.tabs.tabs-four .tab {
  flex: 1 1 0;
  text-align: center;
  min-width: 0;
  padding-left: 8px;
  padding-right: 8px;
  font-size: 14px;
}
@media (max-width: 420px) {
  .tabs.tabs-four .tab {
    font-size: 13px;
    padding-left: 4px;
    padding-right: 4px;
  }
}

/* caret-emote-final-override */
.composer-hl-emote-slot,
.composer-hl-emote-compact,
.composer-hl-emote-slot.composer-hl-emote-compact {
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  letter-spacing: 0 !important;
}
.composer-hl-emote-slot .composer-hl-emote,
.composer-hl-emote {
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  object-fit: contain !important;
}

/* ========== unified emote size 20260727-emotesize1 ========== */
/* One final size for custom emotes in posts, comments, and chat bubbles.
   Stops small→large pop when PHP HTML is later replaced by JS. */
img.dm-msg-emote-img,
img.social-emote-img,
img.post-emote-img,
.dm-msg-emote-img,
.social-emote-img,
.post-emote-img,
.dm-message-body .dm-msg-emote-img,
.dm-bubble .dm-msg-emote-img,
.dm-bubble-text img.dm-msg-emote-img,
.dm-bubble-text img.social-emote-img,
.dm-bubble-text img.post-emote-img,
.post-text img.social-emote-img,
.post-text img.post-emote-img,
.reply-text img.social-emote-img,
.reply-text img.post-emote-img {
    display: inline-block !important;
    width: 1.35em !important;
    height: 1.35em !important;
    max-width: 1.35em !important;
    max-height: 1.35em !important;
    min-width: 0 !important;
    min-height: 0 !important;
    object-fit: contain !important;
    vertical-align: -0.25em !important;
    margin: 0 0.05em !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    /* no transitions — size must be correct on first paint */
    transition: none !important;
}
/* ========== /unified emote size 20260727-emotesize1 ========== */

/* ========== mobile text visible 20260727-mobvis1 ========== */
/* Typed characters must ALWAYS be visible on phones / WebView apps.
   Transparent overlay is desktop-only (emote images in field). */
@media (max-width: 1100px), (hover: none) and (pointer: coarse) {
    .composer-highlight-input,
    textarea.composer-highlight-input,
    .composer-highlight-wrap textarea,
    body.portal-section-messages .dm-compose textarea,
    body.portal-section-messages .dm-compose .composer-highlight-input,
    body.portal-section-messages.msg-has-thread .dm-compose textarea,
    body.portal-section-messages.msg-has-thread .dm-compose .composer-highlight-input,
    .portal-messages-app .dm-compose textarea,
    .portal-messages-app .dm-compose .composer-highlight-input,
    body.social-messages .dm-compose textarea,
    body.social-messages .dm-compose .composer-highlight-input,
    .composer-textarea,
    .comment-textarea,
    #dmComposeInput,
    #dmEditInput,
    #postEditContent,
    .feed-composer textarea,
    .composer-modal textarea,
    .reply-modal textarea {
        color: #e7e9ea !important;
        -webkit-text-fill-color: #e7e9ea !important;
        caret-color: #e7e9ea !important;
        opacity: 1 !important;
        visibility: visible !important;
    }
    .composer-highlight-backdrop,
    .composer-highlight-wrap .composer-highlight-backdrop,
    body.portal-section-messages .composer-highlight-backdrop,
    .portal-messages-app .composer-highlight-backdrop {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        pointer-events: none !important;
    }
    /* When highlight wrap remains, give the field its own pill background */
    body.portal-section-messages .dm-compose .composer-highlight-wrap textarea,
    .portal-messages-app .dm-compose .composer-highlight-wrap textarea,
    .composer-highlight-wrap > textarea {
        background: #16181c !important;
        color: #e7e9ea !important;
        -webkit-text-fill-color: #e7e9ea !important;
    }
    body.portal-section-messages .dm-compose textarea::placeholder,
    body.portal-section-messages .dm-compose .composer-highlight-input::placeholder,
    .portal-messages-app .dm-compose textarea::placeholder,
    .composer-highlight-input::placeholder,
    textarea.composer-highlight-input::placeholder {
        color: #71767b !important;
        -webkit-text-fill-color: #71767b !important;
        opacity: 1 !important;
    }
}
/* Desktop-only: transparent text for highlight overlay */
@media (min-width: 1101px) and (hover: hover) {
    textarea.composer-highlight-input.composer-highlight-input {
        /* keep existing transparent overlay on real desktop */
    }
}
/* ========== /mobile text visible 20260727-mobvis1 ========== */

/* ========== premium settings UI 20260727-premui1 ========== */
.premium-settings-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 4px 0 28px;
  max-width: 640px;
  width: 100%;
  box-sizing: border-box;
}
.premium-card {
  display: block;
  width: 100%;
  box-sizing: border-box;
  padding: 16px;
  border-radius: 16px;
  border: 1px solid var(--social-border, #2f3336);
  background: rgba(255,255,255,0.03);
}
.premium-card + .premium-card {
  margin-top: 0;
}
.premium-card-title {
  margin: 0 0 6px;
  font-size: 16px;
  font-weight: 800;
  color: var(--text, #e7e9ea);
  line-height: 1.25;
}
.premium-card-desc {
  margin: 0 0 14px;
  font-size: 13px;
  line-height: 1.45;
  color: var(--text-muted, #8b98a5);
}
.premium-name-color-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.premium-name-color-row input[type="color"] {
  width: 48px;
  height: 42px;
  padding: 0;
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 12px;
  background: transparent;
  cursor: pointer;
  flex: 0 0 auto;
}
.premium-name-color-row .premium-hex-input {
  flex: 1 1 120px;
  min-width: 0;
  max-width: 160px;
  text-transform: uppercase;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  letter-spacing: .04em;
}
.premium-name-preview {
  margin: 0;
  font-size: 14px;
  color: var(--text-muted, #8b98a5);
}
.premium-name-preview strong {
  font-weight: 800;
}
.premium-theme-presets {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(88px, 1fr));
  gap: 10px;
  width: 100%;
}
.premium-theme-swatch {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: center;
  cursor: pointer;
  padding: 8px 6px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.1);
  background: rgba(255,255,255,.02);
  box-sizing: border-box;
  min-width: 0;
}
.premium-theme-swatch.is-selected {
  border-color: rgba(29,155,240,.65);
  background: rgba(29,155,240,.08);
}
.premium-theme-swatch input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  width: 0;
  height: 0;
}
.premium-theme-swatch-chip {
  display: block;
  width: 100%;
  aspect-ratio: 1.4;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,.12);
}
.premium-theme-swatch-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--text, #e7e9ea);
  text-align: center;
  line-height: 1.2;
  word-break: break-word;
}
.premium-fx-options {
  display: grid;
  gap: 10px;
  width: 100%;
}
.premium-fx-option {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.1);
  cursor: pointer;
  box-sizing: border-box;
  background: rgba(0,0,0,.15);
}
.premium-fx-option:has(input:checked),
.premium-fx-option.is-on {
  border-color: rgba(29,155,240,.55);
  background: rgba(29,155,240,.08);
}
.premium-fx-option input {
  margin-top: 3px;
  flex: 0 0 auto;
}
.premium-fx-option strong {
  display: block;
  font-size: 14px;
  color: var(--text, #e7e9ea);
}
.premium-fx-option small {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  color: var(--text-muted, #8b98a5);
  line-height: 1.35;
}
.premium-field {
  display: block;
  width: 100%;
  box-sizing: border-box;
  margin: 0 0 10px;
}
.premium-field label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted, #8b98a5);
  margin: 0 0 6px;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.premium-input,
.premium-settings-form .settings-input,
.premium-settings-form input[type="text"],
.premium-settings-form input[type="url"],
.premium-settings-form input[type="file"] {
  display: block;
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box;
  min-height: 44px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--social-border, #2f3336);
  background: #0f1114;
  color: var(--text, #e7e9ea);
  font-size: 15px;
}
.premium-settings-form input[type="file"] {
  padding: 10px;
  font-size: 13px;
}
.premium-music-current {
  margin: 0 0 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(29,155,240,.08);
  border: 1px solid rgba(29,155,240,.25);
  font-size: 13px;
  color: var(--text, #e7e9ea);
  word-break: break-word;
}
.premium-music-current audio {
  display: block;
  width: 100%;
  margin-top: 8px;
}
.premium-check {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  font-size: 13px;
  color: var(--text-muted, #8b98a5);
}
.premium-or {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 12px 0;
  color: var(--text-muted, #8b98a5);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.premium-or::before,
.premium-or::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--social-border, #2f3336);
}
.premium-save-row {
  position: sticky;
  bottom: 0;
  padding: 12px 0 max(12px, env(safe-area-inset-bottom));
  background: linear-gradient(180deg, transparent, rgba(0,0,0,.55) 28%);
  z-index: 2;
}
.premium-save-row .btn {
  width: 100%;
  min-height: 48px;
  border-radius: 999px;
  font-weight: 800;
}
body.social-settings .settings-detail-body .premium-settings-form {
  padding-left: 12px;
  padding-right: 12px;
  box-sizing: border-box;
}
@media (max-width: 1100px) {
  .premium-settings-form {
    gap: 12px;
    padding-bottom: 40px;
  }
  .premium-card {
    padding: 14px 12px;
    border-radius: 14px;
  }
  .premium-theme-presets {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }
  .premium-theme-swatch {
    padding: 6px 4px;
  }
  .premium-name-color-row .premium-hex-input {
    max-width: none;
    flex: 1 1 auto;
  }
  .premium-name-color-row .btn {
    width: 100%;
  }
  .premium-name-color-row {
    display: grid;
    grid-template-columns: 48px 1fr;
  }
  .premium-name-color-row .btn {
    grid-column: 1 / -1;
  }
}
/* ========== /premium settings UI 20260727-premui1 ========== */

/* reels premium badge no white circle 20260727-reelbadge1 */
body.reels-page .reel-author .user-badge-emoji,
body.reels-page .reel-author .user-badge-icon,
body.reels-page .reel-author .user-badge-icon--premium,
body.reels-page .reel-author .user-badge-tip-btn,
body.reels-page .reel-author .user-badge-tip-btn .user-badge-emoji,
body.reels-page .reel-author .user-badge-tip-btn .user-badge-icon,
body.reels-page .reel-author .user-badge-tip-btn .user-badge-icon--premium,
.reel-author .user-badge-emoji,
.reel-author .user-badge-icon,
.reel-author .user-badge-icon--premium {
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
    outline: 0 !important;
    object-fit: contain !important;
    filter: none !important;
    -webkit-filter: none !important;
}
body.reels-page .reel-author .user-badge-tip-btn {
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
    padding: 0 !important;
    width: auto !important;
    height: auto !important;
    min-width: 0 !important;
    min-height: 0 !important;
}

/* ========== emote grid match defaults 20260727-emogrid3 ========== */
/* Premium heading stays gold; Global is neutral (same as default category labels) */
.emoji-picker-heading-premium,
.emoji-picker-section-premium .emoji-picker-heading,
.emoji-picker-section-global .emoji-picker-heading-premium {
    color: #f5c542 !important;
    font-weight: 800 !important;
    letter-spacing: 0.02em !important;
}
.emoji-picker-heading-global:not(.emoji-picker-heading-premium),
.emoji-picker-section-global:not(.emoji-picker-section-premium) > .emoji-picker-heading {
    color: var(--text-muted, #8b98a5) !important;
    font-weight: 700 !important;
}

/* Force site emote grids to use the SAME columns/gap/cell size as default emoji grids */
.emoji-picker .emoji-picker-grid-emotes,
.composer-emoji-picker .emoji-picker-grid-emotes,
.emoji-picker-dm .emoji-picker-grid-emotes,
.dm-emoji-picker .emoji-picker-grid-emotes,
.dm-emoji-picker .dm-emoji-picker-emote-grid,
body.portal-section-messages .emoji-picker-grid-emotes,
body.social-messages .emoji-picker-grid-emotes,
.portal-messages-app .emoji-picker-grid-emotes {
    display: grid !important;
    grid-template-columns: repeat(8, 1fr) !important;
    grid-auto-rows: auto !important;
    gap: 2px !important;
    width: 100% !important;
    max-width: 100% !important;
    max-height: none !important;
    height: auto !important;
    overflow: visible !important;
    overflow-x: hidden !important;
    overflow-y: visible !important;
    padding: 0 !important;
    margin: 0 !important;
    box-sizing: border-box !important;
    flex-wrap: unset !important;
    align-items: stretch !important;
}
.emoji-picker .emoji-picker-grid-emotes .emoji-picker-btn,
.emoji-picker .emoji-picker-grid-emotes .emoji-picker-emote-btn,
.composer-emoji-picker .emoji-picker-grid-emotes .emoji-picker-btn,
.composer-emoji-picker .emoji-picker-grid-emotes .emoji-picker-emote-btn,
.emoji-picker-dm .emoji-picker-grid-emotes .emoji-picker-btn,
.emoji-picker-dm .emoji-picker-grid-emotes .emoji-picker-emote-btn,
.dm-emoji-picker .emoji-picker-grid-emotes .emoji-picker-btn,
.dm-emoji-picker .emoji-picker-grid-emotes .emoji-picker-emote-btn,
.dm-emoji-picker .dm-emoji-picker-emote-btn {
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    aspect-ratio: 1 !important;
    padding: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex: unset !important;
    box-sizing: border-box !important;
    font-size: 22px !important;
    line-height: 1 !important;
    border-radius: 8px !important;
}
.emoji-picker .emoji-picker-grid-emotes .emoji-picker-btn img,
.emoji-picker .emoji-picker-grid-emotes .emoji-picker-emote-btn img,
.composer-emoji-picker .emoji-picker-grid-emotes img,
.emoji-picker-dm .emoji-picker-grid-emotes img,
.dm-emoji-picker .emoji-picker-grid-emotes img,
.dm-emoji-picker .dm-emoji-picker-emote-img {
    width: 22px !important;
    height: 22px !important;
    max-width: 22px !important;
    max-height: 22px !important;
    object-fit: contain !important;
    display: block !important;
    pointer-events: none !important;
}
@media (max-width: 700px) {
    .emoji-picker .emoji-picker-grid-emotes,
    .composer-emoji-picker .emoji-picker-grid-emotes,
    .emoji-picker-dm .emoji-picker-grid-emotes,
    .dm-emoji-picker .emoji-picker-grid-emotes,
    .dm-emoji-picker .dm-emoji-picker-emote-grid,
    body.portal-section-messages .emoji-picker-grid-emotes,
    body.social-messages .emoji-picker-grid-emotes {
        grid-template-columns: repeat(8, 1fr) !important;
        grid-auto-rows: auto !important;
        gap: 2px !important;
        max-height: none !important;
        overflow-y: visible !important;
    }
    .emoji-picker .emoji-picker-grid-emotes .emoji-picker-btn,
    .emoji-picker .emoji-picker-grid-emotes .emoji-picker-emote-btn,
    .dm-emoji-picker .emoji-picker-grid-emotes .emoji-picker-btn,
    .dm-emoji-picker .dm-emoji-picker-emote-btn {
        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;
        aspect-ratio: 1 !important;
        font-size: 22px !important;
    }
}
/* Also match dm-emoji-picker default grids to 8-col like compose defaults */
.dm-emoji-picker .emoji-picker-grid {
    display: grid !important;
    grid-template-columns: repeat(8, 1fr) !important;
    gap: 2px !important;
}
.dm-emoji-picker .emoji-picker-btn {
    width: 100% !important;
    min-width: 0 !important;
    height: auto !important;
    min-height: 0 !important;
    aspect-ratio: 1 !important;
    font-size: 22px !important;
    line-height: 1 !important;
    border-radius: 8px !important;
}
/* ========== /emote grid match defaults 20260727-emogrid3 ========== */

/* ========== profile edit badges clean 20260727-badgeui1 ========== */
.profile-edit-badges-field {
  margin-top: 4px;
  gap: 10px;
}
.profile-edit-badges-sub {
  margin: 0 !important;
  font-size: 12px;
  color: var(--text-muted, #8b98a5);
  line-height: 1.35;
}
.profile-edit-badges-picker {
  margin: 0;
}
.profile-edit-badges-options {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(92px, 1fr));
  gap: 10px !important;
  margin-top: 0 !important;
}
.profile-edit-badge-option {
  display: flex !important;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px !important;
  min-height: 96px;
  padding: 12px 8px !important;
  border-radius: 16px !important;
  border: 1px solid var(--social-border, #2f3336) !important;
  background: rgba(255,255,255,.03) !important;
  color: var(--text, #e7e9ea) !important;
  cursor: pointer;
  font-size: 12px !important;
  font-weight: 700 !important;
  letter-spacing: .01em;
  transition: border-color .15s ease, background .15s ease, transform .12s ease;
}
.profile-edit-badge-option:hover {
  background: rgba(255,255,255,.06) !important;
  border-color: rgba(255,255,255,.18) !important;
}
.profile-edit-badge-option:active {
  transform: scale(.98);
}
.profile-edit-badge-option.is-selected {
  border-color: rgba(29,155,240,.65) !important;
  background: rgba(29,155,240,.14) !important;
  box-shadow: 0 0 0 1px rgba(29,155,240,.25) inset;
}
.profile-edit-badge-option img {
  width: 40px !important;
  height: 40px !important;
  object-fit: contain !important;
  border: 0 !important;
  background: transparent !important;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,.35));
}
.profile-edit-badge-option span {
  text-align: center;
  line-height: 1.2;
  max-width: 100%;
}
.profile-edit-badge-none-icon {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 800;
  color: var(--text-muted, #8b98a5);
  background: rgba(255,255,255,.05);
  border: 1px dashed rgba(255,255,255,.18);
}
.profile-edit-badge-option.is-selected .profile-edit-badge-none-icon {
  color: #1d9bf0;
  border-color: rgba(29,155,240,.45);
  background: rgba(29,155,240,.12);
}
.profile-edit-badge-option.profile-edit-badge-premium.is-selected {
  border-color: rgba(245,197,66,.55) !important;
  background: rgba(245,197,66,.1) !important;
  box-shadow: 0 0 0 1px rgba(245,197,66,.2) inset;
}
/* ========== /profile edit badges clean 20260727-badgeui1 ========== */
