/* Skynet Blake2B Pool. Orange = work and rewards, blue = chain and network, green = live status. */
:root {
  --bg: #0A0D0C;
  --panel: #111615;
  --line: #26312E;
  --line-soft: #1C2523;
  --line-strong: #3A4744;
  --text: #E8EFEC;
  --text-2: #C9D6D1;
  --muted: #93A39E;
  --dim: #7B8C87;
  --orange: #FF9F1C;
  --blue: #3B8BEB;
  --green: #6EE7A0;
  --display: 'Chakra Petch', 'Segoe UI', sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;
  --sans: 'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }
html { background: var(--bg); }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--sans); font-size: 15px; line-height: 1.45; }
a { color: var(--text); }
a:hover { color: var(--orange); }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
[hidden] { display: none !important; }

.wrap { max-width: 1280px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 40px) 64px; display: flex; flex-direction: column; gap: 32px; }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.orange { color: var(--orange); }
.blue { color: var(--blue); }
.green { color: var(--green); }
.bg-orange { background: var(--orange); }
.bg-blue { background: var(--blue); }
.bg-green { background: var(--green); }

/* Header */
.top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 16px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.brand { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; text-decoration: none; }
.brand:hover { color: var(--text); }
.mark { display: inline-flex; gap: 7px; padding: 0 3px; }
.mark span, .diamond { display: inline-block; width: 11px; height: 11px; transform: rotate(45deg); flex: none; }
.diamond.small { width: 9px; height: 9px; }
.wordmark { font-family: var(--display); font-weight: 700; font-size: 22px; letter-spacing: 0.04em; }
.wordmark span { font-weight: 500; color: var(--muted); }
.chip { display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; padding: 5px 10px; border: 1px solid var(--line); color: var(--muted); white-space: nowrap; }
.chip.solid { background: var(--text); color: var(--bg); border-color: var(--text); font-weight: 600; }
.chip.live { color: var(--text); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); flex: none; }
.dot.warn { background: var(--orange); }
.dot.off { background: var(--dim); }
.nav { display: flex; flex-wrap: wrap; gap: 2px; }
.nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 10px; text-decoration: none; font-weight: 500; }
.status { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }

/* Shared pieces */
.label { margin: 0; font-family: var(--display); font-weight: 600; font-size: 14px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.panel { background: var(--panel); border: 1px solid var(--line); padding: 28px; display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.panel-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px 24px; }
.hint { font-family: var(--mono); font-size: 13px; color: var(--muted); }
.row { display: flex; flex-wrap: wrap; gap: 24px; }
.grow { flex: 999 1 560px; min-width: 0; }
.side { flex: 1 1 320px; min-width: 0; }
.scroll-x { overflow-x: auto; }
.empty { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; padding: 28px; border: 1px dashed var(--line-strong); }
.empty-title { font-family: var(--display); font-weight: 600; font-size: 22px; }
.banner { padding: 12px 16px; border: 1px solid var(--orange); color: var(--orange); font-family: var(--mono); font-size: 14px; }

/* Hero */
.hero { display: flex; flex-wrap: wrap; gap: 32px 48px; padding-top: 16px; }
.hero-main { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.hero-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 24px; }
.big { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 18px; }
.big-number { font-family: var(--display); font-weight: 700; font-size: clamp(72px, 12vw, 136px); line-height: 0.9; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.big-unit { font-family: var(--display); font-weight: 600; font-size: clamp(24px, 3vw, 36px); color: var(--orange); }
.subline { color: var(--muted); font-size: 16px; }
.ranges { display: inline-flex; border: 1px solid var(--line); }
.ranges button { min-width: 52px; min-height: 44px; padding: 0 12px; background: transparent; border: 0; border-right: 1px solid var(--line); color: var(--muted); font-family: var(--mono); font-size: 13px; cursor: pointer; }
.ranges button:last-child { border-right: 0; }
.ranges button[aria-pressed="true"] { background: var(--text); color: var(--bg); font-weight: 600; }

/* Bar chart */
.chart { display: flex; gap: 12px; }
.axis-y { display: flex; flex-direction: column; justify-content: space-between; height: 200px; min-width: 40px; white-space: nowrap; text-align: right; font-family: var(--mono); font-size: 12px; color: var(--dim); }
.chart-body { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.bars { display: flex; align-items: flex-end; gap: 3px; height: 200px; border-bottom: 1px solid var(--line); border-top: 1px dashed var(--line-soft); }
.bars > div { flex: 1 1 0; min-width: 2px; background: var(--orange); }
.bars > div.now { background: var(--text); }
.bars > div.gap { background: var(--line-soft); height: 2px !important; }
.axis-x { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 12px; color: var(--dim); }

/* Stat list */
.stats { display: flex; flex-direction: column; }
.stat { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.stat span:first-child { color: var(--muted); }
.stat span:last-child { font-family: var(--mono); font-weight: 500; font-size: 17px; font-variant-numeric: tabular-nums; text-align: right; }
.lookup { display: flex; flex-direction: column; gap: 8px; padding-top: 20px; }
.lookup label { font-family: var(--display); font-weight: 600; font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.lookup div { display: flex; flex-wrap: wrap; gap: 8px; }
.lookup input { flex: 1 1 180px; min-width: 0; min-height: 46px; padding: 0 14px; background: var(--panel); border: 1px solid var(--line-strong); color: var(--text); font-family: var(--mono); font-size: 14px; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 18px; background: var(--orange); color: #141000; border: 0; font-family: var(--sans); font-size: 15px; font-weight: 600; text-decoration: none; cursor: pointer; }
.btn:hover { color: #141000; filter: brightness(1.08); }
.btn-ghost { flex: none; min-width: 76px; min-height: 44px; padding: 0 12px; background: transparent; border: 1px solid var(--line-strong); color: var(--text); font-family: var(--mono); font-size: 13px; cursor: pointer; }
.btn-ghost:hover { border-color: var(--text); }

/* Coinbase split */
.split-bar { display: flex; height: 40px; gap: 2px; }
.split-bar > div { min-width: 3px; }
.legend-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 16px; padding: 11px 0; border-bottom: 1px solid var(--line-soft); font-family: var(--mono); font-size: 14px; font-variant-numeric: tabular-nums; }
.legend-row .who { display: inline-flex; align-items: center; gap: 12px; min-width: 0; overflow-wrap: anywhere; }
.legend-row .nums { display: inline-flex; gap: 24px; }
.swatch { flex: none; width: 12px; height: 12px; }
.kv { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line-soft); }
.kv:last-child { border-bottom: 0; }
.kv span:first-child { color: var(--muted); }
.kv span:last-child { font-family: var(--mono); text-align: right; overflow-wrap: anywhere; }
.headline { font-family: var(--display); font-weight: 600; font-size: 30px; line-height: 1.1; }
.block-height { font-family: var(--display); font-weight: 700; font-size: 40px; line-height: 1; font-variant-numeric: tabular-nums; }

/* Modes */
.modes { display: flex; flex-wrap: wrap; gap: 16px; }
.mode { flex: 1 1 280px; min-width: 0; padding: 26px 28px; background: var(--panel); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 16px; }
.mode.recommended.c-green { border-color: var(--green); }
.mode.recommended.c-blue { border-color: var(--blue); }
.mode.recommended.c-orange { border-color: var(--orange); }
.mode-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; }
.mode-name { display: inline-flex; align-items: center; gap: 12px; font-family: var(--display); font-weight: 600; font-size: 22px; }
.mode-fee { display: flex; align-items: baseline; gap: 10px; }
.mode-fee b { font-family: var(--display); font-weight: 700; font-size: 64px; line-height: 0.95; font-variant-numeric: tabular-nums; }
.mode-fee span { font-family: var(--mono); font-size: 13px; color: var(--muted); }
.mode p { margin: 0; color: var(--text-2); }
.mode .kv { border-bottom: 0; border-top: 1px solid var(--line-soft); padding: 9px 0; }
.mode .kv span:last-child { font-size: 14px; }
.tag { font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; padding: 4px 9px; color: #06140C; font-weight: 600; }
.c-green .mode-fee b, .c-green.txt { color: var(--green); }
.c-blue .mode-fee b, .c-blue.txt { color: var(--blue); }
.c-orange .mode-fee b, .c-orange.txt { color: var(--orange); }
.c-green .diamond, .c-green .tag { background: var(--green); }
.c-blue .diamond, .c-blue .tag { background: var(--blue); }
.c-orange .diamond, .c-orange .tag { background: var(--orange); }
.mode.soon { border-style: dashed; }
.mode.soon .mode-fee b { color: var(--muted); }
.mode .tag.soon-tag { background: transparent; border: 1px solid var(--line-strong); color: var(--text); }

/* Tables built from grids */
.table { display: flex; flex-direction: column; font-family: var(--mono); font-size: 14px; font-variant-numeric: tabular-nums; }
.thead, .tr { display: grid; column-gap: 16px; align-items: center; }
.thead { padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--dim); }
.tr { padding: 13px 0; border-bottom: 1px solid var(--line-soft); }
.t-leader { min-width: 720px; }
.t-leader .thead, .t-leader .tr { grid-template-columns: 40px minmax(170px, 2fr) repeat(5, minmax(88px, 1fr)); }
.t-blocks { min-width: 860px; }
.t-blocks .thead, .t-blocks .tr { grid-template-columns: 100px 120px minmax(170px, 1.2fr) 110px minmax(200px, 1.6fr) 110px; }
.t-payouts { min-width: 700px; }
.t-payouts .thead, .t-payouts .tr { grid-template-columns: 110px 130px 140px minmax(220px, 1fr) 110px; }
.state { display: inline-flex; align-items: center; gap: 8px; }
.slot { display: grid; grid-template-columns: 40px minmax(0, 1fr); column-gap: 16px; align-items: center; margin-top: 8px; padding: 13px 12px; border: 1px dashed var(--line-strong); color: var(--muted); }
.progress { display: flex; align-items: center; gap: 12px; }
.track { flex: 1 1 0; height: 8px; background: var(--line-soft); display: flex; }
.track > span { min-width: 2px; background: var(--blue); }
.small { font-size: 13px; }
.who-tag { color: var(--muted); font-size: 12px; margin-left: 8px; }

/* Connect */
.field { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line-soft); }
.field > span { display: flex; flex-direction: column; min-width: 0; }
.field small { font-size: 13px; color: var(--muted); }
.field b { font-family: var(--mono); font-weight: 400; overflow-wrap: anywhere; }
pre.code { margin: 0; padding: 14px; background: var(--bg); border: 1px solid var(--line); font-family: var(--mono); font-size: 13px; line-height: 1.6; color: var(--text-2); overflow-x: auto; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips span { font-family: var(--mono); font-size: 12px; padding: 5px 9px; border: 1px solid var(--line); }
.chips span.hl { border-color: var(--orange); color: var(--orange); }

/* Tiles */
.tiles { display: flex; flex-wrap: wrap; gap: 16px; }
.tile { flex: 1 1 200px; padding: 18px 20px; border: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px; }
.tile .k { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; color: var(--muted); }
.tile .v { font-family: var(--mono); font-weight: 600; font-size: 24px; font-variant-numeric: tabular-nums; }
.tile.big-tile { flex: 1 1 220px; padding: 22px 24px; background: var(--panel); gap: 8px; }
.tile.big-tile .v { display: flex; align-items: baseline; gap: 8px; font-family: var(--display); font-weight: 700; font-size: 44px; line-height: 1; }
.tile.big-tile .v small { font-weight: 600; font-size: 18px; }

/* Miner page */
.address { font-family: var(--mono); font-weight: 500; font-size: clamp(18px, 2.6vw, 30px); line-height: 1.25; overflow-wrap: anywhere; }

.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }

@media (prefers-reduced-motion: no-preference) {
  .bars > div { transition: height 0.4s ease; }
  .track > span { transition: width 0.4s ease; }
}
