* {
  box-sizing: border-box;
}

:root {
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  color: #eee;
  background: #080808;
}

body {
  margin: 0;
  min-height: 100vh;
  background: #080808;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 24px;
  border-bottom: 1px solid #292929;
  background: #0d0d0d;
}

.site-title {
  font-size: clamp(1.55rem, 3vw, 2.35rem);
  font-weight: 800;
  letter-spacing: .16em;
  line-height: 1.15;
  color: #eee;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.community-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.community-label {
  padding: 0 3px;
  color: #f2c94c;
  font-size: .65rem;
  font-weight: 800;
  letter-spacing: .1em;
  white-space: nowrap;
}

.community-link {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 7px 11px;
  border: 1px solid #393939;
  border-radius: 999px;
  color: #f2d879;
  background: #17150d;
  font-size: .76rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: border-color .15s ease, background-color .15s ease, transform .15s ease;
}

.community-link:hover {
  border-color: #f2c94c;
  background: #28220f;
  color: #fff;
  transform: translateY(-1px);
}

.community-link:focus-visible {
  outline: 2px solid #f2c94c;
  outline-offset: 2px;
}

.community-telegram {
  border-color: #229ed9;
  background: #167fb2;
  color: #fff;
}

.community-telegram:hover {
  border-color: #63c9f6;
  background: #168fc8;
}

.community-x {
  border-color: #555;
}

.status {
  font: 700 .72rem ui-monospace, SFMono-Regular, Consolas, monospace;
  color: #aaa;
}

.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  min-height: calc(100vh - 125px);
}

.map-panel {
  position: relative;
  min-height: 680px;
  border-right: 1px solid #292929;
}

#map {
  position: absolute;
  inset: 0;
}

.map-tools {
  position: absolute;
  top: 16px;
  left: 16px;
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  z-index: 5;
}

.map-tools input {
  width: 300px;
  border: 1px solid #3b3b3b;
  background: #111;
  color: #eee;
  border-radius: 8px;
  padding: 9px 11px;
  outline: none;
}

button {
  border: 1px solid #3b3b3b;
  background: #181818;
  color: #eee;
  border-radius: 8px;
  padding: 9px 12px;
  cursor: pointer;
}

button:hover {
  background: #252525;
}

.legend {
  position: absolute;
  left: 16px;
  bottom: 16px;
  display: flex;
  gap: 15px;
  padding: 9px 12px;
  border: 1px solid #292929;
  border-radius: 8px;
  background: rgba(8, 8, 8, .92);
  color: #aaa;
  font-size: .75rem;
}

.dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  margin-right: 5px;
  background: #aaa;
}

.line {
  display: inline-block;
  width: 15px;
  height: 2px;
  margin: 0 5px 3px 0;
  background: #777;
}

.sidebar {
  padding: 24px;
  background: #101010;
  overflow-y: auto;
}

.sidebar h2 {
  margin-top: 0;
}

.sidebar h3 {
  margin-bottom: 10px;
  font-size: .85rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: #aaa;
}

.muted {
  color: #999;
  line-height: 1.55;
}

.stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 24px 0;
}

.stats div {
  padding: 14px;
  border: 1px solid #2b2b2b;
  border-radius: 10px;
}

.stats strong {
  display: block;
  font-size: 1.5rem;
}

.stats span {
  color: #888;
  font-size: .75rem;
}

.section {
  margin-top: 25px;
  padding-top: 18px;
  border-top: 1px solid #292929;
}

