/* Reuse the current personal feed renderer inside KsanAI. */
html.ai-feed-embed,html.ai-feed-embed body.ksan-unified{background:transparent!important;min-height:0!important;height:100%!important;overflow:hidden!important}
html.ai-feed-embed body::after,html.ai-feed-embed #appSidebar,html.ai-feed-embed #ksanMobileTabs,html.ai-feed-embed #ksanMobileMenu,html.ai-feed-embed #ksanMenuShade{display:none!important}
html.ai-feed-embed body.ksan-unified.has-site-header>.ksan-shell{position:fixed!important;inset:0!important;display:block!important;width:100%!important;height:100%!important;padding:0!important;margin:0!important}
html.ai-feed-embed body.ksan-unified.has-site-header>.ksan-shell>.ksan-main{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;padding:0!important;display:block!important;overflow-y:auto!important;overflow-x:hidden!important;background:transparent!important}
html.ai-feed-embed body.ksan-unified.has-site-header[data-view="communities"] #communitiesView.efir-view{width:100%!important;max-width:660px!important;margin:0 auto!important;padding:0 4px 16px!important;box-sizing:border-box}
html.ai-feed-embed #communitiesView>:not(#efirPosts):not(#efirMore){display:none!important}
html.ai-feed-embed #communitiesView #efirPosts{display:grid!important;gap:12px!important}
html.ai-feed-embed #aiWorkspace{display:none!important}
html.ai-feed-embed #efirPosts .efir-cover{max-height:280px}

html.ai-feed-embed body.ksan-unified.has-site-header #appSidebar.ksan-unified-panel,html.ai-feed-embed body.ksan-unified.has-site-header #ksanMobileMenu,html.ai-feed-embed body.ksan-unified.has-site-header #ksanMobileTabs,html.ai-feed-embed body.ksan-unified.has-site-header .ksan-shell>.ksan-main>:not(#communitiesView){display:none!important}
/* Match the iframe canvas to the dark parent; paint the shared wallpaper explicitly. */
html.ai-feed-embed{color-scheme:dark!important;background:#000 linear-gradient(#0007,#0007) repeat!important;background-image:linear-gradient(#0007,#0007),url('../images/menu/wallpaper.webp')!important;background-size:auto,460px 460px!important}
html.ai-feed-embed body.ksan-unified.has-site-header .ksan-shell,
html.ai-feed-embed body.ksan-unified.has-site-header #communitiesView,
html.ai-feed-embed #efirPosts{background:transparent!important}
html.ai-feed-embed body.ksan-unified.has-site-header[data-view="communities"] #communitiesView.efir-view{padding:0 68px 16px 4px!important}
html.ai-feed-embed #communitiesView #efirPosts .wall2010-post>.ksan-post-like{position:absolute!important;left:calc(100% + 8px)!important;right:auto!important;top:50%!important;bottom:auto!important;transform:translateY(-50%)!important;margin:0!important;min-width:52px;min-height:44px}
html.ai-feed-embed #communitiesView #efirMore{display:block!important;margin:18px auto!important;min-height:44px;padding:10px 22px}
html.ai-feed-embed #communitiesView #efirMore[hidden]{display:none!important}
