.topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 10;
  height: calc(var(--topbar-h) + env(safe-area-inset-top));
  padding-top: env(safe-area-inset-top);
  display: flex;
  align-items: center;
  background: var(--surface-header);
  color: var(--text-on-brand);
}
.topbar-side { width: 56px; display: flex; justify-content: center; }
.wordmark {
  flex: 1;
  text-align: center;
  color: var(--text-on-brand);
  text-decoration: none;
  font-weight: 700;
  font-size: 20px;
  letter-spacing: 0.2px;
}
.wordmark span { font-weight: 400; }

.nav-back {
  width: var(--tap);
  height: var(--tap);
  border: 0;
  background: transparent;
  fill: var(--text-on-brand);
}
.nav-back svg { width: 24px; height: 24px; }

.navbot {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 10;
  height: calc(var(--navbot-h) + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom);
  display: flex;
  background: var(--surface-raised);
  border-top: 1px solid var(--brand-line);
}
.nav-link-bottom {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  border: 0;
  background: transparent;
  color: var(--text-muted);
  fill: var(--text-muted);
  font: inherit;
  font-size: 12px;
  text-decoration: none;
}
.nav-link-bottom svg { width: 24px; height: 24px; }
.nav-link-bottom.selected {
  color: var(--brand-olive);
  fill: var(--brand-olive);
  font-weight: 700;
}
