@layer layout {
aside.aside-icon-bar {
  --app-icon-bar-item-padding: 0.5rem;
  --app-icon-bar-item-size: 20px;
  --app-icon-bar-border-width: 3px;
  --app-icon-bar-hover-bg: var(--app-accordion-border-color);
  --app-icon-bar-border: 1px solid var(--app-border);
  --app-icon-bar-mobile-safe-space: calc(3.5rem + env(safe-area-inset-bottom));
  display: none;
}

aside.aside-icon-bar nav {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100vh;
}

aside.aside-icon-bar ul,
aside.aside-icon-bar li {
  margin: 0;
  padding: 0;
  list-style: none;
}

aside.aside-icon-bar ul {
  display: grid;
  gap: 0;
}

aside.aside-icon-bar li a,
aside.aside-icon-bar li button {
  margin: 0;
  padding: var(--app-icon-bar-item-padding);
  font-size: var(--app-icon-bar-item-size);
  text-align: center;
  color: var(--app-muted-color);
  border-radius: 0;
  background: transparent;
  border: 0;
  border-left: var(--app-icon-bar-border-width) solid transparent;
  display: block;
  width: 100%;
  cursor: pointer;
}

aside.aside-icon-bar li a:hover,
aside.aside-icon-bar li a.active,
aside.aside-icon-bar li button:hover,
aside.aside-icon-bar li button.active {
  border-left: var(--app-icon-bar-border-width) solid var(--app-primary);
  color: var(--app-contrast);
  background: var(--app-icon-bar-hover-bg);
}

@media (min-width: 768px) {
  aside.aside-icon-bar {
    border-right: var(--app-icon-bar-border);
    display: block;
    position: sticky;
    top: 0;
    z-index: 11;
  }

  .is-sidebar-collapsed aside.aside-icon-bar {
    border-right: 0;
  }
}

@media (max-width: 767px) {
  aside.aside-icon-bar {
    display: block;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 20;
    border-top: var(--app-icon-bar-border);
    background: var(--app-background-color);
  }

  aside.aside-icon-bar nav {
    flex-direction: row;
    height: auto;
    justify-content: center;
    gap: var(--app-spacing);
  }

  aside.aside-icon-bar ul {
    display: flex;
    justify-content: space-around;
    gap: var(--app-spacing);
  }

  aside.aside-icon-bar li a,
  aside.aside-icon-bar li button {
    border-left: 0;
    border-top: var(--app-icon-bar-border-width) solid transparent;
  }

  aside.aside-icon-bar li a:hover,
  aside.aside-icon-bar li a.active,
  aside.aside-icon-bar li button:hover,
  aside.aside-icon-bar li button.active {
    border-left: 0;
    border-top: var(--app-icon-bar-border-width) solid var(--app-primary);
  }

  .app-main-content,
  footer.site-footer {
    padding-bottom: max(
      var(--app-spacing),
      var(--app-icon-bar-mobile-safe-space)
    );
  }
}
}
