/* Routine batch detail styles shared by the history page (v2/history.html) and the Top 10 Meme run page
   (meme-bench.html): proxy-timing note, platform cards, pair comparison block and the rounds table rendered by
   history-detail-table.js. Moved verbatim from the history page's inline <style>; that page links this file right
   before its <style> block (same cascade). The pair rules follow the rounds-table rules so that a pair block nested
   in a rounds-table cell (meme-bench rank detail row) keeps its own th/td styles. */
.detail-chain { margin-bottom: 16px; }
.detail-chain h4 { font-size: 13.5px; margin-bottom: 8px; }
.detail-degraded { color: #fbbf24; font-size: 12.5px; margin: 4px 0 8px; }
.detail-reverified { color: var(--muted); font-size: 12.5px; margin: 4px 0 8px; }
.plat-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; margin-bottom: 10px; }
.plat-card { border: 1px solid var(--line2); border-radius: var(--radius-sm); padding: 9px 12px; background: var(--panel2); }
.plat-card .pname { font-family: var(--font-display); font-weight: 700; font-size: 12.5px; margin-bottom: 4px; }
.plat-card .pm { font-size: 12px; color: var(--muted); line-height: 1.6; }
.plat-card .pm b { color: var(--text); font-family: var(--font-mono); font-weight: 600; }
.plat-card .pm small { color: var(--faint); }
.rounds-scroll { max-width: 100%; overflow-x: auto; contain: inline-size; }
.rounds-table { width: 100%; border-collapse: collapse; margin-top: 6px; }
.rounds-table th, .rounds-table td { text-align: left; padding: 7px 6px; border-bottom: 1px solid var(--line); font-size: 12px; white-space: nowrap; vertical-align: middle; }
.rounds-table td { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.rounds-table th { color: var(--faint); font-weight: 600; font-size: 10px; letter-spacing: 0.025em; }
.rounds-table .round-tx { max-width: 180px; overflow: hidden; text-overflow: ellipsis; }
.stack-row { display: flex; justify-content: space-between; gap: 8px; line-height: 1.55; white-space: nowrap; }
.stack-label { color: var(--muted); font-size: 11px; }
/* 2026-09-18 (user): bold the better same-round cross-platform metric (lower push / smaller on-chain t+N / higher quote);
   judged in history-view markRoundBests — ties/mismatched types (estimated t+N)/fewer than two comparable values are not marked;
   residual values on failed/reverted/unknown outcome rows are shown for diagnosis only and do not compete (SEP20-05).
   2026-09-20 (user): the in-cell fastest highlight was withdrawn — the only bolding is the same-round best.
   2026-10-07 (user 「加粗看不出」 "can't see the bold"): IBM Plex Mono only loads 400/600, so 700 falls back to 600 and
   is almost indistinguishable from regular white text — the best is now --win color + 600 (a loaded weight), recognizable at a glance.
   .push-diag = rows in a proxied batch with only the page clock (not compared with the proxy clock in the same round) — dimmed so they are not read as comparable values.
   2026-11-15: the label turns green only with its own .stack-row.metric-best — a whole-cell .metric-best (buy fallback with no arrival row) must not turn the Sell source label in the same cell green. */
.metric-best, .stack-row.metric-best .stack-label { color: var(--win); font-weight: 600; }
.stack-row.push-diag, .stack-row.push-diag .stack-label { color: var(--faint); }
/* Skew-anomalous round (alignment failure/dispatch skew beyond the fairness gate) — marked red in the cell; cross-platform comparison of that round is void */
.skew-bad { color: var(--red, #e5484d); font-weight: 600; }
/* 2026-09-18 (user): narrower 推送源 (push source) column — min-width 160→112 + tighter line spacing;
   content (short label + ms) does not wrap; overflow is handled by horizontal scrolling in .rounds-scroll as a fallback. */
.push-stack { min-width: 112px; }
/* 2026-11-15 (owner "optimize the layout in each row especially the okx which have 2 push sources"): the sources of a
   推送源 (push source) cell (and of each Buy / Sell side of it) sit side by side on one line (.push-slots) instead of one
   line per source — a paired cell is always two lines, and the Buy / Sell on the same line are the same height as on-chain and tx.
   Fixed-width slots: first slot = platform success push source (tg / dex / user-tx, label 4.3em — fits 7-char monospace
   `user-tx` cleanly under IBM Plex Mono / Menlo, so every platform's first value ends at one edge), following slots = chain-domain
   sources (fullnode / nodeone, label 4.9em); the value track has a minimum of 4em,
   right-aligned — it fits fmtMs faces of up to 6 characters (1000ms / 100.0s, i.e. every value below 1000 s); IBM Plex
   Mono and its proportional fallback font when not loaded (e.g. Noto Sans CJK) include a 600 bold, and these faces do
   not push the next slot's x. fmtMs has no upper bound (≥ 1000 s is 7+ characters, e.g. 1000000.0s):
   such a face only widens its own slot and shifts the following slots right as a whole; it never overlaps the next
   slot and is never truncated. em rather than ch: the two fonts have different character widths. When there is no
   platform source line, the first slot is a .push-slot-missing
   placeholder (the platform success push missing face 「— 类别」 "— category", or empty), and the chain-domain source
   stays at the second slot's x. The first and second slots of every row in the column share the same x, with no
   large gap between label and value.
   Longer labels (FOMO source names, （推断） "inferred") only widen their own slot; no wrapping, overflow is handled by
   horizontal scrolling in .rounds-scroll as a fallback. The fee cells' .stack-row are not
   affected (only .push-slots children). */
.push-slots { display: flex; flex-wrap: nowrap; column-gap: 14px; }
.push-slots > :is(.stack-row, .push-slot-missing) { display: flex; justify-content: flex-start; gap: 6px; line-height: 1.55; white-space: nowrap; }
.push-slots > * > .stack-label { min-width: 4.3em; }
.push-slots > * + * > .stack-label { min-width: 4.9em; }
.push-slots > * > :last-child { flex: none; min-width: 4em; text-align: right; }
/* Post-round sell (2026-11-15 owner "sell and buy with red and green"): in a round with a sell, the 推送源 / 上链 / tx
   (push source / on-chain / tx) cells pair into two lines —
   green Buy label + the original buy content (node/order/best mark unchanged), red Sell label + the sell value; the
   outcome cell pairs only when the sell did not fill (the sell outcome capsule
   uses that outcome's own .oc color, so the problem is visible at a glance). Labels have the same width; the two lines'
   values start at the same x and align the same way. A Sell value does not inherit the cell's same-round best color
   (.metric-best) or the buy error red text; only the better of the two same-round sells (markSellBests) carries .metric-best on the sell value itself. */
.side-row { display: flex; align-items: baseline; gap: 6px; line-height: 1.55; }
.side-row + .side-row { margin-top: 3px; }
.side-body { flex: 1 1 auto; }
/* When the tx cell is paired: the value area keeps .round-tx's 180px truncation (full value in the title), the whole cell width = label + 180px, and the table no longer squeezes that column */
.rounds-table .round-tx:has(> .side-row) { max-width: none; }
.rounds-table .round-tx .side-body { max-width: 180px; overflow: hidden; text-overflow: ellipsis; }
.side-tag { flex: none; box-sizing: border-box; width: 40px; padding: 0; border: 1px solid; border-radius: 0; font-size: 12px; line-height: 16px; font-weight: 600; text-align: center; }
.side-tag.buy { color: var(--v2-ok, #34d399); border-color: var(--v2-ok, #34d399); }
.side-tag.sell { color: var(--v2-bad, #f87171); border-color: var(--v2-bad, #f87171); }
.rounds-table .sell-row .side-body { color: var(--text); font-weight: 400; }
.rounds-table a.txl { white-space: nowrap; overflow-wrap: normal; word-break: normal; }
.oc { font-size: 11px; border-radius: 999px; padding: 1px 7px; border: 1px solid var(--line2); white-space: nowrap; display: inline-block; }
.oc.confirmed { color: #34d399; border-color: rgba(52, 211, 153, 0.4); }
.oc.failed, .oc.reverted { color: #f87171; border-color: rgba(248, 113, 113, 0.45); }
.oc.unknown { color: #fbbf24; border-color: rgba(251, 191, 36, 0.4); }
.oc.dry { color: var(--faint); }
a.txl { color: var(--gmgn); }
/* Two-platform summary / multi-platform matrix; horizontal scrolling happens only inside the matrix itself. */
.pairs-block { border: 1px solid var(--line2); border-radius: var(--radius-sm); background: var(--panel2); padding: 8px 12px; margin: 2px 0 10px; }
.pairs-title { font-size: 11.5px; color: var(--faint); margin-bottom: 5px; }
.pair-matrix-scroll { max-width: 100%; overflow-x: auto; contain: inline-size; }
.pair-matrix { width: max-content; min-width: 100%; border-collapse: collapse; font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.pair-matrix th, .pair-matrix td { padding: 7px 10px; border-bottom: 1px solid var(--line); text-align: center; white-space: nowrap; font-size: 12px; }
.pair-matrix th { color: var(--muted); font-weight: 600; }
.pair-matrix td { min-width: 108px; }
.pair-matrix .pair-corner, .pair-matrix .pair-rowhead { position: sticky; left: 0; z-index: 1; text-align: left; background: var(--panel2); }
.pair-matrix .pair-rowhead { min-width: 92px; }
.pair-matrix .pair-value b { display: block; color: var(--text); font-weight: 600; }
.pair-matrix .pair-value small { display: block; color: var(--faint); font-size: 11px; }
.pair-matrix .pair-missing, .pair-matrix-empty { color: var(--faint); }
.pair-two-summary { margin-top: 6px; font-size: 13px; }
.pair-display-only, .pair-small-sample, .pair-matrix-note { margin-top: 6px; color: var(--muted); font-size: 12px; }
