/* API Reference Styles */
.api-endpoint {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0 24px;
  padding: 16px 20px;
  background: var(--color-bg-code);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  flex-wrap: wrap;
}

.api-method {
  display: inline-block;
  padding: 4px 12px;
  background: #22c55e;
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  border-radius: 4px;
  letter-spacing: 0.5px;
  font-family: "SF Mono", "Fira Code", monospace;
}

.api-method.post { background: #22c55e; }
.api-method.get { background: #3b82f6; }
.api-method.put { background: #f59e0b; }
.api-method.delete { background: #ef4444; }

.api-url {
  font-family: "SF Mono", "Fira Code", "JetBrains Mono", Consolas, monospace;
  font-size: 14px;
  color: var(--color-text);
  word-break: break-all;
}

.api-debug-btn {
  margin-left: auto;
  padding: 6px 16px;
  background: var(--color-primary);
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: opacity 0.15s;
}

.api-debug-btn:hover {
  opacity: 0.85;
  text-decoration: none;
  color: #fff;
}

.param-section {
  margin: 20px 0;
}

.param-section-title {
  font-size: 16px;
  font-weight: 600;
  margin: 16px 0 8px;
  padding: 8px 0;
  border-bottom: 1px solid var(--color-border);
  color: var(--color-text);
}

.param-required {
  color: #ef4444;
  font-size: 12px;
  margin-left: 4px;
}

.param-optional {
  color: var(--color-text-secondary);
  font-size: 12px;
  margin-left: 4px;
}

.param-type {
  color: var(--color-primary-dark);
  font-size: 12px;
  font-family: "SF Mono", monospace;
}

.param-enum {
  display: inline-block;
  background: var(--color-active);
  padding: 1px 6px;
  border-radius: 3px;
  font-size: 12px;
  color: var(--color-primary);
  margin: 2px 2px;
}

/* === Apifox-style Parameter Cards === */
.param-card {
  border: 1px solid var(--color-border);
  border-radius: 12px;
  margin: 16px 0;
  overflow: hidden;
}

.param-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  border-bottom: 1px solid var(--color-border);
}

.param-card-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--color-text);
}

.param-card-content-type {
  display: inline-block;
  font-size: 12px;
  color: var(--color-text-secondary);
  background: var(--color-inline-code-bg);
  padding: 2px 8px;
  border-radius: 8px;
  border: 1px solid var(--color-border);
  margin-left: 8px;
  vertical-align: middle;
}

.param-card-body {
  padding: 4px 0;
}

.param-row {
  padding: 10px 16px;
}

.param-row + .param-row {
  border-top: 1px solid var(--color-border-light);
}

.param-row-header {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 22px;
}

.param-name {
  font-size: 12px;
  font-weight: 600;
  color: #1890ff;
  padding: 0 8px;
  line-height: 22px;
  white-space: nowrap;
  font-family: "SF Mono", "Fira Code", monospace;
  cursor: pointer;
}

.param-name:hover {
  text-decoration: underline;
}

.param-type-label {
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text-secondary);
  line-height: 22px;
  white-space: nowrap;
}

.param-type-sub {
  font-size: 13px;
  color: var(--color-text-secondary);
  margin-left: 2px;
}

.param-divider {
  flex: 1;
  height: 0;
  margin: 0 6px;
  border-top: 1px dashed transparent;
  transition: border-color 0.15s;
}

.param-row:hover .param-divider {
  border-top-color: var(--color-border);
}

.param-badge {
  font-size: 12px;
  white-space: nowrap;
  padding: 0 12px;
  line-height: 22px;
}

.param-badge.required {
  color: #f79009;
}

.param-badge.optional {
  color: var(--color-text-secondary);
}

.param-desc {
  font-size: 14px;
  color: var(--color-text-secondary);
  margin-top: 4px;
  padding-left: 8px;
  line-height: 1.6;
}

.param-desc code {
  font-size: 12px;
}

.param-example-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-top: 4px;
  padding-left: 8px;
  font-size: 13px;
}

.param-example-key {
  color: var(--color-text-secondary);
  flex-shrink: 0;
}

.param-example-value {
  color: var(--color-text);
  font-family: "SF Mono", "Fira Code", monospace;
  font-size: 12px;
  word-break: break-all;
}

/* Authorization collapsible section */
.auth-section {
  border: 1px solid var(--color-border);
  border-radius: 12px;
  margin: 16px 0;
  overflow: hidden;
}

.auth-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  cursor: pointer;
  user-select: none;
  transition: background 0.15s;
}

.auth-header:hover {
  background: var(--color-hover);
}

.auth-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  color: var(--color-text-secondary);
  font-size: 10px;
  transition: transform 0.2s;
}

.auth-section.collapsed .auth-arrow {
  transform: rotate(-90deg);
}

