:root {
  color-scheme: dark;
  --bg: #000;
  --panel: #050505;
  --panel-soft: rgba(255, 255, 255, 0.025);
  --line: rgba(255, 255, 255, 0.1);
  --line-strong: rgba(255, 255, 255, 0.18);
  --text: #fff;
  --muted: rgba(255, 255, 255, 0.54);
  --faint: rgba(255, 255, 255, 0.28);
  --ghost: rgba(255, 255, 255, 0.07);
  --green: #64ff9c;
  --amber: #ffcb6b;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -2;
  content: "";
  background:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, black, rgba(0, 0, 0, 0.4), transparent 84%);
}

body::after {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background:
    linear-gradient(to bottom, rgba(0, 0, 0, 0.08), #000 76%),
    repeating-linear-gradient(
      to bottom,
      rgba(255, 255, 255, 0.018) 0,
      rgba(255, 255, 255, 0.018) 1px,
      transparent 1px,
      transparent 4px
    );
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

img {
  display: block;
  max-width: 100%;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(12px);
}

.topbar-inner,
.page-shell,
.footer {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.topbar-inner {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.brand,
.topbar nav,
.node-id,
.hero-actions,
.hero-tags,
.panel-topline,
.section-heading,
.stats-grid,
.network-grid,
.map-row,
.footer {
  display: flex;
  align-items: center;
}

.brand {
  min-width: 0;
  gap: 9px;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.9rem;
  font-weight: 800;
}

.brand img {
  width: 24px;
  height: 24px;
  object-fit: cover;
}

.brand-sub {
  color: var(--faint);
  font-size: 0.76rem;
  font-weight: 500;
}

.topbar nav {
  flex-wrap: wrap;
  gap: 4px;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.78rem;
}

.topbar nav a {
  border: 1px solid transparent;
  padding: 8px 11px;
  color: var(--faint);
  transition: 160ms ease;
}

.topbar nav a:hover,
.topbar nav a.active {
  border-color: var(--line-strong);
  background: var(--ghost);
  color: var(--text);
}

.node-id {
  justify-content: flex-end;
  gap: 10px;
  color: var(--faint);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.76rem;
  white-space: nowrap;
}

.wallet-control {
  min-width: 0;
}

#walletSummary {
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.wallet-button {
  border: 1px solid var(--line-strong);
  background: var(--text);
  color: #000;
  cursor: pointer;
  padding: 8px 11px;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.76rem;
  font-weight: 800;
}

.wallet-button:hover {
  background: rgba(255, 255, 255, 0.86);
}

.wallet-button.is-connected {
  border-color: rgba(100, 255, 156, 0.55);
  background: rgba(100, 255, 156, 0.12);
  color: var(--green);
}

.wallet-button.ghost {
  background: transparent;
  color: rgba(255, 255, 255, 0.58);
}

.wallet-button.ghost:hover {
  border-color: rgba(255, 255, 255, 0.36);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
}

.page-shell {
  padding: 32px 0 80px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.34fr) minmax(300px, 0.66fr);
  gap: 18px;
  min-height: calc(100vh - 140px);
  align-items: stretch;
}

.operator-panel,
.identity-card,
.feed-panel,
.quick-panel,
.protocol-panel,
.schema-panel,
.registry-tools input,
.registry-tools button,
.memory-form input,
.memory-form textarea {
  border: 1px solid var(--line);
  background: var(--panel-soft);
}

.hero-grid > *,
.content-grid > *,
.network-grid > *,
.gitlawb-fields > *,
.gitlawb-actions > * {
  min-width: 0;
}

.operator-panel {
  min-height: 590px;
  overflow: hidden;
}

.panel-topline,
.section-heading {
  justify-content: space-between;
  gap: 18px;
  min-height: 47px;
  border-bottom: 1px solid var(--line);
  padding: 0 22px;
  color: var(--faint);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero-body {
  display: grid;
  align-content: center;
  min-height: calc(100% - 47px);
  padding: clamp(34px, 7vw, 78px);
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.04), transparent 40%),
    radial-gradient(circle at 88% 18%, rgba(100, 255, 156, 0.09), transparent 20rem);
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--green);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p,
dl {
  margin-top: 0;
}

h1 {
  display: grid;
  gap: 0.08em;
  max-width: 860px;
  margin-bottom: 28px;
  font-size: clamp(3rem, 6.8vw, 6.4rem);
  font-weight: 900;
  line-height: 0.96;
  letter-spacing: 0;
}

h1 span:first-child {
  color: rgba(255, 255, 255, 0.64);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: clamp(1.1rem, 2vw, 1.65rem);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1 span:last-child {
  max-width: 780px;
}

h2 {
  letter-spacing: 0;
}

.hero-text {
  max-width: 720px;
  margin-bottom: 20px;
  color: var(--muted);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: clamp(1rem, 1.8vw, 1.22rem);
  line-height: 1.85;
}

.hero-tags {
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 34px;
}

.hero-tags span {
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.035);
  padding: 8px 10px;
  color: rgba(255, 255, 255, 0.62);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-actions {
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  border: 1px solid var(--line-strong);
  background: transparent;
  padding: 0 18px;
  font-size: 0.9rem;
  font-weight: 800;
  transition: 160ms ease;
  cursor: pointer;
}

.button.primary {
  border-color: var(--text);
  background: var(--text);
  color: #000;
}

.button.primary:hover {
  background: rgba(255, 255, 255, 0.86);
}

.button.secondary {
  color: rgba(255, 255, 255, 0.68);
}

.button.secondary:hover {
  border-color: rgba(255, 255, 255, 0.45);
  color: var(--text);
}

.identity-card {
  display: grid;
  align-content: start;
  gap: 26px;
  padding: 22px;
}

.aside-label,
.quick-panel h2 {
  margin: 0;
  color: var(--faint);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.quick-panel h2 {
  margin-bottom: 22px;
}

.identity-header {
  display: flex;
  align-items: center;
  gap: 13px;
  border-bottom: 1px solid var(--line);
  margin: -22px -22px 0;
  padding: 18px 22px;
}

.identity-header img {
  width: 34px;
  height: 34px;
  object-fit: cover;
}

.identity-header strong {
  display: block;
  margin-top: 6px;
  color: rgba(255, 255, 255, 0.78);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.84rem;
}

dl {
  display: grid;
  gap: 20px;
  margin-bottom: 0;
}

dt {
  margin-bottom: 8px;
  color: var(--faint);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

dd {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.86rem;
}

.registry-tools {
  display: grid;
  gap: 12px;
}

.app-status {
  margin: 0;
  border: 1px solid rgba(100, 255, 156, 0.22);
  background: rgba(100, 255, 156, 0.055);
  padding: 11px;
  color: rgba(100, 255, 156, 0.78);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.76rem;
  line-height: 1.5;
}

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

.registry-tools label,
.memory-form label {
  color: var(--faint);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.registry-tools > div:not(.wallet-actions) {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.registry-tools input,
.registry-tools button,
.memory-form input,
.memory-form textarea {
  width: 100%;
  color: rgba(255, 255, 255, 0.76);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.78rem;
}

.registry-tools input,
.memory-form input,
.memory-form textarea {
  padding: 11px;
}

.registry-tools button {
  cursor: pointer;
  padding: 10px 11px;
  white-space: normal;
}

.registry-tools button:hover {
  border-color: var(--line-strong);
  color: var(--text);
}

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

.explorer-links a {
  border: 1px solid var(--line);
  padding: 10px 11px;
  color: rgba(255, 255, 255, 0.66);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.76rem;
  text-align: center;
}

.explorer-links a:hover {
  border-color: rgba(100, 255, 156, 0.42);
  color: var(--green);
}

.break {
  overflow-wrap: anywhere;
}

.status-dot {
  width: 7px;
  height: 7px;
  background: var(--green);
}

.memory-terminal {
  display: grid;
  gap: 1px;
  border: 1px solid var(--line);
  background: var(--line);
}

.memory-terminal p {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 12px;
  margin: 0;
  background: #000;
  padding: 12px;
  color: rgba(255, 255, 255, 0.7);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.78rem;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.memory-terminal span {
  color: var(--green);
}

.memory-terminal strong {
  color: rgba(255, 255, 255, 0.7);
  font-weight: 500;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 18px;
  border: 1px solid var(--line);
  background: var(--line);
  gap: 1px;
}

.stats-grid a {
  display: grid;
  gap: 8px;
  min-height: 126px;
  align-content: center;
  padding: 20px;
  background: #000;
  transition: 160ms ease;
}

.stats-grid a:hover {
  background: rgba(255, 255, 255, 0.045);
}

.stats-grid strong {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: clamp(2rem, 4vw, 3.1rem);
  line-height: 1;
}

.stats-grid span {
  color: var(--faint);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.76rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
  gap: 18px;
  margin-top: 18px;
}

.section-heading a,
.section-heading button,
.section-heading span:last-child {
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.42);
  cursor: pointer;
  font: inherit;
  letter-spacing: 0;
  text-transform: none;
}

.section-heading button:hover {
  color: var(--text);
}

.feed-list {
  padding: 0;
}

.feed-list article {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr) 70px;
  gap: 18px;
  align-items: start;
  padding: 22px;
  border-bottom: 1px solid var(--line);
}

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

.feed-list time,
.feed-list article > span,
.quick-panel pre,
.schema-grid code {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

.feed-list time {
  color: var(--faint);
  font-size: 0.78rem;
}

.feed-list h2 {
  margin-bottom: 7px;
  font-size: 1rem;
}

.feed-list p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.93rem;
  line-height: 1.6;
}

.feed-list article > span {
  justify-self: end;
  border: 1px solid var(--line);
  padding: 5px 7px;
  color: var(--faint);
  font-size: 0.7rem;
}

.feed-empty {
  opacity: 0.74;
}

.quick-panel {
  padding: 22px;
}

.demo-flow {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 18px;
}

.flow-step {
  display: grid;
  gap: 7px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.018);
  padding: 10px;
  min-width: 0;
}

.flow-step span,
.flow-step strong {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

.flow-step span {
  color: var(--faint);
  font-size: 0.66rem;
}

.flow-step strong {
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.7rem;
  line-height: 1.35;
}

.flow-step.is-complete {
  border-color: rgba(100, 255, 156, 0.42);
  background: rgba(100, 255, 156, 0.055);
}

.flow-step.is-complete span,
.flow-step.is-complete strong {
  color: var(--green);
}

.memory-form {
  display: grid;
  gap: 14px;
  margin-bottom: 20px;
}

.memory-form label {
  display: grid;
  gap: 8px;
}

.memory-form textarea {
  resize: vertical;
}

.memory-form input,
.memory-form textarea {
  min-width: 0;
}

.hash-preview {
  display: grid;
  gap: 8px;
  border: 1px solid var(--line);
  padding: 12px;
  background: rgba(255, 255, 255, 0.025);
}

.gitlawb-panel {
  display: grid;
  gap: 10px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  background:
    linear-gradient(130deg, rgba(100, 255, 156, 0.05), transparent 36%),
    rgba(255, 255, 255, 0.018);
  padding: 12px;
}

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

.gitlawb-fields label:last-child {
  grid-column: 1 / -1;
}

.gitlawb-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.gitlawb-panel .hash-preview {
  padding: 10px;
}

.hash-preview span,
.packet-heading {
  color: var(--faint);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hash-preview code {
  color: rgba(255, 255, 255, 0.78);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.78rem;
  overflow-wrap: anywhere;
}

.quick-panel p,
#txStatus {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.7;
}

.packet-panel {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.packet-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.packet-heading button {
  border: 1px solid var(--line);
  background: transparent;
  color: rgba(255, 255, 255, 0.58);
  cursor: pointer;
  padding: 8px 10px;
  font: inherit;
  letter-spacing: 0;
  text-transform: none;
}

.packet-heading button:hover {
  border-color: rgba(100, 255, 156, 0.42);
  color: var(--green);
}

.gitlawb-actions button {
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.28);
  color: rgba(255, 255, 255, 0.62);
  cursor: pointer;
  padding: 10px;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.72rem;
}

.gitlawb-actions button:hover {
  border-color: rgba(100, 255, 156, 0.42);
  color: var(--green);
}

.gitlawb-actions button:disabled {
  cursor: progress;
  opacity: 0.58;
}

.bridge-status {
  margin: 0;
  border: 1px solid rgba(100, 255, 156, 0.16);
  background: rgba(100, 255, 156, 0.035);
  padding: 10px;
  color: rgba(100, 255, 156, 0.66);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.7rem;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

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

.publish-meta[hidden] {
  display: none;
}

.publish-meta a,
.publish-meta code {
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.28);
  padding: 10px;
  color: rgba(255, 255, 255, 0.62);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.7rem;
  text-align: center;
  overflow-wrap: anywhere;
}

.publish-meta a:hover {
  border-color: rgba(100, 255, 156, 0.42);
  color: var(--green);
}

.publish-meta code {
  grid-column: 1 / -1;
  color: rgba(100, 255, 156, 0.7);
}

.bridge-output {
  max-height: 150px;
  overflow: auto;
  margin: 0;
  border: 1px solid var(--line);
  background: #000;
  padding: 10px;
  color: rgba(255, 255, 255, 0.64);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.68rem;
  line-height: 1.5;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.gitlawb-command-details {
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.3);
}

.gitlawb-command-details summary {
  cursor: pointer;
  padding: 10px;
  color: rgba(255, 255, 255, 0.52);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.72rem;
}

.gitlawb-command-details summary:hover {
  color: var(--green);
}

.gitlawb-command-details pre {
  max-height: 180px;
  overflow: auto;
  margin: 0;
  border-top: 1px solid var(--line);
  background: #000;
  padding: 10px;
  color: rgba(255, 255, 255, 0.64);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.68rem;
  line-height: 1.5;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.packet-panel pre {
  max-height: 220px;
  overflow: auto;
  margin: 0;
  border: 1px solid var(--line);
  background: #000;
  padding: 12px;
  color: rgba(255, 255, 255, 0.68);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.72rem;
  line-height: 1.55;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.protocol-panel,
.schema-panel,
.network-grid,
.links-panel {
  margin-top: 18px;
}

.protocol-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.protocol-grid article {
  min-height: 250px;
  border-right: 1px solid var(--line);
  padding: 22px;
}

.protocol-grid article:last-child {
  border-right: 0;
}

.protocol-grid article span {
  display: block;
  margin-bottom: 62px;
  color: var(--amber);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.82rem;
}

.protocol-grid h2 {
  margin-bottom: 12px;
  font-size: 1.18rem;
}

.protocol-grid p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.65;
}

.network-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(340px, 1.08fr);
  gap: 18px;
  align-items: stretch;
}

.network-grid > div:first-child {
  border: 1px solid var(--line);
  padding: clamp(28px, 5vw, 46px);
  background: var(--panel-soft);
}

.network-grid h2 {
  max-width: 620px;
  margin-bottom: 0;
  font-size: clamp(2rem, 4.7vw, 4.7rem);
  font-weight: 920;
  line-height: 0.98;
}

.network-map {
  display: grid;
  justify-items: center;
  align-content: center;
  min-height: 420px;
  border: 1px solid var(--line);
  background:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    #000;
  background-size: 32px 32px;
  padding: 28px;
}

.map-node {
  width: min(100%, 360px);
  border: 1px solid var(--line-strong);
  background: #000;
  padding: 18px;
  text-align: center;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.68);
}

.map-node.active {
  border-color: rgba(100, 255, 156, 0.68);
  color: var(--green);
}

.map-line {
  width: 1px;
  height: 52px;
  background: var(--line-strong);
}

.map-row {
  justify-content: center;
  gap: 10px;
  width: 100%;
}

.schema-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
}

.links-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
}

.links-grid a {
  display: grid;
  gap: 34px;
  min-height: 150px;
  align-content: space-between;
  background: #000;
  padding: 22px;
  transition: 160ms ease;
}

.links-grid a:hover {
  background: rgba(100, 255, 156, 0.045);
}

.links-grid span,
.links-grid strong {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

.links-grid span {
  color: var(--faint);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.links-grid strong {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.95rem;
  overflow-wrap: anywhere;
}

.schema-grid code {
  display: grid;
  min-height: 92px;
  place-items: center;
  background: #000;
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.86rem;
  overflow-wrap: anywhere;
  padding: 14px;
}

.footer {
  justify-content: space-between;
  gap: 18px;
  border-top: 1px solid var(--line);
  padding: 28px 0 40px;
  color: var(--faint);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.78rem;
}

@media (max-width: 1120px) {
  .topbar-inner {
    min-height: auto;
    align-items: flex-start;
    flex-direction: column;
    padding: 14px 0;
  }

  .topbar nav,
  .wallet-control {
    width: 100%;
  }

  .node-id {
    justify-content: space-between;
  }

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

@media (max-width: 960px) {
  .topbar-inner {
    min-height: auto;
    align-items: flex-start;
    flex-direction: column;
    padding: 14px 0;
  }

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

  .operator-panel {
    min-height: 520px;
  }

  .stats-grid,
  .protocol-grid,
  .links-grid,
  .schema-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .protocol-grid article {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
}

@media (max-width: 620px) {
  .topbar-inner,
  .page-shell,
  .footer {
    width: min(100% - 24px, 1120px);
  }

  .topbar nav {
    width: 100%;
  }

  .topbar nav a {
    flex: 1 1 auto;
    text-align: center;
  }

  .node-id {
    width: 100%;
    justify-content: space-between;
  }

  .page-shell {
    padding-top: 18px;
  }

  .hero-body {
    padding: 28px;
  }

  h1 {
    font-size: clamp(3.15rem, 17vw, 5rem);
  }

  .hero-text {
    font-size: 0.95rem;
  }

  .panel-topline,
  .section-heading {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    padding: 12px 18px;
  }

  .stats-grid,
  .protocol-grid,
  .links-grid,
  .schema-grid {
    grid-template-columns: 1fr;
  }

  .feed-list article {
    grid-template-columns: 1fr;
  }

  .feed-list article > span {
    justify-self: start;
  }

  .map-row,
  .demo-flow,
  .gitlawb-fields,
  .gitlawb-actions,
  .footer {
    align-items: stretch;
    flex-direction: column;
  }

  .gitlawb-fields,
  .demo-flow,
  .gitlawb-actions {
    display: grid;
    grid-template-columns: 1fr;
  }
}
