/* Full black paints call surfaces without changing the Home or participant cards.
   Geometry:not(:where(.account-profile-view,.account-profile-view *,.profile-theme-preview-card,.profile-theme-preview-card *)), media:not(:where(.account-profile-view,.account-profile-view *,.profile-theme-preview-card,.profile-theme-preview-card *)), wallpaper:not(:where(.account-profile-view,.account-profile-view *,.profile-theme-preview-card,.profile-theme-preview-card *)), blue toggles and semantic states remain independent.
   Surface tokens intentionally outrank inline custom-theme drafts. */
:root[data-full-black=true][data-theme=dark].has-wallpaper:not(:has(#app > .reference-home)) :where(.settings-popover,.appearance-editor,.avatar-editor,.stream-participants-panel,
.social-panel,.social-dialog,.social-call-host,.chat-hub,.people-context-panel,
.social-settings-popover,.social-menu,.social-mute-submenu,.nexo-home,.call-rail,
.participant-voice-menu,.latency-control,.social-activity,
.room-panel-content,.room-settings-content,.create-room-dialog,.leadership-confirm,
.home-join-dialog,.home-settings,.context-panel,.share-dialog,.entry-card,.invite-panel,
.toast,.latency-popover,.voice-settings,.video-settings,.settings-card,
.account-settings-section,.account-settings-overview,.appearance-entry,
.reference-home-card,.reference-home-actions,.chat-attachment,.wallpaper-settings,
.wallpaper-preview,.desktop-source-card,.desktop-picker-more,.social-friend-card,
.social-profile-card,.home-welcome-card,.reference-entry-card,.profile-popover,
.desktop-audio-config-dialog,.desktop-audio-config-list,.home-action,.account-chip,
.call-rail-item,.connection-check,.media-health-button,.call-controls,.setting-check,
.voice-toggle,.orbit-node,.orbit-core,.room-panel-toggle,.appearance-entry-icon,
.desktop-share-picker,.gateway-scene,.appearance-state-examples,.entry-header,.account-menu-trigger,
.settings-header,.settings-tabs,.voice-card,.voice-advanced,.voice-profile:not(.selected),
.account-settings-group,.video-camera-card,.video-preview,.appearance-state-examples,
.appearance-example-search,.appearance-example-surfaces,.app-preview-panel,.app-preview-card,
.appearance-preview-stage,.social-search,.social-tabs,.social-call-card,.social-invite,
.social-dm-toast,.social-switch,.social-message,.chat-panel,.chat-composer,.chat-message,
.chat-conversation-search,.chat-image-lightbox,.chat-image-lightbox-stage,
.home-friends,.home-social-invites,.entry-input-shell,.visitor-entry,.home-auth-visual,
.room-panel,.room-settings,.gateway-card,.invite-participant-popover,.approval-card,
.desktop-picker-footer,.desktop-picker-header,.desktop-picker-options,
.active-share-options,.active-audio-apps,.stream-viewer-toolbar,.stream-viewer-header,.stream-viewer-surface,
.stream-options-popover,.stream-selection-menu,.remote-control-host,.remote-control-toolbar,.remote-control-settings,
.remote-control-request,.account-profile-view,.banner-frame-editor,.profile-theme-editor,
.account-profile-activity,.account-profile-section,.profile-more-menu,
.social-person,.social-profile,.social-menu-item,.desktop-picker-pane,.desktop-picker-list,
.detached-presentation header,.detached-presentation footer,.stream-window-badge,
.remote-control-priority,.call-header,input:not([type=checkbox],[type=radio],[type=range],[type=color]),select,textarea,body:not(:has(#app))):not(:where(.account-profile-view,.account-profile-view *,.profile-theme-preview-card,.profile-theme-preview-card *)) {
  --theme-app-rgb:0,0,0!important;
  --theme-app:#000000!important;
  --theme-surface-base-rgb:0,0,0!important;
  --theme-surface-base:#000000!important;
  --theme-surface-card-rgb:0,0,0!important;
  --theme-surface-card:#000000!important;
  --theme-surface-elevated-rgb:0,0,0!important;
  --theme-surface-elevated:#000000!important;
  --theme-surface-interactive-rgb:21,21,24!important;
  --theme-surface-interactive:#151518!important;
  --theme-surface-hover-rgb:32,32,36!important;
  --theme-surface-hover:#202024!important;
  --theme-surface-pressed-rgb:16,16,18!important;
  --theme-surface-pressed:#101012!important;
  --theme-surface-disabled-rgb:13,13,15!important;
  --theme-surface-disabled:#0D0D0F!important;
  --theme-input-rgb:0,0,0!important;
  --theme-input:#000000!important;
  --custom-app-text-rgb:244,245,248!important;
  --custom-app-text:#F4F5F8!important;
  --custom-app-secondary-rgb:193,195,203!important;
  --custom-app-secondary:#C1C3CB!important;
  --custom-app-border-rgb:255,255,255!important;
  --custom-app-border:#FFFFFF!important;
  --custom-app-accent-rgb:52,152,255!important;
  --custom-app-accent:#3498ff!important;
  --custom-app-success-rgb:0,138,85!important;
  --custom-app-success:#008a55!important;
  --custom-app-danger-rgb:217,49,86!important;
  --custom-app-danger:#d93156!important;
  --custom-app-warning-rgb:167,107,0!important;
  --custom-app-warning:#a76b00!important;
  --custom-panel-text-rgb:244,245,248!important;
  --custom-panel-text:#F4F5F8!important;
  --custom-panel-secondary-rgb:193,195,203!important;
  --custom-panel-secondary:#C1C3CB!important;
  --custom-panel-border-rgb:255,255,255!important;
  --custom-panel-border:#FFFFFF!important;
  --custom-panel-accent-rgb:52,152,255!important;
  --custom-panel-accent:#3498ff!important;
  --custom-panel-success-rgb:0,138,85!important;
  --custom-panel-success:#008a55!important;
  --custom-panel-danger-rgb:217,49,86!important;
  --custom-panel-danger:#d93156!important;
  --custom-panel-warning-rgb:167,107,0!important;
  --custom-panel-warning:#a76b00!important;
  --custom-card-text-rgb:244,245,248!important;
  --custom-card-text:#F4F5F8!important;
  --custom-card-secondary-rgb:193,195,203!important;
  --custom-card-secondary:#C1C3CB!important;
  --custom-card-border-rgb:255,255,255!important;
  --custom-card-border:#FFFFFF!important;
  --custom-card-accent-rgb:52,152,255!important;
  --custom-card-accent:#3498ff!important;
  --custom-card-success-rgb:0,138,85!important;
  --custom-card-success:#008a55!important;
  --custom-card-danger-rgb:217,49,86!important;
  --custom-card-danger:#d93156!important;
  --custom-card-warning-rgb:167,107,0!important;
  --custom-card-warning:#a76b00!important;
  --theme-text-primary-rgb:244,245,248!important;
  --theme-text-primary:#F4F5F8!important;
  --theme-text-secondary-rgb:193,195,203!important;
  --theme-text-secondary:#C1C3CB!important;
  --theme-text-muted-rgb:162,165,175!important;
  --theme-text-muted:#A2A5AF!important;
  --theme-text-disabled-rgb:119,119,128!important;
  --theme-text-disabled:#777780!important;
  --theme-border-subtle-rgb:48,48,55!important;
  --theme-border-subtle:#303037!important;
  --theme-border-strong-rgb:96,97,109!important;
  --theme-border-strong:#60616D!important;
  --theme-accent-rgb:52,152,255!important;
  --theme-accent:#3498ff!important;
  --theme-accent-shadow-rgb:52,152,255!important;
  --theme-accent-shadow:#3498FF!important;
  --theme-focus-rgb:52,152,255!important;
  --theme-focus:#3498FF!important;
  --theme-primary-rgb:244,245,248!important;
  --theme-primary:#F4F5F8!important;
  --theme-primary-hover-rgb:255,255,255!important;
  --theme-primary-hover:#FFFFFF!important;
  --theme-primary-pressed-rgb:210,210,214!important;
  --theme-primary-pressed:#D2D2D6!important;
  --theme-on-primary-rgb:14,14,16!important;
  --theme-on-primary:#0E0E10!important;
  --theme-on-accent-rgb:255,255,255!important;
  --theme-on-accent:#FFFFFF!important;
  --theme-selection-rgb:21,21,24!important;
  --theme-selection:#151518!important;
  --theme-decoration-rgb:0,0,0!important;
  --theme-decoration:#000000!important;
  --theme-scrollbar-rgb:85,85,92!important;
  --theme-scrollbar:#55555C!important;
  --theme-knob-rgb:255,255,255!important;
  --theme-knob:#FFFFFF!important;
  color-scheme:dark!important;
  --theme-success-text-rgb:98,227,174!important;
  --theme-success-text:#62E3AE!important;
  --theme-danger-text-rgb:255,163,177!important;
  --theme-danger-text:#FFA3B1!important;
  --theme-warning-text-rgb:247,207,121!important;
  --theme-warning-text:#F7CF79!important;
  --theme-shadow:#000000!important;
  --theme-shadow-rgb:0,0,0!important;
  --theme-highlight:#FFFFFF!important;
  --theme-highlight-rgb:255,255,255!important;
  --theme-backdrop:#000000!important;
  --theme-backdrop-rgb:0,0,0!important;
  --theme-success:#25BE82!important;
  --theme-success-rgb:37,190,130!important;
  --theme-success-surface:#0C4330!important;
  --theme-success-surface-rgb:12,67,48!important;
  --theme-danger:#EC3956!important;
  --theme-danger-rgb:236,57,86!important;
  --theme-danger-surface:#491823!important;
  --theme-danger-surface-rgb:73,24,35!important;
  --theme-warning:#E5AB33!important;
  --theme-warning-rgb:229,171,51!important;
  --theme-media-surface:#000000!important;
  --theme-media-surface-rgb:0,0,0!important;
  --theme-media-hover:#212126!important;
  --theme-media-hover-rgb:33,33,38!important;
  --theme-media-text:#F6F7FA!important;
  --theme-media-text-rgb:246,247,250!important;
  --theme-media-muted:#C6CDDB!important;
  --theme-media-muted-rgb:198,205,219!important;
  --theme-media-border:#969BA6!important;
  --theme-media-border-rgb:150,155,166!important;
  --theme-media-danger:#FFADBD!important;
  --theme-media-danger-rgb:255,173,189!important;
  --theme-media-danger-surface:#491823!important;
  --theme-media-danger-surface-rgb:73,24,35!important;
  --theme-functional:#3498FF!important;
  --theme-on-functional:#FFFFFF!important;
  --rail-edge-fill:#000000!important;
  --gateway-progress:#3498FF!important;
}

/* Opaque surfaces also replace the legacy translucent/gradient backgrounds.
   Loading cards retain the gateway's translucent background. Message bubbles
   retain their sent/received fills:not(:where(.account-profile-view,.account-profile-view *,.profile-theme-preview-card,.profile-theme-preview-card *)), paired with their existing text colors. */
:root[data-full-black=true][data-theme=dark].has-wallpaper:not(:has(#app > .reference-home)) :is(
.settings-popover,.appearance-editor,.avatar-editor,.stream-participants-panel,
.social-panel,.social-dialog,.social-call-host,.chat-hub,.people-context-panel,
.social-settings-popover,.social-menu,.social-mute-submenu,.nexo-home,.call-rail,
.participant-voice-menu,.latency-control,.social-activity,
.room-panel-content,.room-settings-content,.create-room-dialog,.leadership-confirm,
.home-join-dialog,.home-settings,.context-panel,.share-dialog,.entry-card,.invite-panel,
.toast,.latency-popover,.voice-settings,.video-settings,.settings-card,
.account-settings-section,.account-settings-overview,.appearance-entry,
.reference-home-card,.reference-home-actions,.chat-attachment,.wallpaper-settings,
.wallpaper-preview,.desktop-source-card,.desktop-picker-more,.social-friend-card,
.social-profile-card,.home-welcome-card,.reference-entry-card,.profile-popover,
.desktop-audio-config-dialog,.desktop-audio-config-list,.home-action,.account-chip,
.call-rail-item,.connection-check,.media-health-button,.call-controls,.setting-check,
.voice-toggle,.orbit-node,.orbit-core,.room-panel-toggle,.appearance-entry-icon,
.desktop-share-picker,.gateway-scene,.appearance-state-examples,.entry-header,.account-menu-trigger,
.settings-header,.settings-tabs,.voice-card,.voice-advanced,.voice-profile:not(.selected),
.account-settings-group,.video-camera-card,.video-preview,.appearance-state-examples,
.appearance-example-search,.appearance-example-surfaces,.app-preview-panel,.app-preview-card,
.appearance-preview-stage,.social-search,.social-tabs,.social-call-card,.social-invite,
.social-dm-toast,.social-switch,.social-message,.chat-panel,.chat-composer,
.chat-conversation-search,.chat-image-lightbox,.chat-image-lightbox-stage,
.home-friends,.home-social-invites,.entry-input-shell,.visitor-entry,.home-auth-visual,
.room-panel,.room-settings,.gateway-card:not(.transition-center),.invite-participant-popover,.approval-card,
.desktop-picker-footer,.desktop-picker-header,.desktop-picker-options,
.active-share-options,.stream-viewer-toolbar,.stream-viewer-header,.stream-viewer-surface,
.stream-options-popover,.stream-selection-menu,.remote-control-host,.remote-control-toolbar,.remote-control-settings,
.remote-control-request,.account-profile-view,.banner-frame-editor,.profile-theme-editor,
.account-profile-activity,.account-profile-section,.profile-more-menu,
.social-person,.social-profile,.social-menu-item,.desktop-picker-pane,.desktop-picker-list,
.detached-presentation header,.detached-presentation footer,.stream-window-badge,
.remote-control-priority
):not(:where(.account-profile-view,.account-profile-view *,.profile-theme-preview-card,.profile-theme-preview-card *)) {background:#000!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important;}
:root[data-full-black=true][data-theme=dark].has-wallpaper:not(:has(#app > .reference-home)):not(.has-wallpaper) :is(body,.call-shell,.reference-home,.entry-shell,.transition-shell,.approval-screen,.invite-shell):not(:where(.account-profile-view,.account-profile-view *,.profile-theme-preview-card,.profile-theme-preview-card *)) {background:#000!important;}
:root[data-full-black=true][data-theme=dark].has-wallpaper:not(:has(#app > .reference-home)).has-wallpaper :is(body,.call-shell,.reference-home):not(:where(.account-profile-view,.account-profile-view *,.profile-theme-preview-card,.profile-theme-preview-card *)) {background:transparent!important;}
:root[data-full-black=true][data-theme=dark].has-wallpaper:not(:has(#app > .reference-home)) :is(input:not([type=checkbox],[type=radio],[type=range],[type=color]),select,textarea):not(:where(.account-profile-view,.account-profile-view *,.profile-theme-preview-card,.profile-theme-preview-card *)) {background:#000!important;color:var(--theme-text-primary)!important;border-color:var(--theme-border-subtle);color-scheme:dark;}
:root[data-full-black=true][data-theme=dark].has-wallpaper:not(:has(#app > .reference-home)) :is(.button-secondary,.account-chip,.copy-link,.room-panel-toggle,.latency-button,.appearance-entry-icon,.sidebar-toggle):not(:where(.account-profile-view,.account-profile-view *,.profile-theme-preview-card,.profile-theme-preview-card *)) {background:#000!important;color:var(--theme-text-primary)!important;}
:root[data-full-black=true][data-theme=dark].has-wallpaper:not(:has(#app > .reference-home)) :is(.button-primary,.home-action-primary,.reference-entry-card .button-primary):not(:where(.account-profile-view,.account-profile-view *,.profile-theme-preview-card,.profile-theme-preview-card *)) {background:var(--theme-primary)!important;color:var(--theme-on-primary)!important;border-color:var(--theme-border-strong)!important;}
:root[data-full-black=true][data-theme=dark].has-wallpaper:not(:has(#app > .reference-home)) .home-action-primary :is(small,svg):not(:where(.account-profile-view,.account-profile-view *,.profile-theme-preview-card,.profile-theme-preview-card *)) {color:inherit!important;}
:root[data-full-black=true][data-theme=dark].has-wallpaper:not(:has(#app > .reference-home)) :is(.button-secondary,.account-chip,.copy-link,.room-panel-toggle,.latency-button,.appearance-entry,.sidebar-toggle):hover:not(:where(.account-profile-view,.account-profile-view *,.profile-theme-preview-card,.profile-theme-preview-card *)) {background:var(--theme-surface-hover)!important;}
:root[data-full-black=true][data-theme=dark].has-wallpaper:not(:has(#app > .reference-home)) :is(.call-rail-item.is-active,.voice-profile.selected,.settings-tab-marker,.chat-conversation.is-selected):not(:where(.account-profile-view,.account-profile-view *,.profile-theme-preview-card,.profile-theme-preview-card *)) {background:var(--theme-surface-interactive)!important;color:var(--theme-text-primary)!important;border-color:var(--theme-border-strong)!important;box-shadow:none;}
:root[data-full-black=true][data-theme=dark].has-wallpaper:not(:has(#app > .reference-home)) .call-rail-item:not(:disabled):hover:not(:where(.account-profile-view,.account-profile-view *,.profile-theme-preview-card,.profile-theme-preview-card *)) {background:var(--theme-surface-hover)!important;}
:root[data-full-black=true][data-theme=dark].has-wallpaper:not(:has(#app > .reference-home)) :is(.social-person,.social-menu-item):is(:hover,:focus-within):not(:where(.account-profile-view,.account-profile-view *,.profile-theme-preview-card,.profile-theme-preview-card *)) {background:var(--theme-surface-hover)!important;}
:root[data-full-black=true][data-theme=dark].has-wallpaper:not(:has(#app > .reference-home)) .call-rail-item.is-active::before:not(:where(.account-profile-view,.account-profile-view *,.profile-theme-preview-card,.profile-theme-preview-card *)) {background:var(--theme-text-primary)!important;}
:root[data-full-black=true][data-theme=dark].has-wallpaper:not(:has(#app > .reference-home)) .call-controls .icon-control:not(.is-muted,.is-active,.control-leave)>svg:not(:where(.account-profile-view,.account-profile-view *,.profile-theme-preview-card,.profile-theme-preview-card *)) {color:var(--theme-text-primary);background:#000;border-color:var(--theme-border-subtle);}
:root[data-full-black=true][data-theme=dark].has-wallpaper:not(:has(#app > .reference-home)) :is(.reference-entry-copy h1 em,.home-copy h1 em):not(:where(.account-profile-view,.account-profile-view *,.profile-theme-preview-card,.profile-theme-preview-card *)) {background:none;color:var(--theme-text-primary);-webkit-text-fill-color:currentColor;}
:root[data-full-black=true][data-theme=dark].has-wallpaper:not(:has(#app > .reference-home)) :is(.social-unread,.rail-unread,.social-badge):not(:where(.account-profile-view,.account-profile-view *,.profile-theme-preview-card,.profile-theme-preview-card *)) {color:#fff;}
:root[data-full-black=true][data-theme=dark].has-wallpaper:not(:has(#app > .reference-home)) .account-profile-view:not(:where(.account-profile-view,.account-profile-view *,.profile-theme-preview-card,.profile-theme-preview-card *)) {color:var(--theme-text-primary)!important;}
:root[data-full-black=true][data-theme=dark].has-wallpaper:not(:has(#app > .reference-home)) .call-header:not(:where(.account-profile-view,.account-profile-view *,.profile-theme-preview-card,.profile-theme-preview-card *)) {background:transparent!important;background-image:none!important;backdrop-filter:none!important;box-shadow:none!important;border-bottom:0!important;}
:root[data-full-black=true][data-theme=dark].has-wallpaper:not(:has(#app > .reference-home)) .call-header .latency-control:not(:where(.account-profile-view,.account-profile-view *,.profile-theme-preview-card,.profile-theme-preview-card *)) {background:transparent!important;}
