:root {
  color-scheme: dark;
  --bg: #050505;
  --bg-elevated: #090909;
  --bg-soft: #0d0d0f;
  --surface: #111113;
  --surface-hover: #151518;
  --border: rgba(255, 255, 255, 0.105);
  --border-strong: rgba(255, 255, 255, 0.18);
  --text: #f5f5f5;
  --soft: #d7d7dc;
  --muted: #8f8f99;
  --faint: #666672;
  --accent: #a970ff;
  --accent-soft: rgba(169, 112, 255, 0.16);
  --accent-border: rgba(169, 112, 255, 0.38);
  --green: #35d996;
  --orange: #f2a457;
  --blue: #78a5ff;
  --red: #ff6f7d;
  --radius: 8px;
  --radius-sm: 6px;
  --content-width: 1040px;
  --topbar-height: 64px;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--bg);
  scroll-padding-top: 84px;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(180deg, rgba(169, 112, 255, 0.055), transparent 360px),
    var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 15px;
  line-height: 1.65;
  letter-spacing: 0;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 190px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.026), transparent 22%, transparent 78%, rgba(255, 255, 255, 0.026));
}

button,
input,
select {
  font: inherit;
}

a {
  color: inherit;
}

code,
pre {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}

::selection {
  background: rgba(169, 112, 255, 0.35);
}

.noscript {
  margin: 2rem auto;
  max-width: 680px;
  padding: 1.25rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-elevated);
}

.app-shell {
  min-height: 100vh;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--topbar-height);
  padding: 0 28px;
  border-bottom: 1px solid var(--border);
  background: rgba(5, 5, 5, 0.86);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  min-width: 210px;
  color: var(--text);
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid var(--accent-border);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(169, 112, 255, 0.18), rgba(169, 112, 255, 0.04)),
    #08080a;
}

.brand-mark img {
  width: 21px;
  height: 21px;
  display: block;
}

.brand strong {
  display: block;
  font-size: 0.93rem;
  font-weight: 720;
  line-height: 1.05;
}

.brand small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.topbar-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--soft);
  padding: 0 0.82rem;
  font-size: 0.82rem;
  font-weight: 720;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}

.topbar-link:hover {
  border-color: var(--border-strong);
  background: rgba(169, 112, 255, 0.1);
  color: var(--text);
}

.searchbox {
  display: grid;
  grid-template-columns: auto minmax(180px, 410px);
  align-items: center;
  width: min(440px, 40vw);
  height: 40px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #090a0d;
  color: var(--muted);
  transition: border-color 160ms ease, background 160ms ease;
}

.searchbox:focus-within {
  border-color: rgba(255, 255, 255, 0.24);
  background: #0d0d10;
}

.searchbox span {
  padding: 0 0.7rem;
  border-right: 1px solid var(--border);
  color: var(--soft);
  font-size: 0.67rem;
  font-weight: 760;
  text-transform: uppercase;
}

.searchbox input {
  min-width: 0;
  height: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  padding: 0 0.85rem;
}

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

.icon-button {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #090a0d;
  color: var(--text);
  cursor: pointer;
}

.icon-button:hover {
  border-color: var(--border-strong);
  background: var(--surface);
}

.mobile-only {
  display: none;
}

.layout {
  display: grid;
  grid-template-columns: 284px minmax(0, var(--content-width)) 220px;
  justify-content: center;
  gap: 34px;
  width: 100%;
  max-width: 1640px;
  margin: 0 auto;
  padding: 22px 28px 72px;
}

.sidebar {
  position: sticky;
  top: calc(var(--topbar-height) + 22px);
  align-self: start;
  max-height: calc(100vh - var(--topbar-height) - 44px);
  overflow-y: auto;
  padding: 2px 14px 18px 0;
  scrollbar-color: rgba(255, 255, 255, 0.24) transparent;
}

.sidebar::-webkit-scrollbar {
  width: 8px;
}

.sidebar::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
}

.nav-section + .nav-section {
  margin-top: 1.45rem;
}

.nav-section h2 {
  margin: 0 0 0.48rem;
  padding: 0 0.65rem;
  color: var(--faint);
  font-size: 0.68rem;
  font-weight: 760;
  line-height: 1.2;
  text-transform: uppercase;
}

.nav-link {
  position: relative;
  display: block;
  margin: 1px 0;
  padding: 0.48rem 0.65rem;
  border: 1px solid transparent;
  border-radius: 6px;
  color: var(--soft);
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.35;
  text-decoration: none;
}

.nav-link::before {
  position: absolute;
  top: 9px;
  bottom: 9px;
  left: -9px;
  width: 2px;
  border-radius: 999px;
  content: "";
  background: transparent;
}

.nav-link span {
  display: none;
  margin-top: 0.28rem;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 460;
  line-height: 1.45;
}

.nav-link:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.035);
}

.nav-link.active {
  border-color: rgba(255, 255, 255, 0.09);
  background: rgba(255, 255, 255, 0.045);
  color: var(--text);
}

.nav-link.active::before {
  background: var(--accent);
}

.nav-link.active span {
  display: block;
}

.content {
  min-width: 0;
  outline: 0;
}

.doc-article {
  width: 100%;
  max-width: var(--content-width);
  margin: 0 auto;
  color: var(--soft);
}

.doc-article > :first-child {
  margin-top: 0;
}

.doc-article h1,
.doc-article h2,
.doc-article h3 {
  color: var(--text);
  font-weight: 760;
  line-height: 1.12;
  letter-spacing: 0;
}

