:root {
  color-scheme: dark;
  --bg: #000a1e;
  --bg-deep: #02071a;
  --panel: #030d43;
  --panel-soft: #051153;
  --panel-lift: #0a1f44;
  --ink: #ffffff;
  --muted: #c1cade;
  --muted-2: #909fc0;
  --line: rgba(0, 148, 255, 0.28);
  --line-soft: rgba(0, 148, 255, 0.16);
  --primary: #0094ff;
  --primary-2: #4ab3ff;
  --cyan: #74e0d5;
  --green: #4fda74;
  --yellow: #c7f351;
  --danger: #ff6b8d;
  --shadow: 0 22px 70px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 70% 4%, rgba(0, 148, 255, 0.24), transparent 34rem),
    radial-gradient(circle at 12% 22%, rgba(116, 224, 213, 0.16), transparent 30rem),
    linear-gradient(180deg, #000a1e 0%, #031338 46%, #000a1e 100%);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background:
    linear-gradient(90deg, rgba(0, 148, 255, 0.06) 1px, transparent 1px),
    linear-gradient(0deg, rgba(0, 148, 255, 0.04) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.88), transparent 82%);
}

button,
input {
  font: inherit;
}

.top-banner {
  display: flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  padding: 8px 18px;
  background: linear-gradient(90deg, #0094ff, #2a6dff);
  color: #ffffff;
  font-size: 14px;
  font-weight: 800;
  text-align: center;
}

.sticky-shell {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid var(--line-soft);
  background:
    radial-gradient(circle at 70% 0%, rgba(0, 148, 255, 0.16), transparent 30rem),
    rgba(0, 10, 30, 0.9);
  backdrop-filter: blur(18px);
}

.site-header {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  min-height: 72px;
  padding: 0 max(20px, calc((100vw - 1280px) / 2));
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
}

.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background:
    linear-gradient(135deg, rgba(0, 148, 255, 0.14), rgba(116, 224, 213, 0.12)),
    url("https://blockdag.network/icons/bdag.svg") center / 25px 25px no-repeat,
    #031338;
  border: 1px solid rgba(0, 148, 255, 0.44);
  box-shadow: 0 0 26px rgba(0, 148, 255, 0.25);
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 16px;
  line-height: 1.05;
  font-weight: 900;
}

.brand small {
  color: var(--primary-2);
  font-size: 12px;
  font-weight: 700;
}

.nav-links {
  display: flex;
  gap: 8px;
  align-items: center;
}

.nav-links a {
  border: 1px solid transparent;
  border-radius: 12px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 750;
  padding: 9px 12px;
  text-decoration: none;
}

.nav-links a:hover {
  border-color: var(--line-soft);
  background: rgba(0, 148, 255, 0.11);
  color: #ffffff;
}

.status-strip {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.status-pill,
.metric {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 12px;
  background: rgba(3, 13, 67, 0.72);
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
  white-space: nowrap;
}

.status-pill.ok {
  border-color: rgba(79, 218, 116, 0.5);
  background: rgba(79, 218, 116, 0.12);
  color: var(--green);
}

.status-pill.pending {
  border-color: rgba(199, 243, 81, 0.5);
  background: rgba(199, 243, 81, 0.11);
  color: var(--yellow);
}

.status-pill.bad {
  border-color: rgba(255, 107, 141, 0.5);
  background: rgba(255, 107, 141, 0.12);
  color: var(--danger);
}

.wallet-button {
  min-height: 36px;
  border-radius: 999px;
  padding: 7px 14px;
  background: linear-gradient(90deg, var(--yellow), var(--primary-2));
  color: #000a1e;
  font-size: 13px;
  box-shadow: 0 12px 26px rgba(0, 148, 255, 0.18);
  white-space: nowrap;
}

.wallet-button:hover {
  background: linear-gradient(90deg, #e4ff8b, #74e0d5);
  color: #000a1e;
}

.top-search {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 14px;
}

main {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  padding: 22px 0 64px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.68fr);
  gap: 28px;
  align-items: center;
  min-height: 360px;
  padding: 34px 0 26px;
}

.hero-copy {
  min-width: 0;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--primary-2);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.05;
}

