/* Keep chat controls quiet while making a new test conversation one click away. */
.chat-clear {
  flex: 0 0 auto;
  padding: 7px 10px;
  border: 1px solid #d8dfd8;
  border-radius: 8px;
  background: #f7f9f6;
  color: #526255;
  font: inherit;
  font-size: 11px;
  cursor: pointer;
}

.chat-clear:hover,
.chat-clear:focus-visible {
  border-color: #92ad91;
  background: #edf4eb;
  color: #263d2d;
  outline: none;
}

body.v29-preview[data-page="chat"] .message-sources {
  margin-top: 10px;
  padding: 8px 0 0;
  border: 0;
  border-top: 1px solid #e2e8e1;
  border-radius: 0;
  background: transparent;
}

body.v29-preview[data-page="chat"] .message-sources summary.source-label {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 7px;
  min-height: 26px;
  color: #707a72;
  font-size: 10px;
  font-weight: 500;
  cursor: pointer;
  list-style: none;
  user-select: none;
}

body.v29-preview[data-page="chat"] .message-sources summary.source-label::-webkit-details-marker {
  display: none;
}

.source-count {
  color: #98a099;
  font-size: 9px;
  font-weight: 500;
}

.source-chevron {
  color: #89928a;
  font-size: 13px;
  line-height: 1;
  transition: transform .18s ease;
}

.message-sources[open] .source-chevron {
  transform: rotate(180deg);
}

.source-evidence-list {
  display: grid;
  gap: 2px;
  margin: 4px 0 1px 3px;
  padding: 4px 0 1px 10px;
  border-left: 1px solid #dce3dc;
}

.source-evidence {
  position: relative;
  padding: 3px 0 3px 9px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #68716a;
  overflow-wrap: anywhere;
  font-size: 9px;
  line-height: 1.45;
}

.source-evidence::before {
  content: "";
  position: absolute;
  top: .78em;
  left: 0;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #a8b1a8;
}

.answer-context {
  display: inline-block;
  margin-top: 8px;
  padding: 4px 7px;
  border-radius: 6px;
  background: #edf4eb;
  color: #3d6849;
  font-size: 10px;
  font-weight: 600;
  line-height: 1.4;
}

.message-retry {
  padding: 5px 8px;
  border: 1px solid #b9ccb8;
  border-radius: 7px;
  background: #f2f7f0;
  color: #31523e;
  font: inherit;
  font-size: 10px;
  cursor: pointer;
}

.message-retry:hover,
.message-retry:focus-visible {
  border-color: #7fa67f;
  background: #e8f2e5;
  outline: none;
}

.message-retry:disabled { opacity: .55; cursor: wait; }

.answer-followups {
  margin-top: 16px;
}

.answer-followups > strong {
  display: block;
  margin-bottom: 8px;
  color: #4e5c50;
  font-size: 11px;
  font-weight: 600;
}

.answer-followups-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.answer-followups-list button {
  max-width: 100%;
  padding: 8px 11px;
  border: 1px solid #d9e2d7;
  border-radius: 10px;
  background: #f9fbf7;
  color: #31523e;
  font: inherit;
  font-size: 11px;
  line-height: 1.45;
  text-align: left;
  cursor: pointer;
}

.answer-followups-list button:hover,
.answer-followups-list button:focus-visible {
  border-color: #90b58d;
  background: #edf4eb;
  outline: none;
}

@media (max-width: 720px) {
  body.v29-preview[data-page="chat"] .message-sources { margin-top: 9px; }
  .answer-followups-list { display: grid; }
  .answer-followups-list button { width: 100%; }
}
