/* ============================================================================
   eval-session.css — the canonical eval grid surface (task × attempt grid, run
   history minis, policy/analysis tabs). Shared by 05-eval-session + guard-evals
   (+ explore-run drill-downs). Sourced verbatim so migration is pixel-identical.
   The detail sidebar lives in sidebar.css; cell colors in _theme.css (.cell.*).
   ============================================================================ */
.es { max-width: 760px; margin: 0 auto; padding: 26px 24px 80px; }
.es-head h1 { font-size: 26px; letter-spacing: -0.02em; }
.es-head .uuid { font: 500 12.5px var(--font-mono); color: var(--text-faint); margin-top: 3px; }

/* optional "← back" link above the title (embedder seam — explore-run drill-in) */
.back { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--text-muted); cursor: pointer; margin-bottom: 6px; }
.back:hover { color: var(--text); }

.title { text-align: center; font-size: 18px; font-weight: 600; margin: 6px 0 16px; }

/* run history mini matrices */
.runs { display: flex; gap: 14px; justify-content: center; align-items: flex-end; margin-bottom: 18px; }
.runcol { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.runcol .lab { font: 600 12px var(--font-mono); color: var(--text-faint); }
.runcol.sel .lab { color: var(--accent); }
.minigrid { display: grid; grid-template-columns: repeat(3, 6px); gap: 2px; padding: 5px; border-radius: 7px; border: 1px solid transparent; }
.runcol.sel .minigrid { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent-glow); }
.mc { width: 6px; height: 6px; border-radius: 1.5px; }
.mc.g { background: var(--pass); } .mc.r { background: var(--fail); }

/* tabs */
.tabs { display: flex; gap: 6px; justify-content: center; margin-bottom: 8px; }
.tab { font-size: 13px; font-weight: 500; padding: 7px 16px; border-radius: 8px; border: 1px solid var(--border); cursor: pointer; color: var(--text-muted); background: var(--panel); }
.tab.active { background: var(--panel-2); color: var(--text); border-color: var(--border-strong); }
.tab.disabled { opacity: .45; cursor: default; }
.pager { display:flex;align-items:center;gap:8px; }
.pager .arw { cursor:pointer;color:var(--text-faint);padding:0 4px; }

.scoreline { display: flex; gap: 12px; align-items: baseline; justify-content: center; font: 500 12.5px var(--font-mono); margin: 12px 0 24px; }
.scoreline .pct-r { color: var(--fail); } .scoreline .pct-g { color: var(--pass); } .scoreline .pct-a { color: var(--warn); }
.scoreline .toks { color: var(--text-faint); }
.scoreline .toks b { font-weight: 600; color: var(--text-muted); }

/* tasks table — header numbers + row squares share the same 3-col grid so they line up */
/* "Attempt" label sits stacked ABOVE the 1·2·3 column heads, centered over the
   squares (the .acol column matches the 96px .cells column below). */
.thead { display: grid; grid-template-columns: 1fr 96px; align-items: start; gap: 0 16px; padding: 0 12px 10px; }
.thead .l { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--text-faint); }
.thead .acol { display: flex; flex-direction: column; align-items: center; gap: 5px; }
.thead .albl { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--text-faint); }
.thead .numgrid { display: grid; grid-template-columns: repeat(3, 24px); gap: 12px; }
.thead .numgrid b { width: 24px; text-align: center; font: 500 11px var(--font-mono); color: var(--text-muted); }

.task { display: grid; grid-template-columns: 1fr 96px; align-items: center; gap: 16px; padding: 3px 12px; border-radius: 8px; cursor: pointer; transition: background .12s; }
.task:nth-child(odd) { background: rgba(255,255,255,.018); }
.task:hover { background: rgba(255,255,255,.04); }
/* task id sits INLINE before the question text (not stacked above it) */
.task .q { display: flex; gap: 9px; align-items: baseline; font-size: 13.5px; line-height: 1.35; }
.task .q .id { color: var(--text-faint); font: 600 11px var(--font-mono); flex-shrink: 0; }
.task .cells { display: grid; grid-template-columns: repeat(3, 24px); gap: 12px; }
.task .cells .cell { width: 24px; height: 24px; }
.task .cells .cell.sel { box-shadow: 0 0 0 2px var(--accent); }

.panel-box { display:none; padding: 18px; margin-top: 8px; }
.panel-box.show { display:block; animation: fadeUp .25s; }
.panel-box h4 { font-size: 13px; margin: 14px 0 6px; color: var(--accent); }
.panel-box h4:first-child { margin-top: 0; }
.panel-box p, .panel-box li { font-size: 13px; color: var(--text-muted); line-height: 1.6; }
.panel-box ul { padding-left: 18px; margin: 4px 0; }
.panel-box code, .panel-box .mono { font-family: var(--font-mono); font-size: 12px; color: var(--text); background: var(--panel-2); padding: 1px 6px; border-radius: 5px; }
.panel-box .fail-tag { color: var(--fail); } .panel-box .pass-tag { color: var(--pass); }