.auth-section.collapsed .auth-body {
  display: none;
}

.auth-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--color-text);
}

.auth-body {
  padding: 0 16px 16px;
  font-size: 14px;
  color: var(--color-text-secondary);
  line-height: 1.8;
}

.auth-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  color: #1890ff;
  background: rgba(24,144,255,0.08);
  padding: 0 8px;
  border-radius: 4px;
  line-height: 22px;
  font-family: "SF Mono", "Fira Code", monospace;
}

.auth-example {
  margin-top: 8px;
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}

.auth-example code {
  font-size: 13px;
  padding: 4px 12px;
  background: var(--color-bg-code);
  border-radius: 4px;
  border: 1px solid var(--color-border);
  word-break: break-all;
}

/* Body parameters split layout (schema + example) */
.param-card-body-split {
  display: flex;
  flex-direction: column;
}

@media (min-width: 880px) {
  .param-card-body-split {
    flex-direction: row;
  }
}

.param-schema {
  flex: 3;
  padding: 4px 0;
  min-width: 0;
}

.param-example-panel {
  flex: 2;
  border-top: 1px solid var(--color-border);
  padding: 12px 16px;
  background: var(--color-bg-code);
  min-width: 0;
}

@media (min-width: 880px) {
  .param-example-panel {
    border-top: none;
    border-left: 1px solid var(--color-border);
  }
}

.param-example-panel-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text-secondary);
  margin-bottom: 8px;
}

.param-example-panel pre {
  margin: 0;
  padding: 0;
  border: none;
  background: none;
  font-size: 12px;
  white-space: pre-wrap;
  word-break: break-all;
  color: var(--color-code-text);
  line-height: 1.5;
}

.param-example-panel pre code {
  font-size: 12px;
  color: inherit;
  background: none;
  padding: 0;
  border: none;
}

/* Nested parameter tree lines */
.param-nested {
  margin-left: 16px;
  padding-left: 16px;
  border-left: 1px solid var(--color-border);
}

.param-nested .param-row {
  position: relative;
}

.param-expand-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  margin-right: 2px;
  cursor: pointer;
  color: var(--color-text-secondary);
  font-size: 10px;
  transition: transform 0.2s;
  flex-shrink: 0;
}

.param-expand-btn.collapsed {
  transform: rotate(-90deg);
}

.param-children {
  overflow: hidden;
}

.param-children.collapsed {
  display: none;
}

/* Enum values inline */
.param-enum-list {
  display: inline;
}

.param-enum-val {
  display: inline-block;
  background: var(--color-active);
  padding: 0 6px;
  border-radius: 3px;
  font-size: 12px;
  color: var(--color-primary);
  margin: 2px 2px;
  font-family: "SF Mono", "Fira Code", monospace;
  line-height: 20px;
}

.response-status {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 600;
  margin-right: 8px;
}

.response-status.success { background: #16a34a20; color: #22c55e; }
.response-status.error { background: #ef444420; color: #ef4444; }

/* Debug Panel */
.debug-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.06);
  z-index: 1000;
  display: flex;
  justify-content: flex-end;
}

.debug-panel-sidebar {
  background: var(--color-bg-sidebar);
  border-left: 1px solid var(--color-border);
  width: 520px;
  max-width: 100vw;
  height: 100vh;
  display: flex;
  flex-direction: column;
  box-shadow: -4px 0 20px rgba(0, 0, 0, 0.04);
}

.debug-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid var(--color-border);
}

.debug-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--color-text);
}

.debug-close {
  background: none;
  border: none;
  font-size: 18px;
  cursor: pointer;
  color: var(--color-text-secondary);
  padding: 4px 8px;
  line-height: 1;
  border-radius: 4px;
}

.debug-close:hover { color: var(--color-text); background: var(--color-hover); }

/* URL bar */
.debug-url-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: var(--color-bg-code);
  border-bottom: 1px solid var(--color-border);
}

.debug-method-badge {
  background: #f97316;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 4px;
  text-transform: uppercase;
  flex-shrink: 0;
}

.debug-url-input {
  flex: 1;
  padding: 5px 8px;
  font-size: 13px;
  font-family: monospace;
  border: 1px solid var(--color-border);
  border-radius: 4px;
  background: var(--color-bg);
  color: var(--color-text);
  outline: none;
  min-width: 0;
}

.debug-url-input:focus { border-color: var(--color-primary); }

.debug-send-top {
  background: var(--color-primary);
  color: #fff;
  border: none;
  padding: 6px 18px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  letter-spacing: 2px;
}

.debug-send-top:hover { opacity: 0.85; }
.debug-send-top:disabled { opacity: 0.5; cursor: not-allowed; }

/* Scrollable body */
.debug-body-scroll {
  flex: 1;
  overflow-y: auto;
}

/* Sections */
.debug-section {
  border-bottom: 1px solid var(--color-border);
}

