/*
 * General components
 */

.truncate-4x30-chars {
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 30ch;
}

[role=button].primary-black {
  --background-color: black;
}

[role=button].primary-black:is([aria-current], :hover, :active, :focus) {
  --background-color: #0003;
}

.selectable:hover {
  background-color: var(--color-hover);
  cursor: pointer;
}

.selected {
  background-color: var(--border-color);
}

.page-content {
  min-height: calc(100vh - 5.5rem);
  border-radius: 0.5rem;
}

.page-content:has(.chat-history.not-empty) {
  background: var(--background-2);
}

.page.embedded .page-background *,
.page:has(.chat-history.not-empty) .page-background * {
  display: none;
}

.page:has(.chat-history.not-empty) .page-header {
  background: var(--background-1);
}

/*
 * Home
 */

.home {
  flex: 1;
  display: flex;
  flex-direction: column;
  position: relative;
  padding: 0;
}

/*
 * Control pane
 */

.control-pane {
  display: flex;
  flex-direction: column;
  position: absolute;
  width: 100%;
  height: fit-content;
  top: 50%;
  left: 0;
  margin: 0;
  transform: translate(0, -50%);
}

@media screen and (max-width:1100px) {
  .control-pane {
    margin-bottom: 0;
  }
}

.home:has(.chat-history.not-empty) .control-pane {
  position: sticky;
  top: unset;
  transform: unset;
  bottom: 1rem;
}

.page.embedded .home .control-pane {
  position: sticky;
  top: unset;
  transform: unset;
  width: calc(100% - 1rem);
  margin: 0 0.5rem;
  bottom: 0;
}

.page.embedded .home:has(.chat-history.not-empty) .control-pane {
  width: 100%;
  margin: 0;
}

.control-pane .banner {
  font-size: 2rem;
  font-weight: 500;
  padding: 2rem;
  text-align: center;
}

.page.embedded .control-pane .banner,
.home:has(.chat-history.not-empty) .control-pane .banner {
  display: none;
}

.control-pane .controls {
  position: relative;
  display: flex;
  flex-direction: column;
  background: rgb(from var(--background-6) r g b / 0.95);
  padding: 0;
  margin: 0;
  border-radius: 0.5rem;
}

.control-pane .controls-form {
  display: flex;
  flex-direction: column;
  font-size: 1rem;
  margin: 0.9rem 0.9rem 0 0.9rem;
  padding: 0;
}

.control-pane .question {
  color: var(--color-1);
  font-size: 0.8rem;
  /*height: 4rem;*/
  border: none;
  resize: none;
  padding: 0;
  margin: 0;
}

.control-pane .question:focus {
  --box-shadow: none;
  outline: none;
}

#home.hide-question .toggle-voice-mode,
#home.hide-question .microphone,
#home.hide-question #select-power,
#home.hide-question #question {
  display: none;
}

#home:not(.voice-mode) #chat-form .microphone,
#home.voice-mode .controls-bar .microphone,
#home.voice-mode:not(.hide-question) .controls-bar .toggle-auto-read-answer,
#home.voice-mode:not(.hide-question) #send,
#home.voice-mode #question {
  display: none;
}

.control-pane .controls-bar {
  display: flex;
  flex-wrap: wrap;
  padding: 0.2rem 0.5rem 0.5rem 0.5rem;
  margin: 0;
}

.control-pane #select-agent,
.control-pane #select-power,
.control-pane #select-project {
  height: 1.5rem;
  margin: 0.25rem 0.125rem;
  padding: 0.25rem 0.5rem;
  color: var(--color-1);
  background: var(--background-2);
  cursor: pointer;
  border-radius: 0.25rem;
}

.control-pane #select-agent:hover,
.control-pane #select-power:hover,
.control-pane #select-project:hover {
  background: var(--color-hover);
}

.control-pane:has(input#current-agent:not([data-requires-project=yes])) #select-project {
  display: none;
}


/* Power picker list status icon (dialog) */
#select-power-options {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

#select-power-options > li {
  position: relative;
  padding: 0.5rem 0.5rem 0.5rem 2rem; /* space for status icon */
}

