.live-strip {
  width: 100%;
  margin: 0 auto;
  padding: 4px clamp(10px, 2vw, 22px);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 0;
  color: #9aa4b2;
  font-size: 11px;
  background: #11161d;
  border-bottom: 1px solid #242a33;
  overflow-x: auto;
  white-space: nowrap;
  scrollbar-width: thin;
}

.live-center {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px 14px;
  min-width: 0;
}

.live-item {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
  color: #9aa4b2;
  text-decoration: none;
  white-space: nowrap;
  line-height: 1.2;
}

.live-gas {
  margin-left: auto;
  justify-content: flex-end;
}

.live-item img {
  width: 18px;
  height: 18px;
  object-fit: contain;
  border-radius: 50%;
}

.live-item strong {
  color: #f5f7fb;
  font-size: 11px;
  overflow-wrap: anywhere;
}

.live-link:hover strong {
  color: #4fd1c5;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #f59e0b;
  box-shadow: 0 0 0 3px rgba(245,158,11,.15);
}

.pulse-dot.ok {
  background: #22c55e;
  box-shadow: 0 0 0 3px rgba(34,197,94,.16);
}

.pulse-dot.bad {
  background: #ef4444;
  box-shadow: 0 0 0 3px rgba(239,68,68,.16);
}

.back-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  margin: 0 0 12px;
  padding: 7px 12px;
  border: 1px solid #30363d;
  border-radius: 8px;
  background: #161b22;
  color: #dbeafe;
  cursor: pointer;
}

.back-button:hover {
  border-color: #4fd1c5;
  color: #fff;
}

.site-head {
  max-width: 1200px;
  margin: 0 auto;
  padding: 18px 10px 4px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-width: 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  min-width: 0;
}

.brand img {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.search {
  display: flex;
  min-width: min(520px, 100%);
  gap: 8px;
}

.search input {
  flex: 1;
  min-width: 0;
  background: #161a20;
  color: #fff;
  border: 1px solid #2a2e36;
  border-radius: 8px;
  padding: 10px 12px;
}

.search button {
  border: 1px solid #2a2e36;
  border-radius: 8px;
  background: #2563eb;
  color: #fff;
  padding: 10px 14px;
}

.block-gallery-wrap {
  margin-bottom: 20px;
  overflow: hidden;
  min-width: 0;
  border: 1px solid #2a2e36;
  border-radius: 8px;
  background: #11161d;
  padding: 12px;
}

.gallery-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.gallery-head h2 {
  margin: 0;
  color: #fff;
  font-size: 17px;
}

.gallery-head a {
  color: #4fd1c5;
  font-size: 13px;
}

.block-gallery {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  max-width: 100%;
  min-height: 150px;
  padding: 2px 2px 8px;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.block-gallery-empty {
  flex: 1 0 100%;
  min-height: 132px;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 6px;
  border: 1px dashed #334155;
  border-radius: 8px;
  color: #9aa4b2;
  background: #0d1117;
  text-align: center;
  padding: 16px;
}

.block-gallery-empty strong {
  color: #fff;
  font-size: 16px;
}

.block-tile {
  position: relative;
  flex: 0 0 158px;
  min-height: 132px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 8px;
  overflow: hidden;
  border: 1px solid #334155;
  border-radius: 8px;
  background: linear-gradient(180deg, #1f2937 0%, #111827 100%);
  color: #fff;
  text-decoration: none;
  padding: 12px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04);
}

.block-tile:hover {
  border-color: #4fd1c5;
  text-decoration: none;
}

.block-fill {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 0;
  background: linear-gradient(180deg, rgba(47,129,247,.12), rgba(47,129,247,.34));
  pointer-events: none;
}

.block-top,
.block-mid,
.block-bottom {
  position: relative;
  z-index: 1;
}

.block-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.block-top em {
  color: #c9d1d9;
  font-size: 12px;
  font-style: normal;
  white-space: nowrap;
}

.block-tile strong {
  font-size: 22px;
  line-height: 1;
}

.block-mid {
  color: #f8fafc;
  font-size: 13px;
  line-height: 1.3;
}

.block-bottom {
  display: grid;
  gap: 3px;
}

.block-tile small,
.muted {
  color: #9aa4b2;
}

.mono {
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  overflow-wrap: anywhere;
}

.copy-inline {
  width: auto;
  margin-left: 6px;
  border: 1px solid #30363d;
  border-radius: 6px;
  background: #21262d;
  color: #c9d1d9;
  padding: 3px 7px;
  font-size: 12px;
  cursor: pointer;
  white-space: nowrap;
}

.deploy-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0 14px;
}

.deploy-tabs a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  padding: 6px 10px;
  border: 1px solid #30363d;
  border-radius: 8px;
  background: #0d1117;
  color: #c9d1d9;
  text-decoration: none;
}

