/* Shared site chrome — used by every page (dashboard, miner, …). */
body {
  margin: 0;
  background: radial-gradient(1100px 520px at 8% -12%, color-mix(in srgb, var(--color-accent) 13%, transparent), transparent 62%), var(--color-bg);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "tnum" 1, "cv11" 1;
}
a { color: var(--color-accent); text-decoration: none; }
a:hover { color: var(--color-accent-300); text-decoration: underline; }

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--color-accent) 60%, transparent); }
  70% { box-shadow: 0 0 0 8px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}
@keyframes ring {
  0% { r: 4; opacity: .8; }
  100% { r: 24; opacity: 0; }
}

/* — page frame — */
.page {
  max-width: 1240px; margin: 0 auto; padding: 28px 24px 64px;
  display: flex; flex-direction: column; gap: 44px;
}

/* — header — */
.site-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 14px; color: inherit; }
.brand:hover { color: inherit; text-decoration: none; }
.brand-logo {
  width: 44px; height: 44px; flex: none; border-radius: 50%; object-fit: cover; display: block;
  box-shadow: 0 0 24px color-mix(in srgb, var(--color-accent) 30%, transparent);
}
.brand-text { display: flex; flex-direction: column; gap: 2px; }
.brand-name { font-size: 18px; font-weight: 500; letter-spacing: -.01em; }
.brand-sub { font-size: 12px; color: var(--color-neutral-500); }

.header-right { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; }
.status-pill {
  display: flex; align-items: center; gap: 10px; padding: 6px 12px; border-radius: 999px;
  box-shadow: var(--shadow-sm); font-size: 12px; color: var(--color-neutral-400);
}
.status-dot { width: 8px; height: 8px; border-radius: 50%; flex: none; background: var(--color-accent); }
.status-dot.is-live { animation: pulse 2s infinite; }
.status-dot.is-error { background: var(--color-neutral-600); }

/* — sections — */
.section { display: flex; flex-direction: column; gap: 16px; }
.section.is-tight { gap: 12px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.section-title {
  margin: 0; font-size: 13px; line-height: inherit; letter-spacing: .1em; text-transform: uppercase;
  color: var(--color-neutral-400);
}
.section-meta { font-size: 12px; color: var(--color-neutral-600); }

/* — footer — */
.site-footer { display: flex; flex-wrap: wrap; gap: 6px 20px; font-size: 12px; color: var(--color-neutral-600); }
.site-footer .notify { display: inline-flex; flex-wrap: wrap; gap: 0 6px; }
.site-footer .notify a { color: var(--color-accent); }

/* — reusable stat block — */
.stat { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.stat-label { font-size: 12px; color: var(--color-neutral-400); }
.stat-value { font-size: 26px; font-weight: 500; letter-spacing: -.02em; }
.stat-value.is-lg { font-size: 30px; letter-spacing: -.025em; }
.stat-value.is-accent { color: var(--color-accent-300); }
.stat-unit { font-size: 14px; color: var(--color-neutral-400); }
.stat-note { font-size: 12px; color: var(--color-neutral-600); }
.stat-inline { display: flex; align-items: baseline; gap: 6px; }

/* — panel surfaces — */
.panel {
  border-radius: var(--radius-lg); box-shadow: var(--shadow-sm);
  background: linear-gradient(180deg, var(--color-surface), color-mix(in srgb, var(--color-surface) 45%, var(--color-bg)));
}
.eyebrow { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--color-neutral-500); }
.eyebrow.is-accent { color: var(--color-accent); }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }

/* Touch devices: no scrollbar (page or scrollable tables). Scrolling still works; desktop keeps its scrollbars. */
@media (pointer: coarse) {
  html, body, .table-scroll { scrollbar-width: none; -ms-overflow-style: none; }
  html::-webkit-scrollbar, body::-webkit-scrollbar, .table-scroll::-webkit-scrollbar { display: none; }
}