.controls {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.details {
  color: #aaa;
  line-height: 1.45;
}

.details .address {
  color: #eee;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: .72rem;
  word-break: break-all;
  margin-bottom: 12px;
}

.details dl {
  margin: 0;
}

.details dt {
  color: #777;
  font-size: .72rem;
  margin-top: 8px;
}

.details dd {
  margin: 2px 0 0;
  color: #ddd;
}

.address-activity {
  color: #aaa;
  font-size: .76rem;
  line-height: 1.5;
}

.activity-summary {
  margin-bottom: 12px;
  color: #ddd;
}

.activity-axis {
  display: flex;
  justify-content: space-between;
  color: #747474;
  font: .65rem ui-monospace, SFMono-Regular, Consolas, monospace;
}

.activity-row {
  padding: 10px 0;
  border-top: 1px solid #252525;
}

.activity-address {
  overflow: hidden;
  color: #c9c9c9;
  font: .68rem ui-monospace, SFMono-Regular, Consolas, monospace;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.activity-track {
  position: relative;
  height: 7px;
  margin: 7px 0 5px;
  border-radius: 5px;
  background: #242424;
}

.activity-range {
  position: absolute;
  top: 0;
  bottom: 0;
  min-width: 3px;
  border-radius: 5px;
  background: #f2c94c;
}

.activity-meta {
  color: #858585;
  font-size: .68rem;
}

.activity-note {
  margin: 12px 0 0;
  color: #777;
  font-size: .68rem;
  line-height: 1.5;
}

.dataset-info {
  color: #aaa;
  font-size: .78rem;
  line-height: 1.7;
  word-break: break-word;
}

.dataset-info strong {
  color: #ddd;
}

footer {
  padding: 14px 24px;
  border-top: 1px solid #292929;
  color: #666;
  font-size: .72rem;
  text-align: right;
  line-height: 1.6;
}

footer strong {
  color: #999;
}

@media (max-width: 800px) {
  .layout {
    grid-template-columns: 1fr;
  }

  .map-panel {
    min-height: 65vh;
    border-right: 0;
    border-bottom: 1px solid #292929;
  }

  .topbar {
    align-items: flex-start;
    gap: 12px;
    flex-direction: column;
  }

  .topbar-actions {
    width: 100%;
    align-items: flex-start;
    flex-direction: column;
  }

  .community-nav {
    width: 100%;
    flex-wrap: wrap;
  }

  .map-tools input {
    width: min(65vw, 300px);
  }
}

/* =========================================================
   QTC Community — ON-CHAIN ADDRESS TICKER
   ========================================================= */

#wallet-ticker {
  display: grid;
  grid-template-columns: repeat(4, minmax(140px, 1fr));
  gap: 8px;
  margin: 0 0 12px 0;
  padding: 0;
}

#wallet-ticker .ticker-item {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 48px;
  padding: 7px 10px;
  border-radius: 8px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.10);
}

#wallet-ticker .ticker-label {
  font-size: 9px;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.65;
  margin-bottom: 3px;
}

#wallet-ticker strong {
  font-size: 16px;
  line-height: 1.2;
  font-weight: 700;
}

.wallet-ticker-note {
  margin: -5px 0 12px;
  color: #858585;
  font-size: .7rem;
  line-height: 1.4;
}

@media (max-width: 900px) {
  #wallet-ticker {
    grid-template-columns: repeat(2, minmax(140px, 1fr));
  }
}

@media (max-width: 520px) {
  #wallet-ticker {
    grid-template-columns: 1fr;
  }
}

/* =========================================================
   QTC Community — EXCHANGE WALLET HIGHLIGHT
   ========================================================= */

.legend .exchange-dot {
  display: inline-block;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  margin-right: 5px;
  background: #f2c94c;
  border: 2px solid #fff1a8;
  box-shadow: 0 0 9px rgba(242, 201, 76, 0.9);
  vertical-align: -1px;
}

.legend .exchange-legend {
  color: #f4df91;
  font-weight: 700;
}

.legend .candidate-dot {
  display: inline-block;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  margin-right: 5px;
  background: #c77721;
  border: 2px dashed #ffd29a;
  vertical-align: -1px;
}

.candidate-attribution {
  border: 1px dashed #ffd29a;
  border-radius: 8px;
  padding: 12px;
  margin: 12px 0;
  color: #ffd29a;
}

