/* Стили подсистемы интерактивного Q&A консилиума с Главным Агентом */

.qa-dialog-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 1000px;
  margin: 0 auto;
}

.qa-prompt-box {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.qa-prompt-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.qa-prompt-title {
  font-size: 16px;
  font-weight: 600;
  color: #fff;
}

.qa-prompt-hint {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 14px;
  line-height: 1.5;
}

.qa-textarea {
  width: 100%;
  min-height: 84px;
  background: var(--bg-page);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  padding: 12px 14px;
  color: #fff;
  font-size: 14px;
  font-family: inherit;
  resize: vertical;
  outline: none;
  transition: border-color 0.2s;
}

.qa-textarea:focus {
  border-color: var(--accent-blue);
}

.qa-prompt-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 12px;
}

.qa-stream {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.qa-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.qa-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 12px;
}

.qa-author-meta {
  display: flex;
  align-items: center;
  gap: 8px;
}

.qa-author-name {
  font-weight: 600;
  font-size: 14px;
  color: #fff;
}

.badge-role-investor {
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.4);
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
}

.badge-role-viewer {
  background: rgba(148, 163, 184, 0.2);
  color: #cbd5e1;
  border: 1px solid rgba(148, 163, 184, 0.4);
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 11px;
}

.badge-verified {
  background: rgba(0, 119, 255, 0.2);
  color: #60a5fa;
  border: 1px solid rgba(0, 119, 255, 0.4);
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.qa-question-text {
  font-size: 15px;
  color: #f1f5f9;
  line-height: 1.5;
  background: rgba(255, 255, 255, 0.03);
  padding: 12px 14px;
  border-radius: 8px;
  border-left: 3px solid var(--accent-blue);
}

.qa-orchestrator-box {
  background: rgba(30, 41, 59, 0.7);
  border: 1px solid rgba(0, 119, 255, 0.3);
  border-radius: 8px;
  padding: 14px;
}

.qa-orchestrator-title {
  font-size: 13px;
  font-weight: 700;
  color: #93c5fd;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.qa-orchestrator-text {
  font-size: 14px;
  color: #e2e8f0;
  line-height: 1.5;
}

.qa-accordion {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  overflow: hidden;
  background: rgba(15, 23, 42, 0.6);
}

.qa-accordion-summary {
  padding: 10px 14px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  color: #cbd5e1;
  background: rgba(255, 255, 255, 0.04);
  outline: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.qa-expert-list {
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.qa-expert-item {
  border-left: 2px solid rgba(255, 255, 255, 0.2);
  padding-left: 10px;
}

.qa-expert-header {
  font-size: 12px;
  font-weight: 600;
  color: #94a3b8;
  margin-bottom: 2px;
}

.qa-expert-verdict {
  font-size: 13px;
  color: #e2e8f0;
  line-height: 1.4;
}

.qa-recs-box {
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: 8px;
  padding: 12px 14px;
}

.qa-recs-title {
  font-size: 12px;
  font-weight: 700;
  color: #34d399;
  margin-bottom: 4px;
}

.qa-recs-list {
  margin: 0;
  padding-left: 20px;
  font-size: 13px;
  color: #e2e8f0;
}

@media (max-width: 768px) {
  .qa-dialog-container {
    gap: 14px;
    padding: 0 4px;
  }
  .qa-prompt-box,
  .qa-card {
    padding: 14px;
    border-radius: 10px;
  }
  .qa-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .qa-prompt-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }
  .qa-prompt-actions .btn-primary {
    width: 100%;
    justify-content: center;
  }
}
