.site-header {
  background: rgba(22, 27, 34, 0.95);
  border-bottom: 1px solid rgba(125, 196, 255, 0.2);
  position: sticky;
  top: 0;
  z-index: 1000;
}

@media (max-width: 600px) {
  .page {
    padding: 1.5rem 1rem 3rem;
  }

  .site-header__inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .site-header__controls {
    align-items: stretch;
    gap: 0.5rem;
  }

  .site-header__nav {
    gap: 0.5rem;
  }

  .site-header__nav a {
    flex: 1 1 45%;
    text-align: center;
  }
  .addresses__input-group,
  .receipts__input-group {
    flex-direction: column;
  }

  .overview__grid {
    grid-template-columns: 1fr;
  }

  .table thead {
    display: none;
  }

  .table tr {
    display: grid;
    gap: 0.5rem;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(125, 196, 255, 0.12);
  }

  .table td {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.25rem 0;
  }
}

@media (min-width: 768px) {
  .overview__grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  }

  .table thead {
    display: table-header-group;
  }

  .table tr {
    display: table-row;
  }

  .table td {
    display: table-cell;
  }
}
@media (max-width: 768px) {
  .toast-container {
    left: 0;
    right: 0;
    top: auto;
    bottom: 1rem;
    width: min(90vw, 360px);
    margin: 0 auto;
  }
}

.site-header__inner {
  margin: 0 auto;
  max-width: 1200px;
  padding: 0.75rem 1.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
}

.site-header__back {
  font-size: 0.85rem;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  border: 1px solid rgba(125, 196, 255, 0.3);
  transition: background 150ms ease, border-color 150ms ease;
  white-space: nowrap;
}

.site-header__back:hover {
  background: rgba(125, 196, 255, 0.15);
  border-color: rgba(125, 196, 255, 0.5);
}

.site-header__brand {
  font-weight: 600;
  font-size: 1.15rem;
}

.site-header__title {
  flex: 1 1 auto;
  font-size: 1.25rem;
  color: rgba(244, 246, 251, 0.92);
}

.site-header__controls {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.data-mode-toggle {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-size: 0.85rem;
}

.data-mode-toggle select {
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  color: inherit;
  padding: 0.25rem 0.5rem;
}

.data-mode-toggle small {
  color: var(--color-text-muted);
}

.site-header__nav {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.site-header__nav a {
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  transition: background 150ms ease;
  outline: none;
}

.site-header__nav a:hover,
.site-header__nav a:focus {
  background: rgba(125, 196, 255, 0.15);
}

.site-header__nav a:focus-visible {
  box-shadow: 0 0 0 2px rgba(125, 196, 255, 0.7);
}

.page {
  margin: 0 auto;
  max-width: 1200px;
  padding: 2rem 1.5rem 4rem;
}

.toast-container {
  position: fixed;
  top: 1.25rem;
  right: 1.25rem;
  display: grid;
  gap: 0.75rem;
  z-index: 1200;
}

.toast {
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 150ms ease, transform 180ms ease;
  border-radius: 0.75rem;
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
  min-width: 220px;
}

.toast--error {
  background: rgba(255, 102, 102, 0.16);
  border: 1px solid rgba(255, 102, 102, 0.35);
  color: #ffd3d3;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0px);
}

@media (max-width: 768px) {
  .site-header__inner {
    justify-content: space-between;
  }

  .site-header__controls {
    width: 100%;
    justify-content: flex-start;
  }

  .site-header__nav {
    width: 100%;
    justify-content: space-between;
  }

  .site-header__nav a {
    flex: 1 1 auto;
    text-align: center;
  }

  .page {
    padding: 1.5rem;
  }

  .overview__grid {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  }

  .table td {
    font-size: 0.95rem;
  }
}

.section-header {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.addresses__table,
.blocks__table,
.transactions__table,
.receipts__table {
  background: rgba(18, 22, 29, 0.85);
  border-radius: 0.75rem;
  overflow: hidden;
  border: 1px solid rgba(125, 196, 255, 0.12);
}

.overview__grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.card {
  background: rgba(18, 22, 29, 0.85);
  border: 1px solid rgba(125, 196, 255, 0.12);
  border-radius: 0.75rem;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.stat-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.stat-list li {
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.stat-list li code {
  word-break: break-all;
  font-size: 0.9em;
}

.stat-list li + li {
  margin-top: 0.35rem;
}

.addresses__search {
  display: grid;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  background: rgba(18, 22, 29, 0.7);
  border-radius: 0.5rem;
  padding: 1rem 1.25rem;
  border: 1px solid rgba(125, 196, 255, 0.12);
}

.addresses__input-group {
  display: flex;
  gap: 0.75rem;
}

.addresses__input-group input,
.addresses__input-group button {
  border-radius: 0.5rem;
  border: 1px solid rgba(125, 196, 255, 0.25);
  padding: 0.5rem 0.75rem;
  background: rgba(12, 15, 20, 0.85);
  color: inherit;
  outline: none;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

.addresses__input-group input:focus-visible {
  border-color: rgba(125, 196, 255, 0.6);
  box-shadow: 0 0 0 2px rgba(125, 196, 255, 0.3);
}

.addresses__input-group button {
  cursor: not-allowed;
}

.receipts__controls {
  display: grid;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  background: rgba(18, 22, 29, 0.7);
  border-radius: 0.5rem;
  padding: 1rem 1.25rem;
  border: 1px solid rgba(125, 196, 255, 0.12);
}

.receipts__input-group {
  display: flex;
  gap: 0.75rem;
}

.receipts__input-group input,
.receipts__input-group button {
  border-radius: 0.5rem;
  border: 1px solid rgba(125, 196, 255, 0.25);
  padding: 0.5rem 0.75rem;
  background: rgba(12, 15, 20, 0.85);
  color: inherit;
  outline: none;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

.receipts__input-group input:focus-visible {
  border-color: rgba(125, 196, 255, 0.6);
  box-shadow: 0 0 0 2px rgba(125, 196, 255, 0.3);
}

.receipts__input-group button {
  cursor: not-allowed;
}

.site-footer {
  margin: 0;
  border-top: 1px solid rgba(125, 196, 255, 0.2);
  background: rgba(22, 27, 34, 0.95);
}

.site-footer__inner {
  margin: 0 auto;
  max-width: 1200px;
  padding: 1.25rem 1.5rem;
  color: rgba(244, 246, 251, 0.7);
  font-size: 0.9rem;
}