.debug-section-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 10px 16px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--color-text);
  font-size: 13px;
  font-weight: 600;
  text-align: left;
}

.debug-section-toggle:hover { background: var(--color-hover); }

.debug-section-arrow {
  font-size: 10px;
  color: var(--color-text-secondary);
  display: inline-block;
  width: 12px;
  text-align: center;
}

.debug-section-content {
  padding: 0 16px 12px;
}

/* Auth row - simplified, no tabs */
.debug-auth-row {
  display: flex;
  align-items: center;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  overflow: hidden;
}

.debug-auth-prefix {
  padding: 6px 12px;
  font-size: 12px;
  color: var(--color-text-secondary);
  background: var(--color-bg-code);
  border-right: 1px solid var(--color-border);
  white-space: nowrap;
  font-weight: 500;
}

.debug-auth-row input {
  flex: 1;
  padding: 6px 10px;
  font-size: 13px;
  border: none;
  background: var(--color-bg);
  color: var(--color-text);
  outline: none;
  min-width: 0;
}

.debug-eye-btn {
  padding: 6px 10px;
  background: none;
  border: none;
  border-left: 1px solid var(--color-border);
  cursor: pointer;
  font-size: 14px;
  opacity: 0.5;
}

.debug-eye-btn:hover { opacity: 1; }

/* Headers table - editable */
.debug-headers-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  table-layout: fixed;
}

.debug-headers-table td {
  padding: 3px 4px;
  vertical-align: middle;
}

.debug-headers-table tr { border-bottom: 1px solid var(--color-border-light); }
.debug-headers-table tr:last-child { border-bottom: none; }

.debug-hdr-check {
  width: 30px;
  text-align: center;
}

.debug-hdr-check input[type="checkbox"] {
  width: 14px;
  height: 14px;
  cursor: pointer;
  accent-color: var(--color-primary);
}

.debug-hdr-input {
  width: 100%;
  padding: 4px 6px;
  font-size: 12px;
  border: 1px solid transparent;
  border-radius: 3px;
  background: transparent;
  color: var(--color-text);
  outline: none;
  font-family: monospace;
}

.debug-hdr-input:focus {
  border-color: var(--color-primary);
  background: var(--color-bg);
}

.debug-hdr-input[readonly] {
  color: var(--color-text-secondary);
}

.debug-hdr-input::placeholder {
  color: var(--color-text-secondary);
  opacity: 0.4;
}

.debug-hdr-del { width: 24px; text-align: center; }

.debug-hdr-del-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--color-text-secondary);
  font-size: 14px;
  padding: 2px;
  opacity: 0;
  transition: opacity 0.15s;
  border-radius: 3px;
  line-height: 1;
}

.debug-headers-table tr:hover .debug-hdr-del-btn { opacity: 0.5; }
.debug-hdr-del-btn:hover { opacity: 1 !important; color: #ef4444; }

.debug-hdr-add-row td { padding: 5px 4px; }

/* Body toolbar */
.debug-body-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.debug-example-select {
  padding: 2px 8px;
  font-size: 12px;
  border: 1px solid var(--color-border);
  border-radius: 4px;
  background: var(--color-bg);
  color: var(--color-text);
  cursor: pointer;
  outline: none;
}

.debug-body-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

.debug-body-format-badge {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 4px;
  background: var(--color-bg-code);
  color: var(--color-text-secondary);
  font-weight: 500;
  border: 1px solid var(--color-border);
}

.debug-trash-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--color-text-secondary);
  font-size: 13px;
  padding: 2px 6px;
  border-radius: 3px;
  opacity: 0.5;
}

