/* v12-analyst.css — AI Analyst panel styles for The Ninth Wonder of the World.
   Follows the site's playful palette (site.css vars) and its .card / .btn /
   .btnrow / .search conventions. Desktop and phone. */
.an-panel h3 { margin: 0 0 8px; }
.an-quick { margin: 12px 0; }
.an-log {
  border: 2px solid var(--play-sky, #00a8e8);
  border-radius: 14px;
  background: #fff;
  padding: 12px;
  max-height: 340px;
  overflow-y: auto;
  margin: 4px 0 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.an-q, .an-a {
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 14px;
  line-height: 1.55;
  max-width: 92%;
  word-wrap: break-word;
}
.an-q {
  align-self: flex-end;
  background: #e0f7ff;
  border: 2px solid var(--play-sky, #00a8e8);
  color: #22202e;
}
.an-a {
  align-self: flex-start;
  background: #fff3cd;
  border: 2px solid var(--play-gold, #ffb703);
  color: #22202e;
}
.an-src {
  align-self: flex-start;
  font-size: 12px;
  color: #5b5470;
  padding: 0 4px;
}
.an-thinking { opacity: .7; font-style: italic; }
.an-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}
.an-row .an-input { flex: 1 1 220px; min-width: 200px; }
.an-note { margin: 10px 0 0; }
@media (max-width: 640px) {
  .an-log { max-height: 300px; }
  .an-q, .an-a { max-width: 96%; font-size: 13px; }
  .an-row .an-input { flex-basis: 100%; }
  .an-row .btn { flex: 1 1 auto; }
}
