:root {
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #1d252c;
  background: #f4f6f7;
  line-height: 1.5;
  --line: #dce1e5;
  --soft-line: #e8edef;
  --muted: #68747d;
  --green: #147b66;
  --green-soft: #e9f5f1;
  --blue: #2767b2;
  --blue-soft: #edf4fb;
  --amber: #865d13;
  --amber-soft: #fff8e9;
  --ink-soft: #34414a;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { min-width: 320px; margin: 0; background: #f4f6f7; }
a { color: inherit; }
button, code, pre { font: inherit; letter-spacing: 0; }
button { cursor: pointer; }
code { color: #155c72; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .92em; }

.docs-shell { min-height: 100vh; }
.docs-header { position: sticky; top: 0; z-index: 10; height: 58px; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 0 30px; border-bottom: 1px solid var(--line); background: rgba(255, 255, 255, .96); backdrop-filter: blur(12px); }
.docs-brand { display: inline-flex; align-items: center; gap: 9px; color: #1d252c; font-weight: 760; text-decoration: none; }
.brand-mark { width: 25px; height: 25px; border-radius: 5px; background: #202a32; box-shadow: inset 5px 0 #25b7a1, inset -4px 0 #e15368; }
.header-actions { display: flex; align-items: center; gap: 18px; color: var(--muted); font-size: 12px; }
.header-status { display: inline-flex; align-items: center; gap: 7px; }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: #28a17d; }
.back-link { color: #2d5f78; text-decoration: none; }
.back-link:hover, .docs-footer a:hover { text-decoration: underline; }

.docs-layout { display: grid; grid-template-columns: 248px minmax(0, 1fr); max-width: 1380px; margin: 0 auto; }
.docs-sidebar { position: sticky; top: 58px; align-self: start; height: calc(100vh - 58px); padding: 40px 25px 30px 30px; border-right: 1px solid var(--line); background: #fff; }
.sidebar-kicker, .eyebrow { color: #849099; font-size: 10px; font-weight: 760; letter-spacing: .12em; }
.docs-sidebar h1 { margin: 8px 0 8px; font-size: 18px; letter-spacing: 0; }
.sidebar-intro { margin: 0 0 30px; color: var(--muted); font-size: 12px; line-height: 1.6; }
.docs-nav { display: grid; gap: 3px; margin: 0 -8px; }
.docs-nav a { min-height: 34px; display: flex; align-items: center; padding: 0 10px; border-left: 2px solid transparent; color: #5d6972; font-size: 12px; text-decoration: none; }
.docs-nav a:hover { color: #1d252c; background: #f5f8f8; }
.docs-nav a.active { border-left-color: var(--green); color: #126553; background: var(--green-soft); font-weight: 700; }
.sidebar-note { display: grid; gap: 5px; margin-top: 42px; padding: 12px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; line-height: 1.55; }
.sidebar-note strong { color: #34414a; font-size: 11px; }

.docs-main { min-width: 0; background: #fff; }
.docs-hero { padding: 64px clamp(24px, 6vw, 88px) 44px; border-bottom: 1px solid var(--line); background: #fbfcfc; }
.docs-hero h2 { max-width: 720px; margin: 10px 0 10px; color: #17242b; font-size: clamp(28px, 4vw, 42px); line-height: 1.16; letter-spacing: 0; }
.docs-hero p { max-width: 700px; margin: 0; color: var(--muted); font-size: 15px; line-height: 1.7; }
.base-url-box { max-width: 640px; display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 28px; padding: 12px 13px; border: 1px solid #cbd9d6; border-radius: 6px; background: #fff; }
.base-url-box > div { min-width: 0; display: grid; gap: 3px; }
.field-label { color: #7b8985; font-size: 10px; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
.base-url-box code { overflow: hidden; color: #164d5c; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.copy-button { flex: 0 0 auto; min-height: 29px; border: 1px solid #c5d0d4; border-radius: 4px; padding: 0 9px; color: #315c6a; background: #fff; font-size: 11px; font-weight: 700; }
.copy-button:hover { border-color: #7ba7b2; background: #f3f8f8; }
.copy-button.copied { border-color: var(--green); color: var(--green); background: var(--green-soft); }
.notice { display: flex; align-items: baseline; gap: 9px; max-width: 820px; margin-top: 22px; padding: 11px 13px; border-left: 3px solid #9db3b8; color: #53636a; background: #f6f8f8; font-size: 12px; line-height: 1.55; }
.notice strong { flex: 0 0 auto; color: #34414a; }
.notice-info { border-left-color: #5794b9; background: var(--blue-soft); color: #4e6977; }
.notice-info strong { color: #2b5871; }
.notice-warning { border-left-color: #d0a34e; background: var(--amber-soft); color: #705a2a; }
.notice-warning strong { color: var(--amber); }

.docs-section { max-width: 980px; margin: 0 auto; padding: 54px clamp(24px, 6vw, 88px); border-bottom: 1px solid var(--line); scroll-margin-top: 70px; }
.section-heading { display: flex; align-items: flex-start; gap: 13px; margin-bottom: 25px; }
.section-number { flex: 0 0 auto; padding-top: 3px; color: #2d9a83; font: 760 11px ui-monospace, SFMono-Regular, Menlo, monospace; }
.section-heading h2 { margin: 0; color: #1d2b31; font-size: 22px; line-height: 1.25; }
.section-heading p { margin: 5px 0 0; color: var(--muted); font-size: 13px; }
.endpoint-list { display: grid; gap: 7px; }
.endpoint-line { min-height: 42px; display: flex; align-items: center; flex-wrap: wrap; gap: 9px; padding: 8px 10px; border: 1px solid var(--soft-line); border-radius: 5px; background: #fbfcfc; }
.endpoint-line code { color: #2a4652; font-size: 12px; }
.endpoint-note { margin-left: auto; color: #87939a; font-size: 11px; }
.method { min-width: 45px; display: inline-flex; align-items: center; justify-content: center; min-height: 22px; border-radius: 3px; font: 760 10px ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .04em; }
.method-get { color: #236a94; background: #e8f2f9; }
.method-post { color: #176e5b; background: #e5f4ee; }
.method-neutral { color: #5f6970; background: #edf0f2; }
.inline-copy { margin-left: auto; min-height: 24px; }
.docs-section h3 { margin: 28px 0 10px; color: #37464e; font-size: 13px; }

.table-wrap { overflow-x: auto; border: 1px solid var(--soft-line); border-radius: 5px; }
table { width: 100%; min-width: 560px; border-collapse: collapse; }
th { height: 37px; padding: 0 12px; border-bottom: 1px solid var(--soft-line); color: #77858c; background: #f8fafb; text-align: left; font-size: 10px; font-weight: 760; letter-spacing: .04em; }
td { padding: 10px 12px; border-bottom: 1px solid #edf0f1; color: #4b5961; font-size: 12px; vertical-align: top; }
tbody tr:last-child td { border-bottom: 0; }
td:first-child { color: #294a57; }
.field-table td:nth-child(1) { width: 170px; }
.field-table td:nth-child(2) { width: 95px; color: #75828a; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11px; }

.code-block { position: relative; overflow: auto; margin: 13px 0 0; padding: 15px 54px 15px 15px; border: 1px solid #26343b; border-radius: 5px; color: #dfe9e7; background: #1f2a30; font: 12px/1.65 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; white-space: pre; }
.code-block code { color: inherit; font: inherit; }
.code-copy { position: absolute; top: 9px; right: 9px; border-color: #52646d; color: #d4e2df; background: #2c3a41; }
.code-copy:hover { border-color: #8ebeb5; color: #fff; background: #33464e; }
.response-row { display: flex; align-items: center; flex-wrap: wrap; gap: 7px 10px; margin: 13px 0 0; color: var(--muted); font-size: 11px; }
.response-status { padding: 3px 7px; border-radius: 3px; color: #176e5b; background: #e5f4ee; font: 760 10px ui-monospace, SFMono-Regular, Menlo, monospace; }
.muted-status { margin-left: 13px; color: #2d6687; background: #e8f2f9; }
.success-status { color: #176e5b; background: #e5f4ee; }
.status-flow { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; margin: 23px 0 10px; color: #6f7d84; font: 11px ui-monospace, SFMono-Regular, Menlo, monospace; }
.status-flow span { padding: 5px 9px; border: 1px solid #dfe6e8; border-radius: 4px; background: #f7f9f9; }
.status-flow .flow-complete { border-color: #b8dfd2; color: #176e5b; background: #eaf6f2; }
.status-flow .flow-failed { border-color: #eccaca; color: #a34040; background: #fff0f0; }
.status-flow i { color: #9ba7ac; font-style: normal; }
.small-copy { margin: 12px 0 0; color: var(--muted); font-size: 12px; line-height: 1.65; }
.endpoint-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 13px; }
.docs-footer { display: flex; align-items: center; justify-content: space-between; gap: 14px; max-width: 980px; margin: 0 auto; padding: 23px clamp(24px, 6vw, 88px) 42px; color: #8a969c; font-size: 11px; }
.docs-footer a { color: #3b6877; text-decoration: none; }

@media (max-width: 900px) {
  .docs-layout { grid-template-columns: 205px minmax(0, 1fr); }
  .docs-sidebar { padding-left: 20px; padding-right: 17px; }
  .docs-hero, .docs-section { padding-left: 34px; padding-right: 34px; }
}

@media (max-width: 680px) {
  .docs-header { height: 54px; padding: 0 14px; }
  .header-status { display: none; }
  .docs-layout { display: block; }
  .docs-sidebar { position: static; height: auto; padding: 20px 14px 12px; border-right: 0; border-bottom: 1px solid var(--line); }
  .sidebar-kicker, .sidebar-intro, .sidebar-note { display: none; }
  .docs-sidebar h1 { margin: 0 0 13px; font-size: 16px; }
  .docs-nav { display: flex; overflow-x: auto; gap: 3px; margin: 0; padding-bottom: 1px; }
  .docs-nav a { flex: 0 0 auto; min-height: 31px; border-left: 0; border-bottom: 2px solid transparent; padding: 0 9px; white-space: nowrap; }
  .docs-nav a.active { border-bottom-color: var(--green); }
  .docs-hero { padding: 38px 16px 30px; }
  .docs-hero h2 { font-size: 29px; }
  .docs-hero p { font-size: 13px; }
  .base-url-box { align-items: flex-start; }
  .base-url-box code { max-width: calc(100vw - 100px); }
  .docs-section { padding: 36px 16px; scroll-margin-top: 55px; }
  .section-heading h2 { font-size: 20px; }
  .section-heading p { font-size: 12px; }
  .endpoint-note { width: 100%; margin-left: 54px; }
  .endpoint-grid { grid-template-columns: 1fr; }
  .response-row { align-items: flex-start; }
  .muted-status { margin-left: 0; }
  .docs-footer { align-items: flex-start; flex-direction: column; padding: 20px 16px 30px; }
}
