/* Element451 Integrations Guide — Brand 2.0 tokens, docs shell: sticky top bar, left contents tree, centre reading pane, right "on this page" rail. */
[hidden]:not([hidden=until-found i]) { display: none !important; }
body { margin: 0; }
img { max-width: 100%; }
/* Layout: docs shell — sticky top bar, left contents tree, centre reading pane, right "on this page" rail. Brand 2.0 tokens. */
:root {
  --orange: #FE5000; --orange-600: #D24402; --orange-700: #A73704; --orange-50: #F7EDE1; --orange-100: #F8E0CE;
  --green: #003A2A; --green-50: #E8ECE3; --green-100: #D4DDD3; --green-200: #A8BBB0; --green-400: #366455;
  --blue-800: #065D78; --pink-800: #755C6E; --pink-200: #F7E5EC; --blue-200: #A8E6F4;
  --bg: #F7F7EF; --surface: #FFFFFF; --ink: #003A2A; --muted: #2A5447; --line: #A8BBB0; --line-soft: #D4DDD3;
  --tint: #E8ECE3; --link: #8F3105; --link-hover: #782A06; --accent: #FE5000; --accent-ink: #8F3105; --control: #729185; --btn: #8F3105; --btn-hover: #782A06; --feat-bg: #003A2A; --feat-line: #003A2A; --speak: #F8E0CE;
  --code-bg: #062019; --code-ink: #E8ECE3; --code-key: #FB9D6E; --code-str: #A8E6F4; --code-num: #F6C0E6; --code-com: #729185;
  --active-bg: #E8ECE3; --shadow: 0 12px 40px rgb(0 58 42 / 0.14);
  --font-display: "GT Alpina", "Source Serif 4", Georgia, serif;
  --font-body: "Neue Haas Grotesk Display Pro", Inter, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --top: 64px;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --bg: #081814; --surface: #062019; --ink: #F7F7EF; --muted: #A8BBB0; --line: #366455; --line-soft: #1F4A3D;
  --tint: #04291F; --link: #FB9D6E; --link-hover: #F9C2A3; --accent-ink: #FB9D6E; --active-bg: #023224; --control: #729185; --feat-bg: #023224; --feat-line: #729185; --speak: #3A200E;
  --orange-50: #2A1A0E; --orange-100: #3A200E; --pink-200: #2B1F29; --blue-200: #0B2B36;
  --code-bg: #04130F; --shadow: 0 12px 40px rgb(0 0 0 / 0.5); color-scheme: dark; } }
:root[data-theme="dark"] {
  --bg: #081814; --surface: #062019; --ink: #F7F7EF; --muted: #A8BBB0; --line: #366455; --line-soft: #1F4A3D;
  --tint: #04291F; --link: #FB9D6E; --link-hover: #F9C2A3; --accent-ink: #FB9D6E; --active-bg: #023224; --control: #729185; --feat-bg: #023224; --feat-line: #729185; --speak: #3A200E;
  --orange-50: #2A1A0E; --orange-100: #3A200E; --pink-200: #2B1F29; --blue-200: #0B2B36;
  --code-bg: #04130F; --shadow: 0 12px 40px rgb(0 0 0 / 0.5); color-scheme: dark; }

* { box-sizing: border-box; }
html, body { background: var(--bg); color: var(--ink); }
body { font: 400 16px/1.55 var(--font-body); -webkit-font-smoothing: antialiased; }
a { color: var(--link); text-underline-offset: 2px; }
a:hover { color: var(--link-hover); }
:focus-visible { outline: none; box-shadow: 0 0 0 3px rgb(254 80 0 / 0.35); border-radius: 4px; }
button { font: inherit; color: inherit; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }


/* top bar */
.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 30; background: var(--bg); border-bottom: 1px solid var(--line-soft); }
.top-in { height: var(--top); display: flex; align-items: center; gap: 16px; padding-inline: 24px; max-width: 1480px; margin: 0 auto; }
.lockup { display: flex; align-items: baseline; gap: 12px; text-decoration: none; color: var(--ink); white-space: nowrap; }
.lockup-co { font-weight: 600; font-size: 18px; color: var(--ink); }
.lockup-sep { width: 1px; height: 18px; background: var(--line); align-self: center; }
.lockup-t { font-size: 15px; color: var(--muted); }
.lockup-tag { align-self: center; font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--accent-ink); background: var(--orange-50); border: 1px solid var(--accent); border-radius: 999px; padding: 2px 8px; }
.variant-bar { background: var(--feat-bg); color: #F7F7EF; font-size: 13px; line-height: 1.4; text-align: center; padding: 7px 16px; }
.variant-bar a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.variant-bar a:last-child { margin-left: 8px; }
.searchbtn { flex: 1 1 280px; max-width: 420px; margin-left: auto; display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 8px 0 16px; border: 1px solid var(--control); border-radius: 999px; background: var(--surface); color: var(--muted); cursor: pointer; text-align: left; font-size: 14px; }
.searchbtn span:first-of-type { flex: 1; }
kbd { font: 500 11px var(--font-body); border: 1px solid var(--line); border-radius: 6px; padding: 2px 6px; color: var(--muted); background: var(--bg); }
.nav { display: flex; gap: 4px; }
.nav a { text-decoration: none; color: var(--ink); font-size: 14px; font-weight: 500; padding: 8px 12px; border-radius: 999px; white-space: nowrap; }
.nav a:hover { background: var(--tint); color: var(--ink); }
.nav a[aria-current="page"] { background: var(--ink); color: var(--bg); }
.menubtn { display: none; border: 1px solid var(--control); background: var(--surface); border-radius: 999px; height: 40px; padding: 0 14px; font-size: 14px; cursor: pointer; }
.themebtn { border: 1px solid var(--control); background: transparent; border-radius: 999px; width: 40px; height: 40px; cursor: pointer; color: var(--muted); display: grid; place-items: center; }

/* shell */
.view { margin: 0 auto; padding-inline: 24px; }
.top-in { max-width: none !important; }
.docs { display: grid; grid-template-columns: 288px minmax(0, 1fr) 240px; gap: 48px; }
.docs.no-toc { grid-template-columns: 288px minmax(0, 1fr); }
.docs.no-toc .toc { display: none; }
.tree { position: sticky; top: calc(var(--top) + env(safe-area-inset-top, 0px)); align-self: start; max-height: calc(100vh - var(--top)); overflow: auto; padding-block: 24px 48px; padding-right: 8px; border-right: 1px solid var(--line-soft); }
.tree-h { font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin: 0 0 8px 8px; }
.tree ul { list-style: none; margin: 0; padding: 0; }
.tree ul ul { padding-left: 14px; margin-left: 11px; border-left: 1px solid var(--line-soft); }
.tree li > div { display: flex; align-items: flex-start; gap: 2px; }
.tree a { flex: 1; min-width: 0; display: block; padding: 5px 8px; border-radius: 6px; text-decoration: none; color: var(--ink); font-size: 14px; line-height: 1.35; }
.tree a:hover { background: var(--tint); color: var(--ink); }
.tree a[aria-current="page"] { background: var(--active-bg); color: var(--accent-ink); font-weight: 600; }
.tree .d0 > div > a { font-weight: 600; }
.tw { flex: none; width: 24px; height: 28px; border: 0; background: none; cursor: pointer; color: var(--muted); border-radius: 6px; display: grid; place-items: center; }
.tw:hover { background: var(--tint); }
.tw svg { transition: transform 0.2s ease-out; }
.tw[aria-expanded="true"] svg { transform: rotate(90deg); }
.tw-sp { flex: none; width: 24px; }

.main { min-width: 0; padding-block: 32px 96px; }
.art :is(p, ul, ol, blockquote, h2, h3, h4, h5), .crumbs, h1.pt, .helpful, .section-list, .pager { max-width: 84ch; }
.art :is(h2, h3, h4, h5), details.tg, .art [id] { scroll-margin-top: calc(var(--top) + env(safe-area-inset-top, 0px) + 24px); }
.crumbs { display: flex; flex-wrap: wrap; gap: 4px 8px; font-size: 13px; color: var(--muted); margin-bottom: 16px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }
.crumbs span[aria-hidden] { color: var(--line); }
h1.pt { font: 300 clamp(32px, 4vw, 44px)/1.08 var(--font-display); letter-spacing: -0.015em; margin: 0 0 16px; text-wrap: balance; }
.meta { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; font-size: 13px; color: var(--muted); padding-bottom: 20px; margin-bottom: 28px; border-bottom: 1px solid var(--accent); }
.meta a { color: var(--muted); }

/* article */
.art { font-size: 16px; }
.art > :first-child { margin-top: 0; }
.art h2 { font: 600 22px/1.3 var(--font-body); margin: 40px 0 12px; letter-spacing: -0.005em; }
.art h3 { font: 600 18px/1.35 var(--font-body); margin: 28px 0 8px; }
.art h4, .art h5 { font: 600 16px/1.4 var(--font-body); margin: 20px 0 6px; }
.art p, .art ul, .art ol { margin: 0 0 14px; }
.art li { margin: 4px 0; }
.art li > p { margin: 0 0 6px; }
.art hr { border: 0; border-top: 1px solid var(--line-soft); margin: 28px 0; }
.art strong { font-weight: 600; }
.art .u { text-decoration: underline; }
.art code:not(pre code) { font: 0.88em var(--font-mono); background: var(--tint); padding: 1px 5px; border-radius: 4px; overflow-wrap: anywhere; }
.art blockquote { margin: 0 0 14px; padding: 4px 16px; border-left: 2px solid var(--line); color: var(--muted); }
.pagecard { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; margin: 8px 0; border: 1px solid var(--line-soft); border-radius: 8px; background: var(--surface); text-decoration: none; color: var(--ink); font-weight: 500; transition: border-color 0.2s ease-out; }
.pagecard:hover { border-color: var(--accent); color: var(--ink); }
.pc-a { color: var(--accent-ink); }
.pc-off { color: var(--muted); }
li > .pagecard { margin: 6px 0; }
.callout { background: var(--tint); border-radius: 8px; padding: 16px 20px; margin: 0 0 16px; }
.callout > :last-child { margin-bottom: 0; }
.callout.c-green_bg { background: var(--green-50); }
.callout.c-orange_bg, .callout.c-red_bg, .callout.c-yellow_bg { background: var(--orange-50); }
.callout.c-pink_bg, .callout.c-purple_bg { background: var(--pink-200); }
.callout.c-blue_bg { background: var(--blue-200); }
:root[data-theme="dark"] .callout.c-green_bg { background: var(--tint); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .callout.c-green_bg { background: var(--tint); } }
.callout .pagecard { background: var(--surface); }
.callout :is(p, ul, ol) { max-width: none; }
.cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin-bottom: 16px; }
.col { min-width: 0; }
details.tg { border-top: 1px solid var(--line-soft); }
details.tg + details.tg { border-top: 1px solid var(--line-soft); }
details.tg:last-of-type { border-bottom: 1px solid var(--line-soft); }
details.tg > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 10px; padding: 10px 4px; }
details.tg > summary::-webkit-details-marker { display: none; }
details.tg > summary::before { content: ""; flex: none; width: 8px; height: 8px; border-right: 1.5px solid var(--muted); border-bottom: 1.5px solid var(--muted); transform: rotate(-45deg); transition: transform 0.2s ease-out; margin-right: 2px; }
details.tg[open] > summary::before { transform: rotate(45deg); }
details.tg > summary > h2, details.tg > summary > h3, details.tg > summary > h4 { margin: 0; }
details.tg > summary:hover { background: var(--tint); border-radius: 6px; }
.tg-b { padding: 4px 0 12px 22px; }
.tg-s { font-weight: 500; font-family: var(--font-mono); font-size: 14px; }
.code { margin: 0 0 16px; border-radius: 8px; overflow: hidden; background: var(--code-bg); }
.code-bar { display: flex; justify-content: space-between; align-items: center; padding: 6px 8px 6px 14px; border-bottom: 1px solid rgb(168 187 176 / 0.18); }
.code-lang { font: 600 11px var(--font-body); letter-spacing: 0.08em; text-transform: uppercase; color: #A8BBB0; }
.copy { border: 1px solid rgb(168 187 176 / 0.35); background: transparent; color: #E8ECE3; border-radius: 999px; font-size: 12px; padding: 3px 10px; cursor: pointer; }
.copy:hover { border-color: #FB9D6E; color: #FB9D6E; }
.code pre { margin: 0; padding: 14px 16px; overflow: auto; max-height: 560px; }
.code code { font: 13px/1.6 var(--font-mono); color: var(--code-ink); tab-size: 4; white-space: pre; }
.hljs-attr, .hljs-keyword, .hljs-built_in, .hljs-selector-tag { color: var(--code-key); }
.hljs-string { color: var(--code-str); }
.hljs-number, .hljs-literal { color: var(--code-num); }
.hljs-comment { color: var(--code-com); font-style: italic; }
.hljs-title, .hljs-function { color: #F7F7EF; font-weight: 600; }
.hljs-punctuation { color: #A8BBB0; }
.tbl { overflow-x: auto; margin: 0 0 16px; border: 1px solid var(--line-soft); border-radius: 8px; background: var(--surface); }
.tbl table, .db table { border-collapse: collapse; width: 100%; font-size: 14px; }
.tbl th, .tbl td, .db th, .db td { text-align: left; vertical-align: top; padding: 8px 12px; border-bottom: 1px solid var(--line-soft); }
.tbl th, .db th { font-weight: 600; background: var(--tint); position: sticky; top: 0; white-space: nowrap; }
.tbl tr:last-child td, .db tr:last-child td { border-bottom: 0; }
.tbl td { overflow-wrap: anywhere; min-width: 120px; }
.db { margin: 0 0 20px; border: 1px solid var(--line-soft); border-radius: 8px; background: var(--surface); overflow: hidden; }
.db-h { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; justify-content: space-between; padding: 10px 12px 10px 16px; border-bottom: 1px solid var(--line-soft); }
.db-t { font-weight: 600; font-size: 14px; }
.db-n { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.db-f { height: 32px; border: 1px solid var(--control); border-radius: 999px; padding: 0 12px; background: var(--bg); color: var(--ink); font: 13px var(--font-body); width: 200px; max-width: 100%; }
.db-w { overflow: auto; max-height: 520px; }
.db td { min-width: 140px; overflow-wrap: anywhere; }
.db td:first-child { font-weight: 500; }
.db td code, .db .slug { font: 12.5px var(--font-mono); }
.db-more { display: block; width: 100%; border: 0; border-top: 1px solid var(--line-soft); background: var(--bg); padding: 10px; cursor: pointer; font-size: 13px; font-weight: 500; color: var(--accent-ink); }
.img { margin: 0 0 16px; }
.img img { display: block; max-width: 100%; height: auto; border-radius: 8px; border: 1px solid var(--line-soft); }
.img-missing { display: grid; place-items: center; height: 96px; border: 1px dashed var(--line); border-radius: 8px; color: var(--muted); font-size: 13px; }
.file, .video { display: flex; flex-direction: column; gap: 2px; padding: 12px 16px; margin: 0 0 16px; border: 1px solid var(--line-soft); border-radius: 8px; background: var(--surface); text-decoration: none; color: var(--ink); }
.file-n, .video-k { font-weight: 600; font-size: 14px; }
.file-s, .video-u { font-size: 13px; color: var(--muted); }
.video:hover { border-color: var(--accent); color: var(--ink); }
.section-list { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line-soft); }
.section-list h2 { font: 600 13px var(--font-body); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin: 0 0 8px; }
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 48px; }
.pager a { display: flex; flex-direction: column; gap: 2px; padding: 14px 16px; border: 1px solid var(--line-soft); border-radius: 8px; text-decoration: none; color: var(--ink); background: var(--surface); min-width: 0; }
.pager a:hover { border-color: var(--accent); color: var(--ink); }
.pager small { font-size: 12px; color: var(--muted); }
.pager span { font-weight: 500; overflow-wrap: anywhere; }
.pager .next { text-align: right; grid-column: 2; }
.helpful { margin-top: 32px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; font-size: 14px; color: var(--muted); }
.chip-btn { border: 1px solid var(--control); background: var(--surface); border-radius: 999px; padding: 6px 14px; font-size: 13px; cursor: pointer; }
.chip-btn:hover { border-color: var(--accent); }
.chip-btn[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }

.toc { position: sticky; top: calc(var(--top) + env(safe-area-inset-top, 0px)); align-self: start; padding-block: 32px; max-height: calc(100vh - var(--top)); overflow: auto; font-size: 13px; }
.toc-h { font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin: 0 0 10px; }
.toc ul { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--line-soft); }
.toc a { display: block; padding: 4px 0 4px 12px; margin-left: -1px; border-left: 1px solid transparent; color: var(--muted); text-decoration: none; line-height: 1.35; }
.toc a:hover { color: var(--ink); }
.toc a.l3 { padding-left: 24px; }
.toc a.l4 { padding-left: 36px; font-size: 12.5px; }
.toc a.on { color: var(--accent-ink); border-left-color: var(--accent); font-weight: 500; }
.toc-empty { color: var(--muted); }
.toc-ask { margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--line-soft); }
.toc-ask a { color: var(--accent-ink); font-weight: 500; text-decoration: none; }

.skip { position: absolute; left: 16px; top: -64px; z-index: 100; background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 999px; font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; color: var(--bg); }
.actions { display: flex; flex-wrap: wrap; gap: 8px; margin-left: auto; }
.act { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border: 1px solid var(--control); border-radius: 999px; background: var(--surface); color: var(--ink); font-size: 13px; font-weight: 500; cursor: pointer; }
.act:hover { border-color: var(--accent); }
.act[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.act svg { flex: none; }
.listen-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 10px 12px; margin: -12px 0 24px; border-radius: 8px; background: var(--tint); font-size: 13px; max-width: 84ch; }
.listen-bar select { height: 32px; border: 1px solid var(--control); border-radius: 999px; background: var(--surface); color: var(--ink); font: 13px var(--font-body); padding: 0 8px; }
.speaking { background: var(--speak); box-shadow: 0 0 0 4px var(--speak); border-radius: 2px; }
.hlink { opacity: 0; margin-left: 8px; border: 0; background: none; cursor: pointer; color: var(--muted); font-size: 0.8em; vertical-align: middle; border-radius: 4px; padding: 2px 4px; }
.art :is(h2, h3, h4):hover .hlink, .hlink:focus-visible { opacity: 1; }
.hlink:hover { color: var(--accent-ink); }
.sharebox { display: flex; gap: 8px; align-items: center; margin: -12px 0 24px; max-width: 84ch; }
.sharebox input { flex: 1; min-width: 0; height: 36px; border: 1px solid var(--control); border-radius: 999px; padding: 0 14px; background: var(--surface); color: var(--ink); font: 13px var(--font-mono); }
/* landing, ask, connect */
.hero { padding-block: 64px 40px; max-width: 900px; }
.eyebrow { font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin: 0 0 16px; }
.display { font: 200 clamp(40px, 6vw, 68px)/1.0 var(--font-display); letter-spacing: -0.02em; margin: 0 0 24px; text-wrap: balance; }
.display em { font-style: italic; font-weight: 200; }
.lead { font-size: 18px; line-height: 1.55; max-width: 62ch; margin: 0 0 28px; color: var(--ink); }
.btns { display: flex; flex-wrap: wrap; gap: 12px; }
.btn { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 20px; border-radius: 999px; font-weight: 600; font-size: 15px; text-decoration: none; cursor: pointer; border: 1px solid transparent; }
.btn-p { background: var(--btn); color: #fff; }
.btn-p:hover { background: var(--btn-hover); color: #fff; }
.btn-s { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-s:hover { background: var(--ink); color: var(--bg); }
.rule { border: 0; border-top: 1px solid var(--accent); margin: 0; }
.ways { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--accent); border-bottom: 1px solid var(--line-soft); margin-bottom: 64px; }
.way { padding: 28px 28px 32px 0; text-decoration: none; color: var(--ink); display: flex; flex-direction: column; gap: 8px; }
.way + .way { padding-left: 28px; border-left: 1px solid var(--line-soft); }
.way:hover { color: var(--ink); }
.way:hover .way-t { color: var(--accent-ink); }
.way-k { font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.way-t { font: 300 30px/1.1 var(--font-display); letter-spacing: -0.01em; transition: color 0.2s ease-out; }
.way-d { font-size: 15px; color: var(--muted); max-width: 40ch; }
.way-go { margin-top: auto; padding-top: 8px; font-size: 14px; font-weight: 600; color: var(--accent-ink); }
.sec { margin-bottom: 64px; }
.sec-h { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.sec-h h2 { font: 300 34px/1.1 var(--font-display); letter-spacing: -0.01em; margin: 0; }
.sec-h p { margin: 0; color: var(--muted); font-size: 14px; }
.apps { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.appr { display: flex; flex-direction: column; gap: 10px; padding: 24px; border-radius: 8px; background: var(--surface); border: 1px solid var(--line-soft); text-decoration: none; color: var(--ink); transition: border-color 0.2s ease-out, transform 0.2s ease-out; min-width: 0; }
.appr:hover { border-color: var(--accent); color: var(--ink); transform: translateY(-2px); }
.appr.feat { background: var(--feat-bg); color: #F7F7EF; border-color: var(--feat-line); }
.appr.feat .appr-d, .appr.feat .appr-n { color: #D4DDD3; }
.appr-n { font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); font-variant-numeric: tabular-nums; }
.appr-t { font-weight: 600; font-size: 19px; line-height: 1.25; }
.appr-d { font-size: 14px; color: var(--muted); line-height: 1.5; }
.appr-v { margin-top: auto; display: flex; flex-wrap: wrap; gap: 6px; padding-top: 6px; }
.tag { font-size: 12px; padding: 2px 10px; border-radius: 999px; border: 1px solid var(--line); color: var(--ink); background: var(--bg); white-space: nowrap; }
.appr.feat .tag { background: transparent; color: #F7F7EF; border-color: #366455; }
.two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; }
.list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-soft); }
.list li { border-bottom: 1px solid var(--line-soft); }
.list a { display: flex; justify-content: space-between; gap: 16px; padding: 14px 4px; text-decoration: none; color: var(--ink); min-width: 0; }
.list a:hover { color: var(--accent-ink); }
.list .l-t { font-weight: 500; min-width: 0; overflow-wrap: anywhere; }
.list .l-m { color: var(--muted); font-size: 13px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.list .l-p { display: block; font-size: 12px; color: var(--muted); font-weight: 400; margin-top: 2px; }
.foot { border-top: 1px solid var(--accent); padding-block: 24px 40px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 13px; color: var(--muted); }



/* search dialog */
.sdlg { position: fixed; inset: 0; z-index: 60; background: rgb(0 58 42 / 0.35); display: flex; justify-content: center; align-items: flex-start; padding: 10vh 16px 16px; }
.sbox { width: 100%; max-width: 680px; background: var(--surface); border-radius: 20px; box-shadow: var(--shadow); overflow: hidden; border: 1px solid var(--line-soft); display: flex; flex-direction: column; max-height: 76vh; }
.sin { display: flex; align-items: center; gap: 10px; padding: 0 16px; border-bottom: 1px solid var(--line-soft); }
.sin input { flex: 1; min-width: 0; height: 56px; border: 0; background: transparent; color: var(--ink); font: 17px var(--font-body); outline: none; }
.sres { overflow: auto; padding: 8px; }
.sres a { display: block; padding: 10px 12px; border-radius: 8px; text-decoration: none; color: var(--ink); }
.sres a:hover, .sres a.sel { background: var(--tint); }
.sr-t { font-weight: 600; font-size: 15px; }
.sr-p { font-size: 12px; color: var(--muted); }
.sr-s { font-size: 13px; color: var(--muted); margin-top: 2px; overflow-wrap: anywhere; }
.sres mark { background: var(--orange-100); color: var(--ink); border-radius: 2px; padding: 0 1px; }
.sfoot { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 10px 16px; border-top: 1px solid var(--line-soft); font-size: 12px; color: var(--muted); }
.sfoot a { color: var(--accent-ink); font-weight: 600; text-decoration: none; }
.sempty { padding: 24px 12px; color: var(--muted); font-size: 14px; }
.scrim { display: none; }

@media (max-width: 1180px) { .docs, .docs.no-toc { grid-template-columns: 272px minmax(0, 1fr); } .toc { display: none; } }
@media (max-width: 860px) {
  .top-in { padding-inline: 16px; gap: 10px; }
  .view { padding-inline: 16px; }
  .lockup-sep, .lockup-t { display: none; }
  .searchbtn { flex: 1 1 auto; }
  .searchbtn kbd { display: none; }
  .top-in { height: auto; flex-wrap: wrap; padding-block: 10px; }
  .nav { order: 10; width: 100%; overflow-x: auto; }
  .nav a { padding: 6px 12px; }
  .menubtn { display: inline-block; }
  .docs, .docs.no-toc { grid-template-columns: minmax(0, 1fr); gap: 0; }
  :root { --top: 110px; }
  .tree { position: fixed; z-index: 50; top: 0; bottom: 0; left: 0; width: min(86vw, 340px); max-height: none; background: var(--bg); padding: 24px 16px calc(24px + env(safe-area-inset-bottom, 0px)); transform: translateX(-100%); visibility: hidden; transition: transform 0.2s ease-out, visibility 0s linear 0.2s; border-right: 1px solid var(--line); }
  body.menu-open .tree { transform: none; visibility: visible; transition: transform 0.2s ease-out; }
  body.menu-open .scrim { display: block; position: fixed; inset: 0; z-index: 45; background: rgb(0 58 42 / 0.35); }
  .mnav { display: flex !important; }
  .ways { grid-template-columns: minmax(0, 1fr); }
  .way, .way + .way { padding: 24px 0; border-left: 0; }
  .way + .way { border-top: 1px solid var(--line-soft); }
  .two { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .pager { grid-template-columns: minmax(0, 1fr); }
  .pager .next { grid-column: 1; }
}
.mnav { display: none; flex-direction: column; gap: 4px; margin-bottom: 20px; padding-bottom: 16px; border-bottom: 1px solid var(--line-soft); }
.mnav a { text-decoration: none; color: var(--ink); font-weight: 500; padding: 8px; border-radius: 6px; }
.mnav a[aria-current="page"] { background: var(--ink); color: var(--bg); }
@media (prefers-reduced-motion: reduce) { *, *::before { transition: none !important; animation: none !important; } }

a.hlink { text-decoration: none; }
.foot-in { max-width: none; }
.tree-n { display: block; }
.js .db:not(.all) tr[data-more], .js .db tr[data-nomatch] { display: none; }

/* Ask the guide + Connect your agent */
.pill { display: inline-block; font-size: 11px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; padding: 2px 8px; border-radius: 999px; background: var(--pink-200); color: var(--ink); border: 1px solid var(--line); vertical-align: middle; }
.ask { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 48px; padding-block: 48px 64px; }
.ask-main { min-width: 0; max-width: 800px; }
.ask h1, .connect h1 { font: 200 clamp(36px, 5vw, 56px)/1.02 var(--font-display); letter-spacing: -0.02em; margin: 0 0 16px; text-wrap: balance; }
.ask h1 em, .connect h1 em { font-style: italic; }
.thread { display: flex; flex-direction: column; gap: 20px; margin: 28px 0; }
.msg-u { align-self: flex-end; max-width: 85%; background: var(--ink); color: var(--bg); padding: 12px 16px; border-radius: 16px 16px 4px 16px; font-size: 15px; white-space: pre-wrap; overflow-wrap: anywhere; }
.msg-a { background: var(--surface); border: 1px solid var(--line-soft); border-radius: 8px; padding: 18px 20px; min-width: 0; }
.msg-a .art { font-size: 15px; }
.trace { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.trace span { font-size: 12px; padding: 2px 10px; border-radius: 999px; background: var(--tint); color: var(--muted); }
.thinking { color: var(--muted); font-size: 14px; display: flex; align-items: center; gap: 8px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); animation: pulse 1.2s ease-out infinite; }
@keyframes pulse { 0%, 100% { opacity: 0.25; } 50% { opacity: 1; } }
.src { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line-soft); font-size: 13px; }
.src b { font-weight: 600; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); display: block; margin-bottom: 6px; }
.src a { display: inline-block; margin: 0 12px 4px 0; }
.err { color: var(--orange-700); font-size: 14px; }
:root[data-theme="dark"] .err { color: var(--link); }
.composer { position: sticky; bottom: 16px; display: flex; gap: 8px; align-items: flex-end; background: var(--surface); border: 1px solid var(--control); border-radius: 20px; padding: 8px 8px 8px 16px; box-shadow: var(--shadow); }
.composer textarea { flex: 1; min-width: 0; border: 0; resize: none; background: transparent; color: var(--ink); font: 16px/1.5 var(--font-body); padding: 8px 0; max-height: 200px; outline: none; }
.composer .btn { height: 40px; }
.sugs { display: flex; flex-direction: column; gap: 8px; }
.sug { text-align: left; border: 1px solid var(--line-soft); background: var(--surface); border-radius: 8px; padding: 12px 14px; cursor: pointer; font-size: 14px; line-height: 1.4; }
.sug:hover { border-color: var(--accent); }
.side-h { font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin: 0 0 12px; }
.note { font-size: 13px; color: var(--muted); line-height: 1.5; }
.note + .note { margin-top: 10px; }
.connect { padding-block: 48px 64px; max-width: 1080px; }
.endpoint { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px 24px; align-items: center; padding: 24px 28px; border-radius: 20px; background: var(--green); color: #F7F7EF; margin: 32px 0 48px; }
.endpoint-k { font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: #A8BBB0; margin-bottom: 6px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.endpoint-u { font: 500 clamp(16px, 2.4vw, 22px) var(--font-mono); overflow-wrap: anywhere; }
.endpoint-f { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 12px; font-size: 13px; color: #D4DDD3; }
.endpoint .btn { background: #F7F7EF; color: var(--green); }
.endpoint .btn:hover { background: #fff; color: var(--green); }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; margin-bottom: 48px; }
.step { background: var(--surface); border: 1px solid var(--line-soft); border-radius: 8px; padding: 24px; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.step-k { font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); display: flex; justify-content: space-between; gap: 8px; }
.step h3 { font-size: 19px; margin: 0; font-weight: 600; }
.step ol { margin: 0; padding-left: 20px; font-size: 14px; }
.step ol li { margin: 4px 0; }
.step .code { margin: 4px 0 0; }
.tools { width: 100%; border-collapse: collapse; font-size: 14px; }
.tools th, .tools td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
.tools th { font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.tools td:first-child { font: 13px var(--font-mono); white-space: nowrap; color: var(--accent-ink); }
.guard { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; border-top: 1px solid var(--accent); padding-top: 24px; }
.guard h3 { font-size: 15px; margin: 0 0 6px; font-weight: 600; }
.guard p { margin: 0; font-size: 14px; color: var(--muted); }
.pill.live { background: var(--green-50); }
@media (max-width: 1180px) { .ask { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 860px) { .endpoint { grid-template-columns: minmax(0, 1fr); } }
.cost-note { margin-top: 12px; }
