.debug {
  padding-top: var(--space-2);
}

.debug__title {
  font-family: var(--font-serif);
  font-size: var(--text-2xl);
  color: var(--text-strong);
  letter-spacing: -0.015em;
  margin-bottom: var(--space-2);
  line-height: var(--lh-heading);
}

.debug__lead {
  color: var(--text-muted);
  font-size: var(--text-sm);
  margin-bottom: var(--space-8);
}

.debug__list {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--space-3) var(--space-6);
  margin-bottom: var(--space-8);
  padding-bottom: var(--space-8);
  border-bottom: 1px solid var(--border);
  font-size: var(--text-sm);
}

.debug__list dt {
  color: var(--text-muted);
  font-weight: 500;
  white-space: nowrap;
}

.debug__list dd {
  color: var(--text);
  margin: 0;
  word-break: break-word;
}

.debug__ok { color: var(--success); font-weight: 700; }
.debug__warn { color: var(--warning); font-weight: 700; }
.debug__bad { color: var(--danger); font-weight: 700; }

.debug__cache {
  margin-bottom: var(--space-1);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  line-height: 1.6;
}

.debug__actions {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin-bottom: var(--space-8);
}

@media (min-width: 480px) {
  .debug__actions {
    flex-direction: row;
    flex-wrap: wrap;
  }
}

.debug__btn {
  padding: var(--space-3) var(--space-4);
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-weight: 500;
  font-size: var(--text-sm);
  min-height: 44px;
  transition: background var(--dur-fast) var(--ease-out-expo);
}
@media (hover: hover) and (pointer: fine) {
  .debug__btn:hover:not(:disabled) {
    background: var(--border);
    color: var(--text-strong);
  }
}
.debug__btn:disabled { opacity: 0.5; cursor: not-allowed; }

.debug__btn--danger {
  border-color: color-mix(in oklch, var(--danger) 40%, var(--border));
  color: var(--danger);
}

.debug__help {
  font-size: var(--text-sm);
  color: var(--text-muted);
  line-height: var(--lh-ui);
  padding: var(--space-3) var(--space-4);
  background: var(--bg-soft);
  border-radius: var(--radius-md);
}