.candidate-attribution p { line-height: 1.5; }
.candidate-attribution .address { overflow-wrap: anywhere; }

/* =========================================================
   QTC Community — QTC BLOCK TICKER
   ========================================================= */

.block-ticker {
  display: flex;
  align-items: stretch;
  gap: 0;
  min-height: 62px;
  padding: 0 24px;
  border-bottom: 1px solid #292929;
  background: #0b0b0b;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  overflow-x: auto;
}

.block-ticker-live {
  display: flex;
  align-items: center;
  gap: 9px;
  padding-right: 22px;
  color: #e8e8e8;
  font-weight: 800;
  letter-spacing: .08em;
  white-space: nowrap;
}

.live-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #5cff8d;
  box-shadow: 0 0 12px rgba(92,255,141,.8);
  animation: qtc-live-pulse 1.5s infinite;
}

.block-ticker-item {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 125px;
  padding: 8px 18px;
  border-left: 1px solid #292929;
}

.block-ticker-item span {
  color: #777;
  font-size: .62rem;
  letter-spacing: .1em;
}

.block-ticker-item strong {
  margin-top: 4px;
  color: #eee;
  font-size: 1rem;
}

.block-ticker-item:first-of-type strong {
  color: #fff;
}

.ticker-source strong {
  color: #aaa;
  font-size: .72rem;
}

.token-overview {
  display: grid;
  grid-template-columns: minmax(0, 340px) minmax(0, 1fr);
  gap: 14px;
  align-items: stretch;
  padding: 10px 24px;
  border-bottom: 1px solid #292929;
  background: #0d0d0d;
}

.market-cap-card,
.emission-card {
  min-width: 0;
  padding: 9px 12px;
  border: 1px solid #393325;
  border-radius: 8px;
  background: rgba(12, 12, 12, .88);
}

.market-cap-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-content: center;
  justify-items: stretch;
  gap: 6px;
  width: 100%;
  max-width: 340px;
  min-width: 0;
  min-height: 0;
  margin-left: 8px;
  overflow: hidden;
}

.qtc-logo { width: 38px; height: 38px; flex: none; }

.cmc-widget {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
}

.cmc-widget .coinmarketcap-currency-widget,
.cmc-widget .coinmarketcap-currency-widget > div,
.cmc-widget iframe {
  display: block;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
}

.cmc-widget iframe { border: 0; }

.cmc-widget .coinmarketcap-currency-widget a {
  overflow-wrap: anywhere !important;
  word-break: break-word !important;
}

.cmc-widget .coinmarketcap-currency-widget > div > div:first-child > div:first-child {
  width: 25% !important;
}

.cmc-widget .coinmarketcap-currency-widget > div > div:first-child > div:nth-child(2) {
  width: 75% !important;
  padding-right: 8px;
  box-sizing: border-box !important;
}

.price-copy { min-width: 0; }

.price-copy strong {
  display: block;
  color: #eee;
  font-size: .9rem;
  font-variant-numeric: tabular-nums;
}

.price-copy strong[hidden] { display: none !important; }

.market-change {
  display: block;
  margin-top: 1px;
  color: #39bf91;
  font-size: .8rem;
  font-variant-numeric: tabular-nums;
}

