/* Navigation owns its layout and tokens, independent of page-specific CSS. */
html.mv-shell{--mv-width:264px;--mv-bg:#121613;--mv-line:#2a332d;--mv-text:#e6ece7;--mv-muted:#939f95;--mv-selected:#25382c}
html.mv-shell #appView.app-shell:not(.hidden){grid-template-columns:var(--mv-width) minmax(0,1fr)!important}
.mv-shell .mv-layout>.mv-sidebar,.mv-shell .mv-layout>.mv-main{box-sizing:border-box!important}
.mv-shell :is(#appView,.mv-layout)>.mv-sidebar{min-width:0!important}
.mv-shell :is(#appView,.mv-layout){display:grid!important;grid-template-columns:var(--mv-width) minmax(0,1fr)!important;gap:0!important;padding:0!important;min-height:100dvh}
.mv-shell :is(#appView,.mv-layout).hidden{display:none!important}
.mv-shell :is(#appView,.mv-layout)>.mv-main{grid-column:2!important;min-width:0;width:100%;margin-left:0!important}
.mv-shell :is(#appView,.mv-layout)>.mv-sidebar{position:fixed!important;inset:0 auto 0 0!important;transform:none!important;visibility:visible!important;width:var(--mv-width)!important;height:100dvh!important;max-height:100dvh!important;min-height:0!important;padding:0!important;margin:0!important;display:flex!important;flex-direction:column!important;gap:0!important;background:var(--mv-bg)!important;border:0!important;border-right:1px solid var(--mv-line)!important;box-shadow:none!important;z-index:95!important;overflow:visible!important;font:14px/1.45 -apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif!important;color:var(--mv-text)!important}
.mv-shell .mv-sidebar *{box-sizing:border-box}
.mv-shell .mv-sidebar .mv-legacy,.mv-shell .mv-sidebar [hidden]{display:none!important}
.mv-shell .mv-side-head{height:76px;min-height:76px;display:flex;align-items:center;gap:8px;padding:16px}
.mv-shell .mv-brand{display:flex;align-items:center;gap:10px;min-width:0;flex:1;text-decoration:none;color:var(--mv-text)!important;white-space:nowrap}
.mv-shell .mv-brand-mark{display:grid;place-items:center;width:32px;height:32px;flex:0 0 32px;background:#253b2c;border:1px solid #42604c;border-radius:10px;color:#bde5ca;font-size:18px;font-weight:700}
.mv-shell .mv-brand-name{font-size:18px;font-weight:650;letter-spacing:-.5px}
.mv-shell .mv-icon-button{display:grid;place-items:center;width:32px;height:36px;min-height:36px;flex:0 0 32px;padding:6px;border:0;background:transparent;color:var(--mv-muted);border-radius:8px;cursor:pointer;font-size:26px}
.mv-shell .mv-icon-button:hover{background:#253028;color:var(--mv-text)}
.mv-shell .mv-sidebar svg,.mv-shell .mv-menu-open svg{width:20px;height:20px;flex:0 0 20px;fill:none;stroke:currentColor;stroke-width:1.65;stroke-linecap:round;stroke-linejoin:round}
.mv-shell .mv-side-scroll{flex:1;min-height:0;overflow-y:auto;overflow-x:hidden;padding:0 12px 16px;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#3a463d transparent}
.mv-shell .mv-sidebar .mv-global-nav{display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:3px!important;padding:0!important;margin:0!important;flex:none!important;border:0!important}
.mv-shell .mv-sidebar .mv-nav-link{display:flex!important;align-items:center!important;gap:12px!important;min-height:42px!important;width:100%!important;padding:10px 12px!important;margin:0!important;border:1px solid transparent!important;border-radius:9px!important;font-size:14px!important;font-weight:450!important;line-height:20px!important;text-align:left!important;white-space:nowrap!important;text-decoration:none!important;background:transparent!important;color:#b2bdb4!important;box-shadow:none!important}
.mv-shell .mv-sidebar .mv-nav-link:hover{background:#1c251f!important;color:var(--mv-text)!important}
.mv-shell .mv-sidebar .mv-nav-link[aria-current="page"]{background:var(--mv-selected)!important;border-color:#364e3e!important;color:#d2efda!important;font-weight:550!important}
.mv-shell .mv-context{margin:22px 0 0!important;padding:18px 0 0!important;border:0!important;border-top:1px solid var(--mv-line)!important;display:flex;flex-direction:column;gap:10px}
.mv-shell .mv-section-label{margin:0 10px 2px!important;font-size:10px!important;font-weight:600!important;letter-spacing:1.3px!important;color:var(--mv-muted)!important}
.mv-shell .mv-context :is(#newChatBtn,#newVerse,#automationNewButton,.unified-new-chat){display:flex!important;align-items:center!important;min-height:42px!important;width:100%!important;margin:0!important;padding:10px 12px!important;border:1px solid #384c3e!important;border-radius:9px!important;background:#213328!important;color:#c9e9d3!important;font-size:13px!important;font-weight:550!important;text-align:left!important;gap:8px!important;text-decoration:none}
.mv-shell .mv-context :is(.history-search,.unified-history-search){display:flex!important;align-items:center!important;gap:8px!important;width:100%!important;padding:8px 10px!important;margin:0!important;background:#18201b!important;border:1px solid var(--mv-line)!important;border-radius:9px!important;height:40px!important;min-height:40px!important}
.mv-shell .mv-context :is(.history-search,.unified-history-search) input{min-width:0!important;flex:1;width:100%!important;height:auto!important;min-height:0!important;margin:0!important;padding:0!important;border:0!important;outline:0!important;background:transparent!important;color:var(--mv-text)!important;font:13px/1.4 inherit!important}
.mv-shell .mv-context :is(.conversation-list,.unified-conversation-list,#projects,.unified-context-nav){display:flex!important;flex-direction:column!important;flex:none!important;width:100%!important;gap:3px!important;min-height:0!important;max-height:none!important;margin:0!important;padding:0!important;overflow:visible!important}
.mv-shell .mv-context :is(.conversation,.unified-history-item,#projects button,.unified-context-nav button){min-width:0!important;flex:none!important;width:100%!important;min-height:40px!important;padding:10px!important;margin:0!important;border:0!important;border-radius:8px!important;background:transparent!important;color:#aab8ad!important;font-size:13px!important;line-height:1.45!important;text-align:left!important;box-shadow:none!important}
.mv-shell .mv-context :is(.conversation,.unified-history-item,#projects button,.unified-context-nav button):hover,.mv-shell .mv-context .active{background:#253028!important;color:#e4eee6!important}
.mv-shell .mv-context .conversation-preview{display:none!important}
.mv-shell .mv-context :is(.unified-history-preview,small){font-size:11px;color:#89998d}
.mv-shell .mv-context .unified-history-tabs{margin:0!important}
.mv-shell .mv-side-footer{position:relative;flex:none;padding:10px 10px max(12px,env(safe-area-inset-bottom));border-top:1px solid var(--mv-line);background:var(--mv-bg);margin:0}
.mv-shell .mv-account-button{display:flex;align-items:center;gap:10px;width:100%;min-height:48px;margin:0;padding:8px;border:0;border-radius:9px;background:transparent;color:var(--mv-text);text-align:left;cursor:pointer}
.mv-shell .mv-account-button:hover{background:#202b23}
.mv-shell .mv-avatar{display:grid!important;place-items:center!important;flex:0 0 32px!important;width:32px!important;height:32px!important;border:1px solid #3d5444!important;border-radius:10px!important;background:#25382b!important;color:#bee4c9!important;font-size:13px!important;font-weight:600!important}
.mv-shell .mv-profile-copy{display:flex;flex:1;flex-direction:column;min-width:0;gap:3px}
.mv-shell .mv-profile-copy b,.mv-shell .mv-profile-copy span{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:12px;font-weight:500;line-height:1.4;color:var(--mv-text)}
.mv-shell .mv-profile-copy span{font-size:11px;font-weight:400;color:var(--mv-muted)}
.mv-shell .mv-account-chevron{font-size:16px;color:var(--mv-muted)}
.mv-shell .mv-account-popup{position:absolute;left:10px;bottom:calc(100% + 6px);width:244px;max-width:calc(100vw - 40px);padding:7px;background:#202822;border:1px solid #3c4b40;border-radius:12px;box-shadow:0 12px 50px #0007;z-index:10}
.mv-shell .mv-account-popup .mv-account-item{display:block;width:100%;padding:12px;min-height:44px;border:0;border-radius:7px;background:transparent;color:#dde8df;text-decoration:none;text-align:left;font:13px/1.4 -apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;cursor:pointer}
.mv-shell .mv-account-popup .mv-account-item:hover{background:#303f34}
.mv-shell .mv-account-popup .mv-logout{border-top:1px solid #3c4b40;border-radius:0;margin-top:4px;color:#edb8b3}
.mv-shell .mv-sidebar :is(a,button,input):focus-visible,.mv-shell .mv-menu-open:focus-visible{outline:2px solid #b8e2c4!important;outline-offset:2px!important}
.mv-shell .mv-menu-open,.mv-shell .mv-drawer-close,.mv-shell .mv-backdrop{display:none!important}
.mv-shell :is(#menuBtn,[data-unified-sidebar-toggle],.unified-sidebar-backdrop,#sidebarBackdrop){display:none!important}
.mv-shell #appView #menuBtn{display:none!important}
.mv-shell #appView .composer-wrap{left:var(--mv-width)!important;width:calc(100% - var(--mv-width))!important;padding-left:max(20px,calc((100vw - var(--mv-width) - 820px)/2))!important;padding-right:max(20px,calc((100vw - var(--mv-width) - 820px)/2))!important}
.mv-shell .network-workspace .post-composer{left:calc(var(--mv-width) + 24px)!important}
.mv-shell .domain-layout{max-width:1100px;justify-self:center}
.mv-shell .domain-layout header>a{display:none}
/* Public shared conversations remain read-only and do not expose member chrome. */
html.mv-shell .shared-conversation-view #appView.app-shell:not(.hidden),html.mv-shell.shared-conversation-view #appView.app-shell:not(.hidden){grid-template-columns:minmax(0,1fr)!important}
.mv-shell .shared-conversation-view #appView>.mv-sidebar,.mv-shell.shared-conversation-view #appView>.mv-sidebar,.mv-shell .shared-conversation-view .mv-menu-open,.mv-shell.shared-conversation-view .mv-menu-open{display:none!important}
.mv-shell .shared-conversation-view #appView>.mv-main,.mv-shell.shared-conversation-view #appView>.mv-main{grid-column:1!important}
@media(min-width:901px){
 html.mv-nav-collapsed{--mv-width:76px}
 .mv-nav-collapsed .mv-sidebar .mv-side-head{height:112px;min-height:112px;flex-direction:column;padding:14px 12px;gap:8px}
 .mv-nav-collapsed .mv-brand{flex:none}
 .mv-nav-collapsed .mv-sidebar :is(.mv-brand-name,.mv-nav-link>span,.mv-context,.mv-profile-copy,.mv-account-chevron){display:none!important}
 .mv-nav-collapsed .mv-sidebar .mv-nav-link{justify-content:center!important;padding:12px!important}
 .mv-nav-collapsed .mv-account-button{justify-content:center;padding:6px}
}
@media(max-width:900px){
 html.mv-shell #appView.app-shell:not(.hidden){grid-template-columns:minmax(0,1fr)!important}
 .mv-shell :is(#appView,.mv-layout){display:block!important;grid-template-columns:minmax(0,1fr)!important}
 .mv-shell :is(#appView,.mv-layout)>.mv-sidebar{width:min(304px,calc(100vw - 48px))!important;transform:translateX(-100%)!important;visibility:hidden!important;transition:transform .18s ease,visibility .18s!important;z-index:1300!important;box-shadow:20px 0 70px #0006!important}
 .mv-shell :is(#appView,.mv-layout)>.mv-sidebar.mv-open{transform:translateX(0)!important;visibility:visible!important}
 .mv-shell .mv-side-head{padding-top:max(16px,env(safe-area-inset-top))}
 .mv-shell .mv-side-head>.mv-icon-button:not(.mv-drawer-close){display:none!important}
 .mv-shell .mv-drawer-close{display:grid!important;width:40px;height:44px}
 .mv-shell .mv-menu-open{display:grid!important;place-items:center!important;flex:0 0 44px!important;width:44px!important;height:44px!important;padding:10px!important;margin:0 8px 0 0!important;background:#1d2921!important;border:1px solid #3a4a3f!important;border-radius:10px!important;color:#d2e5d7!important;cursor:pointer}
 .mv-shell .mv-backdrop:not([hidden]){display:block!important;position:fixed;inset:0;width:100%;height:100dvh;background:#0009;border:0;margin:0;padding:0;z-index:1299!important;backdrop-filter:blur(2px)}
 html.mv-drawer-open,html.mv-drawer-open body{overflow:hidden!important;overscroll-behavior:none}
 .mv-shell .mv-layout>.mv-main{margin:0!important;width:100%!important;min-width:0!important}
 .mv-shell #appView .composer-wrap{left:0!important;width:100%!important;padding:12px!important}
 .mv-shell .network-workspace .post-composer{left:12px!important;right:12px!important}
 .mv-shell .mv-context :is(.conversation,.unified-history-item,#projects button,.unified-context-nav button){min-height:44px!important}
 .mv-shell .mv-sidebar .mv-nav-link{min-height:44px!important}
 .mv-shell .verse-shell .topbar{gap:8px;flex-wrap:nowrap}
 .mv-shell .domain-layout{padding:20px 14px 60px}
 .mv-shell .domain-layout header{align-items:flex-start;gap:8px}
 .mv-shell .domain-layout header>div{min-width:0}
}
@media(prefers-reduced-motion:reduce){.mv-shell .mv-sidebar{transition:none!important}}
