/* /ops/ console. Page-level rules are scoped to #ops; the two animation clocks live on :root
   because the health border, the row pulse and the reduced-motion override all read them. */
:root{--bt:.7054s}

/* ---- panel shell: the console sits on the site page as a dark surface ---- */
#ops{background:#080D18;border:1px solid #1E2A42;border-radius:16px;padding:18px 20px 16px;color:#E6EDF7;font-size:13px;overflow:hidden}
#ops .opsbar{display:flex;align-items:center;gap:10px;flex-wrap:wrap;padding-bottom:12px;margin-bottom:14px;border-bottom:1px solid #1E2A42}
#ops .opsbar .grow{flex:1 1 auto}
#ops .beta{font-size:9px;font-weight:800;letter-spacing:.14em;color:#B1FC03;background:rgba(177,252,3,.1);border:1px solid rgba(177,252,3,.32);border-radius:5px;padding:4px 8px}
#ops .upd{font-size:9.5px;color:#5E6E88;font-weight:600;letter-spacing:.03em}
#ops .opsload{padding:40px 10px;text-align:center;color:#6C7C96;font-size:12px;font-weight:600}
#ops .chip{font-size:9.5px;letter-spacing:.1em;color:#8B9BB0;border:1px solid #23324C;border-radius:5px;padding:4px 8px;font-weight:600}
#ops .chip.chain{display:inline-flex;align-items:center;gap:8px;padding:3px 10px 3px 3px}
#ops .chip.chain img{width:20px;height:20px;display:block;border-radius:4px}
#ops .chip.chain span{letter-spacing:.11em;color:#8B9BB0}
#ops .live{display:flex;align-items:center;gap:6px;font-size:11px;color:#5BE59A;font-weight:700;letter-spacing:.06em}
#ops .dot{width:7px;height:7px;border-radius:50%;background:#3ED47F;box-shadow:0 0 0 3px rgba(62,212,127,.16)}

/* ---- stat tiles ---- */
#ops .sp-head{display:flex;align-items:center;justify-content:space-between;margin:16px 0 8px}
#ops .sp-title{font-size:9.5px;letter-spacing:.13em;color:#7C8CA6;font-weight:800}
#ops .stats{display:grid;grid-template-columns:1fr .8fr 1.2fr .9fr;gap:12px;margin:0 0 15px}
#ops .stat{background:linear-gradient(160deg,#111A2B,#0D1524);border:1px solid #1E2A42;border-radius:11px;padding:12px 15px 11px}
#ops .slabel{font-size:9.5px;letter-spacing:.13em;color:#7C8CA6;font-weight:700;margin-bottom:6px}
#ops .sval{font-size:40px;font-weight:800;letter-spacing:-1.4px;line-height:1;font-variant-numeric:tabular-nums}
#ops .sval small{font-size:14px;font-weight:600;color:#8B9BB0;letter-spacing:0;margin-left:3px}
#ops .ssub{margin-top:6px;font-size:10px;color:#6C7C96;font-weight:500}
#ops .up{color:#3ED47F}
#ops .stats2{margin:-4px 0 13px}
#ops .stats2 .sval{font-size:27px}

/* ---- slashing params strip ---- */
#ops .pstrip{display:flex;align-items:center;gap:9px;margin:-3px 0 13px;padding:7px 13px;background:#0B1220;border:1px solid #1A2740;border-radius:7px;font-size:9.5px;color:#7C8CA6;font-weight:600;letter-spacing:.02em}
#ops .pstrip .pl{font-size:8.2px;letter-spacing:.13em;color:#5E6E88;font-weight:800;border-right:1px solid #1E2A42;padding-right:11px;margin-right:2px}
#ops .pstrip b{color:#C7D3E4;font-weight:800;font-variant-numeric:tabular-nums}
#ops .pstrip .sep{color:#2C3C58;font-weight:800}
#ops .pstrip .learn{margin-left:auto;display:inline-flex;align-items:center;gap:4px;color:#8FB3EF;text-decoration:none;font-weight:700;font-size:9px;letter-spacing:.02em;border-bottom:1px solid rgba(46,74,120,.75);padding-bottom:1px;transition:color .12s ease,border-color .12s ease}
#ops .pstrip .learn svg{width:9px;height:9px;flex:0 0 auto}
#ops .pstrip .learn:hover,#ops .pstrip .learn:focus-visible{color:#CFE0FF;border-color:#8FB3EF;outline:none}
#ops .pdim{color:#5E6E88}

/* ---- section header ---- */
#ops .sec{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:8px;flex-wrap:wrap}
#ops .secleft{display:flex;flex-direction:column;gap:3px;min-width:0;flex:1 1 320px}
#ops .stitle{font-size:11.5px;font-weight:700;letter-spacing:.05em;color:#C7D3E4}
#ops .snote{font-size:8.4px;color:#5E6E88;font-weight:600;letter-spacing:.01em;line-height:1.45}
#ops .snote b{color:#8B9BB0;font-weight:800}
#ops .legend{display:flex;gap:11px;font-size:9px;color:#7C8CA6;font-weight:600;align-items:center;flex-wrap:wrap;margin-top:5px}
#ops .legend span{display:flex;align-items:center;gap:4px}

/* ---- the LED history strip (now only inside the detail card) ---- */
#ops .leds{display:flex;gap:2px;min-width:0;margin-top:4px}
#ops .led{display:block;flex:1 1 0;min-width:0;height:12px;border-radius:1.5px;background:#162033;border:1px solid #24314A}
#ops .legend .led{width:8px;height:8px;flex:0 0 auto}
#ops .led.l-g{background:#3ED47F;border-color:#3ED47F;box-shadow:0 0 4px rgba(62,212,127,.5)}
#ops .led.l-a{background:#F2B33D;border-color:#F2B33D;box-shadow:0 0 4px rgba(242,179,61,.55)}
#ops .led.l-r{background:#FF5A5A;border-color:#FF5A5A;box-shadow:0 0 5px rgba(255,90,90,.6)}

