.gn-watchdog {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(circle at 20% 15%, rgba(69, 255, 153, 0.14), transparent 34%),
    linear-gradient(145deg, #f8faf9, #eef4f0);
  color: #0b1710;
  font-family: Inter, Arial, sans-serif;
}

[data-theme='dark'] .gn-watchdog {
  background:
    radial-gradient(circle at 20% 15%, rgba(69, 255, 153, 0.12), transparent 34%),
    linear-gradient(145deg, #040705, #0b110d);
  color: #f4fff7;
}

.gn-watchdog__card {
  width: min(100%, 520px);
  padding: clamp(24px, 6vw, 44px);
  border: 1px solid rgba(16, 62, 34, 0.2);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 24px 80px rgba(5, 34, 16, 0.14);
  backdrop-filter: blur(16px);
}

[data-theme='dark'] .gn-watchdog__card {
  border-color: rgba(163, 255, 194, 0.24);
  background: rgba(7, 13, 9, 0.92);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.48);
}

.gn-watchdog__brand {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 22px;
  border-radius: 14px;
  background: #0b1710;
  color: #68ff9f;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.gn-watchdog__eyebrow {
  margin: 0 0 8px;
  color: #17723c;
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.gn-watchdog__title {
  margin: 0;
  font-size: clamp(1.55rem, 5vw, 2.3rem);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.gn-watchdog__message {
  margin: 14px 0 0;
  color: #536158;
  line-height: 1.6;
}

[data-theme='dark'] .gn-watchdog__message {
  color: #aebdb3;
}

.gn-watchdog__pulse {
  display: flex;
  gap: 7px;
  margin-top: 24px;
}

.gn-watchdog__pulse span {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #20be61;
  animation: gn-watchdog-pulse 1.2s ease-in-out infinite;
}

.gn-watchdog__pulse span:nth-child(2) { animation-delay: 120ms; }
.gn-watchdog__pulse span:nth-child(3) { animation-delay: 240ms; }

.gn-watchdog__actions {
  display: grid;
  gap: 10px;
  margin-top: 26px;
}

.gn-watchdog__actions[hidden],
.gn-watchdog__diagnostics[hidden],
.gn-watchdog[hidden] {
  display: none;
}

.gn-watchdog button {
  min-height: 46px;
  padding: 10px 16px;
  border: 1px solid #12351f;
  border-radius: 13px;
  background: #12351f;
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.gn-watchdog button:hover { background: #0c2917; }
.gn-watchdog button:focus-visible { outline: 3px solid #36e47a; outline-offset: 3px; }
.gn-watchdog button.gn-watchdog__secondary { background: transparent; color: inherit; }

.gn-watchdog__diagnostics {
  margin-top: 18px;
  padding: 14px;
  border-radius: 13px;
  background: rgba(28, 108, 58, 0.08);
  font-size: 0.82rem;
}

.gn-watchdog__diagnostics dl {
  display: grid;
  grid-template-columns: minmax(100px, auto) 1fr;
  gap: 7px 12px;
  margin: 0;
}

.gn-watchdog__diagnostics dt { font-weight: 750; }
.gn-watchdog__diagnostics dd { margin: 0; overflow-wrap: anywhere; }

@keyframes gn-watchdog-pulse {
  0%, 100% { transform: translateY(0); opacity: 0.35; }
  50% { transform: translateY(-4px); opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .gn-watchdog__pulse span { animation: none; opacity: 0.75; }
}

@media (max-width: 520px) {
  .gn-watchdog { align-items: end; padding: 12px; }
  .gn-watchdog__card { border-radius: 22px; }
}
