.hero-debug {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 9999;
  width: min(420px, calc(100vw - 2rem));
  max-height: min(70vh, 620px);
  overflow: auto;
  color: #102f40;
  background: rgba(255, 250, 238, .96);
  border: 1px solid rgba(16, 47, 64, .22);
  border-radius: 1rem;
  box-shadow: 0 18px 60px rgba(0,0,0,.22);
  font-size: .82rem;
  backdrop-filter: blur(12px);
}

.hero-debug__header {
  position: sticky;
  top: 0;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: .8rem 1rem;
  background: rgba(255, 250, 238, .98);
  border-bottom: 1px solid rgba(16, 47, 64, .15);
}

.hero-debug__header button {
  display: grid;
  place-items: center;
  width: 1.8rem;
  height: 1.8rem;
  border: 0;
  border-radius: 999px;
  background: #102f40;
  color: #fff;
  cursor: pointer;
}

.hero-debug__body {
  padding: .85rem 1rem 1rem;
}

.hero-debug dl {
  margin: 0;
}

.hero-debug__row {
  display: grid;
  grid-template-columns: 105px 1fr;
  gap: .65rem;
  padding: .35rem 0;
  border-bottom: 1px solid rgba(16, 47, 64, .08);
}

.hero-debug dt {
  font-weight: 800;
}

.hero-debug dd {
  margin: 0;
  word-break: break-word;
}

.hero-debug__row.is-ok dd,
.hero-debug__line.is-ok {
  color: #1b7d35;
}

.hero-debug__row.is-warn dd,
.hero-debug__line.is-warn {
  color: #9a6515;
}

.hero-debug__row.is-error dd,
.hero-debug__line.is-error {
  color: #b3261e;
}

.hero-debug__line {
  margin: .35rem 0 0;
}

.hero-video-fallback {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.no-hero-3d .hero-canvas {
  display: none;
}
