:root {
  color-scheme: dark;
  --bg: #080b12;
  --bg-raised: #0c111b;
  --panel: #101722;
  --panel-soft: #151e2b;
  --ink: #edf4ff;
  --muted: #909cad;
  --faint: #5b6777;
  --line: #222d3b;
  --line-strong: #34445a;
  --blue: #67a9ff;
  --blue-soft: #4d8fe5;
  --sky: #6ed6ff;
  --orange: #ff9b55;
  --danger: #ff6f6f;
  --radius: 14px;
  --mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  min-width: 300px;
  margin: 0;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--ink);
  font: 14px/1.55 var(--mono);
  text-rendering: optimizeLegibility;
}

body::before {
  position: fixed;
  z-index: -3;
  inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.018) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.018) 1px, transparent 1px);
  background-size: 46px 46px;
  content: "";
  mask-image: linear-gradient(to bottom, black, transparent 72%);
  pointer-events: none;
}

button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
button { color: inherit; }

.skip-link {
  position: fixed;
  z-index: 20;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  transform: translateY(-150%);
  border-radius: 7px;
  background: var(--blue);
  color: #06101f;
  font-weight: 800;
}
.skip-link:focus { transform: none; }

.topbar, main, footer {
  width: min(1220px, calc(100% - 48px));
  margin-inline: auto;
}

.topbar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 82px;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  gap: 11px;
  width: max-content;
  font: 750 16px/1 var(--sans);
  letter-spacing: .08em;
}
.brand > span:last-child > span { color: var(--blue); }
.brand-mark {
  display: grid;
  grid-template-columns: repeat(3, 5px);
  align-items: end;
  gap: 3px;
  width: 21px;
  height: 22px;
}
.brand-mark i { display: block; height: 9px; background: var(--blue); transform: skewY(-25deg); }
.brand-mark i:nth-child(2) { height: 17px; }
.brand-mark i:nth-child(3) { height: 13px; }

.nav-links { display: flex; align-items: center; gap: clamp(14px, 2.2vw, 34px); color: var(--muted); font-size: 15px; }
.nav-links a { transition: color .2s ease; }
.nav-links a:hover, .nav-links a:focus-visible { color: var(--ink); }
.nav-links a[aria-current="page"] { color: var(--ink); }

.status {
  display: inline-flex;
  align-items: center;
  justify-self: end;
  gap: 9px;
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--faint); }
.status.live .status-dot { background: var(--blue); box-shadow: 0 0 14px rgba(103,169,255,.7); }
.status.error .status-dot { background: var(--danger); }

main { padding: 56px 0 90px; }
body[data-page="loading"] main,
body[data-page="loading"] footer { visibility: hidden; }
.page-view[hidden] { display: none; }
body[data-page="servers"] .server-overview,
body[data-page="blocks"] .blocks-history,
body[data-page="payouts"] .payouts-history,
body[data-page="account"] .account,
body[data-page="leaderboards"] .leaders,
body[data-page="usage"] .usage { margin-top: 0; }
section { scroll-margin-top: 28px; }
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(320px, .8fr);
  align-items: start;
  gap: clamp(36px, 7vw, 90px);
}
h1, h2, h3, p { overflow-wrap: anywhere; }
h1 {
  max-width: 800px;
  margin: 0 0 12px;
  font: 680 clamp(42px, 6vw, 72px)/1 var(--sans);
  letter-spacing: -.05em;
}
h2 { margin: 6px 0 0; font: 650 clamp(28px, 3vw, 43px)/1.06 var(--sans); letter-spacing: -.045em; }
h3 { margin: 3px 0 0; font: 620 22px/1.1 var(--sans); letter-spacing: -.025em; }
.lede { max-width: 710px; margin: 0; color: var(--muted); font: 400 17px/1.5 var(--sans); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: stretch; gap: 10px; margin-top: 28px; }
.download-button {
  display: flex;
  min-width: 210px;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  padding: 13px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--panel);
  transition: border-color .2s, background-color .2s;
}
.download-button:hover { border-color: var(--blue); background: var(--panel-soft); }
.download-button.ai:hover { border-color: var(--sky); }
.download-button strong { display: inline-flex; align-items: center; gap: 8px; font: 680 13px/1.2 var(--sans); }
.download-button strong .button-icon { stroke: currentColor; }
.download-button span { color: var(--faint); font-size: 10px; }
.download-button.zk strong { color: var(--blue); }
.download-button.ai strong { color: var(--sky); }
.download-button.proxy strong { color: var(--muted); }
.usage-button, .bundle-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 15px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  color: var(--muted);
  font-size: 12px;
  transition: border-color .2s, color .2s;
}
.usage-button:hover, .bundle-button:hover { border-color: var(--blue); color: var(--ink); }

