/* KEDU_COMMUNITY_SAFE_UI_V6: stylesheet only, preserve working navigation JS. */
/* Keep community workspace intact; independently scroll only the listing. */
#workspace #sidebar {display:flex!important;flex-direction:column!important;min-height:0!important;overflow:hidden!important}
#workspace #sidebar > .sidebar-head,
#workspace #sidebar > .tabline {flex:0 0 auto!important}
#workspace #sidebar > #myPane:not([hidden]) {display:flex!important;flex:1 1 auto!important;min-height:0!important;flex-direction:column!important;overflow:hidden!important}
#workspace #sidebar > #myPane > #spaceList {flex:1 1 auto!important;min-height:0!important;overflow-y:auto!important;overscroll-behavior:contain!important;padding-bottom:12px!important}
#workspace #sidebar > #myPane > #joinInvite {display:flex!important;flex:0 0 auto!important;justify-content:center!important;align-items:center!important;width:calc(100% - 24px)!important;min-height:54px!important;margin:0 12px 12px!important;padding:10px 14px!important;box-sizing:border-box!important;border-radius:15px!important;text-align:center!important;position:relative!important;inset:auto!important;z-index:1!important}
#workspace #sidebar #discoverPane:not([hidden]),#workspace #sidebar #noticesPane:not([hidden]) {flex:1 1 auto!important;min-height:0!important;overflow-y:auto!important}
/* Only one Communities search bar; do not remove the working search or its handlers. */
#workspace #sidebar .kedu-clean-space-search {display:none!important}
/* Stabilize the pre-existing Communities settings dropdown. No new menu framework. */
html body .kedu-clean-menu-panel{width:min(286px,calc(100vw - 24px))!important;min-width:0!important;max-width:286px!important;max-height:min(400px,calc(100dvh - 90px))!important;padding:9px!important;box-sizing:border-box!important;display:flex!important;flex-direction:column!important;gap:3px!important;overflow-y:auto!important;overflow-x:hidden!important;border-radius:18px!important;background:#fff!important;color:#153e33!important;border:1px solid #d7e9df!important;box-shadow:0 16px 55px rgba(9,48,38,.21)!important;z-index:2147483002!important}
html body .kedu-clean-menu-panel[hidden],html body .kedu-clean-menu-panel[aria-hidden="true"] {display:none!important}
html body .kedu-clean-menu-panel > .kedu-clean-action {display:grid!important;grid-template-columns:40px minmax(0,1fr)!important;align-items:center!important;gap:11px!important;width:100%!important;min-width:0!important;min-height:50px!important;margin:0!important;padding:5px 9px!important;box-sizing:border-box!important;border:0!important;background:transparent!important;border-radius:12px!important}
html body .kedu-clean-menu-panel > .kedu-clean-action:hover {background:#eef8f2!important}
html body .kedu-clean-menu-panel > .kedu-clean-action > button {display:grid!important;grid-column:1!important;place-items:center!important;position:static!important;float:none!important;width:40px!important;height:40px!important;min-width:40px!important;min-height:40px!important;max-width:40px!important;max-height:40px!important;padding:0!important;margin:0!important;box-sizing:border-box!important;border:1px solid #d7e8df!important;border-radius:12px!important;background:#eaf7f1!important;color:#08654d!important;line-height:1!important;font-size:17px!important;overflow:hidden!important;box-shadow:none!important}
html body .kedu-clean-menu-panel > .kedu-clean-action > .kedu-clean-action-label {display:block!important;grid-column:2!important;position:static!important;float:none!important;width:auto!important;min-width:0!important;max-width:none!important;margin:0!important;padding:0!important;box-sizing:border-box!important;border:0!important;background:transparent!important;color:#173d32!important;font-size:14px!important;font-weight:650!important;line-height:1.35!important;text-align:left!important;white-space:normal!important;overflow-wrap:break-word!important;pointer-events:none!important}
html body .kedu-clean-menu-panel > .kedu-clean-action:has(a[href]) {display:flex!important;flex-direction:row!important;gap:0!important;padding:0!important}
html body .kedu-clean-menu-panel > .kedu-clean-action:has(a[href]) > a[href] {display:flex!important;align-items:center!important;justify-content:flex-start!important;position:static!important;float:none!important;flex:1 1 auto!important;width:100%!important;max-width:none!important;min-height:48px!important;margin:0!important;padding:12px 16px!important;border:0!important;border-radius:12px!important;box-sizing:border-box!important;background:#eef8f3!important;color:#075f48!important;text-decoration:none!important;white-space:normal!important;font-weight:700!important;overflow-wrap:break-word!important}
html body .kedu-clean-menu-panel > .kedu-clean-action:has(a[href]) > .kedu-clean-action-label {display:none!important}
html body .kedu-clean-menu-panel > .kedu-clean-action[hidden]{display:none!important}
html body.dark .kedu-clean-menu-panel,html body.dark-mode .kedu-clean-menu-panel {background:#15382d!important;color:#ecfff5!important;border-color:#386654!important}
html body.dark .kedu-clean-menu-panel > .kedu-clean-action > .kedu-clean-action-label,html body.dark-mode .kedu-clean-menu-panel > .kedu-clean-action > .kedu-clean-action-label {color:#ecfff5!important}
@media(max-width:700px){
  #workspace #sidebar {min-height:0!important}
  #workspace #sidebar > #myPane > #joinInvite {min-height:58px!important;margin:0 12px max(16px,env(safe-area-inset-bottom))!important}
  html body .kedu-clean-menu-panel{width:min(280px,calc(100vw - 24px))!important;max-height:min(350px,calc(100dvh - 110px))!important}
}
