:root {
  --bg: #0b1220;
  --panel: #121a2b;
  --border: #243049;
  --text: #e8eefc;
  --muted: #8b9bb8;
  --accent: #3dd6c6;
  --accent2: #6ea8ff;
  --warn: #f0b429;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --sans: system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: var(--sans);
  background: radial-gradient(1200px 600px at 10% -10%, #1a2744 0%, var(--bg) 55%);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
a { color: var(--accent2); text-decoration: none; }
a:hover { text-decoration: underline; }

.top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 0.75rem 1rem;
  align-items: center;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border);
  background: rgba(11, 18, 32, 0.85);
  backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 10;
}
.brand a {
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--accent);
  letter-spacing: 0.04em;
}
.brand .tag {
  margin-left: 0.75rem;
  color: var(--muted);
  font-size: 0.85rem;
}
.lifetime-paid-row {
  display: grid;
  grid-template-columns: minmax(8.5rem, 1fr) minmax(12rem, 28rem) minmax(8.5rem, 1fr);
  align-items: center;
  gap: 0.5rem 0.65rem;
  margin: 0.1rem 0 0.25rem;
}
.lifetime-paid-tile {
  padding: 0.45rem 0.6rem;
  border-radius: 10px;
  border: 1px solid rgba(110, 168, 255, 0.35);
  background: linear-gradient(135deg, rgba(110, 168, 255, 0.14), rgba(61, 214, 198, 0.08));
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  /* Keep cards visible; don't let the wordmark steal the row. */
  min-height: 6.8rem;
}
.lifetime-paid-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  line-height: 0;
  min-width: 0;
}
.lifetime-brand-logo {
  /* Wordmark is ~4:1 — 2× prior height; side columns still reserved. */
  width: 100%;
  height: auto;
  max-height: 6.8rem;
  object-fit: contain;
  object-position: center;
  display: block;
}
.lifetime-paid-label {
  font-size: 0.7rem;
  color: #c5d4f0;
  margin-bottom: 0.1rem;
  font-weight: 600;
}
.lifetime-paid-value {
  font-size: 1rem;
  font-weight: 750;
  color: var(--text);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.01em;
  line-height: 1.1;
}
.lifetime-paid-sub {
  margin-top: 0.08rem;
  font-size: 0.65rem;
}
#poolView > .muted {
  margin-top: 0.3rem;
  margin-bottom: 0.55rem;
}
@media (max-width: 720px) {
  .lifetime-paid-row {
    grid-template-columns: 1fr 1fr;
    gap: 0.4rem;
  }
  .lifetime-paid-brand {
    grid-column: 1 / -1;
    order: -1;
  }
  .lifetime-brand-logo {
    max-height: 5.6rem;
    width: min(100%, 360px);
    margin: 0 auto;
  }
}
.promo-stack {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin: 0 0 0.35rem;
}
.fee-promo,
.bonus-promo {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: center;
  gap: 0.35rem 0.75rem;
  margin: 0;
  padding: 0.85rem 1.15rem;
  border-radius: 12px;
  text-align: center;
  line-height: 1.35;
}
.fee-promo {
  border: 1px solid rgba(61, 214, 198, 0.45);
  background: linear-gradient(135deg, rgba(61, 214, 198, 0.18), rgba(91, 141, 239, 0.1));
  color: #b8f7ef;
}
.fee-promo-main,
.bonus-promo-main {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}
.fee-promo strong {
  color: #e7fffb;
  font-weight: 800;
  font-size: 1.15em;
}
.fee-promo-aside,
.bonus-promo-aside {
  color: var(--muted);
  font-weight: 500;
  font-size: 1.05rem;
}
.bonus-promo {
  border: 1px solid rgba(240, 180, 41, 0.5);
  background: linear-gradient(135deg, rgba(240, 180, 41, 0.16), rgba(244, 162, 97, 0.1));
  color: #ffe6a3;
}
.bonus-promo strong {
  color: #ffe08a;
  font-weight: 800;
  font-size: 1.15em;
}
.bonus-spots {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.35rem 0.45rem;
  width: 100%;
  margin-top: 0.35rem;
}
.bonus-spot {
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  border: 1.5px solid rgba(240, 180, 41, 0.65);
  background: transparent;
  box-sizing: border-box;
}
.bonus-spot.claimed {
  background: #f0b429;
  border-color: #ffe08a;
  box-shadow: 0 0 0 2px rgba(240, 180, 41, 0.18);
}
.bonus-spots-label {
  margin-left: 0.35rem;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 600;
}
.bonus-spots-label strong {
  color: #ffe08a;
  font-size: 1em;
}
@media (max-width: 720px) {
  .fee-promo,
  .bonus-promo {
    padding: 0.75rem 0.9rem;
  }
  .fee-promo-main,
  .bonus-promo-main {
    font-size: 1.2rem;
    width: 100%;
  }
  .fee-promo-aside,
  .bonus-promo-aside {
    font-size: 0.95rem;
    width: 100%;
  }
}
.health-strip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  font-size: 0.78rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}
.health-strip:hover { text-decoration: none; filter: brightness(1.08); }
.health-ok {
  border-color: rgba(80, 180, 120, 0.45);
  background: rgba(80, 180, 120, 0.12);
  color: #7ddea8;
}
.health-degraded {
  border-color: rgba(240, 180, 41, 0.5);
  background: rgba(240, 180, 41, 0.14);
  color: #ffc14d;
}
.health-down {
  border-color: rgba(232, 93, 93, 0.55);
  background: rgba(232, 93, 93, 0.16);
  color: #ff8e8e;
}
.health-unknown {
  color: var(--muted);
}
.snap-freshness {
  display: inline-flex;
  align-items: center;
  font-size: 0.75rem;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  border: 1px dashed var(--border);
  white-space: nowrap;
  cursor: help;
}

