:root {
  --geo-sidebar-top: #0b426f;
  --geo-sidebar-mid: #07365e;
  --geo-sidebar-bottom: #052d4d;
  --geo-sidebar-copy: #dceaf4;
  --geo-sidebar-muted: #a9c4d8;
  --geo-sidebar-line: #dcefff24;
  --geo-sidebar-active: #c8ee68;
}

.app {
  grid-template-columns: 272px minmax(0, 1fr);
}

.app > aside {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  width: 272px;
  height: 100vh;
  height: 100dvh;
  flex-direction: column;
  overflow: hidden;
  padding: 17px 14px 13px;
  border-right: 1px solid #b9d8ec20;
  background: linear-gradient(160deg, var(--geo-sidebar-top) 0%, var(--geo-sidebar-mid) 52%, var(--geo-sidebar-bottom) 100%);
  color: #fff;
  box-shadow: 12px 0 32px #0829430d;
}

.sidebar-icon-library {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
  pointer-events: none;
}

.logo-row {
  display: flex;
  align-items: center;
  gap: 11px;
  flex: 0 0 auto;
  margin: 0 2px 12px;
  padding: 1px 1px 15px;
  border-bottom: 1px solid var(--geo-sidebar-line);
}

.sidebar-brand-mark {
  display: grid;
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  place-items: center;
  overflow: hidden;
  border: 1px solid #ffffffb8;
  border-radius: 14px;
  background: #f8fbff;
  box-shadow: 0 3px 10px #001b3033;
}

.sidebar-brand-image {
  display: block;
  width: 39px;
  height: 39px;
  object-fit: contain;
}

.sidebar-brand-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 3px;
}

.logo-row .sidebar-brand-copy b {
  color: #fff;
  font-size: .97rem;
  font-weight: 760;
  letter-spacing: -.025em;
  line-height: 1.2;
}

.logo-row .sidebar-brand-copy small {
  color: var(--geo-sidebar-muted);
  font-size: .73rem;
  line-height: 1.2;
}

.sidebar-nav {
  display: flex;
  min-height: 0;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 5px;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 2px 3px 5px 0;
  scrollbar-color: #b9d8ec59 transparent;
  scrollbar-width: thin;
}

.sidebar-nav::-webkit-scrollbar {
  width: 5px;
}

.sidebar-nav::-webkit-scrollbar-thumb {
  border-radius: 99px;
  background: #b9d8ec59;
}

.sidebar-nav::-webkit-scrollbar-track {
  background: transparent;
}

.sidebar-nav button {
  min-width: 0;
  border: 1px solid transparent;
  color: var(--geo-sidebar-copy);
  cursor: pointer;
  text-align: left;
  -webkit-tap-highlight-color: transparent;
}

.sidebar-nav button:focus-visible,
.logout-button:focus-visible {
  outline: 2px solid var(--geo-sidebar-active);
  outline-offset: 2px;
}

.nav-home,
.nav-group-toggle {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 10px;
  border-radius: 12px;
}

.nav-home {
  min-height: 48px;
  justify-content: flex-start;
  padding: 6px 9px;
  background: transparent;
  font-size: .88rem;
  font-weight: 720;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease;
}

.nav-home:hover,
.nav-group-toggle:hover {
  background: #ffffff0d;
  color: #fff;
}

