:root {
  color-scheme: light;
  font-family: 'DM Sans', 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: #17231f;
  background: #f5f7f4;
  --ink: #17231f;
  --muted: #69766e;
  --line: #e1e8e1;
  --green: #157b57;
  --green-dark: #0e6547;
  --paper: #fff;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 82px; }
body { margin: 0; min-width: 320px; background: radial-gradient(ellipse at 10% 0%, #e9f3eb 0, transparent 38%), #f5f7f4; }
a { color: inherit; }
button { font: inherit; cursor: pointer; }
.topbar { position: sticky; z-index: 5; top: 0; display: flex; align-items: center; justify-content: space-between; min-height: 66px; padding: 10px max(22px, calc((100% - 1240px)/2)); border-bottom: 1px solid var(--line); background: rgba(255,255,255,.9); backdrop-filter: blur(12px); }
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 700; text-decoration: none; }
.brand-mark { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 11px; color: #fff; background: linear-gradient(145deg, #248c64, #0b6146); }
.topbar nav { display: flex; align-items: center; gap: 22px; }
.topbar nav a { color: #59675f; font-size: 12px; text-decoration: none; }
.topbar nav a:hover, .docs-footer a:hover { color: var(--green-dark); text-decoration: underline; }
.topbar nav .button { padding: 9px 13px; border-radius: 8px; color: white; background: var(--green); font-weight: 700; }
.docs-shell { display: grid; grid-template-columns: 210px minmax(0, 820px); gap: 60px; align-items: start; max-width: 1160px; margin: 0 auto; padding: 54px 28px 88px; }
.toc { position: sticky; top: 94px; display: grid; gap: 5px; padding: 14px 0; }
.eyebrow { margin: 0 0 9px; color: var(--green); font-size: 10px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.toc a { padding: 8px 11px; border-left: 2px solid transparent; border-radius: 0 7px 7px 0; color: #627067; font-size: 12px; text-decoration: none; }
.toc a:hover { border-left-color: #68a888; color: var(--green-dark); background: #eef5ef; }
.docs-content { min-width: 0; }
.hero { padding: 24px 0 38px; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 15px; font-size: clamp(34px, 5vw, 54px); line-height: 1.19; letter-spacing: -.04em; }
h2 { margin-bottom: 13px; font-size: 25px; letter-spacing: -.025em; }
h3 { margin: 25px 0 9px; font-size: 15px; }
p { color: #4f5f56; font-size: 13px; line-height: 1.85; }
.lead { max-width: 690px; color: #637068; font-size: 15px; }
.base-row { display: flex; align-items: center; gap: 12px; margin: 23px 0 16px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); }
.base-row span { color: var(--muted); font-size: 11px; }
.base-row code { flex: 1; color: #24593f; font-size: 12px; overflow-wrap: anywhere; }
.copy-button { padding: 7px 10px; border: 1px solid #dbe6dc; border-radius: 7px; color: #42654f; background: #f7faf7; font-size: 10px; font-weight: 700; }
.copy-button:hover { border-color: #a8c9b3; background: #eff7f0; }
.callout { padding: 13px 15px; border-left: 3px solid #bfa15c; border-radius: 0 9px 9px 0; color: #685a36; background: #fbf7ea; }
.doc-section { padding: 37px 0; border-top: 1px solid var(--line); scroll-margin-top: 76px; }
.doc-section > .eyebrow { margin-bottom: 8px; }
.steps { display: grid; gap: 10px; padding-left: 22px; color: #4f5f56; font-size: 13px; line-height: 1.8; }
code { font-family: ui-monospace, SFMono-Regular, Consolas, 'Liberation Mono', monospace; }
p code, td code, li code { padding: 2px 5px; border-radius: 4px; color: #285b43; background: #edf4ef; font-size: .92em; }
.endpoint { display: flex; align-items: center; gap: 11px; margin: 16px 0 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 9px; background: white; }
.endpoint > code { font-size: 12px; overflow-wrap: anywhere; }
.method { min-width: 52px; padding: 5px 7px; border-radius: 5px; text-align: center; font-size: 9px; font-weight: 800; }
.method.post { color: #8a5d16; background: #fbf1d9; }
.method.get { color: #206347; background: #e7f3e9; }
.method.delete { color: #963f3b; background: #fae9e7; }
.code-card { overflow: hidden; margin: 15px 0; border: 1px solid #263d32; border-radius: 10px; background: #14231d; }
.code-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 12px; border-bottom: 1px solid #31463d; color: #b4cbbb; font-size: 10px; }
.code-head .copy-button { border-color: #405c4d; color: #c5ddcc; background: #20372b; }
pre { overflow: auto; margin: 0; padding: 15px; color: #e3eee6; font-size: 11px; line-height: 1.75; tab-size: 2; }
.table-wrap { overflow-x: auto; margin: 14px 0 20px; border: 1px solid var(--line); border-radius: 9px; background: white; }
table { width: 100%; border-collapse: collapse; min-width: 570px; }
th, td { padding: 11px 12px; border-bottom: 1px solid #edf1ed; text-align: left; vertical-align: top; font-size: 11px; line-height: 1.65; }
th { color: #56675c; background: #f8faf8; font-weight: 700; }
td { color: #58665e; }
tr:last-child td { border-bottom: 0; }
.example-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 17px 0; }
.example-card { display: grid; gap: 7px; padding: 16px; border: 1px solid var(--line); border-radius: 10px; background: white; text-decoration: none; }
.example-card:hover { border-color: #9fc4ac; box-shadow: 0 7px 20px rgba(30,70,45,.07); }
.example-card strong { color: #264f3a; font-size: 13px; }
.example-card span { color: #728077; font-size: 11px; }
.example-card code { color: var(--green); font-size: 10px; }
.docs-footer { display: flex; gap: 12px; padding-top: 22px; color: #8a958e; font-size: 11px; }
.docs-footer a { color: #587164; text-decoration: none; }
@media (max-width: 820px) {
  .docs-shell { grid-template-columns: minmax(0, 1fr); gap: 17px; padding: 28px 20px 60px; }
  .toc { position: static; display: flex; overflow-x: auto; gap: 2px; padding: 7px 0; border-bottom: 1px solid var(--line); }
  .toc .eyebrow { display: none; }
  .toc a { flex: 0 0 auto; padding: 7px 9px; border-left: 0; border-radius: 7px; font-size: 10px; }
}
@media (max-width: 560px) {
  .topbar { min-height: 58px; padding-inline: 14px; }
  .topbar nav { gap: 10px; }
  .topbar nav a { font-size: 10px; }
  .topbar nav a:nth-child(2), .topbar nav a:nth-child(3) { display: none; }
  .topbar nav .button { padding: 8px 10px; }
  .docs-shell { padding: 20px 15px 46px; }
  .hero { padding: 15px 0 27px; }
  h1 { font-size: 37px; }
  h2 { font-size: 22px; }
  .base-row { gap: 8px; padding: 10px; }
  .base-row span { font-size: 10px; }
  .base-row code { font-size: 10px; }
  .example-grid { grid-template-columns: 1fr; }
  pre { font-size: 10px; }
}