.debug-trash-btn:hover { opacity: 1; color: #ef4444; }

/* Editor with syntax highlighting */
.debug-editor-wrap {
  position: relative;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  overflow: hidden;
  background: var(--color-bg-code);
}

.debug-highlight-pre {
  position: absolute;
  inset: 0;
  padding: 10px 12px;
  padding-left: 48px;
  font-family: 'SFMono-Regular', Consolas, monospace;
  font-size: 13px;
  line-height: 1.5;
  color: var(--color-text);
  white-space: pre;
  overflow: auto;
  pointer-events: none;
  margin: 0;
}

.debug-editor-wrap textarea {
  position: relative;
  display: block;
  width: 100%;
  padding: 10px 12px;
  padding-left: 48px;
  font-family: 'SFMono-Regular', Consolas, monospace;
  font-size: 13px;
  line-height: 1.5;
  border: none;
  background: transparent;
  color: transparent;
  caret-color: var(--color-text);
  resize: none;
  min-height: 180px;
  outline: none;
  tab-size: 2;
  white-space: pre;
  overflow-wrap: normal;
  overflow-x: auto;
  overflow-y: auto;
  box-sizing: border-box;
}

.debug-editor-wrap textarea::selection { background: rgba(208, 36, 15, 0.3); }

.debug-editor-gutter {
  position: absolute;
  left: 0;
  top: 0;
  width: 40px;
  padding: 10px 6px;
  font-family: 'SFMono-Regular', Consolas, monospace;
  font-size: 13px;
  line-height: 1.5;
  color: var(--color-text-secondary);
  opacity: 0.4;
  text-align: right;
  white-space: pre;
  pointer-events: none;
  user-select: none;
  overflow: hidden;
  z-index: 1;
}

/* JSON syntax highlighting */
.dj-key { color: #7dd3fc; }
.dj-str { color: #fbbf24; }
.dj-num { color: #4ade80; }
.dj-bool { color: #c084fc; }
.dj-key { color: #0369a1; }
.dj-str { color: #c2410c; }
.dj-num { color: #15803d; }
.dj-bool { color: #9a3b25; }

/* Add section buttons (Query, Cookie) */
.debug-add-sections {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
}

.debug-add-btn {
  display: flex;
  align-items: center;
  gap: 4px;
  background: none;
  border: 1px dashed var(--color-border);
  border-radius: 4px;
  padding: 4px 10px;
  font-size: 12px;
  color: var(--color-text-secondary);
  cursor: pointer;
}

.debug-add-btn:hover { border-color: var(--color-primary); color: var(--color-primary); }

/* Result area at bottom */
.debug-result-area {
  border-top: 1px solid var(--color-border);
  background: var(--color-bg-code);
}

.debug-result-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text);
  border-bottom: 1px solid var(--color-border);
  cursor: pointer;
}

.debug-result-header:hover { background: var(--color-hover); }

.debug-result-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 24px;
  color: var(--color-text-secondary);
  font-size: 13px;
  opacity: 0.5;
}

.debug-result-placeholder-icon { font-size: 28px; }

.debug-response-pre {
  padding: 12px 16px;
  font-family: 'SFMono-Regular', Consolas, monospace;
  font-size: 12px;
  line-height: 1.5;
  color: var(--color-text);
  max-height: 300px;
  overflow: auto;
  white-space: pre-wrap;
  word-break: break-all;
  margin: 0;
}

.debug-status-ok { color: #22c55e; font-weight: 600; font-size: 12px; }
.debug-status-err { color: #ef4444; font-weight: 600; font-size: 12px; }

/* Code Language Tabs */
.code-tabs {
  margin: 16px 0;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  overflow: hidden;
}

.code-tabs-header {
  display: flex;
  background: var(--color-bg-code);
  border-bottom: 1px solid var(--color-border);
  overflow-x: auto;
  scrollbar-width: thin;
}

.code-tab {
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 500;
  color: var(--color-text-secondary);
  cursor: pointer;
  border: none;
  background: none;
  white-space: nowrap;
  transition: all 0.15s;
  border-bottom: 2px solid transparent;
}

.code-tab:hover {
  color: var(--color-text);
  background: var(--color-hover);
}

.code-tab.active {
  color: var(--color-primary);
  border-bottom-color: var(--color-primary);
  background: var(--color-active);
}

.code-tabs-content {
  position: relative;
}

.code-tab-panel {
  display: none;
}

.code-tab-panel.active {
  display: block;
}

.code-tab-panel pre {
  margin: 0;
  border: none;
  border-radius: 0;
}


:root, :root[data-theme] {
  --color-bg: #fff;
  --color-bg-sidebar: #f7f9f9;
  --color-bg-code: #f4f6f7;
  --color-text: #17212b;
  --color-text-secondary: #566270;
  --color-text-muted: #73808d;
  --color-border: #e4e9eb;
  --color-border-light: #edf0f1;
  --color-hover: #eaf0ee;
  --color-primary: #008863;
  --color-accent: #00d8a1;
  --color-link: #008863;
  --color-primary-dark: #006b4e;
  --color-active: #e2f5ed;
  --color-inline-code-bg: #edf4f1;
  --color-code-text: #cbded6;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 104px; }
body.docs-redesign { margin: 0; background: #fff; color: #17212b; font-family: Inter, Arial, "PingFang SC", "Microsoft YaHei", sans-serif; font-size: 15px; line-height: 1.65; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { cursor: pointer; }
button, a, summary, input { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid #00a47a; outline-offset: 4px; }
svg { display: block; flex-shrink: 0; }
[hidden] { display: none !important; }
.docs-visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; clip: rect(0,0,0,0); overflow: hidden; white-space: nowrap; }
.docs-skip { position: fixed; top: 8px; left: 16px; padding: 10px 16px; z-index: 150; transform: translateY(-140%); background: #00dda5; color: #07120f; border-radius: 6px; }
.docs-skip:focus { transform: translateY(0); }
.docs-header { position: sticky; top: 0; height: 72px; z-index: 60; background: #07110f; color: #fff; border-bottom: 1px solid #1d2925; }
.docs-header-inner { height: 100%; max-width: 1680px; margin: 0 auto; padding: 0 40px; display: flex; align-items: center; gap: 40px; }
.docs-brand { display: inline-flex; align-items: center; gap: 12px; font-size: 26px; font-weight: 700; letter-spacing: -1px; white-space: nowrap; }
.docs-brand img { object-fit: contain; border-radius: 3px; }
.docs-main-nav { display: flex; gap: 32px; align-items: center; margin: 0 auto; height: 100%; }
.docs-main-nav a { display: flex; align-items: center; height: 100%; position: relative; font-weight: 500; white-space: nowrap; }
.docs-main-nav a:hover, .docs-login:hover { color: #00dda5; }
.docs-main-nav a[aria-current]::after { content: ""; height: 2px; background: #00dda5; position: absolute; bottom: 0; left: 0; right: 0; }
.docs-header-actions { display: flex; align-items: center; gap: 24px; font-size: 14px; white-space: nowrap; }
.docs-language { color: #b8c4bf; font-size: 13px; }
.docs-key { padding: 11px 22px; border-radius: 6px; background: #00dda5; color: #06140f; font-weight: 650; }
.docs-key:hover { background: #45e9bc; }
.docs-mobile-menu { display: none; color: #fff; background: transparent; border: 0; padding: 8px; }
.docs-layout { display: grid; grid-template-columns: 300px minmax(0, 1fr) 250px; max-width: 1680px; margin: 0 auto; align-items: start; }
.docs-sidebar { position: sticky; top: 72px; height: calc(100dvh - 72px); overflow-y: auto; background: #f7f9f9; border-right: 1px solid #e6ebeb; padding: 34px 32px 48px; scrollbar-width: thin; scrollbar-color: #d4ded9 transparent; }
.docs-sidebar-top { display: none; }
.docs-drawer-main-nav { display: none; }
.docs-search-trigger { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 12px; min-height: 44px; border: 1px solid #d7dfe0; border-radius: 8px; color: #71808c; background: #fff; text-align: left; margin-bottom: 28px; font-size: 14px; }
.docs-search-trigger kbd { margin-left: auto; font: inherit; color: #8a959d; font-size: 11px; white-space: nowrap; }
.docs-search-trigger:hover { border-color: #008863; }
.docs-nav-section { margin: 0 0 18px; }
.docs-nav-section summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 4px 10px 8px; color: #17212b; font-size: 15px; font-weight: 650; cursor: pointer; }
.docs-nav-section summary::-webkit-details-marker, .docs-mobile-toc summary::-webkit-details-marker { display: none; }
.docs-nav-section summary svg { color: #87948b; transition: transform 150ms; }
.docs-nav-section[open] > summary svg { transform: rotate(180deg); }
.docs-nav-section .is-nested { margin: 6px 0; }
.docs-nav-section .is-nested > summary { font-weight: 500; color: #566270; font-size: 13px; }
.docs-nav-children { display: grid; gap: 3px; }
.docs-nav-children .docs-nav-children { padding-left: 10px; border-left: 1px solid #dfe7e3; margin-left: 10px; }
.docs-nav-link { position: relative; display: flex; justify-content: space-between; gap: 7px; padding: 9px 12px; min-width: 0; border-radius: 6px; color: #566270; font-size: 14px; line-height: 1.5; overflow-wrap: anywhere; }
.docs-nav-link small { font-size: 9px; line-height: 19px; color: #788b80; }
.docs-nav-link:hover { color: #008863; background: #edf4f0; }
.docs-nav-link.is-active { color: #008863; background: #e2f5ed; font-weight: 600; }
.docs-nav-link.is-active::before { content: ""; width: 2px; border-radius: 3px; background: #00bb8e; position: absolute; left: -5px; top: 8px; bottom: 8px; }
.docs-main { min-width: 0; padding: 32px 44px 0; }
.docs-breadcrumb { display: flex; align-items: center; gap: 10px; color: #77838c; font-size: 13px; line-height: 1.5; margin-bottom: 26px; flex-wrap: wrap; }
.docs-breadcrumb a:hover { color: #008863; }
.docs-breadcrumb [aria-current] { color: #26342e; }
.doc-content { width: 100%; min-width: 0; max-width: 880px; margin: 0 auto; overflow-wrap: anywhere; font-size: 16px; }
.doc-content h1 { margin: 0 0 18px; font-size: clamp(30px, 3vw, 44px); font-weight: 700; letter-spacing: -1.5px; line-height: 1.24; color: #0d151a; }
.doc-content h2 { margin: 32px 0 18px; border-top: 1px solid #e6ebed; padding-top: 28px; font-size: 30px; font-weight: 700; line-height: 1.4; letter-spacing: -.45px; color: #17212b; }
.doc-content h3 { margin: 26px 0 12px; font-size: 19px; font-weight: 650; line-height: 1.5; color: #17212b; }
.doc-content h4 { font-size: 16px; font-weight: 650; }
.doc-content h1, .doc-content h2, .doc-content h3, .doc-content h4 { scroll-margin-top: 104px; }
.doc-content p { margin: 0 0 18px; color: #566270; line-height: 1.85; }
.doc-content h1 + p { color: #3c4953; font-size: 17px; }
.doc-content a { color: #008863; text-underline-offset: 3px; }
.doc-content a:hover { text-decoration: underline; }
.doc-content ul, .doc-content ol { padding-left: 25px; margin: 16px 0 22px; color: #566270; }
.doc-content li { margin: 6px 0; line-height: 1.75; }
.doc-content img { display: block; max-width: 100%; height: auto; border-radius: 8px; margin: 24px 0; }
.doc-content blockquote, .doc-content .info, .doc-content .tip, .doc-content .info-callout, .doc-content .tip-box { padding: 16px 20px; margin: 22px 0; border: 1px solid #def0e8; border-left: 3px solid #00b386; border-radius: 6px; background: #eef9f4; color: #24604d; }
.doc-content blockquote p:last-child { margin-bottom: 0; }
.doc-content .warning { border-left: 3px solid #b98117; background: #fff8e7; color: #866722; padding: 16px 20px; }
.doc-content code { font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace; font-size: .88em; color: #145441; background: #edf4f1; border-radius: 4px; padding: 2px 5px; overflow-wrap: anywhere; }
.doc-content pre { position: relative; margin: 20px 0; padding: 44px 20px 20px; border-radius: 8px; background: #14201e; color: #cbded6; border: 1px solid #21332c; overflow-x: auto; line-height: 1.75; font-size: 13px; max-width: 100%; tab-size: 2; }
.doc-content pre code { background: none; color: inherit; padding: 0; border-radius: 0; font-size: inherit; white-space: pre; overflow-wrap: normal; }
.copy-btn { position: absolute; top: 8px; right: 9px; border: 1px solid #35423d; border-radius: 5px; color: #b6cec2; background: #26352f; padding: 4px 10px; font-size: 11px; }
.copy-btn:hover, .copy-btn.copied { color: #fff; background: #3a5147; }
.doc-content table { width: 100%; border-spacing: 0; border-collapse: separate; border: 1px solid #e1e7e9; border-radius: 7px; overflow: hidden; margin: 20px 0; font-size: 13px; line-height: 1.7; }
.doc-content th, .doc-content td { padding: 12px 14px; text-align: left; vertical-align: top; border-right: 1px solid #e8edef; border-bottom: 1px solid #e8edef; }
.doc-content th { background: #f6f8f8; color: #27342d; font-weight: 600; }
.doc-content th:last-child, .doc-content td:last-child { border-right: 0; }
.doc-content tr:last-child td { border-bottom: 0; }
.doc-table-scroll { overflow-x: auto; max-width: 100%; border-radius: 7px; margin: 20px 0; }
.doc-table-scroll > table { margin: 0; }
.doc-table-wide { min-width: 580px; }
.docs-toc { position: sticky; top: 72px; padding: 38px 26px 30px 20px; max-height: calc(100dvh - 72px); overflow-y: auto; font-size: 13px; }
.docs-toc h2 { margin: 0 0 20px; font-size: 14px; font-weight: 650; color: #17212b; }
.docs-toc nav { border-left: 1px solid #e3e9e6; }
.docs-toc-link { display: block; padding: 6px 0 6px 16px; margin-left: -1px; border-left: 2px solid transparent; color: #6b7781; line-height: 1.6; font-size: 13px; overflow-wrap: anywhere; }
.docs-toc-link:hover, .docs-toc-link.is-active { color: #008863; border-left-color: #00ba8b; }
.docs-toc-link.is-subheading { padding-left: 26px; font-size: 12px; }
.docs-toc-key { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: #008863; padding: 26px 0 0; margin: 26px 0 0; border-top: 1px solid #e3e9e6; font-weight: 500; }
.docs-toc-guides { display: flex; align-items: center; gap: 8px; color: #718078; margin-top: 14px; font-size: 12px; }
.docs-footer { margin: 64px 0 0; border-top: 1px solid #e3e9e6; padding: 28px 0 30px; color: #7b8881; font-size: 12px; }
.docs-footer-brand { color: #17212b; font-size: 19px; font-weight: 650; }
.docs-footer p { margin: 8px 0 14px; }
.docs-footer nav { display: flex; flex-wrap: wrap; gap: 18px; margin-bottom: 20px; }
.docs-footer a:hover { color: #008863; }
.page-nav { display: flex; justify-content: space-between; gap: 18px; margin: 40px 0; padding-top: 24px; border-top: 1px solid #e3e9e6; font-size: 13px; }
.page-nav a { color: #008863; flex: 1; max-width: 48%; overflow-wrap: anywhere; }
.page-nav-next { text-align: right; margin-left: auto; }
.docs-mobile-toc { display: none; }
.docs-search-dialog { border: 1px solid #dbe6e1; border-radius: 12px; padding: 0; width: min(660px, calc(100% - 32px)); max-height: min(720px, calc(100dvh - 60px)); color: #17212b; background: #fff; box-shadow: 0 24px 80px #04180f30; }
.docs-search-dialog::backdrop { background: #07151080; }
.docs-search-input-row { display: flex; align-items: center; gap: 12px; padding: 18px 20px; border-bottom: 1px solid #e3e9e6; }
.docs-search-input-row svg { color: #8a978f; }
.docs-search-input-row input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: #17212b; font-size: 15px; }
.docs-search-input-row button, .docs-sidebar-top button { background: transparent; border: 0; padding: 5px; color: #84958a; }
.docs-search-status { font-size: 12px; color: #7c8a82; margin: 14px 20px 8px; }
.docs-search-results { padding: 0 10px; margin: 0; list-style: none; max-height: min(510px, 65dvh); overflow-y: auto; }
.docs-search-results a { display: block; padding: 14px 12px; border-radius: 7px; }
.docs-search-results a:hover, .docs-search-results a:focus { background: #eef7f2; }
.docs-search-results strong { display: block; color: #17212b; font-size: 14px; font-weight: 600; }
.docs-search-results small { color: #008863; font-size: 11px; }
.docs-search-results p { color: #7c8a82; font-size: 12px; line-height: 1.6; margin: 4px 0 0; overflow-wrap: anywhere; }
.docs-search-hint { border-top: 1px solid #e3e9e6; padding: 12px 20px; font-size: 11px; color: #8a978f; }
@media (min-width: 1700px) { .docs-layout { border-left: 1px solid #e3e9e6; border-right: 1px solid #e3e9e6; } }
@media (max-width: 1200px) { .docs-header-inner { padding-right: 24px; padding-left: 24px; gap: 24px; } .docs-main-nav { gap: 24px; } .docs-header-actions { gap: 18px; } }
@media (max-width: 1200px) { .docs-layout { grid-template-columns: 248px minmax(0, 1fr); } .docs-toc { display: none; } .docs-main { padding: 30px 34px 0; } .docs-mobile-toc { display: block; margin: -8px 0 26px; border: 1px solid #e3e9e6; border-radius: 7px; background: #f9fbfa; } .docs-mobile-toc summary { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px; font-size: 13px; cursor: pointer; list-style: none; } .docs-mobile-toc nav { padding: 0 0 10px; } }
@media (max-width: 860px) { .docs-header-inner { padding: 0 20px; gap: 20px; } .docs-brand { font-size: 22px; gap: 9px; } .docs-brand img { width: 30px; height: 30px; } .docs-main-nav { display: none; } .docs-header-actions { margin-left: auto; gap: 16px; } .docs-layout { grid-template-columns: minmax(0, 1fr); } .docs-mobile-menu { display: block; } .docs-sidebar { position: fixed; z-index: 80; top: 72px; left: 0; bottom: 0; height: calc(100dvh - 72px); width: min(320px, 86vw); transform: translateX(-100%); visibility: hidden; transition: transform 180ms ease; padding-top: 22px; } .docs-sidebar.is-open { transform: translateX(0); visibility: visible; } .docs-sidebar-top { display: flex; align-items: center; justify-content: space-between; font-weight: 600; padding: 0 3px 20px; } .docs-drawer-main-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 0 4px 20px; margin-bottom: 20px; border-bottom: 1px solid #dce6df; color: #52675a; font-size: 13px; } .docs-drawer-backdrop { position: fixed; inset: 72px 0 0; z-index: 70; background: #091a1150; } .docs-main { padding: 26px 24px 0; } .doc-content { font-size: 15px; } }
@media (max-width: 520px) { .docs-header-inner { padding: 0 16px; gap: 10px; } .docs-brand { font-size: 21px; } .docs-brand img { width: 27px; height: 27px; } .docs-header-actions { gap: 7px; } .docs-key { padding: 9px 11px; font-size: 11px; } .docs-login, .docs-language { display: none; } .docs-main { padding: 24px 20px 0; } .docs-breadcrumb { font-size: 11px; gap: 7px; margin-bottom: 22px; } .doc-content { font-size: 15px; } .doc-content h1 { font-size: 30px; letter-spacing: -.8px; } .doc-content h1 + p { font-size: 15px; } .doc-content h2 { font-size: 22px; padding-top: 24px; margin-top: 28px; } .doc-content h3 { font-size: 18px; } .doc-content p, .doc-content li { font-size: 15px; } .doc-content th, .doc-content td { padding: 10px 12px; } .doc-content pre { font-size: 12px; padding-right: 14px; padding-left: 14px; } .docs-footer nav { gap: 10px 18px; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
@media (max-width: 360px) { .docs-brand { font-size: 19px; gap: 6px; } .docs-brand img { width: 25px; height: 25px; } .docs-key { font-size: 10px; padding: 9px; } }
@media print { .docs-header, .docs-sidebar, .docs-toc, .docs-mobile-toc, .docs-footer, .page-nav { display: none; } .docs-layout { display: block; } .docs-main { padding: 0; } .doc-content pre { white-space: pre-wrap; } }

.doc-content .param-card { border:1px solid #e1e8e4; border-radius:8px; background:#fff; overflow:hidden; margin:20px 0; }
.doc-content .param-card-header { background:#f5f8f6; }
.doc-content .param-card-body-split { grid-template-columns:minmax(0,1fr) minmax(0,1fr); }
.doc-content .param-schema, .doc-content .param-example-panel { min-width:0; }
.doc-content .param-example-panel { background:#f8faf9; }
.doc-content .param-example-panel pre { margin:0; border-radius:0; }
.doc-content .param-name, .doc-content .param-desc, .doc-content .param-example-value { overflow-wrap:anywhere; }
.doc-content .param-card-title { color:#27382e; }
.doc-content .api-endpoint { background:#f6faf8; padding:14px 16px; }
.doc-content .api-url { min-width:0; white-space:normal; overflow-wrap:anywhere; }
.doc-content .api-debug-btn { background:#e2f7ed; color:#008863; border-color:#c7e9db; }
.doc-content .code-tabs { border-color:#e1e8e4; background:#fff; }
.doc-content .code-tabs-header, .doc-content .code-tab-list { display:flex; gap:0; overflow-x:auto; white-space:nowrap; background:#f6f9f7; border-bottom:1px solid #e1e8e4; }
.doc-content .code-tab { border:0; border-radius:0; padding:12px 16px; background:transparent; color:#6b7b71; font-size:12px; border-bottom:2px solid transparent; }
.doc-content .code-tab.active { color:#008863; border-bottom-color:#00bc8b; background:#eaf5ef; }
.doc-content .code-tabs-content { padding:0; }
.doc-content .code-tab-panel pre { margin:0; border-radius:0; padding-top:44px; }
.doc-content .tutorial-card { border:1px solid #e1e8e4; border-radius:10px; padding:24px; margin:24px 0; background:#f8fbf9; }
.doc-content .tutorial-card-header { display:flex; gap:12px; align-items:center; }
.doc-content .tutorial-card-title { color:#17212b; font-size:20px; font-weight:650; }
.doc-content .tutorial-card-subtitle, .doc-content .tutorial-intro { color:#566270; }
.doc-content .install-step { display:flex; align-items:flex-start; gap:14px; margin:24px 0; }
.doc-content .step-number { background:#e4f5ec; color:#008863; border-radius:6px; min-width:28px; text-align:center; font-weight:600; }
.doc-content .step-body { flex:1; min-width:0; }
.doc-content .terminal-block { background:#14201e; border:1px solid #21332c; border-radius:8px; overflow:hidden; margin:20px 0; }
.doc-content .terminal-header { color:#a1b8ab; border-bottom:1px solid #2d4338; padding:10px 16px; font-size:12px; }
.doc-content .terminal-block pre { border:0; margin:0; }
.doc-content .terminal-dots { display:none; }
.doc-content .os-tabs { display:flex; gap:8px; margin:20px 0; }
.doc-content .os-tab { border:1px solid #dde7e0; background:#fff; color:#65736a; border-radius:6px; padding:8px 14px; font-size:13px; }
.doc-content .os-tab.active { color:#008863; border-color:#008863; background:#eaf5ef; }
.doc-content .os-panel { display:none; }
.doc-content .os-panel.active { display:block; }
.doc-content .related-links { margin:28px 0; padding:18px 22px; border:1px solid #e1e8e4; border-radius:8px; background:#f8fbf9; }
.debug-overlay { z-index:120; }
.debug-panel-sidebar { width:min(620px,100vw); }
.debug-url-input { min-width:0; }
@media(max-width:760px) { .doc-content .param-card-body-split { grid-template-columns:minmax(0,1fr); display:grid; } .doc-content .param-example-panel { border-left:0; border-top:1px solid #e1e8e4; } .doc-content .param-row-header { flex-wrap:wrap; } .doc-content .param-card { max-width:100%; } .debug-url-bar { flex-wrap:wrap; } .debug-url-input { flex:1; } .debug-body-toolbar { flex-wrap:wrap; } }
