/* Dedicated English docs shell. Deliberately independent of dashboard theme. */
:root { color-scheme: light; --docs-bg: #fcfaf7; --docs-ink: #24201c; --docs-muted: #726b64; --docs-border: #e9e3dc; --docs-accent: #956940; --docs-nav-height: 122px; }
* { box-sizing: border-box; }
html { scroll-padding-top: 150px; }
body { margin: 0; background: var(--docs-bg); color: var(--docs-ink); font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size: 15px; line-height: 1.8; -webkit-font-smoothing: antialiased; }
button, input { font: inherit; }
button { cursor: pointer; }
a { color: #865a33; text-decoration: none; text-underline-offset: 4px; }
a:hover { text-decoration: underline; }
button, a, input, summary { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid #a67c52; outline-offset: 4px; }
button:disabled { cursor: default; opacity: .6; }
[hidden] { display: none !important; }
.icon { vertical-align: middle; flex: 0 0 auto; }
.js-only { display: none !important; }
.docs-enhanced .js-only { display: inline-flex !important; }
.docs-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.docs-skip { position: fixed; top: -5rem; left: 1rem; z-index: 100; padding: .75rem 1rem; background: white; }
.docs-skip:focus { top: 1rem; }
.docs-header { position: sticky; z-index: 30; top: 0; display: flex; align-items: center; gap: 2rem; height: 76px; padding: 0 max(2rem,calc((100vw - 1440px)/2)); border-bottom: 1px solid var(--docs-border); background: rgba(252,250,247,.97); backdrop-filter: blur(16px); }
.docs-brand { display: flex; align-items: center; gap: .55rem; flex: 0 0 auto; color: #17120f; font-size: 1.15rem; font-weight: 750; letter-spacing: -.035em; white-space: nowrap; }
.docs-brand:hover { text-decoration: none; }
.docs-brand img { object-fit: contain; }
.docs-brand small { padding-left: .7rem; margin-left: .2rem; border-left: 1px solid #e6d9c9; color: #8e6b4b; font-size: .72rem; letter-spacing: .025em; font-weight: 400; }
.docs-search-trigger { display: flex; flex: 1; max-width: 400px; min-width: 0; align-items: center; gap: .75rem; margin-left: 2.2rem; padding: .6rem .85rem; border: 1px solid #e6dfd7; border-radius: .6rem; background: #fffdfb; color: #9a9086; font-size: .75rem; text-align: left; }
.docs-search-trigger kbd { margin-left: auto; }
kbd { border: 1px solid #e4ddd4; padding: 0 .35rem; border-radius: .25rem; color: #9a9086; font-family: inherit; font-size: .65rem; line-height: 1.6; white-space: nowrap; }
.docs-header-links { display: flex; align-items: center; gap: 1.5rem; margin-left: auto; font-size: .72rem; white-space: nowrap; }
.docs-button { display: inline-flex; align-items: center; justify-content: center; gap: 1rem; min-height: 2.75rem; padding: .65rem 1rem; border: 1px solid #241b14; border-radius: .6rem; color: #fffaf4; background: #241b14; font-size: .76rem; line-height: 1.5; font-weight: 600; text-align: center; }
.docs-button:hover { background: #473425; color: #fffaf4; text-decoration: none; }
.docs-subnav { position: sticky; top: 76px; z-index: 20; display: flex; align-items: center; height: 46px; padding: 0 max(2rem,calc((100vw - 1440px)/2)); background: var(--docs-bg); border-bottom: 1px solid var(--docs-border); }
.docs-subnav > span { width: 255px; flex: 0 0 auto; color: #a09487; font-size: .55rem; letter-spacing: .11em; font-weight: 600; }
.docs-subnav nav { display: flex; height: 100%; gap: 1.75rem; }
.docs-subnav a { display: inline-flex; align-items: center; border-bottom: 2px solid transparent; color: #81776d; font-size: .73rem; }
.docs-subnav .is-current { color: #795231; border-bottom-color: #956940; font-weight: 650; }
.docs-layout { display: grid; grid-template-columns: 225px minmax(0,790px) 180px; gap: 3rem; max-width: 1440px; margin: 0 auto; padding: 0 2rem; }
.docs-sidebar { position: sticky; top: var(--docs-nav-height); align-self: start; height: calc(100dvh - var(--docs-nav-height)); overflow-y: auto; padding: 2.2rem 1.15rem 2rem 0; border-right: 1px solid var(--docs-border); scrollbar-width: thin; }
.docs-nav-group { margin-bottom: 1.75rem; }
.docs-nav-group > p { margin: 0 0 .7rem; padding: 0 .65rem; color: #998c7d; font-size: .55rem; letter-spacing: .095em; font-weight: 650; }
.docs-nav-group a { display: flex; align-items: center; gap: .65rem; padding: .4rem .65rem; margin: .1rem 0; color: #777069; border-radius: .45rem; font-size: .76rem; line-height: 1.7; }
.docs-nav-group a:hover { color: #6b482c; background: #f6f0e9; text-decoration: none; }
.docs-nav-group a[aria-current="location"] { color: #835b36; background: #f1e8dc; font-weight: 600; }
.docs-sidebar-help { display: flex; gap: .65rem; align-items: start; margin-top: 2.3rem; padding: .9rem .75rem; border: 1px solid #e6dbcf; border-radius: .65rem; background: #f8f2e9; color: #8a6645; }
.docs-sidebar-help strong { display: block; font-size: .65rem; font-weight: 600; line-height: 1.6; }
.docs-sidebar-help small { display: block; margin-top: .45rem; font-size: .6rem; }
.docs-content { min-width: 0; padding: 2.75rem 0 0; }
.docs-content section { padding: 2.9rem 0; border-bottom: 1px solid var(--docs-border); }
.docs-content .docs-intro { padding-top: 0; padding-bottom: 2.75rem; }
.docs-content h1 { margin: 1rem 0 1rem; color: #211a15; font-size: clamp(2.2rem,3.6vw,3.25rem); font-weight: 750; line-height: 1.12; letter-spacing: -.045em; text-wrap: balance; }
.docs-content h2 { margin: .7rem 0 1.1rem; color: #2e251e; font-size: clamp(1.65rem,2.4vw,2.1rem); font-weight: 650; line-height: 1.25; letter-spacing: -.035em; text-wrap: balance; }
.docs-content h3 { margin: 1.8rem 0 .7rem; font-size: 1.06rem; font-weight: 650; line-height: 1.45; letter-spacing: -.02em; }
.docs-content p, .docs-content li { color: #726b64; font-size: .89rem; line-height: 1.9; }
.docs-content p { margin: .85rem 0; }
.docs-content strong { color: #4d4137; font-weight: 600; }
.docs-content .docs-lede { max-width: 41rem; margin: 1.2rem 0 1.4rem; font-size: 1rem; line-height: 1.85; color: #817368; }
.docs-content .docs-eyebrow, .docs-section-label { font-size: .58rem; color: #9b7655; font-weight: 650; letter-spacing: .11em; }
.docs-eyebrow span { margin: 0 .55rem; color: #c7b7a6; }
.docs-hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1.2rem; margin: 1.75rem 0 2.2rem; }
.docs-text-link { color: #8d6b4d; font-size: .75rem; font-weight: 550; }
.docs-entry-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: .8rem; }
.docs-entry-grid a { position: relative; min-width: 0; padding: 1.2rem 1.05rem; border: 1px solid #e5dacc; background: #fffcf8; border-radius: .8rem; color: #98714e; transition: border-color .15s, background .15s; }
.docs-entry-grid a:hover { border-color: #bc9571; background: #fff9f0; text-decoration: none; }
.docs-entry-grid h3 { margin: .85rem 0 .3rem; color: #554333; font-size: .84rem; font-weight: 600; }
.docs-entry-grid p { margin: 0; color: #908273; font-size: .7rem; line-height: 1.7; }
.docs-entry-grid a > span { position: absolute; top: .85rem; right: .85rem; color: #af977d; font-size: .8rem; }
.docs-base-url { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .8rem; margin-top: 1.4rem; padding: .85rem 1rem; border: 1px solid #ebe4db; border-radius: .6rem; background: #f6f1e9; }
.docs-base-url > span { color: #a28d77; font-size: .51rem; font-weight: 600; letter-spacing: .08em; }
.docs-base-url code { padding: 0; border: 0; background: none; color: #695444; font-size: .71rem; }
.docs-base-url a { margin-left: auto; color: #99826b; font-size: .6rem; }
code { font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace; font-size: .82em; border: 1px solid #e8dfd5; border-radius: .3rem; padding: .15rem .3rem; background: #f5f0e9; color: #8a6544; overflow-wrap: anywhere; }
.docs-callout { display: flex; align-items: flex-start; gap: .8rem; margin: 1.4rem 0; padding: 1rem 1.15rem; border: 1px solid #e6dbc9; background: #f7f1e7; border-radius: .7rem; color: #a0835d; }
.docs-callout .icon { margin-top: .2rem; }
.docs-callout p { margin: 0; color: #8b765e; font-size: .78rem; line-height: 1.75; }
.docs-callout.is-warning { display: block; background: #fcf2dd; border-color: #e9d29e; }
.docs-step { display: flex; align-items: start; gap: .8rem; margin: 1.6rem 0 .8rem; }
.docs-step-number { display: flex; align-items: center; justify-content: center; flex: 0 0 auto; width: 1.65rem; height: 1.65rem; margin-top: .15rem; border: 1px solid #e6d9c9; background: #f5ecdf; color: #92714e; font-size: .7rem; font-weight: 600; border-radius: 50%; }
.docs-step h3 { margin: .05rem 0 .3rem; }
.docs-step p { margin: .3rem 0; }
.docs-code { max-width: 100%; min-width: 0; border: 1px solid #3c3229; border-radius: .7rem; background: #211d19; overflow: hidden; margin: 1.05rem 0; }
.docs-code-bar { display: flex; align-items: center; justify-content: space-between; min-height: 2.6rem; padding: .45rem 1rem; border-bottom: 1px solid #3c3229; background: #2c251f; }
.docs-code-bar > span { color: #bba58e; font-size: .62rem; }
.docs-copy { display: inline-flex; align-items: center; gap: .35rem; padding: .25rem .4rem; border: 0; border-radius: .25rem; background: transparent; color: #bdaa96; font-size: .62rem; }
.docs-copy:hover { color: #f2d9bb; background: #3a3027; }
.docs-code pre { margin: 0; padding: 1.15rem; max-width: 100%; overflow: auto; tab-size: 2; scrollbar-width: thin; scrollbar-color: #5b4a3a #211d19; line-height: 1.9; }
.docs-code code { display: block; width: max-content; min-width: 100%; margin: 0; padding: 0; border: 0; background: none; color: #e8d9c8; border-radius: 0; font-size: .73rem; line-height: 1.9; overflow-wrap: normal; white-space: pre; }
.docs-tab-list { display: flex; align-items: center; gap: .15rem; margin-top: 1.3rem; border-bottom: 1px solid var(--docs-border); }
.docs-tab-list button { padding: .6rem .9rem; background: none; border: 0; border-bottom: 2px solid transparent; color: #9b8b7a; font-size: .76rem; }
.docs-tab-list button[aria-selected="true"] { border-bottom-color: #94704d; color: #71502f; font-weight: 600; }
.docs-content .docs-install { margin: 1rem 0 .7rem; font-size: .75rem; }
.docs-content .docs-small { font-size: .77rem; color: #958878; }
.docs-content ul { padding-left: 1.25rem; }
.docs-content li { padding-left: .25rem; margin: .6rem 0; }
.docs-content li::marker { color: #bd9f7f; }
.docs-model-options { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1rem; margin: 1.5rem 0; }
.docs-model-options a { display: block; border: 1px solid #e6daca; border-radius: .7rem; padding: 1rem; background: #fffaf3; }
.docs-model-options strong { display: flex; justify-content: space-between; gap: .5rem; color: #705435; font-size: .8rem; }
.docs-model-options a > span { display: block; margin-top: .45rem; color: #978776; font-size: .73rem; }
.docs-table-wrap { max-width: 100%; overflow-x: auto; margin: 1.3rem 0; border: 1px solid var(--docs-border); border-radius: .7rem; }
table { border-collapse: collapse; width: 100%; font-size: .8rem; text-align: left; }
th { background: #f5eee5; color: #8a7159; font-size: .67rem; font-weight: 600; }
th, td { padding: .9rem 1rem; vertical-align: top; border-bottom: 1px solid var(--docs-border); }
td { color: #887a6c; line-height: 1.85; }
tbody tr:last-child td { border-bottom: 0; }
td:first-child { min-width: 135px; }
.docs-endpoints { border: 1px solid #e7ddd1; border-radius: .75rem; overflow: hidden; margin: 1.5rem 0; }
.docs-endpoints > div { display: grid; grid-template-columns: 3.1rem minmax(0,1fr); align-items: center; gap: .45rem .85rem; padding: 1.2rem; border-bottom: 1px solid #e7ddd1; background: #fffdf9; }
.docs-endpoints > div:last-child { border-bottom: 0; }
.docs-endpoints > div > code { width: fit-content; font-size: .73rem; background: none; border: 0; padding: 0; color: #665343; }
.docs-endpoints p { grid-column: 2; margin: 0; font-size: .74rem; line-height: 1.75; }
.docs-method { padding: .08rem .4rem; color: #648273; background: #edf2eb; border: 1px solid #d6e2d5; border-radius: .35rem; font-size: .53rem; text-align: center; font-weight: 700; letter-spacing: .04em; }
.docs-method.is-post { color: #8a7354; background: #f4eddf; border-color: #e5d6bd; }
.docs-next { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; margin-top: 3rem; padding: 1.5rem; background: #f5eddf; border: 1px solid #e7d9c4; border-radius: .75rem; }
.docs-next span { color: #a88962; font-size: .53rem; letter-spacing: .08em; }
.docs-next h3 { margin: .5rem 0 .3rem; font-size: 1.13rem; }
.docs-next p { margin: 0; font-size: .77rem; color: #a0896d; }
.docs-next > a { flex-shrink: 0; }
.docs-next > a span { color: inherit; font-size: inherit; }
.docs-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .7rem; margin-top: 2.7rem; padding: 1.4rem 0; border-top: 1px solid var(--docs-border); }
.docs-footer p { margin: 0; font-size: .62rem; color: #ab9b88; }
.docs-footer nav { display: flex; gap: 1rem; font-size: .63rem; }
.docs-footer a { color: #968168; }
.docs-toc { position: sticky; align-self: start; top: calc(var(--docs-nav-height) + 44px); padding: 0; max-height: calc(100dvh - var(--docs-nav-height) - 60px); overflow-y: auto; scrollbar-width: thin; }
.docs-toc nav > p { margin: 0 0 1rem; color: #a18d76; font-size: .54rem; font-weight: 600; letter-spacing: .1em; }
.docs-toc nav a { display: block; padding: .3rem 0 .3rem .9rem; border-left: 1px solid #e5dacc; color: #9b8d7d; font-size: .68rem; line-height: 1.6; }
.docs-toc nav a[aria-current="location"] { color: #815a34; border-left-color: #9d7049; font-weight: 600; }
.docs-toc-bottom { margin-top: 2rem; padding-top: 1.3rem; border-top: 1px solid var(--docs-border); }
.docs-toc-bottom span { color: #a18d76; font-size: .5rem; letter-spacing: .08em; }
.docs-toc-bottom p { font-size: .7rem; margin: .4rem 0; color: #8b7660; }
.docs-toc-bottom a { font-size: .59rem; color: #a08565; }
.docs-mobile-menu { display: none; }
.docs-search-dialog { width: min(calc(100% - 2rem),620px); max-height: min(80dvh,650px); margin: 12dvh auto auto; padding: 1.25rem; border: 1px solid #e0cfbb; border-radius: .9rem; background: #fffcf7; color: #554432; box-shadow: 0 25px 100px #17120f33; }
.docs-search-dialog::backdrop { background: #1d160f66; backdrop-filter: blur(3px); }
.docs-search-heading { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.docs-search-heading h2 { font-size: 1rem; margin: 0; letter-spacing: -.02em; }
.docs-search-heading button { display: inline-flex; align-items: center; justify-content: center; width: 2rem; height: 2rem; background: none; border: 0; border-radius: .4rem; color: #9a8369; }
.docs-search-dialog input { width: 100%; padding: .75rem 1rem; border: 1px solid #ddcbb3; border-radius: .5rem; margin-top: 1.1rem; font-size: .86rem; background: white; color: #554432; }
#docs-search-count { font-size: .66rem; color: #a1896b; }
#docs-search-results { display: grid; gap: .5rem; }
#docs-search-results a { display: block; padding: .8rem; border: 1px solid #ebe1d4; border-radius: .5rem; background: #fcf6ec; color: #7e5e3c; }
#docs-search-results a:hover { background: #f3e9da; text-decoration: none; }
#docs-search-results strong { display: block; font-size: .78rem; }
#docs-search-results span { display: block; margin-top: .2rem; font-size: .68rem; line-height: 1.7; color: #968168; }
.docs-search-hint { margin-bottom: 0; font-size: .64rem; color: #a48d71; }
@media (max-width: 1200px) {
  .docs-layout { grid-template-columns: 205px minmax(0,1fr); gap: 2.2rem; }
  .docs-toc { display: none; }
  .docs-subnav > span { width: 240px; }
  .docs-search-trigger { margin-left: 0; }
  .docs-header-links { gap: 1rem; }
}
@media (max-width: 900px) {
  .docs-header { gap: 1.1rem; padding-inline: 1.4rem; }
  .docs-layout { padding-inline: 1.4rem; grid-template-columns: 175px minmax(0,1fr); gap: 1.7rem; }
  .docs-subnav { padding-inline: 1.4rem; }
  .docs-subnav > span { width: 203px; }
  .docs-sidebar { padding-right: .75rem; }
  .docs-entry-grid { grid-template-columns: 1fr; gap: .7rem; }
  .docs-entry-grid a { padding: 1rem 1rem 1rem 3.5rem; }
  .docs-entry-grid .icon { position: absolute; left: 1rem; top: 1.15rem; }
  .docs-entry-grid h3 { margin: 0 0 .25rem; }
}
@media (max-width: 700px) {
  :root { --docs-nav-height: 154px; }
  html { scroll-padding-top: 180px; }
  .docs-header { height: 68px; gap: .5rem; padding-inline: 1rem; }
  .docs-brand { font-size: 1rem; gap: .35rem; }
  .docs-brand img { width: 27px; height: 27px; }
  .docs-brand small { margin-left: .1rem; font-size: .54rem; padding-left: .35rem; }
  .docs-header-links { margin-left: 0; }
  .docs-header-links .docs-button { font-size: .62rem; padding: .5rem .65rem; min-height: 2.2rem; gap: .5rem; }
  .docs-header-links .docs-button > span { display: none; }
  .docs-search-trigger { margin-left: auto; padding: .5rem; width: 2.2rem; height: 2.2rem; flex: 0 0 auto; }
  .docs-search-trigger > span, .docs-search-trigger kbd { display: none; }
  .docs-subnav { top: 68px; height: 42px; padding-inline: 1.25rem; }
  .docs-subnav > span { display: none; }
  .docs-subnav nav { gap: 1.5rem; }
  .docs-subnav a { font-size: .7rem; }
  .docs-sidebar { display: none; }
  .docs-layout { display: block; padding-inline: 1.25rem; }
  .docs-content { padding-top: 2rem; }
  .docs-content h1 { font-size: 2.35rem; max-width: 24rem; }
  .docs-content .docs-lede { font-size: .92rem; }
  .docs-content section { padding-block: 2.3rem; }
  .docs-content p, .docs-content li { font-size: .86rem; }
  .docs-mobile-menu { display: block; position: sticky; top: 110px; z-index: 20; border-bottom: 1px solid var(--docs-border); background: #f8f3eb; }
  .docs-mobile-menu > summary { display: flex; align-items: center; justify-content: space-between; min-height: 44px; padding: .65rem 1.25rem; color: #9b7b57; font-size: .7rem; cursor: pointer; list-style: none; }
  .docs-mobile-menu > summary::-webkit-details-marker { display: none; }
  .docs-mobile-menu[open] > summary .icon { transform: rotate(90deg); }
  .docs-mobile-menu nav { max-height: calc(100dvh - 155px); overflow: auto; padding: 1.2rem; border-top: 1px solid var(--docs-border); background: #fffcf7; }
  .docs-mobile-menu .docs-nav-group:last-child { margin-bottom: 0; }
  .docs-model-options { grid-template-columns: 1fr; }
  .docs-code pre { padding: .9rem; }
  .docs-code code { font-size: .68rem; }
  .docs-code-bar { padding-inline: .8rem; }
  .docs-base-url > span { flex-basis: 100%; }
  .docs-base-url code { font-size: .66rem; }
  .docs-base-url a { margin-left: 0; }
  .docs-endpoints > div { padding: 1rem .8rem; gap: .5rem; grid-template-columns: 2.6rem minmax(0,1fr); }
  .docs-endpoints > div > code { font-size: .66rem; }
  .docs-next { flex-direction: column; align-items: start; }
  .docs-search-dialog { margin-top: 5dvh; padding: 1rem; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }
