/* ========================================================
   ROUND S5E.1 - EXPANDED PLAYGROUND CONVERSATIONS
   Extends the existing Playground without changing runtime APIs.
   ======================================================== */

.solutions-playground-conversation {
  min-width: 0;
}

.solutions-playground-transcript {
  display: grid;
  gap: 0.62rem;
  max-height: 430px;
  margin-top: 0.72rem;
  padding: 0.08rem 0.24rem 0.08rem 0;
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(139, 92, 246, 0.65) rgba(255, 255, 255, 0.03);
}

.solutions-playground-transcript::-webkit-scrollbar {
  width: 5px;
}

.solutions-playground-transcript::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.025);
}

.solutions-playground-transcript::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(139, 92, 246, 0.62);
}

.solutions-playground-chat-message {
  width: min(88%, 520px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px 16px 16px 5px;
  padding: 0.7rem 0.76rem 0.56rem;
  background: rgba(139, 92, 246, 0.13);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
}

.solutions-playground-chat-message--agent {
  justify-self: end;
  border-color: rgba(34, 211, 238, 0.17);
  border-radius: 16px 16px 5px 16px;
  background: rgba(34, 211, 238, 0.095);
}

.solutions-playground-chat-message header,
.solutions-playground-chat-message footer,
.solutions-playground-free-output-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
}

.solutions-playground-chat-message header strong {
  color: #f5f1ff;
  font-size: 12px;
  font-weight: 850;
}

.solutions-playground-chat-message--agent header strong {
  color: #c9f9ff;
}

.solutions-playground-copy-icon {
  color: #8d89a0;
  font-size: 12px;
  line-height: 1;
}

.solutions-playground-chat-message p {
  margin: 0.36rem 0 0;
  color: #e7e3f1;
  font-size: 13px;
  line-height: 1.58;
  white-space: pre-line;
}

.solutions-playground-chat-message--agent p {
  color: #ddfaff;
}

.solutions-playground-chat-message footer {
  justify-content: flex-end;
  margin-top: 0.38rem;
  color: #8d899c;
  font-size: 11px;
}

.solutions-playground-checks {
  color: #62dfea;
  font-weight: 850;
  letter-spacing: -0.08em;
}

.solutions-playground-result {
  align-self: start;
}

.solutions-playground-free-output[hidden] {
  display: none !important;
}

.solutions-playground-free-output.is-visible {
  min-height: 0;
  border-color: rgba(34, 211, 238, 0.28);
  background:
    radial-gradient(circle at 100% 0%, rgba(34, 211, 238, 0.08), transparent 34%),
    rgba(34, 211, 238, 0.045);
}

.solutions-playground-free-output-head strong {
  color: #effdff;
  font-size: 12px;
}

.solutions-playground-free-output-head span {
  border: 1px solid rgba(52, 211, 153, 0.22);
  border-radius: 999px;
  padding: 0.28rem 0.5rem;
  color: #8ff0c0;
  background: rgba(52, 211, 153, 0.06);
  font-size: 10.5px;
  font-weight: 850;
  text-transform: uppercase;
}

.solutions-playground-transcript--free {
  max-height: 520px;
  margin-top: 0.62rem;
}

.solutions-playground-transcript--free .solutions-playground-chat-message {
  width: min(92%, 680px);
}

.solutions-playground-quick-prompts {
  align-items: center;
}

.solutions-playground-quick-prompt {
  min-height: 34px;
  white-space: nowrap;
  font-size: 12px;
  line-height: 1.35;
}

.solutions-playground-conversation-head [data-guided-scenario-label] {
  color: #83eaf5;
  font-weight: 800;
}

@media (max-width: 760px) {
  .solutions-playground-transcript {
    max-height: 520px;
  }

  .solutions-playground-chat-message,
  .solutions-playground-transcript--free .solutions-playground-chat-message {
    width: 96%;
  }

  .solutions-playground-chat-message p {
    font-size: 13px;
  }

  .solutions-playground-quick-prompt {
    flex: 1 1 calc(50% - 0.42rem);
    white-space: normal;
    text-align: center;
  }
}

@media (max-width: 430px) {
  .solutions-playground-chat-message,
  .solutions-playground-transcript--free .solutions-playground-chat-message {
    width: 100%;
  }

  .solutions-playground-quick-prompt {
    flex-basis: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .solutions-playground-chat-message,
  .solutions-playground-free-output {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