.doc-article h1 {
  margin: 0.35rem 0 1rem;
  max-width: 850px;
  font-size: 2.95rem;
}

.doc-article h2 {
  margin: 2.85rem 0 0.9rem;
  padding-top: 0.25rem;
  font-size: 1.72rem;
}

.doc-article h3 {
  margin: 0 0 0.55rem;
  font-size: 1.08rem;
}

.doc-article p {
  max-width: 820px;
  margin: 0.75rem 0 1rem;
  color: var(--soft);
}

.doc-article a:not(.button):not(.search-hit) {
  color: #e9ddff;
  text-decoration-color: rgba(169, 112, 255, 0.52);
  text-underline-offset: 3px;
}

.doc-article a:not(.button):not(.search-hit):hover {
  color: var(--text);
}

.doc-article code:not(pre code) {
  padding: 0.12rem 0.28rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.055);
  color: #f0e8ff;
  font-size: 0.9em;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 24px;
  color: #d8c4ff;
  font-size: 0.72rem;
  font-weight: 780;
  text-transform: uppercase;
}

.eyebrow::before {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 2px;
  content: "";
  background: var(--accent);
  box-shadow: 0 0 18px rgba(169, 112, 255, 0.5);
}

.lede {
  max-width: 760px;
  color: #d9d9e1;
  font-size: 1.08rem;
  line-height: 1.75;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(340px, 0.88fr);
  gap: 40px;
  align-items: center;
  min-height: 455px;
  margin-bottom: 2.5rem;
  padding: 3.35rem 0 3rem;
  border-bottom: 1px solid var(--border);
}

.hero h1 {
  margin: 0.7rem 0 1.05rem;
  max-width: 820px;
  font-size: 3.85rem;
  line-height: 1.02;
}

.hero .lede {
  max-width: 640px;
  color: #dcdce4;
  font-size: 1.1rem;
}

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

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.6rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 1rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 6px;
  background: #f5f5f5;
  color: #050505;
  font-size: 0.9rem;
  font-weight: 720;
  text-decoration: none;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
  background: #ffffff;
}

.button.secondary {
  background: transparent;
  color: var(--text);
}

.button.secondary:hover {
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.055);
}

.hero-stat-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  width: 100%;
  max-width: 680px;
  margin-top: 2.05rem;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.hero-stat-row span {
  min-width: 0;
  padding: 0.85rem 0.9rem;
  border-right: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.45;
}

.hero-stat-row span:first-child {
  padding-left: 0;
}

.hero-stat-row span:last-child {
  border-right: 0;
  padding-right: 0;
}

.hero-stat-row strong {
  display: block;
  margin-bottom: 0.08rem;
  color: var(--text);
  font-size: 1rem;
}

.hero-system {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), transparent 110px),
    #08080a;
}

.hero-system::before {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
  background:
    linear-gradient(90deg, transparent, rgba(169, 112, 255, 0.08), transparent),
    linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.025));
}

.system-topline {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  min-height: 52px;
  padding: 0 1.15rem;
  border-bottom: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.78rem;
}

.status-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 0.35rem;
  border-radius: 999px;
  background: var(--green);
  box-shadow: 0 0 18px rgba(53, 217, 150, 0.52);
}

.system-flow {
  position: relative;
  display: grid;
  gap: 0;
  padding: 1.25rem 1.25rem 0.85rem;
}

.system-flow::before {
  position: absolute;
  top: 1.62rem;
  bottom: 1.35rem;
  left: 1.28rem;
  width: 1px;
  content: "";
  background: linear-gradient(180deg, var(--accent-border), var(--border));
}

.system-node {
  position: relative;
  display: block;
  min-height: 0;
  padding: 0 0 1.25rem 1.45rem;
  border: 0;
  background: transparent;
}

.system-node:last-child {
  padding-bottom: 0.25rem;
}

.system-node::before {
  position: absolute;
  top: 0.28rem;
  left: -0.22rem;
  width: 9px;
  height: 9px;
  border: 1px solid var(--accent-border);
  border-radius: 999px;
  content: "";
  background: #08080a;
  box-shadow: 0 0 0 4px #08080a;
}

.system-node span {
  display: block;
  margin-bottom: 0.28rem;
  color: var(--muted);
  font-size: 0.69rem;
  font-weight: 760;
  line-height: 1.2;
  text-transform: uppercase;
}

.system-node strong {
  display: block;
  color: var(--text);
  font-size: 1.02rem;
  line-height: 1.48;
}

.system-branches {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.9rem;
  margin: 0 1.25rem 1.2rem;
  padding: 1rem 0 0 1.45rem;
  border-top: 1px solid var(--border);
}

.system-branches::before {
  position: absolute;
  top: -1rem;
  left: 0.02rem;
  width: 1px;
  height: 1rem;
  content: "";
  background: var(--border-strong);
}

.system-branch {
  min-width: 0;
  padding-left: 0;
  border-left: 0;
}

.system-branch span {
  display: block;
  margin-bottom: 0.3rem;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 720;
  text-transform: uppercase;
}

.system-branch strong {
  display: block;
  color: var(--soft);
  font-size: 0.9rem;
  line-height: 1.6;
}

.hero-visual,
.terminal-panel,
.panel-head,
.panel-body,
.console-line {
  min-width: 0;
}

.hero-visual {
  display: grid;
  gap: 1rem;
}

.terminal-panel {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #08080a;
}

.panel-head {
  display: flex;
  justify-content: space-between;
  gap: 0.8rem;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.8rem;
}

.panel-body {
  display: grid;
  gap: 0.85rem;
  padding: 1rem;
}