.terms {
  padding: 25px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--panel);
}
.terms dl { margin: 0; }
.terms dl div { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.terms dt { color: var(--muted); font-size: 13px; }
.terms dd { margin: 0; font: 650 19px/1 var(--sans); letter-spacing: -.025em; }
.terms > p { margin: 0; color: var(--faint); font-size: 12px; }

.overview, .proofs, .hashrate-history, .history-section, .account, .leaders, .usage { margin-top: 70px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 40px; margin-bottom: 31px; }
.section-heading > p { max-width: 470px; margin: 0 0 3px; color: var(--muted); text-align: right; font: 14px/1.5 var(--sans); }
#proofs, #overview, #hashrate-history, #nockchain-status { margin-top: 42px; }
#proofs > .section-heading,
#overview > .section-heading,
#hashrate-history > .section-heading,
#nockchain-status > .section-heading { margin-bottom: 14px; }
#proofs > .section-heading h2,
#overview > .section-heading h2,
#hashrate-history > .section-heading h2,
#nockchain-status > .section-heading h2 {
  margin: 0;
  font-size: 18px;
  line-height: 1.2;
  letter-spacing: -.02em;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}
.pool-stats { grid-template-columns: repeat(3, 1fr); }
.pool-stats .metric:nth-child(3n) { border-right: 0; }
.pool-stats .metric:nth-child(-n+3) { border-bottom: 1px solid var(--line); }
.nockchain-stats { grid-template-columns: repeat(4, 1fr); }
.metric { position: relative; display: flex; flex-direction: column; min-height: 167px; padding: 25px; border-right: 1px solid var(--line); }
.metric:last-child { border-right: 0; }
.metric::before { position: absolute; top: 0; right: 0; left: 0; height: 2px; background: transparent; content: ""; }
.metric:hover::before { background: var(--blue); }
.metric p, .metric span { margin: 0; color: var(--muted); }
.metric p { font-size: 12px; letter-spacing: .07em; text-transform: uppercase; }
.metric strong { margin: auto 0 9px; font: 640 clamp(24px, 2.3vw, 34px)/1 var(--sans); letter-spacing: -.04em; }
.overview .metric { min-height: 124px; padding: 20px; }
.overview .metric strong { margin-top: 16px; font-size: clamp(19px, 1.75vw, 27px); }
.hashrate-metric strong { white-space: nowrap; }
.overview .metric strong .metric-unit,
.proof-card dd .metric-unit { display: inline; margin-left: .32em; color: var(--faint); font-size: .62em; font-weight: 550; letter-spacing: -.01em; text-transform: none; }
.worker-summary > div:first-child strong { font-size: 16px; }
.worker-summary strong .metric-unit { display: inline; margin-left: .32em; color: var(--faint); font-size: .8em; font-weight: 550; letter-spacing: -.01em; text-transform: none; }
.miner-hashrates strong .metric-unit { margin-left: .32em; color: var(--faint); font-size: 1em; font-weight: 550; letter-spacing: -.01em; }
.overview .metric strong .currency-unit,
.proof-card dd .currency-unit { margin-left: 0; }
.metric span { color: var(--faint); font-size: 12px; }
.metric.skeleton strong { color: var(--faint); }

