.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
}

.sidebar {
  background: var(--navy);
  color: #d8e1f0;
  min-height: 100vh;
  padding: 24px 16px 18px;
  display: flex;
  flex-direction: column;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 0 9px 22px;
  color: #fff;
}

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: var(--blue);
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 21px;
}

.brand strong {
  display: block;
  letter-spacing: 1.8px;
  font-size: 15px;
}

.brand span {
  display: block;
  color: #8e9db5;
  font-size: 9px;
  letter-spacing: 1.7px;
  margin-top: 3px;
}

.environment {
  margin: 0 5px 20px;
  border: 1px solid #35435a;
  border-radius: 7px;
  padding: 8px 10px;
  color: #aab8cc;
  font-size: 10px;
  letter-spacing: .8px;
}

.pulse {
  display: inline-block;
  width: 7px;
  height: 7px;
  background: #e4a53a;
  border-radius: 50%;
  margin-right: 7px;
}

.admin-identity {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 9px 20px;
  border-bottom: 1px solid #293750;
}

.admin-identity strong {
  display: block;
  color: #fff;
  font-size: 11px;
}

.admin-identity span {
  display: block;
  color: #91a0b7;
  font-size: 10px;
  margin-top: 4px;
}

.avatar {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: #30496d;
  color: #dce8ff;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 700;
  flex: none;
}

.navigation {
  padding-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.nav-caption {
  font-size: 9px;
  letter-spacing: 1.4px;
  color: #71819b;
  padding: 8px 10px 7px;
  margin-top: 3px;
}

.nav-item {
  border: 0;
  background: transparent;
  color: #aebbd0;
  text-align: left;
  padding: 11px 10px;
  border-radius: 7px;
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  transition: .15s;
}

.nav-item:hover {
  background: #1c2b45;
  color: #fff;
}

.nav-item.active {
  background: var(--navy-3);
  color: #fff;
  box-shadow: inset 3px 0 #5d91ff;
}

.nav-icon {
  width: 17px;
  text-align: center;
  color: #8fa8d1;
  font-size: 15px;
}

.nav-item.active .nav-icon {
  color: #8eb4ff;
}

.sidebar-footer {
  margin-top: auto;
  padding: 18px 8px 0;
}

.secure-label {
  font-size: 9px;
  color: #8e9db5;
  line-height: 1.5;
}

.secure-label span {
  color: #42b889;
}

.version {
  border-top: 1px solid #293750;
  margin-top: 15px;
  padding-top: 13px;
  font-size: 9px;
  letter-spacing: 1px;
  color: #74839b;
}

.version b {
  float: right;
  color: #aebbd0;
  font-weight: 500;
}

.main-area {
  min-width: 0;
}

.topbar {
  height: var(--topbar-height);
  background: #fff;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 34px;
  gap: 20px;
}

.breadcrumbs {
  font-size: 11px;
  color: #9aa4b4;
  display: flex;
  gap: 10px;
  align-items: center;
}

.breadcrumbs i {
  font-style: normal;
  color: #c3cad4;
}

.breadcrumbs strong {
  color: #354259;
  font-weight: 600;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

.global-search {
  height: 35px;
  width: 230px;
  border: 1px solid var(--line);
  border-radius: 7px;
  display: flex;
  align-items: center;
  padding: 0 10px;
  gap: 8px;
  color: #8b97a9;
}

.global-search input {
  border: 0;
  outline: 0;
  width: 100%;
  font-size: 10px;
  color: var(--text);
}

.icon-button {
  border: 0;
  background: transparent;
  color: #65738a;
  font-size: 18px;
  position: relative;
}

.notification-button em {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #e45d5d;
  right: 0;
  top: 0;
}

.profile-button {
  border: 0;
  background: transparent;
  display: flex;
  align-items: center;
  gap: 9px;
  text-align: left;
  color: #334057;
}

.profile-button b {
  display: block;
  font-size: 10px;
}

.profile-button small {
  display: block;
  font-size: 9px;
  color: #8994a5;
  margin-top: 3px;
}

.avatar.small {
  width: 30px;
  height: 30px;
}

.chevron {
  color: #8b97a9;
}

.workspace {
  max-width: 1600px;
  margin: 0 auto;
  padding: 30px 34px 18px;
}

.page-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 23px;
  gap: 20px;
}

.eyebrow {
  font-size: 9px;
  letter-spacing: 1.5px;
  color: #8793a6;
  font-weight: 700;
  margin-bottom: 9px;
}

.page-heading h1 {
  font-size: 24px;
  letter-spacing: -.6px;
  margin: 0;
  color: #1a2941;
}

.page-heading p {
  font-size: 11px;
  color: #8994a5;
  margin: 8px 0 0;
}

.heading-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.content-panel {
  min-height: 560px;
}

.workspace-footer {
  border-top: 1px solid var(--line);
  margin-top: 25px;
  padding-top: 15px;
  display: flex;
  justify-content: space-between;
  color: #9aa4b3;
  font-size: 9px;
}

.mobile-menu {
  display: none;
}

@media (max-width: 900px) {
  .app-shell {
    grid-template-columns: 220px minmax(0, 1fr);
  }

  .sidebar {
    padding-left: 12px;
    padding-right: 12px;
  }

  .topbar {
    padding: 0 20px;
  }

  .workspace {
    padding: 25px 20px;
  }
}

@media (max-width: 680px) {
  .app-shell {
    display: block;
  }

  .sidebar {
    position: fixed;
    z-index: 10;
    left: -280px;
    top: 0;
    width: 264px;
    transition: left .2s;
    box-shadow: var(--shadow-md);
  }

  .sidebar.open {
    left: 0;
  }

  .mobile-menu {
    display: block;
  }

  .topbar {
    height: 60px;
    padding: 0 15px;
  }

  .breadcrumbs {
    margin-right: auto;
  }

  .global-search {
    display: none;
  }

  .profile-button > span:not(.avatar):not(.chevron) {
    display: none;
  }

  .workspace {
    padding: 22px 15px;
  }

  .page-heading {
    align-items: flex-start;
  }

  .page-heading h1 {
    font-size: 21px;
  }

  .workspace-footer {
    gap: 10px;
    flex-wrap: wrap;
  }

  .content-panel {
    min-height: 400px;
  }
}