.console-line {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 0.9rem;
}

.console-line strong {
  color: #d8c4ff;
  font-size: 0.78rem;
}

.console-line span {
  color: var(--soft);
  font-size: 0.88rem;
}

.tile-grid,
.feature-grid,
.split-grid,
.flow-grid {
  display: grid;
  column-gap: 2.1rem;
  row-gap: 0.1rem;
  margin: 1rem 0 1.75rem;
}

.metric-grid {
  display: grid;
  gap: 0.75rem;
  margin: 1rem 0 1.35rem;
}

.tile-grid,
.feature-grid {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

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

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

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

.tile,
.feature,
.api-card,
.step {
  position: relative;
  min-width: 0;
  border: 0;
  border-top: 1px solid var(--border);
  border-radius: 0;
  background: transparent;
}

.tile,
.feature,
.api-card,
.step {
  padding: 1.12rem 0 1.28rem;
}

.tile h3,
.feature h3,
.api-card h3 {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
}

.tile h3::before,
.feature h3::before,
.api-card h3::before {
  flex: 0 0 auto;
  width: 7px;
  height: 7px;
  margin-top: 0.38rem;
  border: 1px solid var(--accent-border);
  border-radius: 2px;
  content: "";
  background: rgba(169, 112, 255, 0.18);
}

.tile:hover,
.feature:hover,
.api-card:hover,
.step:hover {
  border-color: var(--border-strong);
}

.tile:hover h3::before,
.feature:hover h3::before,
.api-card:hover h3::before {
  background: var(--accent);
}

.tile p,
.feature p,
.api-card p,
.step p {
  margin: 0.5rem 0 0;
  color: var(--soft);
  line-height: 1.75;
}

.metric {
  min-width: 0;
  padding: 0.95rem 1rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.032);
}

.metric:hover {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.044);
}

.metric strong {
  display: block;
  color: var(--text);
  font-size: 2rem;
  line-height: 1;
}

.metric span {
  display: block;
  margin-top: 0.36rem;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.45;
}

.step {
  display: grid;
  align-content: start;
  gap: 0.48rem;
}

.step-number {
  display: grid;
  width: 25px;
  height: 25px;
  place-items: center;
  border: 1px solid rgba(169, 112, 255, 0.32);
  border-radius: 6px;
  background: rgba(169, 112, 255, 0.11);
  color: #dfccff;
  font-size: 0.78rem;
  font-weight: 760;
}

.timeline {
  display: grid;
  gap: 0.65rem;
  margin: 1rem 0 1.35rem;
}

.timeline-item {
  display: grid;
  grid-template-columns: minmax(130px, 0.28fr) minmax(0, 1fr);
  gap: 1rem;
  padding: 0.95rem 1rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.032);
}

.timeline-item strong {
  color: var(--text);
  line-height: 1.45;
}

.timeline-item span {
  color: var(--soft);
}

.diagram {
  display: grid;
  gap: 1px;
  margin: 1rem 0 1.35rem;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--border);
}

.diagram-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
}

.diagram-node {
  min-height: 110px;
  padding: 0.95rem;
  background: #09090b;
}

.diagram-node strong {
  display: block;
  margin-bottom: 0.4rem;
  color: var(--text);
}

.diagram-node span {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.5;
}

.pill-row,
.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.42rem;
  margin-top: 0.85rem;
}

.pill,
.badge {
  display: inline-flex;
  align-items: center;
  min-height: 27px;
  padding: 0.28rem 0.56rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--soft);
  font-size: 0.76rem;
  font-weight: 660;
  line-height: 1.1;
}

.pill.green {
  border-color: rgba(53, 217, 150, 0.3);
  background: rgba(53, 217, 150, 0.08);
  color: #adf0d1;
}

.pill.orange {
  border-color: rgba(242, 164, 87, 0.32);
  background: rgba(242, 164, 87, 0.09);
  color: #ffd7a4;
}

.pill.blue {
  border-color: rgba(120, 165, 255, 0.34);
  background: rgba(120, 165, 255, 0.1);
  color: #c9d9ff;
}

.pill.red {
  border-color: rgba(244, 107, 107, 0.34);
  background: rgba(244, 107, 107, 0.09);
  color: #ffc1c1;
}

.callout {
  margin: 1.35rem 0;
  padding: 1rem 1.05rem;
  border: 1px solid var(--accent-border);
  border-radius: 8px;
  background: rgba(169, 112, 255, 0.08);
  color: #e4dbf4;
}

.callout strong {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--text);
}

.callout.warning {
  border-color: rgba(242, 164, 87, 0.32);
  background: rgba(242, 164, 87, 0.08);
}

.callout.success {
  border-color: rgba(53, 217, 150, 0.3);
  background: rgba(53, 217, 150, 0.08);
}

.table-wrap {
  width: 100%;
  margin: 1rem 0 1.35rem;
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #08080a;
}

table {
  width: 100%;
  min-width: 660px;
  border-collapse: collapse;
}

th,
td {
  padding: 0.86rem 0.92rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.075);
  text-align: left;
  vertical-align: top;
}

th {
  color: var(--text);
  font-size: 0.72rem;
  font-weight: 780;
  text-transform: uppercase;
}

td {
  color: var(--soft);
  line-height: 1.58;
}

tr:last-child td {
  border-bottom: 0;
}

.code-wrap {
  position: relative;
  display: grid;
  margin: 1rem 0 1.35rem;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 6px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent 42px),
    #08080a;
}

