.alert-banner-stack {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.alert-banner {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 1rem;
  border-radius: 6px;
  border: 1px solid rgba(255, 176, 32, 0.35);
  background: rgba(255, 176, 32, 0.08);
  font-size: 0.9rem;
}

.alert-banner.alert-error {
  border-color: rgba(255, 60, 80, 0.45);
  background: rgba(255, 60, 80, 0.1);
}

.alert-type {
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  opacity: 0.85;
  min-width: 6rem;
}

.alert-msg {
  flex: 1;
}

.alert-time {
  font-size: 0.7rem;
  opacity: 0.6;
}

.pool-status-grid {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.pool-status-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 0.75rem;
  border: 1px solid rgba(0, 245, 255, 0.15);
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.2);
}

.stratum-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
}

.stratum-dot.green {
  background: var(--neon-green);
  box-shadow: 0 0 8px var(--neon-green);
}

.stratum-dot.yellow {
  background: var(--neon-amber);
  box-shadow: 0 0 8px var(--neon-amber);
}

.stratum-dot.red {
  background: #ff3c50;
  box-shadow: 0 0 8px #ff3c50;
}

.pool-status-meta {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.pool-status-label.green { color: var(--neon-green); }
.pool-status-label.yellow { color: var(--neon-amber); }
.pool-status-label.red { color: #ff3c50; }

.ai-activity-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.ai-activity-row {
  padding: 0.5rem 0.65rem;
  border: 1px solid rgba(180, 100, 255, 0.2);
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.15);
}

.ai-activity-detail {
  display: flex;
  gap: 1rem;
  font-size: 0.8rem;
  opacity: 0.85;
  margin-top: 0.25rem;
}

.ai-activity-detail .ok { color: var(--neon-green); }
.ai-activity-detail .bad { color: #ff3c50; }

.ai-reasoning {
  margin: 0.35rem 0 0;
  font-size: 0.78rem;
  opacity: 0.75;
  font-style: italic;
}

.earnings-estimator {
  grid-column: span 2;
}

.earnings-real-grid {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 6px;
}

.er-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  gap: 1rem;
}

.er-lbl { opacity: 0.55; }
.er-val { font-family: 'Consolas', monospace; color: var(--neon-amber, #f5a623); }


.agent-action-btn {
  padding: 0.4rem 0.75rem;
  font-size: 0.75rem;
  border: 1px solid rgba(0, 245, 255, 0.35);
  background: rgba(0, 245, 255, 0.08);
  color: var(--text-primary);
  border-radius: 4px;
  cursor: pointer;
}

.agent-action-btn:hover {
  background: rgba(0, 245, 255, 0.18);
}

.agent-action-btn.danger {
  border-color: rgba(255, 60, 80, 0.45);
  background: rgba(255, 60, 80, 0.1);
}

.log-viewer {
  margin-top: 1rem;
  max-height: 280px;
  overflow: auto;
  padding: 0.75rem;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(0, 245, 255, 0.2);
  border-radius: 6px;
  font-family: var(--font-mono, monospace);
  font-size: 0.72rem;
  white-space: pre-wrap;
  word-break: break-all;
}

.build-manager-grid {
  display: grid;
  gap: 0.75rem;
}

.build-manager-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem;
  border: 1px solid rgba(255, 176, 32, 0.2);
  border-radius: 6px;
}

.blueprint-diff {
  font-size: 0.8rem;
  max-height: 200px;
  overflow: auto;
}

.blueprint-diff li.added { color: var(--neon-green); }
.blueprint-diff li.removed { color: #ff3c50; }
.blueprint-diff li.changed { color: var(--neon-amber); }

.qr-wrap {
  padding: 0.5rem;
  background: #fff;
  border-radius: 6px;
  display: inline-block;
}

.qr-wrap img {
  display: block;
  width: 120px;
  height: 120px;
}

/* ── Earnings USD ─────────────────────────────────────────────────────────── */
.earnings-usd-day {
  font-size: 1rem;
  font-weight: 600;
  color: var(--neon-green, #39ff14);
  margin-bottom: 0.25rem;
}
.er-usd { opacity: 0.7; margin-left: 0.25rem; }
.er-highlight { color: var(--neon-cyan, #00f5ff); font-weight: 700; }

/* ── Fleet Health Card ────────────────────────────────────────────────────── */
.fleet-health-card {
  margin-bottom: 1rem;
}
.fh-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.6rem;
}
.fh-label {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  opacity: 0.7;
  display: block;
  margin-bottom: 0.2rem;
}
.fh-status-chip {
  font-family: var(--font-mono, monospace);
  font-size: 0.7rem;
  padding: 0.15rem 0.5rem;
  border-radius: 3px;
  font-weight: 700;
  letter-spacing: 0.05em;
}
.fh-green { background: rgba(57, 255, 20, 0.15); color: var(--neon-green, #39ff14); border: 1px solid rgba(57, 255, 20, 0.35); }
.fh-amber { background: rgba(255, 176, 32, 0.15); color: var(--neon-amber, #ffb020); border: 1px solid rgba(255, 176, 32, 0.35); }
.fh-red   { background: rgba(255, 60, 80, 0.15);  color: #ff3c50;                   border: 1px solid rgba(255, 60, 80, 0.35); }
.fh-score {
  font-size: 2.8rem;
  font-weight: 800;
  font-family: var(--font-display, sans-serif);
  line-height: 1;
}
.fh-bar-track {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 0.6rem;
}
.fh-bar-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 0.6s ease;
}
.fh-sentence {
  margin: 0;
  font-size: 0.85rem;
  opacity: 0.8;
}

/* ── Contribution Bars ────────────────────────────────────────────────────── */
.contrib-panel {}
.contrib-list { display: flex; flex-direction: column; gap: 0.45rem; }
.contrib-row {
  display: grid;
  grid-template-columns: 140px 1fr 80px 52px;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
}
.contrib-row.has-usd {
  grid-template-columns: 140px 1fr 80px 52px 70px;
}
.contrib-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  opacity: 0.85;
}
.contrib-track {
  height: 8px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  overflow: hidden;
}
.contrib-fill {
  height: 100%;
  background: var(--neon-cyan, #00f5ff);
  border-radius: 4px;
  box-shadow: 0 0 6px var(--neon-cyan, #00f5ff);
  transition: width 0.5s ease;
}
.contrib-hash, .contrib-pct { opacity: 0.75; font-size: 0.75rem; text-align: right; }
.contrib-usd { color: var(--neon-green, #39ff14); font-size: 0.72rem; text-align: right; }

/* ── Underperformer Panel ─────────────────────────────────────────────────── */
.underperf-panel {}
.underperf-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.25rem;
}
.underperf-count { color: var(--neon-amber, #ffb020); margin-left: 0.25rem; }
.underperf-restart-btn {
  font-size: 0.75rem;
  padding: 0.25rem 0.75rem;
  white-space: nowrap;
  flex-shrink: 0;
}
.underperf-list { display: flex; flex-direction: column; gap: 0.4rem; margin-top: 0.5rem; }
.underperf-row {
  display: grid;
  grid-template-columns: 14px 1fr 90px 1fr;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  padding: 0.3rem 0.5rem;
  background: rgba(255, 176, 32, 0.05);
  border-left: 2px solid rgba(255, 176, 32, 0.4);
  border-radius: 3px;
}
.underperf-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.underperf-hash { text-align: right; color: var(--neon-amber, #ffb020); }
.underperf-ratio { text-align: right; font-size: 0.72rem; }

/* ── OS / Arch Card ───────────────────────────────────────────────────────── */
.os-arch-card { }
.os-arch-bars { display: flex; flex-direction: column; gap: 0.45rem; margin-top: 0.6rem; }
.os-arch-row {
  display: grid;
  grid-template-columns: 90px 1fr 28px;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
}
.os-arch-label { font-weight: 600; font-size: 0.78rem; }
.os-arch-track {
  height: 6px;
  background: rgba(255,255,255,0.08);
  border-radius: 3px;
  overflow: hidden;
}
.os-arch-fill {
  height: 100%;
  border-radius: 3px;
  opacity: 0.85;
  transition: width 0.5s ease;
}
.os-arch-count { text-align: right; opacity: 0.7; font-size: 0.75rem; }

/* ── LAN Group Card ───────────────────────────────────────────────────────── */
.lan-group-card {}
.lan-group-list { display: flex; flex-direction: column; gap: 0.4rem; margin-top: 0.6rem; }
.lan-group-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.35rem 0.5rem;
  background: rgba(57, 255, 20, 0.04);
  border-left: 2px solid rgba(57, 255, 20, 0.25);
  border-radius: 3px;
  font-size: 0.82rem;
}
.lan-subnet { color: var(--neon-cyan, #00f5ff); font-size: 0.78rem; }
.lan-meta { display: flex; gap: 1rem; font-size: 0.76rem; opacity: 0.75; }
.lan-online { color: var(--neon-green, #39ff14); }
.lan-hash { font-family: var(--font-mono, monospace); }

/* ── Dashboard toggle ─────────────────────────────────────────────────────── */
.dash-mode-btn {
  background: transparent;
  border: 1px solid rgba(0,245,255,0.35);
  color: var(--neon-cyan, #00f5ff);
  font-family: monospace;
  font-size: 0.78rem;
  padding: 0.25rem 0.6rem;
  border-radius: 3px;
  cursor: pointer;
  transition: background 0.15s;
}
.dash-mode-btn:hover { background: rgba(0,245,255,0.1); }
.dash-mode-btn.active { background: rgba(0,245,255,0.18); font-weight: 700; }
