.app-navigation {
  margin-bottom: 1rem;
}

.app-navigation--compact {
  margin-bottom: 0;
}

.app-navigation__mobile-header,
.app-navigation__mobile-menu {
  display: none;
}

.app-navigation__desktop {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  padding: 0.5rem 0.75rem;
  border: 1px solid #dbe4ee;
  border-radius: 6px;
  background: #fff;
}

.app-navigation__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-right: 0.5rem;
  padding-right: 1rem;
  border-right: 1px solid #d8e7d6;
  color: #17652e;
  font-size: 0.875rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.app-navigation__brand-mark {
  width: 1.9rem;
  height: 1.9rem;
  object-fit: contain;
}

.app-navigation__desktop-link {
  border-radius: 4px;
  padding: 0.45rem 0.65rem;
  color: #475569;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
}

.app-navigation__desktop-link:hover,
.app-navigation__desktop-link.is-active {
  background: #eff6ff;
  color: #1d4ed8;
}

@media (max-width: 767px) {
  .app-navigation {
    margin: 0 -0.25rem 0.75rem;
  }

  .app-navigation--compact {
    margin-bottom: 0.35rem;
  }

  .app-navigation__desktop {
    display: none;
  }

  .app-navigation__mobile-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 2.9rem;
    padding: 0 0.25rem 0 0.5rem;
    border-bottom: 1px solid #cbd5e1;
  }

  .app-navigation__product-name {
    overflow: hidden;
    color: #1f2937;
    font-size: 0.9375rem;
    font-weight: 650;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .app-navigation__mobile-header .app-navigation__brand-mark {
    width: 1.75rem;
    height: 1.75rem;
    margin-right: -0.25rem;
  }

  .app-navigation__menu-toggle {
    display: grid;
    flex: 0 0 auto;
    width: 2.5rem;
    height: 2.5rem;
    place-items: center;
    border: 1px solid #cbd5e1;
    border-radius: 5px;
    background: #fff;
    color: #334155;
  }

  .app-navigation__menu-toggle svg {
    width: 1.2rem;
    height: 1.2rem;
  }

  .app-navigation__mobile-menu {
    display: grid;
    gap: 0.75rem;
    margin-top: 0.6rem;
    padding: 0.75rem;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    background: #fff;
  }

  .app-navigation__mobile-links {
    display: grid;
    gap: 0.35rem;
  }

  .app-navigation__mobile-link {
    padding: 0.7rem 0.75rem;
    border: 1px solid #dbe4ee;
    border-radius: 5px;
    color: #334155;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
  }

  .app-navigation__mobile-link.is-active {
    border-color: #2563eb;
    background: #eff6ff;
    color: #1d4ed8;
    font-weight: 600;
  }

  .app-navigation__account {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid #dbe4ee;
  }

  .app-navigation__tools {
    display: grid;
    gap: 0.35rem;
    padding-top: 0.75rem;
    border-top: 1px solid #dbe4ee;
  }

  .app-navigation__tools > span {
    color: #64748b;
    font-size: 0.75rem;
    font-weight: 500;
  }

  .app-navigation__tool {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    width: 100%;
    min-height: 2.5rem;
    border: 1px solid #dbe4ee;
    border-radius: 5px;
    padding: 0.55rem 0.7rem;
    background: #fff;
    color: #334155;
    font-size: 0.875rem;
    font-weight: 500;
    text-align: left;
  }

  .app-navigation__tool svg {
    flex: 0 0 auto;
    width: 1rem;
    height: 1rem;
  }

  .app-navigation__tool.is-active {
    border-color: #2563eb;
    background: #eff6ff;
    color: #1d4ed8;
  }

  .app-navigation__tools small {
    color: #64748b;
    font-size: 0.75rem;
  }

  .app-navigation__account div {
    display: grid;
    min-width: 0;
    gap: 0.1rem;
  }

  .app-navigation__account span {
    color: #64748b;
    font-size: 0.75rem;
  }

  .app-navigation__account strong {
    overflow: hidden;
    color: #1f2937;
    font-size: 0.875rem;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .app-navigation__account button {
    flex: 0 0 auto;
    min-height: 2.25rem;
    border: 1px solid #cbd5e1;
    border-radius: 5px;
    padding: 0.4rem 0.65rem;
    background: #fff;
    color: #475569;
    font-size: 0.8125rem;
  }
}