/* ---- chain-health state: colour is never the only cue ---- */
#ops .hstate{display:none;align-items:center;gap:5px;font-weight:800;letter-spacing:.1em;font-size:8.2px;padding:3px 7px;border-radius:999px}
@supports selector(:has(*)){
  #ops:not(:has(#validator-grid .v.band-warn, #validator-grid .v.band-crit)) .hstate.hs-ok{display:inline-flex}
  #ops:has(#validator-grid .v.band-warn):not(:has(#validator-grid .v.band-crit)) .hstate.hs-warn{display:inline-flex}
  #ops:has(#validator-grid .v.band-crit) .hstate.hs-crit{display:inline-flex}
}
#ops .hs-ok{color:#B1FC03;background:rgba(177,252,3,.09)}
#ops .hs-warn{color:#F2B33D;background:rgba(242,179,61,.11)}
#ops .hs-crit{color:#FF8585;background:rgba(217,106,106,.13)}

/* the block-time tile carries the dim TX-green edge only while the chain is fully healthy */
#ops .stat-time{border-color:#1E2A42}
@supports selector(:has(*)){
  #ops:not(:has(#validator-grid .v.band-warn, #validator-grid .v.band-crit)) .stat-time{border-color:#54780A}
}

/* ===== THE LEADERBOARD =====
   One row per validator: rank, avatar, name, jail-allowance meter. Everything else moved to the
   detail card, so 52 validators fit the page instead of running down it.
   Row height is driven by --rh per breakpoint: the goal is a grid under ~420px at 1280 wide, which
   needs 3 columns x 18 rows to stay short, and 4 columns x 13 rows on the widest screens. */
/* the outer .grid is the frame that breathes (the chain-health border); #validator-grid inside it is
   a plain grid, so there is exactly one frame and the rows get every pixel that is not padding */
#ops .grid{position:relative;border:1px solid #1C2840;border-radius:14px;padding:8px;background:#0A1120;transition:border-color .25s ease}
/* --cols is the single source of truth for "how many columns is the grid on right now": each
   breakpoint block below sets it alongside its grid-template-columns, and ops.js reads it to work
   out ceil(count / cols) row tracks. It has to be a custom property rather than a measurement of
   gridTemplateColumns, because that resolved list also reports the IMPLICIT tracks that
   grid-auto-flow:column already created -- measuring it made the row count feed back on itself and
   the layout stuck at the previous breakpoint's column count after a resize. */
#ops #validator-grid{display:grid;grid-template-columns:minmax(0,1fr);gap:3px;padding:6px;--rh:34px;--cols:1;align-content:start}
/* Column-major placement, driven entirely from data attributes set in ops.js (no inline styles: the
   CSP forbids them). [data-flow="col"] fills one column at a time; [data-rows="n"] pins the exact row
   count ceil(count / columns-for-this-breakpoint) so every column is full and the last one is simply
   shorter, instead of the ragged hole an auto-placed column-major grid leaves when the count does not
   divide. One column needs no ladder: natural flow is already top-to-bottom 1..n. */
#ops #validator-grid[data-flow="col"]{grid-auto-flow:column}
#ops #validator-grid[data-flow="row"]{grid-auto-flow:row}
#ops #validator-grid[data-rows="1"]{grid-template-rows:repeat(1,auto)}
#ops #validator-grid[data-rows="2"]{grid-template-rows:repeat(2,auto)}
#ops #validator-grid[data-rows="3"]{grid-template-rows:repeat(3,auto)}
#ops #validator-grid[data-rows="4"]{grid-template-rows:repeat(4,auto)}
#ops #validator-grid[data-rows="5"]{grid-template-rows:repeat(5,auto)}
#ops #validator-grid[data-rows="6"]{grid-template-rows:repeat(6,auto)}
#ops #validator-grid[data-rows="7"]{grid-template-rows:repeat(7,auto)}
#ops #validator-grid[data-rows="8"]{grid-template-rows:repeat(8,auto)}
#ops #validator-grid[data-rows="9"]{grid-template-rows:repeat(9,auto)}
#ops #validator-grid[data-rows="10"]{grid-template-rows:repeat(10,auto)}
#ops #validator-grid[data-rows="11"]{grid-template-rows:repeat(11,auto)}
#ops #validator-grid[data-rows="12"]{grid-template-rows:repeat(12,auto)}
#ops #validator-grid[data-rows="13"]{grid-template-rows:repeat(13,auto)}
#ops #validator-grid[data-rows="14"]{grid-template-rows:repeat(14,auto)}
#ops #validator-grid[data-rows="15"]{grid-template-rows:repeat(15,auto)}
#ops #validator-grid[data-rows="16"]{grid-template-rows:repeat(16,auto)}
#ops #validator-grid[data-rows="17"]{grid-template-rows:repeat(17,auto)}
#ops #validator-grid[data-rows="18"]{grid-template-rows:repeat(18,auto)}
#ops #validator-grid[data-rows="19"]{grid-template-rows:repeat(19,auto)}
#ops #validator-grid[data-rows="20"]{grid-template-rows:repeat(20,auto)}
#ops #validator-grid[data-rows="21"]{grid-template-rows:repeat(21,auto)}
#ops #validator-grid[data-rows="22"]{grid-template-rows:repeat(22,auto)}
#ops #validator-grid[data-rows="23"]{grid-template-rows:repeat(23,auto)}
#ops #validator-grid[data-rows="24"]{grid-template-rows:repeat(24,auto)}
#ops #validator-grid[data-rows="25"]{grid-template-rows:repeat(25,auto)}
#ops #validator-grid[data-rows="26"]{grid-template-rows:repeat(26,auto)}
#ops #validator-grid[data-rows="27"]{grid-template-rows:repeat(27,auto)}
#ops #validator-grid[data-rows="28"]{grid-template-rows:repeat(28,auto)}
#ops #validator-grid[data-rows="29"]{grid-template-rows:repeat(29,auto)}
#ops #validator-grid[data-rows="30"]{grid-template-rows:repeat(30,auto)}
#ops #validator-grid[data-rows="31"]{grid-template-rows:repeat(31,auto)}
#ops #validator-grid[data-rows="32"]{grid-template-rows:repeat(32,auto)}
#ops #validator-grid[data-rows="33"]{grid-template-rows:repeat(33,auto)}
#ops #validator-grid[data-rows="34"]{grid-template-rows:repeat(34,auto)}
#ops #validator-grid[data-rows="35"]{grid-template-rows:repeat(35,auto)}
#ops #validator-grid[data-rows="36"]{grid-template-rows:repeat(36,auto)}
#ops #validator-grid[data-rows="37"]{grid-template-rows:repeat(37,auto)}
#ops #validator-grid[data-rows="38"]{grid-template-rows:repeat(38,auto)}
#ops #validator-grid[data-rows="39"]{grid-template-rows:repeat(39,auto)}
#ops #validator-grid[data-rows="40"]{grid-template-rows:repeat(40,auto)}

