/* AI Semantic Inspector – dev / AIO panel */

.ai-inspector {
  position: fixed;
  top: 0;
  right: 0;
  width: min(380px, 100vw);
  max-height: 100vh;
  overflow-y: auto;
  z-index: 300;
  background: #0d1117;
  border-left: 1px solid #30363d;
  box-shadow: -8px 0 24px rgba(0, 0, 0, 0.4);
  padding: 1rem 1.1rem 1.5rem;
  font-size: 0.85rem;
  color: #c9d1d9;
  line-height: 1.4;
}

.ai-inspector--hidden {
  display: none !important;
}

.ai-inspector__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
  color: #58a6ff;
}

.ai-inspector__close {
  background: transparent;
  border: 1px solid #30363d;
  color: #c9d1d9;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1.1rem;
  line-height: 1;
}

.ai-inspector__close:hover {
  border-color: #58a6ff;
  color: #58a6ff;
}

.ai-inspector__meta {
  margin: 0 0 0.5rem;
  color: #8b949e;
  font-size: 0.75rem;
}

.ai-inspector__summary {
  margin: 0 0 1rem;
  padding: 0.6rem 0.75rem;
  background: #161b22;
  border: 1px solid #30363d;
  border-radius: 6px;
  font-size: 0.8rem;
}

.ai-inspector__actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.ai-inspector__btn {
  width: 100%;
  padding: 0.55rem 0.75rem;
  border-radius: 6px;
  border: 1px solid #238636;
  background: #238636;
  color: #fff;
  font: inherit;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
}

.ai-inspector__btn:hover {
  background: #2ea043;
}

.ai-inspector__btn--ghost {
  background: transparent;
  border-color: #30363d;
  color: #c9d1d9;
}

.ai-inspector__btn--ghost:hover {
  border-color: #58a6ff;
  color: #58a6ff;
}

.ai-inspector h4 {
  margin: 0.85rem 0 0.35rem;
  color: #e6edf3;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.ai-inspector__list {
  margin: 0;
  padding-left: 1.1rem;
}

.ai-inspector__list li {
  margin-bottom: 0.35rem;
}

.ai-inspector__muted {
  color: #8b949e;
  font-size: 0.78rem;
}

.ai-inspector__raw {
  margin-top: 1rem;
}

.ai-inspector__raw summary {
  cursor: pointer;
  color: #58a6ff;
}

.ai-inspector__raw pre {
  margin: 0.5rem 0 0;
  padding: 0.6rem;
  background: #161b22;
  border: 1px solid #30363d;
  border-radius: 6px;
  overflow-x: auto;
  font-size: 0.7rem;
  max-height: 240px;
}

.ai-inspector__hint {
  margin-top: 1rem;
  font-size: 0.72rem;
  color: #8b949e;
}

.ai-inspector__empty {
  color: #8b949e;
}
