.topbar {
  position: sticky; top: 0; z-index: 50;
  min-height: var(--topbar-h);
  display: flex; align-items: center; gap: var(--space-2);
  padding: 8px var(--space-3);
  background: var(--color-header); color: var(--color-header-ink);
  border-bottom: 1px solid var(--color-border);
}
.topbar[hidden] { display: none; }
.topbar__brand { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; color: var(--color-header-ink); text-decoration: none; min-height: var(--tap); }
.topbar__brand:focus-visible { outline: 3px solid var(--color-focus); outline-offset: 2px; border-radius: var(--radius); }
.topbar__name { font-weight: 800; font-size: 1.1rem; letter-spacing: 0.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar__signout { background: transparent; border-color: var(--color-border); color: var(--color-header-ink); }
.topbar__signout:hover { background: var(--color-tint); }
.topbar__nav { display: flex; gap: 2px; }
.topbar__link { display: inline-flex; align-items: center; min-height: var(--tap); padding: 0 10px; border-radius: var(--radius); color: var(--color-header-ink); font-weight: 700; font-size: 0.9rem; text-decoration: none; }
.topbar__link:hover { background: var(--color-tint); }
.topbar__link:focus-visible { outline: 3px solid var(--color-focus); outline-offset: 2px; }
.topbar__mode { color: var(--color-text); }
@media (max-width: 360px) {
  .topbar { gap: 6px; padding-inline: 12px; }
  .topbar__name { font-size: 0.95rem; }
}
/* Phones: the links get their own row so Sign out (and the bistro name) stay visible. */
@media (max-width: 560px) {
  .topbar { flex-wrap: wrap; row-gap: 0; }
  .topbar__nav { order: 3; flex-basis: 100%; justify-content: space-between; flex-wrap: wrap; } /* the creator's 6th link (Admin) wraps instead of overflowing */
  .topbar__link { padding: 0 6px; }
}
/* Help sits beside Sign out / Exit, also on phones (it isn't in the nav row). */
.topbar__help { padding: 0 8px; }
/* The creator's Admin link: count of new feedback. */
.topbar__badge { display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 20px; padding: 0 6px; margin-left: 6px; border-radius: var(--radius-full); background: var(--color-danger); color: var(--color-on-dark); font-size: 0.72rem; font-weight: 700; }
.topbar__badge[hidden] { display: none; }
/* The section you're in */
.topbar__link[aria-current="page"] { background: var(--color-tint); }
