/* Slightly roomier, stronger typography without changing feed geometry. */
      .sts-post-author{font-size:15px!important;font-weight:950!important;max-width:min(64vw,260px)!important;flex:0 1 auto!important}
      .sts-post-body{font-size:16px!important;line-height:1.45!important;font-weight:500!important}
      .sts-post-handle,.sts-post-time{font-size:13px!important;font-weight:600!important}
      .sts-tabs a{font-size:14px!important;font-weight:900!important}
      .sts-section-title{font-size:16px!important;font-weight:950!important}
      .sts-news-title{font-size:16px!important;font-weight:950!important}
      .sts-news-desc{font-size:12px!important;line-height:1.38!important;font-weight:500!important}
      .sts-news-meta{font-size:11px!important;font-weight:650!important}
      .sts-profile-bio{font-size:15px!important;line-height:1.48!important;font-weight:500!important}
      .sts-profile-handle,.sts-profile-website{font-size:14px!important}
      .sts-profile-stats a,.sts-profile-tabs a{font-size:13px!important;font-weight:800!important}
      .sts-actions a,.sts-actions button{font-weight:700!important}
      .sts-chat-title{font-size:13px!important;font-weight:950!important}
      .sts-chat-handle{font-size:10.5px!important;font-weight:650!important}
      .sts-chat-time{font-size:10px!important;font-weight:650!important}
      .sts-chat-last{font-size:12px!important;font-weight:550!important}
      .sts-msg-content{font-size:14px!important;line-height:1.46!important;font-weight:500!important}
      .sts-notification-copy{font-weight:500!important}
      .sts-bottom-link{font-size:10px!important}.sts-bottom-link b{font-weight:850!important}
      .sts-follow-btn,.sts-submit,.sts-editor-actions a,.sts-editor-actions button{font-weight:900!important}

      /* Theme control. */
      .sts-theme-toggle{display:inline-flex;align-items:center;justify-content:center;width:32px;height:32px;flex:0 0 32px;padding:0;border:1px solid var(--sts-line,#19304a);border-radius:10px;background:transparent;color:var(--sts-text,#edf3f8);cursor:pointer;-webkit-tap-highlight-color:transparent}
      .sts-theme-toggle:hover{background:var(--sts-panel2,#0f2137)}
      .sts-theme-toggle svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
      .sts-theme-toggle .sts-theme-moon{display:none}
      html[data-sts-theme="light"] .sts-theme-toggle .sts-theme-sun{display:none}
      html[data-sts-theme="light"] .sts-theme-toggle .sts-theme-moon{display:block}
      .sts-header-actions{display:flex;align-items:center;gap:6px}

      /* Pull-to-refresh indicator. It is inert unless the homepage feed exists. */
      .sts-pull-refresh{position:fixed;z-index:2147482450;left:50%;top:54px;display:flex;align-items:center;gap:7px;max-width:calc(100vw - 24px);padding:7px 11px;border:1px solid var(--sts-line,#19304a);border-radius:999px;background:var(--sts-panel,#0b1a2d);color:var(--sts-muted,#8da0b5);box-shadow:0 7px 24px rgba(0,0,0,.18);font-size:11px;font-weight:850;opacity:0;pointer-events:none;transform:translate(-50%,-18px);transition:opacity .12s ease,transform .12s ease}
      .sts-pull-refresh.is-pulling{opacity:1;transition:none}
      .sts-pull-refresh.is-ready{color:var(--sts-text,#edf3f8)}
      .sts-pull-refresh.is-refreshing{opacity:1;transform:translate(-50%,0)}
      .sts-pull-refresh-icon{display:inline-flex;font-size:14px;line-height:1;transform:rotate(0deg);transition:transform .12s ease}
      .sts-pull-refresh.is-ready .sts-pull-refresh-icon{transform:rotate(180deg)}
      .sts-pull-refresh.is-refreshing .sts-pull-refresh-icon{animation:stsPullSpin .7s linear infinite}
      @keyframes stsPullSpin{to{transform:rotate(360deg)}}
      @media(prefers-reduced-motion:reduce){.sts-pull-refresh,.sts-pull-refresh-icon{transition:none!important}.sts-pull-refresh.is-refreshing .sts-pull-refresh-icon{animation:none!important}}

      /* Light theme: keep brand/accent colors meaningful, reverse surfaces/text. */
      html[data-sts-theme="light"]{color-scheme:light;--sts-bg:#f7f9fc;--sts-panel:#ffffff;--sts-panel2:#eef3f8;--sts-line:#d5e0ea;--sts-text:#071426;--sts-muted:#566a7e;--sts-blue:#1769aa;--sts-green:#177f59}
      html[data-sts-theme="dark"]{color-scheme:dark}
      html[data-sts-theme="light"],html[data-sts-theme="light"] body{background:var(--sts-bg)!important;color:var(--sts-text)!important}
      html[data-sts-theme="light"] .sts-center,
      html[data-sts-theme="light"] .sts-post-card,
      html[data-sts-theme="light"] .sts-profile-main,
      html[data-sts-theme="light"] .sts-profile-tabs,
      html[data-sts-theme="light"] .sts-suggested-accounts,
      html[data-sts-theme="light"] .sts-trending-strip,
      html[data-sts-theme="light"] .sts-news-source-tabs,
      html[data-sts-theme="light"] .sts-live-africa-list,
      html[data-sts-theme="light"] .sts-live-africa-card,
      html[data-sts-theme="light"] .sts-chat-conversation-page .sts-chat-shell-conversation{background:var(--sts-bg)!important;color:var(--sts-text)!important}

      html[data-sts-theme="light"] .sts-brand-header,
      html[data-sts-theme="light"] .sts-feed-header{background:rgba(255,255,255,.97)!important;border-color:var(--sts-line)!important}
      html[data-sts-theme="light"] .sts-header-brand-word{background:none!important;color:#071426!important;-webkit-text-fill-color:#071426!important;animation:none!important;filter:none!important;transform:none!important}
      html[data-sts-theme="light"] .sts-service-menu>summary,
      html[data-sts-theme="light"] .sts-header-notifications,
      html[data-sts-theme="light"] .sts-theme-toggle{color:#071426!important;border-color:#cbd7e3!important}

      html[data-sts-theme="light"] .sts-composer,
      html[data-sts-theme="light"] .sts-right-card,
      html[data-sts-theme="light"] .sts-auth-card,
      html[data-sts-theme="light"] .sts-editor,
      html[data-sts-theme="light"] .sts-link-preview,
      html[data-sts-theme="light"] .sts-external-card,
      html[data-sts-theme="light"] .sts-repost-card,
      html[data-sts-theme="light"] .sts-service-menu-panel,
      html[data-sts-theme="light"] .sts-account-menu-panel,
      html[data-sts-theme="light"] .sts-more-menu,
      html[data-sts-theme="light"] .sts-repost-options,
      html[data-sts-theme="light"] .sts-profile-tools-menu,
      html[data-sts-theme="light"] .sts-share-card,
      html[data-sts-theme="light"] .sts-platform-note,
      html[data-sts-theme="light"] .sts-platform-form,
      html[data-sts-theme="light"] .sts-report-card,
      html[data-sts-theme="light"] .sts-analytics-summary div,
      html[data-sts-theme="light"] .sts-news-discussion-context,
      html[data-sts-theme="light"] .sts-upload-progress,
      html[data-sts-theme="light"] .sts-toast,
      html[data-sts-theme="light"] .sts-poll-builder{background:#fff!important;color:#071426!important;border-color:var(--sts-line)!important}

      html[data-sts-theme="light"] .sts-hero{background:linear-gradient(135deg,#ffffff,#eef4fa)!important}
      html[data-sts-theme="light"] .sts-happening-card,
      html[data-sts-theme="light"] .sts-suggested-card{background:linear-gradient(180deg,#ffffff,#f1f5f9)!important;border-color:var(--sts-line)!important}
      html[data-sts-theme="light"] .sts-live-africa-hero{background:linear-gradient(180deg,#ffffff,#f1f5f9)!important;border-color:var(--sts-line)!important}
      html[data-sts-theme="light"] .sts-live-africa-filters,
      html[data-sts-theme="light"] .sts-live-africa-topics{background:var(--sts-bg)!important}

      html[data-sts-theme="light"] .sts-search-bar,
      html[data-sts-theme="light"] .sts-auth-card input[type=text],
      html[data-sts-theme="light"] .sts-auth-card input[type=password],
      html[data-sts-theme="light"] .sts-editor input,
      html[data-sts-theme="light"] .sts-editor textarea,
      html[data-sts-theme="light"] .sts-platform-form select,
      html[data-sts-theme="light"] .sts-platform-form textarea,
      html[data-sts-theme="light"] .sts-report-card select,
      html[data-sts-theme="light"] .sts-report-card textarea,
      html[data-sts-theme="light"] .sts-poll-builder input{background:#f3f6fa!important;color:#071426!important;border-color:#ccd9e5!important}
      html[data-sts-theme="light"] .sts-search-bar input,
      html[data-sts-theme="light"] .sts-composer textarea{color:#071426!important}
      html[data-sts-theme="light"] input::placeholder,
      html[data-sts-theme="light"] textarea::placeholder{color:#75879a!important;opacity:1}

      html[data-sts-theme="light"] .sts-post-card:hover,
      html[data-sts-theme="light"] .sts-news-card:hover,
      html[data-sts-theme="light"] .sts-service-menu-panel a:hover,
      html[data-sts-theme="light"] .sts-service-menu-panel a:focus,
      html[data-sts-theme="light"] .sts-account-switch-form button:hover,
      html[data-sts-theme="light"] .sts-account-add:hover,
      html[data-sts-theme="light"] .sts-account-manage:hover,
      html[data-sts-theme="light"] .sts-account-logout:hover,
      html[data-sts-theme="light"] .sts-more-menu a:hover,
      html[data-sts-theme="light"] .sts-repost-options a:hover,
      html[data-sts-theme="light"] .sts-profile-tools-menu a:hover{background:#edf3f8!important}

      html[data-sts-theme="light"] .sts-post-author,
      html[data-sts-theme="light"] .sts-post-body,
      html[data-sts-theme="light"] .sts-news-title,
      html[data-sts-theme="light"] .sts-profile-name,
      html[data-sts-theme="light"] .sts-profile-stats strong,
      html[data-sts-theme="light"] .sts-empty h2,
      html[data-sts-theme="light"] .sts-right-card a,
      html[data-sts-theme="light"] .sts-tabs a.active,
      html[data-sts-theme="light"] .sts-profile-tabs a.active,
      html[data-sts-theme="light"] .sts-repost-author a,
      html[data-sts-theme="light"] .sts-live-africa-title strong,
      html[data-sts-theme="light"] .sts-live-africa-hero h1,
      html[data-sts-theme="light"] .sts-live-africa-card h2,
      html[data-sts-theme="light"] .sts-happening-trend b,
      html[data-sts-theme="light"] .sts-happening-news b,
      html[data-sts-theme="light"] .sts-news-discussion-context strong{color:#071426!important}

      html[data-sts-theme="light"] .sts-service-menu-panel a,
      html[data-sts-theme="light"] .sts-more-menu a,
      html[data-sts-theme="light"] .sts-repost-options a,
      html[data-sts-theme="light"] .sts-profile-tools-menu a,
      html[data-sts-theme="light"] .sts-platform-menu-action,
      html[data-sts-theme="light"] .sts-account-switch-form button,
      html[data-sts-theme="light"] .sts-account-add,
      html[data-sts-theme="light"] .sts-account-manage{color:#10263b!important}

      html[data-sts-theme="light"] .sts-post-handle,
      html[data-sts-theme="light"] .sts-post-time,
      html[data-sts-theme="light"] .sts-news-meta,
      html[data-sts-theme="light"] .sts-news-desc,
      html[data-sts-theme="light"] .sts-profile-handle,
      html[data-sts-theme="light"] .sts-profile-stats a,
      html[data-sts-theme="light"] .sts-empty,
      html[data-sts-theme="light"] .sts-right-card p,
      html[data-sts-theme="light"] .sts-live-africa-hero p,
      html[data-sts-theme="light"] .sts-live-africa-update,
      html[data-sts-theme="light"] .sts-live-africa-card p,
      html[data-sts-theme="light"] .sts-live-africa-time,
      html[data-sts-theme="light"] .sts-swahili-news-heading,
      html[data-sts-theme="light"] .sts-happening-kicker,
      html[data-sts-theme="light"] .sts-happening-trend small,
      html[data-sts-theme="light"] .sts-news-discussion-count{color:var(--sts-muted)!important}

      html[data-sts-theme="light"] .sts-follow-btn{color:#071426!important;border-color:#8aa0b5!important;background:transparent!important}
      html[data-sts-theme="light"] .sts-follow-btn.following{background:#e6edf4!important;color:#18314a!important;border-color:#c6d4e1!important}
      html[data-sts-theme="light"] .sts-suggested-card>.sts-follow-btn:not(.following){background:#071426!important;color:#fff!important;border-color:#071426!important}
      html[data-sts-theme="light"] .sts-actions{color:#60758a!important}
      html[data-sts-theme="light"] .sts-actions a:hover,
      html[data-sts-theme="light"] .sts-actions button:hover{color:#071426!important}
      html[data-sts-theme="light"] .sts-page-back:hover{background:rgba(7,20,38,.06)!important}

      html[data-sts-theme="light"] .sts-link-preview-media,
      html[data-sts-theme="light"] .sts-news-thumb,
      html[data-sts-theme="light"] .sts-post-avatar,
      html[data-sts-theme="light"] .sts-profile-avatar{background:#e4ebf2!important}
      html[data-sts-theme="light"] .sts-cover{background-color:#dce6ef!important}
      html[data-sts-theme="light"] .sts-profile-avatar{border-color:var(--sts-bg)!important}

      html[data-sts-theme="light"] .sts-bottom-nav{background:rgba(255,255,255,.96)!important;border-color:#ccd8e4!important;box-shadow:0 10px 28px rgba(16,39,62,.14)!important}
      html[data-sts-theme="light"] .sts-bottom-link{color:#60758a!important}
      html[data-sts-theme="light"] .sts-bottom-link.active{color:#071426!important;background:rgba(7,20,38,.06)!important}
      html[data-sts-theme="light"] .sts-bottom-post{border-color:var(--sts-bg)!important;color:#fff!important}
      html[data-sts-theme="light"] .sts-unread-dot{border-color:var(--sts-bg)!important}

      html[data-sts-theme="light"] .sts-share-option{background:#f3f6fa!important;color:#071426!important;border-color:var(--sts-line)!important}
      html[data-sts-theme="light"] .sts-share-option:hover,
      html[data-sts-theme="light"] .sts-share-option.copy{background:#e9eff5!important}
      html[data-sts-theme="light"] .sts-profile-share-btn{background:#eef3f8!important;color:#071426!important;border-color:#cbd8e4!important}

      @media(max-width:600px){
        .sts-post-body{font-size:16px!important}
        .sts-news-title{font-size:16px!important}
        .sts-pull-refresh{top:52px}
      }

/* v0.13.3 — readability + theme consistency pass. */
.sts-post-author-row{gap:4px!important}
.sts-post-handle{min-width:0!important;max-width:28vw!important;overflow:hidden!important;text-overflow:ellipsis!important}
.sts-reply-author{font-size:14.5px!important;font-weight:900!important;max-width:min(62vw,250px)!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important}
.sts-reply-author-row{flex-wrap:nowrap!important;min-width:0!important}
.sts-reply-head-main{min-width:0!important}

/* Reply composer now feels like the normal post composer instead of a boxed form. */
.sts-comment-form{margin:8px 0 0!important;padding:11px 12px 12px!important;background:var(--sts-panel,#0b1a2d)!important;border-top:1px solid var(--sts-line,#19304a)!important;border-bottom:1px solid var(--sts-line,#19304a)!important}
.sts-comment-box{border:0!important;border-radius:0!important;background:transparent!important;overflow:visible!important}
.sts-comment-input{min-height:62px!important;padding:7px 2px 8px!important;background:transparent!important;border:0!important;border-radius:0!important}
.sts-comment-box-footer{min-height:34px!important;padding:5px 0 0!important;border-top:0!important;background:transparent!important}
.sts-comment-box-footer button{border-radius:999px!important;padding:6px 11px!important}
.sts-comment-submit{background:var(--sts-blue,#2f80ed)!important;border-color:var(--sts-blue,#2f80ed)!important;color:#fff!important}
.sts-comment-cancel{border-color:transparent!important;background:transparent!important}
.sts-reply-context{padding:3px 2px 2px!important}

/* Replies use clean feed-row geometry; remove the old cramped Reddit-box feeling. */
.sts-reddit-thread{padding:0!important;background:transparent!important}
.sts-reddit-thread>.sts-reply{margin:0!important;padding:11px 12px!important;background:var(--sts-bg,#071426)!important;border:0!important;border-bottom:1px solid var(--sts-line,#19304a)!important;border-radius:0!important}
.sts-reddit-thread>.sts-reply:last-child{border-bottom:0!important}
.sts-reddit-thread .sts-reply-body{font-size:15px!important;line-height:1.42!important}
.sts-reddit-thread .sts-reply-actions{margin-top:7px!important}

/* Light mode is a designed palette, not a raw color inversion. */
html[data-sts-theme="light"]{
  --sts-bg:#f6f8fb;--sts-panel:#ffffff;--sts-panel2:#edf2f7;--sts-line:#d8e1ea;
  --sts-text:#0a1d31;--sts-muted:#5e7185;--sts-blue:#176db3;--sts-green:#137a53;
}
html[data-sts-theme="light"] body,
html[data-sts-theme="light"] .sts-app,
html[data-sts-theme="light"] .sts-center,
html[data-sts-theme="light"] .sts-profile-shell,
html[data-sts-theme="light"] .sts-news-page{background:#f6f8fb!important;color:#0a1d31!important}

html[data-sts-theme="light"] .sts-post-card,
html[data-sts-theme="light"] .sts-reddit-thread>.sts-reply,
html[data-sts-theme="light"] .sts-composer,
html[data-sts-theme="light"] .sts-comment-form,
html[data-sts-theme="light"] .sts-profile-main,
html[data-sts-theme="light"] .sts-profile-tabs,
html[data-sts-theme="light"] .sts-chat-shell,
html[data-sts-theme="light"] .sts-chat-shell-list,
html[data-sts-theme="light"] .sts-chat-shell-conversation,
html[data-sts-theme="light"] .sts-platform-form,
html[data-sts-theme="light"] .sts-settings-group,
html[data-sts-theme="light"] .sts-report-card{background:#fff!important;color:#0a1d31!important;border-color:#d8e1ea!important}

html[data-sts-theme="light"] .sts-post-author,
html[data-sts-theme="light"] .sts-post-body,
html[data-sts-theme="light"] .sts-reply-author,
html[data-sts-theme="light"] .sts-reply-body,
html[data-sts-theme="light"] .sts-reply-edit-form textarea,
html[data-sts-theme="light"] .sts-comment-input,
html[data-sts-theme="light"] .sts-composer textarea,
html[data-sts-theme="light"] .sts-activity-copy,
html[data-sts-theme="light"] .sts-chat-title,
html[data-sts-theme="light"] .sts-chat-empty strong,
html[data-sts-theme="light"] .sts-profile-name,
html[data-sts-theme="light"] .sts-feed-title,
html[data-sts-theme="light"] .sts-platform-title,
html[data-sts-theme="light"] .sts-notifications-title{color:#0a1d31!important}

html[data-sts-theme="light"] .sts-reply-action,
html[data-sts-theme="light"] .sts-reply-actions button,
html[data-sts-theme="light"] .sts-reply-actions a,
html[data-sts-theme="light"] .sts-reply-context,
html[data-sts-theme="light"] .sts-thread-loading,
html[data-sts-theme="light"] .sts-chat-handle,
html[data-sts-theme="light"] .sts-chat-time,
html[data-sts-theme="light"] .sts-chat-last,
html[data-sts-theme="light"] .sts-chat-toolbar,
html[data-sts-theme="light"] .sts-chat-date,
html[data-sts-theme="light"] .sts-chat-empty,
html[data-sts-theme="light"] .sts-activity-copy small{color:#62778b!important}

html[data-sts-theme="light"] .sts-reply-action:hover,
html[data-sts-theme="light"] .sts-reply-actions button:hover,
html[data-sts-theme="light"] .sts-reply-thread-toggle:hover{color:#0a1d31!important}
html[data-sts-theme="light"] .sts-reply-thread-toggle{color:#176db3!important}
html[data-sts-theme="light"] .sts-reply-delete{color:#c63d45!important}

html[data-sts-theme="light"] .sts-comment-input::placeholder,
html[data-sts-theme="light"] .sts-composer textarea::placeholder{color:#8292a2!important}
html[data-sts-theme="light"] .sts-comment-form{border-color:#d8e1ea!important}
html[data-sts-theme="light"] .sts-comment-submit{background:#0b5f9d!important;border-color:#0b5f9d!important;color:#fff!important}
html[data-sts-theme="light"] .sts-comment-cancel{color:#607489!important}
html[data-sts-theme="light"] .sts-reply-edit-form{background:#fff!important;border-color:#d8e1ea!important}
html[data-sts-theme="light"] .sts-reply-edit-form button{color:#18324a!important;border-color:#c7d3df!important;background:#f5f8fb!important}

/* Thread cables remain visible but softer on white. */
html[data-sts-theme="light"] .sts-reddit-thread .sts-reply-children{border-left-color:rgba(73,101,127,.34)!important}
html[data-sts-theme="light"] .sts-reddit-thread .sts-reply-children>.sts-reply:before{border-bottom-color:rgba(73,101,127,.34)!important}
html[data-sts-theme="light"] .sts-reddit-thread .sts-reply-has-children>.sts-reply-head:after{background:rgba(73,101,127,.34)!important}
html[data-sts-theme="light"] .sts-reddit-thread .sts-reply-avatar{background:#e7edf3!important}

/* Notifications. */
html[data-sts-theme="light"] .sts-activity-row{background:#fff!important;color:#0a1d31!important;border-color:#d8e1ea!important}
html[data-sts-theme="light"] .sts-activity-row.unread{background:#edf6ff!important}
html[data-sts-theme="light"] .sts-activity-kind{color:#176db3!important}

/* Inbox + conversations. */
html[data-sts-theme="light"] .sts-chat-row{background:#fff!important;color:#0a1d31!important;border-color:transparent!important}
html[data-sts-theme="light"] .sts-chat-row:hover{background:#f0f4f8!important;border-color:#d8e1ea!important}
html[data-sts-theme="light"] .sts-chat-row.unread{background:linear-gradient(135deg,#edf6ff,#f7fbff)!important;border-color:#c9ddec!important}
html[data-sts-theme="light"] .sts-chat-row.unread .sts-chat-title{color:#0a1d31!important}
html[data-sts-theme="light"] .sts-chat-row.unread .sts-chat-last{color:#4d6478!important}
html[data-sts-theme="light"] .sts-chat-person{background:#fff!important;border-color:#d8e1ea!important;color:#0a1d31!important}
html[data-sts-theme="light"] .sts-chat-person:hover{background:#f2f6fa!important;border-color:#bfcddd!important}
html[data-sts-theme="light"] .sts-msg.received{background:#edf2f7!important;border-color:#d8e1ea!important}
html[data-sts-theme="light"] .sts-msg.received .sts-msg-content{color:#0a1d31!important}
html[data-sts-theme="light"] .sts-msg.sent,
html[data-sts-theme="light"] .sts-msg.mine{background:linear-gradient(145deg,#176db3,#0e5b98)!important}
html[data-sts-theme="light"] .sts-msg.sent .sts-msg-content,
html[data-sts-theme="light"] .sts-msg.mine .sts-msg-content{color:#fff!important}
html[data-sts-theme="light"] .sts-msg.sent .sts-msg-time,
html[data-sts-theme="light"] .sts-msg.mine .sts-msg-time{color:rgba(255,255,255,.72)!important}
html[data-sts-theme="light"] .sts-chat-empty:before{background:#eaf1f7!important;border-color:#cbd7e2!important}
html[data-sts-theme="light"] .sts-chat-online-dot{border-color:#fff!important}

/* Menus, cards and form surfaces that previously kept dark hard-coded colors. */
html[data-sts-theme="light"] .sts-media-editor,
html[data-sts-theme="light"] .sts-share-card,
html[data-sts-theme="light"] .sts-inline-thread,
html[data-sts-theme="light"] .sts-poll-builder,
html[data-sts-theme="light"] .sts-account-menu-panel,
html[data-sts-theme="light"] .sts-service-menu-panel,
html[data-sts-theme="light"] .sts-more-menu,
html[data-sts-theme="light"] .sts-repost-options,
html[data-sts-theme="light"] .sts-profile-tools-menu{background:#fff!important;color:#0a1d31!important;border-color:#d8e1ea!important}
html[data-sts-theme="light"] .sts-media-editor-tools button{background:#f1f5f9!important;color:#18324a!important;border-color:#cbd7e2!important}
html[data-sts-theme="light"] .sts-share-close{color:#607489!important}
html[data-sts-theme="light"] .sts-header-notifications{background:#fff!important;color:#0a1d31!important;border-color:#cbd7e2!important}
html[data-sts-theme="light"] .sts-header-notification-badge{border-color:#fff!important}

/* Prevent the theme and notification controls from sharing a touch target. */
.sts-header-actions{gap:8px!important}
.sts-theme-toggle,.sts-header-notifications{position:relative!important;z-index:4!important;touch-action:manipulation!important}
.sts-theme-toggle{isolation:isolate!important}

@media(max-width:600px){
  .sts-post-author{font-size:15px!important;max-width:min(66vw,235px)!important}
  .sts-post-handle{max-width:24vw!important}
  .sts-reply-author{max-width:min(64vw,220px)!important}
  .sts-comment-form{padding:10px!important}
}


/* 0.13.4 — Inbox theme parity + message replies. */
.sts-msg-reply-preview{display:flex;flex-direction:column;gap:2px;margin:-1px 0 7px;padding:7px 9px;border-left:3px solid #69b7ff;border-radius:9px;background:rgba(0,0,0,.16);min-width:120px;max-width:100%;overflow:hidden}
.sts-msg-reply-preview strong{font-size:10px;line-height:1.15;font-weight:950;color:#9fd0ff;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.sts-msg-reply-preview span{font-size:10.5px;line-height:1.25;font-weight:650;color:rgba(237,243,248,.76);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.sts-msg.sent .sts-msg-reply-preview,.sts-msg.mine .sts-msg-reply-preview{background:rgba(5,20,33,.24);border-left-color:#b7ddff}
.sts-msg.sent .sts-msg-reply-preview strong,.sts-msg.mine .sts-msg-reply-preview strong{color:#d5ebff}
.sts-msg.sent .sts-msg-reply-preview span,.sts-msg.mine .sts-msg-reply-preview span{color:rgba(255,255,255,.78)}

.sts-chat-reply-context[hidden]{display:none!important}
.sts-chat-reply-context:not([hidden]){grid-column:1/-1;display:flex!important;align-items:center;gap:9px;min-width:0;margin:0 0 1px;padding:7px 9px;border:1px solid rgba(75,116,153,.48);border-left:3px solid var(--sts-blue,#4aa3ff);border-radius:11px;background:#0d2034;color:var(--sts-text,#edf3f8);box-sizing:border-box}
.sts-chat-reply-copy{display:flex;flex:1;min-width:0;flex-direction:column;gap:2px}
.sts-chat-reply-copy strong{font-size:10px;line-height:1.1;font-weight:950;color:#8bc8ff;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.sts-chat-reply-copy span{font-size:10.5px;line-height:1.2;font-weight:650;color:var(--sts-muted,#8da0b5);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.sts-chat-reply-cancel{display:inline-flex!important;align-items:center!important;justify-content:center!important;width:26px!important;height:26px!important;min-width:26px!important;padding:0!important;border:0!important;border-radius:50%!important;background:transparent!important;color:var(--sts-muted,#8da0b5)!important;box-shadow:none!important;font-size:20px!important;font-weight:500!important;line-height:1!important}
.sts-chat-reply-cancel:hover,.sts-chat-reply-cancel:focus{background:rgba(127,151,175,.12)!important;color:var(--sts-text,#edf3f8)!important}

.sts-msg-reply-tap{position:absolute!important;top:50%!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;width:28px!important;height:28px!important;padding:0!important;margin-top:-14px!important;border:1px solid var(--sts-line,#29435f)!important;border-radius:50%!important;background:var(--sts-panel,#0b1a2d)!important;color:var(--sts-muted,#8da0b5)!important;box-shadow:0 5px 14px rgba(0,0,0,.16)!important;font-size:14px!important;line-height:1!important;opacity:0;pointer-events:none;transition:opacity .12s ease,transform .12s ease!important;z-index:9!important}
.sts-msg.received .sts-msg-reply-tap{right:-35px!important}.sts-msg.sent .sts-msg-reply-tap,.sts-msg.mine .sts-msg-reply-tap{left:-35px!important}
.sts-msg:hover .sts-msg-reply-tap,.sts-msg:focus-within .sts-msg-reply-tap{opacity:1;pointer-events:auto}
@media(pointer:coarse){.sts-msg-reply-tap{display:none!important}}

.sts-msg.sts-msg-swiping{transition:none!important;z-index:5!important}
.sts-msg.sts-msg-swipe-return{transition:transform .16s cubic-bezier(.2,.8,.2,1)!important}
.sts-msg.sts-msg-swiping::before{content:"↩";position:absolute;left:-31px;top:50%;width:25px;height:25px;margin-top:-13px;display:flex;align-items:center;justify-content:center;border-radius:50%;background:var(--sts-panel2,#0f2137);color:var(--sts-muted,#8da0b5);border:1px solid var(--sts-line,#19304a);font-size:13px;font-weight:900;opacity:.55;transform:scale(.9);transition:opacity .08s ease,transform .08s ease;pointer-events:none}
.sts-msg.sts-msg-swipe-ready::before{opacity:1;transform:scale(1.05);color:var(--sts-blue,#4aa3ff)}

/* The mobile chat dock used to force dark colors after the theme CSS. These
   selectors deliberately outrank those legacy rules and update instantly. */
html[data-sts-theme="light"] body.sts-chat-conversation-page .sts-chat-shell-conversation,
html[data-sts-theme="light"] body.sts-chat-conversation-page .sts-chat-window{background:#f7f9fc!important;color:#071426!important}
html[data-sts-theme="light"] body.sts-chat-conversation-page .sts-chat-compose{background:#ffffff!important;border-top-color:#d5e0ea!important;box-shadow:0 -9px 24px rgba(23,47,72,.08)!important}
html[data-sts-theme="light"] body.sts-chat-conversation-page .sts-chat-compose textarea,
html[data-sts-theme="light"] .sts-chat-compose textarea{background:#f1f5f9!important;color:#071426!important;border-color:#c9d6e2!important;box-shadow:inset 0 1px 0 rgba(255,255,255,.8)!important}
html[data-sts-theme="light"] body.sts-chat-conversation-page .sts-chat-compose textarea:focus,
html[data-sts-theme="light"] .sts-chat-compose textarea:focus{background:#ffffff!important;border-color:#5f91bd!important;box-shadow:0 0 0 3px rgba(23,105,170,.09)!important}
html[data-sts-theme="light"] .sts-chat-compose textarea::placeholder{color:#718497!important}
html[data-sts-theme="light"] .sts-chat-toolbar{color:#60758a!important}
html[data-sts-theme="light"] .sts-chat-privacy{color:#60758a!important}
html[data-sts-theme="light"] .sts-chat-privacy i{background:#7890a6!important}
html[data-sts-theme="light"] .sts-chat-date{color:#6a7e91!important}
html[data-sts-theme="light"] .sts-chat-date:before,
html[data-sts-theme="light"] .sts-chat-date:after{background:#d7e0e8!important}
html[data-sts-theme="light"] .sts-msg.received{background:#ffffff!important;border-color:#d7e1ea!important;box-shadow:0 2px 7px rgba(21,49,75,.07)!important}
html[data-sts-theme="light"] .sts-msg.received .sts-msg-content{color:#071426!important}
html[data-sts-theme="light"] .sts-msg.received .sts-msg-time{color:#6a7d8f!important}
html[data-sts-theme="light"] .sts-msg.received:not(:has(+ .sts-msg.received))::after{background:#ffffff!important}
html[data-sts-theme="light"] .sts-msg-more>summary{color:#6d8092!important}
html[data-sts-theme="light"] .sts-msg-more>summary:active,
html[data-sts-theme="light"] .sts-msg-more[open]>summary{background:#eaf0f5!important;border-color:#ccd8e3!important;color:#1a3349!important}
html[data-sts-theme="light"] .sts-msg-menu{background:#ffffff!important;border-color:#d2dde7!important;box-shadow:0 14px 35px rgba(26,48,70,.14)!important}
html[data-sts-theme="light"] .sts-msg-menu button{color:#163049!important}
html[data-sts-theme="light"] .sts-msg-menu button:hover{background:#edf3f8!important}
html[data-sts-theme="light"] .sts-msg-menu button[data-msg-delete]{color:#c8454b!important}
html[data-sts-theme="light"] .sts-msg.received .sts-msg-reply-preview{background:#f1f5f9!important;border-left-color:#1769aa!important}
html[data-sts-theme="light"] .sts-msg.received .sts-msg-reply-preview strong{color:#125f9c!important}
html[data-sts-theme="light"] .sts-msg.received .sts-msg-reply-preview span{color:#506579!important}
html[data-sts-theme="light"] .sts-chat-reply-context:not([hidden]){background:#f5f8fb!important;color:#071426!important;border-color:#ccd8e3!important;border-left-color:#1769aa!important}
html[data-sts-theme="light"] .sts-chat-reply-copy strong{color:#125f9c!important}
html[data-sts-theme="light"] .sts-chat-reply-copy span{color:#5b6f82!important}
html[data-sts-theme="light"] .sts-chat-reply-cancel{color:#607487!important}
html[data-sts-theme="light"] .sts-msg-reply-tap{background:#ffffff!important;border-color:#d2dde7!important;color:#50677b!important;box-shadow:0 5px 14px rgba(25,48,70,.10)!important}
html[data-sts-theme="light"] .sts-msg.sts-msg-swiping::before{background:#ffffff!important;border-color:#d2dde7!important;color:#5b7185!important}
html[data-sts-theme="light"] .sts-msg.sts-msg-swipe-ready::before{color:#1769aa!important}
html[data-sts-theme="light"] .sts-inbox-filter{background:#ffffff!important;border-color:#d2dde7!important;box-shadow:inset 0 1px 0 rgba(255,255,255,.85)!important}
html[data-sts-theme="light"] .sts-inbox-filter input{color:#071426!important}
html[data-sts-theme="light"] .sts-inbox-filter input::placeholder{color:#718497!important}
html[data-sts-theme="light"] .sts-inbox-filter>span:before{color:#60778c!important}
html[data-sts-theme="light"] .sts-inbox-new-title{color:#5f7488!important}
html[data-sts-theme="light"] .sts-chat-person-handle{color:#64798d!important}
html[data-sts-theme="light"] .sts-welcome-readonly{background:#f4f7fa!important;color:#5d7184!important;border-color:#d2dde7!important}


/* 0.13.5 — compact conversations, reliable post menus and tiny type scale trim. */
/* The 0.3px trim keeps the larger readable type introduced in 0.13.2, but gives names and controls a little more breathing room. */
.sts-post-author{font-size:14.7px!important}
.sts-post-body{font-size:15.7px!important}
.sts-post-handle,.sts-post-time{font-size:12.7px!important}
.sts-tabs a{font-size:13.7px!important}
.sts-section-title,.sts-news-title{font-size:15.7px!important}
.sts-news-desc{font-size:11.7px!important}
.sts-news-meta{font-size:10.7px!important}
.sts-profile-bio{font-size:14.7px!important}
.sts-profile-handle,.sts-profile-website{font-size:13.7px!important}
.sts-profile-stats a,.sts-profile-tabs a{font-size:12.7px!important}
.sts-chat-title{font-size:12.7px!important}
.sts-chat-last{font-size:11.7px!important}
.sts-msg-content{font-size:13.7px!important}
.sts-reddit-thread .sts-reply-body{font-size:14.7px!important}
.sts-reply-author{font-size:14.2px!important}

/* Post action menus must float over neighbouring short posts. content-visibility adds paint containment,
   so temporarily opt the open card out of it instead of sacrificing feed performance everywhere. */
.sts-post-card{overflow:visible!important}
.sts-post-head,.sts-post-head-main,.sts-post-author-row,.sts-more,.sts-repost-menu{overflow:visible!important}
.sts-post-card.sts-menu-open{content-visibility:visible!important;contain:none!important;position:relative!important;z-index:2147481200!important;overflow:visible!important}
@supports selector(.sts-post-card:has(.sts-more[open])){
  .sts-post-card:has(.sts-more[open]),.sts-post-card:has(.sts-repost-menu[open]){content-visibility:visible!important;contain:none!important;position:relative!important;z-index:2147481200!important;overflow:visible!important}
}
.sts-more[open],.sts-repost-menu[open]{position:relative!important;z-index:2147481300!important}
.sts-more-menu,.sts-repost-options{z-index:2147481400!important;min-width:164px!important;padding:6px!important;border-radius:13px!important;box-shadow:0 16px 42px rgba(0,0,0,.42)!important;overflow:visible!important}
.sts-more-menu .sts-platform-menu-action,.sts-more-menu a,.sts-repost-options a{min-height:34px!important;display:flex!important;align-items:center!important;width:100%!important;box-sizing:border-box!important;border-radius:9px!important;padding:8px 10px!important;font-size:11.7px!important;line-height:1.2!important}
.sts-more-menu .sts-platform-menu-action.is-active{background:rgba(77,154,219,.12)!important;color:#8fc9ff!important}
.sts-more-menu .sts-block-action,.sts-more-menu .sts-report-action{color:#ff9696!important}
html[data-sts-theme="light"] .sts-more-menu .sts-platform-menu-action{color:#18324a!important}
html[data-sts-theme="light"] .sts-more-menu .sts-platform-menu-action:hover{background:#eef3f8!important}
html[data-sts-theme="light"] .sts-more-menu .sts-platform-menu-action.is-active{background:#e8f3fd!important;color:#125f9c!important}
html[data-sts-theme="light"] .sts-more-menu .sts-block-action,
html[data-sts-theme="light"] .sts-more-menu .sts-report-action{color:#b72f3a!important}

/* Conversation tree: no long cables. Root replies remain feed rows; nested replies become compact mini-cards
   with a shallow indent, so deep threads stay readable without eating half the screen. */
.sts-thread-tree .sts-reply-children,
.sts-thread-tree .sts-reply-children .sts-reply-children{position:relative!important;margin:5px 0 0 14px!important;padding-left:0!important;border-left:0!important}
.sts-thread-tree .sts-reply-children .sts-reply-children{margin-left:7px!important}
.sts-thread-tree .sts-reply-children::before,
.sts-thread-tree .sts-reply-children>.sts-reply::before,
.sts-thread-tree .sts-reply-children>.sts-reply::after,
.sts-thread-tree .sts-reply-has-children>.sts-reply-head::after{display:none!important;content:none!important}
.sts-thread-tree .sts-reply-children>.sts-reply{margin:5px 0 0!important;padding:8px 9px 7px!important;border:1px solid rgba(124,151,178,.18)!important;border-radius:12px!important;background:var(--sts-panel,#0b1a2d)!important;box-shadow:none!important}
.sts-thread-tree .sts-reply-children>.sts-reply:target{padding-left:9px!important;border-color:rgba(84,155,218,.50)!important;background:var(--sts-panel2,#0f2137)!important}
.sts-reply-nested .sts-reply-avatar{width:29px!important;height:29px!important}
.sts-reply-nested .sts-reply-body{margin:3px 0 0 37px!important;line-height:1.36!important}
.sts-reply-nested .sts-reply-actions{margin:5px 0 0 37px!important;gap:13px!important}
.sts-reply-nested .sts-reply-edit-form{margin-left:37px!important}
.sts-reply-thread-toggle{margin:6px 0 2px 42px!important;padding:5px 9px!important;border:1px solid rgba(116,153,188,.22)!important;border-radius:999px!important;background:rgba(93,141,183,.08)!important;color:#8fc8f4!important;font-size:10.7px!important}
html[data-sts-theme="light"] .sts-thread-tree .sts-reply-children>.sts-reply{background:#f8fafc!important;border-color:#dfe7ee!important}
html[data-sts-theme="light"] .sts-thread-tree .sts-reply-children>.sts-reply:target{background:#eef6fd!important;border-color:#b8d5ea!important}
html[data-sts-theme="light"] .sts-reply-thread-toggle{background:#eef6fc!important;border-color:#d4e4f0!important;color:#176db3!important}

/* Keep the report sheet and safety controls above every feed card. */
.sts-report-modal{z-index:2147483600!important}

@media(max-width:600px){
  .sts-post-author{font-size:14.7px!important}
  .sts-post-body{font-size:15.7px!important}
  .sts-news-title{font-size:15.7px!important}
  .sts-more-menu,.sts-repost-options{min-width:158px!important}
  .sts-thread-tree .sts-reply-children{margin-left:10px!important}
  .sts-thread-tree .sts-reply-children .sts-reply-children{margin-left:5px!important}
  .sts-thread-tree .sts-reply-children>.sts-reply{padding:7px 8px 6px!important;border-radius:11px!important}
  .sts-reply-nested .sts-reply-avatar{width:27px!important;height:27px!important}
  .sts-reply-nested .sts-reply-body,.sts-reply-nested .sts-reply-actions,.sts-reply-nested .sts-reply-edit-form{margin-left:34px!important}
}


/* v0.15.2 — keep the mobile Post button reachable by collapsing secondary composer controls. */
.sts-compose-tools{gap:8px}.sts-compose-extras{min-width:0;display:flex!important;align-items:center!important;gap:8px!important}.sts-compose-options{position:relative;flex:0 0 auto}.sts-compose-options>summary{list-style:none;display:inline-flex;align-items:center;justify-content:center;min-height:34px;padding:6px 10px;border:1px solid var(--sts-line,#29435f);border-radius:999px;color:var(--sts-muted,#8da0b5);font-size:10px;font-weight:900;cursor:pointer;-webkit-tap-highlight-color:transparent}.sts-compose-options>summary::-webkit-details-marker{display:none}.sts-compose-options[open]>summary{background:var(--sts-panel2,#10243b);color:var(--sts-text,#edf3f8)}.sts-compose-options-menu{position:absolute;left:0;bottom:calc(100% + 7px);z-index:2147483400;width:min(280px,calc(100vw - 28px));display:grid;gap:8px;padding:9px;border:1px solid var(--sts-line,#29435f);border-radius:14px;background:var(--sts-panel,#0b1a2d);box-shadow:0 18px 45px rgba(0,0,0,.35)}.sts-compose-options-menu .sts-poll-toggle{justify-self:start;padding:7px 9px!important;border:1px solid var(--sts-line,#29435f)!important;border-radius:999px!important;background:var(--sts-panel2,#10243b)!important}.sts-compose-options-menu .sts-topic-picker,.sts-compose-options-menu .sts-country-picker{display:grid!important;grid-template-columns:72px minmax(0,1fr)!important;align-items:center!important;gap:7px!important;max-width:none!important}.sts-compose-options-menu .sts-topic-picker select,.sts-compose-options-menu .sts-country-picker select{width:100%!important;max-width:none!important}.sts-compose-tools>.sts-submit{flex:0 0 auto!important;margin-left:auto!important;position:relative;z-index:2}
html[data-sts-theme=light] .sts-compose-options>summary{border-color:#cbd8e3;color:#5f7487}html[data-sts-theme=light] .sts-compose-options[open]>summary,html[data-sts-theme=light] .sts-compose-options-menu{background:#fff;color:#071426;border-color:#d4dee7}html[data-sts-theme=light] .sts-compose-options-menu .sts-poll-toggle{background:#eef3f7!important;border-color:#d4dee7!important;color:#176da8!important}
@media(max-width:600px){.sts-compose-tools{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:7px!important;flex-wrap:nowrap!important}.sts-compose-extras{flex:1 1 auto!important;min-width:0!important;overflow:visible!important}.sts-compose-options>summary{min-height:32px;padding:5px 9px}.sts-compose-tools>.sts-submit{display:inline-flex!important;align-items:center!important;justify-content:center!important;min-width:64px!important;padding:8px 14px!important}.sts-compose-options-menu{left:0;right:auto}}

/* v0.15.6 — immediate touch feedback with no blocking page loader. */
a,button,[role="button"],input[type="submit"]{touch-action:manipulation}.sts-tap-pending{transform:scale(.985);filter:brightness(1.08)}.sts-account-switch-form button:disabled{cursor:wait;opacity:.72}.sts-account-switch-form button:disabled img{opacity:.78}
@media(prefers-reduced-motion:reduce){.sts-tap-pending{transform:none}}
