

.chat-container {
  border-radius: 12px;
  height: 70vh;
  opacity: 0.9;


  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;      /* 🔥 CRITICAL for flex scrolling */
  overflow: hidden;  /* 🚫 no scroll here */

}

.chat-header {
  padding-left: 10px;
  padding-top: 7px;
  font-weight: 600;

  flex-shrink: 0;

}

.chat-output {
  font-family: arial;
  font-size: 14px;
  color: #fff;
  flex: 1;
  min-height: 0;      /* 🔥 CRITICAL */
  overflow-y: auto;
  padding: 10px;
}

.chat-output .assistant {
  background: #1a1a1a70;
  padding: 3px;
  border-radius: 8px;
  margin: 8px;
}

.chat-output .user {
  padding: 12px;
  border-radius: 8px;
  margin-bottom: 12px;
  align-self: flex-end;
  color: #e3ceae;
      text-align: right;
}

.chat-input {

  border-top: 1px solid #1f2330;

  flex-shrink: 0;
  display: flex;
  gap: 8px;
  padding: 8px;


}

.chat-input input {
  flex: 1;
  background: #0a0a0a;
  border: 1px solid #404040;
  color: #e3ceae;
  padding: 10px;
  border-radius: 6px;
  font-family: arial;
  font-size: 15px;
}

.chat-input button {
  margin-left: 10px;
  padding: 10px 16px;
  background: #1e1e1e;
  border: none;
  color: #fff;
  border-radius: 6px;
  cursor: pointer;
}

.assistant-meta {
  margin-top: 6px;
  font-size: 11px;
  opacity: 0.7;
}













.xrpl-headline {
  font-weight: 600;
  font-size: 1.1em;
  margin-bottom: 6px;
}

.xrpl-summary {
  opacity: 0.9;
  margin-bottom: 20px;
}

.xrpl-section {
  margin-top: 10px;
}

.xrpl-section-title {
  font-weight: 500;
  margin-bottom: 4px;
  text-decoration: underline;
}

.xrpl-line {
  margin-left: 6px;
  opacity: 0.95;
}

.xrpl-footer {
  margin-top: 12px;
  font-size: 10px;
  opacity: 0.6;
}



.xrpl-chart {
  margin: 16px 0;
  text-align: center;
}

.xrpl-chart img {
  max-width: 100%;
  border-radius: 8px;
}

.xrpl-chart-caption {
  font-size: 0.85rem;
  opacity: 0.8;
  margin-top: 6px;
}





@media screen and (max-width:820px){
  .chat-output {
    height:53vh !important;
    flex: unset;
  }
}