/* 生态文档中心 — 桌面 + 手机 */
:root {
  --doc-bg: #f4f6f8;
  --doc-card: #fff;
  --doc-border: #e5e8ef;
  --doc-text: #2c3340;
  --doc-muted: #6b7280;
  --doc-accent: #0f766e;
  --doc-accent-soft: #e6f4f2;
  --doc-danger: #b42318;
  --doc-code-bg: #1e1e1e;
  --doc-radius: 8px;
  --doc-nav-h: 52px;
  --doc-max: 1100px;
  --doc-side: 220px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body.doc-body {
  margin: 0;
  background: var(--doc-bg);
  color: var(--doc-text);
  font-family: "Microsoft YaHei", "PingFang SC", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  font-size: 15px;
}

a { color: var(--doc-accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.doc-topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--doc-nav-h);
  background: #fff;
  border-bottom: 1px solid var(--doc-border);
  display: flex;
  align-items: center;
}
.doc-topbar-inner {
  width: 100%;
  max-width: var(--doc-max);
  margin: 0 auto;
  padding: 0 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.doc-brand-group {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.doc-brand {
  font-weight: 700;
  color: var(--doc-text);
  font-size: 15px;
  white-space: nowrap;
}
.doc-brand:hover { text-decoration: none; color: var(--doc-accent); }
.doc-top-links {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 13px;
}
.doc-top-links a { color: #444; }
.doc-top-links a.is-active { color: var(--doc-accent); font-weight: 600; }

.doc-menu-btn {
  display: none;
  border: 1px solid var(--doc-border);
  background: #fff;
  border-radius: 6px;
  width: 40px;
  height: 36px;
  padding: 0;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
}
.doc-menu-icon,
.doc-menu-icon::before,
.doc-menu-icon::after {
  display: block;
  width: 16px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
}
.doc-menu-icon { position: relative; }
.doc-menu-icon::before,
.doc-menu-icon::after {
  position: absolute;
  left: 0;
  content: '';
}
.doc-menu-icon::before { top: -5px; }
.doc-menu-icon::after { top: 5px; }

.doc-shell {
  max-width: var(--doc-max);
  margin: 0 auto;
  padding: 16px 14px 48px;
  display: grid;
  grid-template-columns: var(--doc-side) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}
.doc-shell.no-side {
  grid-template-columns: minmax(0, 1fr);
}

.doc-side {
  position: sticky;
  top: calc(var(--doc-nav-h) + 12px);
  background: var(--doc-card);
  border: 1px solid var(--doc-border);
  border-radius: var(--doc-radius);
  padding: 12px 10px;
  max-height: calc(100vh - var(--doc-nav-h) - 28px);
  overflow: auto;
}
.doc-side h4 {
  margin: 10px 8px 6px;
  font-size: 12px;
  color: var(--doc-muted);
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
}
.doc-side a {
  display: block;
  padding: 8px 10px;
  border-radius: 6px;
  color: #333;
  font-size: 13px;
}
.doc-side a:hover { background: #f3f5f7; text-decoration: none; }
.doc-side a.is-active {
  background: var(--doc-accent-soft);
  color: var(--doc-accent);
  font-weight: 600;
}

.doc-main { min-width: 0; }

.doc-hero {
  background: var(--doc-card);
  border: 1px solid var(--doc-border);
  border-radius: var(--doc-radius);
  padding: 18px 16px;
  margin-bottom: 14px;
}
.doc-hero h1 {
  margin: 0 0 8px;
  font-size: 22px;
  font-weight: 700;
}
.doc-hero p {
  margin: 0;
  color: var(--doc-muted);
  font-size: 14px;
}
.doc-hero .path {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.doc-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.doc-card {
  background: var(--doc-card);
  border: 1px solid var(--doc-border);
  border-radius: var(--doc-radius);
  padding: 14px;
}
.doc-card h3 {
  margin: 0 0 6px;
  font-size: 16px;
  font-weight: 600;
}
.doc-card .desc {
  margin: 0 0 10px;
  color: var(--doc-muted);
  font-size: 13px;
  min-height: 36px;
}
.doc-card .foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.doc-meta { color: var(--doc-muted); font-size: 12px; }

.section {
  background: var(--doc-card);
  border: 1px solid var(--doc-border);
  border-radius: var(--doc-radius);
  margin-bottom: 12px;
  overflow: hidden;
}
.section-header {
  padding: 10px 14px;
  border-bottom: 1px solid #eef1f5;
  font-weight: 600;
  font-size: 14px;
  background: #fafbfc;
}
.section-body { padding: 14px; }
.section-body > :first-child { margin-top: 0; }
.section-body > :last-child { margin-bottom: 0; }

.badge-method {
  display: inline-block;
  padding: 2px 7px;
  border-radius: 3px;
  font-size: 11px;
  font-weight: 700;
  vertical-align: middle;
  margin-left: 6px;
}
.badge-method.post { background: #e8f1fb; color: #1a5fb4; }
.badge-method.get { background: #e8f7ed; color: #2c7a3f; }
.badge-method.put { background: #fff3e0; color: #c05600; }
.badge-method.del { background: #fdecea; color: #b42318; }

.url-box {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  background: #f7f8fa;
  border: 1px solid #e8ebf0;
  border-radius: 6px;
  padding: 10px 12px;
  font-family: Consolas, Menlo, monospace;
  font-size: 13px;
  word-break: break-all;
}
.copy-btn {
  flex-shrink: 0;
  border: 1px solid #d0d5dd;
  background: #fff;
  border-radius: 4px;
  padding: 6px 12px;
  min-height: 36px;
  font-size: 12px;
  cursor: pointer;
}
.copy-btn:active { background: #f0f0f0; }

.doc-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.doc-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.doc-table th, .doc-table td {
  border: 1px solid var(--doc-border);
  padding: 8px 10px;
  text-align: left;
  vertical-align: top;
}
.doc-table th { background: #fafbfc; white-space: nowrap; }
.doc-table code {
  background: #f3f4f6;
  padding: 1px 5px;
  border-radius: 3px;
  font-size: 12px;
}
.required-tag { color: var(--doc-danger); font-size: 11px; font-weight: 700; }
.optional-tag { color: #999; font-size: 11px; }

/* 手机：参数卡片 */
.param-cards { display: none; }
.param-card {
  border: 1px solid var(--doc-border);
  border-radius: 6px;
  padding: 10px 12px;
  margin-bottom: 8px;
  background: #fff;
}
.param-card .row1 {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 4px;
}
.param-card .name { font-family: Consolas, Menlo, monospace; font-weight: 600; }
.param-card .desc { color: #555; font-size: 13px; }
.param-card .ex { margin-top: 4px; font-size: 12px; color: var(--doc-muted); }

.code-tabs {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 10px 12px 0;
  border-bottom: 1px solid #eef1f5;
  -webkit-overflow-scrolling: touch;
}
.code-tabs button {
  border: 1px solid transparent;
  background: transparent;
  border-radius: 6px 6px 0 0;
  padding: 8px 12px;
  min-height: 40px;
  font-size: 13px;
  cursor: pointer;
  color: #555;
  white-space: nowrap;
}
.code-tabs button.is-active {
  background: #fff;
  border-color: #eef1f5 #eef1f5 #fff;
  color: var(--doc-accent);
  font-weight: 600;
}
.code-panel { display: none; }
.code-panel.is-active { display: block; }
.code-wrap { position: relative; }
.code-wrap .copy-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  background: #2d2d2d;
  border-color: #444;
  color: #ddd;
  z-index: 2;
}
pre.doc-code, .resp-json, pre.code-block {
  margin: 0;
  background: var(--doc-code-bg);
  color: #d4d4d4;
  padding: 14px;
  font-size: 12px;
  line-height: 1.6;
  white-space: pre-wrap;
  word-break: break-all;
  font-family: Consolas, Menlo, monospace;
  overflow-x: auto;
}
pre.doc-code { border-radius: 6px; margin: 10px 0; }
/* Inline code styling must not leak into documentation code blocks. */
pre.doc-code > code, pre.code-block > code {
  display: block;
  padding: 0;
  background: transparent !important;
  color: inherit;
  border-radius: 0;
  font: inherit;
  white-space: inherit;
}

.doc-ol, .doc-ul {
  margin: 0;
  padding-left: 1.25rem;
  color: #444;
  font-size: 14px;
}
.doc-ol li, .doc-ul li { margin: 6px 0; }
.doc-ol code, .doc-ul code, .section-body code {
  background: #f3f4f6;
  padding: 1px 4px;
  border-radius: 3px;
  font-size: 12px;
}

.btn {
  display: inline-block;
  padding: 7px 12px;
  border-radius: 4px;
  font-size: 13px;
  border: 1px solid transparent;
  cursor: pointer;
  text-align: center;
  min-height: 36px;
  line-height: 1.4;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--doc-accent); color: #fff; border-color: var(--doc-accent); }
.btn-primary:hover { filter: brightness(0.95); color: #fff; }
.btn-default { background: #fff; color: #333; border-color: #d0d5dd; }
.btn-sm { padding: 5px 10px; font-size: 12px; min-height: 32px; }

.doc-search input {
  width: 100%;
  height: 40px;
  border: 1px solid #d9dee7;
  border-radius: 6px;
  padding: 0 12px;
  background: #fff;
  font-size: 14px;
}
.empty-panel {
  background: #fff;
  border: 1px solid var(--doc-border);
  border-radius: var(--doc-radius);
  padding: 36px 16px;
  text-align: center;
  color: var(--doc-muted);
}
.doc-footer {
  margin-top: 20px;
  text-align: center;
  color: #999;
  font-size: 12px;
}
.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  background: rgba(0,0,0,.78);
  color: #fff;
  padding: 8px 14px;
  border-radius: 4px;
  font-size: 13px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .15s ease;
  z-index: 9999;
}
.toast.show { opacity: 1; }

.doc-drawer-mask {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.35);
  z-index: 150;
}
.doc-drawer-mask.show { display: block; }

body.doc-drawer-open { overflow: hidden; }

@media (max-width: 900px) {
  .doc-topbar { height: 56px; }
  .doc-topbar-inner { padding-right: max(12px, env(safe-area-inset-right)); padding-left: max(12px, env(safe-area-inset-left)); }
  .doc-shell {
    grid-template-columns: minmax(0, 1fr);
    padding: 12px 10px max(38px, env(safe-area-inset-bottom));
  }
  .doc-menu-btn { display: inline-flex; align-items: center; justify-content: center; }
  .doc-top-links { display: none; }
  .doc-side {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: min(86vw, 300px);
    max-height: none;
    border-radius: 0;
    border: none;
    border-right: 1px solid var(--doc-border);
    z-index: 200;
    transform: translateX(-105%);
    transition: transform .2s ease;
    padding: max(18px, env(safe-area-inset-top)) 12px max(18px, env(safe-area-inset-bottom));
  }
  .doc-side.open { transform: translateX(0); }
  .doc-card-grid { grid-template-columns: 1fr; gap: 10px; }
  .doc-hero { padding: 16px 14px; }
  .param-table-desktop { display: none !important; }
  .param-cards { display: block; }
  .url-box { flex-direction: column; align-items: stretch; gap: 8px; }
  .url-box .copy-btn { width: 100%; }
  .doc-hero h1 { font-size: 20px; line-height: 1.4; overflow-wrap: anywhere; }
  .doc-hero .path { display: grid; grid-template-columns: 1fr; }
  .doc-hero .path .btn { width: 100%; min-height: 42px; }
  .doc-card { padding: 13px; }
  .doc-card h3,
  .doc-card .desc { overflow-wrap: anywhere; }
  .doc-card .foot { align-items: stretch; }
  .doc-card .foot > .btn { width: 100%; }
  .section-header { padding: 11px 13px; }
  .section-body { padding: 13px; }
  .doc-table-wrap { margin-right: -13px; margin-left: -13px; padding: 0 13px 4px; }
  .code-tabs { padding-right: 10px; padding-left: 10px; }
  .code-tabs button { min-height: 44px; padding-right: 13px; padding-left: 13px; }
  pre.doc-code, .resp-json, pre.code-block { font-size: 12px; line-height: 1.55; }
  .toast { right: 12px; bottom: max(18px, env(safe-area-inset-bottom)); left: 12px; transform: none; text-align: center; }
}

@media (max-width: 380px) {
  .doc-topbar-inner { padding-right: 8px; padding-left: 8px; }
  .doc-brand { max-width: calc(100vw - 72px); overflow: hidden; text-overflow: ellipsis; }
  .doc-shell { padding-right: 8px; padding-left: 8px; }
}

@media (min-width: 901px) {
  .param-cards { display: none !important; }
}

/* 2026 documentation workspace: dense navigation and long-form reading. */
:root {
  --doc-bg: #ffffff;
  --doc-card: #ffffff;
  --doc-border: #e2e7ec;
  --doc-text: #202b38;
  --doc-muted: #687586;
  --doc-accent: #0f766e;
  --doc-accent-soft: #eaf6f4;
  --doc-code-bg: #17212b;
  --doc-nav-h: 64px;
  --doc-max: 1460px;
  --doc-side: 272px;
}

body.doc-body { background:#fff; color:var(--doc-text); font-size:14px; line-height:1.72; }
.section[id] { scroll-margin-top:calc(var(--doc-nav-h) + 18px); }
.doc-topbar { height:var(--doc-nav-h); background:rgba(255,255,255,.97); box-shadow:0 1px 0 var(--doc-border); }
.doc-topbar-inner { max-width:none; padding:0 28px; }
.doc-brand { display:flex; align-items:center; gap:10px; min-width:210px; }
.doc-brand > span:last-child { display:grid; line-height:1.15; }
.doc-brand strong { color:#1f2b38; font-size:14px; font-weight:700; }
.doc-brand small { margin-top:3px; color:#8a96a4; font-size:10px; font-weight:500; }
.doc-brand-mark { display:flex; width:32px; height:32px; align-items:center; justify-content:center; border-radius:6px; background:#0f766e; color:#fff; font-size:11px; font-weight:800; }
.doc-global-search { position:relative; display:flex; width:min(420px,34vw); height:38px; align-items:center; margin:0 auto; border:1px solid #dce2e8; border-radius:6px; background:#f7f9fa; }
.doc-global-search > span { width:14px; height:14px; margin-left:13px; border:2px solid #82909f; border-radius:50%; }
.doc-global-search > span::after { display:block; width:6px; height:2px; margin:10px 0 0 9px; background:#82909f; content:''; transform:rotate(45deg); }
.doc-global-search input { min-width:0; flex:1; height:100%; border:0; outline:0; padding:0 10px; background:transparent; color:#314050; font-size:13px; }
.doc-global-search kbd { margin-right:8px; padding:1px 7px; border:1px solid #d7dde3; border-bottom-width:2px; border-radius:4px; background:#fff; color:#8793a0; font:11px/18px Consolas,monospace; }
.doc-top-links { gap:5px; }
.doc-top-links a { padding:7px 9px; border-radius:4px; color:#536171; font-size:12px; }
.doc-top-links a:hover { background:#f2f5f6; text-decoration:none; }

.doc-shell { max-width:var(--doc-max); min-height:calc(100vh - var(--doc-nav-h)); margin:0 auto; padding:0; grid-template-columns:var(--doc-side) minmax(0,1fr); gap:0; }
.doc-side { top:var(--doc-nav-h); max-height:calc(100vh - var(--doc-nav-h)); height:calc(100vh - var(--doc-nav-h)); padding:22px 18px 34px; border:0; border-right:1px solid var(--doc-border); border-radius:0; background:#fbfcfd; }
.doc-side-title { display:flex; align-items:center; justify-content:space-between; margin:0 8px 19px; color:#2d3946; font-size:13px; font-weight:700; }
.doc-side-title small { color:#a0aab5; font:9px/1 Consolas,monospace; }
.doc-side h4 { margin:22px 9px 7px; color:#98a2ad; font-size:10px; font-weight:700; letter-spacing:.08em; text-transform:uppercase; }
.doc-side a { position:relative; padding:7px 10px; border-radius:4px; color:#52606f; font-size:12px; }
.doc-side a:hover { background:#eef3f4; color:#23303c; }
.doc-side a.is-active { background:transparent; color:#08756d; font-weight:700; }
.doc-side a.is-active::before { position:absolute; top:8px; bottom:8px; left:-18px; width:3px; border-radius:0 3px 3px 0; background:#0f766e; content:''; }
.doc-side-empty { display:none; margin:18px 9px; color:#9aa5af; font-size:12px; }
.doc-main { width:100%; max-width:1000px; padding:42px 54px 72px; }

.doc-hero { margin:0 0 30px; padding:0 0 25px; border:0; border-bottom:1px solid var(--doc-border); border-radius:0; }
.doc-hero h1 { margin:0 0 10px; color:#1d2936; font-size:30px; line-height:1.25; letter-spacing:0; }
.doc-hero p { max-width:760px; color:#667485; font-size:14px; }
.doc-hero .path { margin-top:19px; }
.doc-hero code { padding:2px 5px; border-radius:3px; background:#f0f4f5; color:#0d6d67; }

.section { margin:0 0 32px; overflow:visible; border:0; border-radius:0; }
.section-header { padding:0 0 10px; border:0; border-bottom:1px solid var(--doc-border); background:transparent; color:#24313e; font-size:18px; font-weight:700; }
.section-body { padding:15px 0 0; }
.section-body p { margin:0 0 12px; color:#4d5b6a; }
.doc-card-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:0; border-top:1px solid var(--doc-border); }
.doc-card { min-height:132px; padding:18px 16px; border:0; border-right:1px solid var(--doc-border); border-bottom:1px solid var(--doc-border); border-radius:0; }
.doc-card:nth-child(2n) { border-right:0; }
.doc-card h3 { color:#263442; font-size:14px; }
.doc-card .desc { color:#748090; font-size:12px; line-height:1.65; }
.doc-api-list-note { margin:8px 0 10px !important; color:#0f766e !important; font-size:11px !important; line-height:1.5 !important; }

.url-box { align-items:center; padding:12px 13px; border-color:#dfe6e9; border-left:3px solid #0f766e; border-radius:4px; background:#f6f9f9; }
.badge-method { margin-left:0; margin-right:7px; padding:3px 7px; border-radius:3px; }
.doc-table { font-size:12px; }
.doc-table th,.doc-table td { padding:10px 12px; border-color:#e1e7eb; }
.doc-table th { background:#f6f8f9; color:#53606d; font-size:11px; }
.doc-table tbody tr:hover { background:#fafcfc; }
.required-tag { padding:2px 5px; border-radius:3px; background:#fff0f0; }
.optional-tag { padding:2px 5px; border-radius:3px; background:#f1f3f5; color:#798490; }
.code-tabs { gap:2px; padding:0; border-bottom:1px solid #303d49; background:var(--doc-code-bg); }
.code-tabs button { min-height:42px; border:0; border-bottom:2px solid transparent; border-radius:0; color:#9eabb7; }
.code-tabs button.is-active { border-color:#38b2a5; background:#1c2934; color:#fff; }
.code-wrap .copy-btn { background:#22313d; border-color:#3b4b57; }
pre.doc-code,.resp-json,pre.code-block { padding:18px; color:#d9e2e8; font-size:12px; line-height:1.7; }
pre.doc-code,.resp-json,pre.code-block { max-width:100%; overflow:auto; overflow-wrap:normal; }
.copy-btn { border-color:#cfd8de; color:#4f5d69; }
.btn { border-radius:4px; }
.doc-search { position:relative; }
.doc-search input { height:44px; padding:0 15px; border-color:#dce3e8; background:#f8fafb; }
.doc-footer { padding-top:24px; border-top:1px solid var(--doc-border); }
.doc-capability-list { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); border-top:1px solid var(--doc-border); border-left:1px solid var(--doc-border); }
.doc-capability-list a { display:flex; min-width:0; min-height:112px; flex-direction:column; gap:10px; padding:17px 18px; border-right:1px solid var(--doc-border); border-bottom:1px solid var(--doc-border); color:inherit; }
.doc-capability-list a:hover { background:#f7faf9; text-decoration:none; }
.doc-capability-heading { display:flex; min-width:0; align-items:center; justify-content:space-between; gap:12px; }
.doc-capability-list strong { color:#2b3946; font-size:14px; }
.doc-capability-list em { flex:0 0 auto; color:#0f766e; font-size:11px; font-style:normal; font-weight:700; }
.doc-capability-list small { color:#687586; font-size:12px; line-height:1.75; }
.doc-section-intro { margin:0 0 13px !important; color:#667485; font-size:13px; }
.doc-entry-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); border-top:1px solid var(--doc-border); border-left:1px solid var(--doc-border); }
.doc-entry-option { position:relative; display:flex; min-width:0; min-height:196px; flex-direction:column; padding:18px; border-right:1px solid var(--doc-border); border-bottom:1px solid var(--doc-border); color:inherit; }
.doc-entry-option:hover { background:#f7faf9; text-decoration:none; }
.doc-entry-option.is-recommended { box-shadow:inset 0 3px 0 #0f766e; }
.doc-entry-label { align-self:flex-start; margin-bottom:14px; padding:3px 7px; border-radius:3px; background:#edf5f3; color:#0f766e; font-size:11px; font-weight:700; }
.doc-entry-option strong { color:#24313e; font-size:17px; }
.doc-entry-option small { min-height:62px; margin-top:8px; color:#667485; font-size:12px; line-height:1.7; }
.doc-entry-option code { display:block; margin-top:auto; overflow-wrap:anywhere; color:#0d6d67; font-size:11px; }
.doc-entry-option em { margin-top:13px; color:#0f766e; font-size:12px; font-style:normal; font-weight:700; }
.doc-entry-note { margin:13px 0 0 !important; padding:10px 12px; border-left:3px solid #d5a11e; background:#fffaf0; color:#675a37 !important; font-size:12px; }
.doc-flow-list { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); margin:0; padding:0; list-style:none; border-top:1px solid var(--doc-border); border-left:1px solid var(--doc-border); }
.doc-flow-list li { display:flex; min-width:0; gap:10px; padding:15px 13px; border-right:1px solid var(--doc-border); border-bottom:1px solid var(--doc-border); }
.doc-flow-list li > span { display:grid; width:25px; height:25px; flex:0 0 25px; place-items:center; border-radius:50%; background:#0f766e; color:#fff; font-size:11px; font-weight:700; }
.doc-flow-list div { min-width:0; }
.doc-flow-list strong,.doc-flow-list small { display:block; }
.doc-flow-list strong { color:#2b3946; font-size:13px; }
.doc-flow-list small { margin-top:5px; color:#768391; font-size:11px; line-height:1.6; }
.doc-flow-actions { display:flex; flex-wrap:wrap; gap:8px; margin-top:14px; }
.doc-api-summary { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); margin:-15px 0 30px; border-top:1px solid var(--doc-border); border-left:1px solid var(--doc-border); }
.doc-api-summary > div { min-width:0; padding:12px 13px; border-right:1px solid var(--doc-border); border-bottom:1px solid var(--doc-border); }
.doc-api-summary span,.doc-api-summary strong { display:block; }
.doc-api-summary span { margin-bottom:5px; color:#7a8794; font-size:10px; }
.doc-api-summary strong { color:#2b3946; font-size:12px; line-height:1.55; overflow-wrap:anywhere; }
.doc-signature-box { margin-top:13px; padding:12px; border:1px solid #dbe4e3; background:#f7faf9; }
.doc-signature-box > span,.doc-signature-box > code,.doc-signature-box > small { display:block; }
.doc-signature-box > span { color:#657280; font-size:11px; font-weight:700; }
.doc-signature-box > code { margin:7px 0; color:#0d6d67; font-size:12px; overflow-wrap:anywhere; white-space:pre-wrap; }
.doc-signature-box > small { color:#6f7d89; font-size:11px; line-height:1.6; }
.doc-result-rule { margin:0 0 13px !important; padding:11px 12px; border-left:3px solid #0f766e; background:#f2f8f6; color:#40544f !important; font-size:12px; }
.doc-response-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); border-top:1px solid var(--doc-border); border-left:1px solid var(--doc-border); }
.doc-response-case { min-width:0; border-right:1px solid var(--doc-border); border-bottom:1px solid var(--doc-border); }
.doc-response-title { display:flex; min-height:43px; align-items:center; justify-content:space-between; gap:10px; padding:8px 10px; border-bottom:1px solid var(--doc-border); background:#f8fafb; }
.doc-response-title strong { color:#344250; font-size:12px; }
.doc-response-case.is-success .doc-response-title { box-shadow:inset 3px 0 0 #0f766e; }
.doc-response-case.is-failure .doc-response-title { box-shadow:inset 3px 0 0 #b84b4b; }
.doc-response-case .resp-json { min-height:210px; max-height:430px; overflow:auto; border:0; }
.doc-request-id-note { margin-top:11px !important; }
.doc-page-toc { margin:-15px 0 32px; padding:13px 14px; border-left:3px solid #0f766e; background:#f7faf9; }
.doc-page-toc > strong { display:block; margin-bottom:7px; color:#344250; font-size:11px; }
.doc-page-toc > div { display:flex; flex-wrap:wrap; gap:5px 15px; }
.doc-page-toc a { color:#526674; font-size:11px; }
.doc-home-more { display:flex; flex-wrap:wrap; gap:6px 22px; padding:17px 0 4px; border-top:1px solid var(--doc-border); }
.doc-home-more a { color:#526674; font-size:12px; }
.doc-home-more a:hover { color:var(--doc-accent); }

@media (min-width:1200px) {
  .doc-main { max-width:1080px; padding-right:68px; padding-left:68px; }
}

@media (max-width:900px) {
  :root { --doc-nav-h:58px; }
  .doc-topbar-inner { padding:0 12px; }
  .doc-brand { min-width:0; }
  .doc-brand-mark { width:30px; height:30px; }
  .doc-brand strong { font-size:13px; }
  .doc-global-search { width:min(46vw,300px); margin-right:0; }
  .doc-global-search kbd { display:none; }
  .doc-shell { display:block; }
  .doc-side { top:0; width:min(88vw,310px); height:100vh; max-height:none; padding-top:22px; box-shadow:12px 0 36px rgba(24,35,45,.14); }
  .doc-main { max-width:none; padding:24px 16px 48px; }
  .doc-hero { margin-bottom:23px; padding-bottom:20px; }
  .doc-hero h1 { font-size:24px; }
  .section { margin-bottom:26px; }
  .section-header { font-size:16px; }
  .doc-card-grid { grid-template-columns:1fr; }
  .doc-card { border-right:0; }
  .doc-capability-list { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .doc-entry-grid { grid-template-columns:1fr; }
  .doc-entry-option { min-height:0; }
  .doc-entry-option small { min-height:0; }
  .doc-entry-option code { margin-top:13px; }
  .doc-flow-list { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .doc-api-summary { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .doc-response-grid { grid-template-columns:1fr; }
  .doc-page-toc > div { display:grid; grid-template-columns:1fr; gap:5px; }
  .doc-page-toc a { min-height:32px; display:flex; align-items:center; }
}

@media (max-width:520px) {
  .doc-brand small,.doc-global-search { display:none; }
  .doc-brand > span:last-child { display:block; }
  .doc-main { padding-right:13px; padding-left:13px; }
  .doc-hero .path { display:flex; }
  .doc-hero .path .btn { width:auto; flex:1 1 calc(50% - 4px); }
  .doc-capability-list { grid-template-columns:1fr; }
  .doc-flow-list { grid-template-columns:1fr; }
  .doc-flow-actions .btn { width:100%; }
  .doc-api-summary { grid-template-columns:1fr; }
}