#ops .v{position:relative;display:grid;grid-template-columns:24px 20px minmax(0,1fr) 46px 38px 48px;align-items:center;gap:7px;
  width:100%;height:var(--rh);min-width:0;margin:0;padding:0 9px;font-family:inherit;text-align:left;
  background:#0F1826;border:1px solid #1B2740;border-radius:6px;color:inherit;cursor:pointer;
  transition:border-color .12s ease,background .12s ease}
#ops .v:hover,#ops .v:focus-visible{background:#12203A;border-color:#3A5378;outline:none}
#ops .v:focus-visible{box-shadow:0 0 0 2px rgba(76,123,217,.55)}
#ops .v.warn{background:#171307;border-color:#5A4310}
#ops .v.warn:hover,#ops .v.warn:focus-visible{background:#1D1808;border-color:#F2B33D}
#ops .v.crit{background:#180E11;border-color:#7E3030}
#ops .v.crit:hover,#ops .v.crit:focus-visible{background:#1E1013;border-color:#FF6B6B}
#ops .v[aria-expanded="true"]{border-color:#4C7BD9;background:#13223C}
#ops .v.warn[aria-expanded="true"]{border-color:#F2B33D}
#ops .v.crit[aria-expanded="true"]{border-color:#FF6B6B}

#ops .vrk{font-size:10.5px;font-weight:800;color:#63738D;font-variant-numeric:tabular-nums;text-align:right;line-height:1}
#ops .v:hover .vrk,#ops .v:focus-visible .vrk,#ops .v[aria-expanded="true"] .vrk{color:#CFE0FF}
#ops .av{width:18px;height:18px;border-radius:50%;object-fit:cover;flex:0 0 auto;background:#1B263B;border:1px solid #2A3A55;display:block}
#ops .avph{display:flex;align-items:center;justify-content:center;font-size:7px;font-weight:800;color:#9FB4D4;letter-spacing:.02em;line-height:1}
#ops .vnwrap{min-width:0;overflow:hidden;display:flex;flex-direction:column;justify-content:center;gap:1px}
#ops .vn{font-size:11.5px;font-weight:700;color:#DCE6F5;line-height:1.2;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
/* voting-power share: its own fixed column so the decimal points line up down every column.
   Muted on purpose — it is context for the rank, not a warning, so it must not compete with the
   jail meter beside it. tabular-nums is what actually makes the decimals line up. */
#ops .vpp{font-size:10px;font-weight:700;color:#7E8FA8;font-variant-numeric:tabular-nums;text-align:right;
  white-space:nowrap;letter-spacing:-.1px;min-width:0}
#ops .v:hover .vpp,#ops .v:focus-visible .vpp,#ops .v[aria-expanded="true"] .vpp{color:#A9BDDA}
/* Stake + delegator metric stacks: amount on top, 24h % under it. Dedicated columns from 800px;
   below that both sit under the name (.vsub) so the dense 6-col phone row stays usable.
   Amounts are plain white (no pill) so they stay readable next to lime/red % without crowding. */
#ops .vmet{display:flex;flex-direction:column;align-items:flex-end;justify-content:center;gap:0;min-width:0;line-height:1.05}
#ops .vmet-v{font-size:10px;font-weight:700;color:#FFFFFF;font-variant-numeric:tabular-nums;text-align:right;
  white-space:nowrap;letter-spacing:-.1px;min-width:0;line-height:1.1}
#ops .vmet-d{font-size:7.6px;font-weight:800;font-variant-numeric:tabular-nums;letter-spacing:-.15px;line-height:1.05;
  white-space:nowrap;color:#6E7F99}
#ops .vmet-d.up{color:#3ED47F}
#ops .vmet-d.dn{color:#FF6B6B}
#ops .vmet-d.na{color:#5E6E88;opacity:.75}
#ops .v:hover .vmet-v,#ops .v:focus-visible .vmet-v,#ops .v[aria-expanded="true"] .vmet-v{color:#FFFFFF}
#ops .vst,#ops .vdg{min-width:0}
#ops .vsub{display:none;align-items:center;gap:4px;min-width:0;overflow:hidden;white-space:nowrap}
#ops .vsub .vst-under,#ops .vsub .vdg-under{display:inline-flex;align-items:baseline;gap:3px;min-width:0}
#ops .vsub .vmet-v{font-size:9px;font-weight:700;color:#FFFFFF;text-align:left}
#ops .vsub .vmet-d{font-size:8px}
#ops .vsub-sep{color:#3A4A64;font-weight:800;font-size:9px;flex:0 0 auto}
#ops .vst-col,#ops .vdg-col{display:none}

