.docs-center,
.docs-center > * {
  min-width: 0;
}

.docs-center {
  scroll-margin-top: var(--ld-space-4);
}

.docs-heading {
  display: flex;
  gap: var(--ld-space-4);
  align-items: flex-start;
  justify-content: space-between;
}

.docs-heading h2,
.docs-section > h2,
.docs-section-heading h2,
.docs-guide-section-heading h2 {
  margin: 0;
  color: var(--customer-text);
  font-size: 20px;
  font-weight: 650;
  letter-spacing: -0.3px;
  line-height: 24px;
  text-transform: none;
}

.docs-heading p {
  max-width: 680px;
  margin: var(--ld-space-2) 0 0;
  color: var(--customer-muted);
  font-size: 13px;
  line-height: 1.5;
}

.docs-heading > a,
.docs-anchor-nav a {
  min-height: 44px;
  padding: 0 var(--ld-space-3);
  border: 1px solid var(--customer-border);
  border-radius: var(--ld-radius-sm);
  display: inline-flex;
  align-items: center;
  color: var(--customer-text-soft);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.docs-search {
  margin-top: var(--ld-space-4);
  display: grid;
  gap: var(--ld-space-2);
  color: var(--customer-muted);
  font-size: 12px;
  font-weight: 650;
}

.docs-search input,
.docs-connection-facts select,
.docs-section-heading select {
  min-height: 44px;
  padding: 0 var(--ld-space-3);
  border: 1px solid var(--customer-border-strong);
  border-radius: var(--ld-radius-sm);
  background: var(--customer-field);
  color: var(--customer-text);
  font: inherit;
}

.docs-anchor-nav {
  margin-top: var(--ld-space-3);
  display: flex;
  flex-wrap: wrap;
  gap: var(--ld-space-2);
}

.docs-section {
  margin-top: var(--ld-space-5);
  scroll-margin-top: var(--ld-space-4);
}

.docs-section[hidden],
.docs-center [data-search-item][hidden] {
  display: none;
}

.docs-section-heading {
  display: flex;
  gap: var(--ld-space-4);
  align-items: end;
  justify-content: space-between;
}

.docs-section-heading label {
  width: min(100%, 360px);
  min-width: 220px;
  display: grid;
  gap: var(--ld-space-2);
  color: var(--customer-muted);
  font-size: 12px;
  font-weight: 650;
}

.docs-section-heading p,
.docs-section-description {
  margin: var(--ld-space-2) 0 0;
  color: var(--customer-muted);
  font-size: 13px;
  line-height: 1.5;
}

.docs-steps {
  margin: var(--ld-space-4) 0;
  padding-left: 24px;
  color: var(--customer-text-soft);
  font-size: 13px;
  line-height: 1.6;
}

.docs-steps li + li {
  margin-top: var(--ld-space-2);
}

.docs-connection-facts {
  padding: var(--ld-space-3);
  border: 1px solid var(--customer-border);
  border-radius: var(--ld-radius-md);
  background: var(--customer-surface-soft);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--ld-space-3);
  align-items: end;
}

#guides .docs-connection-facts {
  margin-top: var(--ld-space-6);
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1.4fr) minmax(200px, 0.6fr);
}

.docs-connection-field,
.docs-connection-facts > label {
  min-width: 0;
  display: grid;
  gap: var(--ld-space-2);
  color: var(--customer-muted);
  font-size: 12px;
  font-weight: 650;
}

.docs-connection-value {
  min-width: 0;
  min-height: 44px;
  padding-inline-start: var(--ld-space-3);
  border: 1px solid var(--customer-border-strong);
  border-radius: var(--ld-radius-sm);
  display: flex;
  gap: var(--ld-space-2);
  align-items: center;
  background: var(--customer-field);
}

.docs-connection-facts code {
  min-width: 0;
  flex: 1 1 auto;
  color: var(--customer-text);
  overflow-wrap: anywhere;
}

.docs-connection-value button {
  min-height: 44px;
  padding: 0 var(--ld-space-2);
  border: 0;
  border-radius: var(--ld-radius-sm);
  display: inline-flex;
  flex: 0 0 auto;
  gap: var(--ld-space-1);
  align-items: center;
  justify-content: center;
  background: transparent;
  color: var(--customer-text-soft);
  font: inherit;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: color 120ms ease-out, transform 120ms ease-out;
}

