/* Blockchain explorer + security panels — dark terminal aesthetic */
.sd-chain-wrap {
  font-family: ui-monospace, "SF Mono", Consolas, monospace;
  color: #c8e6c9;
  background: #0b0c10;
  border: 1px solid #1e2329;
  border-radius: 8px;
  padding: 0.75rem 1rem;
  margin-bottom: 0.75rem;
}
.sd-chain-stats {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(9rem, 1fr));
  gap: 0.5rem 1rem;
  font-size: 0.78rem;
  margin-bottom: 0.75rem;
}
.sd-chain-stat {
  background: #13151c;
  padding: 0.45rem 0.55rem;
  border-radius: 6px;
  border-left: 3px solid #f0c040;
}
.sd-chain-stat strong {
  color: #7cfc9a;
  display: block;
  font-size: 0.95rem;
}
.sd-chain-feed {
  max-height: 180px;
  overflow: auto;
  font-size: 0.72rem;
  line-height: 1.45;
  margin: 0.5rem 0;
}
.sd-chain-feed-row {
  padding: 0.25rem 0.35rem;
  border-bottom: 1px solid #1a1f28;
  animation: sdChainIn 0.35s ease-out;
}
@keyframes sdChainIn {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.sd-chain-feed-row .hash {
  color: #7ec8e3;
}
.sd-chain-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  margin: 0.5rem 0;
}
.sd-chain-table-wrap {
  overflow: auto;
  max-height: min(50vh, 420px);
  border: 1px solid #1e2329;
  border-radius: 6px;
}
.sd-chain-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.72rem;
}
.sd-chain-table th,
.sd-chain-table td {
  padding: 0.35rem 0.45rem;
  text-align: left;
  border-bottom: 1px solid #1a1f28;
}
.sd-chain-table th {
  background: #13151c;
  color: #f0c040;
  position: sticky;
  top: 0;
}
.sd-chain-type-ACCOUNT {
  color: #64b5f6;
}
.sd-chain-type-ORDER,
.sd-chain-type-FINANCIAL {
  color: #81c784;
}
.sd-chain-type-SECURITY {
  color: #e57373;
}
.sd-chain-type-ADMIN {
  color: #ffb74d;
}
.sd-chain-type-BLOCKCHAIN {
  color: #ba68c8;
}
.sd-chain-type-COMMUNICATION {
  color: #ffd54f;
}
.sd-chain-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.72rem;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: #13151c;
  border: 1px solid #2a3140;
}
.sd-chain-badge.mining {
  animation: sdChainPulse 1.2s ease-in-out infinite;
  border-color: #f0c040;
}
@keyframes sdChainPulse {
  50% {
    box-shadow: 0 0 0 3px rgba(240, 192, 64, 0.25);
  }
}
.sd-chain-badge.ok {
  border-color: #2e7d32;
  color: #a5d6a7;
}
.sd-chain-badge.warn {
  border-color: #f9a825;
  color: #ffe082;
}
.sd-chain-badge.bad {
  border-color: #c62828;
  color: #ef9a9a;
}
.sd-account-modal {
  max-width: min(96vw, 920px);
  max-height: min(88vh, 720px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.sd-account-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  border-bottom: 1px solid #2a3140;
  margin-bottom: 0.75rem;
}
.sd-account-tabs button {
  background: transparent;
  border: none;
  color: #9aa4b2;
  padding: 0.4rem 0.65rem;
  cursor: pointer;
  font-size: 0.8rem;
  border-radius: 6px 6px 0 0;
}
.sd-account-tabs button.active {
  background: #13151c;
  color: #f0c040;
}
.sd-account-tab-panel {
  overflow: auto;
  max-height: min(58vh, 520px);
  font-size: 0.82rem;
  line-height: 1.5;
}
.sd-multisig-list {
  font-size: 0.78rem;
  margin-top: 0.5rem;
}
.sd-multisig-list li {
  margin: 0.35rem 0;
  padding: 0.5rem;
  background: #13151c;
  border-radius: 6px;
  border-left: 3px solid #f0c040;
}
.sd-api-ref details {
  margin: 0.5rem 0;
  font-size: 0.75rem;
}
.sd-api-ref pre {
  overflow: auto;
  max-height: 200px;
  font-size: 0.68rem;
  background: #0b0c10;
  padding: 0.5rem;
  border-radius: 6px;
}
