/* How the record looks, on the trace viewer and in the drawing page's trace pane: turns, each a column of messages
   from the person and the model, each message marked by its colour on the left. Each tool call is one box: its code,
   dark, over what the code gave back, light. Code and prompts are coloured by kind of token, with the colours below:
   one set on light boxes, and a lighter set on the dark boxes of tool calls. */
.turn {
  --keyword: #cf222e;
  --string: #0a3069;
  --number: #0550ae;
  --comment: #6e7781;
  --name: #8250df;
  --type: #953800;
  --heading: #0550ae;
  --quoted: #116329;
}
.call {
  --keyword: #ff7b72;
  --string: #a5d6ff;
  --number: #79c0ff;
  --comment: #8b949e;
  --name: #d2a8ff;
  --type: #ffa657;
  --heading: #79c0ff;
  --quoted: #7ee787;
}
.hljs-keyword,
.hljs-operator {
  color: var(--keyword);
}
.hljs-string,
.hljs-regexp {
  color: var(--string);
}
.hljs-number,
.hljs-literal,
.hljs-attr,
.hljs-property {
  color: var(--number);
}
.hljs-comment {
  color: var(--comment);
  font-style: italic;
}
.hljs-title,
.hljs-function {
  color: var(--name);
}
.hljs-type,
.hljs-built_in,
.hljs-params,
.hljs-bullet {
  color: var(--type);
}
.hljs-section,
.hljs-strong {
  color: var(--heading);
  font-weight: 600;
}
.hljs-code,
.hljs-emphasis {
  color: var(--quoted);
}
.turn {
  font-family: -apple-system, system-ui, sans-serif;
  font-size: 12px;
  line-height: 1.5;
  color: #24231f;
  margin-bottom: 28px;
}
.turn .head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 6px;
  margin-bottom: 10px;
  border-bottom: 1px solid #e4e1da;
  color: #8a867c;
  font-size: 12px;
}
.turn h3 {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  color: #24231f;
}
.msg {
  margin: 8px 0;
  padding: 8px 12px 10px;
  border: 1px solid #e4e1da;
  border-left: 3px solid var(--role);
  border-radius: 6px;
  background: #fff;
}
.msg.person {
  --role: #2c49c9;
}
.msg.claude {
  --role: #c96442;
}
.who {
  margin-bottom: 4px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--role);
}
.msg pre,
.prompt pre {
  margin: 4px 0;
  white-space: pre-wrap;
  word-break: break-word;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
  user-select: text;
  -webkit-user-select: text;
}
.msg .say {
  margin: 6px 0;
  font-size: 12px;
  user-select: text;
  -webkit-user-select: text;
}
.msg img {
  display: block;
  max-width: 100%;
  max-height: 160px;
  margin: 6px 0;
  border: 1px solid #e4e1da;
  border-radius: 4px;
  cursor: zoom-in;
}
.msg img.big {
  max-height: none;
  cursor: zoom-out;
}
.thinking {
  margin: 4px 0 8px;
  color: #6b675e;
}
.thinking summary {
  cursor: pointer;
  font-size: 12px;
  font-style: italic;
}
.prompt summary {
  cursor: pointer;
  font-size: 12px;
  color: #6b675e;
}
.prompt pre {
  padding-left: 10px;
  border-left: 2px solid #e4e1da;
}
.thinking pre {
  padding-left: 10px;
  border-left: 2px solid #e4e1da;
  font-family: inherit;
  font-style: italic;
}
.call {
  margin: 8px 0;
  border: 1px solid #d9d5cc;
  border-radius: 6px;
  overflow: hidden;
}
.tool {
  padding: 4px 10px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
  color: #b9b5ab;
  background: #2f2e2a;
}
.msg .call pre.code {
  margin: 0;
  padding: 8px 10px;
  color: #ecebe6;
  background: #22211e;
}
.result {
  padding: 6px 10px;
  background: #f6f5f1;
}
.result .label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #8a867c;
}
.result.error pre,
.bad {
  color: #b02a26;
}
.used {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 8px;
}
.used:empty {
  display: none;
}
.used span {
  padding: 1px 7px;
  border-radius: 999px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
  color: #6b675e;
  background: #f1efea;
}
.used .bad {
  background: #fbe9e8;
}
.hint {
  font-family: -apple-system, system-ui, sans-serif;
  font-size: 13px;
  color: #8a867c;
}