/* status meter: jail allowance used, 0-100% of the 50,000 missed-block allowance.
   The printed percentage was removed so the name can use that width; colour of the
   track/fill (and the row band) is the on-row indicator. Exact % is in the detail card. */
#ops .vm{display:flex;align-items:center;min-width:0}
/* Meter colour. A healthy validator sits at a fraction of a percent of its 50,000 missed-block
   allowance, so an all-grey track with a 1px green sliver read as a dead/empty bar. The TRACK now
   carries a low-opacity tint of the row's own band colour and the FILL keeps a 3px floor, so the
   meter is legible as "green, essentially nothing used" at 0.01%. Track tint, fill colour and the
   fill floor all come from classes/attributes: CSP-safe. */
#ops .vmt{position:relative;display:block;flex:1 1 auto;min-width:0;height:5px;border-radius:999px;
  background:rgba(61,201,128,.16);border:1px solid rgba(61,201,128,.30);overflow:hidden}
#ops .vmf{display:block;height:100%;width:0;min-width:3px;background:#4BE08C;border-radius:999px;
  box-shadow:0 0 5px rgba(75,224,140,.55),0 0 1px rgba(75,224,140,.9)}
/* no counter in this sample: the track stays neutral and no pip is drawn, so "--" never fakes a 0% */
#ops .vmf.vmf-na{min-width:0;background:transparent;box-shadow:none}
#ops .vmf.vmf-z{min-width:0}
#ops .v.warn .vmt{background:rgba(242,179,61,.15);border-color:rgba(242,179,61,.32)}
#ops .v.warn .vmf{background:#F5BC55;box-shadow:0 0 5px rgba(242,179,61,.45)}
#ops .v.crit .vmt{background:rgba(255,90,90,.17);border-color:rgba(255,90,90,.38)}
#ops .v.crit .vmf{background:#FF6B6B;box-shadow:0 0 5px rgba(255,107,107,.5)}
/* .vmp is no longer rendered on the row; keep the type hidden if a stale cache still emits it */
#ops .vmp{display:none}

#ops .foot{display:flex;justify-content:space-between;gap:20px;margin-top:12px;padding-top:10px;border-top:1px solid #1E2A42;font-size:9px;color:#5E6E88;font-weight:600;letter-spacing:.03em;flex-wrap:wrap}
#ops .foot a{color:#CFE0FF;text-decoration:none;border-bottom:1px solid #2E4A78;white-space:nowrap}


/* ---- meter fill widths ----
   Every fill is picked by data-f (0-100, whole percent) instead of a style attribute, so nothing in
   the DOM carries an inline style and the CSP needs no style-src 'unsafe-inline'. The bar is ~33px
   wide, so a 1% step is a third of a pixel: the ladder is as precise as the bar can show. The
   exact percentage lives in the row title and the detail card, not beside the bar. */
