/* Chat flow: one 16px rhythm everywhere — between blocks (prose <-> tool
   runs) via the column gap and between consecutive tool rows via the group
   gap. Input padding cap rides the skeleton. */

.root {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 0;
  flex: 1 1 auto;
}

.scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding: 16px 24px;
}

/* Message column: 736px fixed width, centered on the same axis as the
   input box; the scroller itself stays full-bleed. */
.column {
  max-width: 736px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.toolGroup {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.callRow {
  border-radius: 6px;
}

/* Selection still sets data-selected for details linkage; no outline —
   tool rows match Think chrome (no selected ring). */

/* run_code sub-dispatch rows: indented under the parent row, left-edged so
   the code turn reads as one unit; each nested row is itself a .callRow. */
.subCalls {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 4px 0 2px 22px;
  padding-left: 8px;
  border-left: 1px solid var(--dsw-alias-border-l2);
}

/* Turn loader: one row of four 2.5px pixels (StateDot blue) chasing left to
   right with a stepped trail — flat keyframe holds, no tweening. Phase
   offsets come from per-rect animation-delay (index * -250ms) set inline
   by the component. */
.turnDots {
  align-self: flex-start;
  flex: none;
  display: flex;
  align-items: center;
  /* One message line box: the dots center inside the text line height. */
  height: 26px;
  /* Same pin as StateDot: ongoing blue has no alias token (business-primary
     is the 500 step, not this 450). */
  color: var(--dsw-static-deepseek-450);
}

.turnDotCell {
  fill: currentColor;
  opacity: 0.15;
  animation: dsh-turn-dots-chase 1s infinite;
}

@keyframes dsh-turn-dots-chase {
  0%, 24.9% { opacity: 1; }
  25%, 49.9% { opacity: 0.6; }
  50%, 74.9% { opacity: 0.35; }
  75%, 100% { opacity: 0.15; }
}

.hint {
  color: var(--dsw-alias-label-tertiary);
  font-size: 12px;
  line-height: 18px;
}

.openError {
  color: var(--dsw-alias-state-error-primary);
  font-size: 12px;
  line-height: 18px;
}

.older {
  display: flex;
  justify-content: center;
}

.older button {
  border: none;
  border-radius: 14px;
  padding: 4px 12px;
  font-size: 12px;
  color: var(--dsw-alias-label-secondary);
  background: var(--dsw-alias-interactive-bg-hover-solid);
  cursor: pointer;
}

.older button:disabled {
  cursor: default;
  opacity: 0.6;
}

/* Back-to-bottom: 34px circular icon button at the column's right edge. */
.toBottom {
  position: absolute;
  right: max(24px, calc((100% - 736px) / 2));
  bottom: 16px;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid var(--dsw-alias-border-l2);
  border-radius: 100px;
  color: var(--dsw-alias-label-primary);
  background: var(--dsw-alias-button-floating-fill);
  box-shadow: var(--dsw-shadow-lv2);
  cursor: pointer;
}

.toBottom:hover {
  background: var(--dsw-alias-button-floating-hover);
}
