/* OverLive20 — cinematic charcoal and softened brass, app-owned chrome only.
   Media, seat geometry, native visibility, personalized backgrounds and behavior
   remain with their existing owners. Load before youtube-player-fit/readable. */
body #liveRoom #roomsPanel,
body #studio.prelive-simple[data-prelive='true'],
body #overliveMusicBubbles,
body:has(#roomsPanel) dialog:is(.room-youtube-dialog,.netflix-session-panel),
body #overliveScreenShareProblem{
 --fusion-live-panel:rgb(20 25 26 / .88);
 --fusion-live-inset:rgb(8 13 15 / .86);
 --fusion-live-control:rgb(29 34 34 / .88);
 --fusion-live-line:rgb(217 173 97 / .27);
 --fusion-live-field-line:rgb(217 173 97 / .64);
 --readable-surface:var(--fusion-live-panel);
 --readable-control:var(--fusion-live-control);
 --readable-field:var(--fusion-live-inset);
 --readable-ink:var(--fusion-text,#eeece4);
 --readable-muted:var(--fusion-muted,#c5c1b5);
 --readable-placeholder:var(--fusion-muted,#c5c1b5);
 --readable-border:var(--fusion-live-field-line);
 --readable-focus:var(--fusion-gold,#d9ad61);
}
/* RGB assigns independent hue variables to each surface. Keep those variables
   untouched, while readable controls resolve against the cinematic local plate. */
body #liveRoom #roomsPanel .rgb-surface,
body #studio.prelive-simple[data-prelive='true'] .rgb-surface,
body #overliveMusicBubbles .rgb-surface,
body:has(#roomsPanel) dialog:is(.room-youtube-dialog,.netflix-session-panel).rgb-surface,
body:has(#roomsPanel) dialog:is(.room-youtube-dialog,.netflix-session-panel) .rgb-surface{
 --readable-surface:var(--fusion-live-panel);
 --readable-control:var(--fusion-live-control);
 --readable-field:var(--fusion-live-inset);
}
/* Compact title, reconnect notices and the existing command cluster. */
body #liveRoom #roomsPanel .room-header>div,
body #liveRoom #roomsPanel :is(.room-setup,.room-recovery,#sharedAudioUnlock,#sharedMicRecovery){
 background:var(--fusion-live-panel)!important;color:var(--fusion-text,#eeece4)!important;
 border-color:var(--fusion-live-line)!important;border-radius:16px;
 box-shadow:0 5px 18px rgb(0 0 0 / .18);
}
body #liveRoom #roomsPanel #sharedRoomTitle{
 color:var(--fusion-text,#eeece4)!important;
 font-family:'Space Grotesk',system-ui,sans-serif;font-weight:650;letter-spacing:-.15px;
}
body #liveRoom #roomsPanel :is(.room-primary-actions>.btn,.room-more>summary,.presence-trigger,#sharedMinimize){
 background:var(--fusion-live-control)!important;color:var(--fusion-text,#eeece4)!important;
 border-color:var(--fusion-live-line)!important;border-radius:16px;box-shadow:none!important;
}
/* An active camera/microphone uses an icon accent; it adds no light to media. */
body #liveRoom #roomsPanel :is(#sharedMic,#sharedCamera)[aria-pressed='true']{
 background:var(--fusion-live-control)!important;color:var(--fusion-text,#eeece4)!important;
 border-color:var(--fusion-live-line)!important;box-shadow:none!important;
}
body #liveRoom #roomsPanel :is(#sharedMic,#sharedCamera)[aria-pressed='true']>svg{
 color:var(--fusion-gold,#d9ad61);
}
body #liveRoom #roomsPanel #sharedMic[aria-pressed='false']{
 background:rgb(55 23 25 / .88)!important;color:#f3b3ac!important;
 border-color:rgb(210 112 100 / .46)!important;
}
body #liveRoom #roomsPanel #sharedVisibilityToggle[data-visibility='private']{
 background:rgb(52 42 28 / .88)!important;color:#ead2a7!important;
 border-color:rgb(217 173 97 / .58)!important;
}
body #liveRoom #roomsPanel #sharedVisibilityFeedback{
 background:var(--fusion-live-panel)!important;color:var(--fusion-text,#eeece4)!important;
 border-color:var(--fusion-live-field-line)!important;border-radius:16px;
}
body #liveRoom #roomsPanel #sharedOptions .room-more-menu,
body #liveRoom #roomsPanel .presence-menu{
 background:var(--fusion-live-panel)!important;color:var(--fusion-text,#eeece4)!important;
 border-color:var(--fusion-live-line)!important;border-radius:20px;
 box-shadow:0 14px 36px rgb(0 0 0 / .32);
}
body #liveRoom #roomsPanel #sharedOptions .room-more-menu>.btn,
body #liveRoom #roomsPanel .presence-menu>button,
body #liveRoom #roomsPanel #sharedOptions .seat-count-change{
 background:var(--fusion-live-inset)!important;color:var(--fusion-text,#eeece4)!important;
 border-color:var(--fusion-live-line)!important;border-radius:16px;box-shadow:none!important;
 font-family:system-ui,sans-serif;
}
body #liveRoom #roomsPanel #sharedOptions #sharedLeave,
body #liveRoom #roomsPanel #sharedScreenIndicator{
 background:rgb(70 25 30 / .90)!important;color:#fff0ed!important;
 border-color:rgb(210 112 100 / .55)!important;border-radius:16px;box-shadow:none!important;
}
/* Sent-message and composer surfaces: no sizing, scroll or picker changes. */
body #liveRoom #roomsPanel #sharedChatDock .overlive-chat-form{
 background:var(--fusion-live-panel)!important;color:var(--fusion-text,#eeece4)!important;
 border-color:rgb(217 173 97 / .40)!important;border-radius:20px;
 box-shadow:0 5px 18px rgb(0 0 0 / .20);
}
body #liveRoom #roomsPanel #sharedChatDock .overlive-chat-form textarea{
 background:transparent!important;color:var(--fusion-text,#eeece4)!important;
 border-radius:16px;font-family:system-ui,sans-serif;
}
body #liveRoom #roomsPanel #sharedChatDock .overlive-chat-form textarea::placeholder{
 color:var(--fusion-muted,#c5c1b5)!important;
}
body #liveRoom #roomsPanel #sharedChatDock :is(.chat-gif-toggle,.chat-emoji-toggle,.chat-send,.chat-gifs-close){
 background:var(--fusion-live-control)!important;color:var(--fusion-text,#eeece4)!important;
 border-color:var(--fusion-live-line)!important;border-radius:16px;box-shadow:none!important;
}
body #liveRoom #roomsPanel #sharedChatDock :is(.chat-gif-toggle,.chat-emoji-toggle)[aria-expanded='true'],
body #liveRoom #roomsPanel #sharedChatDock .chat-send:not(:disabled){
 background:var(--fusion-gold,#d9ad61)!important;color:#17140e!important;
 border-color:var(--fusion-gold,#d9ad61)!important;text-shadow:none!important;
}
body #liveRoom #roomsPanel #sharedChatDock .overlive-chat-message{
 background:rgb(20 25 26 / .82)!important;color:var(--fusion-text,#eeece4)!important;
 border-color:rgb(217 173 97 / .18)!important;border-radius:16px!important;box-shadow:none!important;
}
body #liveRoom #roomsPanel #sharedChatDock .overlive-chat-message.mine{
 background:rgb(40 34 25 / .88)!important;border-color:rgb(217 173 97 / .30)!important;
}
body #liveRoom #roomsPanel #sharedChatDock .overlive-chat-message p{font-family:system-ui,sans-serif;}
body #liveRoom #roomsPanel #sharedChatDock .chat-user-open{color:var(--fusion-gold,#d9ad61)!important;}
body #liveRoom #roomsPanel #sharedChatDock .overlive-gif-tray{
 background:var(--fusion-live-panel)!important;color:var(--fusion-text,#eeece4)!important;
 border-color:var(--fusion-live-line)!important;border-radius:20px;
 box-shadow:0 14px 34px rgb(0 0 0 / .30);
}
body #liveRoom #roomsPanel #sharedChatDock .overlive-mood-toolbar{background:var(--fusion-live-panel)!important;}
body #liveRoom #roomsPanel #sharedChatDock .overlive-mood-choice{
 background:var(--fusion-live-inset)!important;border-color:var(--fusion-live-line)!important;
 border-radius:16px;box-shadow:none!important;
}
body #liveRoom #roomsPanel #sharedChatDock :is(.overlive-mood-search input,.reddit-link-input,.gif-search-query){
 background:var(--fusion-live-inset)!important;color:var(--fusion-text,#eeece4)!important;
 border-color:var(--fusion-live-field-line)!important;border-radius:16px;
}
/* Music import/play/seek and transient volume feedback remain the same nodes. */
body #overliveMusicBubbles #roomMusicControls{
 background:var(--fusion-live-panel)!important;color:var(--fusion-text,#eeece4)!important;
 border-color:var(--fusion-live-line)!important;border-radius:20px;
 box-shadow:0 14px 36px rgb(0 0 0 / .30);
}
body #overliveMusicBubbles :is(#roomMusicOpen,#roomMusicToggle,.music-volume-step,#roomMusicClose,#roomMusicImport){
 background:var(--fusion-live-control)!important;color:var(--fusion-text,#eeece4)!important;
 border-color:var(--fusion-live-line)!important;box-shadow:none!important;
}
body #overliveMusicBubbles #roomMusicOpen[data-playing='true']{
 color:var(--fusion-gold,#d9ad61)!important;border-color:rgb(217 173 97 / .58)!important;
}
body #overliveMusicBubbles #roomMusicControls .music-track-pill{
 background:var(--fusion-live-inset)!important;border-color:var(--fusion-live-line)!important;border-radius:16px;
}
body #overliveMusicBubbles :is(#roomMusicTrack,.music-panel-heading>span){color:var(--fusion-text,#eeece4);}
body #overliveMusicBubbles :is(#roomMusicTime,.music-volume-value){color:var(--fusion-muted,#c5c1b5);}
body #overliveMusicBubbles #roomMusicSeek{accent-color:var(--fusion-gold,#d9ad61);}
body #overliveMusicBubbles #roomMusicNotice{
 background:rgb(70 25 30 / .90)!important;color:#fff0ed!important;border-color:rgb(210 112 100 / .55)!important;
}
/* The original prelaunch image/title/access/Solo–12-seat controls remain intact. */
body #studio.prelive-simple[data-prelive='true'] .prelive-card{
 background:var(--fusion-live-panel)!important;color:var(--fusion-text,#eeece4)!important;
 border-color:var(--fusion-live-line)!important;border-radius:20px;box-shadow:none;
}
body #studio.prelive-simple[data-prelive='true'] #liveTitle{
 background:var(--fusion-live-inset)!important;color:var(--fusion-text,#eeece4)!important;
 border-color:var(--fusion-live-field-line)!important;border-radius:16px;
 font-family:'Space Grotesk',system-ui,sans-serif;
}
body #studio.prelive-simple[data-prelive='true'] .live-cover-thumbnail{
 background:var(--fusion-live-inset)!important;border-color:var(--fusion-live-line)!important;border-radius:20px;
}
body #studio.prelive-simple[data-prelive='true'] :is(.prelive-cover-add,.prelive-settings select){
 background:var(--fusion-live-control)!important;color:var(--fusion-text,#eeece4)!important;
 border-color:var(--fusion-live-field-line)!important;
}
body #studio.prelive-simple[data-prelive='true'] .prelive-settings select{border-radius:16px;}
/* Beat the legacy RGB :is() arm's2-ID specificity without changing hue phases. */
body.rgb-theme.prelive-screen #studio.prelive-simple[data-prelive='true'] :is(#liveTitle,.prelive-settings select,.studio-launcher #startSession,.prelive-cover-add,#liveCoverRemove).rgb-surface{
 background:var(--fusion-live-inset)!important;color:var(--fusion-text,#eeece4)!important;
 border-color:var(--fusion-live-field-line)!important;
}
body #studio.prelive-simple[data-prelive='true'] #startSession,
body.rgb-theme.prelive-screen #studio.prelive-simple[data-prelive='true'] .studio-launcher #startSession.rgb-surface{
 background:var(--fusion-gold,#d9ad61)!important;color:#17140e!important;
 border-color:var(--fusion-gold,#d9ad61)!important;border-radius:18px;box-shadow:none!important;text-shadow:none!important;
}
/* Detached viewing dialogs are actual app controls, not substitute players. */
body:has(#roomsPanel) dialog:is(.room-youtube-dialog,.netflix-session-panel){
 background:var(--fusion-live-panel)!important;color:var(--fusion-text,#eeece4)!important;
 border-color:var(--fusion-live-line)!important;border-radius:20px;
 box-shadow:0 18px 46px rgb(0 0 0 / .38);
}
body:has(#roomsPanel) dialog:is(.room-youtube-dialog,.netflix-session-panel) :is(h2,h3){
 color:var(--fusion-text,#eeece4);font-family:'Space Grotesk',system-ui,sans-serif;
}
body:has(#roomsPanel) dialog:is(.room-youtube-dialog,.netflix-session-panel) :is(input,select){
 background:var(--fusion-live-inset)!important;color:var(--fusion-text,#eeece4)!important;
 border-color:var(--fusion-live-field-line)!important;border-radius:16px;font-family:system-ui,sans-serif;
}
body:has(#roomsPanel) dialog:is(.room-youtube-dialog,.netflix-session-panel) :is(button,a.btn){
 background:var(--fusion-live-control)!important;color:var(--fusion-text,#eeece4)!important;
 border-color:var(--fusion-live-line)!important;border-radius:16px;box-shadow:none!important;
}
/* Text-only source choices keep the existing restrained selection treatment. */
body:has(#roomsPanel) dialog#videoSourcesPanel .video-source-choices>button[aria-pressed='true']{
 background:transparent!important;color:var(--fusion-gold,#d9ad61)!important;
 border-color:transparent!important;box-shadow:none!important;text-shadow:none!important;
}
body:has(#roomsPanel) dialog.room-youtube-dialog .room-youtube-search-submit{
 background:var(--fusion-gold,#d9ad61)!important;color:#17140e!important;
 border-color:var(--fusion-gold,#d9ad61)!important;text-shadow:none!important;
}
body:has(#roomsPanel) dialog.room-youtube-dialog .room-youtube-result{
 background:var(--fusion-live-inset)!important;color:var(--fusion-text,#eeece4)!important;
 border-color:var(--fusion-live-line)!important;border-radius:16px;box-shadow:none;
}
body:has(#roomsPanel) dialog:is(.room-youtube-dialog,.netflix-session-panel) :is(.room-youtube-channel,.room-youtube-search-status,#videoSourceStatus){color:var(--fusion-muted,#c5c1b5)!important;}
body:has(#roomsPanel) dialog.netflix-session-panel .netflix-availability{
 background:var(--fusion-live-inset)!important;color:var(--fusion-muted,#c5c1b5)!important;
 border-color:var(--fusion-live-line)!important;border-radius:16px;
}
/* Existing screen-share retry/resume chrome; no screen/camera pixel rule. */
body #overliveScreenShareProblem{
 background:var(--fusion-live-panel)!important;color:var(--fusion-text,#eeece4)!important;
 border-color:var(--fusion-live-line)!important;border-radius:20px;
}
body #overliveScreenShareProblem p{color:var(--fusion-muted,#c5c1b5)!important;}
body #overliveScreenShareProblem button{
 background:var(--fusion-live-control)!important;color:var(--fusion-text,#eeece4)!important;
 border-color:var(--fusion-live-line)!important;border-radius:16px;
}
body #overliveScreenShareProblem .overlive-screen-share-retry{
 background:var(--fusion-gold,#d9ad61)!important;color:#17140e!important;border-color:var(--fusion-gold,#d9ad61)!important;
}
body #liveRoom #roomsPanel [data-overlive-screen-share-surface]>.overlive-screen-share-resume{
 background:var(--fusion-live-panel)!important;color:var(--fusion-text,#eeece4)!important;
 border-color:var(--fusion-gold,#d9ad61)!important;border-radius:16px;
}
/* No added motion or enclosure for selection; keyboard focus stays distinct. */
body #liveRoom #roomsPanel :is(button,summary,input,textarea,select):focus-visible,
body #overliveMusicBubbles :is(button,input):focus-visible,
body #studio.prelive-simple[data-prelive='true'] :is(button,input,select):focus-visible,
body:has(#roomsPanel) dialog:is(.room-youtube-dialog,.netflix-session-panel) :is(button,input,select,a):focus-visible,
body #overliveScreenShareProblem button:focus-visible{
 outline:2px solid var(--fusion-gold,#d9ad61)!important;outline-offset:2px;
}