pre {
  margin: 0;
  padding: 0.65rem 0.9rem 1rem;
  overflow-x: hidden;
  color: #f2eff8;
  font-size: 0.88rem;
  line-height: 1.65;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.copy-button {
  position: static;
  justify-self: end;
  min-height: 30px;
  margin: 0.5rem 0.5rem 0;
  padding: 0 0.55rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.055);
  color: var(--text);
  cursor: pointer;
  font-size: 0.76rem;
  font-weight: 650;
}

.copy-button:hover {
  border-color: var(--border-strong);
  background: rgba(255, 255, 255, 0.095);
}

.endpoint-browser {
  margin: 1rem 0 1.35rem;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #08080a;
}

.endpoint-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 150px 210px;
  gap: 0.65rem;
  padding: 0.9rem;
  border-bottom: 1px solid var(--border);
}

.endpoint-controls input,
.endpoint-controls select {
  min-width: 0;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: 6px;
  outline: 0;
  background: #0d0d10;
  color: var(--text);
  padding: 0 0.72rem;
}

.endpoint-controls input:focus,
.endpoint-controls select:focus {
  border-color: var(--border-strong);
}

.endpoint-browser > .metric {
  margin: 0.9rem;
}

.endpoint-list {
  display: grid;
  gap: 0.65rem;
  padding: 0 0.9rem 0.9rem;
}

.endpoint-card {
  min-width: 0;
  padding: 0.9rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.032);
}

.endpoint-card:hover {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.044);
}

.endpoint-card p {
  margin: 0.65rem 0 0;
  color: var(--soft);
  line-height: 1.55;
}

.endpoint-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
}

.method {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 56px;
  min-height: 25px;
  padding: 0.16rem 0.42rem;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 820;
}

.method.GET {
  background: rgba(34, 211, 238, 0.16);
  color: #a8f3ff;
}

.method.POST {
  background: rgba(169, 112, 255, 0.2);
  color: #e2d0ff;
}

.method.PUT,
.method.PATCH {
  background: rgba(242, 164, 87, 0.18);
  color: #ffd7a4;
}

.method.DELETE {
  background: rgba(255, 111, 125, 0.18);
  color: #ffc5cb;
}

.path {
  min-width: 0;
  color: var(--text);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 0.87rem;
  overflow-wrap: anywhere;
}

.provider-explorer {
  margin: 1.1rem 0 1.6rem;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 10px;
  background:
    radial-gradient(circle at 22% 0%, rgba(169, 112, 255, 0.12), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.016)),
    #070709;
  box-shadow: var(--shadow);
}

.provider-explorer-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 390px);
  gap: 1.4rem;
  align-items: start;
  padding: 1.35rem;
  border-bottom: 1px solid var(--border);
}

.provider-explorer-top h2 {
  margin: 0.4rem 0 0.55rem;
  padding: 0;
}

.provider-explorer-top p {
  max-width: 650px;
  margin: 0;
  color: var(--muted);
}

.provider-explorer-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 120px auto;
  gap: 0.55rem;
}

.provider-explorer-controls input,
.provider-explorer-controls select,
.provider-explorer-controls button,
.provider-copy {
  min-width: 0;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: 7px;
  outline: 0;
  background: rgba(0, 0, 0, 0.42);
  color: var(--text);
  padding: 0 0.7rem;
}

.provider-explorer-controls button,
.provider-copy {
  cursor: pointer;
  font-weight: 700;
}

.provider-explorer-controls input:focus,
.provider-explorer-controls select:focus,
.provider-explorer-controls button:hover,
.provider-copy:hover {
  border-color: var(--border-strong);
  background: rgba(255, 255, 255, 0.07);
}

.provider-explorer-status {
  padding: 0.75rem 1.35rem;
  border-bottom: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.84rem;
}

.provider-explorer-stats {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border-bottom: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.22);
}

.provider-explorer-metric {
  min-width: 0;
  padding: 0.85rem 1rem;
  border-right: 1px solid var(--border);
}

.provider-explorer-metric:last-child {
  border-right: 0;
}

.provider-explorer-metric strong {
  display: block;
  color: var(--text);
  font-size: 1.45rem;
  line-height: 1.1;
}

.provider-explorer-metric span {
  display: block;
  margin-top: 0.25rem;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 720;
  letter-spacing: 0.08em;
  line-height: 1.25;
  text-transform: uppercase;
}

.provider-explorer-main {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.82fr);
  min-height: 560px;
  border-bottom: 1px solid var(--border);
}

.provider-globe-panel {
  position: relative;
  min-width: 0;
  min-height: 560px;
  overflow: hidden;
  border-right: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.04), rgba(0, 0, 0, 0.45));
}

.provider-globe,
.provider-globe-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.provider-globe-canvas {
  touch-action: none;
}

.provider-cluster-tray {
  display: none;
}

.provider-globe-legend {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  pointer-events: none;
}

.provider-globe-legend span,
.provider-badges span {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0.26rem 0.55rem;
  border: 1px solid var(--accent-border);
  border-radius: 999px;
  background: rgba(169, 112, 255, 0.1);
  color: #decaff;
  font-size: 0.74rem;
  font-weight: 700;
  line-height: 1.1;
}

.provider-globe-legend .green,
.provider-badges .green {
  border-color: rgba(53, 217, 150, 0.3);
  background: rgba(53, 217, 150, 0.08);
  color: #b7f2d6;
}

.provider-globe-legend .blue,
.provider-badges .blue {
  border-color: rgba(120, 165, 255, 0.34);
  background: rgba(120, 165, 255, 0.1);
  color: #c9d9ff;
}