#select-power-options > li .status {
  margin: 0;
  width: 1rem;
  height: 1rem;
  position: absolute;
  left: 0.5rem;
  top: 0.5rem;
  border-radius: 50%;
  background-color: var(--background-6);
  z-index: 1;
}

#select-power-options > li .status.complete {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' %3E%3Cpath d='M20 6 9 17l-5-5'%3E%3C/path%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
}

.control-pane .icon-button {
  margin: 0.25rem;
  user-select: none;
  font-size: 0.8rem;
  padding: 0.2rem 0.35rem;
}

.control-pane .icon-button.send {
  background: var(--primary);
  color: var(--color-1);
  font-size: 1rem;
  margin-left: auto;
}

.control-pane .icon-button[aria-busy=true] {
  font-size:0.8rem;
}

.control-pane .icon-button.send:hover {
  background: var(--primary) !important;
  color: var(--color) !important;
}

.page.embedded .control-pane .icon-button.scroll-top,
.page.embedded .control-pane .icon-button.scroll-bottom {
  display: none;
}

#home.auto-read-answer .control-pane .toggle-auto-read-answer svg[data-icon=speaker-muted],
#home:not(.auto-read-answer) .control-pane .toggle-auto-read-answer svg[data-icon=speaker] {
  display: none;
}

.control-pane .microphone {
  position: relative;
  width: fit-content;
  padding: 0;
}

.control-pane .microphone * {
  user-select: none;
}

.control-pane .microphone .message {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%,-100%);
  width: 10rem;
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
  background: #633;
  font-size: 0.7rem;
}

.control-pane .microphone .message:not(.shown) {
  display: none;
}


.control-pane #chat-form .microphone {
  margin: 0 auto;
}

.control-pane #chat-form .microphone .icon-button {
  width: 2rem;
  height: 2rem;
  font-size: 1.5rem;
  padding: 0 0.25rem;
}

.control-pane .toggle-voice-mode {
  position: absolute;
  top: 0;
  right: 0;
}

/*
 * History pane
 */

.history-pane {
  flex: 1;
  display: flex;
  flex-direction: column;
  margin: 0 1rem;
}

/* Chat history */

.chat-history {
  flex: 1;
  border-radius: 0.25rem;
  margin: 0;
  padding: 0.5rem 0;
}

.chat-history .chat-message-controls .icon-button {
  font-size: 0.8rem;
  border-radius: 50%;
  background: var(--background-3);
  transition: transform 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}

.chat-history .chat-message-controls .icon-button.copied {
  background: var(--color-3);
  color: var(--background-1);
  transform: scale(1.07);
}

.chat-history .chat-message {
  padding: 0 0 1.5rem 0;
  max-width:100%;
  width: 100%;
  display: flex;
  flex-direction: column;
  font-size: var(--font-size);
}

.chat-history .chat-message.ignore {
  opacity: 0.6;
  background: #232c2d;
}

.chat-history .chat-message.ignore.right {
  border-radius: 0.5rem 0.5rem 0 0;
}
.chat-history .chat-message.ignore.left {
  border-radius: 0 0 0.5rem 0.5rem;
}


.chat-history:not(:has(.chat-message:not(.dummy))) .chat-message.dummy {
  display: none;
}

.chat-history .chat-message.dummy:not(.agent) {
  display: none;
}

.chat-history .chat-message-head {
  display: flex;
}

.chat-history .chat-message-icon {
  width: 1.5rem;
  height: 1.5rem;
  margin: 0 0 auto 0;
  padding: 0;
  border-radius: 50%;
  background: var(--background-3);
}

.chat-history .chat-message.left .chat-message-icon {
  color: var(--primary);
}

.chat-history .chat-message.right .chat-message-icon {
  color: var(--color-2);
  font-size: 0.8rem;
}

.chat-history .chat-message-controls {
  display: flex;
  flex-wrap: wrap;
}

.chat-history .chat-play {
  border-radius: 50%;
}

.chat-history .chat-play .loader-1::after {
  background: var(--background-3);
}

.chat-history .chat-play:hover .loader-1::after {
  background: var(--color-3);
}

