/* /eval page -- reuses style.css + dashboard.css (panels, .badge, .kv,
   .cap-table). Only the score-vs-threshold cards are new. Nothing below
   12.5px (Sprint 15 D6 rule in style.css). */
.eval-verdict { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.25rem; }
.eval-verdict .big { font-size: var(--t-title, 22px); font-weight: 700; }
.eval-verdict .big.pass { color: var(--green); }
.eval-verdict .big.fail { color: var(--red); }
.badge.st-fail { background: rgba(239,90,90,0.12); color: var(--red); border-color: rgba(239,90,90,0.3); }

.metric-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 0.9rem; }
.metric-card { border: 1px solid var(--border); border-radius: 10px; padding: 1rem 1.1rem; background: rgba(255,255,255,0.015); }
.metric-card .m-label { color: var(--muted); font-size: 0.85rem; font-weight: 600; min-height: 2.4em; }
.metric-card .m-score { font-size: 2rem; font-weight: 700; margin: 0.35rem 0 0.1rem; }
.metric-card .m-threshold { color: var(--muted); font-size: 0.85rem; }
.metric-card .bar { position: relative; height: 8px; border-radius: 4px; background: #232838; margin: 0.7rem 0 0.6rem; }
.metric-card .bar .fill { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 4px; background: var(--green); }
.metric-card.failed .bar .fill { background: var(--red); }
.metric-card .bar .tick { position: absolute; top: -4px; bottom: -4px; width: 2px; background: var(--text); }
.eval-explain { line-height: 1.65; }
.eval-meta code, .eval-cases code { font-size: 0.85rem; overflow-wrap: anywhere; }
/* .cap-table is display:block + table-layout:fixed (dashboard.css overflow
   fix). This table instead sizes columns to content: the short id / badge /
   number columns stay on one line and the question column takes the rest
   and wraps, which is what keeps it readable at phone width. */
.eval-cases .cap-table { display: table; width: 100%; table-layout: auto; }
.eval-cases .cap-table th, .eval-cases .cap-table td:not(:nth-child(2)) { white-space: nowrap; overflow-wrap: normal; word-break: normal; }
.eval-cases .badge { white-space: nowrap; }
@media (max-width: 600px) {
  /* Reciprocal rank stays in eval-results.json; dropped here for width. */
  .eval-cases .cap-table th:nth-child(4), .eval-cases .cap-table td:nth-child(4) { display: none; }
  .eval-cases .cap-table th, .eval-cases .cap-table td { padding: 0.55rem 0.4rem; }
}
/* /triage/evidence reuses this sheet (metric cards, badges). */
.te-table { display: table; width: 100%; table-layout: auto; }
.te-table td div + div { margin-top: 0.35rem; }
.te-table .badge { white-space: nowrap; }
.te-table th { white-space: nowrap; overflow-wrap: normal; word-break: normal; }
.te-table a, .panel .hint a { color: var(--accent); }
.te-table td:nth-child(4) a { white-space: nowrap; overflow-wrap: normal; word-break: normal; }
.limits li { margin-bottom: 0.6rem; line-height: 1.55; }
@media (max-width: 600px) {
  .te-scenarios .te-table th:nth-child(3), .te-scenarios .te-table td:nth-child(3),
  .te-scenarios .te-table th:nth-child(4), .te-scenarios .te-table td:nth-child(4) { display: none; }
  .te-table th, .te-table td { padding: 0.55rem 0.4rem; }
  .te-table code { overflow-wrap: anywhere; word-break: break-all; font-size: 12.5px; }
  .te-scenarios .te-table td .hint { display: none; }
  .te-scenarios .te-table td:nth-child(5) { width: 48%; }
  .te-table th { white-space: normal; }
}
@media (max-width: 600px) {
  /* Agent-decision table: drop tool-call count at phone width (in the JSON). */
  .eval-cases .cap-table th:nth-child(4):nth-last-child(2), .eval-cases .cap-table td:nth-child(4):nth-last-child(2) { display: none; }
}
/* /ask-codebase/examples reuses this sheet. */
.ace-ev { border-top: 1px solid var(--border); padding: 0.75rem 0; }
.ace-ev a { color: var(--accent); overflow-wrap: anywhere; }
.ace-excerpt { margin: 0.5rem 0 0; padding: 0.6rem 0.75rem; background: #0d0f14; border: 1px solid var(--border); border-radius: 6px; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 13px; max-height: 180px; overflow-y: auto; }

/* Eval dashboard (suite cards, history, trend lines, reproduce box) */
.suite-card .m-extra { color: var(--muted); font-size: 0.85rem; margin: 0.25rem 0; }
.suite-meta { display: grid; grid-template-columns: auto 1fr; gap: 0.2rem 0.75rem; margin: 0.8rem 0 0; font-size: 0.85rem; }
.suite-meta dt { color: var(--muted); }
.suite-meta dd { margin: 0; overflow-wrap: anywhere; }
.trend-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 0.9rem; margin-bottom: 0.9rem; }
.trend-box { border: 1px solid var(--border); border-radius: 10px; padding: 0.8rem 1rem; }
.trend { width: 100%; height: auto; display: block; margin: 0.4rem 0; }
.trend-line { stroke: var(--accent); stroke-width: 2; }
.trend-thr { stroke: var(--muted); stroke-width: 1; stroke-dasharray: 4 3; }
.trend-dot { fill: var(--accent); }
.trend-dot.bad { fill: var(--red); }
.eval-history .cap-table { display: block; overflow-x: auto; table-layout: auto; white-space: nowrap; }
.repro-cmd { margin: 0 0 0.8rem; padding: 0.7rem 0.9rem; background: #0d0f14; border: 1px solid var(--border); border-radius: 6px; overflow-x: auto; font-size: 13px; }
#reproduce code { overflow-wrap: anywhere; word-break: break-all; }
