.app-bar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  min-height: 3.5rem;
  padding: 0.45rem 1.1rem;
  padding-left: max(1.1rem, env(safe-area-inset-left));
  padding-right: max(1.1rem, env(safe-area-inset-right));
  border-bottom: 1px solid #d8d3c8;
  background: rgba(250, 250, 250, 0.94);
}

.app-wordmark {
  flex-shrink: 0;
  font-family: "Inter", system-ui, sans-serif;
  font-weight: 800;
  font-size: 0.98rem;
  letter-spacing: -0.03em;
  text-decoration: none;
  color: #12181f;
}

.app-wordmark span {
  color: #5f7d68;
}

.app-nav {
  display: flex;
  align-items: center;
  gap: 0.1rem;
  flex: 1;
  min-width: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.app-nav a {
  flex-shrink: 0;
  padding: 0.35rem 0.55rem;
  font-family: "Inter", system-ui, sans-serif;
  font-size: 0.82rem;
  font-weight: 500;
  color: #5b6472;
  text-decoration: none;
  border-bottom: 2px solid transparent;
}

.app-nav a:hover {
  color: #12181f;
}

.app-nav a[aria-current="page"] {
  color: #12181f;
  font-weight: 600;
  border-bottom-color: #12181f;
}

@media (max-width: 640px) {
  .app-bar {
    flex-wrap: wrap;
    row-gap: 0.2rem;
    padding-top: 0.4rem;
    padding-bottom: 0.35rem;
  }

  .app-nav {
    order: 3;
    flex: 1 1 100%;
  }

  .logout-btn {
    margin-left: auto;
  }
}

.logout-btn {
  flex-shrink: 0;
  font-family: "Inter", system-ui, sans-serif;
  font-size: 0.75rem;
  font-weight: 500;
  color: #5b6472;
  background: #fafafa;
  border: 1px solid #d8d3c8;
  padding: 0.32rem 0.65rem;
  min-height: 2.2rem;
  cursor: pointer;
}

.logout-btn:hover {
  color: #12181f;
  border-color: #12181f;
}

body.has-app .dash-nav {
  display: none !important;
}

.dash-nav {
  margin: 1.15rem 0 0;
  font-family: "Inter", system-ui, sans-serif;
  font-size: 0.75rem;
  font-weight: 400;
  color: #5b6472;
}

.dash-nav a {
  color: #5b6472;
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.dash-nav a[aria-current="page"] {
  color: #12181f;
  text-decoration: none;
  font-weight: 500;
}
