
/* =========================================================
   MENKULEX OS v7.9.3.8.1 — Stability Sweep Layer
   Purpose: web/tablet/mobile stabilization without route/class rename.
   ========================================================= */
:root{
  --mxos-stable-navy:#06162f;
  --mxos-stable-blue:#1677ff;
  --mxos-stable-orange:#ff7a18;
  --mxos-stable-green:#18b96f;
  --mxos-stable-bg:#f4f8fd;
  --mxos-stable-card:#fff;
  --mxos-stable-line:#dbe8f7;
  --mxos-stable-text:#071b3a;
  --mxos-stable-muted:#62728a;
  --mxos-stable-shadow:0 14px 34px rgba(7,27,58,.08);
}
html{box-sizing:border-box!important;-webkit-text-size-adjust:100%;scroll-behavior:auto!important;}
*,*:before,*:after{box-sizing:inherit!important;}
html,body{max-width:100%!important;overflow-x:hidden!important;}
body{min-width:0!important;background:var(--mxos-stable-bg);-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;}
body.mxos-v600-unlocked{overflow-y:auto!important;position:static!important;}
body.mxos-v600-unlocked #wpwrap,body.mxos-v600-unlocked #wpcontent,body.mxos-v600-unlocked #wpbody,body.mxos-v600-unlocked #wpbody-content{overflow:visible!important;min-height:100vh!important;}

/* General safe containers */
.mxos-admin-shell,.mxos-os-shell,.mxos-viewport,.mxos-workspace,.mxos-dashboard-shell,.mxos-public-shell,.mxos-public-app,.mxos-invest-app,.mxos-search-center-v591,.mxos-lead-command-shell,.mxos-map-shell{min-width:0!important;max-width:100%!important;overflow-x:hidden!important;}
.mxos-workspace,.mxos-dashboard-shell,.mxos-search-center-v591,.mxos-public-app,.mxos-invest-app{isolation:isolate;}
.mxos-workspace *,.mxos-dashboard-shell *,.mxos-search-center-v591 *,.mxos-public-app *,.mxos-invest-app *{min-width:0;}
img,video,canvas,svg,iframe{max-width:100%!important;}
img{height:auto;}
.mxos-card,.mxos-panel,.mxos-section,.mxos-module-card,.mxos-center-card,.mxos-kpi-card,.mxos-box,.mxos-sc-card-v591,.mxos-sc-group-v591,.mxos-sc-listing-card-v592{overflow:hidden!important;}

/* Text/heading overflow */
.mxos-workspace h1,.mxos-workspace h2,.mxos-workspace h3,.mxos-workspace p,.mxos-workspace strong,
.mxos-search-center-v591 h1,.mxos-search-center-v591 h2,.mxos-search-center-v591 h3,.mxos-search-center-v591 p,.mxos-search-center-v591 strong,
.mxos-public-app h1,.mxos-public-app h2,.mxos-public-app h3,.mxos-public-app p,.mxos-public-app strong{
  overflow-wrap:anywhere;word-break:normal;
}

