@import url("https://fonts.googleapis.com/css2?family=Source+Sans+3:wght@400;500;600;700&display=swap");

.app-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1.5rem;
  border-bottom: 1px solid rgba(20, 32, 30, 0.12);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 1000;
  font-family: "Source Sans 3", system-ui, sans-serif;
}

.app-bar .brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #14201e;
}

.app-bar .brand img {
  width: 28px;
  height: 28px;
}

.app-bar .brand b {
  color: #1a6b63;
}

.modes {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  background: #e8efed;
  padding: 0.25rem;
  border-radius: 999px;
}

.modes a {
  font: inherit;
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  background: transparent;
  color: #5a6e6a;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.modes a:hover {
  color: #14201e;
}

.modes a.active {
  background: #14201e;
  color: #fff;
}

@media (max-width: 640px) {
  .app-bar {
    flex-wrap: wrap;
    padding: 0.75rem 1rem;
  }

  .modes {
    order: 3;
    width: 100%;
    justify-content: center;
  }
}