.market-change.is-negative { color: #ef7777; }
.market-change[hidden] { display: none !important; }

.cmc-widget-fallback {
  width: 100%;
  max-width: 220px;
  height: auto;
  overflow: visible;
}
.cmc-widget-fallback[hidden] { display: none; }

.cmc-widget-fallback .coinmarketcap-currency-widget > div {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
}

.cmc-widget-fallback .coinmarketcap-currency-widget > div > div:first-child > div:first-child {
  width: 25% !important;
}

.cmc-widget-fallback .coinmarketcap-currency-widget > div > div:first-child > div:nth-child(2) {
  width: 75% !important;
  padding-right: 6px;
  box-sizing: border-box !important;
}

.cmc-widget-fallback .coinmarketcap-currency-widget a {
  overflow-wrap: anywhere !important;
}

.cmc-widget-fallback .coinmarketcap-currency-widget span[style*="margin-left:6px"]::after {
  content: " (24h)";
  color: #aaa;
  font-size: .75em;
}

.cmc-widget-fallback iframe {
  width: 100% !important;
  max-width: 220px !important;
  height: 150px !important;
  border: 0;
}

.overview-kicker {
  margin-bottom: 4px;
  color: #f2c94c;
  font-size: .6rem;
  font-weight: 800;
  letter-spacing: .12em;
}

.overview-source {
  align-self: flex-start;
  margin-top: 2px;
  color: #777;
  font-size: .62rem;
  text-decoration: none;
}

.overview-source:hover { color: #f2c94c; }

.emission-card {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.emission-current {
  display: grid;
  grid-template-columns: auto auto;
  align-items: baseline;
  column-gap: 12px;
  row-gap: 3px;
}

.emission-current .overview-kicker {
  grid-column: 1 / -1;
  margin: 0;
}

.emission-current-stage {
  color: #f2c94c;
  font-size: 1rem;
}

.emission-current-reward {
  color: #eee;
  font: 700 .85rem ui-monospace, SFMono-Regular, Consolas, monospace;
}

.emission-current-progress {
  grid-column: 1 / -1;
  color: #888;
  font-size: .66rem;
}

.supply-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(110px, 1fr));
  gap: 8px;
  flex: 1 1 460px;
}

.supply-metrics > div {
  min-width: 0;
  padding: 7px 9px;
  border-left: 2px solid #51451e;
  background: #141414;
}

.supply-metrics span {
  display: block;
  color: #888;
  font-size: .62rem;
  line-height: 1.3;
}

.supply-metrics strong {
  display: block;
  margin-top: 3px;
  color: #eee;
  font: 700 .77rem/1.35 ui-monospace, SFMono-Regular, Consolas, monospace;
  overflow-wrap: anywhere;
}

.supply-method {
  flex: 1 0 100%;
  margin: -7px 0 0;
  color: #777;
  font-size: .6rem;
  line-height: 1.35;
}

.emission-details {
  margin-left: auto;
  color: #ddd;
  font-size: .86rem;
}

.emission-details summary {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  padding: 0 14px;
  border: 1px solid #786626;
  border-radius: 6px;
  color: #ffe27a;
  background: #29230f;
  cursor: pointer;
  font-size: .86rem;
  font-weight: 750;
  letter-spacing: .02em;
  white-space: nowrap;
  list-style: none;
}

.emission-details summary::-webkit-details-marker { display: none; }
.emission-details summary::before {
  content: "+";
  margin-right: 9px;
  font-size: 1.1rem;
  line-height: 1;
}
.emission-details[open] summary::before { content: "−"; }
.emission-details summary:hover {
  border-color: #f2c94c;
  background: #38300f;
}

.emission-table-wrap {
  position: absolute;
  z-index: 30;
  top: calc(100% - 1px);
  right: 24px;
  left: 24px;
  max-height: min(70vh, 560px);
  overflow: auto;
  border: 1px solid #49412b;
  border-radius: 8px;
  background: #101010;
  box-shadow: 0 16px 40px rgba(0, 0, 0, .8);
}

.token-overview { position: relative; z-index: 10; }

.emission-table {
  width: 100%;
  border-collapse: collapse;
  font: .75rem ui-monospace, SFMono-Regular, Consolas, monospace;
  white-space: nowrap;
}

.emission-table th,
.emission-table td {
  padding: 9px 12px;
  border-bottom: 1px solid #292929;
  text-align: left;
}

.emission-table th {
  position: sticky;
  top: 0;
  color: #d3bd64;
  background: #171717;
}

.emission-table tr.is-current-phase td {
  color: #fff0a5;
  background: #30280f;
}

.emission-table-note {
  margin: 0;
  padding: 9px 12px;
  color: #888;
  background: #101010;
  font-size: .68rem;
}

@media (max-width: 1200px), (pointer: coarse) {
  .token-overview { grid-template-columns: minmax(0, 1fr); }
  .emission-table-wrap { right: 12px; left: 12px; }
}

@media (max-width: 700px) {
  .token-overview { grid-template-columns: 1fr; padding: 10px 12px; }
  .market-cap-card { max-width: 100%; min-height: 0; margin-left: 0; }
  .cmc-widget-fallback { max-width: 220px; }
  .emission-card { gap: 12px; }
  .supply-metrics { grid-template-columns: 1fr 1fr; flex-basis: 100%; }
  .emission-details { margin-left: 0; }
  .emission-table { font-size: .68rem; }
  .emission-table th, .emission-table td { padding: 7px 9px; }
}

@keyframes qtc-live-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .45; transform: scale(.82); }
}

