/* Rjeti.com v1.9.1 — TRUE BLACK / RED OUTLINE ICONS.
   Dark mode only. Light mode keeps the v1.9.0 design.
   This stylesheet intentionally loads LAST to override legacy light/blue selectors. */
body[data-theme="dark"] {
 color-scheme:dark;
 --red:#ff304c; --red2:#e51e3b; --red-soft:rgba(255,48,76,.10);
 --ink:#f3f3f5; --muted:#a6a6ae; --line:#2a2a30;
 --surface:#101012; --bg:#080809; --shadow:0 5px 22px rgba(0,0,0,.20);
 --r169-soft:#19191c; --r169-hover:#202024; --r169-text-secondary:#c8c8d0;
 --r169-border:#2a2a30; --r169-outside:#080809; --r169-field:#18181b;
 --r169-panel-shadow:0 15px 42px rgba(0,0,0,.55);
 --r186-surface:#101012; --r186-light:#19191c;
 --r186-shadow:0 4px 20px rgba(0,0,0,.18);
 --r186-shadow-hover:0 7px 23px rgba(0,0,0,.27);
 --surface-secondary:#19191c; --card:#101012; --border:#2a2a30;
 background:#080809!important; color:var(--ink);
}
body[data-theme="dark"] :where(.app-layout,.main-area,.page-main,.content-area){background:transparent;color:var(--ink)}
body[data-theme="dark"].guest{background:#080809!important}
body[data-theme="dark"] :where(.topbar,.r16-mobile-nav,.sidebar){background:#0d0d0f!important;border-color:var(--line)!important;box-shadow:none!important;color:var(--ink)}
body[data-theme="dark"] :where(.card,.widget,.settings-panel,.admin-panel,.stats-grid>.stat-card,
 .r16-panel,.post-card,.profile-card,.r15-messenger,.r15-chat-main,
 .r15-mini-chat,.r15-popover,.r15-inbox,.r15-conversation-list,
 .r167-dialog,.r163-modal-panel,.r163-stage,.r163-stage-header,.r163-footer,
 .r188-comments-sheet,.r188-comments-composer,.r188-comments-header,
 .post-options-menu,.r189-comment-menu,.r15-mini-compose,.r15-chat-compose){
 background:#101012!important;border-color:var(--line)!important;color:var(--ink);
 box-shadow:none;
}
body[data-theme="dark"] :where(.r163-overlay){background:rgba(0,0,0,.96);backdrop-filter:blur(8px)}
body[data-theme="dark"] :where(.r163-image-container,.r163-editor,.r15-chat-scroll,.r15-mini-items,.r15-chat-messages,
 .r188-comments-story,.r163-stage-error,.r167-prompt,.r167-dialog .v13-publish-mode,
 .top-search,.v12-comment-input,.r188-comments-count,.r190-comment-image,
 .settings-info,.event-topline,.composer-preview,.r165-image-preview,
 .r165-upload-status){background:#18181b!important;border-color:var(--line)!important;color:var(--ink)}
body[data-theme="dark"] :where(.r167-form-body,.r167-dialog-header,.r167-dialog .composer-bottom,
 .r15-popover-head,.r15-popover-foot,.r15-mini-head,.r15-mini-compose,
 .r15-chat-compose,.r163-progress,.r163-stage-caption){
 background:#101012!important;color:var(--ink)!important;border-color:var(--line)!important;
}
body[data-theme="dark"] :where(.card,.widget,.post-card,.r167-dialog,.r188-comments-sheet,
 .r15-popover,.post-options-menu,.r189-comment-menu){box-shadow:0 5px 28px rgba(0,0,0,.25)!important}
body[data-theme="dark"] :where(.right-welcome){background:#141416!important;background-image:none!important;border:1px solid var(--line);color:var(--ink)}
body[data-theme="dark"] :where(.right-welcome h2,.right-welcome p,.right-welcome strong){color:var(--ink)!important}
body[data-theme="dark"] :where(.profile-cover){background-color:#141416;background-image:linear-gradient(120deg,#161619,#252529)}
body[data-theme="dark"] :where(.auth-card,.auth-aside,.auth-wrap .card){background:#101012;color:var(--ink);border-color:var(--line)}
body[data-theme="dark"] :where(.auth-aside){background-image:none!important;background-color:#111113!important}
body[data-theme="dark"] :where(input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="file"]),
 select,textarea,.r15-attach,.r15-compose-body,.r167-form-body textarea,
 .r189-comment-report-form select,.r190-modal .r189-comment-report-form select){
 background:#19191c!important;color:var(--ink)!important;border-color:#34343a!important;
}
body[data-theme="dark"] :where(input,textarea)::placeholder{color:#a0a0aa!important;opacity:1}
body[data-theme="dark"] :where(.top-search input,.r167-form-body textarea[data-composer-body]){background:transparent!important}
body[data-theme="dark"] :where(.r15-conversation:hover,.r15-notice.unread,.r15-popover-notice.unread,
 .notification-item.unread,.r15-popover-notice:hover,.widget-user:hover,.widget-group:hover){
 background:#19191c!important;border-color:var(--line)!important;
}
body[data-theme="dark"] :where(.post-options>summary,.r189-comment-more>summary,
 .r188-comments-close,.r189-reply-cancel,.r190-modal .r190-photo,
 .mobile-menu,.r187-theme-toggle,.r16-notification-toggle button,
 .r167-close,.r15-history-button,.r15-bubble-tools button){
 background:transparent!important;box-shadow:none!important;border-color:transparent!important;
}
body[data-theme="dark"] :where(.post-options>summary:hover,.post-options[open]>summary,
 .r189-comment-more>summary:hover,.r189-comment-more[open]>summary,
 .r188-comments-close:hover,.r187-theme-toggle:hover,.mobile-menu:hover,
 .r16-mobile-nav a:hover){background:#1a1a1d!important}
body[data-theme="dark"] :where(.post-options-menu,.r189-comment-menu,.r15-popover){border:1px solid #313137!important}
body[data-theme="dark"] :where(.post-options-menu button,.r189-comment-menu button,
 .r189-comment-report-form button,.r188-comment-delete-form button){
 background:transparent!important;color:var(--ink)!important;border-color:var(--line)!important;
}
body[data-theme="dark"] :where(.post-options-menu button:hover,.r189-comment-menu button:hover){color:var(--red)!important;background:#1a1a1d!important}
body[data-theme="dark"] :where(.btn-outline,.btn-soft,.btn-danger){background:#171719;color:var(--ink);border-color:var(--line)}
body[data-theme="dark"] .btn-outline:hover{background:#222225;border-color:var(--red);color:var(--red)}
body[data-theme="dark"] :where(.feed-mode-tabs a,.r15-history-button,.r16-notification-toggle button){background:#171719;color:var(--ink);border-color:var(--line)}
body[data-theme="dark"] .feed-mode-tabs a.active{background:#29292e!important;border-color:#414149!important;color:var(--red)!important}
body[data-theme="dark"] :where(.muted,.meta,.r15-notice-copy small,.r15-conversation small,
 .r188-comments-subtitle,.r188-comment-by time){color:var(--muted)!important}

/* All left navigation icons: crisp red strokes, NEVER a filled icon tile. */
body[data-theme="dark"] :where(.sidebar .side-nav .nav-icon,.sidebar .side-nav .nav-link:hover .nav-icon,
 .sidebar .side-nav .nav-link.selected .nav-icon,.sidebar .nav-link .nav-icon,
 .sidebar .nav-link.selected .nav-icon){
 color:var(--red)!important;background:transparent!important;border:0!important;
 box-shadow:none!important;filter:none!important;transform:none;
}
body[data-theme="dark"] .sidebar .side-nav .nav-link .nav-icon,
body[data-theme="dark"] .sidebar .side-nav .nav-link.selected .nav-icon,
body[data-theme="dark"] .sidebar .side-nav .nav-link:hover .nav-icon{
color:var(--red)!important;background:transparent!important;border:0!important;box-shadow:none!important;
}
body[data-theme="dark"] .sidebar .side-nav .nav-icon :where(svg,.icon){color:var(--red)!important;stroke:currentColor}
body[data-theme="dark"] .side-nav .nav-link{color:var(--ink);background:transparent!important;border-color:transparent}
body[data-theme="dark"] .side-nav .nav-link:hover{background:#1a1a1d!important;color:#fff!important}
body[data-theme="dark"] .side-nav .nav-link.selected{background:#202023!important;color:#fff!important}
body[data-theme="dark"] .side-nav .nav-link.selected .nav-label{color:#fff!important}
body[data-theme="dark"] .sidebar-logout button{background:transparent!important;color:var(--ink)}
body[data-theme="dark"] .sidebar-logout button:hover{background:#1a1a1d!important}
body[data-theme="dark"] .sidebar-logout button .icon{color:var(--red)!important}
/* Remove decorative icon squares throughout menus/widgets/composers, not important badges or photos. */
body[data-theme="dark"] :where(.widget-gicon,.widget-gicon.alt,.widget-user b:last-child,
 .r167-quick-actions>button,.v12-composer .composer-tools>button,
 .v12-composer .composer-tools>.file-label,.r167-dialog .composer-tools>button,
 .r167-dialog .composer-tools>.file-label,.r190-modal .r190-photo,
 .post-actions .action-button,.r188-comments-trigger,.r15-header-actions .r183-call-button){
 background:transparent!important;box-shadow:none!important;
}
body[data-theme="dark"] :where(.widget-gicon,.widget-gicon.alt,.widget-user b:last-child){color:var(--red)!important;border:0!important}
body[data-theme="dark"] :where(.r167-quick-actions>button,.v12-composer .composer-tools>button,
 .v12-composer .composer-tools>.file-label,.r167-dialog .composer-tools>button,
 .r167-dialog .composer-tools>.file-label){color:var(--r169-text-secondary)!important}
body[data-theme="dark"] :where(.r167-quick-actions>button:hover,.v12-composer .composer-tools>button:hover,
 .r167-dialog .composer-tools>button:hover,.post-actions .action-button:hover){
 background:#1d1d20!important;color:var(--ink)!important;
}
/* A red icon is still visible when its surrounding text is neutral. */
body[data-theme="dark"] :where(.top-search>.icon,.top-links>a:not(.top-self)>.icon,
 .top-links .r187-theme-toggle svg,.mobile-menu>.icon,.post-actions .action-button>.icon,
 .post-actions .action-button svg,.post-options>summary>.icon,
 .r167-quick-actions svg,.r167-quick-actions .icon,.r167-dialog .composer-tools .icon,
 .r167-dialog .composer-tools svg,.v12-composer .composer-tools .icon,
 .v12-composer .composer-tools svg,.widget-gicon .icon,.widget-gicon svg,
 .post-options-menu .icon,.r15-header-actions .icon,
 .r188-comments-trigger .icon,.r188-comments-trigger svg,
 .r188-comments-close,.r189-comment-more>summary,
 .r190-modal .r190-photo,.r15-popover-head .icon,
 .r16-mobile-nav .icon,.r16-mobile-nav a svg,
 .sidebar-logout .icon,.r15-notifications-top .icon,
 .feed-heading .icon,.section-title .icon,.widget-title .icon,
 .r16-panel>.icon,.sidebar .nav-icon .icon){color:var(--red)!important}
body[data-theme="dark"] :where(.top-links>a:not(.top-self),.top-links>a.active,
 .top-links>a:not(.top-self):hover){background:transparent!important;color:var(--ink)!important}
body[data-theme="dark"] .top-links>a:not(.top-self)>.icon{color:var(--red)!important}
body[data-theme="dark"] .top-links .r187-theme-toggle{color:var(--red)!important;background:transparent!important;border:0!important}
body[data-theme="dark"] :where(.r16-mobile-nav a,.r16-mobile-nav a.active){background:transparent!important;color:var(--muted)}
body[data-theme="dark"] :where(.r16-mobile-nav a>.icon,.r16-mobile-nav a svg){color:var(--red)!important}
body[data-theme="dark"] :where(.r15-chat-controls button svg,.r15-mini-chat button svg,
 .r15-popover button svg,.r15-chat-compose button svg,.r15-mini-compose button svg,
 .r188-comment-form button svg,.r189-comment-menu button svg,
 .r190-modal .r190-comment-actions button svg){color:var(--red)}
/* Keep white text/icons readable on filled red call-to-action buttons. */
body[data-theme="dark"] :where(.btn-primary,.r188-comment-form button[type="submit"],
 .r190-modal .r190-submit,.r15-bubble-row.mine .r15-bubble){color:#fff!important}
body[data-theme="dark"] :where(.btn-primary>.icon,.btn-primary>svg,
 .r188-comment-form button[type="submit"] svg,
 .r190-modal .r190-submit svg){color:#fff!important}
body[data-theme="dark"] :where(.r163-story-card .r163-story-user,.r163-story-card .r163-story-user strong,
 .r163-story-card .r163-story-user .icon){color:#fff!important}
body[data-theme="dark"] :where(.bubble,.pill-count){color:#fff!important}

/* Menu report/reply surfaces follow night palette, without hiding actions. */
body[data-theme="dark"] :where(.r189-comment-report-form select,.r190-modal .r189-comment-report-form select){background:#19191c!important}
body[data-theme="dark"] :where(.r189-comment-menu .r190-danger,.r189-comment-report-form button:hover,
 .r190-modal .r189-comment-menu .r190-danger){color:var(--red)!important}
body[data-theme="dark"] :where(.r163-footer .r17-story-feedback,.r163-footer .r17-story-owner,
 .r163-footer .r17-story-details){background:transparent!important;color:var(--ink)!important}
body[data-theme="dark"] :where(.r163-overlay .r17-story-close,.r163-overlay .r17-story-prev,
 .r163-overlay .r17-story-next){color:var(--red)!important}
body[data-theme="dark"] :where(.r188-comments-count){background:#18181b!important}
body[data-theme="dark"] :where(.r190-modal .r190-comment-actions button,.r189-reply-button){color:var(--muted)}
body[data-theme="dark"] :where(.r190-modal .r190-comment-actions button:hover,.r189-reply-button:hover){color:var(--red)}

/* readable system scrollbars and selection */
/* Cover legacy screens and dialogs that used hard-coded white/blue surfaces. */
body[data-theme="dark"] :where(.story-tile,.story-add,.composer-head .composer-start,.composer-controls select,
 .comment-text,.comment-compose input,.empty-icon,.date-chip,.chat-peer:hover,.chat-active,
 .message-other>div,.report-profile form,.modern-section-title .section-icon,
 .post-edit-panel,.reaction-picker,.v12-comment-section .comment-text,
 .v12-comment-input,.reply-pill,.v12-emoji-panel,.poll-card,.poll-choice,
 .v12-composer .composer-extras>div,.new-posts-notice,.v13-repost-form,
 .v13-publish-mode,.v13-schedule,.member-video-panel,.member-video-header>button,
 .member-video-methods button,.member-video-choice input,
 .member-video-admin-settings,.member-video-admin-toggle,
 .r15-search-wrap,.r15-chat-header,.r15-bubble-row:not(.mine) .r15-bubble,
 .r15-icon-button,.r15-attach,.r15-compose-body,
 .r17-story-fallback,.r168-layout-art,.r168-layout-art i,
 .r168-layout-art .r168-art-header,.r168-layout-art .r168-art-rail){
 background:#18181b!important;background-image:none!important;color:var(--ink)!important;
 border-color:var(--line)!important;
}
body[data-theme="dark"] :where(.warning-note,.status-good,.status-bad){background:#171719!important;border-color:var(--line)!important}
body[data-theme="dark"] :where(.r15-chat-header,.r15-inbox,.r15-chat-compose,
 .r15-chat-main,.r15-mini-chat,.r15-mini-compose,.r15-popover,
 .r15-bubble-row:not(.mine) .r15-bubble){color:var(--ink)!important;border-color:var(--line)!important}
body[data-theme="dark"] :where(.r15-icon-button,.r15-icon-button:hover,.modern-section-title .section-icon){
 background:transparent!important;border:0!important;box-shadow:none!important;
}
body[data-theme="dark"] :where(.r15-icon-button .icon,.r15-chat-header .icon,
 .modern-section-title .section-icon .icon,.empty-icon>.icon,
 .member-video-header .icon,.r15-compose-body .icon,
 .r15-mini-compose .icon,.r15-popover .icon,.settings-panel .icon,
 .admin-panel .icon,.notification-item .icon,.r16-panel .icon){color:var(--red)!important}
body[data-theme="dark"] :where(.post-actions .action-button.is-liked,.post-actions .action-button.is-saved,
 .post-actions .action-button.copied){background:transparent!important}
body[data-theme="dark"] :where(.poll-fill){background:rgba(255,48,76,.16)!important}
body[data-theme="dark"] :where(.r15-conversation.current,.chat-active){background:#202024!important}
body[data-theme="dark"] :where(.r167-quick-actions .icon,.r167-quick-actions svg,
 .v12-composer .composer-tools .icon,.v12-composer .composer-tools svg){color:var(--red)!important}

body[data-theme="dark"]{scrollbar-color:#3b3b42 #101012}
body[data-theme="dark"] ::selection{background:rgba(255,48,76,.30);color:#fff}

@media (prefers-color-scheme:dark){
/* Rjeti.com v1.9.1 — TRUE BLACK / RED OUTLINE ICONS.
   Dark mode only. Light mode keeps the v1.9.0 design.
   This stylesheet intentionally loads LAST to override legacy light/blue selectors. */
body[data-theme="system"] {
 color-scheme:dark;
 --red:#ff304c; --red2:#e51e3b; --red-soft:rgba(255,48,76,.10);
 --ink:#f3f3f5; --muted:#a6a6ae; --line:#2a2a30;
 --surface:#101012; --bg:#080809; --shadow:0 5px 22px rgba(0,0,0,.20);
 --r169-soft:#19191c; --r169-hover:#202024; --r169-text-secondary:#c8c8d0;
 --r169-border:#2a2a30; --r169-outside:#080809; --r169-field:#18181b;
 --r169-panel-shadow:0 15px 42px rgba(0,0,0,.55);
 --r186-surface:#101012; --r186-light:#19191c;
 --r186-shadow:0 4px 20px rgba(0,0,0,.18);
 --r186-shadow-hover:0 7px 23px rgba(0,0,0,.27);
 --surface-secondary:#19191c; --card:#101012; --border:#2a2a30;
 background:#080809!important; color:var(--ink);
}
body[data-theme="system"] :where(.app-layout,.main-area,.page-main,.content-area){background:transparent;color:var(--ink)}
body[data-theme="system"].guest{background:#080809!important}
body[data-theme="system"] :where(.topbar,.r16-mobile-nav,.sidebar){background:#0d0d0f!important;border-color:var(--line)!important;box-shadow:none!important;color:var(--ink)}
body[data-theme="system"] :where(.card,.widget,.settings-panel,.admin-panel,.stats-grid>.stat-card,
 .r16-panel,.post-card,.profile-card,.r15-messenger,.r15-chat-main,
 .r15-mini-chat,.r15-popover,.r15-inbox,.r15-conversation-list,
 .r167-dialog,.r163-modal-panel,.r163-stage,.r163-stage-header,.r163-footer,
 .r188-comments-sheet,.r188-comments-composer,.r188-comments-header,
 .post-options-menu,.r189-comment-menu,.r15-mini-compose,.r15-chat-compose){
 background:#101012!important;border-color:var(--line)!important;color:var(--ink);
 box-shadow:none;
}
body[data-theme="system"] :where(.r163-overlay){background:rgba(0,0,0,.96);backdrop-filter:blur(8px)}
body[data-theme="system"] :where(.r163-image-container,.r163-editor,.r15-chat-scroll,.r15-mini-items,.r15-chat-messages,
 .r188-comments-story,.r163-stage-error,.r167-prompt,.r167-dialog .v13-publish-mode,
 .top-search,.v12-comment-input,.r188-comments-count,.r190-comment-image,
 .settings-info,.event-topline,.composer-preview,.r165-image-preview,
 .r165-upload-status){background:#18181b!important;border-color:var(--line)!important;color:var(--ink)}
body[data-theme="system"] :where(.r167-form-body,.r167-dialog-header,.r167-dialog .composer-bottom,
 .r15-popover-head,.r15-popover-foot,.r15-mini-head,.r15-mini-compose,
 .r15-chat-compose,.r163-progress,.r163-stage-caption){
 background:#101012!important;color:var(--ink)!important;border-color:var(--line)!important;
}
body[data-theme="system"] :where(.card,.widget,.post-card,.r167-dialog,.r188-comments-sheet,
 .r15-popover,.post-options-menu,.r189-comment-menu){box-shadow:0 5px 28px rgba(0,0,0,.25)!important}
body[data-theme="system"] :where(.right-welcome){background:#141416!important;background-image:none!important;border:1px solid var(--line);color:var(--ink)}
body[data-theme="system"] :where(.right-welcome h2,.right-welcome p,.right-welcome strong){color:var(--ink)!important}
body[data-theme="system"] :where(.profile-cover){background-color:#141416;background-image:linear-gradient(120deg,#161619,#252529)}
body[data-theme="system"] :where(.auth-card,.auth-aside,.auth-wrap .card){background:#101012;color:var(--ink);border-color:var(--line)}
body[data-theme="system"] :where(.auth-aside){background-image:none!important;background-color:#111113!important}
body[data-theme="system"] :where(input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="file"]),
 select,textarea,.r15-attach,.r15-compose-body,.r167-form-body textarea,
 .r189-comment-report-form select,.r190-modal .r189-comment-report-form select){
 background:#19191c!important;color:var(--ink)!important;border-color:#34343a!important;
}
body[data-theme="system"] :where(input,textarea)::placeholder{color:#a0a0aa!important;opacity:1}
body[data-theme="system"] :where(.top-search input,.r167-form-body textarea[data-composer-body]){background:transparent!important}
body[data-theme="system"] :where(.r15-conversation:hover,.r15-notice.unread,.r15-popover-notice.unread,
 .notification-item.unread,.r15-popover-notice:hover,.widget-user:hover,.widget-group:hover){
 background:#19191c!important;border-color:var(--line)!important;
}
body[data-theme="system"] :where(.post-options>summary,.r189-comment-more>summary,
 .r188-comments-close,.r189-reply-cancel,.r190-modal .r190-photo,
 .mobile-menu,.r187-theme-toggle,.r16-notification-toggle button,
 .r167-close,.r15-history-button,.r15-bubble-tools button){
 background:transparent!important;box-shadow:none!important;border-color:transparent!important;
}
body[data-theme="system"] :where(.post-options>summary:hover,.post-options[open]>summary,
 .r189-comment-more>summary:hover,.r189-comment-more[open]>summary,
 .r188-comments-close:hover,.r187-theme-toggle:hover,.mobile-menu:hover,
 .r16-mobile-nav a:hover){background:#1a1a1d!important}
body[data-theme="system"] :where(.post-options-menu,.r189-comment-menu,.r15-popover){border:1px solid #313137!important}
body[data-theme="system"] :where(.post-options-menu button,.r189-comment-menu button,
 .r189-comment-report-form button,.r188-comment-delete-form button){
 background:transparent!important;color:var(--ink)!important;border-color:var(--line)!important;
}
body[data-theme="system"] :where(.post-options-menu button:hover,.r189-comment-menu button:hover){color:var(--red)!important;background:#1a1a1d!important}
body[data-theme="system"] :where(.btn-outline,.btn-soft,.btn-danger){background:#171719;color:var(--ink);border-color:var(--line)}
body[data-theme="system"] .btn-outline:hover{background:#222225;border-color:var(--red);color:var(--red)}
body[data-theme="system"] :where(.feed-mode-tabs a,.r15-history-button,.r16-notification-toggle button){background:#171719;color:var(--ink);border-color:var(--line)}
body[data-theme="system"] .feed-mode-tabs a.active{background:#29292e!important;border-color:#414149!important;color:var(--red)!important}
body[data-theme="system"] :where(.muted,.meta,.r15-notice-copy small,.r15-conversation small,
 .r188-comments-subtitle,.r188-comment-by time){color:var(--muted)!important}

/* All left navigation icons: crisp red strokes, NEVER a filled icon tile. */
body[data-theme="system"] :where(.sidebar .side-nav .nav-icon,.sidebar .side-nav .nav-link:hover .nav-icon,
 .sidebar .side-nav .nav-link.selected .nav-icon,.sidebar .nav-link .nav-icon,
 .sidebar .nav-link.selected .nav-icon){
 color:var(--red)!important;background:transparent!important;border:0!important;
 box-shadow:none!important;filter:none!important;transform:none;
}
body[data-theme="system"] .sidebar .side-nav .nav-link .nav-icon,
body[data-theme="system"] .sidebar .side-nav .nav-link.selected .nav-icon,
body[data-theme="system"] .sidebar .side-nav .nav-link:hover .nav-icon{
color:var(--red)!important;background:transparent!important;border:0!important;box-shadow:none!important;
}
body[data-theme="system"] .sidebar .side-nav .nav-icon :where(svg,.icon){color:var(--red)!important;stroke:currentColor}
body[data-theme="system"] .side-nav .nav-link{color:var(--ink);background:transparent!important;border-color:transparent}
body[data-theme="system"] .side-nav .nav-link:hover{background:#1a1a1d!important;color:#fff!important}
body[data-theme="system"] .side-nav .nav-link.selected{background:#202023!important;color:#fff!important}
body[data-theme="system"] .side-nav .nav-link.selected .nav-label{color:#fff!important}
body[data-theme="system"] .sidebar-logout button{background:transparent!important;color:var(--ink)}
body[data-theme="system"] .sidebar-logout button:hover{background:#1a1a1d!important}
body[data-theme="system"] .sidebar-logout button .icon{color:var(--red)!important}
/* Remove decorative icon squares throughout menus/widgets/composers, not important badges or photos. */
body[data-theme="system"] :where(.widget-gicon,.widget-gicon.alt,.widget-user b:last-child,
 .r167-quick-actions>button,.v12-composer .composer-tools>button,
 .v12-composer .composer-tools>.file-label,.r167-dialog .composer-tools>button,
 .r167-dialog .composer-tools>.file-label,.r190-modal .r190-photo,
 .post-actions .action-button,.r188-comments-trigger,.r15-header-actions .r183-call-button){
 background:transparent!important;box-shadow:none!important;
}
body[data-theme="system"] :where(.widget-gicon,.widget-gicon.alt,.widget-user b:last-child){color:var(--red)!important;border:0!important}
body[data-theme="system"] :where(.r167-quick-actions>button,.v12-composer .composer-tools>button,
 .v12-composer .composer-tools>.file-label,.r167-dialog .composer-tools>button,
 .r167-dialog .composer-tools>.file-label){color:var(--r169-text-secondary)!important}
body[data-theme="system"] :where(.r167-quick-actions>button:hover,.v12-composer .composer-tools>button:hover,
 .r167-dialog .composer-tools>button:hover,.post-actions .action-button:hover){
 background:#1d1d20!important;color:var(--ink)!important;
}
/* A red icon is still visible when its surrounding text is neutral. */
body[data-theme="system"] :where(.top-search>.icon,.top-links>a:not(.top-self)>.icon,
 .top-links .r187-theme-toggle svg,.mobile-menu>.icon,.post-actions .action-button>.icon,
 .post-actions .action-button svg,.post-options>summary>.icon,
 .r167-quick-actions svg,.r167-quick-actions .icon,.r167-dialog .composer-tools .icon,
 .r167-dialog .composer-tools svg,.v12-composer .composer-tools .icon,
 .v12-composer .composer-tools svg,.widget-gicon .icon,.widget-gicon svg,
 .post-options-menu .icon,.r15-header-actions .icon,
 .r188-comments-trigger .icon,.r188-comments-trigger svg,
 .r188-comments-close,.r189-comment-more>summary,
 .r190-modal .r190-photo,.r15-popover-head .icon,
 .r16-mobile-nav .icon,.r16-mobile-nav a svg,
 .sidebar-logout .icon,.r15-notifications-top .icon,
 .feed-heading .icon,.section-title .icon,.widget-title .icon,
 .r16-panel>.icon,.sidebar .nav-icon .icon){color:var(--red)!important}
body[data-theme="system"] :where(.top-links>a:not(.top-self),.top-links>a.active,
 .top-links>a:not(.top-self):hover){background:transparent!important;color:var(--ink)!important}
body[data-theme="system"] .top-links>a:not(.top-self)>.icon{color:var(--red)!important}
body[data-theme="system"] .top-links .r187-theme-toggle{color:var(--red)!important;background:transparent!important;border:0!important}
body[data-theme="system"] :where(.r16-mobile-nav a,.r16-mobile-nav a.active){background:transparent!important;color:var(--muted)}
body[data-theme="system"] :where(.r16-mobile-nav a>.icon,.r16-mobile-nav a svg){color:var(--red)!important}
body[data-theme="system"] :where(.r15-chat-controls button svg,.r15-mini-chat button svg,
 .r15-popover button svg,.r15-chat-compose button svg,.r15-mini-compose button svg,
 .r188-comment-form button svg,.r189-comment-menu button svg,
 .r190-modal .r190-comment-actions button svg){color:var(--red)}
/* Keep white text/icons readable on filled red call-to-action buttons. */
body[data-theme="system"] :where(.btn-primary,.r188-comment-form button[type="submit"],
 .r190-modal .r190-submit,.r15-bubble-row.mine .r15-bubble){color:#fff!important}
body[data-theme="system"] :where(.btn-primary>.icon,.btn-primary>svg,
 .r188-comment-form button[type="submit"] svg,
 .r190-modal .r190-submit svg){color:#fff!important}
body[data-theme="system"] :where(.r163-story-card .r163-story-user,.r163-story-card .r163-story-user strong,
 .r163-story-card .r163-story-user .icon){color:#fff!important}
body[data-theme="system"] :where(.bubble,.pill-count){color:#fff!important}

/* Menu report/reply surfaces follow night palette, without hiding actions. */
body[data-theme="system"] :where(.r189-comment-report-form select,.r190-modal .r189-comment-report-form select){background:#19191c!important}
body[data-theme="system"] :where(.r189-comment-menu .r190-danger,.r189-comment-report-form button:hover,
 .r190-modal .r189-comment-menu .r190-danger){color:var(--red)!important}
body[data-theme="system"] :where(.r163-footer .r17-story-feedback,.r163-footer .r17-story-owner,
 .r163-footer .r17-story-details){background:transparent!important;color:var(--ink)!important}
body[data-theme="system"] :where(.r163-overlay .r17-story-close,.r163-overlay .r17-story-prev,
 .r163-overlay .r17-story-next){color:var(--red)!important}
body[data-theme="system"] :where(.r188-comments-count){background:#18181b!important}
body[data-theme="system"] :where(.r190-modal .r190-comment-actions button,.r189-reply-button){color:var(--muted)}
body[data-theme="system"] :where(.r190-modal .r190-comment-actions button:hover,.r189-reply-button:hover){color:var(--red)}

/* readable system scrollbars and selection */
/* Cover legacy screens and dialogs that used hard-coded white/blue surfaces. */
body[data-theme="system"] :where(.story-tile,.story-add,.composer-head .composer-start,.composer-controls select,
 .comment-text,.comment-compose input,.empty-icon,.date-chip,.chat-peer:hover,.chat-active,
 .message-other>div,.report-profile form,.modern-section-title .section-icon,
 .post-edit-panel,.reaction-picker,.v12-comment-section .comment-text,
 .v12-comment-input,.reply-pill,.v12-emoji-panel,.poll-card,.poll-choice,
 .v12-composer .composer-extras>div,.new-posts-notice,.v13-repost-form,
 .v13-publish-mode,.v13-schedule,.member-video-panel,.member-video-header>button,
 .member-video-methods button,.member-video-choice input,
 .member-video-admin-settings,.member-video-admin-toggle,
 .r15-search-wrap,.r15-chat-header,.r15-bubble-row:not(.mine) .r15-bubble,
 .r15-icon-button,.r15-attach,.r15-compose-body,
 .r17-story-fallback,.r168-layout-art,.r168-layout-art i,
 .r168-layout-art .r168-art-header,.r168-layout-art .r168-art-rail){
 background:#18181b!important;background-image:none!important;color:var(--ink)!important;
 border-color:var(--line)!important;
}
body[data-theme="system"] :where(.warning-note,.status-good,.status-bad){background:#171719!important;border-color:var(--line)!important}
body[data-theme="system"] :where(.r15-chat-header,.r15-inbox,.r15-chat-compose,
 .r15-chat-main,.r15-mini-chat,.r15-mini-compose,.r15-popover,
 .r15-bubble-row:not(.mine) .r15-bubble){color:var(--ink)!important;border-color:var(--line)!important}
body[data-theme="system"] :where(.r15-icon-button,.r15-icon-button:hover,.modern-section-title .section-icon){
 background:transparent!important;border:0!important;box-shadow:none!important;
}
body[data-theme="system"] :where(.r15-icon-button .icon,.r15-chat-header .icon,
 .modern-section-title .section-icon .icon,.empty-icon>.icon,
 .member-video-header .icon,.r15-compose-body .icon,
 .r15-mini-compose .icon,.r15-popover .icon,.settings-panel .icon,
 .admin-panel .icon,.notification-item .icon,.r16-panel .icon){color:var(--red)!important}
body[data-theme="system"] :where(.post-actions .action-button.is-liked,.post-actions .action-button.is-saved,
 .post-actions .action-button.copied){background:transparent!important}
body[data-theme="system"] :where(.poll-fill){background:rgba(255,48,76,.16)!important}
body[data-theme="system"] :where(.r15-conversation.current,.chat-active){background:#202024!important}
body[data-theme="system"] :where(.r167-quick-actions .icon,.r167-quick-actions svg,
 .v12-composer .composer-tools .icon,.v12-composer .composer-tools svg){color:var(--red)!important}

body[data-theme="system"]{scrollbar-color:#3b3b42 #101012}
body[data-theme="system"] ::selection{background:rgba(255,48,76,.30);color:#fff}

}
