main {
  padding-bottom: 72px;
  line-height: normal;
}

nav {
  z-index: 900;
  position: fixed;
  width: 100%;
  height: 100%;
  left: -100%;
  top: 0;
  bottom: 0;

  padding: 16px;
  padding-bottom: 86px;

  background: var(--ego-bg-2);
  transition: left .4s ease;


  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

nav.active {
  left: 0;
}

nav>div {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 8px;
  grid-gap: 8px;
}

nav a {
  display: block;
  position: relative;
  font-size: 12pt;
  box-sizing: border-box;
  background: var(--ego-bg-2);
  color: var(--ego-text-color);
  padding: 8px 12px;
  text-decoration: none;

  border-radius: 16px;
}

nav a>i {
  font-size: 16pt;
  width: 48px;
  text-align: center;
  line-height: 36px;
}



nav a>span {
  padding-left: 16px;
  font-weight: bold;
  line-height: 36px;
}

nav a.active,
nav a.active:hover {
  background: var(--interact-action);
  color: var(--interact-action-content);
}

nav a>.notification {
  min-width: 16px;
  height: 16px;
  background: red;
  border-radius: 8px;
  text-align: center;
  color: white;
}



#nav-profile {
  background: var(--ego-bg-3);
  border-radius: 16px;
  padding: 8px 8px 8px 12px;

  display: flex;
  flex-direction: row;
  gap: 16px;
  align-items: center;
}

#nav-profile>div {
  width: 0;
  flex-grow: 1;
}

#nav-profile>img {
  width: 48px;
  height: 48px;
  border-radius: 24px;
  transition: transform .7s ease;
}


#nav-profile-name {
  margin: 0;
  font-weight: bold;
}

nav button#nav-profile-logout {
  margin: 0;
  padding: 0;
  border-radius: 8px;
  color: var(--ego-text-color-1);
  background: var(--ego-bg-1);
  width: 48px;
  height: 48px;
  line-height: 48px;
  text-align: center;
  font-size: 12pt;
}

#nav-logout {
  display: none;
}


@media screen and (min-width: 768px) {

  main {
    margin-left: 72px;
    padding-bottom: 0;
  }

  nav {
    left: 0;
    width: 72px;
    padding: 6px;
    box-sizing: border-box;

    background: rgb(24, 24, 24);
    background: linear-gradient(to bottom, rgb(30, 30, 30), rgb(26, 27, 37));
    background: linear-gradient(to bottom, var(--ego-bg-2), var(--ego-bg-0));
    transition: none;
  }

  #home nav {
    display: none;
  }


  nav>#nav-categories {
    flex: 1 0 0;
    overflow-y: auto;
    overflow-y: overlay;
  }

  nav>#nav-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
    grid-gap: 8px;
  }

  nav::-webkit-scrollbar {
    width: 4px;
  }

  nav::-webkit-scrollbar-track {
    box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
  }

  nav::-webkit-scrollbar-thumb {
    background-color: darkgrey;
    outline: 1px solid slategrey;
  }


  nav a {
    background: transparent;
    background: rgba(24, 24, 24, 0.27);
    color: var(--ego-text-color-2);

    line-height: 60px;
    height: 60px;
    width: 60px;
    border-radius: 12px;
    font-size: 18pt;
    padding: 0;
    text-align: center;
  }



  nav a:hover {
    background: transparent;
    background: rgba(49, 49, 49, 0.3);
    color: var(--ego-text-color);
  }

  nav a>i {
    font-size: 18pt;
  }


  nav a>span {
    display: none;
  }



  #nav-profile {
    display: none;
  }

  #nav-logout {
    display: block;
  }
}






#mobile-bottom-bar {
  position: fixed;
  z-index: 1;
  left: 0;
  right: 0;
  bottom: 0;
  height: 86px;
}


#nav-toggle,
#options-toggle {
  position: fixed;
  width: 48px;
  height: 48px;
  background: var(--ego-bg-1);
  color: var(--ego-text-color-1);
  font-size: 14pt;
  text-align: center;
  line-height: 48px;
  border-radius: 8px;
  z-index: 2;
}

#nav-toggle {
  bottom: 8px;
  left: 8px;
  z-index: 1001;
}



#options-toggle {
  bottom: 8px;
  right: 8px;
  z-index: 101;
}

@media screen and (min-width:768px) {

  #nav-toggle,
  #options-toggle,
  #mobile-bottom-bar {
    display: none;
  }
}