/* Inherits every colour from style.css so the two pages cannot drift
   apart; nothing here redefines a token. */

.log {
  border: 1px solid var(--rule);
  border-radius: 2px;
  padding: 0.75rem;
  min-height: 12rem;
  max-height: 55vh;
  overflow-y: auto;
  margin-bottom: 0.75rem;
}

/* ch, not rem: rem tracks the root font size and the
   prompts are monospace glyphs, so a rem gutter that fits "you>" at one font
   size wraps it at another. 5ch holds the longest prompt, 1ch separates it from
   the text. */
.turn {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  margin: 0 0 0.6rem;
  padding-left: 6ch;
  text-indent: -6ch;
}

.turn:last-child { margin-bottom: 0; }

/* Prompt sigil, not a label: it costs four characters,
   survives a narrow screen, and matches the terminal frame the site is in.
   Right-aligned so every '>' lands in one column whatever precedes it. */
.turn::before {
  display: inline-block;
  width: 5ch;
  padding-right: 1ch;
  text-align: right;
  text-indent: 0;
  color: var(--dim);
}
.turn.you::before { content: "you>"; color: var(--warm); }
.turn.them::before { content: ">"; color: var(--accent); }

.status {
  min-height: 1.65em;
  margin: 0.6rem 0 0;
  color: var(--dim);
  font-size: 0.9em;
}
.status.bad { color: var(--warm); }

.disclaimer {
  margin: 0.4rem 0 0;
  color: var(--dim);
  font-size: 0.85em;
}

/* Muted, same 6ch gutter as a turn, so it reads as
   margin notes against the conversation rather than as part of it. Empty until
   the agent runs something, which is why it carries no border or spacing of its
   own -- a question answered without reading anything leaves no trace here, and
   that absence is the thing worth seeing. */
.work { padding-left: 6ch; }
.work:not(:empty) { margin: 0 0 0.6rem; }

.work-line {
  display: flex;
  gap: 1ch;
  font-size: 0.85em;
  color: var(--dim);
}

.work-at {
  flex: none;
  width: 5ch;
  text-align: right;
}

.work-line code {
  overflow-wrap: anywhere;
  font: inherit;
}