.provider-detail {
  min-width: 0;
  padding: 1.2rem;
  background: rgba(0, 0, 0, 0.28);
}

.provider-detail-head {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 0.8rem;
  align-items: center;
}

.provider-icon {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid var(--accent-border);
  border-radius: 9px;
  background: rgba(169, 112, 255, 0.1);
}

.provider-icon::before {
  width: 14px;
  height: 14px;
  border-radius: 999px;
  content: "";
  background: var(--accent);
  box-shadow: 0 0 18px rgba(169, 112, 255, 0.65);
}

.provider-icon.green {
  border-color: rgba(53, 217, 150, 0.3);
  background: rgba(53, 217, 150, 0.08);
}

.provider-icon.green::before {
  background: var(--green);
  box-shadow: 0 0 18px rgba(53, 217, 150, 0.58);
}

.provider-icon.blue {
  border-color: rgba(120, 165, 255, 0.34);
  background: rgba(120, 165, 255, 0.1);
}

.provider-icon.blue::before {
  background: var(--blue);
  box-shadow: 0 0 18px rgba(120, 165, 255, 0.58);
}

.provider-detail-head h3 {
  margin: 0;
  overflow: hidden;
  color: var(--text);
  font-size: 1.2rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.provider-detail-head p {
  margin: 0.2rem 0 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.provider-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.42rem;
  margin: 1rem 0;
}

.provider-badges span {
  border-color: var(--border);
  background: rgba(255, 255, 255, 0.035);
  color: var(--muted);
}

.provider-badges .ok {
  border-color: rgba(53, 217, 150, 0.3);
  background: rgba(53, 217, 150, 0.08);
  color: #b7f2d6;
}

.provider-resource-stack {
  display: grid;
  gap: 0.9rem;
  padding: 1rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.provider-resource {
  display: grid;
  gap: 0.45rem;
}

.provider-resource div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.provider-resource strong {
  color: var(--text);
  font-size: 0.88rem;
}

.provider-resource span {
  color: var(--muted);
  font-size: 0.82rem;
  text-align: right;
}

.provider-resource i {
  display: block;
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.provider-resource b {
  display: block;
  height: 100%;
  border-radius: inherit;
}

.provider-kv {
  display: grid;
  gap: 0.7rem;
  margin: 1rem 0;
}

.provider-kv div {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 0.8rem;
}

.provider-kv dt {
  color: var(--muted);
  font-size: 0.82rem;
}

.provider-kv dd {
  min-width: 0;
  margin: 0;
  color: var(--text);
  font-size: 0.86rem;
  overflow-wrap: anywhere;
}

.provider-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 0.6rem;
}

.provider-copy {
  width: 100%;
}

.provider-link-button {
  display: inline-grid;
  width: 100%;
  min-width: 0;
  height: 40px;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: rgba(169, 112, 255, 0.1);
  color: #decaff;
  padding: 0 0.7rem;
  font-size: 0.86rem;
  font-weight: 740;
  line-height: 1.1;
  text-align: center;
  text-decoration: none;
}

.provider-link-button:hover {
  border-color: var(--accent-border);
  background: rgba(169, 112, 255, 0.16);
  color: var(--text);
}

.provider-ledger {
  min-width: 0;
  padding: 1rem;
  overflow-x: auto;
  background: rgba(0, 0, 0, 0.2);
}

.provider-ledger-table {
  --provider-ledger-main-columns: minmax(150px, 1.45fr) minmax(82px, 0.7fr) minmax(120px, 1fr) minmax(112px, 0.85fr) minmax(112px, 0.85fr) minmax(112px, 0.85fr) minmax(92px, 0.65fr);
  --provider-ledger-action-width: 104px;
  width: 100%;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 8px;
}

.provider-ledger-head {
  display: grid;
  grid-template-columns: var(--provider-ledger-main-columns) var(--provider-ledger-action-width);
  gap: 0.8rem;
  align-items: center;
  width: 100%;
}

.provider-ledger-head {
  padding: 0.7rem 0.9rem;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 760;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.provider-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--provider-ledger-action-width);
  align-items: stretch;
  min-height: 58px;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.075);
  background: rgba(0, 0, 0, 0.18);
  color: var(--soft);
}

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

.provider-row-main {
  display: grid;
  grid-template-columns: var(--provider-ledger-main-columns);
  gap: 0.8rem;
  align-items: center;
  width: 100%;
  min-width: 0;
  border: 0;
  background: transparent;
  color: var(--soft);
  padding: 0.75rem 0.9rem;
  cursor: pointer;
  text-align: left;
}

.provider-row:hover .provider-row-main,
.provider-row.active .provider-row-main,
.provider-row:hover .provider-etherscan,
.provider-row.active .provider-etherscan {
  background: rgba(169, 112, 255, 0.1);
}

