body.inspector main { max-width: 1100px; }

.picker { display: flex; gap: 0.75rem; align-items: center; flex-wrap: wrap; }
.picker label { font-weight: 600; }
.picker select {
  font: inherit;
  padding: 0.45rem 0.6rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  max-width: 100%;
}
#view h1 { margin-top: 0; }
.picker:not([hidden]) ~ #view h1 { margin-top: 1.5rem; }

.stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 0.75rem; margin: 1rem 0; }
.stat {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.6rem 0.75rem 0.65rem;
  display: grid;
  gap: 0.1rem;
  align-content: start;
}
.stat .label { color: var(--muted); font-size: 0.78rem; font-weight: 500; white-space: nowrap; }
.stat strong { font-size: 1.35rem; line-height: 1.3; font-variant-numeric: tabular-nums; }
.stat .hint { color: var(--muted); font-size: 0.8rem; line-height: 1.35; }

/* Overview lanes */
/* One grid for every lane, so the labels take the width they need and the tracks line up. */
.overview { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 0.35rem 0.85rem; align-items: center; padding: 0.9rem 1.25rem 0.9rem 1rem; }
.lane, .axis { display: contents; }
.lane-label { color: var(--muted); font-size: 0.8rem; }
.lane-track { position: relative; height: 18px; background: var(--surface-2); border-radius: 4px; }
.axis .lane-track { background: none; height: 1.2rem; }
.seg { position: absolute; top: 3px; bottom: 3px; border-radius: 3px; background: var(--speak); }
.lane-candidate .seg { background: var(--you); }
.mark { position: absolute; top: 2px; width: 3px; height: 14px; margin-left: -1px; border-radius: 2px; background: var(--muted); }
.mark.note.sent { background: var(--accent); }
.mark.note.skipped { background: var(--warn); }
.mark.event.guard { background: var(--danger); }
.tick { position: absolute; font-size: 0.72rem; color: var(--muted); transform: translateX(-50%); font-variant-numeric: tabular-nums; }
.tick:first-child { transform: none; }
.tick.end { transform: translateX(-100%); }

/* Timeline */
.filters { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 0.75rem; font-size: 0.9rem; }
.timeline { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--border); }
.row { display: grid; grid-template-columns: 3.6rem 6.5rem 1fr; gap: 0.75rem; padding: 0.5rem 0 0.5rem 0.75rem; position: relative; }
.row::before {
  content: "";
  position: absolute;
  left: -6px;
  top: 0.95rem;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border);
}
.row.turn.interviewer::before { background: var(--speak); }
.row.turn.candidate::before { background: var(--you); }
.row.note::before { background: var(--accent); border-radius: 2px; }
.row.guard::before { background: var(--danger); }
.row time { color: var(--muted); font-variant-numeric: tabular-nums; font-size: 0.9rem; padding-top: 0.1rem; }
.row .who { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); padding-top: 0.2rem; }
.row .body p { margin: 0; }
.row.page .body, .row.guard .body { color: var(--muted); font-size: 0.9rem; }
.row.note .body {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.5rem 0.75rem;
}
.row .head { display: flex; gap: 0.5rem; align-items: center; }
.facts { color: var(--muted); font-size: 0.85rem; }
.facts.warn { color: var(--warn); }
.badge { font-size: 0.75rem; padding: 0.05rem 0.45rem; border-radius: 999px; background: var(--surface-2); }
.badge.sent { background: var(--accent); color: var(--accent-text); }
.badge.skipped { background: color-mix(in srgb, var(--warn) 85%, black); color: var(--surface); }
details summary { cursor: pointer; color: var(--muted); font-size: 0.85rem; }

table.calls { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
table.calls th, table.calls td { text-align: left; padding: 0.4rem 0.5rem; border-bottom: 1px solid var(--border); }
table.calls th { color: var(--muted); font-weight: 600; }

.prompt { margin: 1rem 0 0; padding-block: 0.85rem; }
.prompt > summary { margin: 0; }
.prompt[open] > summary { margin-bottom: 0.6rem; }
.prompt pre { white-space: pre-wrap; font-size: 0.85rem; color: var(--muted); }

@media (max-width: 640px) {
  .tick.minor { display: none; }
  .row { grid-template-columns: 3.2rem 1fr; }
  .row .who { grid-column: 2; grid-row: 1; }
  .row .body { grid-column: 1 / -1; }
}

.board-notes { list-style: none; padding: 0; display: grid; gap: 0.75rem; }
.board-note { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 0.75rem 1rem; display: grid; gap: 0.5rem; }
.board-note.discarded { opacity: 0.7; }
.empty { max-width: 640px; margin-top: 0; }
.empty h1 { font-size: 1.25rem; margin: 0 0 8px; }
.empty ul { padding-left: 1.2em; line-height: 1.6; }
.board-note.lookup { border-left: 4px solid var(--accent); }
.board-note-head { display: flex; gap: 0.75rem; flex-wrap: wrap; align-items: baseline; }
.board-note-text { white-space: pre-wrap; margin: 0; font: 0.85rem/1.45 ui-monospace, Menlo, Consolas, monospace; }
.board-note img { max-width: 100%; max-height: 260px; border: 1px solid var(--border); border-radius: 6px; background: #fff; }

/* Debrief guardrails */
.guardrails { list-style: none; padding: 0; margin: 0.5rem 0 1rem; display: grid; gap: 0.35rem; font-size: 0.9rem; }
.guardrails .badge { text-transform: uppercase; letter-spacing: 0.04em; font-size: 0.7rem; }
.guardrails .badge.code { background: var(--accent); color: var(--accent-text); }
#message:empty { display: none; }