/* Topbar and search overlay safety */
.mxos-topbar,.mxos-topbar-fixed,.mxos-command-topbar,.mxos-public-topbar{overflow:visible!important;z-index:99990!important;position:relative;}
.mxos-search-input-wrap,.mxos-global-search,.mxos-public-search,.mxos-sc-search-v591{position:relative!important;overflow:visible!important;z-index:99991!important;}
.mxos-smart-search-results-v3671,.mxos-smart-search-results-v589,.mxos-search-results,.mxos-search-dropdown,.mxos-search-panel,.mxos-smart-dropdown{
  position:absolute!important;z-index:2147483000!important;background:#fff!important;border:1px solid var(--mxos-stable-line)!important;border-radius:18px!important;box-shadow:0 24px 64px rgba(7,27,58,.22)!important;max-width:min(640px,calc(100vw - 28px))!important;max-height:min(560px,calc(100vh - 140px))!important;overflow:auto!important;overscroll-behavior:contain!important;-webkit-overflow-scrolling:touch!important;
}
.mxos-smart-search-results-v3671 *,.mxos-smart-search-results-v589 *,.mxos-search-results *,.mxos-search-dropdown *{min-width:0!important;}
.mxos-smart-search-results-v3671 a,.mxos-smart-search-results-v589 a,.mxos-search-results a,.mxos-search-dropdown a,
.mxos-smart-search-results-v3671 button,.mxos-smart-search-results-v589 button,.mxos-search-results button,.mxos-search-dropdown button{
  min-height:46px!important;display:grid!important;grid-template-columns:auto minmax(0,1fr) auto!important;align-items:center!important;gap:10px!important;
}
.mxos-smart-search-results-v3671 strong,.mxos-smart-search-results-v589 strong,.mxos-search-results strong,.mxos-search-dropdown strong{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.mxos-search-dim,.mxos-search-backdrop,.mxos-page-lock-overlay{pointer-events:none!important;display:none!important;}

/* Sidebar: desktop/tablet/mobile scroll and card alignment */
.mxos-sidebar-master,.mxos-admin-sidebar,.mxos-left-nav,.mxos-mobile-drawer{overscroll-behavior:contain!important;-webkit-overflow-scrolling:touch!important;scrollbar-gutter:stable;}
.mxos-sidebar-master{max-height:100dvh!important;overflow-y:auto!important;overflow-x:hidden!important;}
.mxos-sidebar-master a,.mxos-sidebar-master button,.mxos-mobile-drawer a,.mxos-mobile-drawer button{min-height:44px;white-space:normal!important;}
.mxos-sidebar-master .mxos-nav-card,.mxos-sidebar-master .mxos-nav-tile,.mxos-sidebar-master a{transition:transform .16s ease,box-shadow .16s ease,border-color .16s ease,background .16s ease;}
.mxos-sidebar-master .mxos-nav-card:hover,.mxos-sidebar-master .mxos-nav-tile:hover{transform:translateY(-1px);box-shadow:0 14px 28px rgba(37,99,235,.12)!important;}

/* Generic grids: prevent overlap and bad fixed widths */
.mxos-kpi-grid,.mxos-module-grid,.mxos-card-grid,.mxos-center-grid,.mxos-dashboard-actions,.mxos-quick-grid,.mxos-grid,.mxos-row-grid,
.mxos-dashboard-action-radar-v566,.mxos-executive-recs-grid-v565,.mxos-ecosystem-flow,.mxos-sc-listing-grid-v592{
  display:grid!important;grid-template-columns:repeat(auto-fit,minmax(220px,1fr))!important;gap:14px!important;align-items:stretch!important;
}
.mxos-kpi-grid>*,.mxos-module-grid>*,.mxos-card-grid>*,.mxos-center-grid>*,.mxos-dashboard-actions>*,.mxos-quick-grid>*,.mxos-grid>*,.mxos-row-grid>*,.mxos-ecosystem-flow>*,.mxos-sc-listing-grid-v592>*{min-width:0!important;max-width:100%!important;}
.mxos-section-actions,.mxos-actions,.mxos-card-actions,.mxos-quick-actions,.mxos-sc-action-ribbon-v594{display:flex!important;gap:10px!important;align-items:center!important;flex-wrap:wrap!important;overflow-x:auto!important;overscroll-behavior-x:contain!important;-webkit-overflow-scrolling:touch!important;scrollbar-width:none;}
.mxos-section-actions::-webkit-scrollbar,.mxos-actions::-webkit-scrollbar,.mxos-card-actions::-webkit-scrollbar,.mxos-quick-actions::-webkit-scrollbar,.mxos-sc-action-ribbon-v594::-webkit-scrollbar{display:none;}

/* Search Center wide/stable */
.mxos-search-center-v591{padding:clamp(12px,2vw,28px)!important;}
.mxos-sc-layout-v591{display:grid!important;grid-template-columns:minmax(190px,245px) minmax(0,1fr)!important;gap:18px!important;align-items:start!important;}
.mxos-sc-layout-v591>aside.mxos-sc-ai-v591{display:none!important;}
.mxos-sc-card-v591{position:sticky!important;top:86px!important;align-self:start!important;}
.mxos-sc-listing-grid-v592{grid-template-columns:repeat(auto-fill,minmax(190px,1fr))!important;gap:12px!important;}
.mxos-sc-listing-card-v592 .photo{height:clamp(92px,10vw,124px)!important;object-fit:cover!important;background:#edf4fc!important;}
.mxos-sc-listing-card-v592 .body{padding:10px!important;}
.mxos-sc-listing-card-v592 strong{font-size:13px!important;line-height:1.22!important;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;}
.mxos-sc-listing-card-v592 small{font-size:11px!important;line-height:1.3!important;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;}
.mxos-sc-listing-card-v592 .actions{display:grid!important;grid-template-columns:1fr 1fr!important;gap:8px!important;}
.mxos-sc-filter-v591 a,.mxos-sc-filter-v591 button{cursor:pointer!important;}
.mxos-sc-filter-v591 a[aria-current="true"],.mxos-sc-filter-v591 a.active{box-shadow:0 10px 24px rgba(22,119,255,.18)!important;border-color:#93c5fd!important;}

/* Dashboard/content blocks */
.mxos-dashboard-hero,.mxos-page-hero,.mxos-public-hero{border-radius:24px!important;overflow:hidden!important;}
.mxos-info-band,.mxos-news-ticker,.mxos-ticker{overflow:hidden!important;contain:paint;}
.mxos-info-band *,.mxos-news-ticker *,.mxos-ticker *{will-change:auto!important;}

/* Floating assistants/bottom bars: no content blocking */
.mxos-live-helper,.mxos-live-helper-v350,.mxos-assistant-fab,.mxos-whatsapp-bubble,.mxos-mobile-fab{z-index:2147481500!important;transform:translateZ(0);}
.mxos-mobile-bottom-bar,.mxos-bottom-nav,.mxos-mobile-nav{z-index:2147481400!important;max-width:calc(100vw - 20px)!important;left:10px!important;right:10px!important;bottom:max(8px,env(safe-area-inset-bottom))!important;}

/* Form safety */
input,select,textarea{min-width:0!important;}
.mxos-form-grid,.mxos-filter-grid,.mxos-input-grid{display:grid!important;grid-template-columns:repeat(auto-fit,minmax(210px,1fr))!important;gap:12px!important;}

@media (max-width:1280px){
  .mxos-sc-layout-v591{grid-template-columns:minmax(180px,220px) minmax(0,1fr)!important;gap:14px!important;}
  .mxos-kpi-grid,.mxos-module-grid,.mxos-card-grid,.mxos-center-grid,.mxos-dashboard-actions,.mxos-quick-grid,.mxos-grid,.mxos-row-grid{grid-template-columns:repeat(auto-fit,minmax(190px,1fr))!important;}
}
@media (max-width:1024px){
  .mxos-sc-layout-v591{grid-template-columns:1fr!important;}
  .mxos-sc-card-v591{position:relative!important;top:auto!important;}
  .mxos-sc-filter-v591{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important;}
  .mxos-topbar,.mxos-topbar-fixed,.mxos-command-topbar,.mxos-public-topbar{display:grid!important;grid-template-columns:1fr!important;height:auto!important;gap:10px!important;}
}
@media (max-width:782px){
  body{padding-bottom:calc(78px + env(safe-area-inset-bottom))!important;}
  #wpcontent,#wpbody-content{padding-left:0!important;}
  .mxos-workspace,.mxos-dashboard-shell,.mxos-search-center-v591,.mxos-public-app,.mxos-invest-app{padding:12px!important;}
  .mxos-search-input-wrap,.mxos-global-search,.mxos-public-search,.mxos-sc-search-v591{width:100%!important;min-width:0!important;}
  .mxos-smart-search-results-v3671,.mxos-smart-search-results-v589,.mxos-search-results,.mxos-search-dropdown,.mxos-search-panel,.mxos-smart-dropdown{position:fixed!important;left:12px!important;right:12px!important;top:78px!important;width:auto!important;max-width:none!important;max-height:58dvh!important;border-radius:18px!important;}
  .mxos-kpi-grid,.mxos-module-grid,.mxos-card-grid,.mxos-center-grid,.mxos-dashboard-actions,.mxos-quick-grid,.mxos-grid,.mxos-row-grid,.mxos-ecosystem-flow{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important;}
  .mxos-sc-listing-grid-v592{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important;}
  .mxos-sc-listing-card-v592 .photo{height:96px!important;}
  .mxos-sc-listing-card-v592 .body{padding:9px!important;}
  .mxos-sc-listing-card-v592 strong{font-size:12px!important;}
  .mxos-sc-listing-card-v592 small{font-size:10px!important;}
  .mxos-sc-action-ribbon-v594{border-radius:16px!important;padding:9px!important;gap:8px!important;flex-wrap:nowrap!important;}
  .mxos-sc-action-ribbon-v594 a,.mxos-sc-action-ribbon-v594 button{padding:8px 10px!important;font-size:11px!important;white-space:nowrap!important;}
  .mxos-live-helper,.mxos-live-helper-v350,.mxos-assistant-fab{right:14px!important;bottom:calc(88px + env(safe-area-inset-bottom))!important;}
  .mxos-whatsapp-bubble{right:14px!important;bottom:calc(146px + env(safe-area-inset-bottom))!important;}
}
@media (max-width:520px){
  .mxos-kpi-grid,.mxos-module-grid,.mxos-card-grid,.mxos-center-grid,.mxos-dashboard-actions,.mxos-quick-grid,.mxos-grid,.mxos-row-grid,.mxos-ecosystem-flow{grid-template-columns:1fr!important;}
  .mxos-sc-listing-grid-v592{grid-template-columns:1fr!important;}
  .mxos-sc-filter-v591{grid-template-columns:1fr!important;}
  .mxos-sc-listing-card-v592 .photo{height:136px!important;}
}
@media (prefers-reduced-motion: reduce){*,*:before,*:after{animation-duration:.001ms!important;animation-iteration-count:1!important;transition-duration:.001ms!important;scroll-behavior:auto!important;}}