.provider-row-main span {
  min-width: 0;
  overflow: hidden;
  font-size: 0.83rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.provider-row-main b {
  display: block;
  color: var(--text);
  font-size: 0.9rem;
}

.provider-row-main small {
  display: block;
  color: var(--muted);
  font-size: 0.74rem;
}

.provider-etherscan {
  display: grid;
  min-width: 0;
  place-items: center;
  border-left: 1px solid rgba(255, 255, 255, 0.075);
  color: #decaff;
  padding: 0.65rem 0.7rem;
  font-size: 0.78rem;
  font-weight: 780;
  line-height: 1.1;
  text-align: center;
  text-decoration: none;
}

.provider-etherscan:hover {
  background: rgba(169, 112, 255, 0.18);
  color: var(--text);
}

.provider-empty {
  display: grid;
  min-height: 180px;
  place-items: center;
  padding: 1.4rem;
  color: var(--muted);
  text-align: center;
}

.provider-empty-rich {
  align-content: center;
  gap: 0.45rem;
}

.provider-empty-rich strong {
  color: var(--text);
  font-size: 1rem;
}

.provider-empty-rich span {
  max-width: 360px;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.55;
}

.provider-explorer-note {
  padding: 0.82rem 1rem;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.55;
}

body.network-provider-page {
  overflow-x: hidden;
  background:
    linear-gradient(180deg, rgba(169, 112, 255, 0.06), transparent 320px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.028), transparent 18%, transparent 82%, rgba(255, 255, 255, 0.024)),
    #030304;
}

body.network-provider-page::before {
  background:
    linear-gradient(rgba(255, 255, 255, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.022) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.92), transparent 78%);
}

#provider-network-page {
  min-height: 100vh;
  outline: 0;
}

.network-route-error {
  max-width: 720px;
  margin: 14vh auto;
  padding: 2rem;
  border: 1px solid var(--border);
  background: #08080a;
}

.network-route-error h1 {
  margin: 0 0 0.7rem;
  font-size: 2rem;
}

.network-route-error p {
  color: var(--muted);
}

.network-route-error a {
  color: var(--accent);
  font-weight: 760;
}

.network-explorer-page {
  min-height: 100vh;
  color: var(--text);
}

.network-nav {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 62px;
  padding: 0 34px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.095);
  background: rgba(3, 3, 4, 0.82);
  backdrop-filter: blur(18px);
}

.network-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.78rem;
  color: var(--text);
  text-decoration: none;
}

.network-brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid rgba(169, 112, 255, 0.45);
  border-radius: 8px;
  background: #08080a;
  box-shadow: 0 0 32px rgba(169, 112, 255, 0.16);
}

.network-brand-mark img {
  width: 22px;
  height: 22px;
}

.network-brand strong,
.network-brand small {
  display: block;
  line-height: 1.05;
}

.network-brand strong {
  font-size: 0.95rem;
  font-weight: 780;
}

.network-brand small {
  margin-top: 0.2rem;
  color: var(--muted);
  font-size: 0.72rem;
}

.network-nav nav {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.network-nav nav a {
  padding: 0.52rem 0.74rem;
  border: 1px solid transparent;
  border-radius: 7px;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 680;
  text-decoration: none;
}

.network-nav nav a:hover {
  border-color: var(--border);
  background: rgba(255, 255, 255, 0.045);
  color: var(--text);
}

.network-main {
  width: min(100%, 1480px);
  margin: 0 auto;
  padding: 30px 34px 72px;
}

.network-section-head span,
.network-map-head span,
.network-panel-title span,
.network-stat span,
.network-controls label span {
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 780;
  letter-spacing: 0.08em;
  line-height: 1.2;
  text-transform: uppercase;
}

.network-controls button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  border: 1px solid rgba(169, 112, 255, 0.42);
  border-radius: 7px;
  background: rgba(169, 112, 255, 0.14);
  color: #eadfff;
  font-weight: 760;
  text-decoration: none;
  cursor: pointer;
}

.network-controls button:hover {
  border-color: rgba(169, 112, 255, 0.7);
  background: rgba(169, 112, 255, 0.22);
}

.network-stats {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  margin-bottom: 16px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.115);
  border-radius: 9px;
  background: rgba(8, 8, 10, 0.78);
}

.network-stat {
  min-width: 0;
  padding: 1rem 1.05rem;
  border-right: 1px solid rgba(255, 255, 255, 0.085);
}

.network-stat:last-child {
  border-right: 0;
}

.network-stat strong {
  display: block;
  margin-top: 0.34rem;
  overflow: hidden;
  font-size: clamp(1.42rem, 2.2vw, 2.15rem);
  font-weight: 810;
  line-height: 1.05;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.network-stat small {
  display: block;
  margin-top: 0.32rem;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.network-controls {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) 160px 170px 116px minmax(260px, 0.8fr);
  gap: 0.7rem;
  align-items: end;
  margin-bottom: 18px;
}

.network-controls label {
  display: grid;
  gap: 0.38rem;
  min-width: 0;
}

.network-controls input,
.network-controls select {
  width: 100%;
  min-width: 0;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 7px;
  outline: 0;
  background: rgba(8, 8, 10, 0.88);
  color: var(--text);
  padding: 0 0.75rem;
}

.network-controls input:focus,
.network-controls select:focus {
  border-color: rgba(169, 112, 255, 0.48);
  box-shadow: 0 0 0 3px rgba(169, 112, 255, 0.12);
}

.network-controls button {
  height: 42px;
  padding: 0 0.9rem;
}

.network-controls button:disabled {
  cursor: wait;
  opacity: 0.58;
}

.network-status {
  display: flex;
  align-items: center;
  min-height: 42px;
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.095);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  padding: 0.48rem 0.8rem;
  font-size: 0.84rem;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.network-map-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(390px, 440px);
  gap: 18px;
  align-items: stretch;
  margin-bottom: 18px;
}

.network-map-surface,
.network-provider-inspector,
.network-ledger-section {
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.115);
  border-radius: 10px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.018)),
    rgba(8, 8, 10, 0.88);
}

.network-map-surface {
  min-height: 660px;
}

.network-map-head,
.network-section-head,
.network-panel-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 62px;
  padding: 0.95rem 1.05rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.085);
}