.docs-connection-value button:hover {
  background: var(--customer-surface-soft);
}

.docs-connection-value button svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.docs-connection-value button.is-copied {
  color: var(--customer-accent);
  transform: translateY(-1px);
}

.docs-connection-value button.is-copy-error {
  color: var(--customer-danger, #e24b4a);
}

.docs-example-groups {
  margin-top: var(--ld-space-4);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--ld-space-4);
  align-items: start;
}

.docs-example-group {
  min-width: 0;
  padding: var(--ld-space-4);
  border: 1px solid var(--customer-border);
  border-radius: var(--ld-radius-md);
  background: var(--customer-surface-soft);
}

.docs-example-group > h3 {
  margin: 0;
  color: var(--customer-text);
  font-size: 15px;
  font-weight: 650;
  letter-spacing: -0.1px;
}

.docs-example-group .docs-examples {
  margin-top: var(--ld-space-3);
  gap: var(--ld-space-3);
}

.docs-example-group .docs-examples pre {
  max-height: 240px;
}

.docs-examples {
  margin-top: var(--ld-space-4);
  display: grid;
  gap: var(--ld-space-4);
}

.docs-examples article {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--customer-border);
  border-radius: var(--ld-radius-md);
  background: var(--customer-field);
}

.docs-examples h3 {
  margin: 0;
  padding: var(--ld-space-4) var(--ld-space-4) 0;
  color: var(--customer-text);
  font-size: 14px;
}

