:root {
  --docs-ink: #17191b;
  --docs-muted: #646a70;
  --docs-line: #e4e6e8;
  --docs-soft: #f6f7f8;
  --docs-accent: #123c5a;
  --docs-accent-soft: #eaf1f5;
  --docs-header-height: 116px;
}

html { min-width: 320px; scroll-padding-top: 138px; background: #fff; }
body.docs-page { margin: 0; color: var(--docs-ink); background: #fff; font-family: "Inter", Arial, sans-serif; font-size: 15px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
body.docs-page::before { display: none; }
.docs-page * { box-sizing: border-box; }
.docs-page :where(h1,h2,h3,p,ul,ol) { margin-block-start: 0; }
.docs-page :where(h1,h2,h3) { color: #17191b; font-family: "Inter", Arial, sans-serif; font-weight: 600; letter-spacing: -.035em; line-height: 1.2; text-transform: none; text-wrap: initial; }
.docs-page a { color: inherit; text-decoration: none; }
.docs-page button, .docs-page input { font: inherit; }

.docs-header {
  position: fixed;
  z-index: 180;
  inset: 0 0 auto;
  height: var(--docs-header-height);
  border-bottom: 1px solid var(--docs-line);
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(18px);
}
.docs-header-main { width: min(1304px, calc(100% - 48px)); height: 72px; margin: 0 auto; display: grid; grid-template-columns: 414px minmax(280px, 422px) 1fr; align-items: center; gap: 10px; }
.docs-brand { display: inline-flex; align-items: center; width: max-content; gap: 8px; color: #111416; font-size: 19px; font-weight: 650; letter-spacing: -.035em; }
.docs-brand img { width: 25px; height: 25px; object-fit: contain; opacity: 1; }
.docs-brand i { margin-left: 2px; padding-left: 11px; border-left: 1px solid #cfd3d6; color: #697077; font-size: 14px; font-style: normal; font-weight: 500; letter-spacing: -.01em; }
.docs-search-trigger { height: 38px; padding: 0 11px; display: grid; grid-template-columns: 20px 1fr auto; align-items: center; gap: 8px; border: 1px solid #d9dde0; border-radius: 9px; color: #6a7075; background: #fafafa; text-align: left; cursor: pointer; }
.docs-search-trigger:hover { border-color: #adb5ba; background: #fff; }
.docs-search-trigger > span:first-child { color: #22272a; font-size: 19px; }
.docs-page kbd { padding: 2px 5px; border: 1px solid #d8dcdf; border-radius: 4px; background: #fff; color: #737a80; font-family: "DM Mono", monospace; font-size: 10px; font-weight: 400; }
.docs-header-actions { justify-self: end; display: flex; align-items: center; gap: 22px; color: #4e555a; font-size: 14px; font-weight: 500; }
.docs-header-actions a:hover { color: var(--docs-accent); }
.docs-mobile-toggle { display: none; border: 0; background: none; cursor: pointer; }
.docs-tabs { width: min(1304px, calc(100% - 48px)); height: 44px; margin: 0 auto; display: flex; align-items: end; gap: 28px; }
.docs-tabs a { height: 44px; padding-top: 13px; color: #656b70; border-bottom: 2px solid transparent; font-size: 13px; font-weight: 600; }
.docs-tabs a:hover, .docs-tabs a.is-active { color: var(--docs-accent); border-color: var(--docs-accent); }

.docs-layout { width: min(1340px, 100%); min-height: 100vh; margin: var(--docs-header-height) auto 0; display: grid; grid-template-columns: 270px minmax(0, 1fr); }
.docs-sidebar { position: sticky; top: var(--docs-header-height); height: calc(100vh - var(--docs-header-height)); border-right: 1px solid var(--docs-line); background: #fff; overflow-y: auto; scrollbar-width: thin; }
.docs-sidebar-inner { padding: 30px 28px 60px 14px; }
.docs-start-link { min-height: 40px; margin-bottom: 28px; padding: 10px 12px; display: flex; justify-content: space-between; align-items: center; border-radius: 8px; color: var(--docs-accent); background: var(--docs-accent-soft); font-size: 13px; font-weight: 650; }
.docs-sidebar section + section { margin-top: 28px; }
.docs-sidebar h2 { margin: 0 0 10px; font-size: 18px; font-weight: 600; letter-spacing: -.025em; line-height: 1.25; text-transform: none; }
.docs-sidebar section a { display: block; padding: 5px 0; color: #666d72; font-size: 13px; line-height: 1.5; }
.docs-sidebar section a:hover, .docs-sidebar section a.is-active { color: var(--docs-accent); }
.docs-sidebar section a.is-active { font-weight: 600; }

.docs-main { display: grid; grid-template-columns: minmax(0, 676px) 210px; justify-content: center; gap: clamp(58px, 5vw, 86px); padding: 36px 48px 110px; }
.docs-article { min-width: 0; }
.docs-breadcrumb { display: flex; align-items: center; gap: 8px; color: #858b90; font-size: 12px; }
.docs-breadcrumb b { font-weight: 400; color: #bbc0c4; }
.docs-hero { padding: 0 0 54px; border-bottom: 1px solid var(--docs-line); }
.docs-kicker { margin: 0 0 12px; color: var(--docs-accent); font-size: 13px; font-weight: 650; }
.docs-hero h1 { margin: 0; font-size: clamp(32px, 3vw, 37px); line-height: 1.14; letter-spacing: -.042em; font-weight: 600; text-transform: none; }
.docs-lead { max-width: 676px; margin: 17px 0 0; color: #4f555a; font-size: 15px; line-height: 1.65; font-weight: 500; }
.docs-notice { margin-top: 32px; padding: 18px 20px; display: grid; grid-template-columns: 170px 1fr; gap: 20px; border: 1px solid #dce4e8; border-radius: 10px; background: #f8fafb; font-size: 14px; line-height: 1.55; }
.docs-notice strong { color: var(--docs-accent); }
.docs-notice span { color: #5f666b; }
.docs-policy-meta { margin-top: 34px; display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--docs-line); border-radius: 10px; overflow: hidden; }
.docs-policy-meta div { min-height: 82px; padding: 17px 18px; display: flex; flex-direction: column; justify-content: center; }
.docs-policy-meta div + div { border-left: 1px solid var(--docs-line); }
.docs-policy-meta span { color: #899095; font-size: 10px; text-transform: uppercase; letter-spacing: .07em; }
.docs-policy-meta strong { margin-top: 7px; font-size: 14px; }
.docs-policy-page .docs-start-link { justify-content: space-between; }

.docs-section { padding: 54px 0; border-bottom: 1px solid var(--docs-line); }
.docs-section-heading { margin-bottom: 19px; display: block; }
.docs-section-heading > span { display: none; }
.docs-section-heading p { margin: 0 0 6px; color: var(--docs-accent); font-size: 12px; font-weight: 650; text-transform: uppercase; letter-spacing: .08em; }
.docs-section h2 { margin: 0; font-size: clamp(29px, 2.5vw, 34px); line-height: 1.18; letter-spacing: -.042em; font-weight: 600; text-transform: none; }
.docs-section > h3 { margin: 36px 0 12px; font-size: 21px; letter-spacing: -.025em; }
.docs-section > p { margin: 0; color: #4f565b; font-size: 15px; line-height: 1.68; }
.docs-section > p + p { margin-top: 16px; }

.docs-card-grid { margin-top: 30px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.docs-card { min-height: 190px; padding: 22px; display: flex; flex-direction: column; border: 1px solid var(--docs-line); border-radius: 11px; transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease; }
.docs-card:hover { border-color: #aebbc3; transform: translateY(-2px); box-shadow: 0 12px 30px rgba(24,42,54,.07); }
.docs-card > span { color: #92999e; font-family: "DM Mono", monospace; font-size: 11px; }
.docs-card h3 { margin: 26px 0 7px; font-size: 24px; letter-spacing: -.04em; }
.docs-card p { margin: 0; color: #666d72; font-size: 14px; line-height: 1.5; }
.docs-card b { margin-top: auto; padding-top: 18px; color: var(--docs-accent); font-size: 13px; font-weight: 600; }

.docs-steps { margin: 28px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--docs-line); }
.docs-steps li { padding: 21px 0; display: grid; grid-template-columns: 38px 1fr; gap: 10px; border-bottom: 1px solid var(--docs-line); }
.docs-steps li > span { width: 25px; height: 25px; display: grid; place-items: center; border-radius: 50%; color: var(--docs-accent); background: var(--docs-accent-soft); font-size: 12px; font-weight: 650; }
.docs-steps h3 { margin: 1px 0 5px; font-size: 16px; }
.docs-steps p { margin: 0; color: #697075; font-size: 14px; line-height: 1.55; }
.docs-steps-compact { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--docs-line); border-radius: 10px; overflow: hidden; }
.docs-steps-compact li { padding: 20px; display: block; border: 0; }
.docs-steps-compact li + li { border-left: 1px solid var(--docs-line); }
.docs-steps-compact h3 { margin-top: 18px; }
.docs-actions { margin-top: 28px; display: flex; flex-wrap: wrap; align-items: center; gap: 20px; color: var(--docs-accent); font-size: 14px; font-weight: 600; }
.docs-button { min-height: 42px; padding: 0 17px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--docs-accent); border-radius: 7px; color: #fff !important; background: var(--docs-accent); cursor: pointer; }
.docs-button:hover { background: #0b2f49; }
.docs-button-secondary { color: var(--docs-accent) !important; background: #fff; }
.docs-button-secondary:hover { background: var(--docs-accent-soft); }

.docs-flow { margin-top: 30px; display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--docs-line); border-radius: 10px; overflow: hidden; }
.docs-flow div { min-height: 145px; padding: 18px; display: flex; flex-direction: column; }
.docs-flow div + div { border-left: 1px solid var(--docs-line); }
.docs-flow span { color: #969da2; font-family: "DM Mono", monospace; font-size: 10px; }
.docs-flow strong { margin-top: auto; font-size: 17px; }
.docs-flow small { margin-top: 5px; color: #72787d; font-size: 12px; }

.docs-checklist { margin: 20px 0 0; padding: 0; list-style: none; }
.docs-checklist li { position: relative; padding: 10px 0 10px 31px; color: #555c61; font-size: 15px; line-height: 1.55; }
.docs-checklist li::before { content: "✓"; position: absolute; left: 0; top: 10px; width: 20px; height: 20px; display: grid; place-items: center; border-radius: 50%; color: var(--docs-accent); background: var(--docs-accent-soft); font-size: 11px; font-weight: 700; }
.docs-legal-list { margin: 22px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--docs-line); }
.docs-legal-list li { position: relative; padding: 13px 0 13px 24px; border-bottom: 1px solid var(--docs-line); color: #555c61; font-size: 14px; line-height: 1.58; }
.docs-legal-list li::before { content: "—"; position: absolute; left: 2px; color: #90979c; }
.docs-section > p strong, .docs-legal-list strong { color: #22272a; font-weight: 650; }
.docs-table-wrap a { color: var(--docs-accent); text-decoration: underline; text-underline-offset: 3px; }
.docs-rights-grid { margin-top: 24px; display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); border: 1px solid var(--docs-line); border-radius: 9px; overflow: hidden; }
.docs-rights-grid article { min-height: 118px; padding: 18px; }
.docs-rights-grid article:nth-child(even) { border-left: 1px solid var(--docs-line); }
.docs-rights-grid article:nth-child(n+3) { border-top: 1px solid var(--docs-line); }
.docs-rights-grid strong { font-size: 15px; }
.docs-rights-grid p { margin: 7px 0 0; color: #687075; font-size: 13px; line-height: 1.5; }
.docs-related { margin-top: 30px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.docs-related > a { min-height: 88px; padding: 17px 18px; display: grid; grid-template-columns: 1fr auto; align-content: center; border: 1px solid var(--docs-line); border-radius: 9px; }
.docs-related > a:hover { border-color: #b2bcc2; background: #fafbfb; }
.docs-related span { grid-column: 1; margin-bottom: 5px; color: #8a9196; font-size: 11px; }
.docs-related strong { grid-column: 1; font-size: 15px; }
.docs-related b { grid-column: 2; grid-row: 1 / 3; align-self: center; color: var(--docs-accent); font-size: 17px; }
.docs-callout { margin-top: 24px; padding: 17px 19px; border-left: 3px solid var(--docs-accent); background: #f4f8fa; }
.docs-callout span { color: var(--docs-accent); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; }
.docs-callout p { margin: 7px 0 0; color: #515a60; font-size: 14px; line-height: 1.6; }
.docs-callout-warning { border-color: #9a642d; background: #fbf7f1; }
.docs-callout-warning span { color: #85511f; }

.docs-card-grid-three { grid-template-columns: repeat(3, 1fr); }
.docs-mini-card { padding: 20px; border: 1px solid var(--docs-line); border-radius: 9px; }
.docs-mini-card span { display: block; color: #8a9196; font-size: 11px; text-transform: uppercase; letter-spacing: .07em; }
.docs-mini-card strong { display: block; margin-top: 18px; font-size: 18px; }
.docs-mini-card p { margin: 7px 0 0; color: #6b7277; font-size: 13px; line-height: 1.5; }
.docs-code { margin-top: 28px; overflow: hidden; border: 1px solid #263b49; border-radius: 10px; background: #122532; color: #dce8ee; }
.docs-code > div { height: 42px; padding: 0 16px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid rgba(255,255,255,.1); color: #aebfc8; font-size: 11px; }
.docs-code button { padding: 4px 8px; border: 1px solid rgba(255,255,255,.18); border-radius: 4px; color: #dce8ee; background: transparent; cursor: pointer; font-size: 11px; }
.docs-code pre { margin: 0; padding: 20px; overflow-x: auto; }
.docs-code code { font-family: "DM Mono", monospace; font-size: 12px; line-height: 1.7; }
.docs-caption { margin-top: 10px !important; color: #838a8f !important; font-size: 12px !important; }
.docs-table-wrap { margin-top: 28px; overflow-x: auto; border: 1px solid var(--docs-line); border-radius: 9px; }
.docs-table-wrap table { width: 100%; border-collapse: collapse; font-size: 14px; }
.docs-table-wrap th, .docs-table-wrap td { padding: 14px 16px; border-bottom: 1px solid var(--docs-line); text-align: left; vertical-align: top; }
.docs-table-wrap tr:last-child td { border-bottom: 0; }
.docs-table-wrap th { color: #4e555a; background: var(--docs-soft); font-size: 12px; }
.docs-table-wrap td:first-child { width: 31%; color: #272c30; font-weight: 600; }
.docs-table-wrap td:last-child { color: #62696e; }
.docs-page :not(.docs-code) > code { padding: 1px 5px; border: 1px solid #dfe3e6; border-radius: 4px; background: #f4f6f7; color: #2c3236; font-family: "DM Mono", monospace; font-size: .88em; }
.docs-table-wide table { min-width: 880px; }
.docs-table-wide th, .docs-table-wide td { padding: 13px 15px; font-size: 13px; line-height: 1.55; }
.docs-table-wide td:first-child { width: auto; }
.docs-table-wide td:last-child, .docs-table-wide td:nth-child(5) { white-space: normal; }


.docs-policy-list { margin-top: 28px; border-top: 1px solid var(--docs-line); }
.docs-policy-list > a { min-height: 112px; padding: 20px 3px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--docs-line); }
.docs-policy-list > a:hover strong { color: var(--docs-accent); }
.docs-policy-list span { display: block; margin-bottom: 6px; color: #878e93; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; }
.docs-policy-list strong { font-size: 18px; }
.docs-policy-list p { margin: 5px 0 0; color: #6b7277; font-size: 13px; line-height: 1.45; }
.docs-policy-list b { color: var(--docs-accent); font-size: 18px; }
.docs-end { margin-top: 38px; padding: 28px 0; display: flex; align-items: center; justify-content: space-between; }
.docs-end span { display: block; margin-bottom: 6px; color: #878e93; font-size: 11px; text-transform: uppercase; letter-spacing: .07em; }
.docs-end strong { font-size: 20px; }
.docs-end a { color: var(--docs-accent); font-size: 14px; font-weight: 650; }

.docs-toc { position: sticky; top: calc(var(--docs-header-height) + 39px); align-self: start; padding-top: 7px; }
.docs-toc h2 { margin: 0 0 13px; font-size: 23px; line-height: 1.2; letter-spacing: -.035em; font-weight: 600; text-transform: none; }
.docs-toc h2 span { margin-right: 5px; color: #8c9297; font-weight: 400; }
.docs-toc a { display: block; padding: 5px 0 5px 13px; border-left: 1px solid #e0e3e5; color: #6d7479; font-size: 12px; line-height: 1.45; }
.docs-toc a:hover, .docs-toc a.is-active { color: var(--docs-accent); border-left-color: var(--docs-accent); }

.docs-search[hidden] { display: none; }
.docs-search { position: fixed; z-index: 400; inset: 0; display: grid; place-items: start center; padding-top: min(18vh, 150px); }
.docs-search-backdrop { position: absolute; inset: 0; border: 0; background: rgba(18,24,28,.5); backdrop-filter: blur(3px); cursor: default; }
.docs-search-dialog { position: relative; width: min(620px, calc(100% - 32px)); max-height: min(650px, 72vh); overflow: hidden; border: 1px solid #d7dbde; border-radius: 13px; background: #fff; box-shadow: 0 30px 90px rgba(7,18,25,.22); }
.docs-search-dialog h2 { margin: 0; padding: 17px 20px 10px; font-size: 14px; }
.docs-search-dialog label { margin: 0 14px; height: 47px; display: grid; grid-template-columns: 26px 1fr; align-items: center; border: 1px solid #bfc6ca; border-radius: 8px; }
.docs-search-dialog label span { padding-left: 10px; font-size: 20px; }
.docs-search-dialog input { width: 100%; height: 100%; padding: 0 12px 0 0; border: 0; outline: 0; background: transparent; font-size: 15px; }
.docs-search-results { max-height: 430px; padding: 12px 14px; overflow-y: auto; }
.docs-search-result { width: 100%; padding: 13px 12px; display: block; border: 0; border-radius: 7px; background: #fff; text-align: left; cursor: pointer; }
.docs-search-result:hover, .docs-search-result.is-selected { background: var(--docs-accent-soft); }
.docs-search-result strong { display: block; color: #252a2d; font-size: 14px; }
.docs-search-result span { display: block; margin-top: 4px; color: #777e83; font-size: 12px; }
.docs-search-empty { padding: 26px 12px; color: #777e83; font-size: 13px; text-align: center; }
.docs-search-dialog > p { margin: 0; padding: 11px 16px; border-top: 1px solid var(--docs-line); color: #83898e; font-size: 10px; }
.docs-search-dialog > p kbd { margin: 0 2px; }

@media (max-width: 1120px) {
  .docs-main { grid-template-columns: minmax(0, 760px); }
  .docs-toc { display: none; }
}
@media (max-width: 820px) {
  :root { --docs-header-height: 108px; }
  .docs-header-main { width: calc(100% - 30px); height: 64px; grid-template-columns: 1fr auto; gap: 12px; }
  .docs-search-trigger { grid-column: 1 / -1; grid-row: 2; position: absolute; top: 65px; left: 15px; width: calc(100% - 30px); height: 34px; }
  .docs-search-trigger kbd { display: none; }
  .docs-header-actions > a { display: none; }
  .docs-mobile-toggle { display: block; padding: 7px 0 7px 14px; color: var(--docs-accent); font-size: 13px; font-weight: 650; }
  .docs-tabs { display: none; }
  .docs-layout { display: block; }
  .docs-sidebar { position: fixed; z-index: 170; top: var(--docs-header-height); bottom: 0; left: 0; width: min(315px, 86vw); height: auto; transform: translateX(-102%); transition: transform .25s ease; box-shadow: 18px 0 60px rgba(17,30,38,.12); }
  body.docs-menu-open .docs-sidebar { transform: translateX(0); }
  .docs-main { display: block; padding: 31px 22px 80px; }
  .docs-hero { padding: 35px 0 60px; }
  .docs-notice { grid-template-columns: 1fr; gap: 7px; }
  .docs-section { padding: 60px 0; }
}
@media (max-width: 600px) {
  .docs-brand { font-size: 20px; }
  .docs-brand img { width: 24px; height: 24px; }
  .docs-main { padding-inline: 18px; }
  .docs-lead { font-size: 17px; }
  .docs-card-grid, .docs-related, .docs-card-grid-three { grid-template-columns: 1fr; }
  .docs-card { min-height: 170px; }
  .docs-flow { grid-template-columns: 1fr 1fr; }
  .docs-flow div:nth-child(3) { border-left: 0; border-top: 1px solid var(--docs-line); }
  .docs-flow div:nth-child(4) { border-top: 1px solid var(--docs-line); }
  .docs-steps-compact { display: block; }
  .docs-steps-compact li + li { border-left: 0; border-top: 1px solid var(--docs-line); }
  .docs-end { align-items: flex-start; flex-direction: column; gap: 18px; }
  .docs-policy-meta { grid-template-columns: 1fr; }
  .docs-policy-meta div + div { border-left: 0; border-top: 1px solid var(--docs-line); }
  .docs-rights-grid { grid-template-columns: 1fr; }
  .docs-rights-grid article:nth-child(even) { border-left: 0; }
  .docs-rights-grid article + article { border-top: 1px solid var(--docs-line); }
}

@media (prefers-reduced-motion: reduce) {
  .docs-sidebar, .docs-card { transition: none; }
}
