@media (max-width: 900px) {
  .topbar {
    height: auto;
    min-height: 76px;
    padding: 10px 16px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    align-items: center;
  }

  .topbar .brand {
    justify-self: start;
  }

  .topbar nav {
    display: flex;
    width: 100%;
    gap: 6px;
    overflow-x: auto;
    padding: 2px 0 8px;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
  }

  .topbar nav a,
  .topbar nav a:first-child {
    display: block;
    flex: 0 0 auto;
    padding: 8px 10px;
    border: 1px solid #30323a;
    border-radius: 18px;
    color: #c8cad1;
    font-size: 12px;
    line-height: 1;
    white-space: nowrap;
  }

  .topbar nav a:first-child::before {
    content: none;
  }

  .topbar nav a.active {
    background: #fff;
    border-color: #fff;
    color: #101116;
  }

  .topbar nav a.active::after {
    display: none;
  }
}

@media (max-width: 600px) {
  .topbar .brand img {
    width: 40px;
    height: 40px;
  }
}
