/* RD NovaSphere V112 — lighter system animation, taller desktop NovaAI, mobile pressure controls. */
html.rd-light-mesh-v112 #linked-mesh{opacity:.42!important}
@media(max-width:820px){html.rd-light-mesh-v112 #linked-mesh{opacity:.32!important}}
html.rd-nova-context-open.rd-light-mesh-v112 #linked-mesh{opacity:.16!important}

/* Full NovaAI is intentionally visually lighter than the wider NovaSphere. */
body:has(.app-shell) #linked-mesh{display:none!important}
body:has(.app-shell) #network{opacity:.36!important}
@media(max-width:820px){body:has(.app-shell) #network{opacity:.24!important}}

/* Desktop contextual assistant: tall right rail, composer anchored, more response visible at once. */
@media(min-width:821px){
  .nova-context-panel{
    top:78px!important;bottom:14px!important;right:14px!important;
    height:auto!important;max-height:none!important;
    width:min(440px,calc(100vw - 36px))!important;
    border-radius:20px!important;
  }
  .nova-context-messages{min-height:0!important;flex:1 1 auto!important;overflow-y:auto!important}
  .nova-context-compose{flex:0 0 auto!important}
}

/* Phone assistant: no blur-heavy backdrop; keep every control within the visible viewport. */
@media(max-width:820px){
  .nova-context-backdrop{backdrop-filter:none!important;-webkit-backdrop-filter:none!important;background:rgba(1,7,18,.24)!important}
  .nova-context-panel{max-height:min(84dvh,var(--rd-vv-height,84dvh))!important;max-width:calc(100vw - 16px)!important;overflow:hidden!important}
  .nova-context-messages{min-height:0!important;overflow-y:auto!important;-webkit-overflow-scrolling:touch!important}
  .nova-context-compose{min-width:0!important;max-width:100%!important}
  .nova-context-compose textarea{width:100%!important;max-width:100%!important;min-width:0!important;box-sizing:border-box!important}
  .nova-context-actions{max-width:100%!important;min-width:0!important}
  .nova-context-action-buttons{max-width:100%!important;min-width:0!important}
}

/* While contextual NovaAI is open, reduce costly decorative painting without redesigning pages. */
html.rd-nova-context-open body[data-rd-individual-portfolio="1"]{scroll-behavior:auto!important}
html.rd-nova-context-open body[data-rd-individual-portfolio="1"] :where(.glass-orb,.ambient-layer){filter:none!important;-webkit-filter:none!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important}

/* Portfolio scrolling performance only: preserve authored appearance and content. */
@media(max-width:820px){
  body[data-rd-individual-portfolio="1"]{scroll-behavior:auto!important;overflow-y:auto!important;touch-action:pan-y pinch-zoom!important}
  body[data-rd-individual-portfolio="1"] main{overflow:visible!important;touch-action:pan-y!important}
  body[data-rd-individual-portfolio="1"] section{touch-action:pan-y!important}
  body[data-rd-individual-portfolio="1"] :where(.glossary-modal:not(.open),.final-nav-links:not(.open)){pointer-events:none}
}