.network-map-head strong,
.network-section-head strong,
.network-panel-title strong {
  display: block;
  margin-top: 0.18rem;
  color: var(--text);
  font-size: 0.98rem;
}

.network-map-legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.42rem;
}

.network-map-legend span {
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  border: 1px solid rgba(169, 112, 255, 0.34);
  border-radius: 999px;
  background: rgba(169, 112, 255, 0.1);
  color: #decaff;
  padding: 0.24rem 0.55rem;
  font-size: 0.74rem;
  font-weight: 740;
}

.network-map-legend .green {
  border-color: rgba(53, 217, 150, 0.34);
  background: rgba(53, 217, 150, 0.08);
  color: #b7f2d6;
}

.network-map-legend .blue {
  border-color: rgba(120, 165, 255, 0.36);
  background: rgba(120, 165, 255, 0.1);
  color: #c9d9ff;
}

.network-map-stage {
  position: relative;
  min-height: 598px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(169, 112, 255, 0.055), transparent 52%),
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.075), transparent 45%),
    #050506;
}

.network-globe,
.network-globe .provider-globe-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.network-map-note {
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 2;
  max-width: 560px;
  border: 1px solid rgba(255, 255, 255, 0.105);
  border-radius: 8px;
  background: rgba(5, 5, 6, 0.72);
  color: var(--muted);
  padding: 0.62rem 0.78rem;
  font-size: 0.84rem;
  backdrop-filter: blur(12px);
}

.network-provider-inspector {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  max-height: 752px;
}

.network-provider-inspector [data-provider-detail] {
  min-height: 0;
  overflow-y: auto;
  padding: 1.1rem;
}

.network-provider-inspector .provider-detail-head h3 {
  font-size: 1.34rem;
}

.network-provider-inspector .provider-kv div {
  grid-template-columns: 126px minmax(0, 1fr);
}

.network-bottom {
  display: block;
}

.network-section-head p {
  max-width: 460px;
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.5;
}

.network-ledger-wrap {
  min-width: 0;
  padding: 1rem;
  overflow-x: auto;
}

.toc {
  position: sticky;
  top: calc(var(--topbar-height) + 22px);
  align-self: start;
  max-height: calc(100vh - var(--topbar-height) - 44px);
  overflow-y: auto;
  padding: 0.15rem 0 0.25rem 1rem;
  border-left: 1px solid var(--border);
}

.toc-title {
  margin-bottom: 0.45rem;
  color: var(--faint);
  font-size: 0.68rem;
  font-weight: 760;
  text-transform: uppercase;
}

.toc a {
  display: block;
  padding: 0.34rem 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.35;
  text-decoration: none;
}

.toc a:hover {
  color: var(--text);
}

.toc a.depth-3 {
  padding-left: 0.78rem;
}

.search-results {
  position: fixed;
  top: 76px;
  right: 28px;
  z-index: 50;
  width: min(560px, calc(100vw - 2rem));
  max-height: min(620px, calc(100dvh - 100px));
  overflow: auto;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  background: rgba(9, 9, 11, 0.98);
  box-shadow: var(--shadow);
}

.search-hit {
  display: block;
  padding: 0.9rem 1rem;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
}

.search-hit:last-child {
  border-bottom: 0;
}

.search-hit:hover {
  background: rgba(255, 255, 255, 0.045);
}

.search-hit strong {
  display: block;
  color: var(--text);
}

.search-hit span {
  display: block;
  margin-top: 0.24rem;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.45;
}

@media (max-width: 1280px) {
  .layout {
    grid-template-columns: 270px minmax(0, var(--content-width));
    max-width: 1320px;
  }

  .toc {
    display: none;
  }

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

  .hero-system {
    max-width: 620px;
  }
}

@media (max-width: 920px) {
  :root {
    --topbar-height: 112px;
  }

  .topbar {
    align-items: stretch;
    flex-direction: column;
    gap: 0.8rem;
    padding: 12px 18px;
  }

  .brand {
    min-width: 0;
  }

  .topbar-actions {
    width: 100%;
  }

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

  .mobile-only {
    display: grid;
  }

  .layout {
    grid-template-columns: 1fr;
    padding: 18px 18px 64px;
  }

  .sidebar {
    position: fixed;
    inset: calc(var(--topbar-height) + 12px) 18px auto;
    z-index: 35;
    display: none;
    max-height: calc(100dvh - var(--topbar-height) - 30px);
    padding: 0.9rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: rgba(8, 8, 10, 0.98);
    box-shadow: var(--shadow);
  }

  .sidebar.open {
    display: block;
  }

  .nav-link span {
    display: block;
  }

  .hero {
    padding: 2.6rem 0 2.8rem;
  }

  .hero h1,
  .doc-article h1 {
    font-size: 3rem;
  }

  .doc-article h2 {
    font-size: 1.72rem;
  }

  .hero-stat-row,
  .split-grid,
  .diagram-row {
    grid-template-columns: 1fr;
  }

  .hero-stat-row span {
    border-right: 0;
    border-bottom: 1px solid var(--border);
    padding-left: 0;
  }

  .hero-stat-row span:last-child {
    border-bottom: 0;
  }

  .timeline-item {
    grid-template-columns: 1fr;
    gap: 0.4rem;
  }

  .endpoint-controls {
    grid-template-columns: 1fr;
  }

  .provider-explorer-top,
  .provider-explorer-main {
    grid-template-columns: 1fr;
  }

  .provider-globe-panel {
    min-height: 520px;
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }

  .provider-explorer-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .provider-explorer-metric {
    border-bottom: 1px solid var(--border);
  }

  .search-results {
    left: 18px;
    right: 18px;
    width: auto;
  }
}

