/* Prose styles for rendered Markdown output */
.prose {
  color: #111827;
  line-height: 1.7;
  font-size: 0.95rem;
  word-wrap: break-word;
  overflow-wrap: anywhere;
}

.prose h1 { font-size: 1.875rem; font-weight: 700; margin: 1.5rem 0 1rem; color: #111827; line-height: 1.25; }
.prose h2 { font-size: 1.5rem;   font-weight: 700; margin: 1.5rem 0 0.75rem; color: #111827; line-height: 1.3;  border-bottom: 1px solid #e5e7eb; padding-bottom: 0.25rem; }
.prose h3 { font-size: 1.25rem;  font-weight: 600; margin: 1.25rem 0 0.5rem; color: #1f2937; line-height: 1.35; }
.prose h4 { font-size: 1.05rem;  font-weight: 600; margin: 1rem 0 0.5rem;    color: #1f2937; }
.prose h5 { font-size: 1rem;     font-weight: 600; margin: 0.75rem 0 0.5rem; color: #374151; }
.prose h6 { font-size: 0.9rem;   font-weight: 600; margin: 0.75rem 0 0.5rem; color: #4b5563; }

.prose p { margin: 0.75rem 0; }

.prose a { color: #4f46e5; text-decoration: underline; text-underline-offset: 2px; }
.prose a:hover { color: #4338ca; }

.prose strong { font-weight: 600; color: #111827; }
.prose em { font-style: italic; }
.prose del { color: #6b7280; text-decoration: line-through; }

.prose ul, .prose ol { margin: 0.75rem 0; padding-left: 1.5rem; }
.prose ul { list-style-type: disc; }
.prose ol { list-style-type: decimal; }
.prose li { margin: 0.25rem 0; }
.prose ul ul, .prose ol ol, .prose ul ol, .prose ol ul { margin: 0.25rem 0; }

.prose blockquote {
  margin: 1rem 0;
  padding: 0.5rem 1rem;
  border-left: 4px solid #c7d2fe;
  background: #f5f3ff;
  color: #4338ca;
  font-style: italic;
}

.prose code {
  background: #f3f4f6;
  color: #be185d;
  padding: 0.1rem 0.35rem;
  border-radius: 0.25rem;
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Monaco, Consolas, monospace;
  font-size: 0.875em;
  word-break: break-word;
}

.prose pre {
  margin: 1rem 0;
  padding: 1rem;
  background: #0f172a;
  color: #e2e8f0;
  border-radius: 0.5rem;
  overflow-x: auto;
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Monaco, Consolas, monospace;
  font-size: 0.85rem;
  line-height: 1.5;
  white-space: pre;
}

.prose pre code {
  background: transparent;
  color: inherit;
  padding: 0;
  border-radius: 0;
  font-size: inherit;
  word-break: normal;
}

.prose table {
  margin: 1rem 0;
  border-collapse: collapse;
  width: 100%;
  font-size: 0.9rem;
}
.prose table th, .prose table td {
  padding: 0.5rem 0.75rem;
  border: 1px solid #e5e7eb;
}
.prose table th {
  background: #f9fafb;
  font-weight: 600;
  text-align: left;
}
.prose table tr:nth-child(even) td {
  background: #fafafa;
}

.prose hr {
  margin: 2rem 0;
  border: 0;
  border-top: 1px solid #e5e7eb;
}

.prose img {
  max-width: 100%;
  height: auto;
  border-radius: 0.5rem;
  margin: 1rem 0;
}

.prose input[type="checkbox"] {
  margin-right: 0.5em;
}

/* Container do resultado da missão: scroll interno se ultrapassar 80vh */
.mission-result-container {
  max-height: 80vh;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #c7d2fe transparent;
}
.mission-result-container::-webkit-scrollbar {
  width: 8px;
}
.mission-result-container::-webkit-scrollbar-thumb {
  background: #c7d2fe;
  border-radius: 4px;
}