h1 {
  max-width: 760px;
  color: #ffffff;
  font-size: clamp(38px, 6vw, 82px);
  font-weight: 900;
  letter-spacing: 0;
}

h2 {
  color: #ffffff;
  font-size: 22px;
  font-weight: 900;
}

h3 {
  color: #ffffff;
  font-size: 16px;
  font-weight: 850;
}

.hero-note {
  max-width: 640px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 18px;
  font-weight: 650;
  line-height: 1.48;
}

.search-card {
  display: grid;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px;
  background: linear-gradient(180deg, rgba(3, 13, 67, 0.92), rgba(3, 19, 56, 0.82));
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.search-card-wide {
  grid-template-columns: minmax(180px, 0.26fr) minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  min-height: 78px;
  padding: 12px 14px 12px 18px;
  background:
    radial-gradient(circle at 88% 15%, rgba(199, 243, 81, 0.12), transparent 18rem),
    linear-gradient(180deg, rgba(3, 13, 67, 0.96), rgba(3, 19, 56, 0.86));
}

.search-copy {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.search-card-wide .search-row {
  grid-column: 2;
  grid-row: 1;
}

.search-card-wide input {
  min-height: 52px;
  font-size: 16px;
}

.search-card-wide button {
  min-height: 52px;
  min-width: 118px;
}

.search-label {
  color: var(--primary-2);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.search-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.search-hint {
  color: var(--muted-2);
  font-size: 12px;
}

input {
  width: 100%;
  min-height: 52px;
  border: 1px solid rgba(0, 148, 255, 0.22);
  border-radius: 12px;
  padding: 11px 14px;
  background: rgba(0, 10, 30, 0.78);
  color: var(--ink);
  outline: none;
}

input::placeholder {
  color: var(--muted-2);
}

input:focus {
  border-color: rgba(0, 148, 255, 0.78);
  box-shadow: 0 0 0 4px rgba(0, 148, 255, 0.16);
}

button {
  min-height: 44px;
  border: 1px solid rgba(0, 148, 255, 0.72);
  border-radius: 12px;
  padding: 10px 16px;
  background: linear-gradient(90deg, #1da1f2, #0094ff);
  color: #ffffff;
  cursor: pointer;
  font-weight: 850;
  box-shadow: 0 12px 30px rgba(0, 148, 255, 0.18);
}

button:hover {
  background: linear-gradient(90deg, #4ab3ff, #2a6dff);
}

button.secondary,
button.ghost-button {
  background: rgba(0, 148, 255, 0.08);
  color: #ffffff;
  box-shadow: none;
}

button.secondary:hover,
button.ghost-button:hover {
  background: rgba(0, 148, 255, 0.18);
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

.hero-action-panel {
  display: grid;
  gap: 12px;
  align-content: start;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px;
  background:
    radial-gradient(circle at 18% 0%, rgba(0, 148, 255, 0.26), transparent 15rem),
    rgba(3, 13, 67, 0.72);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.hero-action-panel p:not(.eyebrow) {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.hero-action-panel button {
  justify-self: start;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
  margin: 12px 0 20px;
}

.stat-card,
.panel,
.lookup-panel {
  border: 1px solid var(--line-soft);
  border-radius: 16px;
  background: rgba(3, 13, 67, 0.82);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.stat-card {
  display: grid;
  gap: 7px;
  min-height: 126px;
  padding: 18px;
}

.stat-label,
.muted,
.stat-card small,
.list-row small {
  color: var(--muted-2);
  font-size: 13px;
}

.stat-card strong {
  display: block;
  min-width: 0;
  color: #ffffff;
  overflow-wrap: anywhere;
  font-size: 30px;
  font-weight: 900;
  line-height: 1.05;
}

.notice {
  margin-bottom: 20px;
  border: 1px solid rgba(199, 243, 81, 0.34);
  border-radius: 16px;
  padding: 13px 16px;
  background: rgba(199, 243, 81, 0.08);
  color: #d8ff75;
  font-weight: 700;
}

.connect-panel {
  margin-bottom: 20px;
  overflow: hidden;
}

.connect-head {
  background:
    radial-gradient(circle at 85% 15%, rgba(116, 224, 213, 0.14), transparent 18rem),
    rgba(3, 13, 67, 0.68);
}

.connect-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 0.8fr));
  gap: 14px;
  padding: 18px;
}

.connect-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.connect-card {
  display: grid;
  align-content: start;
  gap: 9px;
  min-height: 142px;
  border: 1px solid var(--line-soft);
  border-radius: 16px;
  padding: 16px;
  background: rgba(0, 10, 30, 0.46);
}

.connect-card.primary-connect {
  grid-row: span 2;
  background:
    radial-gradient(circle at 20% 0%, rgba(0, 148, 255, 0.28), transparent 17rem),
    linear-gradient(180deg, rgba(5, 17, 83, 0.92), rgba(3, 19, 56, 0.82));
}

.connect-card strong {
  min-width: 0;
  color: #ffffff;
  overflow-wrap: anywhere;
  font-size: 20px;
  font-weight: 900;
  line-height: 1.15;
}

.connect-card.primary-connect strong {
  color: var(--yellow);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 18px;
}

.connect-card p,
.connect-card small {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.connect-card button {
  justify-self: start;
  margin-top: auto;
}

pre {
  margin: 0;
  overflow-x: auto;
  padding: 14px;
  color: #ffffff;
  font-size: 13px;
  line-height: 1.55;
}

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.live-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(340px, 0.65fr);
  gap: 18px;
  margin-bottom: 20px;
}

.compact-head {
  min-height: 72px;
}

.live-pill {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  border: 1px solid rgba(116, 224, 213, 0.34);
  border-radius: 999px;
  padding: 5px 10px;
  background: rgba(116, 224, 213, 0.08);
  color: var(--cyan);
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.network-panel,
.formation-panel {
  overflow: hidden;
}

.node-mesh {
  min-height: 330px;
  background:
    radial-gradient(circle at 50% 48%, rgba(0, 148, 255, 0.18), transparent 14rem),
    linear-gradient(90deg, rgba(0, 148, 255, 0.07) 1px, transparent 1px),
    linear-gradient(0deg, rgba(116, 224, 213, 0.04) 1px, transparent 1px),
    #000a1e;
  background-size: auto, 44px 44px, 44px 44px, auto;
}

.mesh-svg {
  display: block;
  width: 100%;
  height: auto;
  min-height: 330px;
}

.mesh-link {
  stroke: rgba(74, 179, 255, 0.42);
  stroke-width: 2.5;
  stroke-dasharray: 8 12;
  animation: dash-flow 2.2s linear infinite;
}

.mesh-sweep {
  stroke: rgba(199, 243, 81, 0.38);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-dasharray: 12 18;
  animation: dash-flow 3s linear infinite;
}

.mesh-core circle:first-child {
  fill: rgba(0, 148, 255, 0.24);
  stroke: var(--primary);
  stroke-width: 3;
}

.mesh-core circle:nth-child(2) {
  fill: transparent;
  stroke: rgba(116, 224, 213, 0.28);
  stroke-width: 2;
  animation: node-pulse 2s ease-in-out infinite;
}

.mesh-core text,
.mesh-node text {
  fill: #ffffff;
  font-size: 13px;
  font-weight: 900;
  text-anchor: middle;
}

.mesh-core text:last-child {
  fill: var(--cyan);
  font-size: 12px;
}

.mesh-node {
  cursor: pointer;
}

.mesh-node circle {
  fill: #0094ff;
  stroke: rgba(255, 255, 255, 0.94);
  stroke-width: 3;
  filter: drop-shadow(0 10px 22px rgba(0, 148, 255, 0.32));
}

.mesh-node.latest-producer circle {
  fill: var(--yellow);
  stroke: #ffffff;
  animation: producer-pulse 1.6s ease-in-out infinite;
}

.mesh-node.latest-producer text {
  fill: #000a1e;
}

.node-cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  padding: 14px;
  border-top: 1px solid var(--line-soft);
}

.node-card {
  display: grid;
  gap: 5px;
  min-height: 90px;
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  padding: 12px;
  background: rgba(0, 10, 30, 0.44);
}

.node-card.online {
  border-color: rgba(79, 218, 116, 0.42);
}

.node-card.limited {
  border-color: rgba(199, 243, 81, 0.32);
}

.node-card span {
  color: var(--muted-2);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.node-card strong {
  min-width: 0;
  color: #ffffff;
  overflow-wrap: anywhere;
  font-size: 14px;
}

.node-card small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.formation-stream {
  display: grid;
  gap: 10px;
  padding: 14px;
}

.formation-item {
  display: grid;
  gap: 10px;
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  padding: 13px;
  background: rgba(0, 10, 30, 0.48);
}

.formation-item.forming {
  border-color: rgba(199, 243, 81, 0.44);
  background:
    radial-gradient(circle at 20% 0%, rgba(199, 243, 81, 0.14), transparent 11rem),
    rgba(0, 10, 30, 0.56);
}

.formation-item.newest {
  border-color: rgba(74, 179, 255, 0.5);
}

.formation-top,
.formation-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.formation-top span,
.formation-meta span,
.formation-item small {
  color: var(--muted-2);
  font-size: 12px;
  font-weight: 800;
}

.formation-top strong {
  color: var(--yellow);
  font-size: 16px;
}

.formation-progress {
  height: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(0, 148, 255, 0.14);
}

.formation-progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--yellow), var(--primary-2));
  box-shadow: 0 0 22px rgba(199, 243, 81, 0.26);
  transition: width 600ms ease;
}

.lookup-panel {
  margin: 20px 0;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 80px;
  padding: 18px;
  border-bottom: 1px solid var(--line-soft);
}

.dag-panel {
  margin-bottom: 18px;
  overflow: hidden;
}

.dag-canvas {
  min-height: 380px;
  background:
    radial-gradient(circle at 20% 18%, rgba(74, 179, 255, 0.16), transparent 18rem),
    linear-gradient(90deg, rgba(0, 148, 255, 0.08) 1px, transparent 1px),
    linear-gradient(0deg, rgba(116, 224, 213, 0.05) 1px, transparent 1px),
    #000a1e;
  background-size: auto, 48px 48px, 48px 48px, auto;
}

.dag-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 14px 18px 0;
}

.dag-toolbar span {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  padding: 5px 11px;
  background: rgba(3, 13, 67, 0.78);
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.dag-svg {
  display: block;
  width: 100%;
  height: auto;
  min-height: 330px;
}

.dag-link {
  fill: none;
  stroke: rgba(74, 179, 255, 0.58);
  stroke-width: 4;
  stroke-linecap: round;
}

.tx-link {
  stroke: rgba(116, 224, 213, 0.34);
  stroke-width: 2;
}

.block-node,
.tx-dot {
  cursor: pointer;
}

.block-node circle {
  fill: url(#blockFill);
  stroke: rgba(255, 255, 255, 0.94);
  stroke-width: 3;
  filter: drop-shadow(0 12px 22px rgba(0, 148, 255, 0.34));
}

.block-node:hover circle,
.tx-dot:hover circle {
  stroke: var(--yellow);
  stroke-width: 4;
}

.block-node-label {
  fill: #ffffff;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  font-weight: 900;
  text-anchor: middle;
}

.block-node-meta {
  fill: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-anchor: middle;
}

.tx-dot circle {
  fill: var(--cyan);
  stroke: #031338;
  stroke-width: 3;
  filter: drop-shadow(0 7px 14px rgba(116, 224, 213, 0.22));
}

.block-node circle,
.tx-dot circle {
  animation: node-breathe 2.6s ease-in-out infinite;
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 18px;
  margin-bottom: 20px;
}

.list-table {
  min-height: 280px;
}

.list-row {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(120px, 0.55fr) minmax(120px, 0.75fr);
  gap: 14px;
  align-items: center;
  padding: 15px 18px;
  border-bottom: 1px solid var(--line-soft);
}

.list-row:last-child {
  border-bottom: 0;
}

.list-row > div {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.hash-cell {
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px;
  overflow-wrap: anywhere;
}

.result {
  padding: 18px;
}

.empty {
  color: var(--muted);
  padding: 18px;
}

.stack {
  display: grid;
  gap: 16px;
}

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

.fact,
.row {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line-soft);
}

dt,
.label {
  color: var(--muted-2);
  font-size: 13px;
}

dd,
.value {
  margin: 0;
  min-width: 0;
  color: #ffffff;
  overflow-wrap: anywhere;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px;
}

.button-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.mini-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.mini-table th,
.mini-table td {
  border-bottom: 1px solid var(--line-soft);
  padding: 11px 8px;
  text-align: left;
  vertical-align: top;
}

.mini-table th {
  color: var(--muted-2);
  font-weight: 800;
}

.link-button {
  display: inline;
  min-height: 0;
  border: 0;
  border-radius: 4px;
  padding: 0;
  background: transparent;
  color: var(--primary-2);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px;
  font-weight: 850;
  text-align: left;
  text-decoration: none;
  box-shadow: none;
}

.link-button:hover {
  background: transparent;
  color: var(--yellow);
  text-decoration: underline;
}

@media (max-width: 1060px) {
  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .connect-grid,
  .live-grid {
    grid-template-columns: 1fr;
  }

  .connect-card.primary-connect {
    grid-row: auto;
  }

  .node-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .stat-card:last-child {
    grid-column: span 2;
  }
}

@media (max-width: 860px) {
  .site-header {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px 12px;
    min-height: 0;
    padding: 12px 16px 10px;
  }

  .brand {
    min-width: 0;
  }

  .nav-links {
    grid-column: 1 / -1;
    order: 3;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: none;
  }

  .nav-links::-webkit-scrollbar {
    display: none;
  }

  .nav-links a {
    flex: 0 0 auto;
  }

  .status-strip {
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: nowrap;
  }

  .wallet-button,
  .metric {
    min-height: 32px;
    padding: 6px 10px;
    font-size: 12px;
  }

  .hero,
  .content-grid,
  .stats-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 28px;
  }

  .hero-note {
    font-size: 16px;
  }

  .stat-card:last-child {
    grid-column: auto;
  }

  .search-row {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
  }

  .search-card-wide {
    grid-template-columns: 1fr;
    gap: 10px;
    min-height: 0;
    padding: 12px;
  }

  .search-card-wide .search-row {
    grid-column: auto;
    grid-row: auto;
  }

  .search-card-wide input,
  .search-card-wide button {
    min-height: 48px;
  }

  .search-card-wide button {
    min-width: 86px;
    padding-inline: 12px;
  }

  .connect-head,
  .connect-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .list-row,
  .facts,
  .fact,
  .row {
    grid-template-columns: 1fr;
  }

  .mini-table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }

  .node-cards {
    grid-template-columns: 1fr;
  }

  .formation-top,
  .formation-meta {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 520px) {
  .top-banner {
    min-height: 32px;
    padding: 6px 12px;
    font-size: 12px;
  }

  .site-header {
    padding-inline: 12px;
  }

  .brand-mark {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background-size: 22px 22px;
  }

  .brand strong {
    font-size: 14px;
  }

  .brand small {
    font-size: 11px;
  }

  .metric {
    display: none;
  }

  .top-search {
    width: min(100% - 20px, 1280px);
    padding-bottom: 10px;
  }

  .search-copy {
    display: none;
  }

  .search-card-wide input {
    min-height: 44px;
    padding-inline: 12px;
    font-size: 14px;
  }

  .search-card-wide button {
    min-height: 44px;
    min-width: 74px;
    padding-inline: 10px;
    font-size: 13px;
  }
}

@keyframes dash-flow {
  to {
    stroke-dashoffset: -40;
  }
}

@keyframes node-pulse {
  0%,
  100% {
    opacity: 0.5;
    transform: scale(1);
  }

  50% {
    opacity: 1;
    transform: scale(1.08);
  }
}

@keyframes producer-pulse {
  0%,
  100% {
    filter: drop-shadow(0 0 16px rgba(199, 243, 81, 0.28));
  }

  50% {
    filter: drop-shadow(0 0 30px rgba(199, 243, 81, 0.58));
  }
}

@keyframes node-breathe {
  0%,
  100% {
    opacity: 0.86;
  }

  50% {
    opacity: 1;
  }
}
