/* Feed/profile theme consistency pass. Loaded last so older polish files cannot repaint controls out of theme. */
body.home-feed-page,
body.profile-page {
  --feed-theme-surface: color-mix(in srgb, var(--card, #fff) 94%, var(--bg, #f0f2f5));
  --feed-theme-subtle: color-mix(in srgb, var(--bg, #f0f2f5) 78%, var(--card, #fff));
  --feed-theme-muted-surface: color-mix(in srgb, var(--muted, #65676b) 11%, var(--card, #fff));
  --feed-theme-soft-accent: color-mix(in srgb, var(--accent, #1877f2) 13%, var(--card, #fff));
  --feed-theme-shadow: 0px 1px 3px rgb(3 3 3 / 15%);
}

html[data-theme="dark"] body.home-feed-page,
html[data-theme="dark"] body.profile-page,
html[data-theme="lavender_night"] body.home-feed-page,
html[data-theme="lavender_night"] body.profile-page,
html[data-theme="midnight_slate"] body.home-feed-page,
html[data-theme="midnight_slate"] body.profile-page,
html[data-theme="high_contrast"] body.home-feed-page,
html[data-theme="high_contrast"] body.profile-page {
  --feed-theme-shadow: 0 16px 34px rgba(0, 0, 0, .26);
}

body.home-feed-page .post-card:not(.has-card-wallpaper),
body.home-feed-page .card.post-card:not(.has-card-wallpaper),
body.home-feed-page [data-post-card]:not(.has-card-wallpaper),
body.profile-page #profile-feed .post-card:not(.has-card-wallpaper),
body.profile-page #profile-feed [data-post-card]:not(.has-card-wallpaper),
body.profile-page .profile-feed-list .post-card:not(.has-card-wallpaper),
body.profile-page .profile-feed-list [data-post-card]:not(.has-card-wallpaper),
body.home-feed-page .composer-launcher-card,
body.profile-page .composer-launcher-card,
body.home-feed-page .feed-reels-tabs-card,
body.profile-page .profile-feed-main-toolbar,
body.profile-page .profile-section-tabs-card,
body.profile-page .profile-tabs-card {
  background: var(--feed-theme-surface) !important;
  color: var(--text, #1c1e21) !important;
  border-color: var(--line, #d9dde3) !important;
  box-shadow: var(--feed-theme-shadow) !important;
}

body.home-feed-page .feed-toolbar-card,
body.profile-page .feed-toolbar-card {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

body.home-feed-page .feed-toolbar-card.feed-toolbar-card {
  margin: 2px 0 18px !important;
  padding: 9px !important;
  border: 1px solid color-mix(in srgb, var(--line, #d9dde3) 74%, transparent) !important;
  border-radius: 24px !important;
  background:
    linear-gradient(135deg,
      color-mix(in srgb, var(--card, #fff) 82%, transparent),
      color-mix(in srgb, var(--feed-theme-soft-accent, #e8f1ff) 72%, transparent)) !important;
  box-shadow: 0 18px 44px color-mix(in srgb, var(--text, #0f172a) 9%, transparent) !important;
  backdrop-filter: blur(14px) !important;
  -webkit-backdrop-filter: blur(14px) !important;
}

body.home-feed-page .feed-toolbar-card .feed-toolbar-row {
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 10px !important;
}

body.home-feed-page .feed-toolbar-card .feed-filter-dropdowns {
  flex: 0 1 auto !important;
  width: auto !important;
  max-width: 100% !important;
  padding: 6px !important;
  border: 1px solid color-mix(in srgb, var(--line, #d9dde3) 68%, transparent) !important;
  border-radius: 19px !important;
  background: color-mix(in srgb, var(--card, #fff) 76%, var(--bg, #f0f2f5)) !important;
  box-shadow: inset 0 1px 0 color-mix(in srgb, #fff 72%, transparent) !important;
}

body.home-feed-page .feed-toolbar-card .feed-filter-select-wrap {
  min-width: 0 !important;
  flex: 0 1 214px !important;
}

body.home-feed-page .feed-toolbar-card .feed-filter-select-wrap select {
  min-height: 40px !important;
  border-radius: 14px !important;
  background: color-mix(in srgb, var(--card, #fff) 92%, var(--bg, #f0f2f5)) !important;
  color: var(--text, #1c1e21) !important;
  border-color: color-mix(in srgb, var(--line, #d9dde3) 86%, transparent) !important;
  box-shadow: 0 8px 18px color-mix(in srgb, var(--text, #0f172a) 7%, transparent) !important;
  font-size: 14px !important;
  font-style: normal !important;
}

body.home-feed-page .feed-toolbar-card .feed-filter-select-wrap:after {
  color: color-mix(in srgb, var(--accent, #1877f2) 72%, var(--text, #1c1e21)) !important;
}

body.profile-page .profile-tabs-card.profile-tabs-toolbar-card.profile-feed-main-toolbar,
body.profile-page .profile-feed-main-toolbar .profile-tabs-toolbar.feed-toolbar-row {
  background: transparent !important;
  border-color: transparent !important;
  box-shadow: none !important;
}

body.home-feed-page .feed-reels-tabs-single {
  justify-content: flex-end !important;
}

body.home-feed-page .feed-reels-tabs-single .feed-reels-nav-link {
  min-width: min(100%, 190px) !important;
  text-align: center !important;
}

body.home-feed-page .feed-mode-btn,
body.home-feed-page .feed-sort-tabs button,
body.home-feed-page .feed-sort-tabs a,
body.profile-page .feed-mode-btn,
body.profile-page .feed-sort-tabs button,
body.profile-page .feed-sort-tabs a,
body.profile-page .profile-tab,
body.profile-page .profile-action-chip.share-count-chip,
body.profile-page .profile-header-message-btn {
  background: var(--feed-theme-subtle) !important;
  color: var(--text, #1c1e21) !important;
  border: 1px solid var(--line, #d9dde3) !important;
  box-shadow: 0 6px 16px rgba(15, 23, 42, .06) !important;
}

body.home-feed-page .feed-mode-btn.is-active,
body.home-feed-page .feed-sort-tabs button.is-active,
body.home-feed-page .feed-sort-tabs a.is-active,
body.profile-page .feed-mode-btn.is-active,
body.profile-page .feed-sort-tabs button.is-active,
body.profile-page .feed-sort-tabs a.is-active,
body.profile-page .profile-tab.is-active,
body.home-feed-page .composer-launch-btn,
body.profile-page .composer-launch-btn,
body.profile-page .profile-action-chip.follow-btn {
  background: var(--accent, #1877f2) !important;
  color: #fff !important;
  border-color: var(--accent, #1877f2) !important;
}

html[data-theme="high_contrast"] body.home-feed-page .feed-mode-btn.is-active,
html[data-theme="high_contrast"] body.home-feed-page .feed-sort-tabs button.is-active,
html[data-theme="high_contrast"] body.home-feed-page .feed-sort-tabs a.is-active,
html[data-theme="high_contrast"] body.profile-page .feed-mode-btn.is-active,
html[data-theme="high_contrast"] body.profile-page .feed-sort-tabs button.is-active,
html[data-theme="high_contrast"] body.profile-page .feed-sort-tabs a.is-active,
html[data-theme="high_contrast"] body.profile-page .profile-tab.is-active,
html[data-theme="high_contrast"] body.home-feed-page .composer-launch-btn,
html[data-theme="high_contrast"] body.profile-page .composer-launch-btn,
html[data-theme="high_contrast"] body.profile-page .profile-action-chip.follow-btn {
  color: #000 !important;
}

body.home-feed-page .feed-left-nav-card,
body.home-feed-page .feed-rail-box,
body.home-feed-page .admin-sidebar-block,
body.home-feed-page .admin-feed-block,
body.profile-page .admin-sidebar-block,
body.profile-page .admin-feed-block,
body.home-feed-page .feed-mini-user-row,
body.home-feed-page .feed-mini-post-row,
body.home-feed-page .feed-admin-shortcut-row {
  background: var(--feed-theme-surface) !important;
  color: var(--text, #1c1e21) !important;
  border-color: var(--line, #d9dde3) !important;
  box-shadow: var(--feed-theme-shadow) !important;
}

body.home-feed-page .feed-left-nav-link,
body.home-feed-page .feed-right-links a,
body.home-feed-page .admin-sidebar-button,
body.home-feed-page .admin-sidebar-link-card,
body.profile-page .admin-sidebar-button,
body.profile-page .admin-sidebar-link-card {
  background: var(--feed-theme-soft-accent) !important;
  color: var(--text, #1c1e21) !important;
  border-color: var(--line, #d9dde3) !important;
}

body.home-feed-page .feed-left-nav-link:hover,
body.home-feed-page .feed-left-nav-link.is-active,
body.home-feed-page .feed-right-links a:hover {
  background: color-mix(in srgb, var(--accent, #1877f2) 18%, var(--card, #fff)) !important;
  color: var(--accent, #1877f2) !important;
}

body.home-feed-page .admin-sidebar-block h3,
body.home-feed-page .admin-block-title-row h3,
body.profile-page .admin-sidebar-block h3,
body.profile-page .admin-block-title-row h3,
body.home-feed-page .feed-rail-box-head h3,
body.home-feed-page .feed-mini-user-meta strong,
body.home-feed-page .feed-mini-post-row strong,
body.home-feed-page .feed-admin-shortcut-copy strong {
  color: var(--text, #1c1e21) !important;
}

body.home-feed-page .admin-sidebar-block p,
body.home-feed-page .admin-block-line-separator,
body.profile-page .admin-sidebar-block p,
body.profile-page .admin-block-line-separator,
body.home-feed-page .feed-mini-user-meta small,
body.home-feed-page .feed-mini-post-row span,
body.home-feed-page .feed-rail-empty,
body.home-feed-page .feed-rail-placeholder-copy,
body.home-feed-page .feed-right-hero-copy,
body.home-feed-page .feed-admin-shortcut-copy small {
  color: var(--muted, #65676b) !important;
}

body.home-feed-page .admin-block-icon,
body.profile-page .admin-block-icon {
  background: var(--accent, #1877f2) !important;
  color: #fff !important;
  box-shadow: 0 10px 22px color-mix(in srgb, var(--accent, #1877f2) 24%, transparent) !important;
}

body.home-feed-page .admin-block-line-separator > i,
body.profile-page .admin-block-line-separator > i,
body.home-feed-page .admin-block-line-separator:before,
body.home-feed-page .admin-block-line-separator:after,
body.profile-page .admin-block-line-separator:before,
body.profile-page .admin-block-line-separator:after {
  background: linear-gradient(90deg, transparent, var(--line, #d9dde3), transparent) !important;
}

body.home-feed-page .post-engagement-row,
body.profile-page .post-engagement-row,
body.home-feed-page .post-ucl-reaction-bar,
body.profile-page .post-ucl-reaction-bar {
  border-color: var(--line, #d9dde3) !important;
}

body.home-feed-page .platform-reaction-main,
body.profile-page .platform-reaction-main,
body.home-feed-page .post-feed-ucl-like,
body.profile-page .post-feed-ucl-like,
body.home-feed-page .post-comment-count-btn,
body.home-feed-page .post-comment-bubble-btn,
body.profile-page .post-comment-count-btn,
body.profile-page .post-comment-bubble-btn,
body.home-feed-page .post-share-inline-btn,
body.profile-page .post-share-inline-btn,
body.home-feed-page .comment-toggle-btn,
body.profile-page .comment-toggle-btn,
body.home-feed-page .post-admin-options-toggle,
body.profile-page .post-admin-options-toggle,
body.home-feed-page .post-delete-corner,
body.profile-page .post-delete-corner {
  background: var(--feed-theme-subtle) !important;
  color: var(--text, #1c1e21) !important;
  border: 0 !important;
  box-shadow: 0 6px 16px rgba(15, 23, 42, .07) !important;
}

body.home-feed-page .post-comment-count-btn,
body.profile-page .post-comment-count-btn {
  min-height: 28px !important;
  min-width: 92px !important;
  padding: 5px 10px !important;
  font-size: 12px !important;
  line-height: 1 !important;
  font-weight: 600 !important;
}

body.home-feed-page .platform-reaction-root.has-reaction .platform-reaction-main,
body.profile-page .platform-reaction-root.has-reaction .platform-reaction-main,
body.home-feed-page .platform-reaction-main.is-active,
body.profile-page .platform-reaction-main.is-active,
body.home-feed-page .post-feed-ucl-like.is-active,
body.profile-page .post-feed-ucl-like.is-active,
body.home-feed-page .post-ucl-reaction-bar.has-user-reaction .post-feed-ucl-like,
body.profile-page .post-ucl-reaction-bar.has-user-reaction .post-feed-ucl-like {
  background: var(--feed-theme-soft-accent) !important;
  color: var(--accent, #1877f2) !important;
}

body.home-feed-page .platform-reaction-flyout,
body.home-feed-page .platform-reaction-global-flyout,
body.profile-page .platform-reaction-flyout,
body.profile-page .platform-reaction-global-flyout,
body.home-feed-page .ucl-reaction-flyout,
body.profile-page .ucl-reaction-flyout {
  background: var(--card, #fff) !important;
  color: var(--text, #1c1e21) !important;
  border-color: var(--line, #d9dde3) !important;
}

body.home-feed-page .platform-reaction-global-flyout .platform-reaction-close,
body.profile-page .platform-reaction-global-flyout .platform-reaction-close,
body.home-feed-page .ucl-emoji-close,
body.profile-page .ucl-emoji-close,
body.home-feed-page .ucl-composer .ucl-emoji-btn,
body.profile-page .ucl-composer .ucl-emoji-btn,
body.home-feed-page .ucl-composer .ucl-upload-btn,
body.profile-page .ucl-composer .ucl-upload-btn {
  background: var(--feed-theme-subtle) !important;
  color: var(--text, #1c1e21) !important;
  border-color: var(--line, #d9dde3) !important;
}

body.home-feed-page .post-top-comment,
body.profile-page .post-top-comment,
body.home-feed-page .shared-post-preview,
body.profile-page .shared-post-preview,
body.home-feed-page .shared-profile-card,
body.profile-page .shared-profile-card,
body.home-feed-page .shared-content-card,
body.profile-page .shared-content-card,
body.home-feed-page .post-oembed-link-card,
body.profile-page .post-oembed-link-card,
body.home-feed-page .post-oembed-fallback,
body.profile-page .post-oembed-fallback {
  background: var(--feed-theme-subtle) !important;
  color: var(--text, #1c1e21) !important;
  border-color: var(--line, #d9dde3) !important;
}

body.home-feed-page .post-top-comment-kicker,
body.home-feed-page .post-top-comment-body em,
body.profile-page .post-top-comment-kicker,
body.profile-page .post-top-comment-body em,
body.home-feed-page .shared-content-copy p,
body.home-feed-page .shared-content-copy span,
body.profile-page .shared-content-copy p,
body.profile-page .shared-content-copy span {
  color: var(--muted, #65676b) !important;
}

body.home-feed-page .shared-content-kicker,
body.profile-page .shared-content-kicker,
body.home-feed-page .post-oembed-fallback a,
body.profile-page .post-oembed-fallback a {
  color: var(--accent, #1877f2) !important;
}

body.home-feed-page .post-comment-users-panel,
body.profile-page .post-comment-users-panel,
body.home-feed-page .reaction-users-panel,
body.profile-page .reaction-users-panel {
  background: var(--card, #fff) !important;
  color: var(--text, #1c1e21) !important;
  border: 1px solid var(--line, #d9dde3) !important;
}

body.home-feed-page .post-comment-users-panel header,
body.profile-page .post-comment-users-panel header,
body.home-feed-page .reaction-users-panel header,
body.profile-page .reaction-users-panel header,
body.home-feed-page .reaction-users-tabs,
body.profile-page .reaction-users-tabs {
  background: var(--feed-theme-surface) !important;
  border-color: var(--line, #d9dde3) !important;
}

body.home-feed-page .post-comment-users-panel header p,
body.profile-page .post-comment-users-panel header p,
body.home-feed-page .post-comment-user-row small,
body.profile-page .post-comment-user-row small,
body.home-feed-page .post-comment-users-empty,
body.profile-page .post-comment-users-empty,
body.home-feed-page .reaction-users-panel header p,
body.profile-page .reaction-users-panel header p,
body.home-feed-page .reaction-user-row small,
body.profile-page .reaction-user-row small,
body.home-feed-page .reaction-users-empty,
body.profile-page .reaction-users-empty {
  color: var(--muted, #65676b) !important;
}

body.home-feed-page .post-comment-user-row,
body.profile-page .post-comment-user-row,
body.home-feed-page .reaction-user-row,
body.profile-page .reaction-user-row,
body.home-feed-page .reaction-users-tabs button {
  background: var(--feed-theme-subtle) !important;
  color: var(--text, #1c1e21) !important;
}

body.home-feed-page .reaction-users-tabs button.is-active,
body.profile-page .reaction-users-tabs button.is-active,
body.home-feed-page .post-comment-users-load-more,
body.profile-page .post-comment-users-load-more {
  background: var(--accent, #1877f2) !important;
  color: #fff !important;
}

body.home-feed-page .ucl-side,
body.profile-page .ucl-side,
body.home-feed-page .ucl-composer,
body.profile-page .ucl-composer {
  background: var(--card, #fff) !important;
  color: var(--text, #1c1e21) !important;
  border-color: var(--line, #d9dde3) !important;
}

body.home-feed-page .ucl-side-head p,
body.profile-page .ucl-side-head p,
body.home-feed-page .ucl-comment-date,
body.profile-page .ucl-comment-date,
body.home-feed-page .ucl-loader,
body.profile-page .ucl-loader,
body.home-feed-page .ucl-reaction-empty,
body.profile-page .ucl-reaction-empty {
  color: var(--muted, #65676b) !important;
}

body.home-feed-page .ucl-comment-bubble,
body.profile-page .ucl-comment-bubble,
body.home-feed-page .ucl-reaction-chip,
body.profile-page .ucl-reaction-chip,
body.home-feed-page .ucl-empty,
body.profile-page .ucl-empty {
  background: var(--feed-theme-subtle) !important;
  color: var(--text, #1c1e21) !important;
  border-color: var(--line, #d9dde3) !important;
}

body.home-feed-page .ucl-comment-head a,
body.profile-page .ucl-comment-head a,
body.home-feed-page .ucl-comment-text,
body.profile-page .ucl-comment-text {
  color: var(--text, #1c1e21) !important;
}

body.home-feed-page .ucl-composer textarea,
body.home-feed-page .ucl-reply-form textarea,
body.profile-page .ucl-composer textarea,
body.profile-page .ucl-reply-form textarea,
body.home-feed-page .composer-oembed-field input,
body.profile-page .composer-oembed-field input,
body.home-feed-page .post-edit-form textarea,
body.profile-page .post-edit-form textarea,
body.home-feed-page .post-edit-label select,
body.profile-page .post-edit-label select {
  background: var(--feed-theme-subtle) !important;
  color: var(--text, #1c1e21) !important;
  border-color: var(--line, #d9dde3) !important;
}

body.home-feed-page .ucl-composer button,
body.home-feed-page .ucl-reply-form button[type="submit"],
body.profile-page .ucl-composer button,
body.profile-page .ucl-reply-form button[type="submit"],
body.home-feed-page .ucl-like-btn,
body.profile-page .ucl-like-btn {
  background: var(--accent, #1877f2) !important;
  color: #fff !important;
}

body.home-feed-page .post-edit-dialog,
body.profile-page .post-edit-dialog,
body.home-feed-page .post-edit-form,
body.profile-page .post-edit-form,
body.home-feed-page .post-edit-bg-picker,
body.home-feed-page .edit-mode-controls,
body.profile-page .post-edit-bg-picker,
body.profile-page .edit-mode-controls,
body.home-feed-page .post-edit-media-preview,
body.home-feed-page .post-edit-new-preview,
body.profile-page .post-edit-media-preview,
body.profile-page .post-edit-new-preview {
  background: var(--card, #fff) !important;
  color: var(--text, #1c1e21) !important;
  border-color: var(--line, #d9dde3) !important;
}

body.home-feed-page .post-edit-head,
body.profile-page .post-edit-head {
  background: var(--feed-theme-surface) !important;
  border-color: var(--line, #d9dde3) !important;
}

body.home-feed-page .post-edit-head p,
body.profile-page .post-edit-head p,
body.home-feed-page .post-edit-bg-title span,
body.home-feed-page .edit-mode-controls p,
body.profile-page .post-edit-bg-title span,
body.profile-page .edit-mode-controls p,
body.home-feed-page .post-edit-media-preview span,
body.profile-page .post-edit-media-preview span {
  color: var(--muted, #65676b) !important;
}

body.home-feed-page .post-poll-wrap .poll-card,
body.profile-page .post-poll-wrap .poll-card {
  background: transparent !important;
  color: var(--text, #1c1e21) !important;
  box-shadow: none !important;
}

body.home-feed-page .post-poll-wrap .poll-description,
body.home-feed-page .post-poll-wrap .poll-meta-row,
body.profile-page .post-poll-wrap .poll-description,
body.profile-page .post-poll-wrap .poll-meta-row {
  color: var(--muted, #65676b) !important;
}

body.home-feed-page .post-poll-wrap .poll-option,
body.home-feed-page .post-poll-wrap .poll-option-text,
body.home-feed-page .post-poll-wrap .poll-option-count,
body.profile-page .post-poll-wrap .poll-option,
body.profile-page .post-poll-wrap .poll-option-text,
body.profile-page .post-poll-wrap .poll-option-count {
  color: var(--text, #1c1e21) !important;
}

body.home-feed-page .post-poll-wrap .poll-option input,
body.profile-page .post-poll-wrap .poll-option input {
  background: var(--card, #fff) !important;
  border-color: color-mix(in srgb, var(--muted, #65676b) 52%, var(--line, #d9dde3)) !important;
  box-shadow: 0 0 0 0 rgba(24, 119, 242, 0) !important;
}

body.home-feed-page .post-poll-wrap .poll-option.is-selected input,
body.home-feed-page .post-poll-wrap .poll-option input:checked,
body.profile-page .post-poll-wrap .poll-option.is-selected input,
body.profile-page .post-poll-wrap .poll-option input:checked {
  background: radial-gradient(circle at center, var(--accent, #1877f2) 0 42%, var(--card, #fff) 45% 100%) !important;
  border-color: var(--accent, #1877f2) !important;
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent, #1877f2) 14%, transparent) !important;
}

body.home-feed-page .post-poll-wrap .poll-result-bar,
body.profile-page .post-poll-wrap .poll-result-bar {
  background: color-mix(in srgb, var(--accent, #1877f2) 13%, var(--line, #d9dde3)) !important;
}

body.home-feed-page .post-poll-wrap .poll-result-bar b,
body.profile-page .post-poll-wrap .poll-result-bar b {
  background: var(--accent, #1877f2) !important;
}

body.home-feed-page .feed-phase12-retry-card,
body.profile-page .feed-phase12-retry-card,
body.home-feed-page .feed-phase5-resume-pill,
body.profile-page .feed-phase5-resume-pill {
  background: var(--card, #fff) !important;
  color: var(--text, #1c1e21) !important;
  border-color: var(--line, #d9dde3) !important;
}

body.home-feed-page .feed-phase12-retry-copy span,
body.profile-page .feed-phase12-retry-copy span {
  color: var(--muted, #65676b) !important;
}

body.home-feed-page .feed-new-posts-notice,
body.profile-page .feed-new-posts-notice,
body.home-feed-page .feed-phase12-retry-card button,
body.profile-page .feed-phase12-retry-card button {
  background: var(--accent, #1877f2) !important;
  color: #fff !important;
}

body.home-feed-page .feed-phase12-offline-pill,
body.profile-page .feed-phase12-offline-pill {
  background: color-mix(in srgb, #f59e0b 14%, var(--card, #fff)) !important;
  color: var(--text, #1c1e21) !important;
  border-color: color-mix(in srgb, #f59e0b 35%, var(--line, #d9dde3)) !important;
}

/* Dark theme guard for older profile/feed modules that still shipped fixed light colors. */
:is(html[data-theme="dark"], html[data-theme="lavender_night"], html[data-theme="midnight_slate"], html[data-theme="high_contrast"]) body.home-feed-page,
:is(html[data-theme="dark"], html[data-theme="lavender_night"], html[data-theme="midnight_slate"], html[data-theme="high_contrast"]) body.profile-page {
  --feed-theme-deep-shadow: 0 18px 44px rgba(0, 0, 0, .34);
  --feed-theme-danger-surface: color-mix(in srgb, #ef4444 18%, var(--card, #111827));
  --feed-theme-danger-text: color-mix(in srgb, #fecaca 80%, var(--text, #f8fafc));
}

:is(html[data-theme="dark"], html[data-theme="lavender_night"], html[data-theme="midnight_slate"], html[data-theme="high_contrast"]) body.home-feed-page :where(.post-card, [data-post-card], .post-poll-wrap) .poll-card,
:is(html[data-theme="dark"], html[data-theme="lavender_night"], html[data-theme="midnight_slate"], html[data-theme="high_contrast"]) body.profile-page :where(.post-card, [data-post-card], .post-poll-wrap) .poll-card {
  background: transparent !important;
  color: var(--text, #f8fafc) !important;
}

:is(html[data-theme="dark"], html[data-theme="lavender_night"], html[data-theme="midnight_slate"], html[data-theme="high_contrast"]) body.home-feed-page :where(.post-card, [data-post-card], .post-poll-wrap) .poll-card :where(h2, h2 a, .poll-option, .poll-option-text, .poll-option-count, .poll-inline-status),
:is(html[data-theme="dark"], html[data-theme="lavender_night"], html[data-theme="midnight_slate"], html[data-theme="high_contrast"]) body.profile-page :where(.post-card, [data-post-card], .post-poll-wrap) .poll-card :where(h2, h2 a, .poll-option, .poll-option-text, .poll-option-count, .poll-inline-status) {
  color: var(--text, #f8fafc) !important;
}

:is(html[data-theme="dark"], html[data-theme="lavender_night"], html[data-theme="midnight_slate"], html[data-theme="high_contrast"]) body.home-feed-page :where(.post-card, [data-post-card], .post-poll-wrap) .poll-card :where(.poll-description, .poll-meta-row, .poll-meta-row span),
:is(html[data-theme="dark"], html[data-theme="lavender_night"], html[data-theme="midnight_slate"], html[data-theme="high_contrast"]) body.profile-page :where(.post-card, [data-post-card], .post-poll-wrap) .poll-card :where(.poll-description, .poll-meta-row, .poll-meta-row span) {
  color: var(--muted, #aab6c7) !important;
}

:is(html[data-theme="dark"], html[data-theme="lavender_night"], html[data-theme="midnight_slate"], html[data-theme="high_contrast"]) body.home-feed-page :where(.post-card, [data-post-card], .post-poll-wrap) .poll-card .poll-meta-row a,
:is(html[data-theme="dark"], html[data-theme="lavender_night"], html[data-theme="midnight_slate"], html[data-theme="high_contrast"]) body.profile-page :where(.post-card, [data-post-card], .post-poll-wrap) .poll-card .poll-meta-row a {
  color: var(--accent, #60a5fa) !important;
}

:is(html[data-theme="dark"], html[data-theme="lavender_night"], html[data-theme="midnight_slate"], html[data-theme="high_contrast"]) body.home-feed-page :where(.post-card, [data-post-card], .post-poll-wrap) .poll-card .poll-result-bar,
:is(html[data-theme="dark"], html[data-theme="lavender_night"], html[data-theme="midnight_slate"], html[data-theme="high_contrast"]) body.profile-page :where(.post-card, [data-post-card], .post-poll-wrap) .poll-card .poll-result-bar {
  background: color-mix(in srgb, var(--muted, #aab6c7) 32%, var(--card, #111827)) !important;
}

:is(html[data-theme="dark"], html[data-theme="lavender_night"], html[data-theme="midnight_slate"], html[data-theme="high_contrast"]) body.home-feed-page :where(.post-card, [data-post-card], .post-poll-wrap) .poll-card :where(.poll-open-btn, .poll-vote-btn, .poll-share-btn),
:is(html[data-theme="dark"], html[data-theme="lavender_night"], html[data-theme="midnight_slate"], html[data-theme="high_contrast"]) body.profile-page :where(.post-card, [data-post-card], .post-poll-wrap) .poll-card :where(.poll-open-btn, .poll-vote-btn, .poll-share-btn) {
  background: var(--accent, #60a5fa) !important;
  color: #fff !important;
  border-color: var(--accent, #60a5fa) !important;
}

:is(html[data-theme="high_contrast"]) body.home-feed-page :where(.post-card, [data-post-card], .post-poll-wrap) .poll-card :where(.poll-open-btn, .poll-vote-btn, .poll-share-btn),
:is(html[data-theme="high_contrast"]) body.profile-page :where(.post-card, [data-post-card], .post-poll-wrap) .poll-card :where(.poll-open-btn, .poll-vote-btn, .poll-share-btn) {
  color: #000 !important;
}

:is(html[data-theme="dark"], html[data-theme="lavender_night"], html[data-theme="midnight_slate"], html[data-theme="high_contrast"]) body.profile-page :where(
  .profile-action-rail-card.profile-action-strip-card,
  .profile-bio-story-stack .profile-highlights-rail,
  .profile-bio-story-stack .profile-highlights-rail-compact,
  .profile-sidebar-gallery,
  .profile-sidebar-friends-card,
  .profile-sidebar-gifts-card,
  .achievements-rail-card,
  .profile-owner-preview-sidecard,
  .profile-side-widget,
  .admin-sidebar-block,
  .admin-feed-block
) {
  background: var(--feed-theme-surface) !important;
  color: var(--text, #f8fafc) !important;
  border-color: var(--line, #334155) !important;
  box-shadow: var(--feed-theme-deep-shadow) !important;
}

:is(html[data-theme="dark"], html[data-theme="lavender_night"], html[data-theme="midnight_slate"], html[data-theme="high_contrast"]) body.profile-page :where(
  .profile-bio-story-stack .profile-highlights-story-line,
  .admin-sidebar-block .admin-block-title-row,
  .post-engagement-row,
  .post-ucl-reaction-bar
) {
  border-color: var(--line, #334155) !important;
}

:is(html[data-theme="dark"], html[data-theme="lavender_night"], html[data-theme="midnight_slate"], html[data-theme="high_contrast"]) body.profile-page :where(
  .profile-bio-story-stack .story-circle,
  .profile-bio-story-stack .story-empty-launch,
  .profile-bio-story-stack .story-add-mini,
  .profile-bio-story-stack .highlight-circle,
  .profile-bio-story-stack .highlight-add-mini,
  .profile-bio-story-stack .highlight-empty-launch,
  .profile-action-chip,
  .profile-sidebar-gallery-tile,
  .profile-sidebar-friend-avatar,
  .profile-side-slide,
  .profile-side-mini-grid a,
  .profile-side-image-grid,
  .profile-side-image,
  .profile-gift-tile,
  .review-list article,
  .achievement-sidebar-tile,
  .achievements-sidebar-empty,
  .profile-gifts-empty,
  .profile-side-empty,
  .profile-story-tools-menu,
  .profile-story-tools-menu button,
  .admin-sidebar-link-card,
  .admin-sidebar-button,
  .admin-sidebar-addon-placeholder,
  .admin-block-separator-inner,
  .profile-sidebar-visibility-toggle
) {
  background: var(--feed-theme-subtle) !important;
  color: var(--text, #f8fafc) !important;
  border-color: var(--line, #334155) !important;
  box-shadow: none !important;
}

:is(html[data-theme="dark"], html[data-theme="lavender_night"], html[data-theme="midnight_slate"], html[data-theme="high_contrast"]) body.profile-page :where(
  .profile-action-chip.follow-btn,
  .profile-action-chip.gift-send-open-btn,
  .profile-action-chip.profile-media-action-btn,
  .profile-action-chip.profile-action-chip-link,
  .profile-custom-marquee-manage-btn,
  .profile-story-tools-dropdown summary,
  .gift-send-open-btn,
  .point-shop-cta-btn,
  .achievements-sidebar-more-btn
) {
  background: var(--accent, #60a5fa) !important;
  color: #fff !important;
  border-color: var(--accent, #60a5fa) !important;
  box-shadow: 0 12px 26px color-mix(in srgb, var(--accent, #60a5fa) 24%, transparent) !important;
}

:is(html[data-theme="high_contrast"]) body.profile-page :where(
  .profile-action-chip.follow-btn,
  .profile-action-chip.gift-send-open-btn,
  .profile-action-chip.profile-media-action-btn,
  .profile-action-chip.profile-action-chip-link,
  .profile-custom-marquee-manage-btn,
  .profile-story-tools-dropdown summary,
  .gift-send-open-btn,
  .point-shop-cta-btn,
  .achievements-sidebar-more-btn
) {
  color: #000 !important;
}

:is(html[data-theme="dark"], html[data-theme="lavender_night"], html[data-theme="midnight_slate"], html[data-theme="high_contrast"]) body.profile-page .profile-action-chip.report-action-btn,
:is(html[data-theme="dark"], html[data-theme="lavender_night"], html[data-theme="midnight_slate"], html[data-theme="high_contrast"]) body.profile-page .profile-story-tools-menu button.is-danger {
  background: var(--feed-theme-danger-surface) !important;
  color: var(--feed-theme-danger-text) !important;
  border-color: color-mix(in srgb, #ef4444 40%, var(--line, #334155)) !important;
}

:is(html[data-theme="dark"], html[data-theme="lavender_night"], html[data-theme="midnight_slate"], html[data-theme="high_contrast"]) body.profile-page :where(
  .profile-sidebar-gallery-head h3,
  .profile-gifts-head h3,
  .achievements-rail-card h3,
  .review-widget h3,
  .admin-sidebar-block h3,
  .admin-block-title-row h3,
  .profile-gift-tile strong,
  .achievement-sidebar-name,
  .review-list article strong,
  .profile-side-slide strong,
  .profile-side-mini-grid span,
  .profile-bio-story-stack .story-circle span:last-child,
  .profile-bio-story-stack .story-empty-launch span:last-child,
  .profile-bio-story-stack .story-add-mini span:last-child,
  .profile-bio-story-stack .highlight-circle span,
  .profile-bio-story-stack .highlight-empty-launch span:last-child,
  .profile-bio-story-stack .highlight-add-mini span:last-child
) {
  color: var(--text, #f8fafc) !important;
}

:is(html[data-theme="dark"], html[data-theme="lavender_night"], html[data-theme="midnight_slate"], html[data-theme="high_contrast"]) body.profile-page :where(
  .profile-gifts-head p,
  .profile-gift-tile small,
  .profile-gift-tile em,
  .achievements-rail-meta,
  .achievements-sidebar-empty,
  .profile-gifts-empty,
  .profile-side-empty,
  .profile-side-slide small,
  .profile-side-feature small,
  .review-widget p,
  .review-list article small,
  .admin-sidebar-block p,
  .admin-sidebar-addon-placeholder small,
  .profile-owner-preview-sidecard p,
  .profile-bio-story-stack .highlight-meta
) {
  color: var(--muted, #aab6c7) !important;
}

:is(html[data-theme="dark"], html[data-theme="lavender_night"], html[data-theme="midnight_slate"], html[data-theme="high_contrast"]) body.profile-page :where(
  .profile-sidebar-gallery-grid,
  .achievement-sidebar-thumb,
  .profile-side-post-icon,
  .profile-side-large-icon,
  .gift-send-dialog,
  .gift-insufficient-dialog,
  .profile-social-dialog
) {
  background: var(--card, #111827) !important;
  color: var(--text, #f8fafc) !important;
  border-color: var(--line, #334155) !important;
}

:is(html[data-theme="dark"], html[data-theme="lavender_night"], html[data-theme="midnight_slate"], html[data-theme="high_contrast"]) body.profile-page :where(
  .profile-bio-story-stack .story-plus,
  .admin-block-icon
) {
  background: var(--text, #f8fafc) !important;
  color: var(--card, #111827) !important;
}

/* Final dark-theme overrides for older light-card modules with stronger selectors. */
:is(html[data-theme="dark"], html[data-theme="lavender_night"], html[data-theme="midnight_slate"], html[data-theme="high_contrast"]) body.home-feed-page .feed-rail-box .feed-mini-user-row,
:is(html[data-theme="dark"], html[data-theme="lavender_night"], html[data-theme="midnight_slate"], html[data-theme="high_contrast"]) body.home-feed-page .feed-rail-box .feed-mini-post-row,
:is(html[data-theme="dark"], html[data-theme="lavender_night"], html[data-theme="midnight_slate"], html[data-theme="high_contrast"]) body.home-feed-page .feed-rail-box .feed-website-card,
:is(html[data-theme="dark"], html[data-theme="lavender_night"], html[data-theme="midnight_slate"], html[data-theme="high_contrast"]) body.home-feed-page .feed-rail-box .feed-website-pair,
:is(html[data-theme="dark"], html[data-theme="lavender_night"], html[data-theme="midnight_slate"], html[data-theme="high_contrast"]) body.home-feed-page .reels-rail-box .reel-card-open,
:is(html[data-theme="dark"], html[data-theme="lavender_night"], html[data-theme="midnight_slate"], html[data-theme="high_contrast"]) body.home-feed-page .feed-tag-cloud .feed-tag-chip,
:is(html[data-theme="dark"], html[data-theme="lavender_night"], html[data-theme="midnight_slate"], html[data-theme="high_contrast"]) body.home-feed-page .achievements-rail-card .achievement-sidebar-tile,
:is(html[data-theme="dark"], html[data-theme="lavender_night"], html[data-theme="midnight_slate"], html[data-theme="high_contrast"]) body.home-feed-page .achievements-sidebar-empty,
:is(html[data-theme="dark"], html[data-theme="lavender_night"], html[data-theme="midnight_slate"], html[data-theme="high_contrast"]) body.home-feed-page .feed-rail-empty,
:is(html[data-theme="dark"], html[data-theme="lavender_night"], html[data-theme="midnight_slate"], html[data-theme="high_contrast"]) body.home-feed-page .feed-right-links a {
  background: var(--feed-theme-subtle) !important;
  color: var(--text, #f8fafc) !important;
  border-color: var(--line, #334155) !important;
  box-shadow: none !important;
}

:is(html[data-theme="dark"], html[data-theme="lavender_night"], html[data-theme="midnight_slate"], html[data-theme="high_contrast"]) body.home-feed-page .feed-rail-box .feed-mini-user-row:hover,
:is(html[data-theme="dark"], html[data-theme="lavender_night"], html[data-theme="midnight_slate"], html[data-theme="high_contrast"]) body.home-feed-page .feed-rail-box .feed-mini-post-row:hover,
:is(html[data-theme="dark"], html[data-theme="lavender_night"], html[data-theme="midnight_slate"], html[data-theme="high_contrast"]) body.home-feed-page .feed-rail-box .feed-website-card:hover,
:is(html[data-theme="dark"], html[data-theme="lavender_night"], html[data-theme="midnight_slate"], html[data-theme="high_contrast"]) body.home-feed-page .reels-rail-box .reel-card-open:hover,
:is(html[data-theme="dark"], html[data-theme="lavender_night"], html[data-theme="midnight_slate"], html[data-theme="high_contrast"]) body.home-feed-page .feed-right-links a:hover {
  background: var(--feed-theme-soft-accent) !important;
  border-color: color-mix(in srgb, var(--accent, #60a5fa) 34%, var(--line, #334155)) !important;
}

:is(html[data-theme="dark"], html[data-theme="lavender_night"], html[data-theme="midnight_slate"], html[data-theme="high_contrast"]) body.home-feed-page .feed-rail-box .feed-mini-user-meta strong,
:is(html[data-theme="dark"], html[data-theme="lavender_night"], html[data-theme="midnight_slate"], html[data-theme="high_contrast"]) body.home-feed-page .feed-rail-box .feed-mini-post-row strong,
:is(html[data-theme="dark"], html[data-theme="lavender_night"], html[data-theme="midnight_slate"], html[data-theme="high_contrast"]) body.home-feed-page .feed-rail-box .feed-website-card strong,
:is(html[data-theme="dark"], html[data-theme="lavender_night"], html[data-theme="midnight_slate"], html[data-theme="high_contrast"]) body.home-feed-page .feed-rail-box .feed-website-meta strong,
:is(html[data-theme="dark"], html[data-theme="lavender_night"], html[data-theme="midnight_slate"], html[data-theme="high_contrast"]) body.home-feed-page .reels-rail-box .reel-card-meta strong,
:is(html[data-theme="dark"], html[data-theme="lavender_night"], html[data-theme="midnight_slate"], html[data-theme="high_contrast"]) body.home-feed-page .achievements-rail-card .achievement-sidebar-name,
:is(html[data-theme="dark"], html[data-theme="lavender_night"], html[data-theme="midnight_slate"], html[data-theme="high_contrast"]) body.home-feed-page .feed-tag-cloud .feed-tag-chip {
  color: var(--text, #f8fafc) !important;
}

:is(html[data-theme="dark"], html[data-theme="lavender_night"], html[data-theme="midnight_slate"], html[data-theme="high_contrast"]) body.home-feed-page .feed-rail-box .feed-mini-user-meta small,
:is(html[data-theme="dark"], html[data-theme="lavender_night"], html[data-theme="midnight_slate"], html[data-theme="high_contrast"]) body.home-feed-page .feed-rail-box .feed-mini-post-row span,
:is(html[data-theme="dark"], html[data-theme="lavender_night"], html[data-theme="midnight_slate"], html[data-theme="high_contrast"]) body.home-feed-page .feed-rail-box .feed-website-card small,
:is(html[data-theme="dark"], html[data-theme="lavender_night"], html[data-theme="midnight_slate"], html[data-theme="high_contrast"]) body.home-feed-page .feed-rail-box .feed-website-meta small,
:is(html[data-theme="dark"], html[data-theme="lavender_night"], html[data-theme="midnight_slate"], html[data-theme="high_contrast"]) body.home-feed-page .reels-rail-box .reel-card-meta small,
:is(html[data-theme="dark"], html[data-theme="lavender_night"], html[data-theme="midnight_slate"], html[data-theme="high_contrast"]) body.home-feed-page .achievements-rail-card .achievements-rail-meta,
:is(html[data-theme="dark"], html[data-theme="lavender_night"], html[data-theme="midnight_slate"], html[data-theme="high_contrast"]) body.home-feed-page .feed-rail-empty {
  color: var(--muted, #aab6c7) !important;
}

:is(html[data-theme="dark"], html[data-theme="lavender_night"], html[data-theme="midnight_slate"], html[data-theme="high_contrast"]) body.home-feed-page .achievements-rail-card .achievement-sidebar-thumb,
:is(html[data-theme="dark"], html[data-theme="lavender_night"], html[data-theme="midnight_slate"], html[data-theme="high_contrast"]) body.home-feed-page .feed-rail-box .feed-website-thumb,
:is(html[data-theme="dark"], html[data-theme="lavender_night"], html[data-theme="midnight_slate"], html[data-theme="high_contrast"]) body.home-feed-page .reels-rail-box .reel-card-thumb {
  background: var(--card, #111827) !important;
  border-color: var(--line, #334155) !important;
}

:is(html[data-theme="dark"], html[data-theme="lavender_night"], html[data-theme="midnight_slate"], html[data-theme="high_contrast"]) body.profile-page .profile-bio-stats a,
:is(html[data-theme="dark"], html[data-theme="lavender_night"], html[data-theme="midnight_slate"], html[data-theme="high_contrast"]) body.profile-page .profile-bio-stats button,
:is(html[data-theme="dark"], html[data-theme="lavender_night"], html[data-theme="midnight_slate"], html[data-theme="high_contrast"]) body.profile-page .profile-stat-static,
:is(html[data-theme="dark"], html[data-theme="lavender_night"], html[data-theme="midnight_slate"], html[data-theme="high_contrast"]) body.profile-page .profile-view-chip,
:is(html[data-theme="dark"], html[data-theme="lavender_night"], html[data-theme="midnight_slate"], html[data-theme="high_contrast"]) body.profile-page .profile-action-chip.share-count-chip,
:is(html[data-theme="dark"], html[data-theme="lavender_night"], html[data-theme="midnight_slate"], html[data-theme="high_contrast"]) body.profile-page .profile-action-chip.bookmark-toggle-btn,
:is(html[data-theme="dark"], html[data-theme="lavender_night"], html[data-theme="midnight_slate"], html[data-theme="high_contrast"]) body.profile-page .profile-action-chip.share-toggle-btn,
:is(html[data-theme="dark"], html[data-theme="lavender_night"], html[data-theme="midnight_slate"], html[data-theme="high_contrast"]) body.profile-page .profile-action-chip.profile-friend-action {
  background: var(--feed-theme-subtle) !important;
  color: var(--text, #f8fafc) !important;
  border-color: var(--line, #334155) !important;
  box-shadow: none !important;
}

:is(html[data-theme="dark"], html[data-theme="lavender_night"], html[data-theme="midnight_slate"], html[data-theme="high_contrast"]) body.profile-page .profile-bio-stats strong,
:is(html[data-theme="dark"], html[data-theme="lavender_night"], html[data-theme="midnight_slate"], html[data-theme="high_contrast"]) body.profile-page .profile-bio-stats span,
:is(html[data-theme="dark"], html[data-theme="lavender_night"], html[data-theme="midnight_slate"], html[data-theme="high_contrast"]) body.profile-page .profile-stat-static strong,
:is(html[data-theme="dark"], html[data-theme="lavender_night"], html[data-theme="midnight_slate"], html[data-theme="high_contrast"]) body.profile-page .profile-stat-static span {
  color: inherit !important;
}

:is(html[data-theme="dark"], html[data-theme="lavender_night"], html[data-theme="midnight_slate"], html[data-theme="high_contrast"]) body.profile-page .profile-action-chip.follow-btn,
:is(html[data-theme="dark"], html[data-theme="lavender_night"], html[data-theme="midnight_slate"], html[data-theme="high_contrast"]) body.profile-page .profile-action-chip.gift-send-open-btn,
:is(html[data-theme="dark"], html[data-theme="lavender_night"], html[data-theme="midnight_slate"], html[data-theme="high_contrast"]) body.profile-page .profile-action-chip.profile-media-action-btn,
:is(html[data-theme="dark"], html[data-theme="lavender_night"], html[data-theme="midnight_slate"], html[data-theme="high_contrast"]) body.profile-page .profile-action-chip.profile-action-chip-link,
:is(html[data-theme="dark"], html[data-theme="lavender_night"], html[data-theme="midnight_slate"], html[data-theme="high_contrast"]) body.profile-page .profile-action-chip.profile-view-chip {
  background: var(--accent, #60a5fa) !important;
  color: #fff !important;
  border-color: var(--accent, #60a5fa) !important;
}

:is(html[data-theme="high_contrast"]) body.profile-page .profile-action-chip.follow-btn,
:is(html[data-theme="high_contrast"]) body.profile-page .profile-action-chip.gift-send-open-btn,
:is(html[data-theme="high_contrast"]) body.profile-page .profile-action-chip.profile-media-action-btn,
:is(html[data-theme="high_contrast"]) body.profile-page .profile-action-chip.profile-action-chip-link,
:is(html[data-theme="high_contrast"]) body.profile-page .profile-action-chip.profile-view-chip {
  color: #000 !important;
}

:is(html[data-theme="dark"], html[data-theme="lavender_night"], html[data-theme="midnight_slate"], html[data-theme="high_contrast"]) body.profile-page .profile-action-rail-card.profile-action-strip-card,
:is(html[data-theme="dark"], html[data-theme="lavender_night"], html[data-theme="midnight_slate"], html[data-theme="high_contrast"]) body.profile-page .profile-action-strip-card,
:is(html[data-theme="dark"], html[data-theme="lavender_night"], html[data-theme="midnight_slate"], html[data-theme="high_contrast"]) body.profile-page .profile-story-surface-row,
:is(html[data-theme="dark"], html[data-theme="lavender_night"], html[data-theme="midnight_slate"], html[data-theme="high_contrast"]) body.profile-page .profile-story-surface-highlights,
:is(html[data-theme="dark"], html[data-theme="lavender_night"], html[data-theme="midnight_slate"], html[data-theme="high_contrast"]) body.profile-page .profile-story-surface-highlights .profile-highlights-rail,
:is(html[data-theme="dark"], html[data-theme="lavender_night"], html[data-theme="midnight_slate"], html[data-theme="high_contrast"]) body.profile-page .profile-story-surface-highlights .profile-highlights-rail-compact,
:is(html[data-theme="dark"], html[data-theme="lavender_night"], html[data-theme="midnight_slate"], html[data-theme="high_contrast"]) body.profile-page .profile-bio-story-stack .profile-highlights-rail,
:is(html[data-theme="dark"], html[data-theme="lavender_night"], html[data-theme="midnight_slate"], html[data-theme="high_contrast"]) body.profile-page .profile-bio-story-stack .profile-highlights-rail-compact,
:is(html[data-theme="dark"], html[data-theme="lavender_night"], html[data-theme="midnight_slate"], html[data-theme="high_contrast"]) body.profile-page .profile-bio-story-stack .profile-highlights-story-line {
  background: var(--feed-theme-surface) !important;
  color: var(--text, #f8fafc) !important;
  border-color: var(--line, #334155) !important;
  box-shadow: var(--feed-theme-deep-shadow) !important;
}

:is(html[data-theme="dark"], html[data-theme="lavender_night"], html[data-theme="midnight_slate"], html[data-theme="high_contrast"]) body.profile-page .profile-story-surface-highlights .story-circle,
:is(html[data-theme="dark"], html[data-theme="lavender_night"], html[data-theme="midnight_slate"], html[data-theme="high_contrast"]) body.profile-page .profile-story-surface-highlights .story-empty-launch,
:is(html[data-theme="dark"], html[data-theme="lavender_night"], html[data-theme="midnight_slate"], html[data-theme="high_contrast"]) body.profile-page .profile-story-surface-highlights .story-add-mini,
:is(html[data-theme="dark"], html[data-theme="lavender_night"], html[data-theme="midnight_slate"], html[data-theme="high_contrast"]) body.profile-page .profile-story-surface-highlights .highlight-circle,
:is(html[data-theme="dark"], html[data-theme="lavender_night"], html[data-theme="midnight_slate"], html[data-theme="high_contrast"]) body.profile-page .profile-story-surface-highlights .highlight-add-mini,
:is(html[data-theme="dark"], html[data-theme="lavender_night"], html[data-theme="midnight_slate"], html[data-theme="high_contrast"]) body.profile-page .profile-story-surface-highlights .highlight-empty-launch,
:is(html[data-theme="dark"], html[data-theme="lavender_night"], html[data-theme="midnight_slate"], html[data-theme="high_contrast"]) body.profile-page .profile-bio-story-stack .story-circle,
:is(html[data-theme="dark"], html[data-theme="lavender_night"], html[data-theme="midnight_slate"], html[data-theme="high_contrast"]) body.profile-page .profile-bio-story-stack .story-empty-launch,
:is(html[data-theme="dark"], html[data-theme="lavender_night"], html[data-theme="midnight_slate"], html[data-theme="high_contrast"]) body.profile-page .profile-bio-story-stack .story-add-mini,
:is(html[data-theme="dark"], html[data-theme="lavender_night"], html[data-theme="midnight_slate"], html[data-theme="high_contrast"]) body.profile-page .profile-bio-story-stack .highlight-circle,
:is(html[data-theme="dark"], html[data-theme="lavender_night"], html[data-theme="midnight_slate"], html[data-theme="high_contrast"]) body.profile-page .profile-bio-story-stack .highlight-add-mini,
:is(html[data-theme="dark"], html[data-theme="lavender_night"], html[data-theme="midnight_slate"], html[data-theme="high_contrast"]) body.profile-page .profile-bio-story-stack .highlight-empty-launch {
  background: var(--feed-theme-subtle) !important;
  color: var(--text, #f8fafc) !important;
  border-color: var(--line, #334155) !important;
  box-shadow: none !important;
}

:is(html[data-theme="dark"], html[data-theme="lavender_night"], html[data-theme="midnight_slate"], html[data-theme="high_contrast"]) body.profile-page .profile-story-surface-highlights .story-circle span:last-child,
:is(html[data-theme="dark"], html[data-theme="lavender_night"], html[data-theme="midnight_slate"], html[data-theme="high_contrast"]) body.profile-page .profile-story-surface-highlights .story-empty-launch span:last-child,
:is(html[data-theme="dark"], html[data-theme="lavender_night"], html[data-theme="midnight_slate"], html[data-theme="high_contrast"]) body.profile-page .profile-story-surface-highlights .story-add-mini span:last-child,
:is(html[data-theme="dark"], html[data-theme="lavender_night"], html[data-theme="midnight_slate"], html[data-theme="high_contrast"]) body.profile-page .profile-story-surface-highlights .highlight-circle span,
:is(html[data-theme="dark"], html[data-theme="lavender_night"], html[data-theme="midnight_slate"], html[data-theme="high_contrast"]) body.profile-page .profile-story-surface-highlights .highlight-empty-launch span:last-child,
:is(html[data-theme="dark"], html[data-theme="lavender_night"], html[data-theme="midnight_slate"], html[data-theme="high_contrast"]) body.profile-page .profile-story-surface-highlights .highlight-add-mini span:last-child,
:is(html[data-theme="dark"], html[data-theme="lavender_night"], html[data-theme="midnight_slate"], html[data-theme="high_contrast"]) body.profile-page .profile-bio-story-stack .story-circle span:last-child,
:is(html[data-theme="dark"], html[data-theme="lavender_night"], html[data-theme="midnight_slate"], html[data-theme="high_contrast"]) body.profile-page .profile-bio-story-stack .story-empty-launch span:last-child,
:is(html[data-theme="dark"], html[data-theme="lavender_night"], html[data-theme="midnight_slate"], html[data-theme="high_contrast"]) body.profile-page .profile-bio-story-stack .story-add-mini span:last-child,
:is(html[data-theme="dark"], html[data-theme="lavender_night"], html[data-theme="midnight_slate"], html[data-theme="high_contrast"]) body.profile-page .profile-bio-story-stack .highlight-circle span,
:is(html[data-theme="dark"], html[data-theme="lavender_night"], html[data-theme="midnight_slate"], html[data-theme="high_contrast"]) body.profile-page .profile-bio-story-stack .highlight-empty-launch span:last-child,
:is(html[data-theme="dark"], html[data-theme="lavender_night"], html[data-theme="midnight_slate"], html[data-theme="high_contrast"]) body.profile-page .profile-bio-story-stack .highlight-add-mini span:last-child {
  color: var(--text, #f8fafc) !important;
}

/* Sidebar rails are meant to float on the page background, not sit in white boxes. */
body.home-feed-page .left-sidebar .feed-left-nav-card,
body.home-feed-page .left-sidebar .feed-rail-box,
body.home-feed-page .right-sidebar .feed-rail-box,
body.home-feed-page .left-sidebar .admin-sidebar-block,
body.home-feed-page .right-sidebar .admin-sidebar-block,
body.home-feed-page .left-sidebar .feed-sidebar-card,
body.home-feed-page .right-sidebar .feed-sidebar-card,
body.home-feed-page .feed-left-nav-card,
body.home-feed-page .feed-websites-rail-box,
body.home-feed-page .reels-rail-box,
body.home-feed-page .achievements-rail-card,
body.home-feed-page .feed-tag-cloud-box {
  background: transparent !important;
  border-color: transparent !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
}

body.home-feed-page .left-sidebar .admin-sidebar-block.admin-block-style-boxed.admin-block-context-sidebar,
body.home-feed-page .right-sidebar .admin-sidebar-block.admin-block-style-boxed.admin-block-context-sidebar {
  background: rgba(255, 255, 255, 0.88) !important;
  border: 1px solid rgba(15, 23, 42, 0.08) !important;
  border-radius: 18px !important;
  box-shadow: 0 16px 38px rgba(15, 23, 42, 0.08) !important;
  padding: 10px !important;
  backdrop-filter: blur(8px) !important;
}

body.home-feed-page .left-sidebar .admin-sidebar-block.admin-block-style-boxed.admin-block-context-sidebar .admin-block-title-row,
body.home-feed-page .right-sidebar .admin-sidebar-block.admin-block-style-boxed.admin-block-context-sidebar .admin-block-title-row {
  border-bottom: 1px solid rgba(15, 23, 42, 0.08) !important;
  background: transparent !important;
}

body.home-feed-page .left-sidebar .admin-sidebar-block.admin-block-style-boxed.admin-block-context-sidebar .admin-block-icon,
body.home-feed-page .right-sidebar .admin-sidebar-block.admin-block-style-boxed.admin-block-context-sidebar .admin-block-icon {
  background: #0f172a !important;
  color: #fff !important;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.16) !important;
}

body.home-feed-page .left-sidebar .admin-sidebar-block.admin-block-style-boxed.admin-block-context-sidebar h3,
body.home-feed-page .right-sidebar .admin-sidebar-block.admin-block-style-boxed.admin-block-context-sidebar h3 {
  color: #0f172a !important;
}

body.home-feed-page .left-sidebar .admin-sidebar-block.admin-block-style-boxed.admin-block-context-sidebar p,
body.home-feed-page .right-sidebar .admin-sidebar-block.admin-block-style-boxed.admin-block-context-sidebar p {
  color: #475569 !important;
}

body.home-feed-page .feed-left-nav-link,
body.home-feed-page .feed-left-nav-link:hover,
body.home-feed-page .feed-left-nav-link.is-active,
body.home-feed-page .feed-rail-box .feed-mini-user-row,
body.home-feed-page .feed-rail-box .feed-mini-user-row:hover,
body.home-feed-page .feed-rail-box .feed-mini-post-row,
body.home-feed-page .feed-rail-box .feed-mini-post-row:hover,
body.home-feed-page .feed-rail-box .feed-website-card,
body.home-feed-page .feed-rail-box .feed-website-card:hover,
body.home-feed-page .feed-rail-box .feed-website-pair,
body.home-feed-page .feed-right-links a,
body.home-feed-page .feed-right-links a:hover,
body.home-feed-page .feed-tag-cloud .feed-tag-chip,
body.home-feed-page .feed-tag-cloud .feed-tag-chip:hover,
body.home-feed-page .reels-rail-box .reel-card-open,
body.home-feed-page .reels-rail-box .reel-card-open:hover,
body.home-feed-page .achievements-rail-card .achievement-sidebar-tile,
body.home-feed-page .achievements-rail-card .achievement-sidebar-tile:hover,
body.home-feed-page .achievements-sidebar-empty,
body.home-feed-page .feed-rail-empty,
body.home-feed-page .admin-sidebar-block .admin-sidebar-link-card,
body.home-feed-page .admin-sidebar-block .admin-sidebar-button,
body.home-feed-page .admin-sidebar-block .admin-block-separator-inner,
body.home-feed-page .admin-sidebar-block .admin-sidebar-addon-placeholder {
  background: transparent !important;
  border-color: transparent !important;
  box-shadow: none !important;
  color: var(--text, #1c1e21) !important;
}

body.home-feed-page .feed-left-nav-link:hover,
body.home-feed-page .feed-left-nav-link.is-active,
body.home-feed-page .feed-rail-box .feed-mini-user-row:hover,
body.home-feed-page .feed-rail-box .feed-mini-post-row:hover,
body.home-feed-page .feed-rail-box .feed-website-card:hover,
body.home-feed-page .feed-right-links a:hover,
body.home-feed-page .feed-tag-cloud .feed-tag-chip:hover,
body.home-feed-page .reels-rail-box .reel-card-open:hover,
body.home-feed-page .achievements-rail-card .achievement-sidebar-tile:hover {
  color: var(--accent, #1877f2) !important;
  transform: none !important;
}

body.home-feed-page .feed-left-nav-link.is-active {
  font-weight: 900 !important;
}

body.home-feed-page .feed-rail-box-head,
body.home-feed-page .feed-rail-box-head h3,
body.home-feed-page .feed-rail-box-head a,
body.home-feed-page .feed-mini-user-meta strong,
body.home-feed-page .feed-mini-post-row strong,
body.home-feed-page .feed-website-card strong,
body.home-feed-page .feed-website-meta strong,
body.home-feed-page .reels-rail-box .reel-card-meta strong,
body.home-feed-page .achievement-sidebar-name,
body.home-feed-page .feed-tag-cloud .feed-tag-chip,
body.home-feed-page .feed-left-nav-text,
body.home-feed-page .admin-sidebar-block h3,
body.home-feed-page .admin-block-title-row h3 {
  color: var(--text, #1c1e21) !important;
}

body.home-feed-page .feed-mini-user-meta small,
body.home-feed-page .feed-mini-post-row span,
body.home-feed-page .feed-website-card small,
body.home-feed-page .feed-website-meta small,
body.home-feed-page .reels-rail-box .reel-card-meta small,
body.home-feed-page .achievements-rail-meta,
body.home-feed-page .feed-rail-empty,
body.home-feed-page .admin-sidebar-block p,
body.home-feed-page .admin-block-line-separator {
  color: var(--muted, #65676b) !important;
}

body.home-feed-page .feed-left-nav-icon,
body.home-feed-page .feed-mini-user-avatar,
body.home-feed-page .feed-website-thumb,
body.home-feed-page .reels-rail-box .reel-card-thumb,
body.home-feed-page .achievement-sidebar-thumb,
body.home-feed-page .admin-block-icon,
body.home-feed-page .admin-sidebar-block-image,
body.home-feed-page .admin-animated-layer-stack,
body.home-feed-page .admin-sidebar-animation-wrap,
body.home-feed-page .admin-sidebar-animation {
  background: transparent !important;
  box-shadow: none !important;
}

body.home-feed-page .admin-sidebar-block .admin-block-title-row,
body.home-feed-page .admin-sidebar-block .admin-block-line-separator:before,
body.home-feed-page .admin-sidebar-block .admin-block-line-separator:after {
  border-color: transparent !important;
  background: transparent !important;
}

body.home-feed-page .left-sidebar .admin-sidebar-block.admin-block-style-boxed.admin-block-context-sidebar .admin-block-title-row,
body.home-feed-page .right-sidebar .admin-sidebar-block.admin-block-style-boxed.admin-block-context-sidebar .admin-block-title-row {
  border-color: rgba(15, 23, 42, 0.08) !important;
}

:is(html[data-theme="dark"], html[data-theme="lavender_night"], html[data-theme="midnight_slate"], html[data-theme="high_contrast"]) body.home-feed-page .feed-left-nav-link,
:is(html[data-theme="dark"], html[data-theme="lavender_night"], html[data-theme="midnight_slate"], html[data-theme="high_contrast"]) body.home-feed-page .feed-left-nav-link:hover,
:is(html[data-theme="dark"], html[data-theme="lavender_night"], html[data-theme="midnight_slate"], html[data-theme="high_contrast"]) body.home-feed-page .feed-left-nav-link.is-active,
:is(html[data-theme="dark"], html[data-theme="lavender_night"], html[data-theme="midnight_slate"], html[data-theme="high_contrast"]) body.home-feed-page .feed-rail-box .feed-mini-user-row,
:is(html[data-theme="dark"], html[data-theme="lavender_night"], html[data-theme="midnight_slate"], html[data-theme="high_contrast"]) body.home-feed-page .feed-rail-box .feed-mini-user-row:hover,
:is(html[data-theme="dark"], html[data-theme="lavender_night"], html[data-theme="midnight_slate"], html[data-theme="high_contrast"]) body.home-feed-page .feed-rail-box .feed-mini-post-row,
:is(html[data-theme="dark"], html[data-theme="lavender_night"], html[data-theme="midnight_slate"], html[data-theme="high_contrast"]) body.home-feed-page .feed-rail-box .feed-mini-post-row:hover,
:is(html[data-theme="dark"], html[data-theme="lavender_night"], html[data-theme="midnight_slate"], html[data-theme="high_contrast"]) body.home-feed-page .feed-rail-box .feed-website-card,
:is(html[data-theme="dark"], html[data-theme="lavender_night"], html[data-theme="midnight_slate"], html[data-theme="high_contrast"]) body.home-feed-page .feed-rail-box .feed-website-card:hover,
:is(html[data-theme="dark"], html[data-theme="lavender_night"], html[data-theme="midnight_slate"], html[data-theme="high_contrast"]) body.home-feed-page .feed-rail-box .feed-website-pair,
:is(html[data-theme="dark"], html[data-theme="lavender_night"], html[data-theme="midnight_slate"], html[data-theme="high_contrast"]) body.home-feed-page .feed-right-links a,
:is(html[data-theme="dark"], html[data-theme="lavender_night"], html[data-theme="midnight_slate"], html[data-theme="high_contrast"]) body.home-feed-page .feed-right-links a:hover,
:is(html[data-theme="dark"], html[data-theme="lavender_night"], html[data-theme="midnight_slate"], html[data-theme="high_contrast"]) body.home-feed-page .feed-tag-cloud .feed-tag-chip,
:is(html[data-theme="dark"], html[data-theme="lavender_night"], html[data-theme="midnight_slate"], html[data-theme="high_contrast"]) body.home-feed-page .feed-tag-cloud .feed-tag-chip:hover,
:is(html[data-theme="dark"], html[data-theme="lavender_night"], html[data-theme="midnight_slate"], html[data-theme="high_contrast"]) body.home-feed-page .reels-rail-box .reel-card-open,
:is(html[data-theme="dark"], html[data-theme="lavender_night"], html[data-theme="midnight_slate"], html[data-theme="high_contrast"]) body.home-feed-page .reels-rail-box .reel-card-open:hover,
:is(html[data-theme="dark"], html[data-theme="lavender_night"], html[data-theme="midnight_slate"], html[data-theme="high_contrast"]) body.home-feed-page .achievements-rail-card .achievement-sidebar-tile,
:is(html[data-theme="dark"], html[data-theme="lavender_night"], html[data-theme="midnight_slate"], html[data-theme="high_contrast"]) body.home-feed-page .achievements-rail-card .achievement-sidebar-tile:hover,
:is(html[data-theme="dark"], html[data-theme="lavender_night"], html[data-theme="midnight_slate"], html[data-theme="high_contrast"]) body.home-feed-page .achievements-sidebar-empty,
:is(html[data-theme="dark"], html[data-theme="lavender_night"], html[data-theme="midnight_slate"], html[data-theme="high_contrast"]) body.home-feed-page .feed-rail-empty,
:is(html[data-theme="dark"], html[data-theme="lavender_night"], html[data-theme="midnight_slate"], html[data-theme="high_contrast"]) body.home-feed-page .admin-sidebar-block .admin-sidebar-link-card,
:is(html[data-theme="dark"], html[data-theme="lavender_night"], html[data-theme="midnight_slate"], html[data-theme="high_contrast"]) body.home-feed-page .admin-sidebar-block .admin-sidebar-button,
:is(html[data-theme="dark"], html[data-theme="lavender_night"], html[data-theme="midnight_slate"], html[data-theme="high_contrast"]) body.home-feed-page .admin-sidebar-block .admin-block-separator-inner,
:is(html[data-theme="dark"], html[data-theme="lavender_night"], html[data-theme="midnight_slate"], html[data-theme="high_contrast"]) body.home-feed-page .admin-sidebar-block .admin-sidebar-addon-placeholder {
  color: var(--text, #f8fafc) !important;
}

:is(html[data-theme="dark"], html[data-theme="lavender_night"], html[data-theme="midnight_slate"], html[data-theme="high_contrast"]) body.home-feed-page .left-sidebar .admin-sidebar-block.admin-block-style-boxed.admin-block-context-sidebar,
:is(html[data-theme="dark"], html[data-theme="lavender_night"], html[data-theme="midnight_slate"], html[data-theme="high_contrast"]) body.home-feed-page .right-sidebar .admin-sidebar-block.admin-block-style-boxed.admin-block-context-sidebar {
  background: rgba(255, 255, 255, 0.15) !important;
  border-color: rgba(255, 255, 255, 0.18) !important;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.18) !important;
  color: var(--text, #f8fafc) !important;
}

:is(html[data-theme="dark"], html[data-theme="lavender_night"], html[data-theme="midnight_slate"], html[data-theme="high_contrast"]) body.home-feed-page .left-sidebar .admin-sidebar-block.admin-block-style-boxed.admin-block-context-sidebar .admin-block-title-row,
:is(html[data-theme="dark"], html[data-theme="lavender_night"], html[data-theme="midnight_slate"], html[data-theme="high_contrast"]) body.home-feed-page .right-sidebar .admin-sidebar-block.admin-block-style-boxed.admin-block-context-sidebar .admin-block-title-row {
  border-color: rgba(255, 255, 255, 0.18) !important;
}

:is(html[data-theme="dark"], html[data-theme="lavender_night"], html[data-theme="midnight_slate"], html[data-theme="high_contrast"]) body.home-feed-page .left-sidebar .admin-sidebar-block.admin-block-style-boxed.admin-block-context-sidebar h3,
:is(html[data-theme="dark"], html[data-theme="lavender_night"], html[data-theme="midnight_slate"], html[data-theme="high_contrast"]) body.home-feed-page .right-sidebar .admin-sidebar-block.admin-block-style-boxed.admin-block-context-sidebar h3 {
  color: var(--text, #f8fafc) !important;
}

:is(html[data-theme="dark"], html[data-theme="lavender_night"], html[data-theme="midnight_slate"], html[data-theme="high_contrast"]) body.home-feed-page .left-sidebar .admin-sidebar-block.admin-block-style-boxed.admin-block-context-sidebar p,
:is(html[data-theme="dark"], html[data-theme="lavender_night"], html[data-theme="midnight_slate"], html[data-theme="high_contrast"]) body.home-feed-page .right-sidebar .admin-sidebar-block.admin-block-style-boxed.admin-block-context-sidebar p {
  color: var(--muted, #aab6c7) !important;
}

:is(html[data-theme="dark"], html[data-theme="lavender_night"], html[data-theme="midnight_slate"], html[data-theme="high_contrast"]) body.home-feed-page .left-sidebar .admin-sidebar-block.admin-block-style-boxed.admin-block-context-sidebar .admin-block-icon,
:is(html[data-theme="dark"], html[data-theme="lavender_night"], html[data-theme="midnight_slate"], html[data-theme="high_contrast"]) body.home-feed-page .right-sidebar .admin-sidebar-block.admin-block-style-boxed.admin-block-context-sidebar .admin-block-icon {
  background: rgba(15, 23, 42, 0.82) !important;
  color: #fff !important;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.24) !important;
}

/* These utility panels should keep a soft readable surface over the wallpaper. */
body.home-feed-page .right-sidebar .feed-quick-links-box,
body.home-feed-page .right-sidebar .feed-tag-cloud-box,
body.home-feed-page .right-sidebar .admin-sidebar-link-site-video-channel,
body.home-feed-page .right-sidebar .admin-sidebar-link-site-blog {
  background: rgba(255, 255, 255, 0.7) !important;
  border: 1px solid rgba(255, 255, 255, 0.42) !important;
  border-radius: 18px !important;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08) !important;
  padding: 10px !important;
  backdrop-filter: blur(8px) !important;
}

body.home-feed-page .right-sidebar .feed-quick-links-box .feed-right-links a,
body.home-feed-page .right-sidebar .feed-tag-cloud-box .feed-tag-chip,
body.home-feed-page .right-sidebar .admin-sidebar-link-site-video-channel .admin-sidebar-button,
body.home-feed-page .right-sidebar .admin-sidebar-link-site-blog .admin-sidebar-button {
  background: rgba(255, 255, 255, 0.56) !important;
  border: 1px solid rgba(255, 255, 255, 0.42) !important;
  border-radius: 14px !important;
  box-shadow: none !important;
  padding: 8px 10px !important;
}

:is(html[data-theme="dark"], html[data-theme="lavender_night"], html[data-theme="midnight_slate"], html[data-theme="high_contrast"]) body.home-feed-page .right-sidebar .feed-quick-links-box,
:is(html[data-theme="dark"], html[data-theme="lavender_night"], html[data-theme="midnight_slate"], html[data-theme="high_contrast"]) body.home-feed-page .right-sidebar .feed-tag-cloud-box,
:is(html[data-theme="dark"], html[data-theme="lavender_night"], html[data-theme="midnight_slate"], html[data-theme="high_contrast"]) body.home-feed-page .right-sidebar .admin-sidebar-link-site-video-channel,
:is(html[data-theme="dark"], html[data-theme="lavender_night"], html[data-theme="midnight_slate"], html[data-theme="high_contrast"]) body.home-feed-page .right-sidebar .admin-sidebar-link-site-blog {
  background: rgba(255, 255, 255, 0.15) !important;
  border-color: rgba(255, 255, 255, 0.18) !important;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.18) !important;
  color: var(--text, #f8fafc) !important;
}

:is(html[data-theme="dark"], html[data-theme="lavender_night"], html[data-theme="midnight_slate"], html[data-theme="high_contrast"]) body.home-feed-page .right-sidebar .feed-quick-links-box .feed-right-links a,
:is(html[data-theme="dark"], html[data-theme="lavender_night"], html[data-theme="midnight_slate"], html[data-theme="high_contrast"]) body.home-feed-page .right-sidebar .feed-tag-cloud-box .feed-tag-chip,
:is(html[data-theme="dark"], html[data-theme="lavender_night"], html[data-theme="midnight_slate"], html[data-theme="high_contrast"]) body.home-feed-page .right-sidebar .admin-sidebar-link-site-video-channel .admin-sidebar-button,
:is(html[data-theme="dark"], html[data-theme="lavender_night"], html[data-theme="midnight_slate"], html[data-theme="high_contrast"]) body.home-feed-page .right-sidebar .admin-sidebar-link-site-blog .admin-sidebar-button {
  background: rgba(255, 255, 255, 0.12) !important;
  border-color: rgba(255, 255, 255, 0.18) !important;
  color: var(--text, #f8fafc) !important;
}

/* Make the kept sidebar utility panels feel intentional instead of plain. */
body.home-feed-page .right-sidebar .feed-quick-links-box,
body.home-feed-page .right-sidebar .feed-tag-cloud-box,
body.home-feed-page .right-sidebar .admin-sidebar-link-site-video-channel,
body.home-feed-page .right-sidebar .admin-sidebar-link-site-blog {
  position: relative !important;
  overflow: hidden !important;
  display: grid !important;
  gap: 10px !important;
  padding: 12px !important;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(255, 255, 255, 0.62)) !important;
  border: 1px solid rgba(255, 255, 255, 0.72) !important;
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.1) !important;
}

body.home-feed-page .right-sidebar .feed-quick-links-box::before,
body.home-feed-page .right-sidebar .feed-tag-cloud-box::before,
body.home-feed-page .right-sidebar .admin-sidebar-link-site-video-channel::before,
body.home-feed-page .right-sidebar .admin-sidebar-link-site-blog::before {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  top: 0;
  height: 4px;
  border-radius: 0 0 999px 999px;
  background: linear-gradient(90deg, var(--accent, #1877f2), #22c55e, #f59e0b);
  opacity: 0.9;
}

body.home-feed-page .right-sidebar .feed-quick-links-box .feed-rail-box-head,
body.home-feed-page .right-sidebar .feed-tag-cloud-box .feed-rail-box-head,
body.home-feed-page .right-sidebar .admin-sidebar-link-site-video-channel .admin-block-title-row,
body.home-feed-page .right-sidebar .admin-sidebar-link-site-blog .admin-block-title-row {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 8px !important;
  margin: 0 !important;
  padding: 2px 0 4px !important;
  border: 0 !important;
  background: transparent !important;
}

body.home-feed-page .right-sidebar .feed-quick-links-box .feed-rail-box-head h3,
body.home-feed-page .right-sidebar .feed-tag-cloud-box .feed-rail-box-head h3,
body.home-feed-page .right-sidebar .admin-sidebar-link-site-video-channel .admin-block-title-row h3,
body.home-feed-page .right-sidebar .admin-sidebar-link-site-blog .admin-block-title-row h3 {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  margin: 0 !important;
  color: var(--text, #101827) !important;
  font-size: 14px !important;
  font-weight: 950 !important;
  letter-spacing: 0 !important;
}

body.home-feed-page .right-sidebar .feed-quick-links-box .feed-rail-box-head h3::before,
body.home-feed-page .right-sidebar .feed-tag-cloud-box .feed-rail-box-head h3::before,
body.home-feed-page .right-sidebar .admin-sidebar-link-site-video-channel .admin-block-icon,
body.home-feed-page .right-sidebar .admin-sidebar-link-site-blog .admin-block-icon {
  width: 30px !important;
  height: 30px !important;
  min-width: 30px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 12px !important;
  background: linear-gradient(135deg, rgba(24, 119, 242, 0.18), rgba(34, 197, 94, 0.14)) !important;
  border: 1px solid rgba(24, 119, 242, 0.2) !important;
  box-shadow: 0 8px 18px rgba(24, 119, 242, 0.12) !important;
  color: var(--accent, #1877f2) !important;
  font-size: 15px !important;
  line-height: 1 !important;
}

body.home-feed-page .right-sidebar .feed-quick-links-box .feed-rail-box-head h3::before {
  content: "⚡";
}

body.home-feed-page .right-sidebar .feed-tag-cloud-box .feed-rail-box-head h3::before {
  content: "#";
  font-weight: 950;
}

body.home-feed-page .right-sidebar .feed-quick-links-box .feed-right-links {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 8px !important;
}

body.home-feed-page .right-sidebar .feed-quick-links-box .feed-right-links a {
  min-height: 38px !important;
  display: flex !important;
  align-items: center !important;
  gap: 7px !important;
  padding: 8px 9px !important;
  border-radius: 14px !important;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.86), rgba(248, 250, 252, 0.58)) !important;
  border: 1px solid rgba(148, 163, 184, 0.26) !important;
  color: var(--text, #101827) !important;
  font-size: 12px !important;
  font-weight: 850 !important;
}

body.home-feed-page .right-sidebar .feed-quick-links-box .feed-right-links a span:first-child {
  width: 22px !important;
  height: 22px !important;
  min-width: 22px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 9px !important;
  background: rgba(24, 119, 242, 0.1) !important;
}

body.home-feed-page .right-sidebar .feed-tag-cloud-box .feed-tag-cloud {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
}

body.home-feed-page .right-sidebar .feed-tag-cloud-box .feed-tag-chip {
  min-height: 30px !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 7px !important;
  padding: 7px 9px !important;
  border-radius: 999px !important;
  background: rgba(255, 255, 255, 0.72) !important;
  border: 1px solid rgba(24, 119, 242, 0.16) !important;
  color: var(--text, #101827) !important;
  font-size: 12px !important;
  font-weight: 900 !important;
}

body.home-feed-page .right-sidebar .feed-tag-cloud-box .feed-tag-chip span {
  min-width: 20px !important;
  height: 20px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 999px !important;
  background: var(--accent, #1877f2) !important;
  color: #fff !important;
  font-size: 11px !important;
}

body.home-feed-page .right-sidebar .admin-sidebar-link-site-video-channel p,
body.home-feed-page .right-sidebar .admin-sidebar-link-site-blog p {
  margin: 0 !important;
  padding: 8px 9px !important;
  border-radius: 14px !important;
  background: rgba(255, 255, 255, 0.46) !important;
  color: var(--muted, #65676b) !important;
  font-size: 12px !important;
  font-weight: 750 !important;
  line-height: 1.35 !important;
}

body.home-feed-page .right-sidebar .admin-sidebar-link-site-video-channel .admin-sidebar-button,
body.home-feed-page .right-sidebar .admin-sidebar-link-site-blog .admin-sidebar-button {
  justify-self: start !important;
  min-height: 34px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 8px 12px !important;
  border-radius: 999px !important;
  background: linear-gradient(135deg, var(--accent, #1877f2), #7c3aed) !important;
  border: 0 !important;
  box-shadow: 0 12px 22px rgba(24, 119, 242, 0.22) !important;
  color: #fff !important;
  font-size: 12px !important;
  font-weight: 950 !important;
}

body.home-feed-page .right-sidebar .feed-quick-links-box .feed-right-links a:hover,
body.home-feed-page .right-sidebar .feed-tag-cloud-box .feed-tag-chip:hover,
body.home-feed-page .right-sidebar .admin-sidebar-link-site-video-channel .admin-sidebar-button:hover,
body.home-feed-page .right-sidebar .admin-sidebar-link-site-blog .admin-sidebar-button:hover {
  transform: translateY(-1px) !important;
  box-shadow: 0 12px 22px rgba(15, 23, 42, 0.12) !important;
  color: var(--accent, #1877f2) !important;
}

body.home-feed-page .right-sidebar .admin-sidebar-link-site-video-channel .admin-sidebar-button:hover,
body.home-feed-page .right-sidebar .admin-sidebar-link-site-blog .admin-sidebar-button:hover {
  color: #fff !important;
}

:is(html[data-theme="dark"], html[data-theme="lavender_night"], html[data-theme="midnight_slate"], html[data-theme="high_contrast"]) body.home-feed-page .right-sidebar .feed-quick-links-box,
:is(html[data-theme="dark"], html[data-theme="lavender_night"], html[data-theme="midnight_slate"], html[data-theme="high_contrast"]) body.home-feed-page .right-sidebar .feed-tag-cloud-box,
:is(html[data-theme="dark"], html[data-theme="lavender_night"], html[data-theme="midnight_slate"], html[data-theme="high_contrast"]) body.home-feed-page .right-sidebar .admin-sidebar-link-site-video-channel,
:is(html[data-theme="dark"], html[data-theme="lavender_night"], html[data-theme="midnight_slate"], html[data-theme="high_contrast"]) body.home-feed-page .right-sidebar .admin-sidebar-link-site-blog {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.1)) !important;
  border-color: rgba(255, 255, 255, 0.18) !important;
}

:is(html[data-theme="dark"], html[data-theme="lavender_night"], html[data-theme="midnight_slate"], html[data-theme="high_contrast"]) body.home-feed-page .right-sidebar .feed-quick-links-box .feed-right-links a,
:is(html[data-theme="dark"], html[data-theme="lavender_night"], html[data-theme="midnight_slate"], html[data-theme="high_contrast"]) body.home-feed-page .right-sidebar .feed-tag-cloud-box .feed-tag-chip,
:is(html[data-theme="dark"], html[data-theme="lavender_night"], html[data-theme="midnight_slate"], html[data-theme="high_contrast"]) body.home-feed-page .right-sidebar .admin-sidebar-link-site-video-channel p,
:is(html[data-theme="dark"], html[data-theme="lavender_night"], html[data-theme="midnight_slate"], html[data-theme="high_contrast"]) body.home-feed-page .right-sidebar .admin-sidebar-link-site-blog p {
  background: rgba(255, 255, 255, 0.1) !important;
  border-color: rgba(255, 255, 255, 0.16) !important;
  color: var(--text, #f8fafc) !important;
}

/* Richer transparent right-rail widgets. */
body.home-feed-page .right-sidebar .feed-rail-box-head-rich {
  align-items: center !important;
  padding: 0 2px 2px !important;
}

body.home-feed-page .right-sidebar .feed-rail-box-head-rich h3 {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  font-weight: 950 !important;
}

body.home-feed-page .right-sidebar .feed-rail-title-icon {
  width: 28px !important;
  height: 28px !important;
  border-radius: 12px !important;
  display: inline-grid !important;
  place-items: center !important;
  background: color-mix(in srgb, var(--accent, #1877f2) 16%, transparent) !important;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent, #1877f2) 22%, transparent) !important;
  font-size: 15px !important;
}

/* Right rail utility text should read quietly, not like action buttons. */
body.home-feed-page .right-sidebar .feed-quick-links-box .feed-rail-box-head h3,
body.home-feed-page .right-sidebar .feed-tag-cloud-box .feed-rail-box-head h3,
body.home-feed-page .right-sidebar .admin-sidebar-link-site-video-channel .admin-block-title-row h3,
body.home-feed-page .right-sidebar .admin-sidebar-link-site-blog .admin-block-title-row h3,
body.home-feed-page .right-sidebar .feed-rail-box-head-rich h3 {
  font-weight: 700 !important;
}

body.home-feed-page .right-sidebar .feed-quick-links-box .feed-right-links a,
body.home-feed-page .right-sidebar .feed-tag-cloud-box .feed-tag-chip,
body.home-feed-page .right-sidebar .admin-sidebar-link-site-video-channel .admin-sidebar-button,
body.home-feed-page .right-sidebar .admin-sidebar-link-site-blog .admin-sidebar-button {
  font-weight: 500 !important;
}

body.home-feed-page .right-sidebar .feed-tag-cloud-box .feed-tag-chip span {
  font-weight: 650 !important;
}

body.home-feed-page .right-sidebar .admin-sidebar-link-site-video-channel p,
body.home-feed-page .right-sidebar .admin-sidebar-link-site-blog p,
body.home-feed-page .right-sidebar .feed-rail-empty {
  font-weight: 500 !important;
}

body.home-feed-page .right-sidebar .feed-rail-box-head-rich small {
  color: var(--muted, #65676b) !important;
  font-size: 11px !important;
  font-weight: 900 !important;
}

body.home-feed-page .right-sidebar .feed-websites-carousel {
  min-height: 278px !important;
}

body.home-feed-page .right-sidebar .feed-websites-carousel .feed-website-pair {
  gap: 12px !important;
  padding: 1px !important;
}

body.home-feed-page .right-sidebar .feed-websites-rail-box .feed-website-card {
  position: relative !important;
  display: grid !important;
  grid-template-columns: 74px minmax(0, 1fr) !important;
  gap: 11px !important;
  align-items: center !important;
  min-height: 94px !important;
  padding: 10px 10px 32px !important;
  overflow: hidden !important;
  border-radius: 20px !important;
  background:
    radial-gradient(circle at 14px 12px, color-mix(in srgb, var(--accent, #1877f2) 18%, transparent), transparent 42%),
    color-mix(in srgb, var(--card, #ffffff) 16%, transparent) !important;
  border: 1px solid color-mix(in srgb, var(--line, #d9dde3) 58%, transparent) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.18) !important;
  backdrop-filter: blur(7px) !important;
  transition: transform .18s ease, border-color .18s ease, background .18s ease !important;
}

body.home-feed-page .right-sidebar .feed-websites-rail-box .feed-website-card:hover {
  transform: translateY(-2px) !important;
  border-color: color-mix(in srgb, var(--accent, #1877f2) 38%, var(--line, #d9dde3)) !important;
  background:
    radial-gradient(circle at 14px 12px, color-mix(in srgb, var(--accent, #1877f2) 25%, transparent), transparent 46%),
    color-mix(in srgb, var(--card, #ffffff) 24%, transparent) !important;
  color: var(--text, #1c1e21) !important;
}

body.home-feed-page .right-sidebar .feed-websites-rail-box .feed-website-thumb {
  width: 74px !important;
  height: 74px !important;
  border-radius: 18px !important;
  border: 1px solid color-mix(in srgb, var(--line, #d9dde3) 64%, transparent) !important;
  box-shadow: 0 12px 24px rgba(15,23,42,.12) !important;
  background: color-mix(in srgb, var(--card, #fff) 22%, transparent) !important;
}

body.home-feed-page .right-sidebar .feed-websites-rail-box .feed-website-meta {
  gap: 5px !important;
  padding-right: 4px !important;
}

body.home-feed-page .right-sidebar .feed-websites-rail-box .feed-website-meta strong {
  font-size: 14px !important;
  line-height: 1.15 !important;
  font-weight: 950 !important;
}

body.home-feed-page .right-sidebar .feed-websites-rail-box .feed-website-meta small {
  font-size: 11px !important;
  line-height: 1.25 !important;
  color: var(--muted, #65676b) !important;
}

body.home-feed-page .right-sidebar .feed-websites-rail-box .feed-website-open {
  position: absolute !important;
  left: 96px !important;
  bottom: 9px !important;
  display: inline-flex !important;
  align-items: center !important;
  min-height: 20px !important;
  padding: 3px 8px !important;
  border-radius: 999px !important;
  background: color-mix(in srgb, var(--accent, #1877f2) 14%, transparent) !important;
  color: var(--accent, #1877f2) !important;
  font-size: 10px !important;
  font-weight: 950 !important;
}

body.home-feed-page .right-sidebar .feed-website-dots,
body.home-feed-page .right-sidebar .feed-active-dots {
  display: flex !important;
  gap: 6px !important;
  justify-content: center !important;
  margin-top: 10px !important;
}

body.home-feed-page .right-sidebar .feed-website-dot,
body.home-feed-page .right-sidebar .feed-active-dot {
  width: 7px !important;
  height: 7px !important;
  border-radius: 999px !important;
  background: color-mix(in srgb, var(--muted, #65676b) 36%, transparent) !important;
  border: 0 !important;
  cursor: pointer !important;
  transition: width .2s ease, background .2s ease !important;
}

body.home-feed-page .right-sidebar .feed-website-dot.is-active,
body.home-feed-page .right-sidebar .feed-active-dot.is-active {
  width: 20px !important;
  background: var(--accent, #1877f2) !important;
}

body.home-feed-page .right-sidebar .feed-active-users-carousel {
  position: relative !important;
  min-height: 184px !important;
  overflow: hidden !important;
}

body.home-feed-page .right-sidebar .feed-active-user-slide {
  position: relative !important;
  display: none !important;
  grid-template-columns: 62px minmax(0, 1fr) auto !important;
  gap: 10px !important;
  align-items: center !important;
  min-height: 154px !important;
  padding: 16px 13px 14px !important;
  text-decoration: none !important;
  color: var(--text, #1c1e21) !important;
  border-radius: 24px !important;
  overflow: hidden !important;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--accent, #1877f2) 18%, transparent), transparent 58%),
    color-mix(in srgb, var(--card, #ffffff) 14%, transparent) !important;
  border: 1px solid color-mix(in srgb, var(--line, #d9dde3) 58%, transparent) !important;
  backdrop-filter: blur(8px) !important;
}

body.home-feed-page .right-sidebar .feed-active-user-slide.is-active {
  display: grid !important;
  animation: feedActiveRise .42s ease both !important;
}

body.home-feed-page .right-sidebar .feed-active-user-slide:hover {
  transform: translateY(-2px) !important;
  border-color: color-mix(in srgb, var(--accent, #1877f2) 40%, var(--line, #d9dde3)) !important;
}

body.home-feed-page .right-sidebar .feed-active-rank {
  position: absolute !important;
  top: 10px !important;
  right: 10px !important;
  min-width: 38px !important;
  text-align: center !important;
  padding: 5px 8px !important;
  border-radius: 999px !important;
  background: var(--accent, #1877f2) !important;
  color: #fff !important;
  font-size: 12px !important;
  font-weight: 950 !important;
  box-shadow: 0 10px 20px rgba(24,119,242,.22) !important;
}

body.home-feed-page .right-sidebar .feed-active-avatar {
  width: 62px !important;
  height: 62px !important;
  border-radius: 22px !important;
  object-fit: cover !important;
  border: 2px solid color-mix(in srgb, var(--accent, #1877f2) 34%, transparent) !important;
  box-shadow: 0 14px 28px rgba(15,23,42,.14) !important;
}

body.home-feed-page .right-sidebar .feed-active-copy {
  min-width: 0 !important;
  display: grid !important;
  gap: 2px !important;
}

body.home-feed-page .right-sidebar .feed-active-copy strong {
  color: var(--text, #1c1e21) !important;
  font-size: 15px !important;
  font-weight: 950 !important;
  line-height: 1.15 !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

body.home-feed-page .right-sidebar .feed-active-copy small,
body.home-feed-page .right-sidebar .feed-active-score small,
body.home-feed-page .right-sidebar .feed-active-metrics span {
  color: var(--muted, #65676b) !important;
  font-size: 11px !important;
  font-weight: 800 !important;
}

body.home-feed-page .right-sidebar .feed-active-score {
  display: grid !important;
  place-items: center !important;
  min-width: 54px !important;
  padding-top: 34px !important;
}

body.home-feed-page .right-sidebar .feed-active-score b {
  color: var(--accent, #1877f2) !important;
  font-size: 22px !important;
  line-height: 1 !important;
  font-weight: 950 !important;
}

body.home-feed-page .right-sidebar .feed-active-metrics {
  grid-column: 1 / -1 !important;
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 6px !important;
  margin-top: 8px !important;
}

body.home-feed-page .right-sidebar .feed-active-metrics span {
  min-width: 0 !important;
  padding: 7px 6px !important;
  border-radius: 13px !important;
  text-align: center !important;
  background: color-mix(in srgb, var(--accent, #1877f2) 10%, transparent) !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

@keyframes feedActiveRise {
  from { opacity: .15; transform: translateY(10px) scale(.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

:is(html[data-theme="dark"], html[data-theme="lavender_night"], html[data-theme="midnight_slate"], html[data-theme="high_contrast"]) body.home-feed-page .right-sidebar .feed-active-copy strong,
:is(html[data-theme="dark"], html[data-theme="lavender_night"], html[data-theme="midnight_slate"], html[data-theme="high_contrast"]) body.home-feed-page .right-sidebar .feed-websites-rail-box .feed-website-meta strong {
  color: var(--text, #f8fafc) !important;
}

:is(html[data-theme="dark"], html[data-theme="lavender_night"], html[data-theme="midnight_slate"], html[data-theme="high_contrast"]) body.home-feed-page .right-sidebar .feed-active-copy small,
:is(html[data-theme="dark"], html[data-theme="lavender_night"], html[data-theme="midnight_slate"], html[data-theme="high_contrast"]) body.home-feed-page .right-sidebar .feed-active-score small,
:is(html[data-theme="dark"], html[data-theme="lavender_night"], html[data-theme="midnight_slate"], html[data-theme="high_contrast"]) body.home-feed-page .right-sidebar .feed-active-metrics span,
:is(html[data-theme="dark"], html[data-theme="lavender_night"], html[data-theme="midnight_slate"], html[data-theme="high_contrast"]) body.home-feed-page .right-sidebar .feed-websites-rail-box .feed-website-meta small {
  color: var(--muted, #aab6c7) !important;
}

body.profile-page .profile-story-surface-highlights .profile-highlights-rail-compact,
html[data-theme] body.profile-page .profile-story-surface-highlights .profile-highlights-rail-compact {
  border: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
}

body.profile-page .profile-highlights-story-line .story-circle,
body.profile-page .profile-highlights-story-line .story-empty-launch,
body.profile-page .profile-highlights-story-line .story-add-mini,
html[data-theme] body.profile-page .profile-highlights-story-line .story-circle,
html[data-theme] body.profile-page .profile-highlights-story-line .story-empty-launch,
html[data-theme] body.profile-page .profile-highlights-story-line .story-add-mini {
  border: 0 !important;
}

/* Theme bridge for profile owner controls that older modules painted black. */
body.profile-page {
  --profile-theme-control-bg: color-mix(in srgb, var(--accent, #1877f2) 14%, var(--card, #ffffff));
  --profile-theme-control-text: color-mix(in srgb, var(--accent, #1877f2) 82%, var(--text, #1c1e21));
  --profile-theme-control-border: color-mix(in srgb, var(--accent, #1877f2) 34%, var(--line, #d9dde3));
  --profile-theme-control-shadow: 0 10px 22px color-mix(in srgb, var(--accent, #1877f2) 16%, transparent);
  --profile-theme-primary-bg: linear-gradient(135deg, var(--accent, #1877f2), color-mix(in srgb, var(--accent, #1877f2) 72%, var(--text, #1c1e21)));
}

body.profile-page :where(
  .profile-view-chip,
  .profile-sidebar-visibility-toggle,
  .profile-bio-story-stack .profile-story-tools-dropdown summary,
  .profile-story-tools-dropdown summary,
  .profile-custom-marquee-manage-btn,
  .profile-bio-avatar-btn,
  .post-admin-options-toggle,
  .post-card .post-admin-options-toggle,
  .feed-list .post-admin-options-toggle,
  .profile-feed-column .post-admin-options-toggle,
  .profile-bio-more-btn
) {
  background: var(--profile-theme-control-bg) !important;
  color: var(--profile-theme-control-text) !important;
  border-color: var(--profile-theme-control-border) !important;
  box-shadow: var(--profile-theme-control-shadow) !important;
}

body.profile-page :where(
  .profile-view-chip span,
  .profile-view-chip strong,
  .profile-bio-story-stack .profile-story-tools-dropdown summary span,
  .profile-story-tools-dropdown summary span
) {
  color: var(--profile-theme-control-text) !important;
}

/* Keep profile feed tabs and the sort dropdown on one row on desktop. */
@media (min-width: 981px) {
  body.profile-page .profile-feed-main-toolbar .profile-tabs-toolbar.feed-toolbar-row {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 10px !important;
    flex-wrap: nowrap !important;
    width: 100% !important;
  }

  body.profile-page .profile-feed-main-toolbar .profile-feed-mode-bar {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    flex: 0 1 auto !important;
    flex-wrap: nowrap !important;
    min-width: 0 !important;
  }

  body.profile-page .profile-feed-main-toolbar .profile-feed-filter-dropdowns {
    display: flex !important;
    align-items: center !important;
    flex: 0 0 clamp(180px, 34%, 240px) !important;
    width: auto !important;
    min-width: 180px !important;
    max-width: 240px !important;
    margin-left: auto !important;
  }

  body.profile-page .profile-feed-main-toolbar .feed-filter-select-wrap {
    flex: 1 1 100% !important;
    width: 100% !important;
    min-width: 0 !important;
  }

  body.profile-page .profile-feed-main-toolbar .feed-filter-select-wrap select {
    width: 100% !important;
    min-width: 0 !important;
  }
}

@media (max-width: 980px) {
  body.home-feed-page .feed-toolbar-card.feed-toolbar-card {
    margin: 0 0 12px !important;
    padding: 8px !important;
    border-left: 0 !important;
    border-right: 0 !important;
    border-radius: 0 !important;
  }

  body.home-feed-page .feed-toolbar-card .feed-filter-dropdowns {
    width: 100% !important;
    flex: 1 1 100% !important;
  }

  body.home-feed-page .feed-toolbar-card .feed-filter-select-wrap {
    flex: 1 1 calc(50% - 5px) !important;
  }

  body.profile-page .profile-feed-main-toolbar .profile-tabs-toolbar.feed-toolbar-row {
    flex-wrap: wrap !important;
    align-items: stretch !important;
  }

  body.profile-page .profile-feed-main-toolbar .profile-feed-mode-bar,
  body.profile-page .profile-feed-main-toolbar .profile-feed-filter-dropdowns {
    flex: 1 1 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    margin-left: 0 !important;
  }
}

body.home-feed-page :where(.post-card, [data-post-card], .post-poll-wrap) .poll-card :where(.poll-share-btn, .poll-vote-btn),
body.profile-page :where(.post-card, [data-post-card], .post-poll-wrap) .poll-card :where(.poll-share-btn, .poll-vote-btn),
body.profile-page :where(.profile-action-chip.profile-media-action-btn, .profile-action-chip.profile-action-chip-link, .gift-send-open-btn, .point-shop-cta-btn, .achievements-sidebar-more-btn) {
  background: var(--profile-theme-primary-bg, linear-gradient(135deg, var(--accent, #1877f2), color-mix(in srgb, var(--accent, #1877f2) 72%, var(--text, #1c1e21)))) !important;
  color: #fff !important;
  border-color: var(--accent, #1877f2) !important;
  box-shadow: 0 12px 26px color-mix(in srgb, var(--accent, #1877f2) 24%, transparent) !important;
}

body.home-feed-page :where(.post-card, [data-post-card], .post-poll-wrap) .poll-card .poll-open-btn,
body.profile-page :where(.post-card, [data-post-card], .post-poll-wrap) .poll-card .poll-open-btn {
  background: var(--profile-theme-control-bg, var(--feed-theme-soft-accent)) !important;
  color: var(--profile-theme-control-text, var(--accent, #1877f2)) !important;
  border-color: var(--profile-theme-control-border, var(--line, #d9dde3)) !important;
}

html[data-theme="high_contrast"] body.home-feed-page :where(.post-card, [data-post-card], .post-poll-wrap) .poll-card :where(.poll-share-btn, .poll-vote-btn),
html[data-theme="high_contrast"] body.profile-page :where(.post-card, [data-post-card], .post-poll-wrap) .poll-card :where(.poll-share-btn, .poll-vote-btn),
html[data-theme="high_contrast"] body.profile-page :where(.profile-action-chip.profile-media-action-btn, .profile-action-chip.profile-action-chip-link, .gift-send-open-btn, .point-shop-cta-btn, .achievements-sidebar-more-btn) {
  color: #000 !important;
}

/* Wallpaper controls must win after theme repaint rules. */
body.home-feed-page.wallpaper-page-active .layout-grid :where(
  .card,
  .panel,
  .post-card,
  [data-post-card],
  .feed-post,
  .composer-launcher-card,
  .feed-reels-tabs-card,
  .feed-left-nav-card,
  .feed-rail-box,
  .admin-sidebar-block,
  .admin-feed-block,
  .feed-mini-user-row,
  .feed-mini-post-row,
  .feed-admin-shortcut-row,
  .shared-profile-card,
  .bookmarked-profile-card,
  .empty-state
) {
  background-color: rgba(255, 255, 255, var(--main-feed-ui-alpha, 1)) !important;
  background-image: none !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

body.profile-page.wallpaper-page-active .layout-grid :where(
  .card,
  .panel,
  .post-card,
  [data-post-card],
  .entity-post-card,
  .blog-readable-card,
  .shop-item-card,
  .shared-profile-card,
  .bookmarked-profile-card,
  .profile-bio-card,
  .profile-action-rail-card,
  .profile-bio-story-stack .profile-highlights-rail,
  .profile-bio-story-stack .profile-highlights-rail-compact,
  .profile-sidebar-gallery,
  .profile-sidebar-friends-card,
  .profile-sidebar-gifts-card,
  .achievements-rail-card,
  .profile-owner-preview-sidecard,
  .profile-side-widget,
  .admin-sidebar-block,
  .admin-feed-block
) {
  background-color: rgba(255, 255, 255, var(--profile-ui-alpha, 1)) !important;
  background-image: none !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

:is(html[data-theme="dark"], html[data-theme="lavender_night"], html[data-theme="midnight_slate"], html[data-theme="high_contrast"]) body.home-feed-page.wallpaper-page-active .layout-grid :where(
  .card,
  .panel,
  .post-card,
  [data-post-card],
  .feed-post,
  .composer-launcher-card,
  .feed-reels-tabs-card,
  .feed-left-nav-card,
  .feed-rail-box,
  .admin-sidebar-block,
  .admin-feed-block,
  .feed-mini-user-row,
  .feed-mini-post-row,
  .feed-admin-shortcut-row,
  .shared-profile-card,
  .bookmarked-profile-card,
  .empty-state
) {
  background-color: rgba(17, 24, 39, var(--main-feed-ui-alpha, 1)) !important;
  background-image: none !important;
}

:is(html[data-theme="dark"], html[data-theme="lavender_night"], html[data-theme="midnight_slate"], html[data-theme="high_contrast"]) body.profile-page.wallpaper-page-active .layout-grid :where(
  .card,
  .panel,
  .post-card,
  [data-post-card],
  .entity-post-card,
  .blog-readable-card,
  .shop-item-card,
  .shared-profile-card,
  .bookmarked-profile-card,
  .profile-bio-card,
  .profile-action-rail-card,
  .profile-bio-story-stack .profile-highlights-rail,
  .profile-bio-story-stack .profile-highlights-rail-compact,
  .profile-sidebar-gallery,
  .profile-sidebar-friends-card,
  .profile-sidebar-gifts-card,
  .achievements-rail-card,
  .profile-owner-preview-sidecard,
  .profile-side-widget,
  .admin-sidebar-block,
  .admin-feed-block
) {
  background-color: rgba(17, 24, 39, var(--profile-ui-alpha, 1)) !important;
  background-image: none !important;
}

:is(html[data-theme="dark"], html[data-theme="lavender_night"], html[data-theme="midnight_slate"], html[data-theme="high_contrast"]) body.home-feed-page.wallpaper-page-active .left-sidebar .admin-sidebar-block.admin-block-style-boxed.admin-block-context-sidebar,
:is(html[data-theme="dark"], html[data-theme="lavender_night"], html[data-theme="midnight_slate"], html[data-theme="high_contrast"]) body.home-feed-page.wallpaper-page-active .right-sidebar .admin-sidebar-block.admin-block-style-boxed.admin-block-context-sidebar,
:is(html[data-theme="dark"], html[data-theme="lavender_night"], html[data-theme="midnight_slate"], html[data-theme="high_contrast"]) body.home-feed-page.wallpaper-page-active .right-sidebar .feed-quick-links-box,
:is(html[data-theme="dark"], html[data-theme="lavender_night"], html[data-theme="midnight_slate"], html[data-theme="high_contrast"]) body.home-feed-page.wallpaper-page-active .right-sidebar .feed-tag-cloud-box,
:is(html[data-theme="dark"], html[data-theme="lavender_night"], html[data-theme="midnight_slate"], html[data-theme="high_contrast"]) body.home-feed-page.wallpaper-page-active .right-sidebar .admin-sidebar-link-site-video-channel,
:is(html[data-theme="dark"], html[data-theme="lavender_night"], html[data-theme="midnight_slate"], html[data-theme="high_contrast"]) body.home-feed-page.wallpaper-page-active .right-sidebar .admin-sidebar-link-site-blog {
  background-color: rgba(17, 24, 39, var(--main-feed-ui-alpha, 1)) !important;
  background-image: none !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

body.home-feed-page.wallpaper-page-active .left-sidebar .admin-sidebar-block.admin-block-style-boxed.admin-block-context-sidebar,
body.home-feed-page.wallpaper-page-active .right-sidebar .admin-sidebar-block.admin-block-style-boxed.admin-block-context-sidebar,
body.home-feed-page.wallpaper-page-active .right-sidebar .feed-quick-links-box,
body.home-feed-page.wallpaper-page-active .right-sidebar .feed-tag-cloud-box,
body.home-feed-page.wallpaper-page-active .right-sidebar .admin-sidebar-link-site-video-channel,
body.home-feed-page.wallpaper-page-active .right-sidebar .admin-sidebar-link-site-blog {
  background-color: rgba(255, 255, 255, var(--main-feed-ui-alpha, 1)) !important;
  background-image: none !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

body.home-feed-page.wallpaper-page-active .layout-grid .card,
body.home-feed-page.wallpaper-page-active .layout-grid .panel,
body.home-feed-page.wallpaper-page-active .layout-grid .post-card,
body.home-feed-page.wallpaper-page-active .layout-grid [data-post-card],
body.home-feed-page.wallpaper-page-active .layout-grid .feed-post,
body.home-feed-page.wallpaper-page-active .layout-grid .composer-launcher-card,
body.home-feed-page.wallpaper-page-active .layout-grid .feed-reels-tabs-card,
body.home-feed-page.wallpaper-page-active .layout-grid .feed-left-nav-card,
body.home-feed-page.wallpaper-page-active .layout-grid .feed-rail-box,
body.home-feed-page.wallpaper-page-active .layout-grid .admin-sidebar-block,
body.home-feed-page.wallpaper-page-active .layout-grid .admin-feed-block,
body.home-feed-page.wallpaper-page-active .layout-grid .feed-mini-user-row,
body.home-feed-page.wallpaper-page-active .layout-grid .feed-mini-post-row,
body.home-feed-page.wallpaper-page-active .layout-grid .feed-admin-shortcut-row,
body.home-feed-page.wallpaper-page-active .layout-grid .shared-profile-card,
body.home-feed-page.wallpaper-page-active .layout-grid .bookmarked-profile-card,
body.home-feed-page.wallpaper-page-active .layout-grid .empty-state {
  background-color: rgba(255, 255, 255, var(--main-feed-ui-alpha, 1)) !important;
  background-image: none !important;
}

body.profile-page.wallpaper-page-active .layout-grid .card,
body.profile-page.wallpaper-page-active .layout-grid .panel,
body.profile-page.wallpaper-page-active .layout-grid .post-card,
body.profile-page.wallpaper-page-active .layout-grid [data-post-card],
body.profile-page.wallpaper-page-active .layout-grid .entity-post-card,
body.profile-page.wallpaper-page-active .layout-grid .blog-readable-card,
body.profile-page.wallpaper-page-active .layout-grid .shop-item-card,
body.profile-page.wallpaper-page-active .layout-grid .shared-profile-card,
body.profile-page.wallpaper-page-active .layout-grid .bookmarked-profile-card,
body.profile-page.wallpaper-page-active .layout-grid .profile-bio-card,
body.profile-page.wallpaper-page-active .layout-grid .profile-action-rail-card,
body.profile-page.wallpaper-page-active .layout-grid .profile-sidebar-gallery,
body.profile-page.wallpaper-page-active .layout-grid .profile-sidebar-friends-card,
body.profile-page.wallpaper-page-active .layout-grid .profile-sidebar-gifts-card,
body.profile-page.wallpaper-page-active .layout-grid .achievements-rail-card,
body.profile-page.wallpaper-page-active .layout-grid .profile-owner-preview-sidecard,
body.profile-page.wallpaper-page-active .layout-grid .profile-side-widget,
body.profile-page.wallpaper-page-active .layout-grid .admin-sidebar-block,
body.profile-page.wallpaper-page-active .layout-grid .admin-feed-block {
  background-color: rgba(255, 255, 255, var(--profile-ui-alpha, 1)) !important;
  background-image: none !important;
}

:is(html[data-theme="dark"], html[data-theme="lavender_night"], html[data-theme="midnight_slate"], html[data-theme="high_contrast"]) body.home-feed-page.wallpaper-page-active .layout-grid .card,
:is(html[data-theme="dark"], html[data-theme="lavender_night"], html[data-theme="midnight_slate"], html[data-theme="high_contrast"]) body.home-feed-page.wallpaper-page-active .layout-grid .panel,
:is(html[data-theme="dark"], html[data-theme="lavender_night"], html[data-theme="midnight_slate"], html[data-theme="high_contrast"]) body.home-feed-page.wallpaper-page-active .layout-grid .post-card,
:is(html[data-theme="dark"], html[data-theme="lavender_night"], html[data-theme="midnight_slate"], html[data-theme="high_contrast"]) body.home-feed-page.wallpaper-page-active .layout-grid [data-post-card],
:is(html[data-theme="dark"], html[data-theme="lavender_night"], html[data-theme="midnight_slate"], html[data-theme="high_contrast"]) body.home-feed-page.wallpaper-page-active .layout-grid .feed-post,
:is(html[data-theme="dark"], html[data-theme="lavender_night"], html[data-theme="midnight_slate"], html[data-theme="high_contrast"]) body.home-feed-page.wallpaper-page-active .layout-grid .composer-launcher-card,
:is(html[data-theme="dark"], html[data-theme="lavender_night"], html[data-theme="midnight_slate"], html[data-theme="high_contrast"]) body.home-feed-page.wallpaper-page-active .layout-grid .feed-reels-tabs-card,
:is(html[data-theme="dark"], html[data-theme="lavender_night"], html[data-theme="midnight_slate"], html[data-theme="high_contrast"]) body.home-feed-page.wallpaper-page-active .layout-grid .feed-left-nav-card,
:is(html[data-theme="dark"], html[data-theme="lavender_night"], html[data-theme="midnight_slate"], html[data-theme="high_contrast"]) body.home-feed-page.wallpaper-page-active .layout-grid .feed-rail-box,
:is(html[data-theme="dark"], html[data-theme="lavender_night"], html[data-theme="midnight_slate"], html[data-theme="high_contrast"]) body.home-feed-page.wallpaper-page-active .layout-grid .admin-sidebar-block,
:is(html[data-theme="dark"], html[data-theme="lavender_night"], html[data-theme="midnight_slate"], html[data-theme="high_contrast"]) body.home-feed-page.wallpaper-page-active .layout-grid .admin-feed-block,
:is(html[data-theme="dark"], html[data-theme="lavender_night"], html[data-theme="midnight_slate"], html[data-theme="high_contrast"]) body.home-feed-page.wallpaper-page-active .layout-grid .feed-mini-user-row,
:is(html[data-theme="dark"], html[data-theme="lavender_night"], html[data-theme="midnight_slate"], html[data-theme="high_contrast"]) body.home-feed-page.wallpaper-page-active .layout-grid .feed-mini-post-row,
:is(html[data-theme="dark"], html[data-theme="lavender_night"], html[data-theme="midnight_slate"], html[data-theme="high_contrast"]) body.home-feed-page.wallpaper-page-active .layout-grid .feed-admin-shortcut-row,
:is(html[data-theme="dark"], html[data-theme="lavender_night"], html[data-theme="midnight_slate"], html[data-theme="high_contrast"]) body.home-feed-page.wallpaper-page-active .layout-grid .shared-profile-card,
:is(html[data-theme="dark"], html[data-theme="lavender_night"], html[data-theme="midnight_slate"], html[data-theme="high_contrast"]) body.home-feed-page.wallpaper-page-active .layout-grid .bookmarked-profile-card,
:is(html[data-theme="dark"], html[data-theme="lavender_night"], html[data-theme="midnight_slate"], html[data-theme="high_contrast"]) body.home-feed-page.wallpaper-page-active .layout-grid .empty-state {
  background-color: rgba(17, 24, 39, var(--main-feed-ui-alpha, 1)) !important;
  background-image: none !important;
}

:is(html[data-theme="dark"], html[data-theme="lavender_night"], html[data-theme="midnight_slate"], html[data-theme="high_contrast"]) body.profile-page.wallpaper-page-active .layout-grid .card,
:is(html[data-theme="dark"], html[data-theme="lavender_night"], html[data-theme="midnight_slate"], html[data-theme="high_contrast"]) body.profile-page.wallpaper-page-active .layout-grid .panel,
:is(html[data-theme="dark"], html[data-theme="lavender_night"], html[data-theme="midnight_slate"], html[data-theme="high_contrast"]) body.profile-page.wallpaper-page-active .layout-grid .post-card,
:is(html[data-theme="dark"], html[data-theme="lavender_night"], html[data-theme="midnight_slate"], html[data-theme="high_contrast"]) body.profile-page.wallpaper-page-active .layout-grid [data-post-card],
:is(html[data-theme="dark"], html[data-theme="lavender_night"], html[data-theme="midnight_slate"], html[data-theme="high_contrast"]) body.profile-page.wallpaper-page-active .layout-grid .entity-post-card,
:is(html[data-theme="dark"], html[data-theme="lavender_night"], html[data-theme="midnight_slate"], html[data-theme="high_contrast"]) body.profile-page.wallpaper-page-active .layout-grid .blog-readable-card,
:is(html[data-theme="dark"], html[data-theme="lavender_night"], html[data-theme="midnight_slate"], html[data-theme="high_contrast"]) body.profile-page.wallpaper-page-active .layout-grid .shop-item-card,
:is(html[data-theme="dark"], html[data-theme="lavender_night"], html[data-theme="midnight_slate"], html[data-theme="high_contrast"]) body.profile-page.wallpaper-page-active .layout-grid .shared-profile-card,
:is(html[data-theme="dark"], html[data-theme="lavender_night"], html[data-theme="midnight_slate"], html[data-theme="high_contrast"]) body.profile-page.wallpaper-page-active .layout-grid .bookmarked-profile-card,
:is(html[data-theme="dark"], html[data-theme="lavender_night"], html[data-theme="midnight_slate"], html[data-theme="high_contrast"]) body.profile-page.wallpaper-page-active .layout-grid .profile-bio-card,
:is(html[data-theme="dark"], html[data-theme="lavender_night"], html[data-theme="midnight_slate"], html[data-theme="high_contrast"]) body.profile-page.wallpaper-page-active .layout-grid .profile-action-rail-card,
:is(html[data-theme="dark"], html[data-theme="lavender_night"], html[data-theme="midnight_slate"], html[data-theme="high_contrast"]) body.profile-page.wallpaper-page-active .layout-grid .profile-sidebar-gallery,
:is(html[data-theme="dark"], html[data-theme="lavender_night"], html[data-theme="midnight_slate"], html[data-theme="high_contrast"]) body.profile-page.wallpaper-page-active .layout-grid .profile-sidebar-friends-card,
:is(html[data-theme="dark"], html[data-theme="lavender_night"], html[data-theme="midnight_slate"], html[data-theme="high_contrast"]) body.profile-page.wallpaper-page-active .layout-grid .profile-sidebar-gifts-card,
:is(html[data-theme="dark"], html[data-theme="lavender_night"], html[data-theme="midnight_slate"], html[data-theme="high_contrast"]) body.profile-page.wallpaper-page-active .layout-grid .achievements-rail-card,
:is(html[data-theme="dark"], html[data-theme="lavender_night"], html[data-theme="midnight_slate"], html[data-theme="high_contrast"]) body.profile-page.wallpaper-page-active .layout-grid .profile-owner-preview-sidecard,
:is(html[data-theme="dark"], html[data-theme="lavender_night"], html[data-theme="midnight_slate"], html[data-theme="high_contrast"]) body.profile-page.wallpaper-page-active .layout-grid .profile-side-widget,
:is(html[data-theme="dark"], html[data-theme="lavender_night"], html[data-theme="midnight_slate"], html[data-theme="high_contrast"]) body.profile-page.wallpaper-page-active .layout-grid .admin-sidebar-block,
:is(html[data-theme="dark"], html[data-theme="lavender_night"], html[data-theme="midnight_slate"], html[data-theme="high_contrast"]) body.profile-page.wallpaper-page-active .layout-grid .admin-feed-block {
  background-color: rgba(17, 24, 39, var(--profile-ui-alpha, 1)) !important;
  background-image: none !important;
}

/* Profile intro + Options should read as one attached white surface. */
@media (min-width: 981px) {
  body.profile-page.profile-intro-combined .profile-intro-shell {
    border-bottom-left-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
  }

  body.profile-page.profile-intro-combined .profile-action-rail-card.profile-action-strip-card.profile-actions-dropdown-card,
  body.profile-page.profile-intro-combined .profile-action-strip-card.profile-actions-dropdown-card {
    --profile-actions-surface: var(--card, #fff) !important;
    --profile-actions-summary: var(--card, #fff) !important;
    margin-top: -18px !important;
    border-top-left-radius: 0 !important;
    border-top-right-radius: 0 !important;
    border-top-color: rgba(15, 23, 42, .08) !important;
    background: var(--card, #fff) !important;
    background-color: var(--card, #fff) !important;
    background-image: none !important;
  }

  body.profile-page.profile-intro-combined .profile-actions-dropdown-card > summary.profile-action-rail-head {
    background: var(--card, #fff) !important;
  }
}

/* Main-feed right rail: make Random Reels feel like a polished compact list. */
body.home-feed-page .right-sidebar .reels-rail-box {
  padding: 4px 0 2px !important;
}

body.home-feed-page .right-sidebar .reels-rail-box .reels-rail-head {
  margin: 0 0 8px !important;
  padding: 0 2px 8px !important;
  border-bottom: 1px solid color-mix(in srgb, var(--line, #d9dde3) 66%, transparent) !important;
}

body.home-feed-page .right-sidebar .reels-rail-box .reels-rail-head > div {
  min-width: 0 !important;
}

body.home-feed-page .right-sidebar .reels-rail-box .reels-rail-head h3 {
  gap: 8px !important;
  font-size: 15px !important;
  font-weight: 950 !important;
  line-height: 1.1 !important;
  position: relative !important;
}

body.home-feed-page .right-sidebar .reels-rail-box .reels-rail-head h3::before {
  content: "";
  width: 28px !important;
  height: 28px !important;
  display: inline-grid !important;
  place-items: center !important;
  flex: 0 0 auto !important;
  border-radius: 10px !important;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--accent, #1877f2) 88%, #fff), color-mix(in srgb, var(--hmoob-secondary, #ec4899) 74%, #fff)) !important;
  box-shadow: 0 10px 24px color-mix(in srgb, var(--accent, #1877f2) 20%, transparent) !important;
  -webkit-mask: none !important;
  mask: none !important;
}

body.home-feed-page .right-sidebar .reels-rail-box .reels-rail-head h3::after {
  content: "";
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  margin: 0;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-left: 9px solid #fff;
  z-index: 1;
}

body.home-feed-page .right-sidebar .reels-rail-box .reels-rail-head small {
  display: block !important;
  margin-top: 3px !important;
  color: var(--muted, #65676b) !important;
  font-size: 11px !important;
  font-weight: 800 !important;
}

body.home-feed-page .right-sidebar .reels-rail-box .reels-rail-head a {
  min-height: 30px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 7px 10px !important;
  border-radius: 999px !important;
  background: color-mix(in srgb, var(--accent, #1877f2) 11%, var(--card, #fff)) !important;
  color: var(--accent, #1877f2) !important;
  font-size: 12px !important;
  font-weight: 950 !important;
  text-decoration: none !important;
  border: 1px solid color-mix(in srgb, var(--accent, #1877f2) 18%, transparent) !important;
}

body.home-feed-page .right-sidebar .reels-rail-list {
  gap: 7px !important;
}

body.home-feed-page .right-sidebar .reels-rail-list .reel-card,
body.home-feed-page .right-sidebar .reels-rail-list .reel-card-surface {
  margin: 0 !important;
  min-width: 0 !important;
}

body.home-feed-page .right-sidebar .reels-rail-list .reel-card-surface {
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

body.home-feed-page .right-sidebar .reels-rail-list .reel-card-open {
  width: 100% !important;
  display: grid !important;
  grid-template-columns: 62px minmax(0, 1fr) !important;
  align-items: center !important;
  gap: 10px !important;
  padding: 8px !important;
  border: 1px solid color-mix(in srgb, var(--line, #d9dde3) 72%, transparent) !important;
  border-radius: 16px !important;
  background: color-mix(in srgb, var(--card, #fff) 82%, var(--bg, #f0f2f5)) !important;
  box-shadow: none !important;
  overflow: hidden !important;
  transition: background .16s ease, border-color .16s ease, transform .16s ease !important;
}

body.home-feed-page .right-sidebar .reels-rail-list .reel-card-open:hover,
body.home-feed-page .right-sidebar .reels-rail-list .reel-card-open:focus-visible {
  background: color-mix(in srgb, var(--accent, #1877f2) 10%, var(--card, #fff)) !important;
  border-color: color-mix(in srgb, var(--accent, #1877f2) 24%, var(--line, #d9dde3)) !important;
  color: var(--text, #1c1e21) !important;
  transform: translateY(-1px) !important;
  outline: 0 !important;
}

body.home-feed-page .right-sidebar .reels-rail-list .reel-card-thumb {
  width: 62px !important;
  height: 62px !important;
  aspect-ratio: auto !important;
  border-radius: 14px !important;
  background: color-mix(in srgb, var(--text, #1c1e21) 8%, var(--card, #fff)) !important;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--line, #d9dde3) 70%, transparent) !important;
}

body.home-feed-page .right-sidebar .reels-rail-list .reel-card-thumb img {
  transform: scale(1.01);
}

body.home-feed-page .right-sidebar .reels-rail-list .reel-card-thumb b {
  right: 6px !important;
  bottom: 6px !important;
  width: 24px !important;
  height: 24px !important;
  background: rgba(15, 23, 42, .82) !important;
  color: #fff !important;
  box-shadow: 0 8px 18px rgba(0, 0, 0, .22) !important;
}

body.home-feed-page .right-sidebar .reels-rail-list .reel-card-meta {
  display: grid !important;
  gap: 6px !important;
  margin: 0 !important;
  min-width: 0 !important;
}

body.home-feed-page .right-sidebar .reels-rail-list .reel-card-meta strong {
  display: -webkit-box !important;
  -webkit-box-orient: vertical !important;
  -webkit-line-clamp: 2 !important;
  white-space: normal !important;
  overflow: hidden !important;
  text-overflow: clip !important;
  color: var(--text, #1c1e21) !important;
  font-size: 12px !important;
  font-weight: 950 !important;
  line-height: 1.18 !important;
  letter-spacing: 0 !important;
}

body.home-feed-page .right-sidebar .reels-rail-list .reel-card-meta small {
  max-width: 100% !important;
  margin: 0 !important;
  color: var(--muted, #65676b) !important;
  font-size: 11px !important;
  font-weight: 850 !important;
}

body.home-feed-page .right-sidebar .reels-rail-list .reel-card-meta img {
  width: 18px !important;
  height: 18px !important;
  border: 1px solid color-mix(in srgb, var(--line, #d9dde3) 76%, transparent) !important;
  background: var(--card, #fff) !important;
}

:is(html[data-theme="dark"], html[data-theme="lavender_night"], html[data-theme="midnight_slate"], html[data-theme="high_contrast"]) body.home-feed-page .right-sidebar .reels-rail-list .reel-card-open {
  background: color-mix(in srgb, var(--card, #111827) 78%, var(--bg, #020617)) !important;
  border-color: color-mix(in srgb, var(--line, #334155) 82%, transparent) !important;
}

:is(html[data-theme="dark"], html[data-theme="lavender_night"], html[data-theme="midnight_slate"], html[data-theme="high_contrast"]) body.home-feed-page .right-sidebar .reels-rail-list .reel-card-open:hover,
:is(html[data-theme="dark"], html[data-theme="lavender_night"], html[data-theme="midnight_slate"], html[data-theme="high_contrast"]) body.home-feed-page .right-sidebar .reels-rail-list .reel-card-open:focus-visible {
  background: color-mix(in srgb, var(--accent, #60a5fa) 14%, var(--card, #111827)) !important;
  border-color: color-mix(in srgb, var(--accent, #60a5fa) 34%, var(--line, #334155)) !important;
}
