:root {
  --ink: #17231f;
  --muted: #65736e;
  --line: #dfe8e2;
  --paper: #fffefb;
  --canvas: #f5f8f5;
  --mint: #e7f5ef;
  --green: #137f70;
  --green-deep: #0e665a;
  --green-soft: #d7eee5;
  --code: #14221f;
  --code-ink: #c7f9e7;
  --shadow: 0 18px 48px rgba(18, 54, 46, .09);
  --radius: 20px;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  color: var(--ink);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body { min-width: 320px; margin: 0; color: var(--ink); background: radial-gradient(circle at 78% -18%, #dff5e9 0, transparent 31rem), var(--canvas); }
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
code, pre { font-family: var(--mono); }
code { font-size: .94em; }

.skip-link { position: fixed; z-index: 20; top: 10px; left: 50%; transform: translate(-50%, -180%); padding: 9px 13px; border-radius: 8px; color: #fff; background: var(--green); text-decoration: none; transition: transform .18s ease; }
.skip-link:focus { transform: translate(-50%, 0); }

.docs-header { position: sticky; z-index: 10; top: 0; display: flex; align-items: center; justify-content: space-between; min-height: 68px; padding: 0 max(24px, calc((100vw - 1224px) / 2)); border-bottom: 1px solid rgba(213, 229, 220, .84); background: rgba(255, 255, 252, .86); backdrop-filter: blur(18px); }
.docs-brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.docs-brand img { display: block; width: 32px; height: 32px; }
.docs-brand span { display: grid; gap: 1px; }
.docs-brand strong { font-size: 14px; letter-spacing: .02em; }
.docs-brand small { color: #668079; font-size: 10px; font-weight: 750; letter-spacing: .14em; text-transform: uppercase; }
.docs-header-actions { display: flex; align-items: center; gap: 20px; }
.text-link { color: #5a716a; font-size: 13px; font-weight: 700; text-decoration: none; }
.text-link:hover { color: var(--green); }
.header-cta { display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px; border-radius: 9px; color: #fff; background: var(--green); box-shadow: 0 5px 12px rgba(19, 127, 112, .18); font-size: 12px; font-weight: 800; text-decoration: none; }
.header-cta:hover { background: var(--green-deep); }

.docs-shell { width: min(1224px, calc(100% - 48px)); margin: 0 auto; }
.docs-hero { display: grid; grid-template-columns: minmax(0, 1.28fr) minmax(325px, .72fr); gap: 58px; align-items: center; padding: 76px 34px 70px; }
.docs-hero-copy { max-width: 690px; }
.eyebrow { display: inline-flex; align-items: center; min-height: 25px; padding: 0 9px; border: 1px solid #b9dfd0; border-radius: 999px; color: #147665; background: #edf9f3; font-size: 10px; font-weight: 900; letter-spacing: .15em; }
.docs-hero h1 { max-width: 620px; margin: 15px 0 15px; color: #122d25; font-size: clamp(34px, 4vw, 55px); font-weight: 900; letter-spacing: -.05em; line-height: 1.12; }
.docs-hero p { max-width: 610px; margin: 0; color: #5c7069; font-size: 16px; line-height: 1.85; }
.docs-hero p code { padding: 2px 5px; border-radius: 4px; color: #137b6c; background: #e7f4ee; font-weight: 800; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 11px; margin-top: 28px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 43px; padding: 0 17px; border: 1px solid transparent; border-radius: 10px; font-size: 13px; font-weight: 850; text-decoration: none; cursor: pointer; transition: transform .16s ease, background .16s ease, border-color .16s ease; }
.button:hover { transform: translateY(-1px); }
.button-primary { color: #fff; background: var(--green); box-shadow: 0 8px 18px rgba(19, 127, 112, .18); }
.button-primary:hover { background: var(--green-deep); }
.button-quiet { border-color: #c8ddd4; color: #38645a; background: rgba(255, 255, 255, .7); }
.button-quiet:hover { border-color: #81b7a8; color: var(--green); background: #fff; }

.base-card { position: relative; overflow: hidden; padding: 26px; border: 1px solid rgba(154, 206, 184, .8); border-radius: var(--radius); color: #e8fff5; background: linear-gradient(145deg, #123e35, #126d5d); box-shadow: 0 20px 40px rgba(22, 91, 75, .19); }
.base-card::after { position: absolute; width: 190px; height: 190px; right: -85px; bottom: -115px; border: 1px solid rgba(209, 255, 234, .18); border-radius: 50%; content: ""; box-shadow: 0 0 0 28px rgba(209, 255, 234, .06), 0 0 0 58px rgba(209, 255, 234, .03); }
.base-card > span { position: relative; z-index: 1; display: block; margin-bottom: 8px; color: #a0e6cf; font-size: 10px; font-weight: 900; letter-spacing: .16em; text-transform: uppercase; }
.copy-line { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 9px; padding: 12px; border: 1px solid rgba(207, 255, 233, .18); border-radius: 10px; background: rgba(7, 32, 27, .3); }
.copy-line code { overflow: hidden; color: #ecfff7; font-size: 12px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.copy-icon { display: inline-grid; width: 29px; height: 29px; padding: 0; place-items: center; border: 1px solid rgba(207, 255, 233, .28); border-radius: 7px; color: #caffea; background: rgba(255,255,255,.07); cursor: pointer; }
.copy-icon:hover { background: rgba(255,255,255,.16); }
.copy-icon svg { width: 15px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.6; }
.base-card dl { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 20px 0 0; }
.base-card dl div { display: grid; gap: 5px; }
.base-card dt { color: #9cd5c3; font-size: 10px; }
.base-card dd { margin: 0; color: #f3fff9; font-size: 11px; font-weight: 800; line-height: 1.45; }
.base-card dd code { color: inherit; font-size: 10px; }

.docs-layout { display: grid; grid-template-columns: 196px minmax(0, 1fr); gap: 54px; align-items: start; padding: 42px 34px 78px; border-top: 1px solid #deebe3; }
.docs-nav { position: sticky; top: 98px; display: grid; gap: 4px; }
.docs-nav p { margin: 0 0 6px; color: #81928c; font-size: 10px; font-weight: 900; letter-spacing: .16em; text-transform: uppercase; }
.docs-nav a { padding: 8px 10px; border-radius: 8px; color: #60736d; font-size: 12px; font-weight: 750; text-decoration: none; transition: color .15s ease, background .15s ease; }
.docs-nav a:hover, .docs-nav a.active { color: #106f60; background: #e7f5ef; }
.docs-content { min-width: 0; }
.doc-section { padding: 2px 0 58px; }
.doc-section + .doc-section { padding-top: 48px; border-top: 1px solid #deeae3; }
.section-title { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 13px; margin-bottom: 25px; }
.section-title > span { display: grid; width: 28px; height: 28px; place-items: center; border-radius: 8px; color: #167967; background: #e2f3eb; font-size: 10px; font-weight: 900; }
.section-title h2 { margin: 0; color: #1a2d27; font-size: 24px; letter-spacing: -.025em; line-height: 1.2; }
.section-title p { margin: 7px 0 0; color: #6c7e77; font-size: 13px; line-height: 1.65; }
.docs-content > .doc-section > p { margin: 0; color: #5e706a; font-size: 13px; line-height: 1.8; }
.docs-content > .doc-section > p code, .endpoint-note code, .sdk-note code, .safety-list code { padding: 1px 4px; border-radius: 4px; color: #147866; background: #eaf6f1; }

.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.steps-grid article { position: relative; min-height: 146px; padding: 19px 18px 18px; border: 1px solid #dce9e1; border-radius: 13px; background: rgba(255,255,255,.78); }
.steps-grid b { display: grid; width: 22px; height: 22px; margin-bottom: 15px; place-items: center; border-radius: 50%; color: #fff; background: #168473; font-size: 10px; }
.steps-grid strong { display: block; color: #253a33; font-size: 13px; }
.steps-grid p { margin: 7px 0 0; color: #72827d; font-size: 11px; line-height: 1.65; }
.steps-grid code { color: #197c6c; }
.callout { display: flex; align-items: flex-start; gap: 9px; margin-top: 14px; padding: 12px 13px; border: 1px solid #c8e5d8; border-radius: 10px; color: #55746b; background: #edf9f3; font-size: 12px; line-height: 1.65; }
.callout svg { flex: 0 0 auto; width: 17px; margin-top: 1px; fill: none; stroke: #168370; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.callout p { margin: 0; }
.callout b { color: #216b5e; }
.callout.neutral { border-color: #d9e6e0; background: #f5faf7; }
.callout.neutral svg { stroke: #518278; }
.callout.warning { border-color: #f0c98b; color: #735b35; background: #fff8e9; }
.callout.warning svg { stroke: #b47718; }
.callout.warning b { color: #8b5c0d; }

.code-card, .endpoint-card { overflow: hidden; margin-top: 19px; border: 1px solid #d5e5dc; border-radius: 14px; background: #fff; box-shadow: 0 8px 18px rgba(34, 75, 63, .04); }
.code-card-head, .endpoint-heading { display: flex; align-items: center; justify-content: space-between; gap: 13px; padding: 13px 15px; border-bottom: 1px solid #e2ece6; background: #fbfdfb; }
.code-card-head > div, .endpoint-heading > div { display: flex; align-items: center; min-width: 0; gap: 9px; }
.code-card-head code, .endpoint-heading code { overflow: hidden; color: #213c33; font-size: 12px; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
.method { display: inline-flex; flex: 0 0 auto; align-items: center; justify-content: center; min-width: 40px; min-height: 19px; padding: 0 6px; border-radius: 5px; font-family: var(--mono); font-size: 9px; font-weight: 900; letter-spacing: .05em; }
.method.get { color: #0b765f; background: #dff5e9; }
.method.post { color: #815407; background: #fff1d2; }
.copy-button { flex: 0 0 auto; min-height: 28px; padding: 0 9px; border: 1px solid #c9ddd4; border-radius: 6px; color: #376c60; background: #fff; font-size: 10px; font-weight: 800; cursor: pointer; }
.copy-button:hover { border-color: #7bb7a6; color: #0b765f; background: #f1fbf6; }
.code-card pre, .endpoint-card pre { overflow-x: auto; margin: 0; padding: 16px; color: var(--code-ink); background: var(--code); font-size: 11px; line-height: 1.72; white-space: pre; }
.code-card pre code, .endpoint-card pre code { font-size: inherit; }
.endpoint-card > p { margin: 0; padding: 15px 16px 0; color: #64746e; font-size: 12px; line-height: 1.75; }
.endpoint-card > p code { color: #117868; }
.endpoint-note { margin-top: 12px; padding: 10px 12px; border-left: 3px solid #65ad99; color: #667871; background: #f0f7f3; font-size: 12px; line-height: 1.65; }
.endpoint-note b { color: #386c60; }
.endpoint-note pre { overflow-x: auto; margin: 8px 0 6px; padding: 9px 10px; border-radius: 7px; color: var(--code-ink); background: var(--code); font-size: 11px; line-height: 1.6; }

.endpoint-summary { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 15px; }
.endpoint-summary > div { padding: 13px 14px; border: 1px solid #d9e8df; border-radius: 10px; background: #fff; }
.endpoint-summary small { display: block; margin-bottom: 6px; color: #7a8c85; font-size: 10px; font-weight: 800; }
.endpoint-summary code { display: block; overflow: hidden; color: #176e60; font-size: 11px; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
.branding-doc-note { display: grid; grid-template-columns: 38px minmax(0, 1fr); gap: 12px; margin-top: 16px; padding: 15px; border: 1px solid #cde5d9; border-radius: 12px; background: linear-gradient(105deg, #edf9f3, #fbfdfb); }
.branding-doc-mark { display: grid; width: 38px; height: 38px; place-items: center; border-radius: 10px; color: #177b68; background: #d8f0e4; }
.branding-doc-mark svg { width: 20px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.7; }
.branding-doc-note > div:last-child { display: grid; gap: 4px; min-width: 0; }
.branding-doc-note span { color: #388c7b; font-size: 10px; font-weight: 900; letter-spacing: .12em; }
.branding-doc-note strong { color: #305047; font-size: 13px; }
.branding-doc-note p { margin: 0; color: #637870; font-size: 11px; line-height: 1.72; }
.branding-doc-note small { color: #7a8c85; font-size: 10px; line-height: 1.65; }
.branding-doc-note small code { color: #34766a; }
.code-tabs { overflow: hidden; margin-top: 16px; border-top: 1px solid #e1ebe5; }
.code-tab-list { display: flex; align-items: center; gap: 2px; padding: 8px 10px; background: #f7faf8; }
.code-tab-list button { min-height: 27px; padding: 0 9px; border: 0; border-radius: 6px; color: #71817b; background: transparent; font-family: var(--mono); font-size: 10px; font-weight: 800; cursor: pointer; }
.code-tab-list button:hover { color: #147b69; }
.code-tab-list button.active { color: #176f60; background: #e3f3eb; }
.code-pane.hidden { display: none; }
.two-code-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; margin-top: 16px; border-top: 1px solid #e1ebe5; background: #e1ebe5; }
.two-code-grid > div { overflow: hidden; background: #fff; }
.two-code-grid small { display: block; padding: 9px 13px; color: #71827b; background: #f7faf8; font-family: var(--mono); font-size: 10px; font-weight: 800; }
.two-code-grid pre { min-height: 130px; padding: 14px; font-size: 10px; }

.parameter-table-wrap { overflow-x: auto; margin-top: 17px; border: 1px solid #e0eae4; border-radius: 9px; }
.parameter-table { width: 100%; min-width: 560px; border-collapse: collapse; color: #63746e; font-size: 11px; line-height: 1.55; text-align: left; }
.parameter-table th { padding: 10px 12px; color: #597168; background: #f5faf7; font-size: 10px; font-weight: 900; }
.parameter-table td { padding: 10px 12px; border-top: 1px solid #e6eee9; vertical-align: top; }
.parameter-table td:first-child { color: #136f60; font-weight: 800; }
.parameter-table td:nth-child(2) { color: #798982; font-family: var(--mono); }
.parameter-table td b { color: #167a68; font-size: 10px; }
.operation-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: 13px; }
.operation-list > div { display: grid; gap: 4px; min-width: 0; padding: 10px 11px; border: 1px solid #dce9e2; border-radius: 9px; background: #fbfdfb; }
.operation-list code { overflow: hidden; color: #137967; font-size: 10px; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
.operation-list span { color: #667a73; font-size: 10px; font-weight: 700; }

.sdk-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.sdk-card { overflow: hidden; border: 1px solid #d7e6de; border-radius: 13px; background: #fff; }
.sdk-card > div { display: flex; align-items: center; justify-content: space-between; padding: 10px 12px; background: #f9fcfa; }
.sdk-badge { display: inline-flex; min-height: 21px; align-items: center; padding: 0 7px; border-radius: 5px; color: #fff; font-family: var(--mono); font-size: 10px; font-weight: 800; }
.sdk-badge.python { background: #306d87; }
.sdk-badge.node { background: #438f58; }
.sdk-card pre { overflow-x: auto; min-height: 258px; margin: 0; padding: 15px; color: #c8f8e8; background: var(--code); font-size: 10px; line-height: 1.68; white-space: pre; }
.sdk-chat-example { overflow: hidden; margin-top: 14px; border: 1px solid #d8e7df; border-radius: 12px; background: #fff; }
.sdk-chat-example > div { display: flex; align-items: center; justify-content: space-between; padding: 10px 12px; background: #f7fbf8; }
.sdk-chat-example > div > span { color: #4d7166; font-size: 11px; font-weight: 850; }
.sdk-chat-example pre { overflow-x: auto; margin: 0; padding: 14px 15px; color: #c8f8e8; background: var(--code); font-size: 10px; line-height: 1.68; white-space: pre; }
.sdk-note { margin: 12px 0 0; color: #72837c; font-size: 11px; line-height: 1.7; }

.error-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.error-grid > div { padding: 14px 13px; border: 1px solid #e2e8e4; border-radius: 10px; background: #fff; }
.error-grid code { display: block; margin-bottom: 9px; color: #b76b50; font-size: 13px; font-weight: 900; }
.error-grid strong { display: block; color: #354942; font-size: 12px; }
.error-grid p { margin: 7px 0 0; color: #74837e; font-size: 10px; line-height: 1.65; }
.error-grid p code { display: inline; margin: 0; color: #187b69; font-size: 9px; font-weight: 700; }
.safety-list { display: grid; gap: 8px; margin: 15px 0 0; padding: 0; list-style: none; }
.safety-list li { position: relative; padding-left: 16px; color: #657870; font-size: 12px; line-height: 1.7; }
.safety-list li::before { position: absolute; top: .75em; left: 0; width: 6px; height: 6px; border-radius: 50%; background: #43a28b; content: ""; }
.legacy-api-note { display: flex; align-items: center; justify-content: space-between; gap: 22px; margin: -14px 0 20px; padding: 17px 19px; border: 1px solid #d8e8df; border-radius: 13px; background: #fbfdfb; }
.legacy-api-note > div { display: grid; gap: 5px; }
.legacy-api-note span { color: #659085; font-size: 10px; font-weight: 900; letter-spacing: .13em; text-transform: uppercase; }
.legacy-api-note strong { color: #344b43; font-size: 13px; }
.legacy-api-note p { margin: 0; color: #71817b; font-size: 11px; line-height: 1.65; }
.legacy-api-note p code { color: #197b6a; }
.legacy-api-note > a { flex: 0 0 auto; display: inline-flex; min-height: 33px; align-items: center; padding: 0 11px; border: 1px solid #b9d9cb; border-radius: 7px; color: #167664; background: #fff; font-size: 11px; font-weight: 800; text-decoration: none; white-space: nowrap; }
.legacy-api-note > a:hover { border-color: #6eab98; background: #eff9f4; }
.docs-finish { display: flex; align-items: center; justify-content: space-between; gap: 25px; padding: 28px; border-radius: 17px; color: #ebfff7; background: linear-gradient(122deg, #124d40, #168373); box-shadow: 0 16px 34px rgba(16, 92, 75, .18); }
.docs-finish span { color: #9ae4ce; font-size: 10px; font-weight: 900; letter-spacing: .16em; }
.docs-finish h2 { margin: 8px 0 5px; font-size: 23px; letter-spacing: -.025em; }
.docs-finish p { margin: 0; color: #c6ede0; font-size: 12px; line-height: 1.65; }
.docs-finish .button-primary { color: #136b5b; background: #edfff7; box-shadow: none; white-space: nowrap; }
.docs-finish .button-primary:hover { background: #fff; }

.docs-footer { display: flex; justify-content: space-between; width: min(1224px, calc(100% - 48px)); margin: 0 auto; padding: 21px 34px 27px; border-top: 1px solid #dce8e1; color: #7a8a84; font-size: 11px; }
.docs-footer a { color: #4f7369; font-weight: 750; text-decoration: none; }
.docs-footer a:hover { color: #116f5f; }
.copy-toast { position: fixed; z-index: 30; bottom: 22px; left: 50%; padding: 9px 14px; border-radius: 8px; color: #ebfff7; background: rgba(21, 41, 35, .94); box-shadow: 0 9px 24px rgba(10, 31, 24, .18); font-size: 12px; font-weight: 750; opacity: 0; pointer-events: none; transform: translate(-50%, 12px); transition: opacity .18s ease, transform .18s ease; }
.copy-toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 980px) {
  .docs-hero { grid-template-columns: 1fr; gap: 28px; padding-left: 0; padding-right: 0; }
  .base-card { max-width: 620px; }
  .docs-layout { grid-template-columns: 1fr; gap: 25px; padding-left: 0; padding-right: 0; }
  .docs-nav { position: static; display: flex; overflow-x: auto; gap: 5px; padding-bottom: 3px; white-space: nowrap; scrollbar-width: thin; }
  .docs-nav p { display: none; }
  .docs-nav a { flex: 0 0 auto; border: 1px solid #dce8e2; background: rgba(255,255,255,.6); }
  .docs-nav a.active { border-color: #b8dcca; }
}

@media (max-width: 700px) {
  .docs-header { min-height: 62px; padding: 0 16px; }
  .docs-header-actions { gap: 8px; }
  .text-link { display: none; }
  .docs-shell { width: min(100% - 32px, 620px); }
  .docs-hero { padding: 48px 0 43px; }
  .docs-hero h1 { font-size: 37px; }
  .docs-hero p { font-size: 14px; }
  .base-card { padding: 20px; }
  .base-card dl { grid-template-columns: 1fr 1fr; }
  .base-card dl div:last-child { grid-column: span 2; }
  .docs-layout { padding-top: 27px; padding-bottom: 46px; }
  .doc-section { padding-bottom: 42px; }
  .doc-section + .doc-section { padding-top: 38px; }
  .section-title h2 { font-size: 21px; }
  .steps-grid, .sdk-grid, .two-code-grid { grid-template-columns: 1fr; }
  .operation-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps-grid article { min-height: 0; }
  .endpoint-summary { grid-template-columns: 1fr; }
  .branding-doc-note { grid-template-columns: 32px minmax(0, 1fr); padding: 13px; }
  .branding-doc-mark { width: 32px; height: 32px; }
  .error-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sdk-card pre { min-height: auto; }
  .docs-finish { align-items: flex-start; flex-direction: column; padding: 23px; }
  .legacy-api-note { align-items: flex-start; flex-direction: column; }
  .docs-footer { width: min(100% - 32px, 620px); padding: 16px 0 24px; }
}

@media (max-width: 430px) {
  .docs-brand strong { font-size: 13px; }
  .docs-brand small { font-size: 9px; }
  .header-cta { min-height: 33px; padding: 0 10px; }
  .docs-hero h1 { font-size: 33px; }
  .hero-actions { display: grid; grid-template-columns: 1fr; }
  .base-card dl { grid-template-columns: 1fr; }
  .base-card dl div:last-child { grid-column: auto; }
  .section-title { grid-template-columns: 28px minmax(0, 1fr); gap: 9px; }
  .code-card-head, .endpoint-heading { align-items: flex-start; flex-direction: column; }
  .copy-button { align-self: flex-end; margin-top: -40px; }
  .endpoint-heading + p { padding-top: 8px; }
  .error-grid { grid-template-columns: 1fr; }
  .docs-footer { align-items: flex-start; flex-direction: column; gap: 8px; }
}