.docs-examples button {
  min-height: 44px;
  margin: var(--ld-space-3) var(--ld-space-4) 0;
  padding: 0 var(--ld-space-3);
  border: 1px solid var(--customer-border-strong);
  border-radius: var(--ld-radius-sm);
  background: var(--customer-surface-raised);
  color: var(--customer-text-soft);
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.docs-examples pre {
  width: 100%;
  max-width: 100%;
  max-height: 380px;
  margin: var(--ld-space-3) 0 0;
  padding: var(--ld-space-4);
  overflow: auto;
  background: var(--customer-field);
  color: var(--customer-text-soft);
  font: 12px/1.65 SFMono-Regular, Consolas, monospace;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.client-setup-docs {
  min-width: 0;
  margin-top: var(--ld-space-6);
  padding-top: var(--ld-space-6);
  border-top: 1px solid var(--customer-border);
  scroll-margin-top: var(--ld-space-4);
  container-type: inline-size;
}

.client-setup-docs .docs-connection-facts {
  margin-top: var(--ld-space-4);
}

.client-setup-docs > * {
  min-width: 0;
}

.client-setup-docs-heading {
  display: flex;
  gap: var(--ld-space-4);
  align-items: end;
  justify-content: space-between;
}

.client-setup-docs-heading h2 {
  margin: 0;
  color: var(--customer-text);
  font-size: 16px;
  font-weight: 650;
  letter-spacing: -0.2px;
  line-height: 22px;
  text-transform: none;
}

.client-setup-docs-heading p {
  margin: var(--ld-space-1) 0 0;
  color: var(--customer-muted);
  font-size: 12px;
  line-height: 1.5;
}

.client-setup-docs-actions {
  display: flex;
  gap: var(--ld-space-3);
  align-items: end;
}

.client-setup-docs-actions label {
  width: 260px;
  display: grid;
  gap: var(--ld-space-1);
  color: var(--customer-muted);
  font-size: 11px;
  font-weight: 650;
}

.client-setup-docs-actions select,
.client-setup-docs-actions > a {
  min-height: 40px;
  padding: 0 var(--ld-space-3);
  border: 1px solid var(--customer-border-strong);
  border-radius: var(--ld-radius-sm);
  background: var(--customer-field);
  color: var(--customer-text);
  font: inherit;
  font-size: 16px;
}

.client-setup-docs-actions > a {
  display: inline-flex;
  align-items: center;
  color: var(--customer-text-soft);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.client-setup-docs .docs-examples {
  margin-top: var(--ld-space-4);
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--ld-space-3);
}

.client-setup-docs .docs-examples article {
  position: relative;
  padding: var(--ld-space-3);
  border-radius: var(--ld-radius-md);
  container-type: inline-size;
}

.client-setup-docs .docs-examples h3 {
  max-width: calc(100% - 128px);
  padding: 0;
  font-size: 13px;
  letter-spacing: normal;
  line-height: 20px;
  text-transform: none;
}

.client-setup-docs .docs-examples button {
  position: absolute;
  inset-block-start: var(--ld-space-2);
  inset-inline-end: var(--ld-space-2);
  width: auto;
  min-height: 32px;
  margin: 0;
  padding: 0 var(--ld-space-2);
  justify-content: center;
  font-size: 11px;
}

.client-setup-docs .docs-examples pre {
  max-height: 156px;
  margin: var(--ld-space-3) 0 0;
  padding: var(--ld-space-3) 0 0;
  border-top: 1px solid var(--customer-border);
  font-size: 11px;
  line-height: 1.55;
}

.docs-examples .docs-balance-requests {
  margin: 8px 0 0;
  color: var(--customer-text-soft);
  font-size: 12px;
}

.client-setup-programs {
  margin-top: var(--ld-space-4);
  display: flex;
  gap: var(--ld-space-3);
  align-items: flex-start;
}

.client-setup-programs h3 {
  flex: none;
  margin: 5px 0 0;
  color: var(--customer-muted);
  font-size: 11px;
  letter-spacing: normal;
  line-height: 16px;
  text-transform: none;
}

.client-setup-programs ul {
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  list-style: none;
}

.client-setup-programs li {
  padding: 5px 8px;
  border: 1px solid var(--customer-border);
  border-radius: 6px;
  background: var(--customer-surface-soft);
  color: var(--customer-text-soft);
  font-size: 11px;
  line-height: 16px;
}

.client-setup-docs :is(a, button, select, pre):focus-visible {
  outline: 2px solid var(--customer-accent);
  outline-offset: 2px;
}

@container (max-width: 760px) {
  .client-setup-docs .docs-examples {
    grid-template-columns: minmax(0, 1fr);
  }

  .client-setup-docs-heading,
  .client-setup-docs-actions,
  .client-setup-programs {
    align-items: stretch;
    flex-direction: column;
  }

  .client-setup-docs-actions label {
    width: 100%;
  }

  .client-setup-docs-actions > a {
    justify-content: center;
  }

  .client-setup-programs h3 {
    margin-top: 0;
  }
}

.docs-protocol-grid,
.docs-card-grid {
  margin-top: var(--ld-space-4);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--ld-space-4);
}

.docs-protocol-grid article,
.docs-card {
  min-width: 0;
  padding: var(--ld-space-4);
  border: 1px solid var(--customer-border);
  border-radius: var(--ld-radius-md);
  background: var(--customer-surface-soft);
}

.docs-center :is(.docs-protocol-grid, .docs-card-grid) h3 {
  margin: 0;
  color: var(--customer-text);
  font-size: 15px;
}

.docs-center :is(.docs-protocol-grid, .docs-card-grid) p {
  margin: var(--ld-space-3) 0 0;
  color: var(--customer-muted);
  font-size: 13px;
  line-height: 1.55;
}

.docs-warning {
  margin: var(--ld-space-3) 0 0;
  padding: var(--ld-space-3);
  border-left: 2px solid var(--customer-accent);
  color: var(--customer-text-soft);
  font-size: 13px;
  line-height: 1.5;
}

.docs-url {
  margin-top: var(--ld-space-3);
  display: block;
  color: var(--customer-subtle);
  font-size: 11px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.docs-card > a {
  min-height: 44px;
  margin-top: var(--ld-space-3);
  padding: 0 var(--ld-space-3);
  border: 1px solid var(--customer-border-strong);
  border-radius: var(--ld-radius-sm);
  display: inline-flex;
  align-items: center;
  background: var(--customer-surface-raised);
  color: var(--customer-text-soft);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}

.docs-faq-grid {
  margin-top: var(--ld-space-4);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--ld-space-3);
  align-items: start;
}

.docs-faq-grid details {
  min-width: 0;
  padding: 0 var(--ld-space-4);
  border: 1px solid var(--customer-border);
  border-radius: var(--ld-radius-md);
  background: var(--customer-surface-soft);
}

.docs-faq-grid summary {
  min-height: 56px;
  display: flex;
  align-items: center;
  color: var(--customer-text);
  font-size: 14px;
  font-weight: 650;
  line-height: 1.45;
  cursor: pointer;
}

.docs-faq-grid details[open] summary {
  color: var(--customer-accent);
}

.docs-faq-grid details p {
  margin: 0 0 var(--ld-space-4);
  color: var(--customer-muted);
  font-size: 13px;
  line-height: 1.6;
}

.docs-manual {
  margin-top: var(--ld-space-4);
  display: grid;
  gap: var(--ld-space-4);
}

.docs-manual article {
  min-width: 0;
  padding: var(--ld-space-4);
  border: 1px solid var(--customer-border);
  border-radius: var(--ld-radius-md);
  background: var(--customer-surface-soft);
}

.docs-manual h3 {
  margin: 0;
  color: var(--customer-text);
  font-size: 15px;
}

.docs-manual p {
  margin: var(--ld-space-3) 0 0;
  color: var(--customer-muted);
  font-size: 13px;
  line-height: 1.6;
}

.docs-empty {
  padding: var(--ld-space-4);
  color: var(--customer-muted);
  text-align: center;
}

.docs-center :is(a, button, input, select, pre):focus-visible {
  outline: 2px solid var(--customer-accent);
  outline-offset: 2px;
}

.docs-center :is(input, select) {
  font-size: 16px;
}

.docs-example-column {
  display: grid;
  gap: var(--ld-space-4);
  align-content: start;
}

@media (min-width: 1001px) {
  .docs-example-groups {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--ld-space-4);
    align-items: start;
  }
}

