body .welcome .welcome-intro > .webcomm-health.webcomm-health {
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: max-content;
  max-width: 100%;
  min-height: 22px;
  margin: -3px auto 2px;
  padding: 3px 9px;
  border: 1px solid #d8e5dd;
  border-radius: 999px;
  background: #f6faf7;
  color: #496158;
  font-size: 10.5px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: .01em;
}

.webcomm-health-dot {
  width: 6px;
  height: 6px;
  flex: 0 0 6px;
  border-radius: 50%;
  background: #9aa7a1;
}

.sidebar .demo-note .webcomm-health-sidebar {
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: fit-content;
  max-width: 100%;
  min-height: 20px;
  margin: 10px auto 0;
  padding: 3px 7px;
  border: 1px solid #d8e5dd;
  border-radius: 999px;
  background: #f6faf7;
  color: #496158;
  font-size: 9.5px;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
}

.sidebar .demo-note .webcomm-health-sidebar[data-state="ok"] {
  color: #2f6f53;
}

.sidebar .demo-note .webcomm-health-sidebar[data-state="error"] {
  border-color: #eadfc8;
  background: #fdfaf4;
  color: #786544;
}

:root.dark-mode .sidebar .demo-note .webcomm-health-sidebar {
  border-color: #405449;
  background: #223028;
}

.webcomm-health[data-state="ok"] .webcomm-health-dot {
  background: #3bb878;
  box-shadow: 0 0 0 2px #dff3e8;
}

.webcomm-health[data-state="error"] {
  border-color: #eadfc8;
  background: #fdfaf4;
  color: #786544;
}
.webcomm-health[data-state="error"] .webcomm-health-dot { background: #d49a35; }
.webcomm-health[data-state="offline"] .webcomm-health-dot { background: #8d9994; }

@media screen and (max-width: 700px) {
  body .welcome .welcome-intro > .webcomm-health.webcomm-health {
    min-height: 20px;
    margin-top: -4px;
    padding: 2px 8px;
    font-size: 10px;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .webcomm-health[data-state="checking"] .webcomm-health-dot {
    animation: webcomm-health-pulse 1.2s ease-in-out infinite;
  }
}

@keyframes webcomm-health-pulse {
  50% { opacity: .4; }
}