.snap-freshness-inline {
  font-size: 0.9em;
  opacity: 0.85;
}
@media (max-width: 720px) {
  .health-strip {
    order: 3;
    width: 100%;
    justify-content: center;
  }
  .snap-freshness {
    order: 4;
    width: 100%;
    justify-content: center;
  }
}
.lookup {
  display: flex;
  gap: 0.5rem;
  flex: 1;
  max-width: 520px;
  justify-content: flex-end;
}
.lookup input {
  flex: 1;
  min-width: 180px;
  padding: 0.55rem 0.75rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--panel);
  color: var(--text);
  font-family: var(--mono);
  font-size: 0.9rem;
}
.lookup button {
  padding: 0.55rem 0.9rem;
  border-radius: 8px;
  border: 0;
  background: var(--accent);
  color: #04221f;
  font-weight: 600;
  cursor: pointer;
}
.lookup button:hover { filter: brightness(1.08); }

main { padding: 1.25rem; max-width: 1100px; width: 100%; margin: 0 auto; flex: 1; }
h1 { margin: 0 0 0.5rem; font-size: 1.6rem; }
h2 { margin: 1.25rem 0 0.65rem; font-size: 1.1rem; }
.muted { color: var(--muted); font-weight: 400; }

/* Dual-path work: datum on top, sv1(…) one line under */
.work-with-sv1 {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.15;
  font-variant-numeric: tabular-nums;
}
.work-datum-line {
  white-space: nowrap;
}
.sv1-work-paren {
  display: block;
  white-space: nowrap;
  font-size: 0.72em;
  font-weight: 400;
  letter-spacing: -0.01em;
  margin-top: 0.05em;
}
/* Dual-path ~H/s: total+unit on one line, then sv1(%) under */
.hs-with-sv1 {
  align-items: flex-end;
}
.hs-with-sv1 .hs-stack {
  align-items: flex-end;
}
.hs-with-sv1 .sv1-work-paren {
  text-align: right;
}

/* ~H/s: number + unit on one line (e.g. 34.02 TH/s); sv1(%) may sit under via .work-with-sv1 */
.hs-stack {
  display: inline-flex;
  flex-direction: row;
  align-items: baseline;
  gap: 0.28em;
  line-height: 1.15;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.hs-num {
  font-weight: 600;
}
.hs-unit {
  font-size: 0.85em;
  font-weight: 500;
  color: var(--muted, #94a3b8);
  letter-spacing: 0.02em;
}

/* Gateway ✓/⚠ before address — keep on one line */
.addr-cell {
  white-space: nowrap;
}
.addr-with-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  white-space: nowrap;
  max-width: 100%;
}
.addr-with-badge > a {
  overflow: hidden;
  text-overflow: ellipsis;
}
.addr-with-badge .cb-type-ico {
  margin-left: 0;
  flex: 0 0 auto;
}
.addr-nick-badges {
  margin-left: 0.15rem;
}
.nick-extra-addrs {
  font-size: 0.72em;
  font-weight: 600;
  margin-left: 0.15rem;
  white-space: nowrap;
}

/* Nickname tags before name — one line */
td.nick-cell {
  max-width: 14rem;
  vertical-align: middle;
}
.nick-with-badges {
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  white-space: nowrap;
  max-width: 100%;
  vertical-align: middle;
}
.nick-with-badges .nick-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}
@media (max-width: 900px) {
  td.nick-cell { max-width: 7rem; }
}


#userSubtitle { margin: 0 0 0.35rem; font-size: 0.9rem; }

.cards {
  display: grid;
  /* 6 cards → 3+3 keeps related pairs adjacent (network/pool, finds/miners, blocks/window). */
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin-bottom: 0.25rem;
}
@media (max-width: 860px) {
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 480px) {
  .cards { grid-template-columns: 1fr; }
}
.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.9rem 1rem;
}
.card .label { color: var(--muted); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.04em; }
.card .value { margin-top: 0.35rem; font-size: 1.15rem; font-weight: 600; font-variant-numeric: tabular-nums; word-break: break-all; }
.card .value.mono { font-family: var(--mono); font-size: 0.95rem; }
.card .card-note {
  margin-top: 0.4rem;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: 0.01em;
}
.card-split {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 0.35rem;
  min-height: 1.35em;
}
.card-split .split-cell {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1.15;
  min-width: 0;
}
.card-split .split-n {
  font-size: 1.15rem;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}
.card-split .split-luck {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.72em;
  font-weight: 600;
  color: #9ca3af;
  letter-spacing: 0.01em;
}
.card-split .split-k {
  margin-top: 0.12rem;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}
.card-split .split-sep {
  width: 1px;
  align-self: stretch;
  background: var(--border);
  opacity: 0.9;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 1.25rem;
}
@media (max-width: 860px) {
  .grid-2 { grid-template-columns: 1fr; }
}