.chat-history .chat-play.playing svg[data-icon=play],
.chat-history .chat-play:not(.playing) svg[data-icon=pause],
.chat-history .chat-play:not(.playing) .loader-1 {
  display: none;
}

.chat-history .chat-play[aria-busy=true] {
  padding: 0.2rem 0.35rem;
}

.chat-history .chat-play[aria-busy=true] svg {
  display: none;
}

.chat-history .chat-message-agent,
.chat-history .chat-message-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  font-size: 0.8rem;
  padding: 0 0 0 40px;
  min-width: 0;
  min-height: 0;
}

.chat-history .chat-message-head .chat-message-body {
  padding: 0 0.5rem;
}

.chat-history .chat-message:has(.chat-message-agent select.title.htmx-request) .chat-message-body>:not([aria-busy]) {
  display: none;
}

.chat-history .chat-message:not(:has(.chat-message-agent select.title.htmx-request)) .chat-message-body>[aria-busy] {
  display: none;
}

.chat-history .chat-message-body .context-source {
  font-size: 0.5rem;
  margin-bottom: 0.5rem;
  color: var(--color-2);
}

.chat-history .chat-message-agent {
  font-size: 0.7rem;
  padding: 0 0.5rem;
}

.chat-history .chat-message-agent .title {
  color: var(--color-3);
  font-size: 0.8em;
  font-style: italic;
}

.chat-history .chat-message-agent .description {
  color: var(--color-3);
  font-size: 0.6rem;
}

.chat-history .chat-message.dummy.agent .chat-message-icon .loader {
  display: none;
}

.chat-history .chat-message.dummy.agent .chat-message-controls,
.chat-history .chat-message.dummy.agent .chat-message-body {
  display: none;
}

.chat-history .chat-message-body .agent-response {
  display: flex;
  flex-direction: column;
  min-height: 0;
  min-width: 0;
}
.chat-history .chat-message-body .agent-response .button{
  margin-left: -8px;
}

.chat-history .chat-message-body .agent-response > *:not(:last-child) {
  margin: 0 0 1rem 0;
}

.chat-history .chat-message-body .error {
  color: var(--color-red);
}

.chat-history .chat-message-body pre {
  /* font-family: Roboto, sans-serif; */
  margin: 0;
  color: var(--color);
  font-style: normal;
  font-weight: var(--font-weight);
  font-size: 0.8rem;
  line-height: unset;
  background: unset;
  white-space: pre-wrap;    /* Allows wrapping */
  overflow-wrap: break-word;  /* Break long words */
}

.chat-history .user-content {
  font-size: 0.7rem;
  color: var(--color-2);
}

/* .chat-history .markdown-content p { */
/*   color: var(--color-1); */
/* } */

.chat-history .markdown-content .markdown-table-container {
  position: relative;
  padding-top: 0.5rem;
}

.chat-history .markdown-content .markdown-table-container .open-button {
  position: absolute;
  top: 0;
  right: 0;
  height: 1rem;
  font-size: 0.5rem;
  line-height: 1rem;
  background: var(--background-3);
  padding: 0 0.5rem;
  cursor: pointer;
}

.chat-history .markdown-content .markdown-table-container .open-button:hover {
  background: var(--hover-color);
}

.chat-history .chat-message-time {
  /* padding-left: 0.5rem; */
  font-size: 0.5em;
  color: var(--color-2);
}

#home:not(.show-message-time) .chat-history .chat-message-time {
  display: none;
}

.chat-history .chat-message.left .chat-message-time {
  text-align: left;
}

.chat-history .chat-message.center .chat-message-body {
  background: #2a2f33;
}

.chat-history .chat-message.center .chat-message-time {
  text-align: center;
}

.chat-history .bullet-button {
  width: fit-content;
  padding: 0.1rem 0.5rem 0.1rem 0.1rem;
}

.chat-history .bullet-button .icon {
  height: 1.3rem;
  width: 1.3rem;
}

.chat-history .bullet-button .label {
  color: var(--color-2);
  font-size: 0.6rem;
  line-height: 1.3rem;
}

