.shell { min-height: 100dvh; padding-left: 184px; }
.sidebar {
  position: fixed;
  z-index: 20;
  inset: 0 auto 0 0;
  display: flex;
  flex-direction: column;
  width: 184px;
  padding: 12px 10px;
  overflow-y: auto;
  border-right: 1px solid #e7e5e4;
  background: #fff;
  scrollbar-width: thin;
}
.server-picker { padding-bottom: 12px; margin-bottom: 8px; border-bottom: 1px solid #e7e5e4; }
.nav { display: grid; gap: 3px; }
.nav a { padding: 7px 10px; border-radius: 4px; color: #57534e; text-decoration: none; font-weight: 500; }
.nav a:hover { background: #f5f5f4; }
.nav a.active { background: #292524; color: #fff; font-weight: 600; }
.mobile-header { display: none; }
.content { width: 100%; min-width: 0; min-height: 100dvh; padding: 14px 16px; }
.page-tools { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.page-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-left: auto; }
.grid, .metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(150px, 100%), 1fr)); gap: 10px; margin-bottom: 12px; }
.grid > .card, .metrics > .card { margin: 0; }
@media (max-width: 760px) {
  .shell { padding: 48px 0 0; }
  .sidebar { display: none; inset: 48px auto 0 0; width: 220px; box-shadow: 12px 0 30px #0002; }
  .sidebar.open { display: flex; }
  .mobile-header { position: fixed; z-index: 30; inset: 0 0 auto; display: flex; height: 48px; align-items: center; gap: 12px; padding: 0 12px; border-bottom: 1px solid #e7e5e4; background: #fff; }
  .content { min-height: calc(100dvh - 48px); padding: 12px; }
}

@media (max-width: 520px) {
  .content { padding: 10px; }
  .grid, .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
}
