:root {
  --brand: #1456f0;
  --brand-dark: #0f3fa7;
  --text: #1f2329;
  --muted: #646a73;
  --line: #dee0e3;
  --bg: #ffffff;
  --panel: #f5f6f7;
  --code-panel: #f7f8fa;
  --code-panel-text: #1f2329;
  --code: #1f2329;
  --sidebar: #ffffff;
  --font-sans: "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-size-title: 20px;
  --font-size-body: 15px;
  --font-weight-title: 600;
  --font-weight-primary: 500;
  --font-weight-secondary: 400;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  height: 100%;
  scroll-padding-top: 76px;
}

html.lx-app-booting .shell {
  visibility: hidden;
}

html.lx-access-pending .topbar,
html.lx-access-pending .shell {
  visibility: hidden;
}

body {
  height: 100%;
  overflow: hidden;
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family: var(--font-sans);
  font-size: var(--font-size-body);
  font-weight: var(--font-weight-secondary);
  line-height: 1.65;
}

button,
input,
select,
textarea {
  font-family: var(--font-sans);
}

a {
  color: var(--brand);
  text-decoration: none;
}

a:hover {
  color: var(--brand-dark);
}

.topbar {
  position: relative;
  top: 0;
  z-index: 20;
  height: 64px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 20px;
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 232px;
  min-width: 232px;
  color: var(--text);
  font-weight: 700;
}

.brand img {
  height: 28px;
  width: auto;
}

.sidebar-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--text);
  cursor: pointer;
}

.sidebar-toggle[aria-pressed="true"] {
  border-color: #bfdbfe;
  color: var(--brand);
  background: #eff6ff;
}

.search-box {
  position: relative;
  width: min(560px, 48vw);
  height: 38px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 4px 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: #fff;
}

.search-box input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  color: var(--text);
  font: inherit;
}

.search-box button {
  flex: 0 0 auto;
  height: 30px;
  border: 1px solid #dbe7f6;
  border-radius: 6px;
  padding: 0 12px;
  color: #374151;
  background: #f8fafc;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.search-box button:hover {
  border-color: var(--brand);
  color: var(--brand);
  background: #eff6ff;
}

.shell {
  display: grid;
  grid-template-columns: clamp(280px, 18vw, 300px) minmax(0, 1fr);
  height: calc(100vh - 64px);
  min-height: 0;
  overflow: hidden;
}

body.sidebar-collapsed .shell {
  grid-template-columns: 0 minmax(0, 1fr);
}

.sidebar {
  position: relative;
  top: auto;
  height: 100%;
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  contain: layout paint;
  will-change: scroll-position;
  background: var(--sidebar);
  border-right: 1px solid var(--line);
  padding: 20px 16px 32px;
}

body.sidebar-collapsed .sidebar {
  visibility: hidden;
  overflow: hidden;
  padding: 0;
  border-right: 0;
}

.sidebar-content {
  display: block;
}

.sidebar-group-header {
  --sidebar-indent: 0px;
  margin: 2px 0 2px var(--sidebar-indent);
}

.sidebar-group-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  min-height: 34px;
  border: 0;
  border-radius: 6px;
  padding: 7px 10px;
  color: #111827;
  background: transparent;
  font: inherit;
  font-size: 14px;
  line-height: 1.4;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}

.sidebar-group-toggle:hover {
  color: var(--brand);
  background: #eef6ff;
}

.sidebar-group-title {
  min-width: 0;
  flex: 1 1 auto;
}

.sidebar-group-arrow {
  display: block;
  width: 8px;
  height: 8px;
  flex: 0 0 8px;
  margin-right: 3px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(-45deg);
  transition: transform 0.16s ease;
}

.sidebar-group-toggle[aria-expanded="true"] .sidebar-group-arrow {
  transform: rotate(45deg);
}

.sidebar-group-header.depth-0 {
  margin-top: 14px;
}

.sidebar-group-header.depth-1 {
  --sidebar-indent: 16px;
}

.sidebar-group-header.depth-2 {
  --sidebar-indent: 32px;
}

.sidebar-group-header.depth-3 {
  --sidebar-indent: 48px;
}

.sidebar-group-header.depth-4 {
  --sidebar-indent: 64px;
}

.sidebar-group-header.depth-0 .sidebar-group-toggle {
  font-size: 14px;
}

.sidebar-group-header.depth-1 .sidebar-group-toggle,
.sidebar-group-header.depth-2 .sidebar-group-toggle,
.sidebar-group-header.depth-3 .sidebar-group-toggle {
  font-weight: 700;
}