.chat-history .chat-project-separator {
  position: relative;
  margin: 1rem 0 0 0;
  border-top: 1px solid var(--border-color);
  height: 1rem;
}

.chat-history .chat-project-separator .label {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
  border: 1px solid var(--border-color);
  font-size: 0.5rem;
  color: var(--color-2);
  background: var(--background-3);
  border-radius: 0.5rem;
  line-height: 1rem;
  height: 1rem;
  padding: 0 1rem;
  width: fit-content;
}

/* Attachments */

.chat-attachments,
.chat-history .agent-response .attachments {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  font-size: 0.7rem;
}

.attachments {
  margin-top: 15px;
  margin-bottom: 15px;
}

.chat-attachments .title,
.chat-history .attachments .title {
  position: absolute;
  font-size: 0.4rem;
  color: var(--color-2);
  left: 0.25rem;
  top: -0.5rem;
}

.chat-attachments .attachment-item,
.chat-history .attachment-item {
  display: inline-block;
  background: var(--background-3);
  border-radius: 0.24rem;
  padding: 0;
  margin: 0.1rem 0.25rem;
}

.chat-attachments .attachment-item .link,
.chat-history .attachment-item .link {
  padding: 0 0.5rem;
  color: var(--color-2);
}

.chat-attachments .attachment-item .icon-button,
.chat-history .attachment-item .icon-button {
  width: 1.25rem;
  height: 1.25rem;
  background: var(--background-3);
  font-size: 0.8rem;
  padding: 0;
  margin: 0;
}

.chat-attachments {
  padding: 0.25rem;
  background: var(--background-6);
  border-radius: 0.25rem;
}

#home:not(.show-artifacts-always) .chat-attachments:not(:has(.attachment-item)) {
  display: none;
}

.chat-attachments .file-input {
  margin-left: auto;
}

/* Images */

.chat-history figure.md.image .item .bar {
  background: var(--background-6);
}

/* Tables */

.chat-history .agent-response .tables {
  min-height: 0;
  min-width: 0;
  overflow: auto;
}

.chat-history .agent-response .tables .title {
  font-size: 0.5rem;
  color: var(--color-2);
}

.chat-history .agent-response .tables table {
  margin: 0;
  --table-border-color: none;
  --table-row-stripped-background-color: var(--background-1);
  --color: #E0E0E0;
  --line-height: 1.4;
}

/* .chat-history .agent-response .tables table tbody tr:nth-child(even) { */
/*   background-color: #2B2D2E; */
/* } */

.chat-history .agent-response .tables table tbody tr:nth-child(odd) {
  background-color: var(--table-row-stripped-background-color);
}

.chat-history .agent-response .tables table thead th,
.chat-history .agent-response .tables table thead td {
  color: var(--primary);
}

.chat-history .agent-response .tables table th {
  --font-size: 0.6rem;
  padding: 0.5rem;
}

.chat-history .agent-response .tables table td {
  --font-size: 0.6rem;
  padding: 0.5rem;
}

/* Checklist progress */

.chat-history .agent-checklist {
  font-size: 0.5rem;
}

.chat-history .agent-checklist:has(.progress-bar.complete) {
  display: none;
}

.chat-history .agent-checklist > * {
  margin-top: 0.25rem;
}

.chat-history .agent-checklist .overall {
  display: flex;
  flex-wrap: wrap;
}

.chat-history .agent-checklist .info {
  margin-left: 1rem;
}

.chat-history .agent-checklist .info:first-child {
  margin-left: auto;
}

.chat-history .agent-checklist .overall .info .label {
  padding: 0 0.2rem 0 0;
}

.chat-history .agent-checklist .overall .info .label::after {
  content: ":"
}

.chat-history .agent-checklist .overall .info .value {
  padding: 0;
  color: var(--color-green);
}

.chat-history .agent-checklist .progress-bar {
  position: relative;
  height: 1rem;
  margin: 0.5rem 0;
  background: var(--background-color-2);
  border-radius: var(--border-radius);
}

.chat-history .agent-checklist .progress-bar.complete {
  background: var(--color-green);
  opacity: 40%;
}

