/* Signoff Evals: leaderboard explorer and pairing dashboards (insights v1.1). Square, hairline, matches field.css. */
.ix-logo { position: relative; display: inline-flex; align-items: center; justify-content: center; flex: none; overflow: hidden; color: #fff; font: 600 12px/1 var(--sans); }
.ix-logo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #fff; padding: 3px; }
.ix-loading { padding: 40px 0; }
.ix-empty { padding: 28px 20px; color: var(--text-3); font-size: 14px; }
.ix-tabs { margin-bottom: 20px; }
.ix-controls { display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: flex-end; margin-bottom: 18px; }
.ix-field { display: flex; flex-direction: column; gap: 6px; min-width: 170px; }
.ix-field > span { font: 400 10.5px/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--text-3); }
.ix-field select { min-height: 38px; padding: 7px 10px; border-radius: 0; }
.ix-metric select { border-color: var(--accent); color: var(--text); }
.ix-field.ix-inline { flex-direction: row; align-items: center; min-width: 0; }
.ix-field.ix-inline select { min-height: 32px; padding: 4px 8px; font-size: 13px; width: auto; }

.ix-tiles { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); margin-bottom: 18px; }
.ix-tile, .ix-kpi { display: flex; flex-direction: column; gap: 6px; padding: 16px 18px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--surface); color: var(--text); min-width: 0; }
a.ix-tile:hover { background: var(--hover); text-decoration: none; }
.ix-tl { font: 400 10.5px/1.3 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--text-3); }
.ix-tile b, .ix-kpi b { font: 600 24px/1.1 var(--display); letter-spacing: -.02em; color: var(--text); font-variant-numeric: tabular-nums; }
.ix-ts { font-size: 12.5px; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.ix-layout { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.ix-side { position: sticky; top: 76px; }
.ix-list { padding: 4px 0; }
.ix-thead, .ix-row { display: grid; grid-template-columns: 28px 30px minmax(150px, 1.1fr) minmax(0, 1.6fr) 128px; gap: 12px; align-items: center; padding: 0 16px; }
.ix-thead { height: 36px; border-bottom: 1px solid var(--line); font: 400 10.5px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--text-3); }
.ix-thead span:last-child { text-align: right; }
.ix-row { min-height: 66px; border-bottom: 1px solid var(--line-2); cursor: pointer; transition: background-color .2s var(--ease, ease); }
.ix-row:last-of-type { border-bottom: 0; }
.ix-row:hover, .ix-row.hot { background: var(--hover); }
.ix-row.sel { box-shadow: inset 2px 0 0 var(--accent); }
.ix-row.top .ix-rank { color: var(--accent); }
.ix-chk { display: flex; align-items: center; justify-content: center; cursor: pointer; }
.ix-chk input { width: 15px; height: 15px; accent-color: #C6FF3D; cursor: pointer; }
.ix-rank { font: 500 14px/1 var(--mono); color: var(--text-3); text-align: center; }
.ix-id { display: flex; align-items: center; gap: 10px; min-width: 0; }
.ix-id > span:last-child { display: flex; flex-direction: column; min-width: 0; }
.ix-id b { font-weight: 600; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ix-h { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--text-2); white-space: nowrap; }
.ix-h i { width: 8px; height: 8px; display: inline-block; flex: none; }
.ix-h.big { font-size: 14px; }
.ix-mid { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.ix-bar { display: flex; height: 10px; background: rgba(242,241,238,.06); overflow: hidden; }
.ix-bar i { display: block; height: 100%; transition: width .5s var(--ease, ease); }
.ix-bar.io i.in, .ix-legend i.in { background: var(--accent); }
.ix-bar.io i.out, .ix-legend i.out { background: #B3A0FF; }
.ix-meta { font-size: 12px; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ix-val { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; text-align: right; }
.ix-val b { font: 600 17px/1.1 var(--display); color: var(--text); font-variant-numeric: tabular-nums; white-space: nowrap; }
.ix-gap { font: 400 11px/1.2 var(--mono); color: var(--text-3); white-space: nowrap; }
.ix-gap.lead { color: var(--accent); letter-spacing: .1em; text-transform: uppercase; }
.ix-gap.na { opacity: .6; }
.ix-legend { display: flex; flex-wrap: wrap; gap: 8px 18px; padding: 12px 16px 8px; font-size: 12px; color: var(--text-2); border-top: 1px solid var(--line-2); }
.ix-legend span { display: inline-flex; align-items: center; gap: 6px; }
.ix-legend i { width: 10px; height: 10px; display: inline-block; }

.ix-chart-card { padding: 16px 16px 12px; }
.ix-card-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 14px; margin-bottom: 12px; }
.ix-card-head h3 { margin: 0; font-size: 17px; }
.ix-note { margin: 10px 0 0; font-size: 12.5px; color: var(--text-3); }
.ix-chart { position: relative; }
.ix-chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.ix-chart text { fill: var(--text-3); font: 10.5px var(--mono); }
.ix-chart text.axl { fill: var(--text-2); font-size: 11px; }
.ix-chart text.lbl { fill: var(--text); font: 11px var(--sans); paint-order: stroke; stroke: var(--bg); stroke-width: 3px; }
.ix-chart .gl { stroke: rgba(242,241,238,.08); stroke-width: 1; }
.ix-chart .front { fill: none; stroke: var(--accent); stroke-width: 1.4; stroke-dasharray: 5 4; opacity: .8; }
.ix-dot { cursor: pointer; transition: opacity .2s; }
.ix-dot circle { stroke: var(--bg); stroke-width: 2; transition: r .2s; }
.ix-dot.sel circle, .ix-dot.hot circle { stroke: #fff; stroke-width: 2.5; }
.ix-dot.dim { opacity: .25; }
.ix-rdot { stroke: var(--bg); stroke-width: 1.5; opacity: .9; cursor: pointer; }
.ix-rdot:hover { stroke: #fff; opacity: 1; }
.ix-tip { position: absolute; z-index: 5; width: 240px; padding: 10px 12px; background: rgba(8,9,11,.96); border: 1px solid var(--line); font-size: 12.5px; line-height: 1.5; color: var(--text-2); pointer-events: none; }
.ix-tip b { color: var(--text); }
.ix-keys { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 8px; font-size: 12px; color: var(--text-2); }
.ix-keys span { display: inline-flex; align-items: center; gap: 6px; }
.ix-keys i { width: 9px; height: 9px; display: inline-block; border-radius: 50%; }

.ix-tray { position: sticky; bottom: 14px; z-index: 6; display: flex; align-items: center; gap: 12px; margin: 16px 0 0; padding: 10px 14px; background: rgba(8,9,11,.94); border: 1px solid var(--accent); font-size: 13.5px; color: var(--text); }
.ix-tray span { margin-right: auto; }
.ix-cmp { margin-top: 18px; padding: 16px 0 0; }
.ix-cmp .ix-card-head { padding: 0 16px; }
.ix-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.ix-table th, .ix-table td { padding: 11px 14px; border-top: 1px solid var(--line-2); text-align: left; vertical-align: middle; white-space: nowrap; }
.ix-table thead th { border-top: 0; border-bottom: 1px solid var(--line); font: 400 10.5px/1.3 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--text-3); }
.ix-table tbody th { font-weight: 500; color: var(--text-2); }
.ix-table td b { color: var(--text); font-weight: 600; font-variant-numeric: tabular-nums; margin-right: 8px; }
.ix-table td.best { background: rgba(198,255,61,.06); }
.ix-colh { display: inline-flex; align-items: center; gap: 8px; color: var(--text); text-transform: none; letter-spacing: 0; font: 13px var(--sans); }
.ix-colh > span { display: flex; flex-direction: column; align-items: flex-start; }
.ix-mini { display: block; height: 4px; margin-top: 6px; background: rgba(242,241,238,.06); min-width: 90px; }
.ix-mini i { display: block; height: 100%; }
.ix-sort thead th { cursor: pointer; user-select: none; }
.ix-sort thead th.on { color: var(--accent); }
.ix-sort tbody tr.link { cursor: pointer; }
.ix-sort tbody tr:hover { background: var(--hover); }
.ix-pr { display: inline-flex; align-items: center; gap: 10px; }
.ix-pr .ix-mini { margin: 0; width: 80px; min-width: 80px; }
.ix-pill { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--text); }
.ix-pill::before { content: ""; width: 8px; height: 8px; background: var(--c); display: inline-block; }
.ix-more { margin: 12px 14px 14px; }

.ix-phead { align-items: center; }
.ix-ptitle { display: flex; align-items: center; gap: 16px; }
.ix-ptitle p { margin: 6px 0 0; }
.ix-switch { display: flex; flex-wrap: wrap; gap: 12px; }
.ix-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); margin-bottom: 18px; }
.ix-kpi.ix-hero b { color: var(--accent); font-size: 32px; }
.ix-kpi.warn b { color: var(--warn); }
.ix-grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-bottom: 18px; }
.ix-pad { padding: 16px 18px 18px; }
.ix-pad-h { padding: 16px 18px 0; }
.ix-tcard { margin-bottom: 18px; }
.ix-stack { display: flex; height: 26px; gap: 2px; background: rgba(242,241,238,.04); }
.ix-stack i { display: block; min-width: 3px; }
.ix-stack-legend { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 12px; font-size: 13px; color: var(--text-2); }
.ix-stack-legend span { display: inline-flex; align-items: center; gap: 6px; }
.ix-stack-legend i { width: 10px; height: 10px; display: inline-block; }
.ix-stack-legend b { color: var(--text); font-weight: 600; }
.ix-bars { display: flex; align-items: flex-end; gap: 2px; height: 210px; padding-top: 6px; border-bottom: 1px solid var(--line); }
.ix-bars a { flex: 1 1 0; height: 100%; display: flex; align-items: flex-end; min-width: 2px; }
.ix-bars a i { display: block; width: 100%; opacity: .85; transition: opacity .15s; }
.ix-bars a:hover i { opacity: 1; outline: 1px solid #fff; }
.ix-strip-ax { display: flex; justify-content: space-between; margin-top: 8px; font: 10.5px var(--mono); color: var(--text-3); }

@media (max-width: 1100px) {
  .ix-layout { grid-template-columns: 1fr; }
  .ix-side { position: static; }
  .ix-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .ix-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ix-grid2 { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .ix-field { min-width: calc(50% - 8px); flex: 1 1 calc(50% - 8px); }
  .ix-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ix-thead { display: none; }
  .ix-row { grid-template-columns: 22px 22px minmax(0, 1fr) auto; grid-template-areas: "c r id v" "m m m m"; padding: 10px 12px; gap: 8px 10px; }
  .ix-chk { grid-area: c; } .ix-rank { grid-area: r; } .ix-id { grid-area: id; } .ix-val { grid-area: v; } .ix-mid { grid-area: m; }
  .ix-meta { white-space: normal; }
  .ix-field.ix-inline { min-width: 0; flex: 1 1 100%; }
  .ix-field.ix-inline select { width: 100%; max-width: 100%; }
  .ix-card-head > * { max-width: 100%; }
  .ix-tile b, .ix-kpi b { font-size: 20px; }
  .ix-kpi.ix-hero b { font-size: 26px; }
}
