/* The map's top bar, on the info pages (about, terms, privacy, status, contact, donate, sign in).
   Every rule is scoped to .sb and sets its own values, so each page's own styles can't leak in. */
.sb {
  position: sticky; top: 0; z-index: 50; height: 60px; flex: none;
  display: flex; align-items: center; gap: 10px; padding: 0 16px;
  background: rgba(18, 16, 14, 0.92); backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  font: 14px/1.45 -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, "Segoe UI", Roboto, "Helvetica Neue", sans-serif; color: #f4f5f6; -webkit-font-smoothing: antialiased;
}
.sb *, .sb *::before, .sb *::after { box-sizing: border-box; }
.sb svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.sb .sb-brand { display: flex; align-items: center; gap: 10px; color: #f4f5f6; text-decoration: none; font-weight: 800; font-size: 19px; letter-spacing: -0.4px; margin-right: 10px; flex: none; }
.sb .sb-brand img { width: 34px; height: 34px; border-radius: 8px; }
.sb .sb-brand em { font-style: normal; color: #ff1f2d; }
.sb .sb-nav { display: flex; gap: 2px; flex: none; }
.sb .sb-btn {
  display: flex; align-items: center; gap: 6px; height: 36px; width: auto; padding: 0 12px; margin: 0; border: 0; border-radius: 8px;
  background: transparent; color: #f4f5f6; font: inherit; font-weight: 600; cursor: pointer; white-space: nowrap; text-decoration: none;
}
.sb .sb-btn:hover, .sb .sb-menu.open .sb-btn { background: rgba(255, 255, 255, 0.08); }
.sb .sb-chev { width: 12px; height: 12px; stroke-width: 1.8; transition: transform .15s; }
.sb .sb-menu { position: relative; }
.sb .sb-menu.open .sb-chev { transform: rotate(180deg); }
.sb .sb-dd {
  position: absolute; top: calc(100% + (60px - 100%) / 2 + 6px); left: 0; min-width: 280px; padding: 8px;
  background: rgba(17, 18, 21, 0.98); border: 1px solid rgba(255, 255, 255, 0.16); border-radius: 12px; box-shadow: 0 10px 40px rgba(0, 0, 0, 0.45);
  opacity: 0; visibility: hidden; transform: translateY(-6px) scale(0.98); transform-origin: top left;
  transition: opacity .18s ease, transform .18s cubic-bezier(.2,.8,.2,1), visibility 0s linear .18s;
}
.sb .sb-menu.open .sb-dd { opacity: 1; visibility: visible; transform: none; transition: opacity .18s ease, transform .22s cubic-bezier(.2,.8,.2,1); }
.sb .sb-head { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #8d939c; padding: 10px 10px 6px; }
.sb .sb-head:first-child { padding-top: 4px; }
.sb .sb-row { display: block; padding: 6px 10px; border-radius: 8px; color: #f4f5f6; text-decoration: none; font-weight: 400; }
.sb .sb-row:hover { background: rgba(255, 255, 255, 0.06); }
.sb .sb-row.here { color: #fff; font-weight: 600; background: rgba(255, 255, 255, 0.06); }
.sb .sb-search {
  flex: 1; max-width: 420px; margin: 0 0 0 auto; display: flex; align-items: center; gap: 8px; height: 38px; padding: 0 12px;
  background: rgba(255, 255, 255, 0.08); border: 1px solid transparent; border-radius: 10px;
}
.sb .sb-search:focus-within { border-color: rgba(255, 255, 255, 0.16); background: rgba(255, 255, 255, 0.11); }
.sb .sb-search svg { width: 16px; height: 16px; color: #8d939c; flex: none; }
.sb .sb-search input {
  flex: 1; min-width: 0; height: auto; width: auto; padding: 0; margin: 0; background: none; border: 0; border-radius: 0; outline: none;
  color: #f4f5f6; font: inherit; font-size: 14px; box-shadow: none;
}
.sb .sb-search input::placeholder { color: #a5aab2; }
.sb .sb-acct { flex: none; height: 36px; padding: 0 14px; border-radius: 9px; border: 1px solid rgba(255, 255, 255, 0.16); background: #1a1c20; color: #f4f5f6; font-weight: 650; }
.sb .sb-acct:hover { background: #23262b; }
.sb .sb-live { display: flex; align-items: center; gap: 7px; flex: none; font-size: 12.5px; color: #c9ccd1; text-decoration: none; white-space: nowrap; }
.sb .sb-live:hover { color: #fff; }
.sb .sb-dot { width: 8px; height: 8px; border-radius: 50%; background: #8d939c; }
.sb .sb-live.ok .sb-dot { background: #34c759; animation: sb-pulse 2.4s infinite; }
.sb .sb-live.bad .sb-dot { background: #ff9f0a; }
@keyframes sb-pulse { 0% { box-shadow: 0 0 0 0 rgba(52, 199, 89, .6); } 70% { box-shadow: 0 0 0 7px rgba(52, 199, 89, 0); } 100% { box-shadow: 0 0 0 0 rgba(52, 199, 89, 0); } }
.sb .sb-avatar { flex: none; width: 36px; height: 36px; border-radius: 50%; overflow: hidden; display: grid; place-items: center; background: linear-gradient(135deg, #e3000f, #ff7a45); color: #fff; font-weight: 800; text-decoration: none; }
.sb .sb-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sb .sb-avatar:has(img) { background: rgba(255, 255, 255, .11); }
.sb .sb-avatar:hover { box-shadow: 0 0 0 2px rgba(255, 255, 255, .25); }
.sb .sb-maplink { display: none; }

@media (max-width: 900px) {
  .sb .sb-live-t { display: none; }
  .sb .sb-nav .sb-maponly { display: none; }
  .sb .sb-maplink { display: flex; }
}
/* Phones: no bar (use back, or Account → Info in the app) */
@media (max-width: 720px), (pointer: coarse) and (max-width: 1400px) { .sb { display: none; } }
