/* Local additions on top of the SWE-Lego-Live eval dashboard stylesheet.
   styles.css is kept a verbatim copy so it can be re-synced from upstream;
   anything specific to the training-data views belongs here. */

/* Tool names here are fully-qualified MCP identifiers such as
   mcp__lean-lsp__lean_diagnostic_messages, which the eval dashboard's 140px
   label column truncates to an indistinguishable prefix. */
.bar-chart.wide .bar { grid-template-columns: minmax(0, 320px) 1fr 70px; }

@media (max-width: 1400px) {
  .bar-chart.wide .bar { grid-template-columns: minmax(0, 200px) 1fr 70px; }
}

/* Per-record expander in the sampled-conversations table. */
.row-toggle {
  width: 22px;
  height: 22px;
  padding: 0;
  line-height: 1;
  border-radius: 5px;
  background: transparent;
  color: var(--c-fg-mute);
  border: 1px solid var(--c-border);
  cursor: pointer;
  font-size: 13px;
  font-family: var(--font-mono);
}
.row-toggle:hover { color: var(--c-fg); border-color: var(--c-accent-border); }
.row-toggle.on {
  background: var(--c-accent-soft);
  border-color: var(--c-accent-border);
  color: #c7d2fe;
}
[data-theme="light"] .row-toggle.on { color: var(--c-accent); }

table.tbl tr.sample-detail:hover { background: none; }
table.tbl tr.sample-detail > td {
  padding: 0 10px 14px;
  border-bottom: 1px solid var(--c-border);
  box-shadow: inset 3px 0 0 var(--c-accent);
}
.sample-detail-body { display: flex; flex-direction: column; }
.detail-label { padding: 12px 0 6px; }
/* Long tool-call sequences scroll inside the row instead of pushing the rest
   of the table off-screen. */
.sample-calls {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 540px;
  overflow-y: auto;
  padding-right: 6px;
}
/* Without this the capped height makes flex shrink every child, squashing
   collapsed observation rows to a few pixels. */
.sample-calls > * { flex-shrink: 0; }
.detail-footer { margin: 12px 0 0; }
/* Collapsed observations sit on the same panel colour as their container, so
   tint them with the green already used for observations elsewhere. */
.preface-card.preface-obs { border-color: #10b98155; background: #10b9810a; }

.toggle-hint::after { content: "click to expand"; }
.preface-card[open] > summary .toggle-hint::after { content: "click to collapse"; }
