#main {
  width: min(740px, calc(100% - 40px));
  margin: clamp(36px, 6vh, 68px) auto 80px;
}
h1,
h2 {
  font-weight: 600;
  letter-spacing: -0.035em;
}
h1 {
  margin: 0;
  font-size: clamp(30px, 4vw, 34px);
  line-height: 1.18;
}
h2 {
  margin: 34px 0 8px;
  font-size: 22px;
}
.lead,
.prereq {
  color: var(--muted);
  margin: 10px 0 0;
  font-size: 16px;
}
.prereq a {
  color: var(--accent);
  text-underline-offset: 3px;
}
.copy svg {
  width: 15px;
  height: 15px;
}
.prereq svg {
  width: 16px;
  height: 16px;
  stroke-width: 2;
  vertical-align: -2px;
  margin-right: 6px;
}
.setup {
  margin-top: 18px;
  background: var(--field);
  border: 1px solid var(--line);
  border-radius: 10px;
}
[role="tablist"] {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-bottom: 1px solid var(--line);
}
[role="tab"] {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 40px;
  font-size: 14px;
  min-width: 0;
  padding: 0 4px;
  color: var(--soft);
  background: transparent;
  border: 0;
  border-bottom: 2px solid transparent;
  line-height: 1.35;
}
[role="tab"]:first-child {
  border-top-left-radius: 9px;
}
[role="tab"]:last-child {
  border-top-right-radius: 9px;
}
[role="tab"] + [role="tab"] {
  border-left: 1px solid var(--line);
}
[role="tab"][aria-selected="true"] {
  background: #1c231e;
  color: var(--text);
  border-bottom-color: var(--accent);
}
[role="tab"] img {
  width: 16px;
  height: 16px;
  object-fit: contain;
}
[role="tab"]:not(#tab-opencode) img {
  filter: brightness(0) invert(0.88);
}
[role="tab"]:focus-visible {
  outline-offset: -4px;
}
[role="tabpanel"] {
  padding: 20px;
}
[role="tabpanel"] p {
  margin: 0;
  color: var(--soft);
}
figure {
  margin: 16px 0;
  overflow: hidden;
  background: #101111;
  border: 1px solid var(--line);
  border-radius: 7px;
}
figcaption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 3px 12px;
  border-bottom: 1px solid var(--line);
  background: #1b1c1b;
  font-size: 12px;
  color: var(--soft);
}
.copy {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px;
  color: inherit;
  background: transparent;
  border: 0;
}
.copy:hover {
  color: var(--text);
}
pre {
  overflow-x: auto;
  padding: 14px 16px;
  margin: 0;
  line-height: 1.65;
  font-size: 13px;
}
.command {
  color: #bad7b2;
}
.flag {
  color: #aac7df;
}
.string {
  color: #dcbd9e;
}
.check {
  font-size: 14px;
}
p code {
  color: var(--text);
  font-size: 0.93em;
  overflow-wrap: anywhere;
}
@media (max-width: 480px) {
  [role="tabpanel"] {
    padding: 15px;
  }
}

.tools {
  margin-top: 38px;
  border-top: 1px solid var(--line);
}
.tools article {
  padding: 14px 0;
}
.tools article + article {
  border-top: 1px solid var(--line);
}
.tools h3 {
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
}
.tools h3 span {
  color: var(--muted);
  font-weight: 400;
}
.tools p {
  margin: 4px 0 0;
  color: var(--soft);
}
@media (any-pointer: coarse) {
  [role="tab"] {
    min-height: 44px;
  }
}

.endpoint { margin-top: 16px; color: var(--soft); font-size: 14px; }
.endpoint summary { cursor: pointer; }