@media (max-width: 1000px) {
  #guides .docs-connection-facts,
  .docs-example-groups {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 760px) {
  .docs-heading,
  .docs-section-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .docs-section-heading label {
    width: 100%;
    min-width: 0;
  }

  .docs-faq-grid,
  .docs-protocol-grid,
  .docs-card-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .docs-examples button,
  .docs-card > a {
    width: 100%;
    justify-content: center;
  }

  .docs-examples pre {
    padding: var(--ld-space-3);
    font-size: 11px;
  }
}

.client-setup-docs-actions { flex-wrap: wrap; }
.client-setup-docs-actions a { display: inline-flex; align-items: center; text-decoration: none; }

#docs .client-setup-docs-heading p {
  margin-top: 22px;
}

#docs .client-setup-docs-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.docs-os-switch {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 3px;
  width: max-content;
  max-width: 100%;
  border: 1px solid var(--customer-border-strong);
  border-radius: 9px;
  background: var(--customer-field);
}

.docs-os-switch button {
  min-height: 36px;
  padding: 0 11px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: var(--customer-text-soft);
  font: inherit;
  font-size: 13px;
  font-weight: 650;
  cursor: pointer;
}

.docs-os-switch button[aria-pressed="true"] {
  border-color: var(--customer-border);
  background: var(--customer-surface-raised);
  color: var(--customer-accent);
}

.docs-guide {
  container-type: inline-size;
}

.docs-guide-heading,
.docs-guide-toolbar,
.docs-guide-section-heading {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: end;
  gap: 16px;
}
.docs-guide-section-heading {
  align-items: center;
  gap: 8px 16px;
  margin-bottom: 12px;
}

.docs-setup-tools {
  display: grid;
  flex: 0 1 630px;
  grid-template-columns: repeat(2, minmax(0, 1fr)) auto;
  align-items: end;
  gap: 10px;
  min-width: min(100%, 410px);
}

.docs-guide-heading h2 {
  margin: 0;
  color: var(--customer-text);
  font-size: 20px;
  line-height: 1.2;
  letter-spacing: -.3px;
  text-transform: none;
}

#guides .docs-connection-facts {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin: 22px 0 18px;
  padding: 0;
  border: 0;
  background: transparent;
}

#guides .docs-connection-value {
  gap: 10px;
  min-height: 52px;
  padding: 3px 4px 3px 13px;
}

#guides .docs-connection-value code {
  flex: 1 1 auto;
  min-width: 0;
  overflow-wrap: anywhere;
  color: var(--customer-text-soft);
}

.docs-guide-toolbar .docs-anchor-nav {
  margin: 0;
  gap: 6px;
}

.docs-guide-toolbar .docs-control {
  flex: 1 1 240px;
  max-width: 360px;
}

.docs-control {
  display: grid;
  min-width: 0;
  gap: 6px;
  font-size: 12px;
  font-weight: 650;
  color: var(--customer-muted);
}

.docs-control select,
.docs-picker-trigger,
.docs-picker-search {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid var(--customer-border-strong);
  border-radius: 8px;
  background: var(--customer-field);
  color: var(--customer-text);
  font: inherit;
  font-size: 14px;
}

.docs-picker-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  text-align: left;
  cursor: pointer;
}

.docs-picker-trigger span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.docs-picker-trigger::after {
  content: "";
  flex: 0 0 auto;
  width: 7px;
  height: 7px;
  margin-right: 2px;
  border: solid currentColor;
  border-width: 0 1.5px 1.5px 0;
  transform: translateY(-2px) rotate(45deg);
}

.docs-picker-menu {
  position: fixed;
  inset: auto;
  box-sizing: border-box;
  max-height: 330px;
  margin: 0;
  padding: 7px;
  overflow: hidden;
  border: 1px solid var(--customer-border-strong);
  border-radius: 10px;
  background: var(--customer-surface-raised);
  color: var(--customer-text);
  box-shadow: 0 8px 20px rgb(0 0 0 / 25%);
}

.docs-picker-menu:popover-open {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 4px;
}

.docs-picker-search { min-height: 36px; }

div.docs-picker-search {
  box-sizing: border-box;
  padding-block: 9px;
  line-height: 16px;
  resize: none;
  overflow: hidden;
  white-space: pre;
}

.ldai-plain-text-input {
  box-sizing: border-box;
  min-height: 44px;
  padding: 9px 12px;
  border: 1px solid var(--customer-border-strong);
  border-radius: 8px;
  background: var(--customer-field);
  color: var(--customer-text);
  font: inherit;
  line-height: 1.4;
  overflow-wrap: anywhere;
  cursor: text;
}

.ldai-plain-text-input:empty::before {
  content: attr(data-placeholder);
  color: var(--customer-muted);
  pointer-events: none;
}

.ldai-plain-text-input:focus-visible {
  outline: 2px solid var(--customer-accent);
  outline-offset: 2px;
}

.docs-picker-trigger:hover,
.docs-picker-trigger:focus-visible,
.docs-picker-search:focus {
  outline: none;
  border-color: var(--customer-accent);
}

.docs-picker-list {
  max-height: 248px;
  overflow: auto;
  overscroll-behavior: contain;
}

.docs-picker-group-title,
.docs-picker-empty {
  padding: 6px 8px 4px;
  color: var(--customer-muted);
  font-size: 12px;
}

.docs-picker-empty { margin: 0; }

.docs-picker-group button {
  width: 100%;
  min-height: 32px;
  padding: 5px 8px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: var(--customer-text);
  font: inherit;
  font-size: 14px;
  text-align: left;
  overflow-wrap: anywhere;
  cursor: pointer;
}

.docs-picker-group button:hover,
.docs-picker-group button:focus-visible {
  outline: none;
  border-color: var(--customer-accent);
}

.docs-picker-group button[aria-pressed="true"] {
  background: var(--customer-field);
  color: var(--customer-accent);
}

#guides .docs-section {
  margin-top: 24px;
  padding-top: 21px;
  border-top: 1px solid var(--customer-border);
  scroll-margin-top: 24px;
}

#guides .docs-examples {
  margin: 14px 0 0;
}

#guides .docs-api-basics .docs-examples {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

#guides .docs-api-protocols .docs-examples {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

#guides .docs-examples article {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  align-content: start;
  min-width: 0;
  gap: 10px;
  padding: 12px;
}

#guides .docs-api-protocols .docs-examples {
  align-items: stretch;
}

.docs-example-title {
  display: grid;
  align-content: start;
  gap: 4px;
  min-width: 0;
}

#guides .docs-example-title h3 {
  padding: 0;
}

#docs .docs-example-title h3 {
  max-width: none;
}

#guides .docs-api-protocols .docs-example-title {
  min-height: 45px;
}

.docs-example-title a,
.docs-program-heading a {
  width: fit-content;
  font-size: 12px;
  color: var(--customer-accent);
  text-underline-offset: 3px;
}

