* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  height: 100%;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #050816;
  color: #f9fafb;
}

.top-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 16px;
  background: rgba(15, 23, 42, 0.95);
  color: #e5e7eb;
  z-index: 10;
}

.home-link {
  color: #a78bfa;
  text-decoration: none;
  font-weight: 600;
  white-space: nowrap;
}

.home-link:hover {
  color: #c4b5fd;
}

.status {
  flex: 1;
}


.toggle-btn {
  padding: 8px 16px;
  border-radius: 999px;
  border: none;
  background: #22c55e;
  color: #022c22;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.1s ease, opacity 0.2s ease;
}

.toggle-btn:hover {
  background: #16a34a;
}

.toggle-btn:active {
  transform: scale(0.97);
}

.toggle-btn[disabled] {
  opacity: 0.5;
  cursor: default;
}

.live-frame {
  position: fixed;
  top: 48px;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: calc(100vh - 48px);
  border: none;
  background: #020617;
}
