/* Shared thin status strip ("SignalWire REST") + credentials chip.
   The workshop page ships its own .api-ticker strip and mounts only the
   chip; the gallery shell renders the whole .sw-statusbar from here. */
.sw-statusbar {
  position: sticky; top: 0; left: 0; right: 0; z-index: 110;
  height: 40px; box-sizing: border-box;
  display: flex; align-items: center; gap: 12px;
  padding: 0 18px;
  background: rgba(8,10,14,0.94);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  font-family: 'JetBrains Mono', 'SF Mono', monospace;
  font-size: 12.5px;
  color: rgba(240,244,250,0.55);
}
.sw-statusbar-eyebrow { font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; font-size: 11.5px; flex-shrink: 0; }
.sw-statusbar-dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(240,244,250,0.35); flex-shrink: 0; transition: background .2s ease; }
.sw-statusbar.is-active .sw-statusbar-dot { background: #f72a72; box-shadow: 0 0 0 3px rgba(247,42,114,0.2); }
.sw-statusbar-text { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 600; color: rgba(240,244,250,0.8); }
.sw-statusbar-ok { color: #58d0c6; }
.sw-statusbar-err { color: #f72a72; }
.sw-statusbar-ms { color: rgba(240,244,250,0.45); margin-left: 6px; }

/* Credentials chip: one glanceable auth state on every surface. */
.sw-credchip {
  margin-left: auto; flex-shrink: 0;
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 999px; padding: 5px 12px;
  font: 600 11.5px/1 'JetBrains Mono', monospace;
  letter-spacing: 0.04em;
  color: rgba(240,244,250,0.85);
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease;
}
.sw-credchip:hover, .sw-credchip:focus-visible { border-color: rgba(88,208,198,0.6); background: rgba(255,255,255,0.09); outline: none; }
.sw-credchip .cc-dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(240,244,250,0.35); }
.sw-credchip.is-house .cc-dot { background: #6ea0ff; box-shadow: 0 0 0 3px rgba(4,78,244,0.18); }
.sw-credchip.is-connected .cc-dot { background: #58d0c6; box-shadow: 0 0 0 3px rgba(88,208,198,0.18); }
@media (max-width: 640px) { .sw-credchip .cc-label { max-width: 130px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } }
