* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background: #111827;
  color: #f3f4f6;
}
.page {
  max-width: 1280px;
  margin: 0 auto;
  padding: 24px;
}
.hero, .band {
  background: #1f2937;
  border: 1px solid #374151;
  padding: 20px;
  margin-bottom: 16px;
  border-radius: 8px;
}
.hero {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: start;
}
.hero h1, .band h2 { margin-top: 0; }
.hero-actions, .inline, .actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}
.tab-button {
  min-width: 0;
  border-color: #374151;
  background: #111827;
}
.tab-button.active {
  background: #2563eb;
  border-color: #2563eb;
}
.tab-panel {
  display: none;
}
.tab-panel.active {
  display: block;
}
.grid-two.tab-panel.active {
  display: grid;
}
.muted {
  color: #9ca3af;
}
.toast {
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 50;
  max-width: min(420px, calc(100vw - 36px));
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid #374151;
  background: #111827;
  color: #f3f4f6;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .35);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px);
  transition: opacity .18s ease, transform .18s ease;
}
.toast.show {
  opacity: 1;
  transform: translateY(0);
}
.toast.success {
  border-color: #16a34a;
}
.toast.error {
  border-color: #dc2626;
}
.grid-two {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.stack {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1 1 240px;
}
input, textarea, button {
  border-radius: 6px;
  border: 1px solid #4b5563;
  background: #0f172a;
  color: #f3f4f6;
  padding: 10px 12px;
  font: inherit;
}
button {
  cursor: pointer;
  min-width: 120px;
}
button.primary {
  background: #2563eb;
  border-color: #2563eb;
}
.toggle {
  display: inline-flex;
  gap: 8px;
  align-items: center;
}
.list {
  display: grid;
  gap: 10px;
}
.row {
  border: 1px solid #374151;
  background: #111827;
  padding: 12px;
  border-radius: 6px;
}
.rpc-status-list {
  display: grid;
  gap: 6px;
  margin-top: 6px;
}
.rpc-status-title {
  color: #d1d5db;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}
.rpc-status {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  border: 1px solid #374151;
  border-radius: 6px;
  padding: 7px 9px;
  background: #0f172a;
}
.rpc-status code {
  overflow-wrap: anywhere;
}
.rpc-status span {
  font-weight: 700;
}
.rpc-status small {
  grid-column: 2;
  color: #9ca3af;
}
.rpc-actions {
  display: inline-flex;
  gap: 4px;
}
.rpc-actions button {
  width: 28px;
  height: 28px;
  border: 1px solid #374151;
  border-radius: 6px;
  background: #111827;
  color: #e5e7eb;
  cursor: pointer;
}
.rpc-actions button:hover {
  border-color: #2563eb;
  background: #172554;
}
.rpc-status.ok span { color: #22c55e; }
.rpc-status.empty span { color: #f59e0b; }
.rpc-status.fail span, .rpc-status.cooldown span { color: #ef4444; }
.rpc-status.wait span { color: #9ca3af; }
@media (max-width: 900px) {
  .grid-two, .hero {
    grid-template-columns: 1fr;
    display: grid;
  }
}
