/* Nova: retain existing controls, theme and message behavior. */
html[data-mc-theme] body.nova-ready .nova-utilities{border-top:1px solid var(--vb-rule);padding:6px 0;margin-top:5px}html[data-mc-theme] body.nova-ready .nova-utilities summary{cursor:pointer;font-size:12px;padding:8px 7px;color:var(--mc-text)}html[data-mc-theme] body.nova-ready .nova-settings{display:none!important}
@media(min-width:900px){html[data-mc-theme] body.nova-ready:not(.vb-side-closed){padding-left:52px!important}html[data-mc-theme] body.nova-ready:not(.vb-side-closed) .mc-shortcuts-v089{position:fixed!important;inset:0 auto 0 0;width:52px!important;z-index:30;display:flex!important;flex-direction:column;align-items:center;gap:9px!important;padding:12px 5px!important;margin:0!important;background:#17263b!important;border:0!important;box-shadow:inset -1px 0 #ffffff18}html[data-mc-theme] body.nova-ready .mc-shortcuts-v089 .mc-tab-v089{position:relative;width:40px!important;min-height:44px!important;color:#b9c9df!important;background:transparent!important;padding:8px 0!important}html[data-mc-theme] body.nova-ready .mc-shortcuts-v089 .mc-tab-v089[aria-selected=true]{background:#345474!important;color:#fff!important}html[data-mc-theme] body.nova-ready .mc-shortcuts-v089 .vb-label{font-size:9px!important;letter-spacing:0}html[data-mc-theme] body.nova-ready .mc-shortcuts-v089 .pulse-social-badge{position:absolute;top:0;right:-3px;font-size:9px!important}html[data-mc-theme] body.nova-ready .mc-shortcuts-v089 .pulse-friends{top:auto;bottom:0}html[data-mc-theme] body.nova-ready .nova-settings{display:block!important;margin-top:auto;width:38px!important;height:38px;background:transparent!important;color:#b9c9df!important;border:0!important;padding:0!important;font-size:22px!important}html[data-mc-theme] body.nova-ready>aside{border-right:1px solid var(--vb-rule)!important}html[data-mc-theme] body.nova-ready>main>header{min-height:48px!important;padding-block:5px!important}html[data-mc-theme] body.nova-ready #vb-header-actions button{border-radius:5px!important;box-shadow:none!important}html[data-mc-theme] body.nova-ready #compose{border-radius:6px!important}html[data-mc-theme] body.nova-ready #mc-nicks{border-radius:0!important}}

.nova-resize{display:none}html[data-mc-theme] body.nova-ready .nova-category{margin:3px 0;padding:0 4px}html[data-mc-theme] body.nova-ready .nova-category>summary{font-size:11px;opacity:.9}html[data-mc-theme] body.nova-ready .nova-category>a{display:block;padding:6px 12px;font-size:12px}html[data-mc-theme] body.nova-ready .nova-utilities>summary{font-weight:650}
@media(min-width:900px){html[data-mc-theme] body.vb-compact.nova-ready:not(.vb-side-closed):has(#mc-workspace)>aside{width:var(--nova-sidebar-width,228px)!important;min-width:var(--nova-sidebar-width,228px)!important;flex-basis:var(--nova-sidebar-width,228px)!important}html[data-mc-theme] body.vb-compact.nova-ready:not(.vb-side-closed):has(#mc-workspace)>.nova-resize{display:block;position:fixed;left:calc(52px + var(--nova-sidebar-width,228px) - 3px);top:0;bottom:0;width:7px;z-index:29;cursor:col-resize;touch-action:none;background:transparent}html[data-mc-theme] body.nova-ready .nova-resize:is(:hover,:focus-visible){background:var(--mc-accent);outline:none}}

/* Messenger workspace: keep the persistent application rail. */
@media(min-width:900px){html[data-mc-theme] body.nova-ready[data-mc-section="people"]{padding-left:52px!important}html[data-mc-theme] body.vb-compact.nova-ready[data-mc-section="people"]>aside{width:0!important;min-width:0!important;flex-basis:0!important;padding:0!important;border:0!important;overflow:visible!important}html[data-mc-theme] body.nova-ready[data-mc-section="people"]>aside>:not(.mc-shortcuts-v089){display:none!important}html[data-mc-theme] body.nova-ready[data-mc-section="people"]>aside>.mc-shortcuts-v089{position:fixed!important;display:flex!important;inset:0 auto 0 0;width:52px!important;background:#17263b!important}html[data-mc-theme] body.nova-ready[data-mc-section="people"]>main>header,html[data-mc-theme] body.nova-ready[data-mc-section="people"]>main>.mc-tabs-v089,html[data-mc-theme] body.nova-ready[data-mc-section="people"]>.nova-resize{display:none!important}html[data-mc-theme] body.nova-ready[data-mc-section="people"]>main{flex:1!important;min-width:0!important}}


/* Nova 2.0b: isolate the mobile Messenger workspace from IRC chrome. */
@media(max-width:760px){
 html[data-mc-theme] body.vb-compact.nova-ready[data-mc-section="people"]:has(#mc-workspace)>main>header,
 html[data-mc-theme] body.vb-compact.nova-ready[data-mc-section="people"]:has(#mc-workspace) :is(#mc-topic,#mc-workspace,#mc-nicks,#compose,.toolbar,.mc-tabs-v089,#mc-tabs,#mc-network-tabs){display:none!important}
 html[data-mc-theme] body.vb-compact.nova-ready[data-mc-section="people"]:has(#mc-workspace)>main{display:flex!important;flex-direction:column!important;min-height:0!important;overflow:hidden!important}
 html[data-mc-theme] body.vb-compact.nova-ready[data-mc-section="people"]:has(#mc-workspace)>main>.mc-panel-v089{display:flex!important;flex:1 1 0!important;min-height:0!important;height:auto!important;overflow:hidden!important}
 html[data-mc-theme] body.vb-compact.nova-ready[data-mc-section="people"]:has(#mc-workspace)>main>#vb-mobile-nav{display:flex!important;flex:0 0 auto!important}
 html[data-mc-theme] body.vb-compact.nova-ready[data-mc-section="people"]:has(#mc-workspace) .mc-panel-v089 .mc-frame-v089:not([hidden]){height:100%!important;min-height:0!important;flex:1!important}
}

/* Messenger owns its workspace at every viewport size, regardless of compact mode. */
html body[data-mc-section="people"] > main > :is(header,.toolbar,#mc-topic,#mc-workspace,#mc-nicks,#compose,#messages,#mc-typing,.mc-tabs-v089,#mc-tabs,#mc-network-tabs){display:none!important;}
html body[data-mc-section="people"] > main > #mc-topic{visibility:hidden!important;height:0!important;min-height:0!important;margin:0!important;padding:0!important;}

/* 3.1.1: channel-events-v071 creates a sibling ribbon, not #mc-topic.
   Match the compact theme's !important specificity without mutating IRC state. */
html body[data-mc-section]:not([data-mc-section="chat"]) #mc-channel-topic,
html[data-mc-theme] body.vb-compact[data-mc-section]:not([data-mc-section="chat"]):has(#mc-workspace) #mc-channel-topic:not([hidden]) {
  display: none !important;
}
