/* Sidebar popover repair: do not let legacy inline Settings styles collapse to 46px. */
#yap-tool-menu .yap-sidebar-footer{isolation:isolate;overflow:visible!important}
#yap-tool-menu #yap-menu-settings.yap-bottom-settings{position:static!important;flex:0 0 46px!important;min-width:46px!important;width:46px!important;overflow:visible!important}
#yap-tool-menu #yap-menu-settings.yap-bottom-settings>.top-actions{
 position:absolute!important;bottom:calc(100% + 12px)!important;top:auto!important;
 left:0!important;right:0!important;width:100%!important;min-width:0!important;
 max-width:none!important;box-sizing:border-box!important;
 display:flex!important;flex-flow:column nowrap!important;align-items:stretch!important;
 gap:3px!important;margin:0!important;padding:10px!important;
 max-height:min(55dvh,420px)!important;overflow-x:hidden!important;overflow-y:auto!important;
 border:1px solid var(--border)!important;border-radius:14px!important;
 background:var(--side,#1b2738)!important;box-shadow:0 16px 40px #0005!important;
 color:var(--fg)!important;z-index:120!important;
}
#yap-tool-menu #yap-menu-settings.yap-bottom-settings:not([open])>.top-actions{display:none!important}
#yap-tool-menu #yap-menu-settings.yap-bottom-settings>.top-actions>*{
 width:100%!important;min-width:0!important;max-width:100%!important;
 box-sizing:border-box!important;flex:0 0 auto!important;white-space:normal!important;
 overflow-wrap:normal!important;word-break:normal!important;
 padding:9px 11px!important;margin:0!important;text-align:left!important;
}
#yap-tool-menu #yap-menu-settings.yap-bottom-settings>.top-actions a,
#yap-tool-menu #yap-menu-settings.yap-bottom-settings>.top-actions button{
 min-height:40px!important;justify-content:flex-start!important;
}
#yap-tool-menu #yap-menu-settings.yap-bottom-settings>.top-actions select{min-width:110px!important;max-width:100%!important}
#yap-tool-menu .yap-sidebar-footer #account-toggle{min-width:0!important;max-width:calc(100% - 46px)!important;flex:1 1 auto!important}
#yap-tool-menu .yap-sidebar-footer #account-toggle .yap-account-name{font-size:12px!important}
#yap-tool-menu .yap-sidebar-footer #account-toggle .yap-account-meta{font-size:11px!important}
#yap-tool-menu #yap-menu-settings.yap-bottom-settings>summary{font-size:0!important;padding:0!important;width:42px!important;min-height:42px!important}
#yap-tool-menu #yap-menu-settings.yap-bottom-settings>summary::before{font-size:20px!important}
/* Light appearance: quiet, readable surfaces, with YapThing lime only for accents. */
html[data-theme="original"] #yap-tool-menu,
body[data-theme="light"] #yap-tool-menu{background:#f6f8f3!important;color:#243027!important;border-right:1px solid #dce5da!important}
html[data-theme="original"] #yap-tool-menu .yap-nav-item:hover,
html[data-theme="original"] #yap-tool-menu .yap-chat-entry:hover,
body[data-theme="light"] #yap-tool-menu .yap-nav-item:hover{background:#e9f0e5!important;color:#253329!important}
html[data-theme="original"] #yap-tool-menu .yap-sidebar-footer,
body[data-theme="light"] #yap-tool-menu .yap-sidebar-footer{background:#fff!important;border-color:#dce5da!important}
html[data-theme="original"] #yap-tool-menu #yap-menu-settings.yap-bottom-settings>.top-actions,
body[data-theme="light"] #yap-tool-menu #yap-menu-settings.yap-bottom-settings>.top-actions{background:#fff!important;color:#243027!important;border-color:#dce5da!important;box-shadow:0 14px 36px #25332920!important}
@media(max-width:700px){#yap-tool-menu #yap-menu-settings.yap-bottom-settings>.top-actions{max-height:min(58dvh,400px)!important}}
