/* ------------------------------------------------------------------ */
/* Painéis                                                             */
/* ------------------------------------------------------------------ */

.panes {
  flex: 1;
  min-height: 0;
  display: flex;
  position: relative;
}

.chat-pane {
  flex: 1;
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.chat-pane:has(#empty-state:not([hidden])) {
  justify-content: center;
}

.chat-pane:has(#empty-state:not([hidden])) .thread-scroll {
  flex: 0 1 auto;
  width: 100%;
}

.thread-scroll {
  position: relative;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  /* Sem scroll-behavior: smooth: o streaming reescreve scrollTop a cada frame e
     cada reescrita reiniciaria uma animação, deixando o fim da resposta para trás. */
}

.thread {
  width: 100%;
  max-width: var(--chat-width);
  margin: 0 auto;
  padding: 34px 30px 22px;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.scroll-down {
  position: absolute;
  left: 50%;
  bottom: 128px;
  transform: translateX(-50%);
  z-index: 6;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: var(--panel);
  color: var(--text-soft);
  box-shadow: var(--shadow-soft);
}

.splitter {
  display: none;
  flex: 0 0 7px;
  width: 7px;
  cursor: col-resize;
  background: transparent;
  position: relative;
}

.splitter::after {
  content: "";
  position: absolute;
  inset: 0 3px;
  background: var(--line);
  transition: background 0.15s ease;
}

.splitter:hover::after,
.splitter.dragging::after {
  background: var(--accent-line);
}

