#ai-badge {
  position: fixed;
  bottom: 12px;
  right: 12px;
  font-size: 0.7rem;
  color: #556;
  background: rgba(15, 15, 30, 0.9);
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid #333;
  letter-spacing: 0.03em;
  cursor: pointer;
  z-index: 1000;
  transition: border-color 0.2s, color 0.2s;
}

#ai-badge-close {
  position: absolute;
  top: -8px;
  right: -8px;
  width: 18px;
  height: 18px;
  background: #e74c3c;
  color: #fff;
  border: none;
  border-radius: 50%;
  font-size: 0.6rem;
  line-height: 18px;
  text-align: center;
  cursor: pointer;
  display: none;
  padding: 0;
}

#ai-badge:hover #ai-badge-close,
#ai-badge.open #ai-badge-close {
  display: block;
}

#ai-badge:hover {
  border-color: #556;
  color: #889;
}

#ai-panel {
  display: none;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid #333;
}

#ai-badge.open #ai-panel {
  display: block;
}

.ai-section {
  margin-bottom: 6px;
}

.ai-heading {
  font-weight: 600;
  margin-bottom: 2px;
}

.ai-heading.ai-generated { color: #e74c3c; }
.ai-heading.ai-generated-reviewed { color: #e67e22; }
.ai-heading.ai-assisted { color: #f1c40f; }
.ai-heading.ai-unknown { color: #f1c40f; }
.ai-heading.human { color: #2ecc71; }

.ai-item {
  color: #888;
  padding-left: 8px;
}

#ai-learn-more {
  display: block;
  margin-top: 8px;
  padding-top: 6px;
  border-top: 1px solid #333;
  color: #5dade2;
  text-decoration: none;
  font-size: 0.65rem;
}

#ai-learn-more:hover {
  color: #85c1e9;
}
