
.sg-menu-heading{display:flex;align-items:center;gap:14px;min-width:0}
.sg-menu-heading-copy{min-width:0;flex:1}
.sg-menu-heading-icon{display:block;width:var(--sg-icon-hero);height:var(--sg-icon-hero);flex:0 0 var(--sg-icon-hero);object-fit:contain}
.sg-menu-heading-icon[hidden]{display:none}
.sg-menu-heading h1,.sg-menu-heading h2{margin:0}
#communityPanel > .sg-menu-heading{margin-bottom:16px}
#aiInsightsView .sg-menu-heading{margin-bottom:8px}
@media(max-width:760px){
 .sg-menu-heading{gap:10px}
 .sg-menu-heading-icon{width:var(--sg-icon-hero);height:var(--sg-icon-hero);flex-basis:var(--sg-icon-hero)}
 .sg-menu-heading h1,.sg-menu-heading h2{overflow-wrap:anywhere;font-size:22px;line-height:1.25}
}
/* Navigation keeps the existing outline SVG; decorative PNGs belong to headings. */
.sidebar-icon svg{width:var(--sg-icon-nav);height:var(--sg-icon-nav)}
/* Let the AI bubble, dots and sparkles share the Messages label colour. */
#app .sidebar-item[data-view="aiMessagesView"] .sidebar-icon{color:inherit}

/* Analysis lives in the existing mobile More menu, not the five-item bottom bar. */
#app #mobileMoreMenu [data-view="aiInsightsView"]{display:flex;align-items:center;justify-content:space-between;gap:var(--sg-space-2);color:var(--sg-text-muted);background:transparent;font-weight:500}
#app #mobileMoreMenu [data-view="aiInsightsView"].active{color:var(--sg-accent-text);background:transparent;font-weight:600}
#app #mobileMoreMenu [data-view="aiInsightsView"] .sg-ai-analytics-icon{width:var(--sg-icon-nav);height:var(--sg-icon-nav);flex:0 0 var(--sg-icon-nav)}
#app #mobileMoreMenu [data-view="aiInsightsView"]:focus-visible{outline:2px solid var(--sg-accent-text);outline-offset:-2px}
/* Tint only the existing Messages raster; preserve its alpha, shading and geometry. */
#aiMessagesView .ex-restored-heading-icon,
.sg-menu-heading-icon[data-menu-icon="messages"]{filter:url(#sg-messages-brand-tint)}
#sg-messages-brand-color{flood-color:var(--sg-primary)}