.deploy-tabs a.active,
.deploy-tabs a:hover {
  border-color: #4fd1c5;
  color: #f5f7fb;
}

.deploy-tabs span {
  color: #9aa4b2;
}

.deploy-badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid #30363d;
  background: #161b22;
  color: #dbeafe;
  font-size: 12px;
  text-transform: uppercase;
}

.deploy-badge.token {
  border-color: #1d4ed8;
}

.deploy-badge.pool {
  border-color: #0f766e;
}

.deploy-badge.contract {
  border-color: #7c3aed;
}

.logo-link {
  margin-left: 6px;
  color: #4fd1c5;
  font-size: 12px;
}

.token-title-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.token-logo {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid #30363d;
  background: #0d1117;
}

.detail dl {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 10px 16px;
  margin: 0;
}

.detail dt {
  color: #9aa4b2;
}

.detail dd {
  margin: 0;
  min-width: 0;
  overflow-wrap: anywhere;
}

.detail-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.detail-head h3 {
  margin-bottom: 4px;
}

.detail-head a {
  color: #4fd1c5;
  white-space: nowrap;
}

.json-block {
  max-height: 620px;
  overflow: auto;
  margin: 0;
  padding: 12px;
  border: 1px solid #30363d;
  border-radius: 8px;
  background: #0d1117;
  color: #dbeafe;
  font-size: 13px;
  line-height: 1.45;
}

.pager {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
  color: #9aa4b2;
}

.pager a {
  color: #4fd1c5;
}

.treasury-vault {
  margin-bottom: 16px;
  padding: 18px 20px;
  border: 1px solid #2a2e36;
  border-radius: 12px;
  background: #11161d;
  box-shadow: 0 18px 44px rgba(0,0,0,.24);
}

