:root { --text: #202124; --muted: #5f6368; --line: #dadce0; --blue: #1a73e8; --blue-dark: #1967d2; --alt: #f8f9fa; --hover: #f1f3f4; --green: #188038; }
* { box-sizing: border-box; }
html { color-scheme: light; }
body { margin: 0; background: #ffffff; color: var(--text); font: 14px/1.5 Roboto, Arial, sans-serif; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.topbar { display: flex; align-items: center; gap: 32px; min-height: 64px; padding: 0 max(24px, calc((100vw - 1120px) / 2)); border-bottom: 1px solid var(--line); background: #ffffff; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-size: 18px; font-weight: 500; }
.brand:hover { text-decoration: none; }
.brand-logo { display: block; width: 36px; height: 38px; object-fit: contain; }
.topbar nav { display: flex; gap: 4px; flex-wrap: wrap; }
.topbar nav a { padding: 8px 12px; border-radius: 4px; color: var(--muted); font-weight: 500; }
.topbar nav a:hover { background: var(--hover); text-decoration: none; }
.topbar nav a[aria-current="page"] { color: var(--blue); background: #e8f0fe; }

main { width: min(1120px, calc(100% - 48px)); margin: 0 auto; padding: 40px 0 24px; }
.intro h1 { margin: 0 0 8px; font-size: 32px; font-weight: 400; line-height: 1.25; }
.lede { max-width: 640px; margin: 0; color: var(--muted); font-size: 16px; line-height: 1.5; }

.metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin: 32px 0; }
.metrics > div { padding: 16px 20px; border: 1px solid var(--line); border-radius: 8px; }
.metrics span { display: block; color: var(--muted); font-size: 13px; }
.metrics strong { display: block; margin-top: 4px; font-size: 24px; font-weight: 400; line-height: 1.3; }

.section-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
h2 { margin: 0; font-size: 20px; font-weight: 400; }
h3 { margin: 0 0 8px; font-size: 14px; font-weight: 500; }
.controls { display: flex; gap: 12px; margin: 16px 0; flex-wrap: wrap; }
.search { flex: 1; min-width: 220px; }
.search input, .select-wrap select { width: 100%; height: 40px; padding: 0 12px; border: 1px solid var(--line); border-radius: 4px; background: #ffffff; color: var(--text); font: inherit; }
.select-wrap { width: 200px; }
.search input:focus, .select-wrap select:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 1px var(--blue); }
.icon-button, .page-button { height: 40px; padding: 0 16px; border: 1px solid var(--line); border-radius: 4px; background: #ffffff; color: var(--blue); font: inherit; font-weight: 500; cursor: pointer; }
.icon-button:hover, .page-button:hover:not(:disabled) { background: var(--alt); }
.page-button:disabled { color: #9aa0a6; cursor: default; }
button:focus-visible, a:focus-visible, summary:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }

.table-wrap { position: relative; overflow-x: auto; border: 1px solid var(--line); border-radius: 8px; }
table { width: 100%; min-width: 760px; border-collapse: collapse; text-align: left; }
th { padding: 12px 16px; background: var(--alt); border-bottom: 1px solid var(--line); color: var(--muted); font-size: 13px; font-weight: 500; white-space: nowrap; }
td { padding: 12px 16px; border-bottom: 1px solid #eceff1; vertical-align: middle; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: var(--alt); }
.rank { display: inline-block; min-width: 28px; color: var(--muted); font-variant-numeric: tabular-nums; }
.detail-button { padding: 0; border: 0; background: none; color: var(--blue); font: inherit; cursor: pointer; }
.detail-button:hover { text-decoration: underline; }
.miner-name { font-family: 'Roboto Mono', ui-monospace, Menlo, monospace; font-size: 13px; color: var(--text); }
.status { color: var(--muted); }
.status.active { color: var(--green); font-weight: 500; }
.sessions, .date, .progress-label { font-variant-numeric: tabular-nums; white-space: nowrap; }
.date, .progress-label { color: var(--muted); }
.progress { display: inline-block; width: 96px; height: 4px; margin-right: 8px; vertical-align: middle; background: #e8eaed; border-radius: 2px; overflow: hidden; }
.progress i { display: block; height: 100%; background: var(--blue); }
.empty { padding: 32px 16px; text-align: center; color: var(--muted); }
.pagination { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 0; color: var(--muted); }
.pagination > div { display: flex; gap: 8px; }

.activity-panel { margin: 8px 0 24px; padding: 20px; border: 1px solid var(--line); border-radius: 8px; }
.activity-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.source-note, .chain-record { color: var(--muted); }
.activity-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; margin-top: 16px; }
.activity-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.activity-list li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid #eceff1; color: var(--muted); }
.chain-record a { margin-right: 16px; }
.chain-value { display: block; margin-bottom: 8px; color: var(--text); font-size: 18px; }
.disclosure { max-width: 760px; margin: 8px 0 0; padding-top: 16px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }

footer { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; padding: 20px max(24px, calc((100vw - 1120px) / 2)); border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
footer #load-state { margin-left: auto; }

@media (max-width: 760px) {
  .topbar { flex-wrap: wrap; gap: 4px 16px; padding: 12px 16px; }
  main { width: calc(100% - 32px); padding-top: 24px; }
  .intro h1 { font-size: 26px; }
  .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .metrics strong { font-size: 20px; }
  .select-wrap { width: 100%; }
  .activity-columns { grid-template-columns: 1fr; gap: 20px; }
  footer { padding: 16px; }
  footer #load-state { margin-left: 0; width: 100%; }
}
