.tb-guest-navigation {
  position: sticky;
  top: 0;
  z-index: 2147482000;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  min-height: 68px;
  padding: max(10px, env(safe-area-inset-top)) max(18px, env(safe-area-inset-right)) 10px max(18px, env(safe-area-inset-left));
  border-bottom: 1px solid rgba(255,255,255,.12);
  background: rgba(9,9,14,.96);
  color: #fff;
  box-shadow: 0 12px 32px rgba(0,0,0,.28);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.tb-guest-rail {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.tb-guest-rail::-webkit-scrollbar { display: none; }
.tb-guest-brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #fff;
  text-decoration: none;
  white-space: nowrap;
  font-weight: 950;
  letter-spacing: -.03em;
}
.tb-guest-brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: linear-gradient(135deg,#8d35ef,#ed359a);
  box-shadow: 0 8px 22px rgba(210,53,200,.28);
  font-size: 21px;
}
.tb-guest-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  min-width: 0;
}
.tb-guest-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
}
.tb-guest-actions:empty { display: none; }
.tb-guest-actions .tb-guest-action {
  min-height: 42px;
  margin: 0;
  padding: 0 12px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 12px;
  background: rgba(255,255,255,.06);
  color: #f3f3f7;
  text-decoration: none;
  white-space: nowrap;
  font: 800 12px/1 Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  cursor: pointer;
}
.tb-guest-actions .tb-guest-action:hover {
  border-color: rgba(217,255,56,.5);
  color: #d9ff38;
}
.tb-guest-actions [data-action="show-orders"] span {
  display: inline-grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  margin-right: 5px;
  padding: 0 4px;
  border-radius: 99px;
  background: #d9ff38;
  color: #11130a;
  font-size: 9px;
}
.tb-guest-actions .tb-guest-action[hidden] { display: none !important; }
.tb-guest-actions .live-pill {
  display: flex;
  min-height: 42px;
}
.tb-home-view .tb-guest-rail { visibility: hidden; pointer-events: none; }
.tb-guest-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: 12px;
  color: #d7d7df;
  text-decoration: none;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 850;
  transition: background .18s ease,color .18s ease,border-color .18s ease;
}
.tb-guest-links a:hover {
  color: #fff;
  border-color: rgba(255,255,255,.14);
  background: rgba(255,255,255,.07);
}
.tb-guest-links a.active {
  color: #11130a;
  border-color: #d9ff38;
  background: #d9ff38;
}
.tb-guest-link-icon {
  display: grid;
  place-items: center;
  min-width: 20px;
  font-size: 18px;
}
#tbGuestAccountSlot {
  display: flex;
  justify-content: flex-end;
  min-width: 42px;
}
.tb-guest-shell-active .admin-hub-link,
.tb-guest-shell-active .admin-entry,
.tb-guest-shell-active .bar-link,
.tb-guest-shell-active .games-link,
.tb-guest-shell-active .photobooth-link,
.tb-guest-shell-active .playlist-link,
.tb-guest-shell-active .top-actions,
.tb-guest-shell-active [data-action="admin-login"],
.tb-guest-shell-active [data-action="create"] {
  display: none !important;
}
.tb-page-games > .topbar,
.tb-page-blind-test .game-topbar,
.tb-page-geoloc .game-topbar,
.tb-page-photobooth > .photo-topbar {
  display: none !important;
}
.tb-page-playlist > .topbar .brand,
.tb-page-bar > .topbar .brand {
  display: none !important;
}
.tb-page-playlist > .topbar,
.tb-page-bar > .topbar { display: none !important; }
.tb-guest-shell-active .memory-topbar .memory-brand {
  display: none !important;
}
.tb-guest-shell-active .memory-topbar {
  min-height: 0;
  justify-content: flex-end;
}
body.tb-account-locked {
  overflow: hidden !important;
}
body.tb-account-locked > :not(#tbAccountRoot):not(.tb-guest-navigation) {
  pointer-events: none;
  user-select: none;
}
@media (max-width: 1080px) {
  .tb-guest-navigation { gap: 9px; padding-inline: 10px; }
  .tb-guest-brand-label { display: none; }
  .tb-guest-rail { justify-content: flex-start; }
  .tb-guest-links { justify-content: flex-start; }
  .tb-guest-links a { padding-inline: 10px; }
}
@media (max-width: 720px) {
  .tb-guest-navigation {
    grid-template-columns: auto minmax(0,1fr) auto;
    min-height: 60px;
    padding-top: max(7px, env(safe-area-inset-top));
    padding-bottom: 7px;
  }
  .tb-guest-brand-mark { width: 38px; height: 38px; }
  .tb-guest-links { gap: 3px; justify-content: space-evenly; overflow: visible; }
  .tb-guest-links a { width: 39px; min-width: 39px; min-height: 39px; padding: 0; }
  .tb-guest-link-label { display: none; }
  .tb-guest-link-icon { font-size: 19px; }
  .tb-guest-actions { gap: 3px; }
  .tb-guest-actions .tb-guest-action {
    display: inline-grid;
    place-items: center;
    width: 39px;
    min-width: 39px;
    min-height: 39px;
    padding: 0;
    font-size: 0;
  }
  .tb-guest-actions .tb-guest-action[data-tb-icon]::before { font-size: 17px; }
  .tb-guest-actions .tb-guest-action[data-tb-icon="install"]::before { content: "↓"; }
  .tb-guest-actions .tb-guest-action[data-tb-icon="notification"]::before { content: "🔔"; }
  .tb-guest-actions .tb-guest-action[data-tb-icon="orders"]::before { content: "🧾"; }
  .tb-guest-actions .tb-guest-action[data-tb-icon="orders"] span {
    position: absolute;
    transform: translate(12px,-12px);
    min-width: 17px;
    height: 17px;
    margin: 0;
    font-size: 8px;
  }
  .tb-guest-actions .live-pill {
    width: auto;
    min-width: 39px;
    padding: 0 7px;
    font-size: initial;
  }
}
@media (max-width: 430px) {
  .tb-guest-navigation { gap: 4px; padding-inline: 6px; }
  .tb-guest-brand-mark { width: 34px; height: 34px; border-radius: 10px; font-size: 18px; }
  .tb-guest-links a { width: 34px; min-width: 34px; min-height: 36px; }
  .tb-guest-link-icon { font-size: 17px; }
}
