/* CoreFix UI V2.2 - compact desktop and resilient mobile layout */
.sidebar{overflow:hidden!important}
.sidebar>.brand{flex:0 0 auto}
.sidebar nav{flex:1 1 auto;min-height:0;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:rgba(155,211,201,.25) transparent;padding-right:.1rem}
.sidebar footer{flex:0 0 auto;margin-top:0!important;background:linear-gradient(180deg,rgba(8,40,41,0),rgba(8,40,41,.98) 18%)}
@media(max-height:760px) and (min-width:1101px){.sidebar{padding-top:.72rem;padding-bottom:.65rem;gap:.38rem}.sidebar .brand{padding-bottom:.28rem}.sidebar nav a{min-height:37px;padding:.42rem .7rem}.nav-section{margin:.4rem .72rem .14rem}.sidebar footer{gap:.35rem;padding-top:.4rem}.sidebar-user{padding:.48rem .58rem}.sidebar footer>button{padding:.42rem .6rem;min-height:36px}}
@media(max-width:1100px){
 body.ui-nav-open{overflow:hidden}.layout{display:block!important;grid-template-columns:1fr!important;min-height:100dvh}.work{min-height:100dvh}
 .sidebar{position:fixed!important;inset:0 auto 0 0;width:min(320px,88vw);height:100dvh!important;display:flex!important;flex-direction:column!important;padding:1rem .85rem max(1rem,env(safe-area-inset-bottom));gap:.55rem;transform:translateX(-105%);transition:transform .22s ease;z-index:60;box-shadow:18px 0 60px rgba(2,29,30,.28)}
 body.ui-nav-open .sidebar{transform:translateX(0)}.sidebar .brand{display:flex!important;min-width:0!important;flex:0 0 auto}.brand-sub{display:block!important}
 .sidebar nav{display:grid!important;flex:1 1 auto!important;min-height:0!important;overflow-y:auto!important;overflow-x:hidden!important;margin:.15rem 0 0!important;padding:0 .05rem .65rem 0!important}.sidebar nav a{flex:auto!important;min-height:44px}.nav-section{display:block!important}.sidebar footer{display:grid!important;flex:0 0 auto!important;margin-top:0!important;padding-top:.55rem;background:linear-gradient(180deg,rgba(8,40,41,0),rgba(8,40,41,.98) 20%)}.legacy-sidebar-intro{display:none!important}
 .mobile-nav-backdrop{position:fixed;inset:0;background:rgba(4,27,29,.52);z-index:55;backdrop-filter:blur(2px)}body.ui-nav-open .mobile-nav-backdrop{display:block}
 .topbar{display:grid!important;grid-template-columns:auto minmax(0,1fr) auto!important;align-items:center;gap:.55rem;min-height:60px;padding:.55rem .75rem;z-index:50}.mobile-menu-button{display:grid!important;width:42px;height:42px;padding:0;place-items:center;border:1px solid #dce5e5;background:#fff;color:#254747;border-radius:10px}.mobile-menu-button svg{width:20px;height:20px}
 .org-picker{grid-column:2;width:100%!important;min-width:0}.org-picker select{height:42px;font-size:.84rem;text-overflow:ellipsis}.global-search{display:none!important}.topbar>.badge{display:none!important}.topbar-actions{grid-column:3;margin:0!important;gap:.25rem}.topbar .identity{display:none!important}.mobile-search-button{display:grid!important}.topbar-avatar{margin:0}.quick-create summary{min-height:40px}
 body.ui-mobile-search-open .global-search{display:flex!important;position:absolute;left:.75rem;right:.75rem;top:calc(100% + .45rem);width:auto;max-width:none;margin:0;background:#fff;border:1px solid var(--ui-line);border-radius:12px;padding:.35rem;box-shadow:0 18px 50px rgba(18,45,45,.16);z-index:70}body.ui-mobile-search-open .global-search input{width:100%;border:0;box-shadow:none;background:#fff}.command-palette{top:116px;left:.75rem;right:.75rem;transform:none;width:auto;max-height:min(55dvh,420px)}
 .main{padding:1.15rem 1rem 4.5rem;max-width:none}.pagehead{gap:.8rem}.dashboard-view .pagehead{padding-right:0}.dashboard-date{position:static;margin-top:.4rem;font-size:.76rem}.dashboard-content-grid{grid-template-columns:1fr}.dashboard-side-column{grid-template-columns:1fr}.operation-card{min-height:0}
 .auth-v2 .auth-aside{padding:1.4rem 1.25rem;min-height:auto}.auth-v2 .auth-aside h1{font-size:1.55rem;margin:.8rem 0 .4rem}.auth-v2 .auth-main{padding:1.25rem}.auth-v2 .auth-card{padding:1.5rem}
}
@media(hover:none) and (pointer:coarse){button,.quick-action-row,.command-item,.sidebar nav a{touch-action:manipulation}.mobile-menu-button,.mobile-search-button,.quick-create summary{min-width:42px;min-height:42px}}