@media (max-width: 620px) {
  body {
    font-size: 14px;
  }

  .topbar-link {
    display: none;
  }

  .brand-mark {
    width: 32px;
    height: 32px;
  }

  .searchbox {
    grid-template-columns: minmax(0, 1fr);
  }

  .searchbox span {
    display: none;
  }

  .layout {
    padding-inline: 14px;
  }

  .hero {
    gap: 1.6rem;
    padding-top: 2rem;
  }

  .hero h1,
  .doc-article h1 {
    font-size: 2.35rem;
  }

  .hero .lede,
  .lede {
    font-size: 1rem;
  }

  .hero-actions {
    display: grid;
  }

  .button {
    width: 100%;
  }

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

  .system-topline,
  .panel-head {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    padding-block: 0.75rem;
  }

  .system-node,
  .console-line {
    grid-template-columns: 1fr;
    gap: 0.24rem;
  }

  .system-branches {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }

  .tile-grid,
  .feature-grid,
  .metric-grid,
  .flow-grid {
    grid-template-columns: 1fr;
  }

  .provider-explorer {
    margin-inline: -4px;
  }

  .provider-explorer-top,
  .provider-detail,
  .provider-ledger {
    padding: 1rem;
  }

  .provider-explorer-controls {
    grid-template-columns: 1fr;
  }

  .provider-explorer-stats {
    grid-template-columns: 1fr;
  }

  .provider-explorer-metric {
    border-right: 0;
  }

  .provider-globe-panel {
    min-height: 430px;
  }

  .provider-kv div {
    grid-template-columns: 1fr;
    gap: 0.16rem;
  }

  table {
    min-width: 560px;
  }
}

@media (max-width: 1180px) {
  .network-map-layout,
  .network-bottom {
    grid-template-columns: 1fr;
  }

  .network-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .network-stat {
    border-bottom: 1px solid rgba(255, 255, 255, 0.085);
  }

  .network-controls {
    grid-template-columns: minmax(0, 1fr) 150px 160px 112px;
  }

  .network-status {
    grid-column: 1 / -1;
  }

  .network-provider-inspector {
    max-height: none;
  }
}

@media (max-width: 760px) {
  .network-nav {
    position: static;
    align-items: flex-start;
    flex-direction: column;
    gap: 0.8rem;
    padding: 1rem;
  }

  .network-nav nav {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 0.15rem;
  }

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

  .network-main {
    padding: 28px 14px 48px;
  }

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

  .network-stat:nth-child(2n) {
    border-right: 0;
  }

  .network-controls {
    grid-template-columns: 1fr;
  }

  .network-map-head,
  .network-section-head,
  .network-panel-title {
    align-items: flex-start;
    flex-direction: column;
  }

  .network-map-surface {
    min-height: auto;
  }

  .network-map-stage {
    min-height: 480px;
  }

  .provider-cluster-tray:not([hidden]) {
    position: absolute;
    left: 0.75rem;
    right: 0.75rem;
    bottom: 4.35rem;
    z-index: 5;
    display: grid;
    gap: 0.7rem;
    max-height: 210px;
    overflow-y: auto;
    border: 1px solid rgba(169, 112, 255, 0.28);
    border-radius: 10px;
    background: rgba(7, 7, 10, 0.86);
    box-shadow: 0 18px 55px rgba(0, 0, 0, 0.42);
    padding: 0.75rem;
    backdrop-filter: blur(16px);
  }

  .provider-cluster-tray > div:first-child {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.7rem;
  }

  .provider-cluster-tray strong {
    color: var(--text);
    font-size: 0.88rem;
  }

  .provider-cluster-tray span {
    min-width: 0;
    color: var(--muted);
    font-size: 0.76rem;
    overflow-wrap: anywhere;
  }

  .provider-cluster-actions {
    display: grid;
    gap: 0.45rem;
  }

  .provider-cluster-actions button {
    display: grid;
    grid-template-columns: minmax(0, 0.78fr) minmax(0, 1fr);
    gap: 0.55rem;
    align-items: center;
    min-height: 44px;
    border: 1px solid rgba(255, 255, 255, 0.105);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.045);
    color: var(--text);
    padding: 0.55rem 0.65rem;
    text-align: left;
  }

  .provider-cluster-actions button:active {
    border-color: rgba(169, 112, 255, 0.42);
    background: rgba(169, 112, 255, 0.16);
  }

  .provider-cluster-actions b,
  .provider-cluster-actions span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .network-provider-inspector [data-provider-detail],
  .network-ledger-wrap {
    padding: 0.85rem;
  }

  .provider-ledger-table {
    --provider-ledger-main-columns: 180px 104px 150px 140px 140px 140px 142px;
    --provider-ledger-action-width: 118px;
    width: max-content;
    min-width: 1240px;
  }

  .network-provider-inspector .provider-kv div {
    grid-template-columns: 1fr;
    gap: 0.18rem;
  }
}

@media (max-width: 460px) {
  .network-stats {
    grid-template-columns: 1fr;
  }

  .network-stat {
    border-right: 0;
  }

  .network-map-stage {
    min-height: 410px;
  }

  .provider-cluster-tray:not([hidden]) {
    bottom: 4rem;
    max-height: 190px;
  }

  .provider-cluster-actions button {
    grid-template-columns: 1fr;
    gap: 0.1rem;
  }

  .network-map-note {
    font-size: 0.78rem;
  }
}