.nav-home.active {
  border-color: #dff5a51f;
  background: linear-gradient(100deg, #c8ee6822, #ffffff12 72%);
  color: #fff;
}

.nav-home.active .nav-icon {
  color: var(--geo-sidebar-active);
  background: #c8ee6819;
}

.nav-icon {
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  place-items: center;
  padding: 8px;
  border: 1px solid #ffffff12;
  border-radius: 10px;
  background: #ffffff0b;
  color: #d2e5f2;
  transition: background-color .18s ease, color .18s ease;
}

.nav-icon use,
.nav-subicon use,
.nav-chevron use,
.account-avatar use,
.logout-icon use {
  stroke: currentColor;
}

.nav-icon {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.nav-label {
  display: block;
  min-width: 0;
  flex: 1 1 auto;
  color: inherit !important;
  font-size: inherit;
  font-weight: inherit !important;
  line-height: 1.28;
  overflow-wrap: anywhere;
}

.nav-badge:not(:empty) {
  display: inline-grid;
  min-width: 22px;
  min-height: 21px;
  flex: 0 0 auto;
  place-items: center;
  margin-left: auto;
  padding: 1px 6px;
  border: 1px solid #d9f39135;
  border-radius: 999px;
  background: #c8ee681a;
  color: #d8f28e !important;
  font-size: .67rem;
  font-weight: 760 !important;
  line-height: 1;
  white-space: nowrap;
}

.nav-group {
  min-width: 0;
  overflow: hidden;
  border: 1px solid transparent;
  border-radius: 14px;
  transition: border-color .18s ease, background-color .18s ease;
}

.nav-group-toggle {
  min-height: 52px;
  padding: 7px 8px;
  background: transparent;
  color: var(--geo-sidebar-copy);
  font: inherit;
  transition: background-color .18s ease, color .18s ease;
}

.nav-group-copy {
  display: flex;
  min-width: 0;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 3px;
}

.nav-group-copy strong {
  color: inherit;
  font-size: .84rem;
  font-weight: 730;
  line-height: 1.2;
}

.nav-group-copy small {
  color: var(--geo-sidebar-muted);
  font-size: .68rem;
  font-weight: 450;
  line-height: 1.2;
}

.nav-chevron {
  display: block;
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  fill: none;
  stroke: #b9d1e2;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform .18s ease, color .18s ease;
}

.nav-group.open,
.nav-group.active-group {
  border-color: #ffffff20;
  background: #001f3b3b;
}

.nav-group.open > .nav-group-toggle,
.nav-group.active-group > .nav-group-toggle {
  background: #ffffff10;
  color: #fff;
}

.nav-group.open > .nav-group-toggle .nav-icon,
.nav-group.active-group > .nav-group-toggle .nav-icon {
  border-color: #c8ee6830;
  background: #c8ee681a;
  color: var(--geo-sidebar-active);
}

.nav-group.open > .nav-group-toggle .nav-chevron,
.nav-group.active-group > .nav-group-toggle .nav-chevron {
  transform: rotate(90deg);
  color: var(--geo-sidebar-active);
}

.nav-submenu {
  display: grid;
  max-height: 0;
  gap: 2px;
  overflow: hidden;
  padding: 0 7px;
  opacity: 0;
  transition: max-height .22s ease, opacity .18s ease, padding .22s ease;
}

.nav-group.open > .nav-submenu,
.nav-group.active-group > .nav-submenu,
.nav-group:focus-within > .nav-submenu {
  max-height: 390px;
  padding: 3px 5px 8px;
  opacity: 1;
}

.nav-submenu .nav {
  display: grid;
  min-height: 38px;
  grid-template-columns: 17px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 6px 7px;
  border-radius: 9px;
  background: transparent;
  color: #c4d8e7;
  font-size: .76rem;
  font-weight: 570;
  line-height: 1.25;
  transition: background-color .16s ease, color .16s ease;
}

.nav-submenu .nav:hover {
  background: #ffffff0c;
  color: #fff;
}

.nav-subicon {
  display: block;
  width: 16px;
  height: 16px;
  fill: none;
  stroke: #9fbed3;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: color .16s ease, stroke .16s ease;
}

.nav-submenu .nav.active {
  background: linear-gradient(100deg, #c8ee681c, #ffffff0c 80%);
  color: #fff;
  box-shadow: inset 0 0 0 1px #dff5a51c;
}

.nav-submenu .nav.active .nav-subicon {
  stroke: var(--geo-sidebar-active);
}

.nav-submenu .nav .nav-badge:not(:empty) {
  min-width: 20px;
  min-height: 19px;
  padding: 1px 5px;
  font-size: .63rem;
}

.account {
  display: grid;
  flex: 0 0 auto;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
  gap: 0 10px;
  margin-top: auto;
  padding: 13px 3px 0;
  border-top: 1px solid var(--geo-sidebar-line);
}

.account-avatar {
  display: block;
  width: 34px;
  height: 34px;
  grid-row: span 2;
  padding: 7px;
  border: 1px solid #ffffff20;
  border-radius: 50%;
  background: #ffffff0c;
  fill: none;
  stroke: #c9ddea;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.account-copy {
  min-width: 0;
}

.account-copy span {
  display: block;
  overflow-wrap: anywhere;
  color: #fff;
  font-size: .74rem;
  font-weight: 680;
  line-height: 1.35;
}

.account-copy small {
  display: block;
  margin-top: 2px;
  color: var(--geo-sidebar-muted);
  font-size: .68rem;
  line-height: 1.2;
}

.logout-button {
  display: inline-flex;
  grid-column: 2;
  align-items: center;
  gap: 7px;
  justify-self: start;
  margin: 9px 0 0;
  padding: 4px 0;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #dceaf4;
  cursor: pointer;
  font-size: .73rem;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.logout-button:hover {
  color: var(--geo-sidebar-active);
}

.logout-icon {
  display: block;
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (hover: hover) and (min-width: 901px) {
  .nav-group:hover > .nav-submenu {
    max-height: 390px;
    padding: 3px 5px 8px;
    opacity: 1;
  }

  .nav-group:hover > .nav-group-toggle .nav-chevron {
    transform: rotate(90deg);
  }
}

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

  .app > aside {
    position: relative;
    width: auto;
    height: auto;
    max-height: none;
    padding: 12px 14px 11px;
    border-right: 0;
    border-bottom: 1px solid #b9d8ec20;
    box-shadow: 0 10px 28px #0829430c;
  }

  .logo-row {
    margin-bottom: 8px;
    padding-bottom: 10px;
  }

  .sidebar-nav {
    display: grid;
    flex: 0 0 auto;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 5px;
    overflow: visible;
  }

  .nav-home {
    grid-column: 1 / -1;
  }

  .nav-group {
    align-self: start;
  }

  .account {
    margin-top: 9px;
  }
}

@media (max-width: 600px) {
  .app > aside {
    max-height: calc(100dvh - 12px);
  }

  .sidebar-nav {
    min-height: 0;
    grid-template-columns: minmax(0, 1fr);
    grid-auto-rows: max-content;
    align-content: start;
    flex: 1 1 auto;
    overflow-y: auto;
    padding: 2px 3px 5px 0;
  }

  .nav-home {
    grid-column: auto;
  }

  .nav-group-copy small {
    display: none;
  }

  .account {
    padding-top: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .nav-home,
  .nav-icon,
  .nav-group,
  .nav-group-toggle,
  .nav-chevron,
  .nav-submenu,
  .nav-submenu .nav,
  .nav-subicon {
    transition: none !important;
  }
}