:root {
  color-scheme: dark;
  --bg: #111111;
  --panel: #171717;
  --line: #30302e;
  --text: #e8e6e1;
  --muted: #a5a59f;
  --accent: #a6d4e2;
  --source-color: #d8b58d;
  --success-color: #a9ceb7;
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-synthesis: none;
}
* { box-sizing: border-box; }
html { scroll-padding-top: 112px; }
body { margin: 0; background: var(--bg); color: var(--text); font-size: 14px; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { color: inherit; cursor: pointer; }
a:hover { color: #fff; }
a:focus-visible, button:focus-visible, input:focus-visible, summary:focus-visible, pre:focus-visible, .docs-table:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
::selection { background: #334a50; color: #fff; }
.skip { position: fixed; top: -80px; left: 16px; z-index: 100; background: var(--text); color: var(--bg); padding: 12px; }
.skip:focus { top: 10px; }
.docs-header { display: flex; align-items: center; gap: 32px; height: 88px; padding: 0 32px; border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 10px; font-size: 22px; }
.brand > span { color: var(--muted); font-size: 13px; }
.docs-header nav { display: flex; gap: 24px; color: var(--muted); }
.workspace-link { margin-left: auto; font-size: 13px; }
.docs-layout { display: grid; grid-template-columns: 218px minmax(0, 720px) 178px; gap: 36px; width: calc(100% - 96px); max-width: 1200px; margin: auto; border-top: 1px solid var(--line); }
.docs-sidebar { position: sticky; top: 88px; height: calc(100dvh - 88px); overflow: auto; padding: 24px 20px 24px 0; border-right: 1px solid var(--line); display: flex; flex-direction: column; scrollbar-width: thin; }
.search-trigger { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; padding: 10px; margin-bottom: 26px; border: 1px solid var(--line); border-radius: 5px; background: var(--panel); color: var(--muted); text-align: left; font-size: 12px; }
.search-trigger:hover { border-color: #65655f; color: var(--text); }
.search-trigger kbd { font: 10px ui-monospace, monospace; white-space: nowrap; }
.nav-group { margin-bottom: 24px; }
.nav-group h2 { margin: 0 0 7px; padding-left: 10px; color: var(--text); font-size: 12px; font-weight: 600; }
.nav-group a { display: block; padding: 7px 10px; margin: 2px 0; border-radius: 4px; color: var(--muted); font-size: 13px; line-height: 1.5; }
.nav-group a:hover { background: #1b1b1a; color: var(--text); }
.nav-group [aria-current=page] { background: #202220; color: #d0dfd4; box-shadow: inset 2px 0 #aec4b6; }
.sidebar-bottom { margin-top: auto; padding: 16px 10px 0; border-top: 1px solid var(--line); }
.sidebar-bottom a { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 7px 0; color: var(--muted); font-size: 12px; }
.status-dot { display: none; }
main { min-width: 0; padding-top: 29px; }
.breadcrumb { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; color: var(--muted); font-size: 12px; line-height: 1.6; }
.breadcrumb a:hover { color: var(--text); }
.breadcrumb span[aria-hidden] { color: #62625d; }
.breadcrumb [aria-current] { color: #d0cec7; }
.docs-prose { color: #b9b9b2; font-size: 15px; line-height: 1.8; overflow-wrap: anywhere; }
.docs-prose h1 { color: var(--text); margin: 0 0 16px; font-size: clamp(29px, 3vw, 38px); line-height: 1.2; letter-spacing: -.035em; font-weight: 450; }
.docs-prose > h1 + p { margin: 0 0 25px; color: #b9b9b2; font-size: 16px; line-height: 1.75; }
.docs-prose h2 { color: var(--text); margin: 34px 0 12px; font-size: 21px; line-height: 1.45; letter-spacing: -.02em; font-weight: 600; scroll-margin-top: 112px; }
.docs-prose h3 { color: var(--text); margin: 26px 0 10px; font-size: 17px; font-weight: 600; }
.docs-prose p { margin: 13px 0; }
.docs-prose strong { color: #dcdad3; font-weight: 600; }
.docs-prose ul, .docs-prose ol { padding-left: 22px; }
.docs-prose li + li { margin-top: 7px; }
.docs-prose p a, .docs-prose li a, .docs-prose td a { color: var(--accent); text-decoration: underline; text-underline-offset: 4px; text-decoration-color: #4b6269; }
.docs-prose a:hover { text-decoration-color: currentColor; }
.heading-anchor { color: var(--accent); opacity: 0; margin-left: 9px; font-size: 15px; }
h2:hover .heading-anchor, .heading-anchor:focus { opacity: 1; }
.docs-toc { position: sticky; top: 88px; height: fit-content; max-height: calc(100dvh - 88px); overflow: auto; padding: 30px 0; color: var(--muted); font-size: 12px; }
.docs-toc p { color: var(--text); margin: 0 0 13px; font-weight: 600; }
.docs-toc nav a { display: block; padding: 6px 0 6px 12px; border-left: 1px solid var(--line); line-height: 1.6; }
.docs-toc nav a.active { border-color: var(--accent); color: var(--accent); }
.toc-help { border-top: 1px solid var(--line); margin-top: 24px; padding-top: 18px; line-height: 1.8; }
.toc-help span, .toc-help a { display: block; }
.toc-help a { margin-top: 7px; color: var(--accent); }
.docs-illustration { display: grid; grid-template-columns: minmax(0, 1fr) 22px minmax(0, 1fr); align-items: center; gap: 16px; padding: 24px 0; margin: 26px 0; border-block: 1px solid var(--line); }
.visual-label { display: block; margin-bottom: 12px; font: 10px/1.5 ui-monospace, monospace; letter-spacing: .08em; }
.visual-source .visual-label { color: var(--source-color); }
.visual-api .visual-label { color: var(--accent); }
.mock-url { padding: 8px; border: 1px solid #474039; border-radius: 4px; color: var(--source-color); font: 10px/1.6 ui-monospace, monospace; overflow-wrap: anywhere; }
.mock-url i { display: inline-block; width: 5px; height: 5px; margin-right: 6px; border-radius: 50%; background: var(--source-color); }
.mock-record { display: grid; grid-template-columns: 24px 1fr; gap: 6px 9px; height: 35px; margin-top: 7px; padding: 7px; border: 1px solid #34322e; border-radius: 3px; }
.mock-record b { grid-row: span 2; background: #584b3c; border-radius: 2px; }
.mock-record span { align-self: center; width: 85%; height: 3px; background: #6c5b47; }
.mock-record span:last-child { width: 55%; background: #453c31; }
.visual-arrow { color: #757770; font-size: 22px; text-align: center; }
.visual-api { min-width: 0; }
.mock-endpoint { color: var(--accent); padding-bottom: 10px; border-bottom: 1px solid var(--line); font-size: 12px; }
.mock-endpoint span { margin-right: 7px; font: 10px ui-monospace, monospace; }
.visual-api pre { overflow: auto; margin: 12px 0 0; color: #b8c1c4; font: 11px/1.8 ui-monospace, monospace; }
.visual-api pre span { color: var(--accent); }
.visual-api em { color: var(--text); font-style: normal; }
.docs-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin: 22px 0; }
.docs-cards > a { position: relative; border-top: 1px solid #4b4d46; padding: 17px 0; }
.docs-cards > a:hover { border-color: var(--accent); }
.card-symbol { position: absolute; top: 16px; right: 0; color: var(--accent); font-size: 16px; }
.docs-cards strong { display: block; padding-right: 20px; color: var(--text); font-size: 14px; font-weight: 600; }
.docs-cards p { margin: 9px 0 12px; color: var(--muted); font-size: 13px; line-height: 1.7; }
.card-link { color: var(--accent); font-size: 12px; }
.docs-prose .docs-steps { list-style: none; counter-reset: steps; padding: 0; margin: 22px 0; }
.docs-steps li { position: relative; counter-increment: steps; padding: 0 0 23px 36px; margin: 0 0 0 11px; border-left: 1px solid var(--line); }
.docs-steps li:last-child { padding-bottom: 0; border-color: transparent; }
.docs-steps li::before { content: counter(steps); position: absolute; left: -12px; top: 1px; display: grid; place-items: center; width: 24px; height: 24px; border: 1px solid #4b4e46; border-radius: 50%; background: var(--bg); color: #c7d2c9; font: 11px ui-monospace, monospace; }
.docs-steps p { font-size: 14px; margin: 5px 0 0; }
.docs-note { border-left: 2px solid var(--accent); padding: 7px 18px; margin: 25px 0; color: var(--muted); font-size: 14px; }
.docs-note p { margin: 5px 0 0; }
.docs-prose code { font: 12px/1.75 ui-monospace, 'SFMono-Regular', Consolas, monospace; color: #d5dedb; background: #1e201e; border: 1px solid #353833; border-radius: 3px; padding: 2px 4px; overflow-wrap: anywhere; }
.docs-code { margin: 22px 0; border: 1px solid #383b36; border-radius: 6px; background: var(--panel); overflow: hidden; }
.code-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 13px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 11px; }
.code-toolbar button { padding: 5px 9px; border: 1px solid #41443d; border-radius: 4px; background: transparent; color: var(--text); font-size: 11px; min-width: 56px; }
.code-toolbar button:hover { border-color: #9bb9a7; }
.docs-code pre { overflow: auto; padding: 17px; margin: 0; scrollbar-width: thin; }
.docs-code code { padding: 0; border: 0; background: none; color: #d0d9d6; font-size: 12px; white-space: pre; overflow-wrap: normal; }
.docs-table { max-width: 100%; overflow-x: auto; margin: 22px 0; scrollbar-width: thin; }
.docs-prose table { width: 100%; border-collapse: collapse; font-size: 13px; line-height: 1.7; }
.docs-prose th, .docs-prose td { padding: 11px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.docs-prose th { background: var(--panel); color: #d6d5ce; font-weight: 600; }
.docs-prose td:first-child, .docs-prose th:first-child { padding-left: 10px; }
.page-pagination { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin: 40px 0 25px; }
.page-pagination a { display: flex; flex-direction: column; gap: 6px; border-top: 1px solid var(--line); padding: 15px 0; }
.page-pagination a:last-child { text-align: right; }
.page-pagination a:hover { border-color: var(--accent); }
.page-pagination span { color: var(--muted); font-size: 11px; }
.page-pagination strong { color: var(--accent); font-size: 13px; font-weight: 450; }
.article-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding: 20px 0 30px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; }
.mobile-bar, .mobile-toc { display: none; }
.mobile-toc { margin: 0 0 24px; border-block: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.mobile-toc summary { padding: 11px 0; cursor: pointer; color: var(--text); }
.mobile-toc nav { display: grid; gap: 1px; padding: 0 0 12px; }
.mobile-toc nav a { color: var(--accent); padding: 6px 0; line-height: 1.5; }
.search-dialog { width: min(600px, calc(100% - 32px)); max-height: 78dvh; padding: 0; margin: 0 auto; top: 10vh; background: #171717; color: var(--text); border: 1px solid #484a43; border-radius: 8px; box-shadow: 0 24px 80px #0009; }
.search-dialog::backdrop { background: #000a; }
.search-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 18px; font-size: 13px; }
.search-heading button { border: 1px solid #45473f; background: transparent; border-radius: 4px; padding: 5px 8px; font-size: 11px; color: var(--muted); }
.search-dialog input { display: block; width: calc(100% - 36px); margin: 0 18px 14px; padding: 11px; border: 1px solid #4b4f45; border-radius: 5px; background: var(--bg); color: var(--text); outline-offset: 1px; }
.search-dialog #search-results { max-height: 43dvh; overflow: auto; padding: 0 9px 10px; }
.search-result { display: block; padding: 12px; border-radius: 4px; }
.search-result:hover, .search-result:focus { background: #262923; }
.search-result strong, .search-result span { display: block; }
.search-result strong { color: #d4e2d7; font-size: 14px; font-weight: 450; }
.search-result span { color: var(--muted); font-size: 11px; margin-top: 4px; }
.search-result p { margin: 7px 0 0; color: var(--muted); font-size: 12px; line-height: 1.55; }
.search-hint { border-top: 1px solid var(--line); padding: 12px 18px; font-size: 11px; color: var(--muted); }
.search-empty { padding: 18px; color: var(--muted); font-size: 13px; }
.copy-toast { position: fixed; bottom: 20px; left: 50%; z-index: 40; transform: translateX(-50%); max-width: calc(100% - 32px); padding: 11px 16px; border: 1px solid #4e6455; border-radius: 5px; background: #20271f; color: var(--success-color); font-size: 12px; display: none; }
.copy-toast:not(:empty) { display: block; }
@media (max-width: 1180px) {
  .docs-layout { grid-template-columns: 210px minmax(0, 720px); gap: 30px; }
  .docs-toc { display: none; }
  .mobile-toc { display: block; }
}
@media (max-width: 1100px) { .docs-layout { width: calc(100% - 56px); } }
@media (max-width: 760px) {
  html { scroll-padding-top: 142px; }
  .docs-header { height: 76px; padding-inline: 20px; }
  .docs-header nav { display: none; }
  .docs-layout { display: block; width: calc(100% - 40px); border-top: 0; }
  .mobile-bar { position: sticky; top: 76px; z-index: 20; display: flex; align-items: center; justify-content: space-between; min-height: 46px; padding: 0 20px; border-block: 1px solid var(--line); background: var(--bg); }
  .mobile-bar button { padding: 12px 0; border: 0; background: none; color: #c2c2bb; font-size: 12px; }
  .docs-sidebar { display: none; position: fixed; top: 122px; left: 0; z-index: 25; width: min(320px, 100%); height: calc(100dvh - 122px); padding: 22px; background: #171717; border-right: 1px solid #42443d; box-shadow: 20px 0 60px #0007; }
  .docs-sidebar.is-open { display: flex; }
  .search-trigger { display: none; }
  .nav-group a { padding-block: 9px; }
  main { padding-top: 24px; }
  .breadcrumb { margin-bottom: 22px; font-size: 11px; }
  .docs-prose > h1 + p { font-size: 15px; }
  .docs-prose h2 { font-size: 20px; scroll-margin-top: 142px; }
  .docs-illustration { grid-template-columns: 1fr; gap: 16px; }
  .visual-arrow { transform: rotate(90deg); }
  .mock-url { font-size: 12px; }
  .visual-api pre { font-size: 12px; }
  .docs-cards { grid-template-columns: 1fr; gap: 0; }
  .docs-cards > a { padding-block: 18px; }
  .docs-code pre { padding: 14px; }
  .docs-prose table { min-width: 430px; }
  .page-pagination { gap: 18px; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } }

/* Documentation hierarchy and task-led overview. */
.docs-label { display:block; margin:0 0 18px 10px; font-size:13px; font-weight:600; color:var(--text); }
.docs-layout { grid-template-columns: 226px minmax(0, 720px) 170px; gap:32px; }
.docs-sidebar { padding-top:26px; }
.search-trigger { margin-bottom:26px; }
.nav-group { margin-bottom:22px; }
.nav-group a { font-size:12px; padding:6px 10px; }
.nav-group [aria-current=page] { background:#1c2426; color:var(--accent); box-shadow:inset 2px 0 var(--accent); }
.breadcrumb { margin-bottom:20px; font-size:11px; }
.article-tools { display:flex; align-items:center; justify-content:space-between; gap:16px; margin:0 0 20px; color:#969893; font-size:11px; }
.article-tools > div { display:flex; align-items:center; flex-wrap:wrap; gap:15px; }
.article-tools button { padding:5px 8px; border:1px solid #353835; border-radius:5px; background:var(--panel); color:#c5c7c1; font-size:11px; }
.article-tools button:hover { border-color:#798985; }
.article-tools a:hover { color:var(--accent); }
.docs-prose h1 { font-size:clamp(29px, 3vw, 36px); font-weight:600; letter-spacing:-.04em; }
.docs-prose h2 { font-size:20px; font-weight:600; }
.docs-prose h3 { scroll-margin-top:112px; }
.docs-prose th, .docs-prose td { overflow-wrap:normal; }
.docs-prose th, .docs-prose td:first-child code { white-space:nowrap; }
.docs-prose td:first-child { min-width:125px; }
.docs-prose td code { overflow-wrap:normal; }
.docs-prose > h1 + p { max-width:660px; }
h3:hover .heading-anchor { opacity:1; }
.docs-toc { padding-top:30px; }
.docs-start { display:grid; grid-template-columns:minmax(0, 1fr) 175px; gap:24px; margin:30px 0 42px; padding:26px; border:1px solid #353b3b; border-radius:8px; background:#161a1b; }
.docs-eyebrow { display:block; color:var(--accent); font:10px/1.6 ui-monospace,monospace; letter-spacing:.08em; }
.docs-start h2 { margin:10px 0; font-size:23px; line-height:1.3; letter-spacing:-.035em; }
.docs-start p { margin:12px 0 22px; font-size:13px; line-height:1.8; color:var(--muted); }
.docs-actions { display:flex; gap:16px; align-items:center; flex-wrap:wrap; font-size:12px; }
.docs-actions a { color:var(--accent); }
.docs-actions .docs-primary { display:inline-flex; align-items:center; gap:15px; padding:8px 12px; border:1px solid #506369; border-radius:5px; background:#202c2f; color:#dbe9ed; }
.docs-primary:hover { border-color:var(--accent); }
.docs-prose .start-sequence { align-self:center; list-style:none; padding:0; margin:0; }
.start-sequence li { display:flex; align-items:center; gap:12px; padding:15px 0; margin:0; border-bottom:1px solid #2c3334; font-size:12px; }
.start-sequence li:last-child { border:0; }
.start-sequence li span { color:#849396; font:10px ui-monospace,monospace; }
.docs-prose .start-sequence a { color:#d2dadb; text-decoration:none; }
.docs-cards { gap:0 26px; }
.docs-cards > a { padding:18px 0 22px; border-color:var(--line); }
.card-symbol { color:#8b999c; }
.docs-cards strong { font-size:14px; }
.docs-cards p { font-size:13px; line-height:1.65; }
.language-links { display:grid; grid-template-columns:repeat(3, minmax(0, 1fr)); gap:12px; margin:20px 0 34px; }
.language-links a { display:flex; align-items:center; gap:10px; padding:15px 12px; border:1px solid var(--line); border-radius:6px; color:#d1d4cf; font-size:12px; }
.language-links a:hover { border-color:#72858a; }
.language-links a > span:last-child { margin-left:auto; color:var(--muted); }
.docs-prose .language-links code { border:0; padding:0; background:none; color:var(--accent); font-size:11px; }
.docs-topics { margin:22px 0 34px; }
.docs-topics a { display:grid; grid-template-columns:1fr auto; gap:3px 14px; padding:17px 0; border-top:1px solid var(--line); font-size:13px; }
.docs-topics a strong { color:var(--text); font-weight:600; }
.docs-topics a > span:first-of-type { grid-row:2; color:var(--muted); font-size:12px; }
.docs-topics a > span:last-child { grid-column:2; grid-row:1 / 3; align-self:center; color:#819195; }
.docs-topics a:hover strong { color:var(--accent); }
.docs-home .page-pagination { margin-top:28px; }
@media (max-width:1180px) { .docs-layout { grid-template-columns:210px minmax(0, 720px); gap:30px; } .docs-start { grid-template-columns:1fr; } .docs-prose .start-sequence { display:none; } }
@media (max-width:760px) {
  .docs-layout { display:block; }
  .docs-sidebar .docs-label { margin-left:10px; }
  .nav-group a { padding-block:9px; font-size:13px; }
  .article-tools { align-items:flex-start; gap:10px; font-size:10px; }
  .article-tools > div { gap:10px; }
  .article-tools button { padding:3px 7px; }
  .docs-start { margin:25px 0 32px; padding:20px; }
  .docs-start h2 { font-size:23px; }
  .docs-cards { grid-template-columns:1fr; }
  .language-links { gap:8px; }
  .language-links a { flex-wrap:wrap; gap:6px; padding:13px 9px; font-size:11px; }
  .language-links a > span:last-child { display:none; }
  .docs-prose h3 { scroll-margin-top:142px; }
}
