.shell {
  display: grid;
  grid-template-columns: 242px 1fr;
  min-height: 100vh;
}
.sidebar {
  background: var(--navy);
  color: #c8d6ef;
  padding: 1.7rem 1.1rem;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
}
.sidebar .brand {
  color: white;
  margin: 0 0.65rem 2.7rem;
}
.nav-caption {
  padding: 0 0.8rem;
  font-size: 0.6875rem;
  letter-spacing: 0.12rem;
  color: #7f9dc5;
  margin-bottom: 0.75rem;
}
.nav {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
.nav button {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  background: transparent;
  color: #d2def5;
  padding: 0.85rem 0.9rem;
  border-radius: 7px;
  text-align: left;
  font-size: 0.875rem;
  font-weight: 650;
}
.nav button:hover {
  background: #ffffff0b;
}
.nav button.active {
  background: #2355cc;
  color: #ffffff;
}
.nav .count {
  margin-left: auto;
  font-size: 0.75rem;
  padding: 0.12rem 0.4rem;
  background: #183fa3;
  border-radius: 4px;
}
.sidebar-bottom {
  margin-top: auto;
  padding: 1rem 0.65rem 0;
}
.role-box {
  border-top: 1px solid #ffffff1c;
  padding-top: 1.2rem;
  display: flex;
  gap: 0.7rem;
  align-items: center;
}
.avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #183666;
  color: white;
  font-size: 0.8125rem;
  font-weight: 700;
}
.role-box strong {
  display: block;
  color: #e7eef2;
  font-size: 0.8125rem;
}
.role-box small {
  font-size: 0.75rem;
}
.sidebar-bottom .btn {
  color: #d2def5;
  padding: 0.6rem 0;
  justify-content: flex-start;
  margin-top: 0.4rem;
  min-height: 32px;
}
.main {
  min-width: 0;
}
.topbar {
  height: 73px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2.3rem;
  background: white;
  border-bottom: 1px solid var(--border);
  gap: 1rem;
}
.breadcrumb {
  font-size: 0.875rem;
  color: var(--muted);
}
.breadcrumb strong {
  color: var(--navy);
  font-weight: 650;
}
.topbar-right {
  display: flex;
  gap: 1rem;
  align-items: center;
}
.connection {
  font-size: 0.8125rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.connection::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}
.connection.sample::before {
  background: #b97718;
}
.content {
  padding: 2rem 2.3rem 3rem;
  max-width: 1700px;
  margin: auto;
}
.topbar .mobile-menu {
  display: none;
}

.nav-group { display: grid; gap: 4px; }
.nav-group + .nav-group { margin-top: 12px; }
.nav-group .nav-caption { margin: 8px 12px 4px; }
@media (max-width: 760px) { .nav-group + .nav-group { margin-top: 6px; } }