.treasury-hero {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.treasury-hero img {
  width: 34px;
  height: 34px;
}

.treasury-hero h1 {
  margin: 0 0 4px;
  color: #f5f7fb;
  font-size: 24px;
}

.treasury-hero p {
  margin: 0;
  color: #9aa4b2;
}

.treasury-balance {
  color: #fff;
  font-size: 30px;
  font-weight: 700;
  line-height: 1;
}

.treasury-pill {
  margin-left: auto;
  border: 1px solid #2a2e36;
  border-radius: 999px;
  padding: 6px 10px;
  color: #dbeafe;
  background: #1c2430;
}

.treasury-pill.ok {
  border-color: #195233;
  background: #0e1f17;
  color: #86efac;
}

.treasury-pill.bad {
  border-color: #532323;
  background: #1f0f10;
  color: #fca5a5;
}

.treasury-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.treasury-grid article {
  display: grid;
  gap: 5px;
  padding: 14px;
  border: 1px solid #2a2e36;
  border-radius: 8px;
  background: #0d1117;
}

.treasury-grid span,
.treasury-grid small {
  color: #9aa4b2;
}

.treasury-grid strong {
  color: #f5f7fb;
  overflow-wrap: anywhere;
}

.dashboard,
.box,
.columns,
.col,
.stats,
table,
tbody,
tr,
td {
  min-width: 0;
}

td,
th,
a,
small,
span {
  overflow-wrap: anywhere;
}

.block-tile.new {
  animation: slideIn .28s ease-out;
  border-color: #2f81f7;
}

.error {
  margin-bottom: 16px;
  color: #ffb4b4;
}

.app-footer {
  max-width: 1200px;
  margin: 14px auto 28px;
  padding: 0 12px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  color: #8b949e;
  font-size: 12px;
}

.app-footer a {
  color: #4fd1c5;
  text-decoration: none;
}

.footer-doc-links {
  display: grid;
  gap: 4px;
}

.app-footer a:hover {
  color: #b5f5ef;
}

.docs-page {
  display: grid;
  gap: 16px;
}

.docs-hero,
.docs-section {
  min-width: 0;
  border: 1px solid #2a2e36;
  border-radius: 8px;
  background: #11161d;
  padding: 18px;
}

.docs-hero h1,
.docs-section h2 {
  margin: 0 0 10px;
  color: #f5f7fb;
  line-height: 1.15;
}

.docs-hero h1 {
  font-size: 30px;
}

.docs-section h2 {
  font-size: 20px;
}

.docs-hero p,
.docs-section p {
  max-width: 920px;
  margin: 0 0 12px;
  color: #c9d1d9;
  line-height: 1.6;
}

.docs-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.docs-meta span {
  display: inline-flex;
  min-width: 0;
  border: 1px solid #30363d;
  border-radius: 999px;
  background: #0d1117;
  color: #dbeafe;
  padding: 6px 10px;
}

.docs-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.docs-table {
  width: 100%;
  border-collapse: collapse;
  overflow-wrap: anywhere;
}

.docs-table th,
.docs-table td {
  border-bottom: 1px solid #2a2e36;
  padding: 10px 8px;
  color: #c9d1d9;
  text-align: left;
  vertical-align: top;
}

.docs-table th {
  color: #f5f7fb;
  font-weight: 700;
}

.docs-list {
  margin: 0;
  padding-left: 20px;
  color: #c9d1d9;
  line-height: 1.55;
}

.docs-list li + li {
  margin-top: 8px;
}

.docs-page code {
  color: #dbeafe;
  overflow-wrap: anywhere;
}

@keyframes slideIn {
  from { transform: translateX(-20px); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

@media (max-width: 760px) {
  body {
    font-size: 15px;
  }

  .site-head {
    align-items: stretch;
    flex-direction: column;
    gap: 12px;
    padding: 14px 12px 0;
  }

  .live-strip,
  .live-strip-secondary {
    justify-content: flex-start;
    gap: 6px 10px;
    flex-wrap: wrap;
    padding: 6px 12px;
    overflow-x: visible;
    white-space: normal;
  }

  .live-center {
    flex: 1 1 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 6px 10px;
  }

  .live-item {
    flex: 1 1 112px;
    white-space: normal;
  }

  .live-gas {
    margin-left: 0;
  }

  .brand {
    font-size: 16px;
  }

  .brand img {
    width: 30px;
    height: 30px;
  }

  .search {
    min-width: 0;
    width: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .header-live {
    min-width: 0;
  }

  .search input,
  .search button {
    min-height: 42px;
    font-size: 15px;
  }

  .dashboard {
    width: 100%;
    margin: 14px auto;
    padding: 8px 12px;
  }

  .stats {
    gap: 10px;
    margin-bottom: 16px;
  }

  .stat-box {
    padding: 12px;
  }

  .stat-box p {
    font-size: 20px;
    line-height: 1.2;
    overflow-wrap: anywhere;
  }

  .block-gallery {
    gap: 8px;
  }

  .block-tile {
    flex-basis: 138px;
    min-height: 118px;
    padding: 10px;
  }

  .block-tile strong {
    font-size: 19px;
  }

  .block-mid {
    font-size: 12px;
  }

  .box {
    padding: 12px;
  }

  .box h3 {
    font-size: 16px;
    line-height: 1.25;
  }

  .detail dl {
    display: block;
  }

  .treasury-hero {
    align-items: flex-start;
  }

  .treasury-pill {
    margin-left: 0;
  }

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

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

  .docs-hero,
  .docs-section {
    padding: 14px;
  }

  .docs-hero h1 {
    font-size: 24px;
  }

  .docs-table,
  .docs-table thead,
  .docs-table tbody,
  .docs-table tr,
  .docs-table th,
  .docs-table td {
    display: block;
  }

  .docs-table tr {
    border-bottom: 1px solid #2a2e36;
    padding: 8px 0;
  }

  .docs-table th,
  .docs-table td {
    border-bottom: 0;
    padding: 5px 0;
  }

  .detail dt {
    margin-top: 12px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .04em;
  }

  .detail dt:first-child {
    margin-top: 0;
  }

  .detail dd {
    margin-top: 5px;
    line-height: 1.45;
  }

  .copy-inline {
    margin-left: 0;
    margin-top: 6px;
    display: inline-flex;
    min-height: 30px;
    align-items: center;
  }

  .mobile-table tr {
    overflow: hidden;
  }

  .mobile-table td {
    line-height: 1.45;
  }

  .mobile-table td a {
    display: inline;
  }
}

@media (max-width: 420px) {
  .search {
    grid-template-columns: 1fr;
  }

  .search button {
    width: 100%;
  }

  .block-tile {
    flex-basis: 128px;
  }

  .stat-box p {
    font-size: 18px;
  }
}
