/* DeepMate API documentation — comfortable reading, DS-docs-like structure. */
:root {
  --docs-bg: #ffffff;
  --docs-soft: #f7f8fa;
  --docs-line: #e7e9ee;
  --docs-ink: #151922;
  --docs-ink-2: #4c5563;
  --docs-muted: #7c8594;
  --docs-accent: #4d6bfe;
  --docs-code: #171a21;
  --docs-font: -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue", "Segoe UI", sans-serif;
  --docs-mono: "SF Mono", ui-monospace, Menlo, Consolas, monospace;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--docs-ink);
  background: var(--docs-bg);
  font: 14px/1.75 var(--docs-font);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--docs-accent); text-decoration: none; }
a:hover { text-decoration: underline; }
.docs-top {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 22px;
  height: 58px;
  padding: 0 28px;
  border-bottom: 1px solid var(--docs-line);
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(12px);
}
.docs-brand { display: flex; align-items: center; gap: 9px; flex: 0 0 auto; color: var(--docs-ink); font-weight: 650; }
.docs-brand:hover { text-decoration: none; }
.docs-brand img { width: 22px; height: 22px; border-radius: 6px; }
.docs-brand span { font-size: 14px; }
.docs-brand small { color: var(--docs-muted); font-size: 10px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; margin-left: 2px; }
.docs-top-links { display: flex; align-items: center; gap: 18px; margin-left: 12px; font-size: 12.5px; }
.docs-top-links a { color: var(--docs-muted); }
.docs-top-links a:hover, .docs-top-links a.active { color: var(--docs-ink); text-decoration: none; }
.docs-search {
  display: flex;
  align-items: center;
  gap: 7px;
  width: min(280px, 30vw);
  height: 32px;
  margin-left: auto;
  padding: 0 10px;
  border: 1px solid var(--docs-line);
  border-radius: 7px;
  color: var(--docs-muted);
  background: var(--docs-soft);
  font-size: 12px;
}
.docs-search kbd { margin-left: auto; padding: 1px 5px; border: 1px solid #dfe2e8; border-radius: 4px; background: #fff; font: 10px var(--docs-mono); }
.docs-search input { min-width: 0; flex: 1; border: 0; outline: 0; background: transparent; color: var(--docs-ink); font: 12px var(--docs-font); }
.docs-search input::placeholder { color: var(--docs-muted); }
.docs-search:focus-within { border-color: #c9d2ff; background: #fff; box-shadow: 0 0 0 3px rgba(77,107,254,.08); }
.docs-side-nav a[hidden] { display: none; }
.docs-top-cta { display: inline-flex; align-items: center; height: 32px; padding: 0 12px; border-radius: 7px; background: var(--docs-ink); color: #fff; font-size: 12px; white-space: nowrap; }
.docs-top-cta:hover { background: #2a303b; text-decoration: none; }
.docs-shell { display: grid; grid-template-columns: 228px minmax(0, 1fr) 190px; max-width: 1380px; margin: 0 auto; }
.docs-side {
  position: sticky;
  top: 58px;
  align-self: start;
  height: calc(100vh - 58px);
  overflow: auto;
  padding: 28px 18px 40px 28px;
  border-right: 1px solid var(--docs-line);
}
.docs-side-title { margin: 0 0 7px; color: var(--docs-muted); font-size: 10px; font-weight: 650; letter-spacing: .13em; text-transform: uppercase; }
.docs-side-nav { display: grid; gap: 2px; margin-bottom: 26px; }
.docs-side-nav a { padding: 6px 9px; border-radius: 5px; color: var(--docs-ink-2); font-size: 12.5px; }
.docs-side-nav a:hover { background: var(--docs-soft); color: var(--docs-ink); text-decoration: none; }
.docs-side-nav a.active { background: #eef1ff; color: var(--docs-accent); font-weight: 550; }
.docs-main { min-width: 0; padding: 46px 48px 90px; max-width: 880px; }
.docs-kicker { color: var(--docs-accent); font-size: 10px; font-weight: 650; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 9px; }
.docs-main h1 { margin: 0; color: var(--docs-ink); font-size: clamp(28px, 4vw, 38px); line-height: 1.2; letter-spacing: -1px; font-weight: 680; }
.docs-lead { max-width: 650px; margin: 12px 0 28px; color: var(--docs-ink-2); font-size: 14px; line-height: 1.85; }
.docs-main h2 { margin: 44px 0 12px; padding-top: 8px; color: var(--docs-ink); font-size: 21px; line-height: 1.35; letter-spacing: -.4px; font-weight: 650; scroll-margin-top: 80px; }
.docs-main h3 { margin: 26px 0 8px; color: var(--docs-ink); font-size: 15px; font-weight: 650; scroll-margin-top: 80px; }
.docs-main p { margin: 9px 0; color: var(--docs-ink-2); font-size: 13.5px; }
.docs-main ul, .docs-main ol { padding-left: 22px; color: var(--docs-ink-2); font-size: 13.5px; }
.docs-main li { margin: 4px 0; }
.docs-main strong { color: var(--docs-ink); font-weight: 650; }
.docs-main code { padding: 1px 5px; border-radius: 4px; background: #f1f3f6; color: #394150; font: 12px var(--docs-mono); overflow-wrap: anywhere; }
.docs-main pre { position: relative; overflow-x: auto; margin: 13px 0 18px; padding: 17px 18px; border-radius: 9px; background: var(--docs-code); color: #e8ebf2; font: 12.5px/1.72 var(--docs-mono); }
.docs-main pre code { padding: 0; background: transparent; color: inherit; font: inherit; overflow-wrap: normal; }
.docs-main pre .copy-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  height: 25px;
  padding: 0 7px;
  border: 1px solid #3a414d;
  border-radius: 4px;
  color: #aeb7c6;
  background: #242a34;
  font: 10px var(--docs-font);
  cursor: pointer;
}
.docs-main pre .copy-btn:hover { color: #fff; border-color: #5e6878; }
.docs-table { width: 100%; margin: 14px 0 20px; border: 1px solid var(--docs-line); border-radius: 8px; border-collapse: separate; border-spacing: 0; overflow: hidden; font-size: 12.5px; }
.docs-table th { padding: 9px 12px; text-align: left; background: var(--docs-soft); color: var(--docs-muted); font-weight: 550; }
.docs-table td { padding: 10px 12px; border-top: 1px solid var(--docs-line); color: var(--docs-ink-2); vertical-align: top; }
.docs-table td:first-child { color: var(--docs-ink); font-weight: 500; }
.docs-table code { white-space: nowrap; }
.docs-callout { margin: 16px 0; padding: 12px 14px; border-left: 3px solid var(--docs-accent); border-radius: 0 7px 7px 0; background: #f5f7ff; color: var(--docs-ink-2); font-size: 12.5px; }
.docs-callout strong { color: var(--docs-ink); }
.docs-note { margin: 16px 0; padding: 12px 14px; border: 1px solid var(--docs-line); border-radius: 8px; background: #fbfbfc; color: var(--docs-ink-2); font-size: 12.5px; }
.docs-toc { position: sticky; top: 58px; align-self: start; max-height: calc(100vh - 58px); overflow: auto; padding: 46px 24px 40px 0; }
.docs-toc-title { color: var(--docs-muted); font-size: 10px; font-weight: 650; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 9px; }
.docs-toc a { display: block; padding-left: 10px; border-left: 1px solid var(--docs-line); color: var(--docs-muted); font-size: 12px; line-height: 1.6; padding-top: 4px; padding-bottom: 4px; }
.docs-toc a:hover, .docs-toc a.active { color: var(--docs-ink); border-left-color: var(--docs-accent); text-decoration: none; }
.docs-footer { margin-top: 54px; padding-top: 18px; border-top: 1px solid var(--docs-line); color: #a0a7b2; font-size: 11px; }
.docs-foot-links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.docs-foot-links a { color: var(--docs-muted); font-size: 11.5px; }
@media (max-width: 1120px) {
  .docs-shell { grid-template-columns: 210px minmax(0, 1fr); }
  .docs-toc { display: none; }
  .docs-main { padding-right: 34px; padding-left: 34px; }
}
@media (max-width: 780px) {
  .docs-top { height: 54px; padding: 0 16px; gap: 14px; }
  .docs-top-links { display: none; }
  .docs-search { width: auto; flex: 1; }
  .docs-search span { display: none; }
  .docs-top-cta { display: none; }
  .docs-shell { display: block; }
  .docs-side { position: static; height: auto; padding: 16px 16px 6px; border-right: 0; border-bottom: 1px solid var(--docs-line); }
  .docs-side-title { display: none; }
  .docs-side-nav { display: flex; overflow-x: auto; gap: 4px; margin: 0 0 10px; }
  .docs-side-nav a { flex: 0 0 auto; white-space: nowrap; font-size: 12px; padding: 6px 9px; background: var(--docs-soft); }
  .docs-main { padding: 26px 18px 60px; }
  .docs-main h1 { font-size: 28px; }
  .docs-main h2 { font-size: 19px; }
  .docs-main pre { margin-inline: -2px; font-size: 11.5px; }
  .docs-table { display: block; overflow-x: auto; }
}
