.ft-bottom,.ft-mobile-sheet,.ft-app-brand{display:none}
@media(max-width:1199px){
body{padding-bottom:calc(76px + env(safe-area-inset-bottom,0px));max-width:100%}
.shell,.frame{display:block!important;grid-template-columns:none!important;min-width:0!important}
.shell>.sidebar,.frame>.side,.ft-demo-menu,.demo-mobile-menu,#menu-toggle,.mobile-menu{display:none!important}
.shell>.main-wrapper,.frame>.main{width:100%!important;max-width:100%!important;margin:0!important;min-width:0!important;overflow:visible!important}
.topbar,.frame>.main>.top{position:sticky!important;top:0;z-index:30;padding:12px 16px!important;min-height:60px;flex-wrap:wrap;background:#fff;gap:8px}
.topbar-left,.topbar-right{flex-wrap:wrap;min-width:0;gap:8px}.topbar-root,.topbar-divider,.demo-badge{display:none!important}.role-picker select{max-width:150px;min-height:44px}
.ft-app-brand{display:inline-block;font:800 19px/1.2 system-ui;color:#0f172a;margin-right:10px}
.content,#app-content{padding:16px!important;min-width:0;max-width:100%;box-sizing:border-box}
.metric-grid,.stats{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important}.metric-card,.stat{min-width:0;padding:12px!important;overflow-wrap:anywhere}.metric-value,.stat strong{font-size:clamp(16px,3.5vw,25px)!important}
.dash-grid,.dash-second,.simple-grid,.columns{grid-template-columns:minmax(0,1fr)!important}.page-head,.panel-head,.page-actions{flex-wrap:wrap!important}.panel{min-width:0;max-width:100%;box-sizing:border-box}.btn,select,input:not([type=checkbox]):not([type=radio]){min-height:44px;max-width:100%}
.ft-table-scroll,.tablewrap,.table-wrap,.table-scroll,.kanban{max-width:100%;overflow-x:auto!important;overscroll-behavior-x:contain}
.ft-bottom{position:fixed;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));bottom:0;left:0;right:0;z-index:10000;background:#fff;border-top:1px solid #cbd5e1;padding:5px 4px calc(5px + env(safe-area-inset-bottom,0px));box-shadow:0 -4px 20px #0f172a12}
.ft-bottom button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;min-height:58px;min-width:0;border:0;border-radius:10px;background:transparent;color:#475569;font:600 11px/1.2 system-ui;cursor:pointer}.ft-bottom button[aria-current=page],.ft-bottom button[aria-expanded=true]{background:#eff6ff;color:#1d4ed8}.ft-bottom button:disabled{opacity:.4}.ft-bottom svg{width:23px;height:23px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.ft-mobile-sheet[open]{display:block;position:fixed;inset:auto 0 calc(70px + env(safe-area-inset-bottom,0px));margin:0 auto;width:min(100%,640px);max-width:100%;max-height:65dvh;overflow:auto;border:1px solid #cbd5e1;border-radius:20px 20px 0 0;padding:18px;background:#fff;color:#0f172a;box-sizing:border-box;z-index:10001}.ft-mobile-sheet::backdrop{background:#0f172a66}.ft-mobile-sheet h2{font-size:20px;margin:0 0 12px}.ft-mobile-sheet button{display:block;width:100%;min-height:48px;text-align:left;padding:10px 12px;border:0;border-bottom:1px solid #e2e8f0;background:white;color:#0f172a;font:600 14px system-ui}.ft-mobile-sheet h3{font:700 11px system-ui;color:#64748b;margin:18px 0 5px}
.ft-card-table{display:block!important;min-width:0!important;width:100%!important}.ft-card-table thead{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}.ft-card-table tbody{display:grid;gap:10px}.ft-card-table tr{display:block;border:1px solid #e2e8f0;border-radius:10px;padding:8px;background:#fff}.ft-card-table td{display:flex!important;justify-content:space-between;align-items:center;gap:12px;white-space:normal!important;text-align:right!important;overflow-wrap:anywhere;border:0!important;padding:8px!important}.ft-card-table td::before{content:attr(data-ft-label);font-weight:600;color:#64748b;text-align:left;flex:0 0 40%}
}
@media(min-width:768px) and (max-width:1199px){.metric-grid,.stats{grid-template-columns:repeat(4,minmax(0,1fr))!important}.content,#app-content{padding:24px!important}}
