/* Shared Feed Health — Update Center + homepage widget */

.uc-fh,
[data-uc-fh] {
  display: grid;
  gap: 8px;
  margin: 0 0 12px;
  padding: 10px 14px;
  border-radius: 8px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  background: rgba(19, 29, 51, 0.72);
  font-size: 12px;
  line-height: 1.35;
  color: var(--discovery-text-muted, #94a3b8);
  min-height: 72px;
  box-sizing: border-box;
}

.uc-fh-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}

.uc-fh-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #42be65;
  box-shadow: 0 0 0 3px rgba(66, 190, 101, 0.18);
  flex-shrink: 0;
}

.uc-fh-dot[data-tone="delayed"] {
  background: #f1c21b;
  box-shadow: 0 0 0 3px rgba(241, 194, 27, 0.2);
}

.uc-fh-dot[data-tone="required"] {
  background: #fa4d56;
  box-shadow: 0 0 0 3px rgba(250, 77, 86, 0.2);
}

.uc-fh-dot[data-tone="syncing"] {
  background: #4589ff;
  box-shadow: 0 0 0 3px rgba(69, 137, 255, 0.22);
  animation: uc-fh-pulse 1.2s ease-in-out infinite;
}

.uc-fh-brand {
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--discovery-text-body, #cbd5e1);
}

.uc-fh-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px 12px;
  margin: 0;
}

.uc-fh-grid > div {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.uc-fh-grid dt {
  margin: 0;
  font-size: 11px;
  font-weight: 500;
  color: var(--discovery-text-muted, #94a3b8);
}

.uc-fh-grid dd {
  margin: 0;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--discovery-text-body, #e2e8f0);
}

.uc-fh-badge[data-tone="healthy"] {
  color: #42be65;
}

.uc-fh-badge[data-tone="delayed"] {
  color: #f1c21b;
}

.uc-fh-badge[data-tone="required"] {
  color: #fa4d56;
}

.uc-fh-badge[data-tone="syncing"] {
  color: #78a9ff;
}

/* Compact variant inside homepage Release Intelligence Preview */
.iuw .uc-fh,
.iuw [data-uc-fh] {
  margin: 0 0 12px;
  padding: 8px 12px;
  min-height: 64px;
  background: transparent;
  border-color: rgba(148, 163, 184, 0.12);
}

.iuw .uc-fh-grid {
  gap: 6px 10px;
}

/* Detail knowledge pages */
.ud-feed-health {
  max-width: var(--container-max, 1200px);
  margin: 0 auto;
  padding: 0 16px;
}

.ud-feed-health .uc-fh {
  margin: 10px 0 0;
}

@keyframes uc-fh-pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.45;
  }
}

@media (max-width: 720px) {
  .uc-fh-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .uc-fh,
  [data-uc-fh] {
    min-height: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .uc-fh-dot[data-tone="syncing"] {
    animation: none;
  }
}