/* Contributors full-width, recent blocks stacked underneath */
.stack-panels {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-top: 0.25rem;
}
.recent-blocks-panel {
  margin-top: 0.5rem;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--panel);
}
.table-more {
  margin: 0.45rem 0 0;
  font-size: 0.88rem;
}
.table-more button {
  background: transparent;
  border: 1px solid var(--border, #333);
  color: var(--accent, #3dd6c6);
  border-radius: 6px;
  padding: 0.3rem 0.7rem;
  cursor: pointer;
  font: inherit;
}
.table-more button:hover {
  background: rgba(61, 214, 198, 0.1);
}
.worker-plus {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.25rem;
  height: 1.25rem;
  margin-left: 0.15rem;
  padding: 0;
  border: 1px solid var(--border, #333);
  border-radius: 4px;
  background: rgba(61, 214, 198, 0.08);
  color: var(--accent, #3dd6c6);
  font-size: 0.85rem;
  line-height: 1;
  cursor: pointer;
}
.worker-plus:hover { background: rgba(61, 214, 198, 0.18); }
tr.worker-sub td {
  background: rgba(255,255,255,0.02);
  font-size: 0.86rem;
  padding-top: 0.35rem;
  padding-bottom: 0.35rem;
}
.contrib-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.45rem 1rem;
  margin: 0.35rem 0 0.65rem;
  font-size: 0.85rem;
}
.contrib-sort-bar {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.75rem;
  align-items: center;
}
.contrib-sort-bar[hidden] {
  display: none !important;
}
.contrib-sort-bar label {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  white-space: nowrap;
}
.contrib-sort-bar select,
.contrib-sort-sel {
  font: inherit;
  background: var(--panel, #1a1a1a);
  color: inherit;
  border: 1px solid var(--border, #333);
  border-radius: 4px;
  padding: 0.2rem 0.4rem;
}
/* Nick groups used to get a teal wash + heavier weight — looked selected/tall.
   Keep them visually equal to normal rows; height still grows when dual-path
   cells stack datum + sv1(…) (same as any dual-path address row). */
tr.nick-group td {
  background: transparent;
  font-weight: inherit;
}
tr.nick-sub td {
  background: transparent;
}
.coinbaser-heading {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.15rem;
  margin: 0 0 0.25rem;
}
.coinbaser-star,
.card-tip-star {
  margin-left: 0.1rem;
  color: var(--muted, #94a3b8);
  font-weight: 700;
  font-size: 0.95em;
  cursor: help;
  user-select: none;
}
.coinbaser-star:hover,
.coinbaser-star.tip-pinned,
.card-tip-star:hover,
.card-tip-star.tip-pinned {
  color: var(--accent, #3dd6c6);
}
.card .label .card-tip-star {
  font-size: 0.9em;
}
.coinbaser-note {
  margin: 0 0 0.35rem;
  font-size: 0.88rem;
}
.coinbaser-pie-wrap {
  /* Tall enough that left-side names can spread instead of stacking tight. */
  width: 100%;
  max-width: none;
  margin: 0.15rem 0 0.35rem;
  position: relative;
  height: 480px;
  padding: 0;
}
@media (min-width: 900px) {
  .coinbaser-pie-wrap {
    height: 560px;
  }
}
@media (max-width: 640px) {
  .coinbaser-pie-wrap {
    height: 380px;
  }
}
.coinbaser-pie-wrap canvas {
  width: 100% !important;
  height: 100% !important;
}
.worker-chart-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 1rem;
  margin: 0.35rem 0 0.5rem;
  font-size: 0.85rem;
}
.worker-chart-filters label {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  cursor: pointer;
  user-select: none;
}
table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
th, td { padding: 0.55rem 0.75rem; text-align: left; border-bottom: 1px solid var(--border); }
th { color: var(--muted); font-weight: 600; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.03em; }
td.mono, th.mono { font-family: var(--mono); }
tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: rgba(110, 168, 255, 0.06); }

.footnote {
  color: var(--muted);
  font-size: 0.85rem;
  margin-top: 1.25rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
}
.join.box {
  margin-top: 1.25rem;
  padding: 1rem 1.1rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--panel);
}
.join.box pre {
  overflow-x: auto;
  font-family: var(--mono);
  font-size: 0.8rem;
  background: #0a101c;
  padding: 0.75rem;
  border-radius: 8px;
  white-space: pre-wrap;
  word-break: break-all;
}

.hidden { display: none !important; }
footer {
  padding: 1rem 1.25rem;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.85rem;
}
.truncate {
  max-width: 280px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  display: inline-block;
  vertical-align: bottom;
  font-family: var(--mono);
}

/* Worker / nickname cells — keep tables from blowing out on long tags.
   Ellipsis lives on .clip-text (not the td): auto table layout ignores
   td max-width for unbroken strings like long coinbase nicknames. */
td.clip,
td.clip-wide {
  max-width: 10rem;
  vertical-align: middle;
}
td.clip-wide {
  max-width: 14rem;
}
td.clip .clip-text,
td.clip-wide .clip-text {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 10rem;
}
td.clip-wide .clip-text {
  max-width: 14rem;
}
@media (max-width: 900px) {
  td.clip,
  td.clip-wide { max-width: 7rem; }
  td.clip .clip-text,
  td.clip-wide .clip-text { max-width: 7rem; }
}


.rules {
  margin-top: 0.75rem;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border, #333);
  border-radius: 6px;
  background: var(--panel-2, rgba(255,255,255,0.03));
}
.rules h3 {
  margin: 0 0 0.4rem;
  font-size: 0.95rem;
}
.rules ul {
  margin: 0;
  padding-left: 1.2rem;
}
.rules li {
  margin: 0.35rem 0;
  line-height: 1.35;
}
.warn.box {
  margin: 0.75rem 0 0.5rem;
  padding: 0.75rem 1rem;
  border: 1px solid var(--warn, #f0b429);
  border-radius: 6px;
  background: rgba(240, 180, 41, 0.08);
  color: var(--text, #e8e8e8);
  line-height: 1.4;
}
.warn.box strong {
  color: var(--warn, #f0b429);
}

.alert.box {
  margin: 1rem 0 1.25rem;
  padding: 1rem 1.1rem;
  border-radius: 10px;
  border: 2px solid #e85d5d;
  background: rgba(232, 93, 93, 0.12);
  color: var(--text);
  line-height: 1.45;
}
.alert.box strong { color: #ff8e8e; }
.alert.box a { color: #ffb4b4; font-weight: 600; }
.alert.box ul { margin: 0.5rem 0 0 1.2rem; padding: 0; }
.alert.box li { margin: 0.35rem 0; }

.badge-quarantine {
  display: inline-block;
  margin-left: 0.4rem;
  padding: 0.1rem 0.45rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  color: #3a1d00;
  background: #ffb020;
  vertical-align: middle;
  white-space: nowrap;
}

/* Coinbase type health (hourly sticky ✓ / ⚠) */
.cb-type-ico {
  display: inline-block;
  margin-left: 0.35rem;
  font-size: 0.85rem;
  font-weight: 700;
  vertical-align: middle;
  cursor: help;
  line-height: 1;
}
.tip-pin {
  cursor: help;
}
.tip-pin.tip-pinned {
  outline: 2px solid rgba(94, 224, 154, 0.65);
  outline-offset: 2px;
  border-radius: 3px;
}
/* Click-to-pin tip (stays for screenshots; native title= vanishes on PrintScreen) */
.tip-bubble {
  position: fixed;
  z-index: 10000;
  max-width: min(22rem, calc(100vw - 1.5rem));
  padding: 0.55rem 0.7rem;
  border-radius: 8px;
  border: 1px solid var(--border, #2a3544);
  background: var(--panel, #121820);
  color: var(--text, #e8eef5);
  font-size: 0.78rem;
  line-height: 1.35;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.45);
  pointer-events: none;
  white-space: pre-wrap;
  word-break: break-word;
}
.tip-bubble-pinned {
  pointer-events: auto;
}
.cb-type-ok {
  color: #5ee09a;
}
.cb-type-warn {
  color: #ffb020;
}
.cb-type-unk {
  color: #8a9bb0;
  font-weight: 600;
}

.badge {
  display: inline-block;
  padding: 0.1rem 0.45rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  vertical-align: middle;
  white-space: nowrap;
  background: #243049;
  color: var(--muted);
}
.badge-ok {
  background: rgba(61, 214, 198, 0.18);
  color: var(--accent);
}
.badge-warn {
  background: rgba(240, 180, 41, 0.18);
  color: var(--warn);
}
.badge-pending {
  background: rgba(240, 180, 41, 0.18);
  color: var(--warn);
}
.badge-orphan {
  background: rgba(232, 93, 93, 0.22);
  color: #ff8e8e;
  font-weight: 700;
}

/* Recent pool blocks — status row colors */
tr.row-orphan td {
  background: rgba(232, 93, 93, 0.14);
  color: #ffb4b4;
  border-bottom-color: rgba(232, 93, 93, 0.35);
}
tr.row-orphan td a {
  color: #ff8e8e;
}
tr.row-orphan:hover td {
  background: rgba(232, 93, 93, 0.22);
}

tr.row-pending td {
  background: rgba(240, 180, 41, 0.10);
  border-bottom-color: rgba(240, 180, 41, 0.28);
}
tr.row-pending:hover td {
  background: rgba(240, 180, 41, 0.16);
}

.badge-manual {
  background: rgba(240, 160, 40, 0.22);
  color: #ffc14d;
  font-weight: 700;
}
.badge-manual-done {
  background: rgba(80, 180, 120, 0.20);
  color: #7ddea8;
  font-weight: 600;
}
.badge-manual-adj,
button.badge-manual-adj {
  background: rgba(240, 160, 40, 0.28);
  color: #ffb84d;
  font-weight: 700;
  cursor: pointer;
  border: 0;
  font: inherit;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
}
button.badge-manual-adj.open {
  outline: 1px solid rgba(240, 160, 40, 0.7);
}
tr.adj-detail td {
  background: rgba(240, 160, 40, 0.06);
  padding: 0.55rem 0.75rem 0.75rem;
}
.adj-panel {
  max-width: 720px;
  text-align: left;
  color: #e8eef8;
}
.adj-pop-title {
  font-weight: 700;
  color: #ffc14d;
  margin-bottom: 0.25rem;
}
.adj-pop-note {
  font-size: 0.78rem;
  color: #9aabbf;
  margin-bottom: 0.4rem;
  line-height: 1.35;
}
.adj-pop-sum {
  font-size: 0.8rem;
  margin-bottom: 0.45rem;
  color: #c9d6e8;
}
.adj-pop-maturity {
  font-size: 0.78rem;
  margin: 0 0 0.5rem;
  padding: 0.4rem 0.55rem;
  border-radius: 6px;
  border: 1px solid rgba(240, 160, 40, 0.35);
  background: rgba(240, 160, 40, 0.12);
  color: #ffd089;
  line-height: 1.35;
}
.adj-pop-paid {
  font-size: 0.8rem;
  margin: 0.55rem 0 0;
  padding: 0.45rem 0.55rem;
  border-radius: 6px;
  border: 1px solid rgba(70, 190, 120, 0.4);
  background: rgba(40, 140, 90, 0.16);
  color: #b6f0c8;
  line-height: 1.4;
}
.adj-pop-paid a {
  color: #9dffb8;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.adj-pop-txline {
  margin-top: 0.28rem;
  padding-left: 0.15rem;
  font-size: 0.76rem;
}
.adj-pop-pending {
  font-size: 0.78rem;
  margin: 0.55rem 0 0;
  padding: 0.4rem 0.55rem;
  border-radius: 6px;
  border: 1px solid rgba(160, 180, 200, 0.25);
  background: rgba(255, 255, 255, 0.04);
  color: #9aabbf;
  line-height: 1.35;
}
button.badge-manual-adj.adj-maturity {
  background: rgba(240, 160, 40, 0.18);
  color: #ffc14d;
  border: 1px dashed rgba(240, 160, 40, 0.55);
}
.adj-pop-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.75rem;
}
.adj-pop-table th,
.adj-pop-table td {
  padding: 0.2rem 0.35rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  vertical-align: top;
}
.adj-pop-table th {
  color: #9aabbf;
  font-weight: 600;
  text-align: left;
}
.adj-pop-table td.num {
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.adj-pop-table a {
  color: #7ec8ff;
}
.badge-review {
  background: rgba(220, 120, 255, 0.20);
  color: #e0a0ff;
  font-weight: 700;
}
.badge-review-done {
  background: rgba(80, 180, 120, 0.20);
  color: #7ddea8;
  font-weight: 600;
}
tr.row-manual td {
  background: rgba(240, 160, 40, 0.10);
  border-bottom-color: rgba(240, 160, 40, 0.30);
}
tr.row-manual:hover td {
  background: rgba(240, 160, 40, 0.16);
}
tr.row-review td {
  background: rgba(220, 120, 255, 0.08);
  border-bottom-color: rgba(220, 120, 255, 0.28);
}
tr.row-review:hover td {
  background: rgba(220, 120, 255, 0.14);
}

/* Dashboard primary panels — keep padding consistent; avoid stacked h2 + box gaps */
.box,
.dashboard-panel {
  margin-top: 1rem;
  padding: 1rem 1.1rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--panel);
}
.box > h2:first-child,
.dashboard-panel > h2:first-child {
  margin-top: 0;
  margin-bottom: 0.5rem;
}
.box > .muted:first-of-type,
.dashboard-panel > .muted:first-of-type {
  margin-top: 0;
}
.cards + .box,
.cards + .dashboard-panel {
  margin-top: 0.85rem;
}

/* Coinbaser kind highlights */
tr.row-finder td {
  background: rgba(61, 214, 198, 0.14);
  border-bottom-color: rgba(61, 214, 198, 0.35);
}
tr.row-finder:hover td {
  background: rgba(61, 214, 198, 0.22);
}
tr.row-ops td {
  background: rgba(110, 168, 255, 0.08);
}
tr.contrib-totals td {
  background: rgba(255, 255, 255, 0.06);
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  font-variant-numeric: tabular-nums;
}
tr.contrib-totals td strong {
  font-weight: 700;
}
.contrib-path-tot {
  font-weight: 500;
  font-size: 0.85em;
  margin-left: 0.35rem;
  white-space: nowrap;
}
.kind-ico {
  display: inline-flex;
  align-items: center;
  gap: 0.12rem;
  font-size: 1.15rem;
  line-height: 1;
  letter-spacing: 0;
  cursor: help;
  user-select: none;
}
.kind-finder {
  font-weight: 700;
  color: var(--accent);
  filter: drop-shadow(0 0 6px rgba(61, 214, 198, 0.35));
}
.kind-finder-inline {
  color: var(--accent);
  font-weight: 650;
  cursor: help;
}
.kind-tides {
  opacity: 0.92;
}
.kind-ops {
  color: var(--accent2);
  font-weight: 600;
  font-size: 1.05rem;
}
.nick-src-wrap {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  margin-left: 0.35rem;
  vertical-align: middle;
}
/* When badges lead the nickname (no wrap margin) */
.nick-with-badges > .nick-src:first-child,
.addr-with-badge .nick-src {
  margin-left: 0;
}
.nick-src {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.05em;
  padding: 0 0.15rem;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.2;
  border-radius: 0.25rem;
  cursor: help;
  user-select: none;
  opacity: 0.92;
}
.nick-src-none {
  color: var(--muted, #9ca3af);
  border: 1px solid rgba(156, 163, 175, 0.45);
}
.nick-src-worker {
  color: #93c5fd;
  border: 1px solid rgba(147, 197, 253, 0.45);
  font-size: 0.72rem;
}
.nick-src-tag {
  font-size: 0.85rem;
  border: none;
  opacity: 0.95;
}
.nick-src-finds {
  color: var(--accent, #3dd6c6);
  border: 1px solid rgba(61, 214, 198, 0.4);
  font-size: 0.72rem;
  letter-spacing: -0.02em;
}
.finder-worker-cell {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  max-width: 100%;
}
.finder-star {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  color: #fbbf24;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
  text-shadow: 0 0 6px rgba(251, 191, 36, 0.45);
  cursor: help;
}
.finder-star:hover {
  color: #fde68a;
}
.adj-kind {
  font-size: 0.78rem;
  color: var(--muted, #94a3b8);
}
.adj-kind-bonus {
  color: #fbbf24;
  font-weight: 600;
}
.adj-kind-up {
  color: #34d399;
  font-weight: 600;
}
.adj-row-bonus td {
  background: rgba(251, 191, 36, 0.06);
}
.more-link {
  margin: 0.6rem 0 0;
  font-size: 0.92rem;
}

.activity-legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.85rem;
  margin: 0;
  font-size: inherit;
}
.activity-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  white-space: nowrap;
}
.activity-legend .activity-dot {
  margin: 0;
  flex-shrink: 0;
}
.activity-cell {
  width: 1.25rem;
  text-align: center;
  vertical-align: middle;
}
.activity-dot {
  display: inline-block;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  vertical-align: middle;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.25);
  cursor: help;
}
.activity-dot.live {
  background: #3dd67a;
  box-shadow: 0 0 0 1px rgba(61, 214, 122, 0.35), 0 0 6px rgba(61, 214, 122, 0.55);
}
.activity-dot.idle {
  background: #f0b429;
  box-shadow: 0 0 0 1px rgba(240, 180, 41, 0.35);
}
.activity-dot.offline {
  background: #e85d5d;
  box-shadow: 0 0 0 1px rgba(232, 93, 93, 0.35);
}

/* Connect / warnings accordion (closed by default) */
.connect-panel {
  margin-top: 1.5rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--panel);
  overflow: hidden;
}
/* Contributors accordion in the main stack (open by default). */
.contrib-panel {
  margin-top: 0;
  margin-bottom: 0;
  align-self: start;
}
.contrib-panel > .connect-body {
  padding-top: 0.75rem;
}
.contrib-panel .contrib-section-h:first-of-type {
  margin-top: 0.5rem;
}
.connect-panel-top {
  margin-top: 0.75rem;
  margin-bottom: 1.1rem;
  border-color: rgba(61, 214, 198, 0.35);
}
.connect-panel > summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem 1rem;
  padding: 0.95rem 1.1rem;
  user-select: none;
}
.connect-panel > summary::-webkit-details-marker { display: none; }
.connect-panel > summary::before {
  content: "▸";
  color: var(--accent);
  font-weight: 700;
  margin-right: 0.15rem;
}
.connect-panel[open] > summary::before { content: "▾"; }
.connect-title {
  font-weight: 650;
  font-size: 1.02rem;
}
.connect-hint { font-size: 0.85rem; }
.connect-panel > summary:hover {
  background: rgba(110, 168, 255, 0.06);
}
.connect-body {
  padding: 0 1.1rem 1.1rem;
  border-top: 1px solid var(--border);
}
.connect-body .join.box,
.connect-body .warn.box,
.connect-body .alert.box {
  margin-top: 0.9rem;
}
.connect-body .join.box { margin-top: 1rem; }
.connect-body h2 { margin-top: 0.75rem; }
.join-badge {
  display: inline-block;
  margin-left: 0.35rem;
  padding: 0.12rem 0.5rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  vertical-align: middle;
  letter-spacing: 0.01em;
}
.join-badge-pref {
  color: #7ddea8;
  background: rgba(80, 180, 120, 0.16);
  border: 1px solid rgba(80, 180, 120, 0.45);
}
.join-badge-discouraged {
  color: #ff8e8e;
  background: rgba(232, 93, 93, 0.16);
  border: 1px solid rgba(232, 93, 93, 0.5);
}
.fee-warn-red {
  color: #e85d5d;
  font-weight: 700;
}
.join-sv1 {
  border-color: rgba(232, 93, 93, 0.35);
}
.connect-stores {
  margin: 0.55rem 0 0.35rem 1.1rem;
  padding: 0;
  line-height: 1.45;
}
.connect-stores li { margin: 0.35rem 0; }
.connect-shot {
  margin: 0.75rem 0 0.25rem;
  padding: 0;
  max-width: 100%;
}
.connect-shot img {
  display: block;
  width: 100%;
  max-width: 520px;
  height: auto;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #0b1220;
}
.connect-shot figcaption {
  margin-top: 0.4rem;
  font-size: 0.85rem;
}

/* Miner page collapsible panels (payout history / shares) */
.miner-panel {
  margin-top: 0.85rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--panel);
  overflow: hidden;
}
.miner-panel > summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem 1rem;
  padding: 0.85rem 1.1rem;
  user-select: none;
}
.miner-panel > summary::-webkit-details-marker { display: none; }
.miner-panel > summary::before {
  content: "▸";
  color: var(--accent);
  font-weight: 700;
  margin-right: 0.15rem;
}
.miner-panel[open] > summary::before { content: "▾"; }
.miner-panel > summary:hover {
  background: rgba(110, 168, 255, 0.06);
}
.miner-panel-body {
  padding: 0 1.1rem 1rem;
  border-top: 1px solid var(--border);
}
.miner-panel-body .chart-sub {
  margin: 0.75rem 0 0.5rem;
}
.pager {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem 1rem;
  margin-top: 0.75rem;
}
.pager button {
  appearance: none;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.25);
  color: var(--text);
  font: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.4rem 0.85rem;
  border-radius: 8px;
  cursor: pointer;
}
.pager button:hover:not(:disabled) {
  border-color: rgba(61, 214, 198, 0.45);
  color: var(--accent);
}
.pager button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.kind-tides {
  color: var(--accent2);
  font-weight: 600;
}
.kind-finder-hist {
  color: var(--accent);
  font-weight: 650;
}

/* Hashrate charts */
.chart-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  margin-bottom: 0.25rem;
}
.chart-head h2 { margin: 0; }
.chart-sub { margin: 0 0 0.75rem; font-size: 0.85rem; }
.chart-ranges {
  display: inline-flex;
  gap: 0.35rem;
  background: rgba(0, 0, 0, 0.25);
  padding: 0.2rem;
  border-radius: 8px;
  border: 1px solid var(--border);
}
.chart-ranges button {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.35rem 0.7rem;
  border-radius: 6px;
  cursor: pointer;
}
.chart-ranges button:hover { color: var(--text); }
.chart-ranges button.active {
  background: rgba(61, 214, 198, 0.18);
  color: var(--accent);
}
.chart-ranges .chart-smooth {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  margin-left: 0.25rem;
  padding: 0.35rem 0.55rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  user-select: none;
  border-left: 1px solid var(--border);
}
.chart-ranges .chart-smooth:hover { color: var(--text); }
.chart-ranges .chart-smooth input {
  margin: 0;
  accent-color: var(--accent);
  cursor: pointer;
}
.chart-wrap {
  position: relative;
  width: 100%;
  height: 260px;
}
@media (max-width: 640px) {
  .chart-wrap { height: 220px; }
}

/* promo complete */
.bonus-promo-done {
  opacity: 0.92;
}
.bonus-promo-done .bonus-spots-label {
  font-weight: 600;
}


/* Contributors: SV1 vs DATUM section headers (website layout) */
tr.contrib-section td {
  background: var(--panel-2, #1a2332);
  border-top: 2px solid var(--accent, #3d8bfd);
  padding: 0.65rem 0.75rem;
  font-weight: 600;
}
tr.contrib-section .contrib-section-title {
  color: var(--text, #e8eef7);
}
tr.contrib-section .contrib-section-sub {
  font-weight: 400;
  font-size: 0.85em;
  margin-left: 0.35rem;
}
tr.contrib-section-empty td {
  padding: 0.5rem 0.75rem;
  font-size: 0.9em;
}

.sv1-bad-auth {
  margin: 0.35rem 0 0.75rem;
  padding: 0.55rem 0.75rem;
  border: 1px solid rgba(251, 191, 36, 0.45);
  border-radius: 0.4rem;
  background: rgba(251, 191, 36, 0.08);
  font-size: 0.88rem;
  line-height: 1.35;
}
.sv1-bad-auth strong.warn {
  color: #fbbf24;
}
.sv1-bad-auth ul {
  margin: 0.35rem 0 0;
  padding-left: 1.1rem;
}
.sv1-bad-auth li {
  margin: 0.15rem 0;
}
.sv1-bad-auth .mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
.sv1-bad-auth .muted {
  opacity: 0.85;
  font-size: 0.84em;
}
h3.contrib-section-h {
  margin: 1.25rem 0 0.25rem;
  font-size: 1.05rem;
}
p.contrib-section-note {
  margin: 0 0 0.5rem;
  font-size: 0.85em;
}


/* DATUM contributors: SV1-Boost as equivalent ~H/s (redistributed STRATUM FEE) */
td.sv1-boost {
  color: #2dd4bf;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
td.sv1-boost .hs-unit {
  color: rgba(45, 212, 191, 0.75);
}

/* --- Pool finds glow strip (mempool-inspired isometric cubes) --- */
/* Exactly 8 cubes, one row, no horizontal scroll. */
#poolFindsStripBox .chart-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem 1rem;
}
#poolFindsStripBox .chart-head h2 {
  margin: 0;
}
.pool-finds-strip {
  --strip-gap: clamp(0.2rem, 0.85vw, 0.65rem);
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--strip-gap);
  overflow: visible; /* no scroll; cubes sized to fit */
  padding: 1.2rem 0.35rem 0.7rem 0.1rem; /* room for isometric depth faces */
}
.pool-finds-strip:empty::before {
  content: "Loading finds…";
  color: var(--muted);
  font-size: 0.9rem;
}
.pool-find-item {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  text-decoration: none;
  color: inherit;
}
.pool-find-item:hover {
  text-decoration: none;
}
.pool-find-item:hover .pool-find-cube {
  filter:
    drop-shadow(0 0 4px rgba(77, 208, 225, 1))
    drop-shadow(0 0 12px rgba(38, 166, 178, 0.85));
  transform: translateY(-2px);
}
.pool-find-cube {
  /* Sized so 8 + gaps fit main — a bit larger than the old 9-cube strip */
  --cube: clamp(1.65rem, 6.2vw, 3.25rem);
  --depth: clamp(0.26rem, 1vw, 0.55rem);
  position: relative;
  width: var(--cube);
  height: var(--cube);
  /* depth faces draw outside; padding on strip absorbs them (no layout margin) */
  margin: 0;
  background: linear-gradient(160deg, #3a5578 0%, #1e2f4a 55%, #16233a 100%);
  border: 1px solid rgba(125, 211, 230, 0.35);
  border-radius: 3px;
  box-shadow: inset 0 0 12px rgba(38, 166, 178, 0.12);
  filter:
    drop-shadow(0 0 3px rgba(77, 208, 225, 0.95))
    drop-shadow(0 0 9px rgba(38, 166, 178, 0.7));
  transition: transform 0.15s ease, filter 0.15s ease;
  z-index: 1;
}
.pool-find-cube::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: 100%;
  width: 100%;
  height: var(--depth);
  background: linear-gradient(180deg, #5a7aa0 0%, #3a5578 100%);
  border: 1px solid rgba(125, 211, 230, 0.3);
  border-bottom: none;
  transform-origin: bottom left;
  transform: skewX(-40deg);
  box-sizing: border-box;
}
.pool-find-cube::after {
  content: "";
  position: absolute;
  left: 100%;
  top: 0;
  width: var(--depth);
  height: 100%;
  background: linear-gradient(90deg, #243656 0%, #152033 100%);
  border: 1px solid rgba(125, 211, 230, 0.22);
  border-left: none;
  transform-origin: top left;
  transform: skewY(-40deg);
  box-sizing: border-box;
}
.pool-find-height {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: clamp(0.48rem, 1.35vw, 0.75rem); /* +1px-ish vs prior */
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #e8f7fa;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.55);
  z-index: 2;
  pointer-events: none;
}
.pool-find-nick {
  max-width: 100%;
  font-size: clamp(0.52rem, 1.4vw, 0.8rem); /* +1px-ish */
  line-height: 1.15;
  text-align: center;
  color: #b2ebf2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pool-find-meta {
  font-size: clamp(0.5rem, 1.2vw, 0.72rem); /* +1px-ish */
  color: var(--muted);
  text-align: center;
  line-height: 1.1;
}
.pool-find-item.is-pending .pool-find-cube {
  background: linear-gradient(160deg, #6a5a2e 0%, #3a3018 55%, #2a2410 100%);
  border-color: rgba(240, 180, 41, 0.55);
  filter:
    drop-shadow(0 0 3px rgba(240, 180, 41, 0.85))
    drop-shadow(0 0 9px rgba(38, 166, 178, 0.45));
}
.pool-find-item.is-pending .pool-find-cube::before {
  background: linear-gradient(180deg, #c9a23a 0%, #6a5a2e 100%);
}
.pool-find-item.is-pending .pool-find-cube::after {
  background: linear-gradient(90deg, #4a3c18 0%, #2a2410 100%);
}
.pool-find-item.is-orphan .pool-find-cube {
  background: linear-gradient(160deg, #5a3030 0%, #2a1515 55%, #1a0e0e 100%);
  border-color: rgba(232, 93, 93, 0.5);
  filter:
    drop-shadow(0 0 3px rgba(232, 93, 93, 0.75))
    drop-shadow(0 0 8px rgba(232, 93, 93, 0.35));
  opacity: 0.88;
}
.pool-find-item.is-orphan .pool-find-cube::before {
  background: linear-gradient(180deg, #8a4545 0%, #5a3030 100%);
}
.pool-find-item.is-orphan .pool-find-cube::after {
  background: linear-gradient(90deg, #3a1a1a 0%, #1a0e0e 100%);
}
.pool-find-item.is-orphan .pool-find-nick {
  color: #ffb4b4;
}
.pool-find-item.is-enter {
  animation: pool-find-enter 0.45s ease-out;
}
@keyframes pool-find-enter {
  from {
    opacity: 0;
    transform: translateX(-12px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
@media (prefers-reduced-motion: reduce) {
  .pool-find-item.is-enter {
    animation: none;
  }
  .pool-find-item:hover .pool-find-cube {
    transform: none;
  }
}
@media (max-width: 640px) {
  .pool-find-meta {
    display: none;
  }
  .pool-find-item {
    gap: 0.2rem;
  }
}

.contrib-sort-bar{display:flex;flex-wrap:wrap;gap:0.75rem 1.1rem;align-items:center;margin-top:0.55rem}
.contrib-check{display:inline-flex;align-items:center;gap:0.35rem;cursor:pointer;user-select:none;font-size:0.92em}
.contrib-check input{margin:0}


/* Miner page snap refresh */
.user-snap-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem 1rem;
  margin: 0.25rem 0 0.75rem;
}
.btn-refresh {
  appearance: none;
  border: 1px solid rgba(255,255,255,0.22);
  background: rgba(255,255,255,0.06);
  color: inherit;
  border-radius: 6px;
  padding: 0.25rem 0.7rem;
  font: inherit;
  cursor: pointer;
}
.btn-refresh:hover { background: rgba(255,255,255,0.12); }
.btn-refresh:disabled { opacity: 0.5; cursor: wait; }


/* UI_MOBILE_HEADER_v1 */
.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--accent);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: 0.04em;
}
.brand-link:hover { text-decoration: none; filter: brightness(1.08); }
.brand-icon {
  width: 1.55rem;
  height: 1.55rem;
  border-radius: 6px;
  display: block;
}
.top-nav {
  display: flex;
  gap: 0.85rem;
  align-items: center;
  font-size: 0.92rem;
}
.top-nav a { color: var(--accent2); font-weight: 600; white-space: nowrap; }
.site-footer {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.25rem 1.25rem;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.85rem;
}
.site-footer .health-strip { margin: 0; }
.fee-promo-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
}
.fee-promo-sv1 {
  border-color: rgba(240, 100, 100, 0.45) !important;
  background: linear-gradient(135deg, rgba(240, 100, 100, 0.14), rgba(240, 180, 41, 0.08)) !important;
  color: #ffd0d0 !important;
}
.fee-promo-sv1 .fee-promo-main { font-size: 1.15rem; }
@media (max-width: 640px) {
  .fee-promo-row { grid-template-columns: 1fr; }
  .fee-promo { padding: 0.7rem 0.9rem; }
  .fee-promo-main { font-size: 1.1rem !important; }
  .brand .tag { display: none; }
  .top { gap: 0.55rem 0.75rem; }
  .lookup { flex: 1 1 100%; }
}
.contrib-table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  max-width: 100%;
  border: 1px solid var(--border);
  border-radius: 10px;
}
.contrib-table-scroll .contrib-table {
  min-width: 720px;
  margin: 0;
}
.coinbaser-pie-legend {
  display: none;
  margin: 0.35rem 0 0;
  padding: 0.35rem 0.15rem 0.15rem;
  max-height: 14rem;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  font-size: 0.82rem;
}
.coinbaser-pie-legend div {
  display: flex;
  gap: 0.45rem;
  align-items: baseline;
  padding: 0.22rem 0.15rem;
  border-bottom: 1px solid rgba(36, 48, 73, 0.65);
}
.coinbaser-pie-legend .swatch {
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 2px;
  flex: 0 0 auto;
  margin-top: 0.2rem;
}
.coinbaser-pie-legend .muted { margin-left: auto; }
@media (max-width: 640px) {
  .coinbaser-pie-wrap { height: 220px; }
  .coinbaser-pie-legend { display: block; }
}
.connect-page .join.box,
.connect-page .warn.box { margin-top: 0.85rem; }

/* HEADER_CENTER_v2 */
.top-nav-left { justify-self: start; }
.brand-center {
  justify-self: center;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
}
.brand-center .tag { margin-left: 0; font-size: 0.78rem; }
.lookup-right { justify-self: end; }
.site-footer {
  flex-direction: column;
  gap: 0.45rem;
  text-align: center;
}
.footer-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  align-items: center;
  justify-content: center;
}
.footer-links a { color: var(--accent2); }
.footer-copy { font-size: 0.8rem; }
@media (max-width: 720px) {
  .top {
    grid-template-columns: 1fr 1fr;
  }
  .brand-center {
    grid-column: 1 / -1;
    order: -1;
  }
  .lookup-right {
    grid-column: 1 / -1;
    justify-self: stretch;
  }
  .lookup-right input { width: 100%; }
}
