.ask-ai-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.5);
  align-items: center;
  justify-content: center;
}

.ask-ai-dialog {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  width: 100%;
  max-width: 560px;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.ask-ai-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid #e5e7eb;
}

.ask-ai-title {
  font-weight: 600;
  font-size: 1rem;
}

.ask-ai-body {
  padding: 20px;
  overflow-y: auto;
  flex: 1;
}

.ask-ai-answer-text {
  white-space: pre-wrap;
  line-height: 1.6;
  font-size: 0.93rem;
}

.ask-ai-citation {
  cursor: default;
  font-size: 0.78rem;
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ask-ai-citation[data-source-type=vdr], .ask-ai-citation[data-source-type=sbv] {
  cursor: pointer;
}
.ask-ai-citation[data-source-type=vdr]:hover, .ask-ai-citation[data-source-type=sbv]:hover {
  background-color: #e7f3ff !important;
  border-color: #0d6efd !important;
}

.ask-ai-form textarea {
  resize: vertical;
  min-height: 80px;
}

@media (max-width: 600px) {
  .ask-ai-dialog {
    max-width: 95vw;
    margin: 0 8px;
  }
}