/* gauntlet-history.css -- Gauntlet History (real + demo share this). Builds on demo.css tokens. */
.gh-tiles { margin-bottom: 20px; }
.gh-sub { font-size: 10px; color: var(--text2); margin-top: 2px; }
.gh-note { font-size: 12px; color: var(--text2); border: 1px dashed var(--border2); padding: 10px 14px; margin-bottom: 20px; }
.gh-funnel { display: flex; flex-direction: column; }
.gh-divider { font-size: 10px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; color: var(--text2); padding: 14px 0 6px; border-top: 1px solid var(--border); margin-top: 8px; }
.gh-gate { border-top: 1px solid var(--border); }
.gh-gate:first-child { border-top: 0; }
.gh-gate-btn { width: 100%; display: grid; grid-template-columns: 34px minmax(160px, 1.3fr) minmax(120px, 2fr) minmax(150px, auto); gap: 14px; align-items: center; background: none; border: 0; color: var(--text); text-align: left; padding: 12px 4px; min-height: 52px; cursor: pointer; }
.gh-gate-btn:hover { background: rgba(0,200,255,0.04); }
.gh-code { font-family: var(--mono); font-size: 12px; color: var(--accent); }
.gh-gname { display: flex; flex-direction: column; gap: 2px; }
.gh-gname b { color: #fff; font-size: 13px; font-weight: 600; }
.gh-rule { font-size: 11px; color: var(--text2); }
.gh-bar { height: 8px; background: rgba(245,158,11,0.55); border-radius: 4px; overflow: hidden; display: block; }
.gh-bar.adv { background: rgba(123,94,167,0.6); }
.gh-bar-pass { display: block; height: 100%; background: var(--green); }
.gh-count { font-family: var(--mono); font-size: 11px; color: var(--text2); text-align: right; }
.gh-pile { padding: 4px 4px 14px 48px; display: flex; flex-direction: column; gap: 6px; }
.gh-pile-row, .gh-bin-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 12px; }
.gh-pile-name { color: #fff; text-decoration: none; font-weight: 500; }
a.gh-pile-name:hover, .gh-run-name a:hover { color: var(--accent); }
.gh-pile-meta { font-family: var(--mono); font-size: 10px; color: var(--text2); }
.gh-pile-val { font-family: var(--mono); font-size: 11px; color: var(--text2); margin-left: auto; }
.gh-empty { font-size: 12px; color: var(--text2); padding: 6px 0; }
.gh-bins { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 0 20px; }
.gh-bin-row { justify-content: space-between; padding: 4px 0; border-bottom: 1px solid var(--border); }
.gh-table { min-width: 760px; }
.gh-run { display: grid; grid-template-columns: minmax(180px, 1.4fr) auto 110px 80px; gap: 14px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--border); font-size: 13px; }
.gh-run-name { display: flex; flex-direction: column; gap: 1px; }
.gh-run-name a { color: #fff; text-decoration: none; font-weight: 500; }
.gh-pips { display: flex; gap: 5px; align-items: center; }
.gh-pip { width: 11px; height: 11px; border-radius: 50%; display: inline-block; flex: none; border: 1.5px solid transparent; }
.gh-pip.adv { border-radius: 2px; }
.gh-pip.pass { background: var(--green); }
.gh-pip.fail { background: #fb923c; }
.gh-pip.flag { background: #8b9cf7; }
.gh-pip.meas { background: #2dd4bf; }
.gh-pip.nc { border-color: var(--grey); background: transparent; }
.gh-pip.err { background: #f472b6; }
.gh-pip.pend { border: 1.5px dashed var(--grey); background: transparent; }
.gh-verdict { font-family: var(--mono); font-size: 10px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase; }
.gh-verdict.v-leaderboard { color: var(--green); } .gh-verdict.v-graveyard { color: #fb923c; } .gh-verdict.v-needs_rerun { color: #f472b6; } .gh-verdict.v-recording { color: var(--text2); }
@media (max-width: 700px) {
  .gh-gate-btn { grid-template-columns: 30px 1fr; }
  .gh-gate-btn .gh-bar, .gh-gate-btn .gh-count { grid-column: 2; text-align: left; }
  .gh-pile { padding-left: 8px; }
}
@media (forced-colors: active) { .gh-pip.pass, .gh-pip.fail, .gh-pip.flag, .gh-pip.meas, .gh-pip.err { forced-color-adjust: none; } }
