html body #root main.shell.page > .chat-layout:has(> .chat-live-thread) {
  height: auto;
  min-height: 0;
}

#root .chat-live-thread > header > div {
  flex: 1;
  min-width: 0;
  overflow-wrap: anywhere;
}

#root .chat-thread-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

#root .chat-thread-actions > :is(.chat-pin, .chat-clear) {
  min-height: 40px;
  margin: 0;
  padding: 8px 12px;
  border: 1px solid #7b9cb3;
  border-radius: 5px;
  background: #fff;
  color: #285470;
  font: inherit;
  line-height: 1.25;
  cursor: pointer;
}

#root .chat-thread-actions > :is(.chat-pin, .chat-clear):hover,
#root .chat-thread-actions > .chat-pin[aria-pressed="true"] {
  background: #eaf2f8;
}

html body #root .chat-live-thread > .chat-entries {
  box-sizing: border-box;
  flex: 0 1 auto;
  min-height: clamp(150px, 28vh, 240px);
  max-height: min(420px, 60vh);
  overflow-y: auto;
}

#root .chat-live-thread .chat-bubble {
  overflow-wrap: anywhere;
}

#root .chat-thread-options {
  margin: 8px 12px 12px;
  border: 1px solid #d5dfe6;
  border-radius: 6px;
}

#root .chat-thread-options > summary {
  padding: 12px;
  color: #285470;
  font-weight: 600;
  cursor: pointer;
}

html body #root .chat-list > .chat-clear-all {
  display: block;
  width: calc(100% - 24px);
  margin: 12px;
}