.chat-history .agent-checklist .progress-bar .bar {
  position: absolute;
  left: 0;
  background: var(--color-orange);
  height: 100%;
  min-width: 0.25rem;
  border-radius: inherit;
}

.chat-history .agent-checklist .task {
  position: relative;
  display: flex;
  padding: 0.5rem 0.25rem 0.5rem 2rem;
  color: var(--color-1);
}

.chat-history .agent-checklist .task .status {
  margin: 0;
  width: 1rem;
  height: 1rem;
  position: absolute;
  left: 0.5rem;
  top: 0.5rem;
  border-radius: 50%;
  background-color: var(--background-6);
  z-index: 1;
}

.chat-history .agent-checklist .task .status.complete {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-line-join='round' %3E%3Cpath d='M20 6 9 17l-5-5'%3E%3C/path%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
}

.chat-history .agent-checklist .task .status[aria-busy=true] {
  padding-top: 0.14rem;
}

.chat-history .agent-checklist .task:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 1rem;
  top: 50%;
  height: 100%;
  border-left: 1px dashed var(--color-3);
}

.chat-history .agent-checklist .task .title {
  flex: 1;
  margin-left: 0.5rem;
  line-height: 1rem;
}

.chat-history .agent-checklist .task .title div {
  font-size: 0.8em;
  color: var(--color-2);
}

.chat-history .agent-checklist .task .time {
  color: var(--color);
  opacity: 40%;
}



/*
 * Dialogs
 */


dialog article footer {
  position: sticky;
  bottom: calc(-1 * var(--block-spacing-vertical));
}

dialog article select,
dialog article input:not([type=checkbox],[type=radio]),
dialog article textarea {
  margin-bottom: 0.25rem;
  margin-right: 0.25rem;
}



.file-list {
  padding: 0.5rem;
  margin-bottom: 0;
}

.file-list .file {
  display: flex;
  justify-content: space-between;
}

.file-list .remove {
  color: var(--asv-color-red);
  cursor: pointer;
  padding: 0 0.25rem;
  margin-left: 0.5rem;
  border-radius: 0.2rem;
  line-height: 1rem;
  font-weight: 700;
}

.file-list .remove:hover {
  background: var(--asv-color-red);
  color: white;
}

#attachments-dialog label[role=button] {
  margin: 0.25rem;
}


/* select agent dialog */

#select-project-dialog,
#select-agent-dialog {
  /* keep a sensible width that never exceeds the viewport */
  width: min(900px, 90vw);
  /* optional: center logic may live elsewhere */
  box-sizing: border-box;
}

#select-project-dialog article,
#select-agent-dialog article {
  display: flex;
  flex-direction: column;
  /* width constrained to the dialog box */
  max-width: 100%;
  /* height based on viewport HEIGHT, not width */
  max-height: min(80vh, 100dvh - 4rem);
  min-height: 1rem;
  box-sizing: border-box;
  /* padding: 0.5rem; */
}

#select-agent-dialog .select-agent-head {
  display: flex;
  margin-bottom: 0.5rem;
  flex: 0 0 auto;
}

#select-agent-dialog .select-agent-history {
  display: flex;
  margin-bottom: 0.5rem;
  flex: 0 0 auto;
  overflow: auto;
}

#select-agent-dialog .select-agent-history button {
  margin: 0 0.5rem;
  border: 1px solid var(--secondary);
}

#select-agent-dialog .select-agent-history button:not(:hover) {
  background: none;
}

#select-agent-dialog .select-agent-body {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 1rem;
  overflow: auto;          /* <-- scrolling content */
  min-block-size: 0;       /* avoid flex overflow in some browsers */
}

@media screen and (max-width:600px) {
  #select-agent-dialog .tool-list-box .tool-table,
  #select-agent-dialog .tool-list-box .tool-tbody {
    display: flex;
    flex-direction: column;
  }

  #select-agent-dialog .tool-list-box .tool-list-item-header,
  #select-agent-dialog .tool-list-box .tool-list-item {
    display: flex;
    flex-direction: column;
  }

  #select-agent-dialog .tool-list-box .tool-list-item .tool-title {
    border-bottom: none;
  }

  #select-agent-dialog .tool-list-box .tool-list-item.collapsed,
  #select-agent-dialog .tool-list-box .tool-list-item.hidden,
  #select-agent-dialog .tool-list-box .tool-list-item-header.hidden { display: none; }

}

