html,body{
  margin:0!important;
  padding:0!important;
  width:100%!important;
  min-height:100%!important;
  overflow-x:hidden!important;
  background:#06101d!important;
}

.layout{
  display:grid!important;
  grid-template-columns:230px minmax(0,1fr)!important;
  width:100vw!important;
  min-height:100vh!important;
}

.sidebar{
  position:sticky!important;
  top:0!important;
  height:100vh!important;
  width:230px!important;
  min-width:230px!important;
  max-width:230px!important;
}

.main{
  margin:0!important;
  padding:24px 28px 42px!important;
  width:100%!important;
  max-width:none!important;
  min-width:0!important;
  transform:none!important;
  left:auto!important;
  top:auto!important;
  box-sizing:border-box!important;
}

.main > *{
  max-width:none!important;
  width:100%!important;
  margin-left:0!important;
  margin-right:0!important;
  box-sizing:border-box!important;
}

.topbar{
  margin:0 0 24px!important;
  padding:0!important;
  display:flex!important;
  align-items:flex-start!important;
  justify-content:space-between!important;
  gap:18px!important;
}

.stats-grid{
  display:grid!important;
  grid-template-columns:repeat(5,minmax(0,1fr))!important;
  gap:18px!important;
  margin:0 0 22px!important;
}

.dashboard-grid{
  display:grid!important;
  grid-template-columns:minmax(0,2fr) minmax(360px,1fr)!important;
  gap:22px!important;
  align-items:start!important;
}

.feature-grid{
  display:grid!important;
  grid-template-columns:repeat(auto-fit,minmax(230px,1fr))!important;
  gap:18px!important;
}

.panel,.card,.stat-card,.feature-card,.ultra-card{
  width:100%!important;
  max-width:100%!important;
  min-width:0!important;
  box-sizing:border-box!important;
}

.feature-card{
  min-height:220px!important;
}

body > nav,
body > .top-nav,
.main > nav:first-child,
.main > .top-nav:first-child{
  display:none!important;
}

@media(max-width:1300px){
  .stats-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important;}
  .dashboard-grid{grid-template-columns:1fr!important;}
}

@media(max-width:900px){
  .layout{display:block!important;}
  .sidebar{
    position:fixed!important;
    transform:translateX(-100%);
    z-index:99999!important;
  }
  .main{
    padding:18px 14px 110px!important;
    width:100vw!important;
  }
  .stats-grid{grid-template-columns:1fr 1fr!important;}
}

@media(max-width:520px){
  .stats-grid{grid-template-columns:1fr!important;}
}
