/* Nexus Direct Messages V2: scoped, theme-native, responsive two-panel workspace. */
body.nord-nexus-active.nexus-messages-open #page-hub .nx-shell,
body.nord-nexus-active.nexus-messages-open #page-hub .nx-grid,
body.nord-nexus-active.nexus-messages-open #page-hub .nx-main{height:100%!important;min-height:0!important;background:var(--surface)!important}
body.nord-nexus-active.nexus-messages-open #page-hub .nx-dm-page{height:100%!important;min-height:0!important;grid-template-columns:clamp(320px,29%,390px) minmax(0,1fr)!important;background:var(--surface)!important}
body.nord-nexus-active.nexus-messages-open .nx-dm-sidebar,
body.nord-nexus-active.nexus-messages-open .nx-dm-pane{min-width:0!important;min-height:0!important;background:var(--surface)!important}
body.nord-nexus-active.nexus-messages-open .nx-dm-sidebar-head{height:72px!important;padding:0 20px!important}
body.nord-nexus-active.nexus-messages-open .nx-dm-account strong{font-size:17px!important;letter-spacing:-.02em}
body.nord-nexus-active.nexus-messages-open .nx-dm-new{width:40px!important;height:40px!important;border:1px solid var(--border)!important;border-radius:12px!important}
body.nord-nexus-active.nexus-messages-open .nx-dm-search-wrap{padding:15px 16px 11px!important}
body.nord-nexus-active.nexus-messages-open .nx-dm-search{height:43px!important;border:1px solid var(--border)!important;border-radius:12px!important;background:var(--surface-2)!important}
body.nord-nexus-active.nexus-messages-open .nx-dm-search input{font-size:13px!important}
body.nord-nexus-active.nexus-messages-open .nx-dm-folder-tabs{padding:2px 16px 12px!important;gap:7px!important}
body.nord-nexus-active.nexus-messages-open .nx-dm-folder-tab{height:38px!important;border-radius:10px!important;font-size:12px!important}
body.nord-nexus-active.nexus-messages-open .nx-dm-list-head{padding:12px 18px!important;border-top:1px solid var(--border)}
body.nord-nexus-active.nexus-messages-open .nx-dm-list-head strong{font-size:13px!important}
body.nord-nexus-active.nexus-messages-open .nx-dm-thread{min-height:76px!important;padding:11px 16px!important;gap:12px!important}
body.nord-nexus-active.nexus-messages-open .nx-dm-thread-shell.active{background:var(--accent-soft)!important}
body.nord-nexus-active.nexus-messages-open .nx-dm-empty-list{margin:auto 12px!important;padding:20px 14px!important;line-height:1.6!important}
body.nord-nexus-active.nexus-messages-open .nx-dm-empty{padding:28px!important}
body.nord-nexus-active.nexus-messages-open .nx-dm-empty-icon{width:78px!important;height:78px!important;border:1px solid var(--border)!important;background:var(--surface-2)!important;color:var(--accent)!important;border-radius:50%!important}
body.nord-nexus-active.nexus-messages-open .nx-dm-empty strong{font-size:18px!important}
body.nord-nexus-active.nexus-messages-open .nx-dm-empty p{max-width:380px;margin:10px auto 18px!important;font-size:13px!important;line-height:1.65!important}
body.nord-nexus-active.nexus-messages-open .nx-dm-primary{min-height:41px!important;height:auto!important;padding:10px 17px!important;border-radius:11px!important;font-size:13px!important}
body.nord-nexus-active.nexus-messages-open .nx-dm-chat-head{height:72px!important;padding:0 19px!important}
body.nord-nexus-active.nexus-messages-open .nx-dm-chat-scroll{min-height:0!important;flex:1 1 auto!important}
body.nord-nexus-active.nexus-messages-open .nx-dm-chat-compose{flex:0 0 auto!important}
@media(max-width:900px){
 body.nord-nexus-active.nexus-messages-open #page-hub .nx-dm-page{grid-template-columns:minmax(0,1fr)!important}
 body.nord-nexus-active.nexus-messages-open .nx-dm-page.chat-open .nx-dm-sidebar{display:none!important}
 body.nord-nexus-active.nexus-messages-open .nx-dm-page:not(.chat-open) .nx-dm-pane{display:none!important}
 body.nord-nexus-active.nexus-messages-open .nx-dm-page.chat-open .nx-dm-pane{display:flex!important}
 body.nord-nexus-active.nexus-messages-open .nx-dm-mobile-back{display:grid!important}
 body.nord-nexus-active.nexus-messages-open .nx-dm-sidebar{border-right:0!important}
 body.nord-nexus-active.nexus-messages-open .nx-dm-thread{min-height:72px!important}
}
@media(max-width:600px){
 body.nord-nexus-active.nexus-messages-open .nx-dm-sidebar-head{height:62px!important;padding:0 15px!important}
 body.nord-nexus-active.nexus-messages-open .nx-dm-chat-head{height:62px!important;padding:0 11px!important}
 body.nord-nexus-active.nexus-messages-open .nx-dm-search-wrap{padding:10px 13px!important}
 body.nord-nexus-active.nexus-messages-open .nx-dm-folder-tabs{padding:0 13px 10px!important}
 body.nord-nexus-active.nexus-messages-open .nx-dm-thread{padding:10px 13px!important}
 body.nord-nexus-active.nexus-messages-open .nx-dm-empty{padding:18px!important}
 body.nord-nexus-active.nexus-messages-open .nx-dm-empty-icon{width:66px!important;height:66px!important}
}