#select-agent-dialog .tool-list-box .tool-list-item {
  user-select: none;
}

#select-agent-dialog .tool-list-box .tool-list-item .tool-title {
  position: relative;
  padding-right: 5rem;
}

#select-agent-dialog .tool-list-box .tool-list-item .use-count {
  position: absolute;
  top: 0.25rem;
  right: 0;
  display: flex;
}

#select-agent-dialog .tool-list-box .tool-list-item .use-count input {
  width: 1.5rem;
  padding: 0;
  margin: 0;
  text-align: center;
  user-select:none;
  background: var(--color-2);
  color: var(--background-3);
}

#select-agent-dialog .tool-list-box .tool-list-item .use-count input[value='0'] {
  background: unset;
}

#select-agent-dialog .tool-list-box .tool-list-item .tool-description {
  padding-left: 0.25rem;
}

#select-agent-dialog .select-agent-actions {
  display: flex;
  justify-content: space-between;
  margin-top: 0.5rem;
}

#select-agent-dialog .select-agent-actions .tool-selected {
  font-size: 0.6rem;
  line-height: 1.5rem;
  color: var(--color-2);
}

/**** Loading response ***/

.reveal-animation {
  animation-duration: 0.8s;
  animation-name: reveal-animation-fade;
  animation-delay: 0.1s;
  animation-fill-mode: backwards;
}

@keyframes reveal-animation-fade {
  0% { opacity: 0; }
  100% { opacity: 1; }
}
/*.sidebar-leaf .label {
  overflow: hidden;
  display: inline-block;
  white-space: nowrap;
  text-overflow: ellipsis;
}
*/

.chat-history .chat-message-body .collapse {
  max-width: 52rem;
  width: 100%;
}

.chat-history .chat-message-body .collapse-body {
  padding: 0.75rem 0.75rem 0.75rem 0;
  font-size: 0.8em;
}

.chat-history .chat-message-body .collapse-body .reasoning-block {
  position: relative;
  padding: 0.25rem 0 0.25rem 1.25rem;
  color: rgba(255,255,255,0.85);
  line-height: 1.45;
}

.chat-history .chat-message-body .collapse-body .reasoning-block::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.2rem;
  bottom: 0.2rem;
  width: 3px;
  border-radius: 999px;
  background: rgba(255,255,255,0.22);
}

.chat-history .chat-message-body .reasoning-wrap {
  display: flex;
  gap: 1rem;
  padding: 0.5rem 0.75rem 0.75rem 0;
  align-items: flex-start;
}

.chat-history .chat-message-body .reasoning-bar {
  width: 3px;
  border-radius: 999px;
  background: rgba(255,255,255,0.22);
  align-self: stretch;
  min-height: 1.2rem;
}

.chat-history .chat-message-body .reasoning-text {
  color: rgba(255,255,255,0.85);
  line-height: 1.45;
  white-space: pre-wrap;
}

.chat-history .chat-message-body .hidden { display: none; }

.chat-history .chat-message-body .collapse-head {
  display: flex;
  justify-content: normal;
  align-items: left;
  cursor: pointer;
  user-select: none;
  font-size: 0.7rem;
  color: var(--color-2);
  padding: 0.5rem 0.1rem 0.9rem;
  border-radius: 0.5rem;
  gap: 0.3rem;
  background: var(--background-2);
  transition: background-color 120ms ease, transform 120ms ease;
}

.chat-history .chat-message-body .collapse-head:hover {
  background-color: var(--background-3);
}

.chat-history .chat-message-body .collapse-head:hover .collapse-title {
  color: var(--primary);
}

.chat-history .chat-message-body .collapse-head:hover .collapse-icon {
  transform: translateY(-1px);
}

.chat-history .chat-message-body .collapse.is-open .collapse-icon {
  transform: rotate(180deg);
}

.chat-history .chat-message-body .collapse-icon {
  transition: transform 150ms ease;
}