@media (max-width: 700px) {
  .block-ticker {
    padding: 0 12px;
  }

  .block-ticker-live {
    padding-right: 14px;
  }

  .block-ticker-item {
    min-width: 105px;
    padding: 8px 12px;
  }
}


/* ------------------------------------------------------------
   QTC Community — PROFESSIONAL FOOTER
   ------------------------------------------------------------ */

.site-footer {
  margin-top: 0;
  padding: 28px 24px 32px;
  border-top: 1px solid rgba(255,255,255,.10);
  background: rgba(5,7,10,.96);
  color: #8d98a5;
  font-size: 12px;
  line-height: 1.6;
}

.footer-brand {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 12px;
}

.footer-brand strong {
  color: #e8edf2;
  letter-spacing: .12em;
  font-size: 13px;
}

.footer-brand span {
  color: #7d8996;
}

.footer-notice {
  max-width: 900px;
  margin: 5px 0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin: 18px 0 14px;
}

.footer-links a {
  color: #aeb8c2;
  text-decoration: none;
}

.footer-links a:hover {
  color: #ffffff;
  text-decoration: underline;
}

.footer-copy {
  color: #68737e;
}

/* ------------------------------------------------------------
   QTC Community — INFORMATION PAGES
   ------------------------------------------------------------ */

.info-page {
  max-width: 900px;
  margin: 0 auto;
  padding: 48px 24px 80px;
  min-height: calc(100vh - 180px);
}

.info-page h1 {
  margin: 0 0 28px;
  color: #e8edf2;
}

.info-page h2 {
  margin: 32px 0 10px;
  color: #d7dee5;
  font-size: 16px;
}

.info-page p {
  max-width: 800px;
  color: #9ba6b1;
  line-height: 1.75;
}

.info-page pre {
  display: inline-block;
  padding: 12px 16px;
  overflow-x: auto;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  color: #cbd4dc;
}

.info-warning {
  margin: 28px 0;
  padding: 16px 18px;
  border-left: 3px solid #596673;
  background: rgba(255,255,255,.035);
  color: #9da8b3;
  line-height: 1.65;
}

.status a {
  color: inherit;
  text-decoration: none;
}

.status a:hover {
  text-decoration: underline;
}

.view-switch {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border: 1px solid #51451e;
  border-radius: 9px;
  background: #14120b;
}