.sidebar-group {
  --sidebar-link-indent: 18px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.sidebar-group.depth-1 {
  --sidebar-link-indent: 34px;
}

.sidebar-group.depth-2 {
  --sidebar-link-indent: 50px;
}

.sidebar-group.depth-3 {
  --sidebar-link-indent: 66px;
}

.sidebar-group.depth-4 {
  --sidebar-link-indent: 82px;
}

.sidebar-group .sidebar-group {
  margin-left: 0;
  padding-left: 0;
  border-left: 0;
}

.sidebar-link {
  display: block;
  margin: 1px 0 1px var(--sidebar-link-indent);
  padding: 7px 12px;
  border-radius: 6px;
  color: #4b5563;
  font-size: 14px;
  line-height: 1.45;
}

.sidebar-link:hover {
  background: #eef6ff;
  color: var(--brand);
}

.sidebar-link.is-active {
  color: var(--brand);
  background: #e8f3ff;
  font-weight: 700;
}

.sidebar-link.is-missing {
  color: #9ca3af;
}

.content {
  width: 100%;
  height: 100%;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto;
  gap: 32px;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  contain: layout paint;
  will-change: scroll-position;
  scrollbar-gutter: stable;
  scrollbar-width: thin;
  scrollbar-color: #c9cdd4 transparent;
  padding: 0 0 0 36px;
}

.content.has-aside {
  grid-template-columns: minmax(0, 1fr) minmax(420px, 480px);
  align-items: start;
}

.content.has-aside .doc-content {
  width: 100%;
  max-width: none;
  justify-self: stretch;
}

.doc-content {
  width: 100%;
  min-width: 0;
  max-width: none;
  align-self: start;
  height: auto;
  min-height: calc(100vh - 64px);
  overflow: visible;
  contain: layout paint;
}

.content::-webkit-scrollbar {
  width: 3px;
  height: 3px;
}

.content::-webkit-scrollbar-track {
  background: transparent;
}

.content::-webkit-scrollbar-thumb {
  border-radius: 3px;
  background: #c9cdd4;
}

.content::-webkit-scrollbar-thumb:hover {
  background: #8f959e;
}

.doc-content-inner {
  width: 100%;
  max-width: 1000px;
  min-width: 0;
  margin: 0 auto;
  padding: 32px 16px 80px 0;
}

.doc-content h1 {
  margin: 0 0 20px;
  color: #1f2329;
  font-size: 32px;
  line-height: 1.28;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.doc-content h2 {
  margin: 36px 0 14px;
  color: #1f2329;
  font-size: 24px;
  line-height: 1.3;
  letter-spacing: 0;
}

.doc-content h3 {
  margin: 22px 0 10px;
  color: #1f2329;
  font-size: 18px;
  line-height: 1.35;
}

.lead {
  margin-top: -8px;
  color: #4b5563;
  font-size: 13px;
}

.muted,
.schema-note {
  color: var(--muted);
}

.endpoint-line {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin: 18px 0 10px;
  padding: 12px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.endpoint-line code {
  min-width: 0;
  overflow-wrap: anywhere;
}

.endpoint-debug-button {
  flex: 0 0 auto;
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: auto;
  border: 1px solid var(--brand);
  border-radius: 8px;
  padding: 0 13px;
  color: #fff;
  background: var(--brand);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
}

.endpoint-debug-button:hover {
  border-color: var(--brand-dark);
  background: var(--brand-dark);
}

.endpoint-debug-button:disabled,
.endpoint-debug-button:disabled:hover {
  border-color: #dee0e3;
  color: #8f959e;
  background: #f5f6f7;
  cursor: not-allowed;
}

.endpoint-debug-button:focus-visible {
  outline: 2px solid #8fb1ff;
  outline-offset: 2px;
}

.method-badge,
.status-code {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 8px;
  border-radius: 5px;
  font-size: 12px;
  font-weight: 800;
  color: #fff;
}

.method-get {
  background: #0d9488;
}

.method-post {
  background: #2563eb;
}

.method-put,
.method-patch {
  background: #b45309;
}

.method-delete {
  background: #dc2626;
}

.method-default,
.status-code {
  background: #475569;
}

.status-code.status-success {
  background: #2b8a5a;
}

.status-code.status-client-error {
  background: #d46b08;
}

.status-code.status-server-error {
  background: #d83931;
}

code {
  padding: 2px 5px;
  border-radius: 5px;
  color: #0f172a;
  background: #eef2f7;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 0.92em;
}

.code-block {
  overflow: auto;
  margin: 12px 0;
  padding: 14px;
  border-radius: 8px;
  color: #dbeafe;
  background: var(--code);
  font-size: 13px;
  line-height: 1.55;
}

.code-block code {
  padding: 0;
  color: inherit;
  background: transparent;
}

/* Match the JSON example treatment used by the Mintlify site. */
.doc-content .code-block {
  position: relative;
  padding: 20px 24px;
  border: 1px solid #d1d5db;
  border-radius: 12px;
  color: #1f2937;
  background: #fff;
}

.doc-content .code-block.lx-json-block {
  max-width: 100%;
  max-height: 280px;
  padding: 16px 0;
  background: #f6f8fa;
  overscroll-behavior-x: contain;
  overscroll-behavior-y: auto;
  -webkit-overflow-scrolling: touch;
}

.lx-json-shell {
  position: relative;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  margin: 12px 0;
  border: 1px solid #dfe1e5;
  border-radius: 8px;
  background: #f6f8fa;
}

.doc-content .lx-json-shell .code-block.lx-json-block {
  margin: 0;
  border: 0;
  border-radius: 0;
}

.lx-json-copy {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 32px;
  padding: 0 10px;
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  background: rgb(255 255 255 / 96%);
  color: #4b5563;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
  box-shadow: 0 2px 8px rgb(0 0 0 / 8%);
  cursor: pointer;
}

.lx-json-copy:hover {
  border-color: #d1d5db;
  background: #fff;
  color: #111827;
}

.lx-json-copy svg {
  width: 14px;
  height: 14px;
  flex: none;
}

.doc-content .lx-json-block .line {
  display: flex;
  min-height: 24px;
  line-height: 24px;
}

.doc-content .lx-json-block .line[hidden] {
  display: none;
}

.doc-content .lx-json-block code {
  display: block;
  min-width: max-content;
}

.doc-content .lx-json-block .line-number {
  position: sticky;
  left: 0;
  z-index: 1;
  display: inline-flex;
  width: 68px;
  flex: 0 0 68px;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  padding-right: 7px;
  border-right: 1px solid #dee0e3;
  color: #8f959e;
  background: #f6f8fa;
  font-variant-numeric: tabular-nums;
  user-select: none;
}

.doc-content .lx-json-block .line-number-value {
  width: 30px;
  flex: 0 0 30px;
  text-align: right;
}

.json-fold-toggle,
.json-fold-spacer {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
}

.json-fold-toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 0;
  border: 0;
  border-radius: 4px;
  padding: 0;
  color: #646a73;
  background: transparent;
  cursor: pointer;
}

.json-fold-toggle:hover {
  color: #1456f0;
  background: #e8f0ff;
}

.json-fold-toggle:focus-visible {
  outline: 2px solid #8fb1ff;
  outline-offset: 1px;
}

.json-fold-toggle span {
  width: 7px;
  height: 7px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  transition: transform 0.14s ease;
}

.json-fold-toggle[aria-expanded="false"] span {
  transform: translateX(-2px) rotate(-45deg);
}

.doc-content .lx-json-block .line-code {
  display: block;
  min-width: 0;
  padding-right: 112px;
  padding-left: 16px;
  white-space: pre;
}

.doc-content .lx-json-block .line.is-collapsed .line-code::after {
  content: "  …";
  color: #8f959e;
  font-weight: 600;
}

.doc-content .lx-json-key {
  color: #0969da;
}

.doc-content .lx-json-string {
  color: #0a784d;
}

.doc-content .lx-json-number,
.doc-content .lx-json-boolean {
  color: #8250df;
}

.doc-content .lx-json-null {
  color: #cf222e;
}

.doc-section {
  margin-top: 32px;
}

.table-wrap {
  width: 100%;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
}

table {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
  background: #fff;
}

th,
td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th {
  color: #374151;
  background: #f8fafc;
  font-size: 12px;
  font-weight: 800;
}

td {
  color: #374151;
  transition: background-color 0.14s ease, box-shadow 0.14s ease;
}

tbody tr:hover td,
tbody tr:focus-within td {
  background: #f2f5ff;
}

tbody tr:hover td:first-child,
tbody tr:focus-within td:first-child {
  box-shadow: inset 3px 0 0 var(--brand);
}

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

.required {
  color: #dc2626;
  font-weight: 700;
}

.optional {
  color: #64748b;
}

.schema-list {
  width: 100%;
  min-width: 0;
  border-top: 1px solid var(--line);
}

.schema-field {
  min-width: 0;
  border-bottom: 1px solid var(--line);
  padding: 22px 0;
}

.schema-field:last-child {
  border-bottom: 0;
}

.schema-field-main {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.schema-field-head {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
}

.schema-name {
  padding: 0;
  color: var(--text);
  background: transparent;
  font-weight: 800;
}

.schema-type,
.schema-required,
.schema-optional,
.schema-location {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  border-radius: 5px;
  padding: 1px 6px;
  font-size: 12px;
  line-height: 1.4;
  font-weight: 700;
}

.schema-type {
  color: #6b7280;
  background: #f3f4f6;
}

.schema-required {
  color: #d83931;
  background: #fff1f0;
}

.schema-optional,
.schema-location {
  color: #64748b;
  background: #f8fafc;
}

.schema-description {
  color: #646a73;
  font-size: 13px;
  line-height: 1.75;
  font-weight: 400;
}

.schema-description p {
  margin: 0;
}

.schema-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.schema-badges code {
  color: #374151;
  background: #f8fafc;
  font-size: 12px;
}

.schema-children {
  margin-top: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.schema-children summary {
  display: flex;
  align-items: center;
  min-height: 42px;
  padding: 0 14px;
  border-bottom: 1px solid var(--line);
  color: #64748b;
  font-size: 13px;
  cursor: pointer;
  user-select: none;
}

.schema-children:not([open]) summary {
  border-bottom: 0;
}

.schema-children:not([open]) summary span {
  font-size: 0;
}

.schema-children:not([open]) summary span::after {
  content: attr(data-closed-label);
  font-size: 13px;
}

.schema-child-list {
  padding: 0 18px;
}

.schema-child-list .schema-field {
  padding: 20px 0;
}

.content-type {
  display: inline-flex;
  float: right;
  margin: -38px 0 10px;
  padding: 4px 8px;
  border-radius: 5px;
  background: transparent;
  color: #6b7280;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 12px;
  font-weight: 500;
}

.response-block {
  margin: 12px 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.response-block summary {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 12px 14px;
  cursor: pointer;
  font-weight: 700;
  list-style: none;
  user-select: none;
  transition: background-color 0.16s ease;
}

.response-block summary::-webkit-details-marker {
  display: none;
}

.response-block summary::after {
  width: 8px;
  height: 8px;
  margin-left: auto;
  border-right: 2px solid #646a73;
  border-bottom: 2px solid #646a73;
  content: "";
  flex: 0 0 auto;
  transform: rotate(45deg);
  transition: transform 0.16s ease;
}

.response-block:not([open]) summary::after {
  transform: rotate(-45deg);
}

.response-block summary:hover {
  background: #f7f8fa;
}

.response-block summary:focus-visible {
  outline: 2px solid #8fb1ff;
  outline-offset: -2px;
  border-radius: 8px;
}

.response-block[open] summary {
  border-bottom: 1px solid var(--line);
}

.response-block .content-type-block {
  padding: 0 14px 16px;
}

.request-section > .content-type-block {
  margin: 12px 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 14px 8px;
  background: #fff;
}

.request-section > .content-type-block > .schema-list,
.response-block .content-type-block > .schema-list {
  border-top: 0;
}

.request-section > h2 {
  color: #1f2329;
  font-family: var(--font-sans);
  font-weight: var(--font-weight-title);
}

.api-description {
  margin: 18px 0 0;
  color: #4e5969;
  font-family: var(--font-sans);
  font-size: 13px;
}

.api-description > :first-child {
  margin-top: 0;
}

.api-description > :last-child {
  margin-bottom: 0;
}

.doc-card-grid {
  display: grid;
  gap: 12px;
  margin: 18px 0;
}

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

.doc-card-grid.cols-3,
.doc-card-grid.cols-4 {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.doc-card {
  display: grid;
  gap: 6px;
  min-height: 92px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  background: #fff;
}

.doc-card:hover {
  border-color: #b9dcff;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

.doc-card-icon {
  color: var(--brand);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.doc-card span:last-child {
  color: var(--muted);
  font-size: 13px;
}

.playground-panel {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
}

.playground-header {
  padding: 16px 16px 4px;
}

.playground-header h2 {
  margin: 0 0 6px;
  font-size: 18px;
}

.playground-header p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.api-playground {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  width: 100%;
  min-width: 0;
  padding: 12px 16px 16px;
}

.api-playground > * {
  min-width: 0;
}

.playground-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.playground-check {
  display: inline-flex !important;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 6px !important;
  min-width: 0;
  color: #111827 !important;
}

.playground-check input {
  width: 14px;
  height: 14px;
}

.api-playground .playground-options button {
  width: auto;
  height: 30px;
  padding: 0 10px;
  border: 1px solid var(--line);
  color: #374151;
  background: #fff;
  font-size: 12px;
  font-weight: 700;
}

.api-playground .playground-options button:hover {
  border-color: var(--brand);
  color: var(--brand);
  background: #eff6ff;
}

.playground-message {
  padding: 8px 10px;
  border: 1px solid #fde68a;
  border-radius: 6px;
  color: #92400e;
  background: #fffbeb;
  font-size: 12px;
  line-height: 1.45;
}

.api-playground label {
  display: grid;
  gap: 5px;
  color: #374151;
  font-size: 12px;
  font-weight: 700;
}

.api-playground textarea {
  width: 100%;
  min-height: 78px;
  resize: vertical;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 8px;
  color: #111827;
  background: var(--code-panel);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 12px;
  line-height: 1.5;
}

.api-playground button {
  height: 36px;
  border: 0;
  border-radius: 6px;
  color: #fff;
  background: var(--brand);
  font-weight: 800;
  cursor: pointer;
}

.api-playground button:hover {
  background: var(--brand-dark);
}

.playground-subtitle {
  margin-bottom: -4px;
  color: #374151;
  font-size: 12px;
  font-weight: 800;
}

.curl-details {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
}

.curl-details summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 34px;
  padding: 0 10px;
  color: #374151;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  user-select: none;
}

.curl-details summary::after {
  content: "+";
  color: #64748b;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}

.curl-details[open] summary {
  border-bottom: 1px solid var(--line);
}

.curl-details[open] summary::after {
  content: "-";
}

.curl-details .curl-preview {
  border: 0;
  border-radius: 0 0 6px 6px;
}

.curl-preview,
.playground-result {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: 120px;
  max-height: 320px;
  overflow: auto;
  margin: 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--code-panel-text);
  background: var(--code-panel);
  font-size: 12px;
  line-height: 1.55;
  white-space: pre;
}

.api-playground .body-json-field textarea {
  min-height: 156px;
}

.curl-preview {
  min-height: 84px;
}

.credential-panel {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 50;
  width: min(300px, calc(100vw - 32px));
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 18px 40px rgba(15, 23, 42, .16);
}

.credential-panel.is-collapsed {
  right: 8px;
  bottom: 8px;
  width: 34px;
  border-radius: 999px;
}

.credential-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  border: 0;
  padding: 10px 12px;
  color: #fff;
  background: var(--brand);
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.credential-panel.is-collapsed .credential-header {
  justify-content: center;
  width: 34px;
  height: 34px;
  padding: 0;
}

.credential-panel.is-collapsed .credential-title {
  display: none;
}

.credential-body {
  display: grid;
  gap: 10px;
  padding: 12px;
}

.credential-body label {
  display: grid;
  gap: 5px;
  color: #374151;
  font-size: 12px;
  font-weight: 800;
}

.credential-body input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 7px 8px;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 12px;
}

.credential-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.credential-actions button {
  height: 32px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: #374151;
  background: #f8fafc;
  font-weight: 800;
  cursor: pointer;
}

.credential-actions button:first-child {
  border-color: var(--brand);
  color: #fff;
  background: var(--brand);
}

.credential-status {
  min-height: 16px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
  word-break: break-word;
}

.credential-status[data-tone="ok"] {
  color: #15803d;
}

.credential-status[data-tone="error"] {
  color: #dc2626;
}

/* Fixed three-pane API workspace */
.playground-panel[data-enhanced="true"] {
  position: sticky;
  top: 0;
  align-self: start;
  height: calc(100vh - 64px);
  max-height: calc(100vh - 64px);
  min-height: 0;
  display: flex;
  flex-direction: column;
  border-color: #dfe5ec;
  border-radius: 12px 12px 0 0;
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.05);
}

.playground-toolbar {
  flex: 0 0 auto;
  display: grid;
  gap: 14px;
  padding: 18px 18px 14px;
  background: #fff;
}

.playground-toolbar-title {
  display: flex;
  align-items: center;
  gap: 10px;
}

.playground-toolbar-mark {
  width: 4px;
  height: 30px;
  border-radius: 99px;
  background: var(--brand);
}

.playground-toolbar-title h2 {
  margin: 0;
  color: #111827;
  font-size: 18px;
  line-height: 1.3;
}

.playground-toolbar-title p {
  margin: 2px 0 0;
  color: #94a3b8;
  font-size: 12px;
}

.playground-app-switch {
  width: 100%;
  min-width: 0;
  min-height: 50px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  border: 1px solid #d8e0e9;
  border-radius: 10px;
  padding: 8px 11px;
  color: #172033;
  background: #fff;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.playground-app-switch:hover {
  border-color: #9ec9ff;
  box-shadow: 0 0 0 3px rgba(22, 119, 255, 0.08);
}

.playground-app-icon {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  color: #fff;
  background: linear-gradient(145deg, #4f9bff, #1667d9);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.playground-app-copy {
  min-width: 0;
  display: grid;
  gap: 1px;
}

.playground-app-copy strong {
  font-size: 13px;
  line-height: 1.4;
}

.playground-app-id-value {
  overflow: hidden;
  color: #64748b;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 11px;
  line-height: 1.4;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.playground-app-id-value.is-empty {
  color: #94a3b8;
  font-family: inherit;
}

.playground-app-switch svg {
  width: 18px;
  height: 18px;
  color: #94a3b8;
}

.playground-tabs {
  flex: 0 0 auto;
  display: flex;
  gap: 22px;
  min-height: 48px;
  padding: 0 18px;
  border-top: 1px solid #eef2f7;
  border-bottom: 1px solid #dfe5ec;
  background: #fff;
}

.playground-tabs button {
  position: relative;
  border: 0;
  padding: 0 2px;
  color: #64748b;
  background: transparent;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.playground-tabs button[aria-selected="true"] {
  color: #172033;
}

.playground-tabs button[aria-selected="true"]::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 3px;
  border-radius: 3px 3px 0 0;
  background: var(--brand);
}

.api-playground.lx-playground-shell {
  flex: 1 1 auto;
  min-height: 0;
  display: block;
  overflow: hidden;
  padding: 0;
}

.lx-playground-shell .playground-tab-panel {
  width: 100%;
  height: 100%;
  min-height: 0;
}

.lx-playground-shell .playground-console-panel {
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  contain: layout paint;
  will-change: scroll-position;
  scrollbar-gutter: stable;
  padding: 18px;
}

.lx-playground-shell .playground-console-panel > * + * {
  margin-top: 14px;
}

.lx-playground-shell .playground-inline-submit {
  display: none;
}

.lx-playground-shell .playground-options {
  min-height: 38px;
  padding-bottom: 12px;
  border-bottom: 1px solid #eef2f7;
}

.lx-playground-shell .playground-message {
  margin-top: 12px;
}

.playground-request-headers {
  display: grid;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid #eef2f7;
}

.playground-request-headers[hidden],
.playground-headers-json[hidden] {
  display: none;
}

.playground-request-heading {
  position: relative;
  padding-left: 10px;
  color: #1f2329;
  font-size: 14px;
  font-weight: 600;
  line-height: 22px;
}

.playground-request-heading::before {
  content: "";
  position: absolute;
  top: 3px;
  bottom: 3px;
  left: 0;
  width: 3px;
  border-radius: 99px;
  background: var(--brand);
}

.playground-token-field {
  display: grid;
  gap: 8px;
  color: #1f2329;
  font-size: 13px;
  font-weight: 600;
}

.playground-token-control {
  min-width: 0;
  height: 40px;
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr);
  align-items: stretch;
  overflow: hidden;
  border: 1px solid #c9cdd4;
  border-radius: 8px;
  background: #fff;
}

.playground-token-control:focus-within {
  border-color: var(--brand);
  box-shadow: 0 0 0 2px rgb(20 86 240 / 10%);
}

.playground-token-prefix {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-right: 1px solid #c9cdd4;
  color: #4e5969;
  background: #f5f6f7;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 12px;
  font-weight: 500;
}

.lx-playground-shell .playground-token-control .playground-token-input {
  width: 100%;
  min-width: 0;
  height: 38px;
  border: 0;
  border-radius: 0;
  padding: 0 12px;
  color: #1f2329;
  background: #fff;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 12px;
  font-weight: 400;
  outline: 0;
}

.playground-token-input::placeholder {
  color: #8f959e;
}

.lx-playground-shell .api-playground textarea,
.lx-playground-shell textarea {
  border-color: #dfe5ec;
  border-radius: 8px;
  background: #fbfcfe;
}

.lx-playground-shell .body-json-field textarea {
  min-height: 220px;
}

.api-json-editor .CodeMirror,
.api-response-code-view {
  width: 100%;
  border: 1px solid #dfe1e5;
  border-radius: 8px;
  color: #1f2329;
  background: #f6f8fa;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 13px;
  font-weight: 400;
  line-height: 24px;
  box-shadow: none;
}

.api-json-code-editor-body {
  height: 240px;
}

.api-json-code-editor-headers {
  height: 150px;
}

.api-response-code-view {
  height: 260px;
}

.api-json-editor .CodeMirror-lines,
.api-response-code-view .CodeMirror-lines {
  padding: 10px 0;
}

.api-code-editor-shell,
.api-response-code-editor {
  position: relative;
  min-width: 0;
}

.api-response-code-editor {
  min-height: 260px;
}

.api-response-code-editor .CodeMirror[hidden],
.api-response-code-editor .api-code-copy[hidden],
.api-response-empty[hidden] {
  display: none;
}

.api-response-empty {
  min-height: 260px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  border: 1px solid #dfe1e5;
  border-radius: 8px;
  background: #f6f8fa;
  color: #646a73;
  text-align: center;
}

.api-response-empty p {
  margin: 0;
  font-size: 14px;
  line-height: 22px;
}

.api-response-empty-art {
  position: relative;
  width: 150px;
  height: 94px;
}

.api-response-empty-loop {
  position: absolute;
  top: 22px;
  left: 34px;
  width: 84px;
  height: 42px;
  border: 3px solid #0f3fa7;
  border-right-color: transparent;
  border-radius: 50%;
  transform: rotate(22deg);
}

.api-response-empty-sheet {
  position: absolute;
  top: 7px;
  left: 43px;
  width: 70px;
  height: 54px;
  border: 1px solid #c9cdd4;
  border-left: 4px solid #1456f0;
  background: #e5e7eb;
  transform: rotate(28deg) skewX(-8deg);
}

.api-response-empty-sheet::after {
  content: "";
  position: absolute;
  right: -7px;
  bottom: -7px;
  width: 54px;
  height: 38px;
  border: 1px solid #d3d6db;
  background: #d7d9dd;
  transform: skewX(8deg);
}

.api-response-empty-sheet i {
  position: absolute;
  z-index: 1;
  top: 12px;
  left: 12px;
  width: 34px;
  height: 2px;
  background: #8f959e;
  box-shadow: 0 10px 0 #b1b5bb, 0 20px 0 #b1b5bb;
}

.api-response-empty-base {
  position: absolute;
  right: 31px;
  bottom: 4px;
  width: 48px;
  height: 22px;
  border: 4px solid #1456f0;
  border-top-color: #13c2c2;
  border-radius: 50%;
  background: #fff;
}

.api-response-empty-spark {
  position: absolute;
  bottom: 17px;
  left: 27px;
  width: 18px;
  height: 2px;
  background: #0f3fa7;
  transform-origin: right center;
}

.api-response-empty-spark.spark-one {
  transform: rotate(-18deg);
}

.api-response-empty-spark.spark-two {
  bottom: 7px;
  left: 39px;
  width: 13px;
  transform: rotate(-62deg);
}

.api-response-empty-spark.spark-three {
  bottom: 3px;
  left: 55px;
  width: 11px;
  transform: rotate(-78deg);
}

.api-code-editor-shell .CodeMirror-code,
.api-response-code-editor .CodeMirror-code {
  padding-right: 84px;
}

.api-playground .api-code-copy {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 5;
  display: inline-flex;
  width: auto;
  height: 32px;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px solid #dfe1e5;
  border-radius: 8px;
  padding: 0 10px;
  color: #4e5969;
  background: rgb(255 255 255 / 96%);
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
  box-shadow: none;
  opacity: 0;
  transform: translateY(-2px);
  transition: opacity 0.16s ease, transform 0.16s ease, border-color 0.16s ease, color 0.16s ease, background-color 0.16s ease;
}

.api-code-editor-shell:hover .api-code-copy,
.api-code-editor-shell:focus-within .api-code-copy,
.api-response-code-editor:hover .api-code-copy,
.api-response-code-editor:focus-within .api-code-copy,
.api-playground .api-code-copy:focus-visible {
  opacity: 1;
  transform: translateY(0);
}

.api-playground .api-code-copy:hover {
  border-color: #8fb1ff;
  color: var(--brand);
  background: #fff;
}

.api-code-copy svg {
  width: 14px;
  height: 14px;
  flex: 0 0 14px;
}

@media (hover: none) {
  .api-playground .api-code-copy {
    opacity: 1;
    transform: none;
  }
}

.api-json-editor .CodeMirror pre.CodeMirror-line,
.api-json-editor .CodeMirror pre.CodeMirror-line-like,
.api-response-code-view pre.CodeMirror-line,
.api-response-code-view pre.CodeMirror-line-like {
  padding: 0 16px;
  line-height: 24px;
}

.api-json-editor .CodeMirror-gutters,
.api-response-code-view .CodeMirror-gutters {
  border-right: 1px solid #dee0e3;
  background: #f6f8fa;
}

.api-json-editor .CodeMirror-linenumbers,
.api-response-code-view .CodeMirror-linenumbers {
  width: 44px !important;
}

.api-json-editor .CodeMirror-linenumber,
.api-response-code-view .CodeMirror-linenumber {
  width: 30px !important;
  padding: 0 7px !important;
  color: #8f959e;
  font-weight: 400;
  font-variant-numeric: tabular-nums;
}

.api-json-editor .CodeMirror-foldgutter,
.api-response-code-view .CodeMirror-foldgutter {
  width: 24px !important;
}

.api-json-editor .CodeMirror-foldgutter-open,
.api-json-editor .CodeMirror-foldgutter-folded,
.api-response-code-view .CodeMirror-foldgutter-open,
.api-response-code-view .CodeMirror-foldgutter-folded {
  color: #646a73;
  font-size: 0;
  cursor: pointer;
}

.api-json-editor .CodeMirror-foldgutter-open::after,
.api-json-editor .CodeMirror-foldgutter-folded::after,
.api-response-code-view .CodeMirror-foldgutter-open::after,
.api-response-code-view .CodeMirror-foldgutter-folded::after {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
}

.api-json-editor .CodeMirror-foldgutter-open::after,
.api-response-code-view .CodeMirror-foldgutter-open::after {
  transform: translateY(-2px) rotate(45deg);
}

.api-json-editor .CodeMirror-foldgutter-folded::after,
.api-response-code-view .CodeMirror-foldgutter-folded::after {
  transform: translateX(-2px) rotate(-45deg);
}

.api-json-editor .CodeMirror-foldgutter-open:hover,
.api-json-editor .CodeMirror-foldgutter-folded:hover,
.api-response-code-view .CodeMirror-foldgutter-open:hover,
.api-response-code-view .CodeMirror-foldgutter-folded:hover {
  color: var(--brand);
}

.api-json-editor .CodeMirror-focused {
  border-color: #8fb1ff;
  box-shadow: 0 0 0 2px rgb(20 86 240 / 10%);
}

.api-json-editor .CodeMirror-scroll,
.api-response-code-view .CodeMirror-scroll {
  overscroll-behavior: contain;
}

.api-json-editor .cm-property,
.api-response-code-view .cm-property {
  color: #0969da;
  font-weight: 400;
}

.api-json-editor .cm-string,
.api-response-code-view .cm-string {
  color: #0a784d;
  font-weight: 400;
}

.api-json-editor .cm-string.cm-property,
.api-response-code-view .cm-string.cm-property {
  color: #0969da;
  font-weight: 400;
}

.api-json-editor .cm-number,
.api-json-editor .cm-atom,
.api-response-code-view .cm-number,
.api-response-code-view .cm-atom {
  color: #7c3aed;
}

.lx-playground-shell .playground-response {
  margin-top: 20px;
}

.lx-playground-shell .playground-subtitle {
  position: relative;
  margin: 0 0 10px;
  padding-left: 10px;
  color: #172033;
  font-size: 14px;
}

.lx-playground-shell .playground-subtitle::before {
  content: "";
  position: absolute;
  top: 3px;
  bottom: 3px;
  left: 0;
  width: 3px;
  border-radius: 99px;
  background: var(--brand);
}

.lx-playground-shell .playground-result {
  min-height: 180px;
  max-height: none;
  border-radius: 8px;
  background: #f8fafc;
}

.lx-playground-shell .playground-example-panel {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 18px;
  background: #fff;
}

.example-code-toolbar {
  flex: 0 0 auto;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  border: 1px solid #dfe5ec;
  border-bottom: 0;
  border-radius: 9px 9px 0 0;
  padding: 0 8px;
  background: #fbfcfe;
}

.example-language-tabs {
  display: flex;
  min-width: 0;
  flex: 1 1 auto;
  align-self: stretch;
  overflow-x: auto;
  scrollbar-width: none;
}

.example-language-tabs::-webkit-scrollbar {
  display: none;
}

.api-playground .example-language-tabs button {
  position: relative;
  width: auto;
  min-width: 54px;
  height: 100%;
  flex: 0 0 auto;
  border: 0;
  border-radius: 0;
  padding: 0 10px;
  color: #646a73;
  background: transparent;
  font-size: 12px;
}

.api-playground .example-language-tabs button[aria-selected="true"] {
  color: var(--brand);
}

.api-playground .example-language-tabs button[aria-selected="true"]::after {
  content: "";
  position: absolute;
  right: 10px;
  bottom: 0;
  left: 10px;
  height: 2px;
  background: var(--brand);
}

.api-playground .example-code-toolbar .example-copy-button {
  width: auto;
  height: 28px;
  flex: 0 0 auto;
  border: 1px solid #dfe5ec;
  border-radius: 6px;
  padding: 0 9px;
  color: #374151;
  background: #fff;
  font-size: 12px;
}

.api-playground .example-code-toolbar .example-copy-button:hover {
  border-color: #9ec9ff;
  color: var(--brand);
  background: #eff6ff;
}

.lx-playground-shell .playground-example-panel .curl-preview {
  flex: 1 1 auto;
  min-height: 0;
  max-height: none;
  border-color: #dfe5ec;
  border-radius: 0 0 9px 9px;
  padding: 12px 0;
  background: #fff;
  line-height: 24px;
}

.playground-example-panel .curl-preview code {
  display: block;
  min-width: max-content;
  border-radius: 0;
  padding: 0;
  color: inherit;
  background: transparent;
  font-size: 12px;
}

.example-code-line {
  display: flex;
  min-height: 24px;
  line-height: 24px;
}

.example-code-line[hidden] {
  display: none;
}

.example-code-gutter {
  position: sticky;
  left: 0;
  z-index: 1;
  display: inline-flex;
  width: 62px;
  flex: 0 0 62px;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  padding-right: 7px;
  border-right: 1px solid #dee0e3;
  color: #8f959e;
  background: #fff;
  font-variant-numeric: tabular-nums;
  user-select: none;
}

.example-code-line-number {
  width: 28px;
  flex: 0 0 28px;
  text-align: right;
}

.code-fold-toggle,
.code-fold-spacer {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
}

.api-playground .code-fold-toggle {
  position: relative;
  display: inline-flex;
  width: 16px;
  height: 16px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 4px;
  padding: 0;
  color: #646a73;
  background: transparent;
  font-weight: 400;
  cursor: pointer;
}

.api-playground .code-fold-toggle:hover {
  color: var(--brand);
  background: #e8f0ff;
}

.api-playground .code-fold-toggle:focus-visible {
  outline: 2px solid #8fb1ff;
  outline-offset: 1px;
}

.code-fold-toggle span {
  width: 7px;
  height: 7px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
}

.code-fold-toggle[aria-expanded="false"] span {
  transform: translateX(-2px) rotate(-45deg);
}

.example-code-content {
  display: block;
  min-width: 0;
  padding-right: 18px;
  padding-left: 14px;
  white-space: pre;
}

.example-code-line.is-collapsed .example-code-content::after {
  content: "  …";
  color: #8f959e;
  font-weight: 600;
}

.code-token-keyword {
  color: #1456f0;
  font-weight: 500;
}

.code-token-string {
  color: #b42318;
}

.code-token-comment {
  color: #16821b;
}

.code-token-number,
.code-token-literal {
  color: #7c3aed;
}

.code-token-variable {
  color: #0969da;
}

.playground-footer {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 64px;
  border-top: 1px solid #dfe5ec;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.98);
}

.playground-footer button {
  min-height: 38px;
  border-radius: 8px;
  padding: 0 15px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.playground-run {
  border: 1px solid var(--brand);
  color: #fff;
  background: var(--brand);
}

.playground-run:hover {
  background: var(--brand-dark);
}

.playground-secondary {
  border: 1px solid #cfd7e1;
  color: #374151;
  background: #fff;
}

.playground-secondary:hover {
  border-color: #9ec9ff;
  color: var(--brand);
}

/* APP ID / APP Secret modal */
.doc-access-modal {
  position: fixed;
  inset: 0;
  z-index: 110;
  display: grid;
  place-items: center;
  padding: 20px;
}

.doc-access-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(31, 35, 41, 0.42);
}

.doc-access-dialog {
  position: relative;
  width: min(420px, calc(100vw - 40px));
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 32px rgba(31, 35, 41, 0.14);
}

.doc-access-dialog h2 {
  margin: 0 0 16px;
  font-size: 20px;
  line-height: 1.4;
}

.doc-access-dialog label {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 14px;
}

.doc-access-dialog input {
  width: 100%;
  height: 42px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
}

.doc-access-dialog input:focus-visible,
.doc-access-dialog button:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

.doc-access-error {
  min-height: 24px;
  margin: 8px 0 12px;
  color: #c42b32;
  font-size: 13px;
}

.doc-access-dialog button {
  display: block;
  min-width: 88px;
  height: 38px;
  margin-left: auto;
  padding: 0 16px;
  border: 1px solid var(--brand);
  border-radius: 8px;
  color: #fff;
  background: var(--brand);
  font: inherit;
  cursor: pointer;
}

.doc-access-dialog button:disabled {
  opacity: 0.65;
  cursor: wait;
}

.credential-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 20px;
}

.credential-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: rgba(15, 23, 42, 0.46);
  backdrop-filter: blur(2px);
  cursor: default;
}

.credential-dialog {
  position: relative;
  width: min(480px, calc(100vw - 40px));
  overflow: hidden;
  border: 1px solid #dfe5ec;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 28px 80px rgba(15, 23, 42, 0.24);
}

.credential-dialog-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 24px 12px;
}

.credential-kicker {
  color: var(--brand);
  font-size: 12px;
  font-weight: 800;
}

.credential-dialog-header h2 {
  margin: 3px 0 0;
  color: #111827;
  font-size: 21px;
  line-height: 1.35;
}

.credential-close {
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 8px;
  color: #64748b;
  background: #f8fafc;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.credential-close:hover {
  color: #172033;
  background: #eef2f7;
}

.credential-hint {
  margin: 0;
  padding: 0 24px 4px;
  color: #64748b;
  font-size: 13px;
  line-height: 1.6;
}

.credential-dialog .credential-body {
  gap: 14px;
  padding: 16px 24px 22px;
}

.credential-dialog .credential-body label {
  gap: 7px;
  color: #374151;
  font-size: 13px;
}

.credential-dialog .credential-body input:not([type="hidden"]) {
  height: 42px;
  border-color: #cfd7e1;
  border-radius: 8px;
  padding: 0 11px;
  background: #fff;
}

.credential-dialog .credential-body input:focus {
  border-color: var(--brand);
  outline: 3px solid rgba(22, 119, 255, 0.1);
}

.credential-dialog .credential-actions {
  display: flex;
  grid-template-columns: none;
  justify-content: flex-end;
  gap: 9px;
  border-top: 1px solid #eef2f7;
  padding: 14px 24px;
  background: #fbfcfe;
}

.credential-dialog .credential-actions button {
  height: 38px;
  border: 1px solid #cfd7e1;
  border-radius: 8px;
  padding: 0 14px;
  color: #374151;
  background: #fff;
  font-weight: 800;
}

.credential-dialog .credential-actions #lx-cred-save {
  border-color: var(--brand);
  color: #fff;
  background: var(--brand);
}

.credential-dialog .credential-actions #lx-cred-save:disabled {
  border-color: #a8c1fb;
  color: #fff;
  background: #a8c1fb;
  cursor: wait;
}

.credential-dialog .credential-status {
  min-height: 0;
  font-size: 12px;
}

/* Feishu-inspired documentation workspace refinements. */
.sidebar-toggle,
.search-box,
.search-box button,
.sidebar-group-toggle,
.sidebar-link,
.endpoint-line,
.doc-content .code-block,
.lx-json-copy,
.table-wrap,
.schema-children,
.response-block,
.doc-card,
.warning-box,
.search-results,
#lx-copy-trigger,
#lx-copy-options,
#lx-copy-options button,
.playground-app-switch,
.playground-app-icon,
.api-playground textarea,
.curl-preview,
.playground-result,
.example-code-toolbar,
.playground-footer button,
.credential-dialog,
.credential-close,
.credential-dialog .credential-body input:not([type="hidden"]),
.credential-dialog .credential-actions button,
blockquote {
  border-radius: 8px;
}

.topbar {
  box-shadow: none;
}

.search-box {
  width: min(560px, 52vw);
  height: 40px;
  border-color: #d0d3d6;
  box-shadow: 0 0 0 1px rgba(31, 35, 41, 0.01);
}

.search-box:focus-within {
  border-color: var(--brand);
  box-shadow: 0 0 0 2px rgba(20, 86, 240, 0.12);
}

.search-box button,
.sidebar-toggle,
#lx-lang-switch {
  font-weight: 600;
  box-shadow: none;
}

.sidebar-group-toggle {
  min-height: 36px;
  color: #1f2329;
  font-weight: 600;
}

.sidebar-group-toggle:hover,
.sidebar-link:hover {
  color: var(--brand);
  background: #f2f4f7;
}

.sidebar-link {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  min-height: 34px;
  padding: 6px 10px;
  color: #4e5969;
  font-size: 14px;
}

.sidebar-link-title {
  min-width: 0;
  flex: 1 1 auto;
  overflow-wrap: anywhere;
}

.sidebar-method {
  flex: 0 0 auto;
  min-width: 38px;
  height: auto;
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  margin-left: auto;
  margin-top: 1px;
  border: 0;
  border-radius: 0;
  padding: 0;
  font-size: 10px;
  line-height: 20px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-align: right;
}

.sidebar-method.method-get {
  color: #0b8f7f;
  background: transparent;
}

.sidebar-method.method-post {
  color: #1456f0;
  background: transparent;
}

.sidebar-method.method-put,
.sidebar-method.method-patch {
  color: #b85f00;
  background: transparent;
}

.sidebar-method.method-delete {
  color: #d83931;
  background: transparent;
}

.sidebar-link.is-active {
  color: var(--brand);
  background: #eef3ff;
  font-weight: 600;
}

.doc-content {
  color: #4e5969;
  font-size: 13px;
}

.doc-content p {
  line-height: 1.78;
}

.lead {
  color: #646a73;
}

.endpoint-line {
  border-color: #dfe1e5;
  background: #f7f8fa;
}

.method-badge,
.status-code,
.schema-type,
.schema-required,
.schema-optional,
.schema-location,
.schema-name,
th {
  font-weight: 600;
}

.doc-content .code-block {
  border-color: #dfe1e5;
  background: #f7f8fa;
  box-shadow: none;
}

.lx-json-copy {
  border-color: #dfe1e5;
  box-shadow: none;
}

.schema-field {
  padding: 20px 0;
}

.schema-description,
td {
  color: #4e5969;
}

th {
  color: #1f2329;
  background: #f5f6f7;
}

blockquote {
  color: #3e4c66;
  background: #f2f5ff;
}

.lx-copy-title-row {
  align-items: center;
}

#lx-copy-trigger,
#lx-copy-options {
  border-color: #dfe1e5;
  box-shadow: none;
}

.content.has-doc-rail-only,
.content.is-playground-closed {
  grid-template-columns: minmax(0, 1000px) 260px;
  justify-content: center;
  gap: 32px;
  padding-right: 36px;
}

.content.has-doc-rail-only .doc-content,
.content.is-playground-closed .doc-content {
  width: 100%;
  max-width: none;
  justify-self: stretch;
}

.content.is-playground-closed #lx-copy-trigger {
  width: auto;
  padding: 0 12px;
}

.content.is-playground-closed #lx-copy-trigger .lx-copy-label,
.content.is-playground-closed #lx-copy-trigger .lx-copy-chevron {
  display: inline-flex;
}

.doc-rail {
  position: sticky;
  top: 0;
  align-self: start;
  height: calc(100vh - 64px);
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  contain: layout paint;
  will-change: scroll-position;
  border-left: 0;
  padding: 36px 0 40px;
  color: #646a73;
  background: #fff;
}

.doc-rail-inner {
  width: 100%;
  max-width: 220px;
}

.doc-rail h2 {
  margin: 0 0 18px;
  color: #1f2329;
  font-size: 16px;
  line-height: 1.5;
  font-weight: 600;
}

.doc-rail-nav {
  position: relative;
  display: grid;
  gap: 2px;
  border-left: 2px solid #e5e6e8;
  padding-left: 14px;
}

.doc-rail-link {
  position: relative;
  display: block;
  padding: 7px 4px;
  overflow: hidden;
  color: #646a73;
  font-size: 14px;
  line-height: 1.45;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.doc-rail-link::before {
  content: "";
  position: absolute;
  top: 7px;
  bottom: 7px;
  left: -16px;
  width: 2px;
  background: transparent;
}

.doc-rail-link.depth-h3 {
  padding-left: 18px;
}

.doc-rail-link:hover,
.doc-rail-link.is-active {
  color: var(--brand);
}

.doc-rail-link.is-active::before {
  background: var(--brand);
}

.doc-rail-empty {
  display: block;
  padding: 6px 4px;
  color: #8f959e;
  font-size: 13px;
}

.playground-panel[data-enhanced="true"] {
  border-top: 0;
  border-right: 0;
  border-bottom: 0;
  border-radius: 0;
  box-shadow: none;
}

.playground-toolbar {
  gap: 12px;
  border-bottom: 0;
  padding: 18px 18px 14px;
  background: #fff;
}

.playground-toolbar-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.playground-toolbar-title {
  min-width: 0;
}

.playground-toolbar-title h2 {
  font-size: 17px;
  font-weight: 600;
}

.playground-toolbar-mark {
  height: 28px;
  background: var(--brand);
}

.playground-close {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 8px;
  color: #646a73;
  background: transparent;
  font-size: 25px;
  line-height: 1;
  cursor: pointer;
}

.playground-close:hover {
  color: #1f2329;
  background: #f2f3f5;
}

.playground-close:focus-visible,
.playground-tabs button:focus-visible {
  outline: 2px solid #8fb1ff;
  outline-offset: 2px;
}

.playground-app-switch {
  min-height: 46px;
  border-color: #dfe1e5;
  box-shadow: none;
}

.playground-app-switch:hover {
  border-color: #8fb1ff;
  box-shadow: 0 0 0 2px rgba(20, 86, 240, 0.1);
}

.playground-app-icon {
  background: var(--brand);
}

.playground-tabs {
  min-height: 46px;
  border-top: 0;
  border-bottom-color: var(--line);
}

.playground-tabs button,
.playground-footer button,
.api-playground button,
.credential-actions button {
  font-weight: 600;
}

.playground-tabs button[aria-selected="true"]::after {
  background: var(--brand);
}

.lx-playground-shell .playground-console-panel,
.lx-playground-shell .playground-example-panel {
  padding: 18px;
}

.lx-playground-shell .body-json-field textarea {
  min-height: 240px;
}

.api-playground textarea,
.curl-preview,
.playground-result {
  border-color: #dfe1e5;
  background: #f7f8fa;
}

.example-code-toolbar {
  border-color: #dfe1e5;
  border-bottom-right-radius: 0;
  border-bottom-left-radius: 0;
  background: #f7f8fa;
}

.lx-playground-shell .playground-example-panel .curl-preview {
  border-color: #dfe1e5;
  border-top-left-radius: 0;
  border-top-right-radius: 0;
  background: #fff;
}

.playground-footer {
  min-height: 64px;
  border-top-color: var(--line);
  background: #fff;
}

.credential-dialog {
  box-shadow: 0 18px 48px rgba(31, 35, 41, 0.22);
}

#lx-lang-switch {
  position: fixed;
  top: 12px;
  right: 16px;
  z-index: 51;
  height: 30px;
  min-width: 44px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: #374151;
  background: #fff;
  font-weight: 800;
  box-shadow: 0 8px 18px rgba(15, 23, 42, .08);
  cursor: pointer;
}

.warning-box {
  padding: 14px;
  border: 1px solid #fed7aa;
  border-radius: 8px;
  color: #9a3412;
  background: #fff7ed;
}

.search-results {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 40;
  width: 100%;
  max-height: min(560px, calc(100vh - 96px));
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.18);
}

.search-result {
  display: block;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  color: var(--text);
}

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

.search-result strong {
  display: block;
}

.search-result span {
  color: var(--muted);
  font-size: 12px;
}

/* Document copy-format menu. */
.lx-copy-title-row {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin: 0 0 20px;
}

.lx-copy-title-row h1 {
  min-width: 0;
  margin: 0;
}

#lx-copy-menu {
  position: relative;
  z-index: 30;
  flex: 0 0 auto;
}

#lx-copy-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 36px;
  padding: 0 12px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  background: #fff;
  color: #4b5563;
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  box-shadow: 0 1px 2px rgb(0 0 0 / 5%);
  cursor: pointer;
}

#lx-copy-trigger:hover {
  border-color: #d1d5db;
  background: #f9fafb;
  color: #111827;
}

#lx-copy-trigger .lx-copy-icon {
  width: 16px;
  height: 16px;
  flex: none;
}

#lx-copy-trigger .lx-copy-chevron {
  width: 14px;
  height: 14px;
  margin-left: -2px;
  color: #9ca3af;
  flex: none;
  transition: transform 0.15s ease;
}

#lx-copy-trigger[aria-expanded="true"] .lx-copy-chevron {
  transform: rotate(180deg);
}

#lx-copy-options {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  width: 160px;
  padding: 6px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 10px 25px rgb(0 0 0 / 12%);
}

#lx-copy-options button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 9px 10px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #374151;
  font-size: 13px;
  text-align: left;
  cursor: pointer;
}

#lx-copy-options button:hover {
  background: #f3f4f6;
}

#lx-copy-options button span {
  color: #9ca3af;
  font-size: 12px;
  font-weight: 400;
}

.content.has-aside .lx-copy-title-row {
  gap: 12px;
}

.content.has-aside #lx-copy-trigger {
  width: 36px;
  padding: 0;
}

.content.has-aside #lx-copy-trigger .lx-copy-label,
.content.has-aside #lx-copy-trigger .lx-copy-chevron {
  display: none;
}

blockquote {
  margin: 18px 0;
  padding: 12px 16px;
  border: 0;
  background: #e8f3ff;
  color: #3e4c66;
}

blockquote p {
  margin: 0;
}

blockquote p + p {
  margin-top: 4px;
}

blockquote:has(+ blockquote) {
  margin-bottom: 0;
  padding-bottom: 6px;
  border-bottom-right-radius: 0;
  border-bottom-left-radius: 0;
}

blockquote + blockquote {
  margin-top: 0;
  padding-top: 6px;
  border-top-left-radius: 0;
  border-top-right-radius: 0;
}

img {
  max-width: 100%;
}

/* Final surface contract: 8px controls, quiet borders, no decorative cards. */
.lx-copy-title-row {
  align-items: center;
}

#lx-copy-trigger,
#lx-copy-options,
#lx-copy-options button,
#lx-lang-switch,
.search-results,
.doc-content .code-block,
.lx-json-copy,
blockquote {
  border-radius: 8px;
}

#lx-copy-trigger,
#lx-copy-options,
.search-results,
.lx-json-copy {
  border-color: #dfe1e5;
  box-shadow: none;
}

blockquote {
  color: #3e4c66;
  background: #e8f3ff;
}

/* Compact two-line schema rows. */
.schema-field,
.schema-child-list .schema-field {
  padding: 0;
}

.schema-field-main {
  display: grid;
  height: 65px;
  min-height: 65px;
  align-content: center;
  gap: 4px;
  overflow: hidden;
  padding: 7px 0;
}

.schema-field-main.is-editable {
  grid-template-areas:
    "head editor"
    "meta editor";
  grid-template-columns: minmax(0, 1fr) minmax(140px, 180px);
  column-gap: 16px;
}

.schema-field-main.is-editable .schema-field-head {
  grid-area: head;
}

.schema-field-main.is-editable .schema-field-meta {
  grid-area: meta;
}

.schema-inline-editor {
  grid-area: editor;
  align-self: center;
  min-width: 0;
}

.schema-inline-editor input,
.schema-inline-editor select {
  width: 100%;
  height: 34px;
  border: 1px solid #dfe1e5;
  border-radius: 8px;
  padding: 6px 10px;
  color: #1f2329;
  background: #fff;
  font: inherit;
  font-size: 13px;
}

.schema-inline-editor input::placeholder {
  color: #a8abb2;
}

.schema-inline-editor input:focus,
.schema-inline-editor select:focus {
  border-color: #8fb1ff;
  outline: 2px solid rgb(20 86 240 / 10%);
}

.schema-inline-editor .is-invalid {
  border-color: #d83931;
  background: #fff7f6;
}

.schema-field-head {
  flex-wrap: nowrap;
  gap: 6px;
  overflow: hidden;
  font-size: 13px;
}

.schema-field-head > code,
.schema-field-head > span,
.schema-field-head .schema-badges code {
  font-size: 13px;
}

.schema-name {
  max-width: 38%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.schema-type,
.schema-required,
.schema-optional,
.schema-location {
  flex: 0 0 auto;
  min-height: 18px;
  padding: 0 5px;
}

.schema-badges {
  min-width: 0;
  flex: 1 1 auto;
  flex-wrap: nowrap;
  gap: 6px;
  overflow: hidden;
}

.schema-badges code {
  overflow: hidden;
  padding: 0;
  color: #646a73;
  background: transparent;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.schema-field-meta {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 9px;
  overflow: hidden;
}

.schema-description {
  min-width: 0;
  overflow: hidden;
  color: #646a73;
  line-height: 1.45;
  font-weight: 400;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.schema-description.is-empty {
  display: none;
}

.schema-description p {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.schema-meta-divider {
  width: 1px;
  height: 14px;
  flex: 0 0 1px;
  background: #dee0e3;
}

.schema-example {
  min-width: 0;
  overflow: hidden;
  color: #8f959e;
  font-size: 12px;
  line-height: 1.45;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.schema-example > span {
  color: #646a73;
  font-weight: 400;
}

.schema-children {
  margin-top: 0;
  margin-bottom: 8px;
}

@media (max-width: 980px) {
  .content {
    display: block;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 64px;
  }

  .content.has-aside {
    display: block;
  }

  .doc-content {
    height: auto;
    overflow: visible;
  }

  .doc-rail {
    display: none;
  }

  .playground-close {
    display: none;
  }

  .playground-panel[data-enhanced="true"] {
    position: static;
    height: min(760px, calc(100vh - 100px));
    max-height: none;
    max-width: 880px;
    margin-top: 40px;
    border: 1px solid var(--line);
    border-radius: 8px;
  }
}

@media (max-width: 640px) {
  .schema-field-main.is-editable {
    grid-template-areas:
      "head"
      "meta"
      "editor";
    grid-template-columns: minmax(0, 1fr);
    height: auto;
    min-height: 108px;
    row-gap: 6px;
  }
}

@media (max-width: 860px) {
  .topbar {
    padding: 0 12px;
  }

  .brand {
    flex: 0 0 auto;
    min-width: 0;
  }

  .brand img {
    height: 26px;
  }

  .sidebar-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .search-box {
    width: 100%;
  }

  .search-box button {
    padding: 0 10px;
  }

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

  body.sidebar-collapsed .shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: fixed;
    top: 64px;
    bottom: 0;
    left: 0;
    z-index: 30;
    width: min(320px, 90vw);
    height: auto;
    transform: translateX(-105%);
    transition: transform 0.2s ease;
    box-shadow: 16px 0 30px rgba(15, 23, 42, 0.12);
  }

  body.sidebar-collapsed .sidebar {
    visibility: visible;
    overflow: auto;
    padding: 18px 14px 28px;
    border-right: 1px solid var(--line);
  }

  body.sidebar-open .sidebar {
    transform: translateX(0);
  }

  .content {
    padding: 28px 18px 64px;
  }

  .doc-content h1 {
    font-size: 28px;
  }

  .doc-card-grid.cols-2 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .lx-copy-title-row {
    display: grid;
    gap: 10px;
  }

  #lx-copy-menu {
    justify-self: end;
  }

  .playground-toolbar,
  .lx-playground-shell .playground-console-panel,
  .lx-playground-shell .playground-example-panel {
    padding-right: 14px;
    padding-left: 14px;
  }

  .playground-footer {
    flex-wrap: wrap;
  }

  .credential-dialog .credential-actions {
    flex-wrap: wrap;
  }
}

/* Unified typography: titles, primary labels, and secondary reading text. */
.doc-content h1,
.doc-content h2,
.doc-content h3,
.doc-content h4,
.doc-content h5,
.doc-content h6,
.playground-header h2,
.playground-toolbar-title h2,
.credential-dialog-header h2,
.doc-rail h2 {
  color: var(--text);
  font-family: var(--font-sans);
  font-size: var(--font-size-title);
  font-weight: var(--font-weight-title);
  line-height: 1.4;
}

.doc-content,
.doc-content p,
.doc-content li,
.doc-content td,
.doc-content th,
.sidebar-group-toggle,
.sidebar-link,
.doc-rail-link,
.playground-header p,
.playground-toolbar-title p,
.playground-tabs button,
.lx-playground-shell .playground-subtitle,
.credential-kicker,
.credential-hint,
.credential-status,
.schema-field-head,
.schema-field-head > code,
.schema-field-head > span,
.schema-field-head .schema-badges code,
.schema-description,
.schema-example,
.method-badge,
.status-code,
.lx-json-copy,
.api-playground .api-code-copy,
.search-box button {
  font-size: var(--font-size-body);
}

.sidebar-group-header.depth-0 .sidebar-group-toggle {
  font-size: var(--font-size-body);
}

.schema-field-head,
.schema-field-head > code,
.schema-field-head > span,
.schema-field-head .schema-badges code {
  font-family: var(--font-sans);
}

.doc-content code {
  font-size: var(--font-size-body);
}

.schema-name,
.schema-type,
.schema-required,
.schema-location,
.response-block summary,
.sidebar-group-toggle,
.sidebar-link.is-active,
.playground-tabs button[aria-selected="true"],
th,
button {
  font-weight: var(--font-weight-primary);
}

.doc-content,
.doc-content p,
.doc-content li,
.doc-content td,
.lead,
.api-description,
.schema-description,
.schema-example,
.muted,
.schema-note,
.doc-rail-link,
.playground-header p,
.playground-toolbar-title p,
.credential-hint,
.credential-status {
  font-weight: var(--font-weight-secondary);
}

.doc-content strong,
.doc-content b {
  font-weight: var(--font-weight-title);
}

/* Imported source descriptions must remain readable, including multiline constraints. */
.source-schema .schema-field-main {
  height: auto;
  min-height: 65px;
  overflow: visible;
}
.source-schema .schema-field-meta {
  align-items: flex-start;
  flex-wrap: wrap;
  overflow: visible;
}
.source-schema .schema-description,
.source-schema .schema-description p,
.source-schema .schema-example {
  overflow: visible;
  white-space: normal;
  overflow-wrap: anywhere;
}

/* Preserve document hierarchy independently from workspace headings. */
.doc-content h1 { font-size: 32px; }
.doc-content h2 { font-size: 24px; }
.doc-content h3 { font-size: 18px; }
.doc-content h4, .doc-content h5, .doc-content h6 { font-size: 16px; }
.doc-content { line-height: 1.75; }

/* Keep version and language controls together without covering search. */
.topbar .search-box {
  min-width: 0;
  flex-shrink: 1;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  flex: 0 0 auto;
}

.topbar-actions #lx-lang-switch,
.old-version-link {
  position: static;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  background: #fff;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: none;
}

.topbar-actions #lx-lang-switch:hover,
.old-version-link:hover {
  color: var(--brand);
  border-color: var(--brand);
  background: #f0f5ff;
}

.topbar-actions #lx-lang-switch:focus-visible,
.old-version-link:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

@media (max-width: 640px) {
  .topbar {
    gap: 8px;
  }

  .topbar .brand img {
    width: 90px;
    height: auto;
  }

  .topbar .search-box {
    flex: 1 1 auto;
  }

  .topbar .search-box button {
    display: none;
  }

  .topbar-actions #lx-lang-switch,
  .old-version-link {
    padding: 0 8px;
  }
}
