:root { --warn: #c2410c; --chart: #0b7a4b; --bg: #fafaf7; --fg: #1b1d1f; --muted: #6b7075; --line: #e3e3dd; --card: #fff; --acc: #0b7a4b; --bad: #b3261e; --tag: #eef3ef; }
@media (prefers-color-scheme: dark) { :root { --warn: #f0883e; --chart: #36a372; --bg: #111314; --fg: #e6e7e8; --muted: #93999e; --line: #2a2e31; --card: #181b1d; --acc: #4cc38a; --bad: #ff7b72; --tag: #1f2a24; } }
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 15px/1.5 system-ui, -apple-system, "Segoe UI", sans-serif; }
a { color: var(--acc); text-decoration: none; } a:hover { text-decoration: underline; }
header { position: sticky; top: 0; z-index: 2; border-bottom: 1px solid var(--line); background: var(--card); }
header .bar { max-width: 1400px; margin: 0 auto; display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; justify-content: space-between; padding: 10px 16px; }
.brand { font-weight: 700; font-size: 18px; color: var(--fg); } .brand span { color: var(--acc); }
.brand img { border-radius: 6px; vertical-align: middle; margin: -4px 8px 0 0; }
header form { display: flex; flex: 1; max-width: 560px; gap: 6px; position: relative; }
.hint { position: absolute; top: 100%; left: 0; right: 0; margin-top: 4px; z-index: 10; background: var(--card); border: 1px solid var(--line); border-radius: 6px; box-shadow: 0 4px 12px rgb(0 0 0 / .12); overflow: hidden; }
.hint a { display: block; padding: 9px 12px; color: var(--fg); text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .hint a:hover, .hint a:focus { background: var(--tag); outline: none; }
.hint .tag { margin-right: 6px; }
header input, main input { flex: 1; min-width: 0; padding: 8px 10px; border: 1px solid var(--line); border-radius: 6px; background: var(--bg); color: var(--fg); font: inherit; }
header button, main button { padding: 8px 14px; border: 0; border-radius: 6px; background: var(--acc); color: #fff; font: inherit; cursor: pointer; }
main { max-width: 1400px; margin: 0 auto; padding: 16px; min-width: 0; }
footer { max-width: 1400px; margin: 24px auto; padding: 16px; color: var(--muted); font-size: 13px; border-top: 1px solid var(--line); }
h1 { font-size: 22px; margin: 8px 0 12px; } h2 { font-size: 17px; margin: 24px 0 8px; } h3 { font-size: 15px; margin: 18px 0 6px; }
.tw { overflow-x: auto; background: var(--card); border: 1px solid var(--line); border-radius: 6px; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
tr:last-child td { border-bottom: 0; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
.sub { display: block; margin-top: 2px; color: var(--muted); font-size: 12px; }
td.moved { white-space: normal; min-width: 160px; }
th, td { text-align: left; padding: 6px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
th { color: var(--muted); font-weight: 500; }
tr.failed td { opacity: .6; }
dl { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; background: var(--card); border: 1px solid var(--line); border-radius: 6px; padding: 12px; margin: 0; }
dt { color: var(--muted); } dd { margin: 0; min-width: 0; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; }
.wrap { overflow-wrap: anywhere; word-break: break-all; }
.muted { color: var(--muted); } .small { font-size: 12px; }
.ok { color: var(--acc); font-weight: 600; } .bad { color: var(--bad); font-weight: 600; }
.tag { display: inline-block; padding: 0 6px; border-radius: 4px; background: var(--tag); font-size: 12px; font-family: ui-monospace, Menlo, monospace; }
.stats { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 8px; }
.stats div { flex: 1 1 150px; min-width: 0; background: var(--card); border: 1px solid var(--line); border-radius: 6px; padding: 10px 14px; }
.stats b { display: block; font-size: 19px; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .stats span { color: var(--muted); font-size: 13px; }
.cols { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 16px; } .cols > section { min-width: 0; }
@media (max-width: 1000px) { .cols { grid-template-columns: minmax(0, 1fr); } }
.pager { margin: 8px 0; display: flex; gap: 16px; }
details { margin: 6px 0; } summary { cursor: pointer; padding: 4px 0; }
details.log dl { margin: 4px 0 8px; }
svg.chart { width: 100%; height: 120px; background: var(--card); border: 1px solid var(--line); border-radius: 6px; }
svg.chart path { fill: none; stroke: var(--acc); stroke-width: 1.5; vector-effect: non-scaling-stroke; }
main form.row { display: flex; gap: 6px; max-width: 560px; } main form.inline { display: inline; }
.steps li { margin: 6px 0; } .note { background: var(--card); border: 1px solid var(--line); border-radius: 6px; padding: 4px 14px; margin: 12px 0; }
.token { font-size: 15px; padding: 8px; background: var(--tag); border-radius: 4px; user-select: all; }
table.stats-table th:first-child { color: var(--fg); font-weight: 500; } table.stats-table td, table.stats-table th:not(:first-child) { text-align: right; } table.stats-table td { font-variant-numeric: tabular-nums; }
@media (max-width: 600px) { header form { max-width: none; flex-basis: 100%; } main { padding: 12px; } th, td { padding: 5px 7px; } dl { grid-template-columns: 1fr; } dt { margin-top: 6px; } }
.stats b a { font-size: inherit; font-family: inherit; } .stats b.normal { color: var(--acc); } .stats b.elevated { color: var(--warn); } .stats b.degraded { color: var(--bad); }
.loading { display: flex; gap: .6em; align-items: center; padding: .7em 1em; border: 1px solid var(--line); border-radius: 8px; background: var(--card); color: var(--muted); }
.spin { flex: none; width: 1em; height: 1em; border: 2px solid var(--line); border-top-color: var(--acc); border-radius: 50%; animation: spin 0.9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spin { animation: none; } }

/* home: the live lists (grid rows, so they reflow on a phone) */
h2 .live { display: inline-flex; align-items: center; gap: 6px; margin-left: 8px; vertical-align: 2px; padding: 1px 8px; border-radius: 999px; background: var(--tag); color: var(--acc); font-size: 12px; font-weight: 500; }
.live i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; animation: pulse 1.6s ease-in-out infinite; }
.live[data-state="paused"] { color: var(--muted); } .live[data-state="paused"] i { animation: none; }
.live[data-state="off"] { color: var(--bad); }
@keyframes pulse { 50% { opacity: .25; } }
/* rows go in at the top: a scroll anchor on a row scrolled the page down by a row at each one */
.feed { overflow-anchor: none; list-style: none; margin: 0; padding: 0; background: var(--card); border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.feed li { display: grid; gap: 4px 14px; align-items: center; min-height: 56px; padding: 8px 12px; border-bottom: 1px solid var(--line); font-size: 14px; }
.feed li:last-child { border-bottom: 0; }
.feed li > div { min-width: 0; }
.feed .sub { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.feed .num { text-align: right; font-variant-numeric: tabular-nums; }
.feed.blocks li { grid-template-columns: minmax(0, 1fr) 56px 112px; }
.feed.txs li { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr) minmax(0, .9fr); }
.feed .mv { text-align: right; font-variant-numeric: tabular-nums; }
.feed .one { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.feed .sym { color: var(--muted); }
.feed li.failed > div { opacity: .55; }
.feed .tag { vertical-align: 1px; margin-right: 4px; } .tag.bad { color: var(--bad); }
.sel { margin-right: 6px; color: var(--muted); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11px; }
.feed li.in { animation: rowin .9s ease-out; }
@keyframes rowin { from { background: var(--tag); } }
@media (prefers-reduced-motion: reduce) { .feed li.in, .live i { animation: none; } }
@media (max-width: 640px) {
  .stats { gap: 8px; } .stats div { flex-basis: calc(50% - 4px); padding: 8px 10px; } .stats b { font-size: 16px; }
  .feed li { padding: 8px 10px; min-height: 0; }
  .feed.blocks li { grid-template-columns: minmax(0, 1fr) 44px 96px; }
  .feed.txs li { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "h mv" "ft ft"; }
  .feed.txs .h { grid-area: h; } .feed.txs .mv { grid-area: mv; max-width: 45vw; } .feed.txs .ft { grid-area: ft; display: flex; gap: 6px; flex-wrap: wrap; font-size: 13px; }
  .feed.txs .ft .sub { display: inline; margin: 0; font-size: 13px; }
}
/* Chain over time (charts.ts). --chart is the accent validated as a chart mark on each card surface. */
.seg { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 10px; font-size: 13px; }
.seg a, .seg b { padding: 4px 10px; border: 1px solid var(--line); border-radius: 6px; background: var(--card); }
.seg b { background: var(--tag); font-weight: 600; }
.charts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 1100px) { .charts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .charts { grid-template-columns: minmax(0, 1fr); } figure.ch .plot text { font-size: 12px; } }
figure.ch { margin: 0; min-width: 0; background: var(--card); border: 1px solid var(--line); border-radius: 6px; padding: 10px 12px 6px; }
figure.ch figcaption { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; gap: 0 8px; margin-bottom: 4px; }
figure.ch figcaption span { font-weight: 600; } figure.ch figcaption b { font-size: 17px; white-space: nowrap; }
figure.ch figcaption small { grid-column: 1 / -1; color: var(--muted); font-size: 12px; }
.plot { position: relative; } .plot svg { display: block; width: 100%; height: auto; overflow: visible; touch-action: pan-y; }
.plot svg:focus { outline: 2px solid var(--acc); outline-offset: 2px; border-radius: 4px; } .plot svg:focus:not(:focus-visible) { outline: none; }
.plot .grid { stroke: var(--line); stroke-width: 1; }
.plot text { fill: var(--muted); font-size: 11px; font-variant-numeric: tabular-nums; } .plot .ytick { text-anchor: end; } .plot .xtick { text-anchor: middle; }
.plot .line { fill: none; stroke: var(--chart); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.plot .area { fill: var(--chart); opacity: .1; } .plot .band { fill: var(--chart); opacity: .16; }
.plot .end, .plot .dot { fill: var(--chart); stroke: var(--card); stroke-width: 2; } .plot .xh { stroke: var(--muted); stroke-width: 1; }
.tip { position: absolute; top: -6px; transform: translate(-50%, -100%); pointer-events: none; z-index: 1; background: var(--card); border: 1px solid var(--line); border-radius: 6px; padding: 4px 8px; font-size: 12px; white-space: nowrap; box-shadow: 0 2px 8px rgb(0 0 0 / .12); }
.tip b { display: block; font-size: 14px; } .tip span, .tip small { display: block; color: var(--muted); }
figure.ch details summary { font-size: 12px; color: var(--muted); } figure.ch .tw { max-height: 240px; overflow: auto; }