.hashrate-chart-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.hashrate-chart-card { min-width: 0; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
.hashrate-history .hashrate-chart-card { padding: 18px; }
.hashrate-chart-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.hashrate-chart-heading h3 { margin: 0; font-size: 17px; }
.hashrate-chart-heading span { color: var(--faint); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.hashrate-chart { min-height: 0; margin-top: 14px; }
.hashrate-chart > p { display: grid; place-items: center; margin: 0; color: var(--faint); font-size: 12px; }
.hashrate-history .hashrate-chart > p { min-height: 175px; }
.account-hashrate-history .hashrate-chart > p { min-height: 120px; }
.hashrate-chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.hashrate-chart-legend { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-bottom: 8px; color: var(--muted); font-size: 11px; }
.hashrate-chart-legend span { display: inline-flex; align-items: center; gap: 7px; }
.hashrate-chart-legend i { width: 18px; height: 2px; border-radius: 2px; background: var(--blue); }
.hashrate-chart-legend .network i { height: 0; border-top: 2px dashed #8a93a4; background: transparent; }
.hashrate-chart-grid-line { stroke: #252b34; stroke-width: 1; vector-effect: non-scaling-stroke; }
.hashrate-chart-axis { fill: var(--faint); font: 10px var(--sans); }
.hashrate-history .hashrate-chart-axis { font-size: 16px; }
.hashrate-chart-subject { fill: none; stroke: var(--blue); stroke-linejoin: round; stroke-linecap: round; stroke-width: 2; vector-effect: non-scaling-stroke; }
.hashrate-chart-network { fill: none; stroke: #8a93a4; stroke-dasharray: 5 4; stroke-linejoin: round; stroke-linecap: round; stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.account-hashrate-history { padding: 24px 22px 22px; border-top: 1px solid var(--line); }
.account-hashrate-history .hashrate-chart-card { background: var(--panel); }
.account-hashrate-chart-grid { grid-template-columns: 1fr; }
.hashrate-chart-legend .ai i { background: #c7a8ef; }
.hashrate-chart-ai { fill: none; stroke: #c7a8ef; stroke-linejoin: round; stroke-linecap: round; stroke-width: 2; vector-effect: non-scaling-stroke; }

.proof-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.proof-card { position: relative; overflow: hidden; min-height: 0; padding: 24px 28px 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
.proof-card::after { position: absolute; top: -100px; right: -100px; width: 280px; height: 280px; border-radius: 50%; content: ""; pointer-events: none; }
.zk-card::after { background: radial-gradient(circle, rgba(103,169,255,.14), transparent 68%); }
.ai-card::after { background: radial-gradient(circle, rgba(110,214,255,.12), transparent 68%); }
.proof-head { position: relative; z-index: 1; display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 17px; }
.proof-head p { margin: 0; color: var(--faint); font-size: 11px; letter-spacing: .12em; }
.proof-icon { display: grid; place-items: center; width: 48px; height: 48px; border: 1px solid currentColor; border-radius: 50%; color: var(--blue); font: 700 13px/1 var(--sans); }
.ai-card .proof-icon { color: var(--sky); }
.proof-card dl { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 28px 0 0; }
.proof-card dt { color: var(--faint); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.proof-card dd { margin: 8px 0 0; font: 620 clamp(18px, 2vw, 27px)/1 var(--sans); letter-spacing: -.035em; }

.history-section, .account, .leaders, .usage { padding: clamp(24px, 4vw, 42px); border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
.account-heading { align-items: start; }
.account-heading form { width: min(100%, 720px); }
label { display: block; margin-bottom: 8px; color: var(--muted); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; }
.input-row { display: flex; gap: 8px; }
input {
  min-width: 0;
  flex: 1;
  height: 49px;
  padding: 0 15px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  outline: none;
  background: var(--bg);
  color: var(--ink);
  font-size: 13px;
  transition: border-color .2s, box-shadow .2s;
}
input::placeholder { color: #555b55; }
input:focus { border-color: var(--blue-soft); box-shadow: 0 0 0 3px rgba(103,169,255,.1); }
.input-row > button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  min-width: 128px;
  border: 0;
  border-radius: 8px;
  background: var(--blue);
  color: #06101f;
  font: 750 13px/1 var(--sans);
  cursor: pointer;
  transition: background .2s, transform .2s;
}
.input-row > button:hover { background: #8bc0ff; transform: translateY(-1px); }
.input-row > button:disabled { opacity: .55; cursor: wait; transform: none; }
.input-row > button b { font-size: 19px; font-weight: 400; }
.form-message { min-height: 18px; margin: 7px 0 0; color: var(--danger); font-size: 12px; }

.miner-result { overflow: hidden; margin-top: 34px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg-raised); }
.miner-result[hidden] { display: none; }
.miner-bar { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 17px 20px; border-bottom: 1px solid var(--line); }
.miner-bar > div { min-width: 0; }
.miner-bar span { display: block; color: var(--faint); font-size: 11px; letter-spacing: .13em; }
.miner-bar strong { display: block; overflow: hidden; margin-top: 4px; color: var(--muted); font-size: 12px; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
.copy-button { flex: 0 0 auto; padding: 7px 11px; border: 1px solid var(--line-strong); border-radius: 6px; background: transparent; color: var(--muted); font-size: 11px; cursor: pointer; }
.copy-button:hover { color: var(--ink); border-color: var(--muted); }
.miner-metrics { display: grid; grid-template-columns: repeat(4, 1fr); }
.miner-metrics article { display: flex; flex-direction: column; min-height: 0; padding: 18px 22px; border-right: 1px solid var(--line); }
.miner-metrics article:last-child { border: 0; }
.miner-metrics p, .miner-metrics span { margin: 0; color: var(--faint); font-size: 11px; }
.miner-metrics strong { margin: 12px 0 7px; font: 630 23px/1 var(--sans); letter-spacing: -.03em; }
.miner-metrics .metric-label-with-help {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 6px;
  white-space: nowrap;
}
.miner-metrics .balance-info {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  border: 1px solid var(--faint);
  border-radius: 50%;
  color: var(--muted);
  font: 700 9px/1 var(--sans);
  cursor: help;
}
.miner-metrics .balance-info.new-account { border-color: var(--orange); color: var(--orange); }
.miner-metrics .balance-info-tooltip {
  position: absolute;
  z-index: 8;
  top: calc(100% + 8px);
  left: -8px;
  width: min(250px, calc(100vw - 80px));
  padding: 9px 11px;
  transform: translateY(-3px);
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: var(--panel-soft);
  box-shadow: 0 10px 28px rgba(0,0,0,.35);
  color: var(--muted);
  font: 500 11px/1.45 var(--sans);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .15s ease, transform .15s ease, visibility .15s ease;
}
.miner-metrics .balance-info:hover .balance-info-tooltip,
.miner-metrics .balance-info:focus .balance-info-tooltip {
  transform: none;
  opacity: 1;
  visibility: visible;
}
.miner-metrics .balance-info:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.miner-hashrates { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.miner-hashrates > div { display: grid; grid-template-columns: 1fr auto; gap: 5px 16px; padding: 18px 22px; border-right: 1px solid var(--line); }
.miner-hashrates > div:last-child { border-right: 0; }
.miner-hashrates span { color: var(--faint); font-size: 11px; }
.miner-hashrates strong { font: 620 16px/1 var(--sans); }
.miner-hashrates small { grid-column: 1 / -1; color: var(--muted); font-size: 11px; }

.worker-section { padding: 24px 22px 22px; border-top: 1px solid var(--line); }
.worker-section-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 18px; }
.worker-section-heading h3 { margin: 0; font-size: 19px; }
.worker-section-heading p { max-width: 480px; margin: 0; color: var(--faint); font-size: 11px; text-align: right; }
.history-limit { display: flex; align-items: center; gap: 9px; margin: 0; color: var(--faint); }
.history-limit select { padding: 7px 28px 7px 9px; border: 1px solid var(--line-strong); border-radius: 6px; outline: none; background: var(--bg); color: var(--ink); font: 600 12px/1 var(--sans); }
.history-limit select:focus-visible { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(103,169,255,.1); }
.worker-list { display: grid; gap: 12px; }
.worker-empty { margin: 0; padding: 30px 16px; border: 1px dashed var(--line-strong); border-radius: 8px; color: var(--muted); text-align: center; }
.worker-card { overflow: hidden; border: 1px solid var(--line); border-radius: 9px; background: var(--panel); }
.worker-card.online { border-color: #29496d; }
.worker-card.pending { border-color: #594c29; }
.worker-card.puzzle-zk { border-left: 3px solid #4d8fe5; }
.worker-card.puzzle-ai { border-left: 3px solid #9875c7; }
.worker-card.puzzle-zk .worker-card-heading { background: rgba(103,169,255,.018); }
.worker-card.puzzle-ai .worker-card-heading { background: rgba(199,168,239,.028); }
.worker-card.overtemp { border-color: var(--orange); box-shadow: inset 0 0 0 1px rgba(255,155,85,.12); }
.worker-card.high-stale { border-color: var(--orange); box-shadow: inset 0 0 0 1px rgba(255,155,85,.12); }
.worker-card.low-uptime { border-color: var(--orange); box-shadow: inset 0 0 0 1px rgba(255,155,85,.12); }
.worker-card.gpu-loss { border-color: var(--danger); box-shadow: inset 0 0 0 1px rgba(255,111,111,.14); }
.worker-card.overtemp .worker-card-heading { background: rgba(255,155,85,.045); }
.worker-card.high-stale .worker-card-heading { background: rgba(255,155,85,.045); }
.worker-card.low-uptime .worker-card-heading { background: rgba(255,155,85,.045); }
.worker-card.gpu-loss .worker-card-heading { background: rgba(255,111,111,.055); }
.worker-card-heading { display: grid; grid-template-columns: minmax(150px, .8fr) minmax(340px, 1.5fr) auto; align-items: center; gap: 18px; padding: 13px 17px; }
.worker-card.expanded .worker-card-heading { border-bottom: 1px solid var(--line); }
.worker-card-heading > div { min-width: 0; }
.worker-identity strong, .worker-identity span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.worker-identity strong { font: 620 14px/1.2 var(--sans); }
.worker-identity span { margin-top: 5px; color: var(--faint); font-size: 11px; letter-spacing: .06em; }
.puzzle-zk .worker-identity span { color: #718dac; }
.puzzle-ai .worker-identity span { color: #9e87ba; }
.worker-card .worker-identity .worker-stale-warning { color: var(--orange); font-weight: 650; letter-spacing: .04em; }
.worker-card .worker-identity .worker-uptime-warning { color: var(--orange); font-weight: 650; letter-spacing: .04em; }
.worker-state { flex: 0 0 auto; color: var(--faint); font-size: 11px; font-weight: 500; letter-spacing: .11em; }
.worker-card.online .worker-state { color: var(--blue); }
.puzzle-ai.online .worker-state { color: #c7a8ef; }
.worker-card.pending .worker-state { color: #e4bd55; }
.worker-card.overtemp .worker-state { color: var(--orange); }
.worker-card.high-stale .worker-state { color: var(--orange); }
.worker-card.low-uptime .worker-state { color: var(--orange); }
.worker-card.gpu-loss .worker-state { color: var(--danger); }
.worker-heading-controls { display: flex; flex: 0 0 auto; align-items: center; gap: 12px; }
.worker-history-button { padding: 7px 10px; border: 1px solid var(--line-strong); border-radius: 6px; background: transparent; color: var(--muted); font-size: 11px; cursor: pointer; }
.worker-history-button:hover { border-color: var(--blue-soft); color: var(--ink); }
.worker-history-button[aria-expanded="true"] { border-color: var(--blue-soft); color: var(--ink); }
.worker-summary { display: grid; grid-template-columns: repeat(4, minmax(90px, 1fr)); }
.worker-summary > div { min-width: 0; padding: 0 14px; border-left: 1px solid var(--line); }
.worker-summary span, .worker-summary strong { display: block; }
.worker-summary span { color: var(--faint); font-size: 11px; text-transform: uppercase; }
.worker-summary strong { margin-top: 4px; font: 600 13px/1.2 var(--sans); }
.worker-gpu-wrap { overflow-x: auto; }
.worker-gpu-table { min-width: 880px; text-align: left; }
.worker-gpu-table th, .worker-gpu-table td { padding: 12px 13px; text-align: left; }
.worker-gpu-table th:nth-child(n), .worker-gpu-table td:nth-child(n) { width: auto; text-align: left; }
.worker-gpu-table td { color: var(--muted); font-size: 12px; }
.worker-gpu-table td:first-child { min-width: 190px; }
.worker-gpu-table td:first-child strong, .worker-gpu-table td:first-child span { display: block; }
.worker-gpu-table td:first-child strong { overflow: hidden; max-width: 260px; color: var(--ink); font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
.worker-gpu-table td:first-child span { margin-top: 3px; color: var(--faint); font-size: 11px; }
.worker-gpu-table tr.gpu-offline td { opacity: .55; }
.worker-gpu-table tr.overtemp td { color: var(--orange); background: rgba(255,155,85,.045); }
.worker-gpu-table tr.gpu-loss td { color: var(--danger); background: rgba(255,111,111,.055); }
.worker-gpu-table tr.overtemp .gpu-state { color: var(--orange); }
.worker-gpu-table tr.gpu-loss .gpu-state { color: var(--danger); }
.account-share-section, .account-payout-section { padding: 24px 22px 22px; border-top: 1px solid var(--line); }

.history-section { background: var(--bg-raised); }
.history-summary { margin: -18px 0 22px; color: var(--muted); font-size: 13px; }
.history-table-wrap { border: 1px solid var(--line); border-radius: 9px; background: var(--panel); }
.history-table { min-width: 920px; text-align: left; }
.history-table th:nth-child(n), .history-table td:nth-child(n) { width: auto; text-align: left; }
.history-table th, .history-table td { padding: 13px 14px; }
.history-table td { color: var(--muted); font-size: 12px; }
.history-table .puzzle-cell { color: var(--ink); font-weight: 650; }
.block-history-row.puzzle-zk { background: linear-gradient(90deg, rgba(77,143,229,.075), rgba(77,143,229,.018) 58%, transparent); }
.block-history-row.puzzle-ai { background: linear-gradient(90deg, rgba(152,117,199,.09), rgba(152,117,199,.022) 58%, transparent); }
.block-history-row.puzzle-zk:hover { background: linear-gradient(90deg, rgba(77,143,229,.13), rgba(77,143,229,.04) 58%, rgba(255,255,255,.018)); }
.block-history-row.puzzle-ai:hover { background: linear-gradient(90deg, rgba(152,117,199,.15), rgba(152,117,199,.045) 58%, rgba(255,255,255,.018)); }
.block-puzzle-badge { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-width: 52px; padding: 5px 9px; border: 1px solid var(--line-strong); border-radius: 6px; font-size: 11px; font-weight: 750; letter-spacing: .12em; }
.block-puzzle-badge::before { width: 7px; height: 7px; border-radius: 50%; background: var(--faint); content: ""; }
.block-puzzle-badge.zk { border-color: #315f8d; background: rgba(77,143,229,.11); color: #8fc1ff; }
.block-puzzle-badge.zk::before { background: #67a9ff; box-shadow: 0 0 9px rgba(103,169,255,.55); }
.block-puzzle-badge.ai { border-color: #5e4a78; background: rgba(152,117,199,.13); color: #c7a8ef; }
.block-puzzle-badge.ai::before { background: #b995e7; box-shadow: 0 0 9px rgba(185,149,231,.5); }
.history-identifier { max-width: 240px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.payout-history-table th, .payout-history-table td { white-space: nowrap; }
.payout-history-table th:first-child, .payout-batch-id { width: 130px; min-width: 130px; max-width: 130px; }
.payout-history-table th:nth-last-child(2), .payout-transaction-id { width: 240px; max-width: 240px; }
.payout-batch-id, .payout-transaction-id { overflow-wrap: anywhere; color: var(--ink) !important; font-family: var(--mono); line-height: 1.35; white-space: normal !important; user-select: text; }
.payout-batch-id { overflow-wrap: normal; white-space: nowrap !important; }
.history-badge { display: inline-flex; align-items: center; padding: 4px 7px; border: 1px solid var(--line-strong); border-radius: 999px; color: var(--muted); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.history-badge.valid, .history-badge.mined, .history-badge.online, .history-badge.paid { border-color: #315f8d; color: var(--blue); }
.history-badge.pending, .history-badge.ready { border-color: #665526; color: #e4bd55; }
.history-badge.leased { border-color: #5e4a78; color: #c7a8ef; }
.history-badge.stale, .history-badge.orphaned, .history-badge.node-down { border-color: #704242; color: var(--danger); }
.history-badge.offline, .history-badge.invalid { color: var(--faint); }
.share-history-table th, .share-history-table td { padding: 8px 12px; }
.share-history-table .history-badge { padding: 1px 5px; font-size: 10px; line-height: 1.25; }
.server-table { min-width: 900px; }
.server-table td:first-child { min-width: 210px; }
.server-name { display: block; margin-bottom: 6px; color: var(--ink); font: 620 13px/1.2 var(--sans); }
.server-height-cell strong, .server-height-cell span,
.server-stat-cell strong, .server-stat-cell span { display: block; }
.server-height-cell strong, .server-stat-cell strong { color: var(--ink); font: 620 13px/1.2 var(--sans); }
.server-height-cell span, .server-stat-cell span { margin-top: 5px; color: var(--faint); font-size: 11px; }
.server-lagging { color: var(--orange) !important; }
.server-lagging strong { color: var(--orange); }

.leaders { background: var(--bg-raised); }
.leaderboard-stack { display: grid; gap: 34px; }
.leaderboard-panel + .leaderboard-panel { padding-top: 34px; border-top: 1px solid var(--line); }
.leaderboard-panel-heading { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.leaderboard-panel-heading h3 { margin: 0; font-size: 18px; }
.leaderboard-lane { display: grid; place-items: center; width: 34px; height: 26px; border: 1px solid currentColor; border-radius: 6px; color: var(--blue); font: 750 11px/1 var(--sans); }
.leaderboard-lane.ai { color: var(--sky); }

.usage { background: var(--bg-raised); }
.usage-heading { align-items: center; }
.usage-heading h2 + p { margin: 10px 0 0; color: var(--faint); font-size: 12px; }
.usage-heading-actions { display: flex; flex-wrap: wrap; align-items: stretch; justify-content: flex-end; gap: 10px; }
.bundle-button { min-height: 44px; gap: 9px; padding-inline: 18px; border-color: var(--blue-soft); color: var(--ink); }
.button-icon { width: 16px; height: 16px; flex: 0 0 auto; fill: none; stroke: var(--blue); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.discord-button .button-icon { fill: #8c9eff; stroke: none; }
.usage-requirements { display: grid; grid-template-columns: repeat(3, 1fr); overflow: hidden; margin-bottom: 34px; border: 1px solid var(--line); border-radius: 9px; background: var(--panel); }
.usage-requirements > div { min-width: 0; padding: 18px; border-right: 1px solid var(--line); }
.usage-requirements > div:last-child { border-right: 0; }
.usage-requirements span, .usage-requirements strong { display: block; }
.usage-requirements span { color: var(--faint); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; }
.usage-requirements strong { margin-top: 7px; font: 620 13px/1.35 var(--sans); }
.usage-requirements a { color: var(--blue); }
.usage-requirements a:hover { color: var(--ink); }
.usage-performance { margin-bottom: 34px; padding-top: 25px; border-top: 1px solid var(--line); }
.usage-performance-heading { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 12px; }
.usage-performance-heading h3 { margin: 0; font-size: 18px; }
.usage-performance-heading p { max-width: 650px; margin: 0; color: var(--muted); font-size: 11px; text-align: right; }
.zk-gpu-performance-table { min-width: 520px; }
.zk-gpu-performance-table th, .zk-gpu-performance-table td { width: auto; padding: 11px 14px; text-align: right; }
.zk-gpu-performance-table th:first-child, .zk-gpu-performance-table td:first-child { width: auto; color: var(--ink); text-align: left; }
.zk-gpu-performance-table td { color: var(--muted); font-size: 12px; }
.usage-step { padding: 25px 0; border-top: 1px solid var(--line); }
.usage-step > header { display: grid; grid-template-columns: 36px 1fr; align-items: start; gap: 13px; margin-bottom: 18px; }
.usage-step > header > span { display: grid; place-items: center; width: 32px; height: 25px; border: 1px solid var(--line-strong); border-radius: 6px; color: var(--blue); font: 700 10px/1 var(--sans); }
.usage-step h3 { margin: 1px 0 0; font-size: 18px; }
.usage-step header p { margin: 6px 0 0; color: var(--muted); font-size: 12px; }
.usage-downloads { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; margin-left: 49px; }
.usage-downloads .download-button { min-width: 0; }
.usage pre { overflow-x: auto; margin: 0 0 0 49px; padding: 15px 17px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); color: var(--ink); font: 12px/1.6 var(--mono); }
.usage code { font-family: var(--mono); }
.command-block + .command-block { margin-top: 12px; }
.command-block > span { display: block; margin: 0 0 6px 49px; color: var(--faint); font-size: 10px; letter-spacing: .1em; }
.usage-callout { margin: 17px 0 0 49px; color: var(--muted); font-size: 12px; line-height: 1.55; }
.usage-notes dl { margin: 0 0 0 49px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); }
.usage-notes dl > div { display: grid; grid-template-columns: minmax(190px, .6fr) 1fr; gap: 22px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.usage-notes dl > div:last-child { border-bottom: 0; }
.usage-notes dt { color: var(--ink); }
.usage-notes dd { margin: 0; color: var(--muted); }
.usage-changelog ul { display: grid; gap: 8px; margin: 0 0 0 49px; padding-left: 18px; color: var(--muted); }
.usage-changelog strong { color: var(--ink); }
.usage-footer-links { display: flex; flex-wrap: wrap; gap: 10px 24px; padding: 20px 0 0 49px; border-top: 1px solid var(--line); }
.usage-footer-links a { color: var(--blue); font-size: 12px; }
.usage-footer-links a:hover { color: var(--ink); }
.table-wrap { overflow-x: auto; }
table { width: 100%; min-width: 690px; border-collapse: collapse; text-align: right; }
th, td { padding: 16px 12px; border-bottom: 1px solid var(--line); font-weight: 400; }
th { color: var(--faint); font-size: 11px; letter-spacing: .11em; text-transform: uppercase; }
th:nth-child(1), td:nth-child(1) { width: 64px; color: var(--faint); text-align: left; }
th:nth-child(2), td:nth-child(2) { text-align: left; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr { transition: background .15s; }
tbody tr:hover { background: rgba(255,255,255,.018); }
.miner-link { max-width: 410px; padding: 0; overflow: hidden; border: 0; background: transparent; color: var(--ink); font-size: 12px; text-align: left; text-overflow: ellipsis; white-space: nowrap; cursor: pointer; }
.miner-link:hover { color: var(--blue); }
.online-count { display: inline-flex; align-items: center; justify-content: flex-end; gap: 8px; }
.online-count::before { width: 6px; height: 6px; border-radius: 50%; background: var(--faint); content: ""; }
.online-count.active::before { background: var(--blue); box-shadow: 0 0 8px rgba(103,169,255,.5); }
.table-state { height: 150px; color: var(--muted) !important; text-align: center !important; }

footer {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 24px;
  min-height: 116px;
  border-top: 1px solid var(--line);
  color: var(--faint);
  font-size: 11px;
}
.footer-brand { opacity: .72; }
.footer-discord { display: inline-flex; align-items: center; gap: 7px; color: var(--muted); font-size: 11px; }
.footer-discord:hover { color: var(--ink); }
.footer-discord .button-icon { fill: #8c9eff; stroke: none; }
.footer-update { display: flex; gap: 12px; }
.footer-update strong { color: var(--muted); font-weight: 500; }
footer > span { justify-self: end; }

button:focus-visible, a:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }

@media (max-width: 980px) {
  .nav-links { gap: 12px; font-size: 13px; }
  .hero { grid-template-columns: 1fr; gap: 28px; }
  .terms { width: min(100%, 620px); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .metric:nth-child(2) { border-right: 0; }
  .metric:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .pool-stats .metric:nth-child(3n) { border-right: 1px solid var(--line); }
  .pool-stats .metric:nth-child(even) { border-right: 0; }
  .pool-stats .metric:nth-child(-n+4) { border-bottom: 1px solid var(--line); }
  .proof-card dl { grid-template-columns: repeat(3, 1fr); }
  .hashrate-chart-grid { grid-template-columns: 1fr; }
  .account-heading { display: grid; grid-template-columns: 1fr; }
  .account-heading form { width: 100%; }
  .miner-metrics { grid-template-columns: repeat(2, 1fr); }
  .miner-metrics article:nth-child(2) { border-right: 0; }
  .miner-metrics article:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .worker-section-heading { align-items: start; flex-direction: column; gap: 8px; }
  .worker-section-heading p { text-align: left; }
}

@media (max-width: 760px) {
  .topbar, main, footer { width: min(100% - 28px, 1220px); }
  .topbar { grid-template-columns: 1fr auto; }
  .nav-links { display: none; }
  main { padding-top: 55px; }
  h1 { font-size: clamp(40px, 12vw, 64px); }
  .overview, .proofs, .hashrate-history, .history-section, .account, .leaders, .usage { margin-top: 58px; }
  .section-heading { align-items: start; flex-direction: column; gap: 14px; }
  .section-heading > p { text-align: left; }
  .usage-performance-heading { align-items: start; flex-direction: column; gap: 6px; }
  .usage-performance-heading p { text-align: left; }
  .proof-grid { grid-template-columns: 1fr; }
  .proof-card { min-height: 0; }
  .history-section, .account, .leaders, .usage { padding: 22px; }
  .hashrate-chart-card { padding: 17px; }
  .miner-hashrates { grid-template-columns: 1fr; }
  .miner-hashrates > div { border-right: 0; border-bottom: 1px solid var(--line); }
  .miner-hashrates > div:last-child { border-bottom: 0; }
  .worker-card-heading { grid-template-columns: minmax(0, 1fr) auto; align-items: start; }
  .worker-summary { grid-column: 1 / -1; grid-row: 2; grid-template-columns: repeat(4, 1fr); }
  .worker-summary > div:first-child { padding-left: 0; border-left: 0; }
  .worker-heading-controls { align-items: end; flex-direction: column; }
  .usage-downloads { grid-template-columns: 1fr; }
  footer { grid-template-columns: 1fr auto auto; }
}

@media (max-width: 510px) {
  .topbar { min-height: 68px; }
  h1 { font-size: clamp(36px, 11vw, 54px); }
  .status { padding-inline: 9px; }
  .hero-actions { display: grid; grid-template-columns: 1fr; }
  .usage-heading-actions { width: 100%; flex-direction: column; }
  .download-button { min-width: 0; }
  .usage-button { min-height: 44px; }
  .terms { padding: 20px; }
  .stats { grid-template-columns: 1fr; }
  .metric { min-height: 142px; border-right: 0; border-bottom: 1px solid var(--line); }
  .pool-stats .metric:nth-child(n) { border-right: 0; border-bottom: 1px solid var(--line); }
  .metric:last-child { border-bottom: 0; }
  .pool-stats .metric:last-child { border-bottom: 0; }
  .input-row { flex-direction: column; }
  .input-row > button { min-height: 46px; }
  .miner-metrics { grid-template-columns: 1fr; }
  .miner-metrics article { min-height: 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .miner-metrics article:last-child { border-bottom: 0; }
  .proof-card dl { grid-template-columns: 1fr 1fr; margin-top: 32px; }
  .proof-head { grid-template-columns: auto 1fr; }
  .usage-requirements { grid-template-columns: 1fr; }
  .usage-requirements > div:nth-child(n) { border-right: 0; border-bottom: 1px solid var(--line); }
  .usage-requirements > div:last-child { border-bottom: 0; }
  .usage-downloads, .usage pre, .usage-notes dl, .usage-changelog ul, .usage-callout { margin-left: 0; }
  .command-block > span { margin-left: 0; }
  .usage-notes dl > div { grid-template-columns: 1fr; gap: 6px; }
  .usage-footer-links { padding-left: 0; }
  .miner-bar { align-items: start; flex-direction: column; }
  .account-hashrate-history { padding-inline: 12px; }
  .hashrate-chart-card { padding: 14px; }
  .hashrate-chart { min-height: 0; overflow-x: auto; scrollbar-width: thin; }
  .hashrate-chart svg { width: 560px; max-width: none; }
  .footer-update { gap: 6px; font-size: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