#guides .docs-copy-button,
#docs .docs-copy-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 130px;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid var(--customer-border-strong);
  border-radius: 7px;
  background: var(--customer-surface-raised);
  color: var(--customer-text-soft);
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
  transition: background 140ms ease, border-color 140ms ease, color 140ms ease, transform 140ms ease;
}

#guides .docs-connection-facts .docs-copy-button {
  min-width: min(170px, 45%);
  max-width: 50%;
}

#guides .docs-examples .docs-copy-button {
  width: 100%;
  box-sizing: border-box;
  margin: 0;
}

#guides .docs-copy-button:hover,
#docs .docs-copy-button:hover {
  border-color: var(--customer-accent);
  color: var(--customer-accent);
}

.docs-copy-button:active {
  transform: scale(.98);
}

.docs-copy-button svg {
  width: 16px;
  height: 16px;
  flex: none;
}

.docs-copy-spinner {
  animation: docs-copy-spin .8s linear infinite;
}

@keyframes docs-copy-spin {
  to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
  .docs-copy-spinner { animation: none; }
}

.docs-program-card {
  display: grid;
  min-width: 0;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--customer-border);
  border-radius: 9px;
  background: var(--customer-surface-soft);
}

.docs-program-heading,
.docs-command-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 14px;
}

.docs-program-heading h3,
.docs-program-card p {
  margin: 0;
}

.docs-program-heading h3 {
  font-size: 16px;
  color: var(--customer-text);
}

.docs-program-card p {
  font-size: 13px;
  line-height: 1.45;
  color: var(--customer-text-soft);
}

.docs-program-fields {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 215px), 1fr));
  gap: 10px;
}

.docs-command-card {
  min-width: 0;
  display: grid;
  gap: 5px;
}

.docs-command-heading strong {
  font-size: 13px;
  color: var(--customer-text-soft);
}

#guides pre[data-docs-template] {
  box-sizing: border-box;
  min-width: 0;
  block-size: clamp(140px, 23svh, 220px);
  margin: 0;
  padding: 10px 12px;
  overflow: auto;
  scrollbar-gutter: stable;
  border: 1px solid var(--customer-border);
  border-radius: 7px;
  background: var(--customer-field);
  color: var(--customer-text);
  font: 12px/1.55 SFMono-Regular, Consolas, monospace;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

#guide-setups pre[data-docs-template] {
  block-size: clamp(115px, 18svh, 164px);
}

#guide-setups .docs-command-card--compact pre[data-docs-template] {
  block-size: auto;
  max-block-size: 84px;
}

#guide-setups .docs-command-heading > .docs-copy-button {
  min-height: 34px;
}

#guide-examples .docs-api-basics article {
  container-type: inline-size;
}

#guide-examples .docs-api-basics pre[data-docs-template] {
  block-size: calc(3lh + 22px);
}

@container (max-width: 420px) {
  #guide-examples .docs-api-basics pre[data-docs-template] {
    block-size: calc(4lh + 22px);
  }
}

@container (max-width: 370px) {
  #guide-examples .docs-api-basics pre[data-docs-template] {
    block-size: calc(6lh + 22px);
  }
}

#models .media-preview-heading .docs-os-switch {
  margin-top: 4px;
}

#models .media-preview-heading .docs-os-switch button {
  width: auto;
  min-height: 36px;
}

@media (max-width: 760px) {
  .docs-os-switch button,
  #models .media-preview-heading .docs-os-switch button,
  .docs-picker-group button,
  .docs-picker-search {
    min-height: 44px;
  }
  div.docs-picker-search {
    padding-block: 13px;
  }
}

@container (max-width: 840px) {
  #guides .docs-api-protocols .docs-examples {
    grid-template-columns: minmax(0, 1fr);
  }
  #guides .docs-api-protocols .docs-example-title {
    min-height: 0;
  }
}

@container (max-width: 580px) {
  #guides .docs-connection-facts,
  #guides .docs-api-basics .docs-examples {
    grid-template-columns: minmax(0, 1fr);
  }
  .docs-guide-toolbar .docs-control {
    max-width: none;
    flex-basis: 100%;
  }
  .docs-setup-tools {
    flex-basis: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  .docs-setup-tools .docs-os-switch {
    grid-column: 1 / -1;
  }
  #guides .docs-section {
    scroll-margin-top: 84px;
  }
  .docs-command-heading {
    gap: 4px 10px;
  }
}
