/* MenkulEX v277: scoped standalone layout stabilization; no theme/global impact. */
body.mx208-standalone .xan-ai-brand-v233>span.mx277-brand-icon{
  width:42px!important;height:42px!important;flex:0 0 42px!important;padding:0!important;
  background:transparent!important;border:0!important;border-radius:12px!important;overflow:hidden!important;
}
body.mx208-standalone .mx277-brand-icon img{width:42px!important;height:42px!important;display:block!important;object-fit:contain!important}
body.mx208-standalone .xan-ai-appbar-v233{min-width:0!important;gap:10px!important;flex-shrink:0!important}
body.mx208-standalone .xan-ai-brand-v233{flex:0 1 auto!important;min-width:0!important;gap:9px!important}
body.mx208-standalone .xan-ai-appbar-meta-v233{min-width:0!important;flex:0 1 auto!important;gap:6px!important}
body.mx208-standalone .xan-ai-appbar-meta-v233>.mx274-ara{
  background:#FFD64B!important;color:#03475D!important;-webkit-text-fill-color:#03475D!important;
  min-height:42px!important;min-width:54px!important;border:1px solid #e1b900!important;
  font-weight:500!important;position:relative!important;z-index:10!important;pointer-events:auto!important;
}
body.mx208-standalone .xan-ai-appbar-meta-v233>.mx274-ara:hover,
body.mx208-standalone .xan-ai-appbar-meta-v233>.mx274-ara:focus-visible{background:#ffe37b!important}
body.mx208-standalone .mx201-history-head{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;gap:7px!important}
body.mx208-standalone .mx201-history-head strong{font-size:14px!important;min-width:0!important;white-space:nowrap!important}
body.mx208-standalone .mx201-history-head [data-mx201-new-chat]{
  min-width:0!important;min-height:40px!important;padding:8px 10px!important;
  font-size:11px!important;font-weight:500!important;white-space:nowrap!important;
}
/* Previous max-height + min-height + overflow:hidden clipped Project Filters at the bottom. */
body.mx208-standalone .xan-ai-filter-rail-v236{
  height:calc(100dvh - 100px)!important;
  min-height:0!important;max-height:calc(100dvh - 100px)!important;
  overflow-x:hidden!important;overflow-y:auto!important;
  scrollbar-width:thin!important;overscroll-behavior:contain!important;
}
body.mx208-standalone .mx201-history{flex:0 1 auto!important;min-height:0!important;max-height:none!important}
body.mx208-standalone .mx201-history-list{
  flex:0 1 auto!important;min-height:72px!important;max-height:clamp(90px,26dvh,300px)!important;
  overflow-y:auto!important;overscroll-behavior:contain!important;
}
body.mx208-standalone .mx201-filter-details{flex:0 0 auto!important;min-height:0!important;margin-top:10px!important;position:relative!important}
body.mx208-standalone .mx201-filter-details summary{min-height:40px!important;display:flex!important;align-items:center!important;cursor:pointer!important;padding:9px 11px!important}
body.mx208-standalone .mx201-filter-details-body{max-height:clamp(150px,35dvh,360px)!important;overflow-y:auto!important}
@media(min-width:781px){
 body.mx208-standalone .xan-ai-center-v233 .xcai-shell{min-height:0!important;height:calc(100dvh - 100px)!important}
}
@media(max-width:1100px){
 body.mx208-standalone .xan-ai-appbar-v233{flex-wrap:wrap!important;gap:8px!important}
 body.mx208-standalone .xan-ai-appbar-meta-v233{margin-left:auto!important;justify-content:flex-end!important;flex-wrap:wrap!important}
 body.mx208-standalone .xan-ai-appbar-status-v239{flex:1 1 100%!important;order:3!important;max-width:100%!important}
}
@media(max-width:780px){
 body.mx208-standalone .xan-ai-filter-rail-v236{height:auto!important;max-height:none!important;overflow-y:visible!important;min-height:0!important}
 body.mx208-standalone .mx201-history-list{max-height:240px!important}
 body.mx208-standalone .xan-ai-appbar-meta-v233>.mx274-ara{min-height:40px!important}
 body.mx208-standalone .xan-ai-appbar-meta-v233>span{display:none!important}
}
@media(max-width:400px){
 body.mx208-standalone .xan-ai-brand-v233 strong{font-size:13px!important;white-space:nowrap!important}
 body.mx208-standalone .mx277-brand-icon,body.mx208-standalone .mx277-brand-icon img{width:36px!important;height:36px!important}
 body.mx208-standalone .xan-ai-appbar-meta-v233{gap:4px!important}
 body.mx208-standalone .xan-ai-appbar-meta-v233>.mx274-ara{padding:8px!important;min-width:45px!important}
}

/* User-requested structural cleanup: one compact top bar, distinct sidebar sections. */
body.mx208-standalone .xan-ai-appbar-v233{min-height:62px!important;padding:9px 16px!important}
body.mx208-standalone .xan-ai-appbar-meta-v233{margin-left:auto!important}
body.mx208-standalone .xan-ai-appbar-meta-v233>.mx208-projects-toggle{min-height:40px!important;padding:9px 12px!important;border-radius:9px!important;font-size:12px!important;font-weight:500!important}
body.mx208-standalone .xan-ai-filter-rail-v236{padding:12px!important;gap:9px!important}
body.mx208-standalone .mx201-history{flex:0 1 auto!important;gap:8px!important}
body.mx208-standalone .mx201-history-head strong{font-size:14px!important;font-weight:500!important}
body.mx208-standalone .mx203-history-search-label input{min-height:40px!important;font-size:13px!important;border-radius:9px!important}
body.mx208-standalone .mx277-side-tools{margin-top:5px!important;border:1px solid rgba(255,255,255,.25)!important;border-radius:10px!important;min-width:0!important;flex:0 0 auto!important}
body.mx208-standalone .mx277-side-tools>summary{display:flex!important;align-items:center!important;min-height:39px!important;padding:9px 11px!important;color:#fff!important;background:#075972!important;font-size:12px!important;font-weight:500!important;border-radius:9px!important;cursor:pointer!important}
body.mx208-standalone .mx277-side-tools[open]>summary{border-bottom-left-radius:0!important;border-bottom-right-radius:0!important}
body.mx208-standalone .mx277-side-tools-body{display:grid;gap:9px;padding:9px;min-width:0;max-height:min(36dvh,320px);overflow-y:auto;overflow-x:hidden}
body.mx208-standalone .mx277-side-tools-body>*{max-width:100%!important;margin:0!important;min-width:0!important;box-sizing:border-box!important}
body.mx208-standalone .mx277-side-tools-body :is(button,input){font-size:12px!important;max-width:100%!important}
body.mx208-standalone .mx201-filter-details{margin-top:4px!important;padding:0!important;border-top:0!important;border:1px solid rgba(255,255,255,.25)!important;border-radius:10px!important}
body.mx208-standalone .mx201-filter-details>summary{padding:10px 11px!important;font-weight:500!important;font-size:12px!important}
body.mx208-standalone .mx201-filter-details-body{padding:9px!important;max-height:min(44dvh,420px)!important;overflow-y:auto!important}
body.mx208-standalone .xan-ai-center-v233 .xcai-shell{border-radius:13px!important;box-shadow:0 3px 14px rgba(3,71,93,.06)!important}
body.mx208-standalone .xcai-chat-toolbar-v175{padding:8px 10px!important}
body.mx208-standalone .xcai-chat-tools-v175{gap:5px!important}
body.mx208-standalone .xcai-chat-tools-v175 button{font-weight:500!important;font-size:11px!important;min-height:34px!important}
@media(max-width:780px){
 body.mx208-standalone .xan-ai-filter-rail-v236{max-height:none!important;overflow:visible!important}
 body.mx208-standalone .mx277-side-tools-body{max-height:300px}
 body.mx208-standalone .mx201-history{flex:0 0 auto!important}
}