.view-switch-label { padding: 0 7px; color: #f2c94c; font-size: .62rem; font-weight: 800; letter-spacing: .1em; }
.view-switch-button { min-height: 38px; padding: 7px 12px; border-color: transparent; color: #bbb; background: transparent; font-size: .78rem; font-weight: 750; }
.view-switch-button[aria-pressed="true"] { border-color: #f2c94c; color: #16130a; background: #f2c94c; }
.view-switch-button:focus-visible { outline: 2px solid #fff0a5; outline-offset: 2px; }
/* ------------------------------------------------------------
   MOBILE LAYOUT — automatically selected on narrow screens, user-overridable
   ------------------------------------------------------------ */

body.mobile-view .topbar {
  position: relative;
  padding: 14px 12px;
  flex-wrap: wrap;
}

body.mobile-view .site-title {
  font-size: clamp(1.15rem, 6vw, 1.55rem);
  letter-spacing: .1em;
}

body.mobile-view .topbar-actions {
  width: 100%;
  align-items: flex-start;
  flex-direction: column;
  gap: 9px;
}

body.mobile-view .community-nav { width: 100%; gap: 6px; flex-wrap: wrap; }
body.mobile-view .community-label { flex-basis: 100%; }
body.mobile-view .community-link { min-height: 40px; padding: 8px 10px; }

/* Keep all network figures visible without horizontal scrolling. */
body.mobile-view .block-ticker {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 8px 12px;
  overflow: hidden;
}

body.mobile-view .block-ticker-live { grid-column: 1 / -1; min-height: 32px; padding: 0 0 6px; }
body.mobile-view .block-ticker-item { min-width: 0; min-height: 52px; padding: 7px 9px; border-top: 1px solid #292929; border-left: 0; }
body.mobile-view .block-ticker-item:nth-of-type(odd) { border-left: 1px solid #292929; }
body.mobile-view .block-ticker-item strong { font-size: .88rem; overflow-wrap: anywhere; }

body.mobile-view .token-overview { grid-template-columns: minmax(0, 1fr); gap: 8px; padding: 9px 12px; }
body.mobile-view .market-cap-card { justify-content: flex-start; max-width: none; min-height: 0; margin-left: 0; }
body.mobile-view .emission-card { align-items: flex-start; padding: 11px; }
body.mobile-view .supply-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
body.mobile-view .supply-metrics > div { padding: 7px; }

body.mobile-view .layout { grid-template-columns: minmax(0, 1fr); min-height: 0; }
body.mobile-view .map-panel { height: min(64vh, 590px); min-height: 420px; border-right: 0; border-bottom: 1px solid #292929; }
body.mobile-view .map-tools { top: 10px; right: 10px; left: 10px; gap: 6px; }
body.mobile-view .map-tools input { flex: 1 1 100%; width: 100%; min-width: 0; min-height: 42px; }
body.mobile-view .map-tools button { min-height: 42px; flex: 1 1 auto; padding: 8px 10px; }
body.mobile-view .legend { right: 10px; bottom: 10px; left: 10px; justify-content: center; flex-wrap: wrap; gap: 7px 12px; padding: 8px; font-size: .68rem; }

body.mobile-view .sidebar { padding: 18px 12px; overflow: visible; }
body.mobile-view #wallet-ticker { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; padding: 0; }
body.mobile-view #wallet-ticker .ticker-item { min-width: 0; min-height: 44px; padding: 6px 8px; }
body.mobile-view #wallet-ticker .ticker-item strong { overflow-wrap: anywhere; }
body.mobile-view .controls > button, body.mobile-view .controls > select { min-height: 42px; }
body.mobile-view .site-footer { padding: 22px 12px 26px; text-align: left; }
body.mobile-view .footer-links { gap: 12px; }

@media (max-width: 360px) {
  body.mobile-view .map-panel { min-height: 390px; }
  body.mobile-view .block-ticker-item { padding-right: 6px; padding-left: 6px; }
  body.mobile-view .block-ticker-item strong { font-size: .78rem; }
}

/* Focused public on-chain neighborhood. */
.relationship-note { line-height: 1.6; font-size: 12px; }
.flow-in { color: #54d7ed; }
.flow-out { color: #f2c94c; }
.relationship-list { display: grid; gap: 8px; max-height: 420px; overflow: auto; }
.relationship-peer { display: grid; gap: 5px; width: 100%; text-align: left; padding: 10px; background: #171b1e; border: 1px solid #41484c; border-radius: 8px; cursor: pointer; }
.relationship-peer:hover, .relationship-peer:focus-visible { border-color: #f2c94c; }
.relationship-peer strong { color: #fff; overflow-wrap: anywhere; }

/* Keep inspection panels from stretching the canvas to thousands of pixels. */
body:not(.mobile-view) .layout { align-items: start; }
body:not(.mobile-view) .map-panel { height: max(680px, 80vh); }
body:not(.mobile-view) .sidebar { max-height: max(680px, 80vh); }
.activity-rows { max-height: 280px; overflow-y: auto; }
.relationship-address { color: #aaa; font: 11px ui-monospace, monospace; overflow-wrap: anywhere; }

/* On-demand relationship explorer: no extra dataset requests or graph physics. */
.compare-address { display: block; width: 100%; min-width: 0; margin: 6px 0; padding: 10px; color: #eee; background: #171b1e; border: 1px solid #41484c; border-radius: 8px; }
.compare-address:focus-visible { outline: 2px solid #54d7ed; }
.compare-actions { display: flex; gap: 8px; flex-wrap: wrap; margin: 12px 0; }
#compare-run { border-color: #54d7ed; }
#comparison-result { font-size: 12px; line-height: 1.6; overflow-wrap: anywhere; }
.comparison-peer { padding: 9px 0; border-top: 1px solid #333; }
.connection-direction { overflow-wrap: anywhere; font: 12px/1.7 ui-monospace, monospace; }
.connection-choice { display: grid; gap: 4px; width: 100%; margin: 6px 0; text-align: left; overflow-wrap: anywhere; }
.connection-choice strong { color: #54d7ed; }
.wallet-links-disclosure summary { cursor: pointer; padding: 10px 0; }
body.mobile-view .compare-actions button, body.mobile-view #use-selected-a, body.mobile-view #use-selected-b { min-height: 44px; }

.sidebar #wallet-ticker { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.sidebar #wallet-ticker .ticker-item { min-width: 0; }
.sidebar #wallet-ticker strong { overflow-wrap: anywhere; }
.sidebar label[for="compare-a"], .sidebar label[for="compare-b"] { display: block; margin-top: 12px; }
.sidebar #connection-details, .sidebar #wallet-connections { overflow-wrap: anywhere; }

/* Public wallet sharing and community guides. */
#wallet-share { margin-top:16px; }
#wallet-share label { display:block; margin-bottom:6px; }
#wallet-share-url { box-sizing:border-box; width:100%; min-width:0; padding:10px; border:1px solid #344454; border-radius:7px; color:#dfeaf4; background:#111820; }
#copy-wallet-link { margin-top:8px; min-height:44px; }
.telegram-community { margin:28px 24px; padding:24px; border:1px solid #29445b; border-radius:14px; background:linear-gradient(120deg,#0b1723,#10151d); display:grid; grid-template-columns:1fr 1fr; gap:24px; align-items:center; }
.telegram-community h2 { margin:6px 0 12px; font-size:22px; color:#f0f5fa; }
.telegram-community p { color:#aebfce; line-height:1.6; }
.community-eyebrow { font-size:11px; letter-spacing:2px; color:#61c8eb !important; }
.community-join { display:inline-block; padding:12px 16px; border-radius:8px; background:#1686b3; color:white; text-decoration:none; font-weight:600; }
.community-guides { display:grid; grid-template-columns:1fr 1fr; gap:14px; min-width:0; }
.community-guides a { min-width:0; color:#c5d8e7; text-decoration:none; font-size:12px; }
.community-guides img { display:block; width:100%; height:auto; border-radius:8px; border:1px solid #3a4e61; box-sizing:border-box; }
.community-guides span { display:block; padding-top:8px; line-height:1.4; }
@media(max-width:700px) { .telegram-community { margin:16px 12px; padding:18px; grid-template-columns:1fr; } }

.wallet-index-status { margin:12px 24px; color:#b8ccd9; font-size:12px; line-height:1.6; }
#show-small-wallet-flows { margin-top:8px; min-height:44px; }
