.ft-realtime-status {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 12000;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 0 13px;
  border: 1px solid rgba(148, 163, 184, 0.34);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.92);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.22);
  color: #f8fafc;
  font: 700 11px/1 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  backdrop-filter: blur(12px);
  transition: opacity 160ms ease, transform 160ms ease, border-color 160ms ease;
}

.ft-realtime-status:hover {
  transform: translateY(-1px);
}

.ft-realtime-dot {
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #94a3b8;
  box-shadow: 0 0 0 4px rgba(148, 163, 184, 0.14);
}

.ft-realtime-status.live {
  border-color: rgba(34, 197, 94, 0.5);
}

.ft-realtime-status.live .ft-realtime-dot {
  background: #22c55e;
  box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.18);
}

.ft-realtime-status.connecting .ft-realtime-dot,
.ft-realtime-status.starting .ft-realtime-dot,
.ft-realtime-status.reconnecting .ft-realtime-dot {
  background: #38bdf8;
  box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.18);
  animation: ft-realtime-pulse 1.25s ease-in-out infinite;
}

.ft-realtime-status.attention .ft-realtime-dot {
  background: #f59e0b;
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.18);
}

.ft-realtime-status.offline .ft-realtime-dot,
.ft-realtime-status.signed-out .ft-realtime-dot {
  background: #94a3b8;
  box-shadow: 0 0 0 4px rgba(148, 163, 184, 0.14);
}

@keyframes ft-realtime-pulse {
  0%, 100% { opacity: 0.55; transform: scale(0.9); }
  50% { opacity: 1; transform: scale(1.08); }
}

@media (max-width: 700px) {
  .ft-realtime-status {
    right: 10px;
    bottom: 10px;
    min-height: 30px;
    padding: 0 10px;
    font-size: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ft-realtime-status,
  .ft-realtime-dot {
    transition: none;
    animation: none !important;
  }
}