#ops .vmf[data-f="0"]{width:0%}
#ops .vmf[data-f="1"]{width:1%}
#ops .vmf[data-f="2"]{width:2%}
#ops .vmf[data-f="3"]{width:3%}
#ops .vmf[data-f="4"]{width:4%}
#ops .vmf[data-f="5"]{width:5%}
#ops .vmf[data-f="6"]{width:6%}
#ops .vmf[data-f="7"]{width:7%}
#ops .vmf[data-f="8"]{width:8%}
#ops .vmf[data-f="9"]{width:9%}
#ops .vmf[data-f="10"]{width:10%}
#ops .vmf[data-f="11"]{width:11%}
#ops .vmf[data-f="12"]{width:12%}
#ops .vmf[data-f="13"]{width:13%}
#ops .vmf[data-f="14"]{width:14%}
#ops .vmf[data-f="15"]{width:15%}
#ops .vmf[data-f="16"]{width:16%}
#ops .vmf[data-f="17"]{width:17%}
#ops .vmf[data-f="18"]{width:18%}
#ops .vmf[data-f="19"]{width:19%}
#ops .vmf[data-f="20"]{width:20%}
#ops .vmf[data-f="21"]{width:21%}
#ops .vmf[data-f="22"]{width:22%}
#ops .vmf[data-f="23"]{width:23%}
#ops .vmf[data-f="24"]{width:24%}
#ops .vmf[data-f="25"]{width:25%}
#ops .vmf[data-f="26"]{width:26%}
#ops .vmf[data-f="27"]{width:27%}
#ops .vmf[data-f="28"]{width:28%}
#ops .vmf[data-f="29"]{width:29%}
#ops .vmf[data-f="30"]{width:30%}
#ops .vmf[data-f="31"]{width:31%}
#ops .vmf[data-f="32"]{width:32%}
#ops .vmf[data-f="33"]{width:33%}
#ops .vmf[data-f="34"]{width:34%}
#ops .vmf[data-f="35"]{width:35%}
#ops .vmf[data-f="36"]{width:36%}
#ops .vmf[data-f="37"]{width:37%}
#ops .vmf[data-f="38"]{width:38%}
#ops .vmf[data-f="39"]{width:39%}
#ops .vmf[data-f="40"]{width:40%}
#ops .vmf[data-f="41"]{width:41%}
#ops .vmf[data-f="42"]{width:42%}
#ops .vmf[data-f="43"]{width:43%}
#ops .vmf[data-f="44"]{width:44%}
#ops .vmf[data-f="45"]{width:45%}
#ops .vmf[data-f="46"]{width:46%}
#ops .vmf[data-f="47"]{width:47%}
#ops .vmf[data-f="48"]{width:48%}
#ops .vmf[data-f="49"]{width:49%}
#ops .vmf[data-f="50"]{width:50%}
#ops .vmf[data-f="51"]{width:51%}
#ops .vmf[data-f="52"]{width:52%}
#ops .vmf[data-f="53"]{width:53%}
#ops .vmf[data-f="54"]{width:54%}
#ops .vmf[data-f="55"]{width:55%}
#ops .vmf[data-f="56"]{width:56%}
#ops .vmf[data-f="57"]{width:57%}
#ops .vmf[data-f="58"]{width:58%}
#ops .vmf[data-f="59"]{width:59%}
#ops .vmf[data-f="60"]{width:60%}
#ops .vmf[data-f="61"]{width:61%}
#ops .vmf[data-f="62"]{width:62%}
#ops .vmf[data-f="63"]{width:63%}
#ops .vmf[data-f="64"]{width:64%}
#ops .vmf[data-f="65"]{width:65%}
#ops .vmf[data-f="66"]{width:66%}
#ops .vmf[data-f="67"]{width:67%}
#ops .vmf[data-f="68"]{width:68%}
#ops .vmf[data-f="69"]{width:69%}
#ops .vmf[data-f="70"]{width:70%}
#ops .vmf[data-f="71"]{width:71%}
#ops .vmf[data-f="72"]{width:72%}
#ops .vmf[data-f="73"]{width:73%}
#ops .vmf[data-f="74"]{width:74%}
#ops .vmf[data-f="75"]{width:75%}
#ops .vmf[data-f="76"]{width:76%}
#ops .vmf[data-f="77"]{width:77%}
#ops .vmf[data-f="78"]{width:78%}
#ops .vmf[data-f="79"]{width:79%}
#ops .vmf[data-f="80"]{width:80%}
#ops .vmf[data-f="81"]{width:81%}
#ops .vmf[data-f="82"]{width:82%}
#ops .vmf[data-f="83"]{width:83%}
#ops .vmf[data-f="84"]{width:84%}
#ops .vmf[data-f="85"]{width:85%}
#ops .vmf[data-f="86"]{width:86%}
#ops .vmf[data-f="87"]{width:87%}
#ops .vmf[data-f="88"]{width:88%}
#ops .vmf[data-f="89"]{width:89%}
#ops .vmf[data-f="90"]{width:90%}
#ops .vmf[data-f="91"]{width:91%}
#ops .vmf[data-f="92"]{width:92%}
#ops .vmf[data-f="93"]{width:93%}
#ops .vmf[data-f="94"]{width:94%}
#ops .vmf[data-f="95"]{width:95%}
#ops .vmf[data-f="96"]{width:96%}
#ops .vmf[data-f="97"]{width:97%}
#ops .vmf[data-f="98"]{width:98%}
#ops .vmf[data-f="99"]{width:99%}
#ops .vmf[data-f="100"]{width:100%}

/* ===== DETAIL CARD =====
   One instance, reused. Positioned by JS from the row's viewport rect (left/top only, no inline
   style attributes anywhere) and clamped inside the viewport. */
/* position:fixed keeps it out of the grid's flow, so sitting after its own row for tab order never
   makes it claim a cell or push a row */
#ops .vpop{position:fixed;left:0;top:0;z-index:80;width:min(392px,calc(100vw - 16px));max-height:calc(100vh - 16px);overflow:auto;
  -webkit-overflow-scrolling:touch;background:linear-gradient(170deg,#0D1726,#0A121F);border:1px solid #2E4A78;border-radius:12px;
  padding:12px 13px 11px;box-shadow:0 18px 46px rgba(0,0,0,.62),0 0 0 1px rgba(76,123,217,.22);
  opacity:0;visibility:hidden;pointer-events:none;transition:opacity .12s ease}
#ops .vpop.on{opacity:1;visibility:visible;pointer-events:auto}
#ops .vp-head{display:flex;align-items:flex-start;gap:9px}
#ops .vp-av{width:26px;height:26px;border-radius:50%;object-fit:cover;flex:0 0 auto;border:1px solid #2A3A55;background:#1B263B;display:block}
#ops .vp-av.avph{display:flex;align-items:center;justify-content:center;font-size:9.5px;font-weight:800;color:#9FB4D4}
#ops .vp-id{flex:1 1 auto;min-width:0}
#ops .vp-name{font-size:13px;font-weight:800;color:#F2F6FC;line-height:1.25;letter-spacing:-.1px;overflow-wrap:anywhere}
#ops .vp-meta{display:flex;align-items:center;gap:6px;flex-wrap:wrap;margin-top:3px;font-size:9.5px;color:#7C8CA6;font-weight:700}
#ops .vp-dot{color:#2C3C58}
#ops .vp-x{flex:0 0 auto;display:flex;align-items:center;justify-content:center;width:22px;height:22px;padding:0;border-radius:6px;
  background:#101A2C;border:1px solid #2A3A55;color:#8B9BB0;font-size:14px;line-height:1;cursor:pointer;font-family:inherit}
#ops .vp-x:hover,#ops .vp-x:focus-visible{background:#17253D;border-color:#4C7BD9;color:#E6EDF7;outline:none}
#ops .badge{font-size:7.4px;font-weight:800;letter-spacing:.06em;padding:2px 5px;border-radius:4px;white-space:nowrap}
#ops .badge.ok{color:#3ED47F;background:rgba(62,212,127,.1)}
#ops .badge.warn{color:#F2B33D;background:rgba(242,179,61,.14)}
#ops .badge.crit{color:#FF6B6B;background:rgba(255,107,107,.16)}

/* operator attribution: the Superledger Media wordmark, unmodified, under the name */
#ops .vsm{display:block;height:11px;width:auto;max-width:100%;margin:5px 0 0;opacity:.75}
#ops .vp-head .vsm{align-self:flex-start}

