html {
  scroll-behavior: smooth;
  scroll-padding-top: 108px;
}
body {
  font-size: 15px;
  line-height: 1.7;
}
.skip-docs {
  position: fixed;
  top: -100px;
  left: 16px;
  z-index: 99;
  background: var(--ink);
  color: white;
  padding: 10px;
}
.skip-docs:focus {
  top: 10px;
}
.docs-header {
  height: 82px;
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 4vw;
  background: var(--paper);
}
.docs-header .brand span {
  font-size: 12px;
  letter-spacing: 0;
  border-left: 1px solid var(--line);
  padding-left: 15px;
  margin-left: 8px;
  color: var(--muted);
}
.docs-layout {
  max-width: 1440px;
  margin: auto;
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  gap: 64px;
  padding: 0 4vw;
}
.docs-sidebar {
  position: sticky;
  top: 108px;
  height: calc(100dvh - 130px);
  overflow: auto;
  padding: 24px 0;
}
.docs-sidebar label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 8px;
}
.docs-sidebar input {
  width: 100%;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 10px 12px;
}
.docs-sidebar nav {
  display: grid;
  gap: 6px;
  margin: 25px 0;
}
.docs-sidebar nav a {
  display: flex;
  gap: 14px;
  text-decoration: none;
  color: var(--muted);
  font-size: 11px;
  padding: 10px 12px;
  border-radius: 6px;
}
.docs-sidebar nav a span {
  font-size: 13px;
  color: var(--ink);
  font-weight: 500;
}
.docs-sidebar nav a:hover,
.docs-sidebar nav a[aria-current] {
  background: var(--sage);
}
.docs-sidebar nav a[hidden] {
  display: none;
}
.sidebar-note {
  border-top: 1px solid var(--line);
  padding-top: 24px;
  margin-top: 32px;
  font-size: 12px;
}
.sidebar-note p {
  color: var(--muted);
  font-size: 11px;
}
.status-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  background: #627f50;
  border-radius: 50%;
  margin-right: 6px;
}
main {
  min-width: 0;
  padding-top: 68px;
}
section[data-guide] {
  padding-bottom: 68px;
  margin-bottom: 64px;
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 24px;
}
h1 {
  font-size: clamp(35px, 4.1vw, 59px);
  line-height: 1.08;
  letter-spacing: -2.5px;
  font-weight: 550;
  margin: 16px 0 25px;
}
h2 {
  font-size: 29px;
  line-height: 1.22;
  letter-spacing: -0.8px;
  font-weight: 550;
  margin: 20px 0;
}
h3 {
  font-size: 17px;
  line-height: 1.5;
  letter-spacing: -0.2px;
  font-weight: 650;
  margin: 26px 0 8px;
}
p {
  margin: 12px 0 20px;
  color: #4f584b;
}
.intro {
  font-size: 18px;
  max-width: 690px;
  line-height: 1.65;
  margin-bottom: 30px;
}
.note {
  margin: 25px 0;
  line-height: 1.7;
  font-size: 14px;
}
.note p {
  margin: 7px 0 0;
}
.guide-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin: 35px 0 44px;
}
.guide-cards > a {
  border: 1px solid var(--line);
  padding: 26px;
  text-decoration: none;
  background: #fff8;
  border-radius: 10px;
  transition: border-color 0.15s;
}
.guide-cards > a:hover {
  border-color: var(--accent);
}
.guide-cards h2 {
  font-size: 20px;
  margin: 12px 0;
}
.guide-cards p {
  font-size: 13px;
  margin-bottom: 0;
}
.steps {
  list-style: none;
  counter-reset: steps;
  padding: 0;
}
.steps > li {
  counter-increment: steps;
  position: relative;
  padding-left: 52px;
  margin: 32px 0;
}
.steps > li:before {
  content: counter(steps, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent);
  font:
    13px ui-monospace,
    monospace;
  background: var(--sage);
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: grid;
  place-content: center;
}
.steps h3 {
  margin-top: 0;
}
.table-wrap {
  overflow-x: auto;
  margin: 24px 0;
  border: 1px solid var(--line);
  border-radius: 8px;
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 13px;
  text-align: left;
}
th {
  background: var(--sage);
  color: var(--ink);
  font-weight: 600;
}
td,
th {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  min-width: 150px;
}
td {
  color: #4f584b;
}
tr:last-child td {
  border-bottom: 0;
}
td code {
  overflow-wrap: anywhere;
}
code {
  font:
    12px/1.7 ui-monospace,
    SFMono-Regular,
    Consolas,
    monospace;
  background: #e9ebe4;
  padding: 2px 4px;
  border-radius: 3px;
  overflow-wrap: anywhere;
}
pre {
  max-width: 100%;
  overflow: auto;
  border: 1px solid var(--line);
  background: #242a23;
  color: #eef1e9;
  padding: 23px;
  border-radius: 8px;
  margin: 10px 0 20px;
  font-size: 12px;
  line-height: 1.8;
}
pre code {
  padding: 0;
  background: none;
  color: inherit;
  white-space: pre;
  overflow-wrap: normal;
}
.code-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 22px;
  font-size: 12px;
  color: var(--muted);
}
.flow {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 25px 0;
}
.flow span {
  background: var(--sage);
  padding: 7px 13px;
  border-radius: 5px;
  font-size: 12px;
}
.flow span:not(:last-child):after {
  content: " →";
  margin-left: 8px;
}
video {
  width: 100%;
  max-height: 75vh;
  background: #232722;
  border-radius: 10px;
  border: 1px solid var(--line);
}
details {
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
summary {
  cursor: pointer;
  font-weight: 550;
}
details p {
  padding-left: 18px;
  font-size: 14px;
}
.docs-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
  font-size: 11px;
  color: var(--muted);
  padding-bottom: 40px;
}
#copy-status {
  position: fixed;
  bottom: 22px;
  right: 22px;
  background: var(--ink);
  color: white;
  border-radius: 8px;
  padding: 12px 18px;
  z-index: 25;
}
#copy-status:empty {
  display: none;
}
a:focus-visible,
input:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
}
nav a[aria-current] {
  color: var(--accent);
}
@media (max-width: 1000px) {
  .docs-layout {
    grid-template-columns: 210px minmax(0, 1fr);
    gap: 32px;
  }
  .guide-cards {
    grid-template-columns: 1fr;
  }
  h1 {
    letter-spacing: -1.5px;
  }
}
@media (max-width: 700px) {
  .docs-header {
    height: 72px;
    padding: 0 20px;
  }
  .docs-header .brand {
    font-size: 20px;
  }
  .docs-header > .btn {
    font-size: 11px;
    padding: 8px;
  }
  .docs-header .brand span {
    display: none;
  }
  .docs-layout {
    display: block;
    padding: 0 22px;
  }
  .docs-sidebar {
    position: static;
    height: auto;
    overflow: visible;
    padding: 24px 0 0;
  }
  .docs-sidebar nav {
    grid-template-columns: 1fr 1fr;
    gap: 2px;
    margin: 16px 0;
  }
  .docs-sidebar nav a {
    padding: 9px 6px;
    gap: 7px;
  }
  .sidebar-note {
    display: none;
  }
  main {
    padding-top: 28px;
  }
  h1 {
    font-size: 37px;
  }
  h2 {
    font-size: 26px;
  }
  .intro {
    font-size: 16px;
  }
  section[data-guide] {
    padding-bottom: 36px;
    margin-bottom: 36px;
  }
  .steps > li {
    padding-left: 42px;
  }
  pre {
    padding: 16px;
  }
  .docs-footer span {
    width: 100%;
  }
  #search-status:empty {
    display: none;
  }
  .guide-cards > a {
    padding: 20px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    transition: none !important;
  }
}
@media print {
  .docs-header,
  .docs-sidebar,
  .copy,
  video,
  #copy-status {
    display: none;
  }
  .docs-layout {
    display: block;
  }
  main {
    padding: 0;
  }
  section[data-guide] {
    break-inside: auto;
    margin-bottom: 20px;
    padding-bottom: 20px;
  }
  pre {
    white-space: pre-wrap;
    background: white;
    color: black;
  }
  pre code {
    white-space: pre-wrap;
  }
  a {
    color: inherit;
  }
}

.x402-guide .network-table { overflow-x: auto; }
.x402-guide code { overflow-wrap: anywhere; }