#ops .vp-sec{margin-top:10px;padding-top:9px;border-top:1px solid #1B2740}
#ops .vp-lab{font-size:8px;letter-spacing:.12em;color:#63738D;font-weight:800}

#ops .vp-grid{display:grid;grid-template-columns:1fr 1fr;gap:7px 12px;margin-top:10px;padding-top:9px;border-top:1px solid #1B2740}
#ops .vp-kv{min-width:0;display:flex;flex-direction:column;gap:2px}
#ops .vp-k{font-size:7.4px;letter-spacing:.1em;color:#63738D;font-weight:800;line-height:1}
#ops .vp-v{font-size:11.5px;font-weight:800;color:#DCE6F5;font-variant-numeric:tabular-nums;letter-spacing:-.1px;display:flex;align-items:baseline;gap:4px;flex-wrap:wrap;overflow-wrap:anywhere}
#ops .vp-v .d{font-size:9px;font-weight:700}
#ops .vp-v .up{color:#5BE59A}
#ops .vp-v .dn{color:#FF8585}
#ops .dv{font-size:11.5px;font-weight:800;font-variant-numeric:tabular-nums;letter-spacing:-.15px;display:flex;align-items:center;gap:4px}
#ops .dv i{width:4px;height:4px;border-radius:50%;flex:0 0 auto}
#ops .dv.g{color:#5BE59A}
#ops .dv.g i{background:#3ED47F}
#ops .dv.a{color:#F2B33D}
#ops .dv.a i{background:#F2B33D}
#ops .dv.r{color:#FF8585}
#ops .dv.r i{background:#FF5A5A}

/* jailing block: on-chain slashing params + this validator's missed counter */
#ops .vp-jail{margin-top:10px;padding:9px 10px 8px;border:1px solid #1B2740;border-radius:9px;background:#0A121F}
#ops .jp-bar{display:flex;align-items:center;gap:8px;margin:7px 0 6px}
#ops .jp-bar .vmt{height:6px}
#ops .vmt-lg .vmf{background:#4BE08C}
#ops .vmt-lg.warn .vmf{background:#F5BC55}
#ops .vmt-lg.crit .vmf{background:#FF6B6B}
#ops .jp-pct{flex:0 0 auto;font-size:10px;font-weight:800;font-variant-numeric:tabular-nums;color:#5BE59A}
#ops .jp-pct.warn{color:#F2B33D}
#ops .jp-pct.crit{color:#FF6B6B}
#ops .jp-row{display:flex;align-items:baseline;justify-content:space-between;gap:12px;padding:2.5px 0;font-size:10px;border-top:1px solid rgba(27,39,64,.65)}
#ops .jp-row:first-of-type{border-top:0}
#ops .jp-k{color:#7C8CA6;font-weight:600;min-width:0}
#ops .jp-v{color:#CFE0FF;font-weight:800;font-variant-numeric:tabular-nums;text-align:right;white-space:nowrap}
#ops .vp-note{margin:7px 0 0;font-size:8.6px;line-height:1.5;color:#5E6E88;font-weight:600}

#ops .vp-link{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:10px;padding:7px 9px;border-radius:7px;
  background:#101A2C;border:1px solid #2E4A78;color:#CFE0FF;font-size:10px;font-weight:800;text-decoration:none;letter-spacing:.02em}
#ops .vp-link:hover,#ops .vp-link:focus-visible{background:#16233A;border-color:#4C7BD9;color:#fff;outline:none}
#ops .vp-arw{font-size:11px;color:#8FB3EF}

/* ===== CHAIN-HEALTH BORDER (primary signal) =====
   The validator-grid border breathes on the --bt clock (one breath per block). Colour = worst
   jail-proximity band present in the set:
     all green            -> TX green  #B1FC03 (official brand-kit green)
     any yellow band      -> amber     #F2B33D
     any red / jail band  -> coral     #D96A6A
   The :has() selectors below are the ones the page's badges and tiles rely on: keep the id
   #validator-grid and the .v / .band-warn / .band-crit classes intact and they keep firing. */
@keyframes hb-green{0%,100%{border-color:#54780A;box-shadow:0 0 0 0 rgba(177,252,3,0)}50%{border-color:#B1FC03;box-shadow:0 0 0 1px rgba(177,252,3,.26)}}
@keyframes hb-amber{0%,100%{border-color:#7A5A12;box-shadow:0 0 0 0 rgba(242,179,61,0)}50%{border-color:#F2B33D;box-shadow:0 0 0 1px rgba(242,179,61,.24)}}
@keyframes hb-red{0%,100%{border-color:#6E2A2A;box-shadow:0 0 0 0 rgba(217,106,106,0)}50%{border-color:#D96A6A;box-shadow:0 0 0 1px rgba(217,106,106,.26)}}
#ops .grid{animation:hb-green var(--bt) ease-in-out infinite}
@supports selector(:has(*)){
  #ops:has(#validator-grid .v.band-crit) .grid{animation-name:hb-red}
  #ops:has(#validator-grid .v.band-warn):not(:has(#validator-grid .v.band-crit)) .grid{animation-name:hb-amber}
  #ops:not(:has(#validator-grid .v.band-warn, #validator-grid .v.band-crit)) .grid{animation-name:hb-green}
}

/* per-row alert pulse, same clock as the border so they beat as one */
@keyframes vpulse{0%,100%{border-color:#722B2B;background:#150E10}50%{border-color:#B94747;background:#1A1012}}
#ops .v.crit.band-crit{animation:vpulse var(--bt) ease-in-out infinite}
#ops .v.crit.band-crit::after{content:"";position:absolute;left:0;top:0;bottom:0;width:2px;border-radius:6px 0 0 6px;background:#E06565}
#ops .v.crit.band-crit:hover,#ops .v.crit.band-crit:focus-visible{animation-play-state:paused}

/* ---- responsive ----
   The brief's column plan (4 / 3 / 2 / 1) and its height target ("52 validators under ~420px at
   1280 wide") cannot both hold: 52 at 3 columns is 18 rows, and 18 rows of 28-30px is ~520px. So
   the 4-column band starts at 1240px instead of 1400px, which is what makes 13 rows x 29px fit.
   Above 1240 the extra width just gives each column more air. Below that the plan is as asked:
   3 columns from 1100, 2 from 800, one column under 800.
   NOTE: never put a `;` between rule blocks inside @media — the parser treats the next selector
   as part of an invalid prelude and silently drops that whole rule. One rule per line. */
@media (min-width:800px){
  #ops #validator-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:3px 8px;--rh:32px;--cols:2}
  #ops .v{grid-template-columns:22px 18px minmax(0,1fr) 46px 36px 44px 40px 32px;gap:5px}
  #ops .vn{font-size:11px}
  #ops .vpp{font-size:9.6px}
  #ops .vmet-v{font-size:9.4px}
  #ops .vmet-d{font-size:7.4px}
}
@media (min-width:1100px){
  #ops #validator-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:2px 8px;--rh:28px;--cols:3}
  #ops .v{grid-template-columns:20px 16px minmax(0,1fr) 40px 30px 40px 36px 22px;gap:4px;padding:0 7px}
  #ops .vrk{font-size:10px}
  #ops .av{width:16px;height:16px}
  #ops .avph{font-size:6.4px}
  #ops .vn{font-size:10.6px}
  #ops .vpp{font-size:9px}
  #ops .vmet-v{font-size:8.8px}
  #ops .vmet-d{font-size:7px}
  #ops .vmt{height:4px}
}
@media (min-width:1240px){
  /* 13 rows x ~30px keeps the frame near the ~420px laptop budget; stake+delegator stacks
     share the tight 4-col width with smaller type and a trimmed meter. */
  #ops #validator-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:2px 6px;padding:6px;--rh:30px;--cols:4}
  #ops .v{grid-template-columns:16px 14px minmax(0,1fr) 28px 24px 34px 30px 16px;gap:2px;padding:0 4px;border-radius:6px}
  #ops .vrk{font-size:9.2px}
  #ops .av{width:14px;height:14px}
  #ops .avph{font-size:5.8px}
  #ops .vn{font-size:9.8px;font-weight:600}
  #ops .vpp{font-size:8.2px;letter-spacing:-.3px}
  #ops .vmet-v{font-size:8px;letter-spacing:-.3px}
  #ops .vmet-d{font-size:6.6px;letter-spacing:-.2px}
  #ops .vmt{height:4px}
}
@media (min-width:1440px){
  /* same row height as the 1280 band: 4 columns here are wider, not taller */
  #ops #validator-grid{gap:2px 9px;padding:6px;--rh:30px}
  #ops .v{grid-template-columns:20px 17px minmax(0,1fr) 42px 32px 44px 40px 24px;gap:5px;padding:0 8px}
  #ops .vrk{font-size:10.5px}
  #ops .av{width:17px;height:17px}
  #ops .avph{font-size:7px}
  #ops .vn{font-size:11px;font-weight:700}
  #ops .vpp{font-size:9.4px}
  #ops .vmet-v{font-size:9.2px}
  #ops .vmet-d{font-size:7.4px}
  #ops .vmt{height:5px}
}
@media (min-width:1700px){
  #ops #validator-grid{gap:2px 10px;padding:6px;--rh:30px}
  #ops .v{grid-template-columns:22px 18px minmax(0,1fr) 46px 38px 48px 44px 32px}
  #ops .vn{font-size:11.6px}
  #ops .vmet-v{font-size:9.6px}
  #ops .vmet-d{font-size:7.6px}
}

/* ---- stat tiles: whole tiles only, so no half-cut card hangs off the edge ---- */
#ops .stats{grid-template-columns:1fr .8fr 1.2fr .9fr}
#ops .stats2{grid-template-columns:1fr .8fr 1.2fr .9fr}
@media (max-width:900px){
  #ops .stats{grid-template-columns:repeat(2,minmax(0,1fr))}
  #ops .stats2{grid-template-columns:repeat(2,minmax(0,1fr))}
  #ops .stat{padding:11px 12px 10px}
  #ops .sval{font-size:clamp(17px,5vw,40px);letter-spacing:-.5px}
  #ops .stats2 .sval{font-size:clamp(16px,4.4vw,27px)}
  #ops .sval small{font-size:12px;margin-left:2px}
  #ops .ssub{font-size:9.5px}
}
@media (max-width:340px){
  #ops .stats{grid-template-columns:minmax(0,1fr)}
  #ops .stats2{grid-template-columns:minmax(0,1fr)}
}

/* ---- slashing strip: wrap on narrow screens instead of pushing the link off the edge ---- */
@media (max-width:820px){
  #ops .pstrip{flex-wrap:wrap;row-gap:5px}
  #ops .pstrip .pl{border-right:0;padding-right:0;margin-right:0;width:100%}
  #ops .pstrip .learn{margin-left:0;order:9;width:100%}
}
@media (max-width:700px){
  /* one column on a phone: the row has ~316px, so the meter is a short bar only and the
     leftover width goes to the name */
  #ops .v{grid-template-columns:22px 18px minmax(0,1fr) 46px 38px 32px;gap:6px;padding:0 8px}
  #ops .vmt{min-width:22px}
}
@media (max-width:460px){
  #ops{padding:14px 13px 12px;border-radius:13px}
  #ops .opsbar{gap:7px;padding-bottom:9px;margin-bottom:11px}
  #ops .upd{font-size:9px;flex-basis:100%;order:5}
  #ops #validator-grid{padding:6px;--rh:36px}
  #ops .v{grid-template-columns:22px 18px minmax(0,1fr) 34px 34px 26px;gap:5px;padding:0 6px}
  #ops .vn{font-size:11px}
  #ops .vpp{font-size:8.6px;letter-spacing:-.3px}
  #ops .vsub .vmet-v{font-size:8.4px}
  #ops .vsm{height:12px}
}

/* pointer-coarse devices: rows need a comfortable tap target and no hover styling */
@media (hover:none) and (max-width:799px){
  #ops #validator-grid{--rh:40px}
  #ops .v:hover{background:#0F1826;border-color:#1B2740}
  #ops .v.warn:hover{background:#171307;border-color:#5A4310}
  #ops .v.crit:hover{background:#180E11;border-color:#7E3030}
}

@media (prefers-reduced-motion:reduce){
  :root{--bt:0s}
  #ops .grid{animation:none!important}
  #ops .v{transition:none}
  #ops .v.crit.band-crit{animation:none!important;border-color:#A83C3C}
  #ops .vpop{transition:none}
  @supports selector(:has(*)){
    #ops:has(#validator-grid .v.band-crit) .grid{border-color:#D96A6A}
    #ops:has(#validator-grid .v.band-warn):not(:has(#validator-grid .v.band-crit)) .grid{border-color:#F2B33D}
    #ops:not(:has(#validator-grid .v.band-warn, #validator-grid .v.band-crit)) .grid{border-color:#54780A}
  }
}


/* narrow: stake + delegators sit under the name; hide dedicated columns and 24h %
   (amounts alone stay readable — % chips crowd the under-name stack on phones). */
@media (max-width:799px){
  #ops .vst-col,#ops .vdg-col{display:none}
  #ops .vsub{display:inline-flex}
  #ops .vsub .vmet-d{display:none}
}
@media (min-width:800px){
  #ops .vsub{display:none}
  #ops .vst-col,#ops .vdg-col{display:flex}
}

/* V1: 10-block glance strip per row + per-validator page */
#ops .vl{display:flex;gap:1px;min-width:0}
#ops .vl .led{height:9px;border-radius:1px;box-shadow:none}
#ops .vp-open{font-weight:800}
.vd-back{margin:14px 0 8px;font-size:13px}
#ops.vd .vd-head{display:flex;align-items:center;gap:14px;margin:6px 0 14px;flex-wrap:wrap}
#ops .vd-av{width:48px;height:48px;border-radius:50%;font-size:16px;display:inline-flex;align-items:center;justify-content:center}
#ops .vd-id{flex:1 1 260px;min-width:0}
#ops .vd-id h1{margin:0;color:#E8F0FB;font-size:26px;line-height:1.15;overflow-wrap:anywhere}
#ops .vd-meta{display:flex;gap:8px;align-items:center;font-size:12.5px;color:#7E8FA8;margin-top:4px}
#ops .vd-meta .badge{font-size:10px;padding:3px 7px}
#ops .vd-op{display:block;font-size:11px;color:#7E8FA8;margin-top:4px;overflow-wrap:anywhere}
#ops .vd-card{border:1px solid #1B2740;border-radius:12px;padding:14px 16px;margin-bottom:14px;background:rgba(15,39,68,.35)}
#ops .vd-row{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
#ops .vd-sub{font-size:12px;color:#7E8FA8;margin:8px 0 6px;font-variant-numeric:tabular-nums}
#ops .vd-leds{display:grid;grid-template-columns:repeat(25,minmax(0,1fr));gap:4px;margin-top:10px}
#ops .vd-leds .led{height:16px;border-radius:3px}
@media (max-width:640px){#ops .vd-leds{grid-template-columns:repeat(20,minmax(0,1fr));gap:3px}#ops .vd-leds .led{height:13px}}
#ops .live.stale{color:#F2B33D}
#ops .live.stale .dot{background:#F2B33D;animation:none}
#ops .vd-cols{display:grid;grid-template-columns:1.3fr 1fr;gap:14px}
@media (max-width:900px){#ops .vd-cols{grid-template-columns:minmax(0,1fr)}}
#ops .vd-stats{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:10px}
#ops .vd-stats .stat{margin:0}
#ops .dlts{display:flex;gap:6px;flex-wrap:wrap}
#ops .dlt{font-size:10.5px;font-variant-numeric:tabular-nums;color:#7E8FA8}
#ops .dlt.up{color:#3ED47F}#ops .dlt.dn{color:#FF6B6B}#ops .dlt.na{opacity:.7}
#ops .vd a:focus-visible,.vd-back a:focus-visible{outline:2px solid #5BA4FF;outline-offset:2px}

/* live 10-block ticker: strip nudges left one step, newest LEDs fade in with a soft ring */
@keyframes vlTick{from{transform:translateX(4px)}to{transform:none}}
@keyframes ledNew{0%{opacity:.2;transform:scale(.6)}60%{opacity:1;transform:scale(1.15);box-shadow:0 0 0 2px rgba(255,255,255,.35)}100%{transform:none}}
#ops .vl.vl-tick{animation:vlTick .35s ease-out}
#ops .vl .led.led-new{animation:ledNew .6s ease-out}
@media (prefers-reduced-motion:reduce){#ops .vl.vl-tick,#ops .vl .led.led-new{animation:none}}
/* signing LEDs: lime = signed, red = missed (one miss colour; jail risk is shown by the row band/meter) */
#ops .led.l-g{background:#A3E635;border-color:#A3E635;box-shadow:0 0 4px rgba(163,230,53,.55)}
#ops .led.l-a,#ops .led.l-r{background:#FF4D4D;border-color:#FF4D4D;box-shadow:0 0 5px rgba(255,77,77,.6)}
