:root {
    --bg: #111115;
    --bg-elevated: #15151a;
    --bg-soft: #19191f;
    --panel: #17171c;
    --panel-hover: #1c1c22;
    --code: #0d0d11;
    --line: rgba(255,255,255,.08);
    --line-strong: rgba(255,255,255,.14);
    --text: #f6f6f8;
    --muted: #92929d;
    --muted-2: #686873;
    --red: #e53232;
    --red-bright: #ff4545;
    --red-soft: rgba(229,50,50,.12);
    --green: #40cf8a;
    --amber: #f1b84b;
    --blue: #66a8ff;
    --purple: #b68cff;
    --header-h: 72px;
    --sidebar-w: 278px;
    --toc-w: 210px;
    --content-w: 820px;
    --radius: 18px;
    --shadow: 0 18px 60px rgba(0,0,0,.22);
}

html.light {
    --bg: #f5f6f8;
    --bg-elevated: #ffffff;
    --bg-soft: #f0f1f4;
    --panel: #ffffff;
    --panel-hover: #f7f7f9;
    --code: #16161c;
    --line: rgba(22,22,28,.09);
    --line-strong: rgba(22,22,28,.16);
    --text: #18181d;
    --muted: #6f6f79;
    --muted-2: #9999a2;
    --red-soft: rgba(229,50,50,.08);
    --shadow: 0 18px 60px rgba(22,22,28,.08);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-h) + 28px);
    background: var(--bg);
}

body {
    margin: 0;
    min-width: 320px;
    color: var(--text);
    background:
        radial-gradient(circle at 78% 10%, rgba(229,50,50,.055), transparent 27rem),
        var(--bg);
    font-family: "Onest", Arial, sans-serif;
    font-size: 15px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

button,
input {
    font: inherit;
}

a {
    color: inherit;
    text-decoration: none;
}

code,
pre,
kbd {
    font-family: "Roboto Mono", Consolas, monospace;
}

button {
    color: inherit;
}

::selection {
    color: #fff;
    background: rgba(229,50,50,.72);
}

::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    border: 3px solid transparent;
    border-radius: 999px;
    background: rgba(130,130,142,.4);
    background-clip: padding-box;
}

.docs-header {
    position: fixed;
    z-index: 100;
    top: 0;
    right: 0;
    left: 0;
    height: var(--header-h);
    display: flex;
    align-items: center;
    gap: 22px;
    padding: 0 24px;
    border-bottom: 1px solid var(--line);
    background: color-mix(in srgb, var(--bg-elevated) 88%, transparent);
    backdrop-filter: blur(20px);
}

.docs-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 231px;
}

.docs-brand__logo {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 13px;
    background: var(--red-soft);
    box-shadow: inset 0 0 0 1px rgba(229,50,50,.14);
}

.docs-brand__logo img {
    width: 29px;
    height: 29px;
    object-fit: contain;
}

.docs-brand__text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.docs-brand__text strong {
    font-size: 16px;
    letter-spacing: -.02em;
}

.docs-brand__text small {
    margin-top: 5px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.docs-header__version {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 11px;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--muted);
    background: var(--bg-soft);
    font-size: 11px;
    font-weight: 700;
}

.docs-status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 0 4px rgba(64,207,138,.1);
}

.docs-header__actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}

.docs-header__link {
    padding: 9px 13px;
    border-radius: 10px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 600;
    transition: .2s ease;
}

.docs-header__link:hover {
    color: var(--text);
    background: var(--bg-soft);
}

.docs-header__link--store {
    color: #fff;
    background: var(--red);
}

.docs-header__link--store:hover {
    color: #fff;
    background: var(--red-bright);
}

.docs-icon-btn,
.docs-menu-btn {
    width: 39px;
    height: 39px;
    display: grid;
    place-items: center;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 11px;
    background: var(--bg-soft);
    cursor: pointer;
    transition: .2s ease;
}

.docs-icon-btn:hover,
.docs-menu-btn:hover {
    border-color: var(--line-strong);
    background: var(--panel-hover);
}

.docs-theme-icon {
    width: 21px;
    height: 21px;
    object-fit: contain;
}

.docs-lang-icon {
    width: 22px;
    height: 22px;
    object-fit: contain;
}

.docs-theme-light,
html.light .docs-theme-dark {
    display: none;
}

html.light .docs-theme-light {
    display: block;
}

.docs-lang-btn {
    overflow: hidden;
}

.docs-menu-btn {
    display: none;
    align-content: center;
    gap: 4px;
}

.docs-menu-btn span {
    width: 17px;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
}

.docs-shell {
    min-height: 100vh;
    padding-top: var(--header-h);
}

.docs-sidebar {
    position: fixed;
    z-index: 80;
    top: var(--header-h);
    bottom: 0;
    left: 0;
    width: var(--sidebar-w);
    display: flex;
    flex-direction: column;
    border-right: 1px solid var(--line);
    background: var(--bg-elevated);
}

.docs-sidebar__top {
    padding: 20px 18px 12px;
}

.docs-search {
    position: relative;
    display: block;
}

.docs-search svg {
    position: absolute;
    top: 50%;
    left: 13px;
    width: 17px;
    height: 17px;
    fill: none;
    stroke: var(--muted);
    stroke-linecap: round;
    stroke-width: 1.8;
    transform: translateY(-50%);
}

.docs-search input {
    width: 100%;
    height: 42px;
    padding: 0 40px;
    border: 1px solid var(--line);
    outline: none;
    border-radius: 12px;
    color: var(--text);
    background: var(--bg-soft);
    font-size: 12px;
    transition: .2s ease;
}

.docs-search input::placeholder {
    color: var(--muted-2);
}

.docs-search input:focus {
    border-color: rgba(229,50,50,.45);
    box-shadow: 0 0 0 3px rgba(229,50,50,.08);
}

.docs-search kbd {
    position: absolute;
    top: 50%;
    right: 10px;
    min-width: 22px;
    padding: 2px 6px;
    border: 1px solid var(--line);
    border-radius: 6px;
    color: var(--muted-2);
    background: var(--panel);
    font-size: 10px;
    text-align: center;
    transform: translateY(-50%);
}

.docs-nav {
    flex: 1;
    overflow-y: auto;
    padding: 4px 12px 24px;
}

.docs-nav__group + .docs-nav__group {
    margin-top: 25px;
}

.docs-nav__label {
    padding: 0 10px 8px;
    color: var(--muted-2);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .12em;
}

.docs-nav__link {
    position: relative;
    min-height: 38px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 7px 10px;
    border-radius: 9px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 600;
    transition: .18s ease;
}

.docs-nav__link:hover {
    color: var(--text);
    background: var(--bg-soft);
}

.docs-nav__link.is-active {
    color: var(--text);
    background: var(--red-soft);
}

.docs-nav__link.is-active::before {
    position: absolute;
    top: 50%;
    left: -12px;
    width: 3px;
    height: 21px;
    border-radius: 0 4px 4px 0;
    background: var(--red);
    transform: translateY(-50%);
    content: "";
}

.docs-nav__icon {
    width: 26px;
    color: var(--muted-2);
    font-family: "Roboto Mono", monospace;
    font-size: 10px;
    font-weight: 700;
    text-align: center;
}

.method {
    width: 31px;
    font-family: "Roboto Mono", monospace;
    font-size: 8px;
    font-weight: 800;
}

.method--get {
    color: var(--green);
}

.method--post {
    color: var(--amber);
}

.docs-sidebar__footer {
    margin: 0 16px 18px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: linear-gradient(135deg, var(--red-soft), transparent), var(--bg-soft);
}

.docs-sidebar__footer p {
    margin: 0 0 9px;
    color: var(--muted);
    font-size: 11px;
}

.docs-sidebar__footer a {
    display: flex;
    justify-content: space-between;
    color: var(--text);
    font-size: 12px;
    font-weight: 700;
}

.docs-sidebar-backdrop {
    display: none;
}

.docs-main {
    min-height: calc(100vh - var(--header-h));
    display: grid;
    grid-template-columns: minmax(0, var(--content-w)) var(--toc-w);
    gap: 72px;
    justify-content: center;
    margin-left: var(--sidebar-w);
    padding: 58px 46px 70px;
}

.docs-content {
    min-width: 0;
}

.docs-section {
    padding: 30px 0 44px;
    border-bottom: 1px solid var(--line);
}

.docs-section:first-child {
    padding-top: 12px;
}

.docs-section:last-of-type {
    border-bottom: 0;
}

.docs-section--embedded {
    margin-top: 30px;
    padding: 26px 0 8px;
    border-top: 1px solid var(--line);
    border-bottom: 0;
}

.docs-section--embedded .section-kicker {
    margin-bottom: 6px;
}

.docs-section--embedded .docs-subsection-title {
    margin: 0;
    font-size: 22px;
    letter-spacing: -.035em;
}

.docs-section--embedded .section-lead {
    margin-bottom: 18px;
}

.docs-section h2 {
    margin: 0;
    font-size: clamp(28px, 3.2vw, 38px);
    line-height: 1.18;
    letter-spacing: -.045em;
}

.docs-section h3 {
    margin: 34px 0 14px;
    font-size: 17px;
    letter-spacing: -.02em;
}

.docs-section > p:not(.section-lead) {
    color: var(--muted);
}

.docs-section p code,
.docs-steps code,
.checklist code {
    padding: 2px 5px;
    border: 1px solid var(--line);
    border-radius: 5px;
    color: color-mix(in srgb, var(--red-bright) 75%, var(--text));
    background: var(--red-soft);
    font-size: .86em;
}

.section-kicker {
    margin-bottom: 9px;
    color: var(--red);
    font-family: "Roboto Mono", monospace;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .1em;
}

.section-lead {
    max-width: 700px;
    margin: 13px 0 25px;
    color: var(--muted);
    font-size: 15px;
}

.docs-hero {
    position: relative;
}

.docs-hero::before {
    position: absolute;
    z-index: -1;
    top: -120px;
    left: -180px;
    width: 520px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(229,50,50,.11), transparent 68%);
    pointer-events: none;
    content: "";
}

.docs-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
    padding: 7px 11px;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--muted);
    background: var(--bg-soft);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.docs-eyebrow__dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--red);
    box-shadow: 0 0 0 4px var(--red-soft);
}

.docs-hero h1 {
    margin: 0;
    font-size: clamp(48px, 7vw, 76px);
    line-height: 1;
    letter-spacing: -.065em;
}

.docs-hero h1 span {
    color: var(--red);
}

.docs-hero__lead {
    max-width: 730px;
    margin: 24px 0 28px;
    color: var(--muted);
    font-size: 18px;
    line-height: 1.65;
}

.docs-hero__meta {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 10px;
    margin-bottom: 20px;
}

.docs-hero__meta > div {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-radius: 13px;
    background: var(--panel);
}

.docs-hero__meta span {
    flex: none;
    color: var(--muted);
    font-size: 11px;
}

.docs-hero__meta code,
.docs-hero__meta strong {
    overflow: hidden;
    color: var(--text);
    font-size: 11px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.inline-copy {
    flex: none;
    margin-left: auto;
    padding: 5px;
    border: 0;
    color: var(--muted);
    background: transparent;
    cursor: pointer;
}

.inline-copy:hover {
    color: var(--text);
}

.docs-callout {
    display: flex;
    gap: 14px;
    margin: 20px 0;
    padding: 17px 18px;
    border: 1px solid var(--line);
    border-left-width: 3px;
    border-radius: 12px;
    background: var(--panel);
}

.docs-callout--info {
    border-left-color: var(--blue);
}

.docs-callout--warning {
    border-left-color: var(--amber);
}

.docs-callout--success {
    border-left-color: var(--green);
}

.docs-callout__icon {
    width: 24px;
    height: 24px;
    flex: none;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: var(--blue);
    background: rgba(102,168,255,.12);
    font-family: serif;
    font-size: 13px;
    font-weight: 800;
}

.docs-callout--warning .docs-callout__icon {
    color: var(--amber);
    background: rgba(241,184,75,.12);
}

.docs-callout--success .docs-callout__icon {
    color: var(--green);
    background: rgba(64,207,138,.12);
}

.docs-callout strong {
    display: block;
    margin-bottom: 3px;
    font-size: 13px;
}

.docs-callout p {
    margin: 0;
    color: var(--muted);
    font-size: 12px;
}

.docs-feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 24px;
}

.docs-feature {
    padding: 19px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--panel);
}

.docs-feature > span {
    display: block;
    margin-bottom: 22px;
    color: var(--red);
    font-family: "Roboto Mono", monospace;
    font-size: 10px;
    font-weight: 700;
}

.docs-feature strong {
    display: block;
    margin-bottom: 5px;
    font-size: 13px;
}

.docs-feature p {
    margin: 0;
    color: var(--muted);
    font-size: 11px;
}

.docs-feature code {
    color: var(--muted);
    font-size: 10px;
}

.docs-steps {
    margin: 0 0 25px;
    padding: 0;
    list-style: none;
}

.docs-steps li {
    position: relative;
    display: grid;
    grid-template-columns: 38px 1fr;
    gap: 15px;
    padding-bottom: 22px;
}

.docs-steps li:not(:last-child)::after {
    position: absolute;
    top: 38px;
    bottom: 0;
    left: 18px;
    width: 1px;
    background: var(--line);
    content: "";
}

.docs-steps li > span {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 11px;
    color: var(--red);
    background: var(--panel);
    font-family: "Roboto Mono", monospace;
    font-size: 11px;
    font-weight: 700;
}

.docs-steps strong {
    display: block;
    margin-bottom: 3px;
    font-size: 13px;
}

.docs-steps p {
    margin: 0;
    color: var(--muted);
    font-size: 12px;
}

.code-window {
    overflow: hidden;
    margin: 18px 0;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--code);
    box-shadow: 0 15px 35px rgba(0,0,0,.12);
}

.code-window__head {
    min-height: 43px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 14px;
    border-bottom: 1px solid rgba(255,255,255,.08);
    color: #8e8e9a;
    background: #121217;
}

.code-window__head > div {
    display: flex;
    gap: 5px;
}

.code-window__head > div span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #4c4c56;
}

.code-window__head > div span:first-child {
    background: #e34a4a;
}

.code-window__head > div span:nth-child(2) {
    background: #e0ad43;
}

.code-window__head > div span:nth-child(3) {
    background: #42b978;
}

.code-window__head strong {
    display: flex;
    align-items: center;
    gap: 7px;
    font-family: "Roboto Mono", monospace;
    font-size: 10px;
    font-weight: 500;
}

.code-copy {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-left: auto;
    padding: 6px 8px;
    border: 0;
    border-radius: 7px;
    color: #858590;
    background: transparent;
    font-size: 10px;
    cursor: pointer;
}

.code-copy:hover {
    color: #fff;
    background: rgba(255,255,255,.06);
}

.code-window pre {
    max-height: 510px;
    overflow: auto;
    margin: 0;
    padding: 18px 20px;
    color: #d8d8df;
    font-size: 11px;
    line-height: 1.75;
    tab-size: 2;
}

.code-window--large pre {
    max-height: 620px;
}

.code-window--compact {
    margin: 0;
}

.code-pair {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.response-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
}

.response-dot--ok {
    background: var(--green);
}

.response-dot--error {
    background: var(--red);
}

.docs-divider {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 52px 0 24px;
    color: var(--muted-2);
    font-family: "Roboto Mono", monospace;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .16em;
}

.docs-divider::before {
    position: absolute;
    right: 0;
    left: 0;
    height: 1px;
    background: var(--line);
    content: "";
}

.docs-divider span {
    z-index: 1;
    padding: 0 14px;
    background: var(--bg);
}

.endpoint-section {
    position: relative;
}

.endpoint-title {
    display: flex;
    align-items: center;
    gap: 12px;
}

.endpoint-method {
    min-width: 52px;
    padding: 7px 9px;
    border-radius: 8px;
    font-family: "Roboto Mono", monospace;
    font-size: 10px;
    font-weight: 800;
    text-align: center;
}

.endpoint-method--get {
    color: var(--green);
    background: rgba(64,207,138,.11);
}

.endpoint-method--post {
    color: var(--amber);
    background: rgba(241,184,75,.11);
}

.endpoint-title h2 {
    font-family: "Roboto Mono", monospace;
    font-size: clamp(24px, 3vw, 32px);
    letter-spacing: -.04em;
}

.endpoint-url {
    min-height: 52px;
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 10px 14px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--panel);
}

.endpoint-url > span {
    color: var(--green);
    font-family: "Roboto Mono", monospace;
    font-size: 9px;
    font-weight: 800;
}

.endpoint-url code {
    overflow: hidden;
    color: var(--text);
    font-size: 11px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.endpoint-url--long code {
    overflow-x: auto;
    text-overflow: clip;
}

.parameter-table {
    overflow: hidden;
    margin: 20px 0;
    border: 1px solid var(--line);
    border-radius: 13px;
}

.parameter-table > div {
    display: grid;
    grid-template-columns: 150px 100px minmax(0, 1fr);
    align-items: center;
    min-height: 51px;
    padding: 10px 15px;
}

.parameter-table > div + div {
    border-top: 1px solid var(--line);
}

.parameter-table__head {
    min-height: 36px !important;
    color: var(--muted-2);
    background: var(--bg-soft);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .07em;
    text-transform: uppercase;
}

.parameter-table code {
    color: color-mix(in srgb, var(--red-bright) 72%, var(--text));
    font-size: 11px;
}

.parameter-table code i {
    color: var(--red);
    font-style: normal;
}

.parameter-table > div > span {
    color: var(--purple);
    font-family: "Roboto Mono", monospace;
    font-size: 9px;
}

.parameter-table p {
    margin: 0;
    color: var(--muted);
    font-size: 11px;
}

.tag-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin: 20px 0;
}

.tag-row > span {
    display: flex;
    flex-direction: column;
    padding: 13px;
    border: 1px solid var(--line);
    border-radius: 11px;
    background: var(--panel);
}

.tag-row b {
    color: var(--green);
    font-family: "Roboto Mono", monospace;
    font-size: 10px;
}

.tag-row small {
    margin-top: 4px;
    color: var(--muted);
    font-size: 9px;
}

.code-tabs {
    margin: 20px 0;
}

.code-tabs__nav {
    display: inline-flex;
    gap: 4px;
    padding: 4px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--bg-soft);
}

.code-tabs__nav button {
    padding: 7px 12px;
    border: 0;
    border-radius: 7px;
    color: var(--muted);
    background: transparent;
    font-family: "Roboto Mono", monospace;
    font-size: 10px;
    cursor: pointer;
}

.code-tabs__nav button.is-active {
    color: #fff;
    background: var(--red);
}

.code-tab-panel {
    display: none;
}

.code-tab-panel.is-active {
    display: block;
}

.flow-diagram {
    display: grid;
    grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
    align-items: center;
    gap: 9px;
    margin: 25px 0 30px;
}

.flow-diagram > div {
    min-width: 0;
    padding: 14px 10px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--panel);
    text-align: center;
}

.flow-diagram > div > span {
    width: 21px;
    height: 21px;
    display: grid;
    place-items: center;
    margin: 0 auto 8px;
    border-radius: 50%;
    color: var(--red);
    background: var(--red-soft);
    font-family: "Roboto Mono", monospace;
    font-size: 8px;
    font-weight: 800;
}

.flow-diagram strong {
    display: block;
    overflow: hidden;
    font-family: "Roboto Mono", monospace;
    font-size: 9px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.flow-diagram small {
    display: block;
    margin-top: 3px;
    color: var(--muted);
    font-size: 8px;
}

.flow-diagram > i {
    color: var(--muted-2);
    font-style: normal;
}

.status-examples {
    display: grid;
    gap: 8px;
    margin: 18px 0;
}

.status-examples > div {
    min-width: 0;
    display: grid;
    grid-template-columns: 45px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    padding: 11px 13px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--panel);
}

.status-examples code {
    overflow-x: auto;
    color: var(--muted);
    font-size: 9px;
    white-space: nowrap;
}

.status-examples p {
    margin: 0;
    color: var(--muted);
    font-size: 10px;
}

.http-status {
    min-width: 40px;
    display: inline-grid;
    place-items: center;
    padding: 4px 7px;
    border-radius: 6px;
    color: var(--muted);
    background: var(--bg-soft);
    font-family: "Roboto Mono", monospace;
    font-size: 9px;
    font-weight: 800;
}

.http-status--ok {
    color: var(--green);
    background: rgba(64,207,138,.1);
}

.http-status--pending,
.http-status--payment {
    color: var(--amber);
    background: rgba(241,184,75,.1);
}

.http-status--error,
.http-status--server {
    color: var(--red-bright);
    background: var(--red-soft);
}

.http-status--info {
    color: var(--blue);
    background: rgba(102,168,255,.1);
}

.http-status--conflict,
.http-status--limit {
    color: var(--purple);
    background: rgba(182,140,255,.1);
}

.idempotency-card {
    display: grid;
    grid-template-columns: 1fr auto 1.35fr auto 1.25fr;
    align-items: stretch;
    gap: 9px;
    margin: 24px 0;
}

.idempotency-card > div {
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 15px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--panel);
}

.idempotency-card > span {
    align-self: center;
    color: var(--muted-2);
}

.idempotency-card small {
    margin-bottom: 5px;
    color: var(--muted);
    font-size: 9px;
}

.idempotency-card strong,
.idempotency-card code {
    overflow: hidden;
    font-size: 10px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.idempotency-card__safe {
    border-color: rgba(64,207,138,.22) !important;
    background: rgba(64,207,138,.06) !important;
}

.idempotency-card__safe strong {
    color: var(--green);
}

.error-table {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.error-table > div {
    display: grid;
    grid-template-columns: 45px 1fr;
    align-items: center;
    gap: 12px;
    min-height: 56px;
    padding: 10px 13px;
    border: 1px solid var(--line);
    border-radius: 11px;
    background: var(--panel);
}

.error-table p {
    margin: 0;
    color: var(--muted);
    font-size: 10px;
}

.header-field {
    margin: 20px 0;
    padding: 17px 18px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--panel);
}

.header-field > div {
    display: flex;
    align-items: center;
    gap: 10px;
}

.header-field code {
    color: var(--text);
    font-size: 12px;
}

.header-field p {
    margin: 7px 0 0;
    color: var(--muted);
    font-size: 11px;
}

.field-required {
    padding: 3px 6px;
    border-radius: 5px;
    color: var(--red);
    background: var(--red-soft);
    font-size: 8px;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.header-field--response code {
    color: var(--amber);
}

.security-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.security-grid > div {
    position: relative;
    min-height: 130px;
    padding: 20px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--panel);
}

.security-grid > div > span {
    position: absolute;
    top: 8px;
    right: 14px;
    color: var(--line-strong);
    font-family: "Roboto Mono", monospace;
    font-size: 32px;
    font-weight: 800;
}

.security-grid strong {
    position: relative;
    display: block;
    margin-bottom: 8px;
    font-size: 13px;
}

.security-grid p {
    position: relative;
    margin: 0;
    color: var(--muted);
    font-size: 11px;
}

.checklist {
    display: grid;
    gap: 8px;
}

.checklist label {
    min-height: 53px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 14px;
    border: 1px solid var(--line);
    border-radius: 11px;
    background: var(--panel);
    cursor: pointer;
    transition: .2s ease;
}

.checklist label:hover {
    border-color: var(--line-strong);
    background: var(--panel-hover);
}

.checklist input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.checklist label > span {
    width: 20px;
    height: 20px;
    flex: none;
    display: grid;
    place-items: center;
    border: 1px solid var(--line-strong);
    border-radius: 6px;
    background: var(--bg-soft);
}

.checklist input:checked + span {
    border-color: var(--green);
    background: var(--green);
}

.checklist input:checked + span::after {
    color: #07170e;
    font-size: 12px;
    font-weight: 900;
    content: "✓";
}

.checklist label:has(input:checked) p {
    color: var(--muted-2);
    text-decoration: line-through;
}

.checklist p {
    margin: 0;
    color: var(--text);
    font-size: 11px;
}

.docs-cta {
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 28px;
    margin-top: 40px;
    padding: 34px;
    overflow: hidden;
    border: 1px solid rgba(229,50,50,.24);
    border-radius: 20px;
    background:
        radial-gradient(circle at 88% 20%, rgba(229,50,50,.22), transparent 15rem),
        linear-gradient(135deg, var(--red-soft), transparent 60%),
        var(--panel);
    box-shadow: var(--shadow);
}

.docs-cta::after {
    position: absolute;
    right: -46px;
    bottom: -92px;
    width: 210px;
    height: 210px;
    border: 32px solid rgba(229,50,50,.05);
    border-radius: 50%;
    content: "";
}

.docs-cta > div {
    position: relative;
    z-index: 1;
}

.docs-cta > div > span {
    color: var(--red);
    font-family: "Roboto Mono", monospace;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .12em;
}

.docs-cta h2 {
    margin: 8px 0 7px;
    font-size: 29px;
    letter-spacing: -.04em;
}

.docs-cta p {
    max-width: 520px;
    margin: 0;
    color: var(--muted);
    font-size: 12px;
}

.docs-cta > a {
    position: relative;
    z-index: 1;
    flex: none;
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 13px 17px;
    border-radius: 11px;
    color: #fff;
    background: var(--red);
    font-size: 12px;
    font-weight: 700;
    transition: .2s ease;
}

.docs-cta > a:hover {
    background: var(--red-bright);
    transform: translateY(-2px);
}

.docs-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 34px 0 0;
    color: var(--muted-2);
    font-size: 10px;
}

.docs-footer a:hover {
    color: var(--text);
}

.docs-toc {
    position: sticky;
    top: calc(var(--header-h) + 44px);
    align-self: start;
    display: flex;
    flex-direction: column;
    gap: 9px;
    padding-left: 18px;
    border-left: 1px solid var(--line);
}

.docs-toc strong {
    margin-bottom: 5px;
    color: var(--text);
    font-size: 10px;
}

.docs-toc a {
    color: var(--muted);
    font-size: 10px;
    transition: .18s ease;
}

.docs-toc a:hover,
.docs-toc a.is-active {
    color: var(--red);
}

.docs-toc__line {
    height: 2px;
    margin-top: 10px;
    overflow: hidden;
    border-radius: 2px;
    background: var(--line);
}

.docs-toc__line span {
    width: 0;
    height: 100%;
    display: block;
    background: var(--red);
    transition: width .1s linear;
}

.docs-toast {
    position: fixed;
    z-index: 200;
    right: 24px;
    bottom: 24px;
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 11px 15px;
    border: 1px solid rgba(64,207,138,.24);
    border-radius: 11px;
    color: var(--text);
    background: color-mix(in srgb, var(--panel) 94%, transparent);
    box-shadow: var(--shadow);
    font-size: 11px;
    font-weight: 600;
    opacity: 0;
    pointer-events: none;
    transform: translateY(14px);
    transition: .25s ease;
    backdrop-filter: blur(16px);
}

.docs-toast span:first-child {
    color: var(--green);
}

.docs-toast.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.docs-section.search-hidden {
    display: none;
}

@media (max-width: 1280px) {
    :root {
        --sidebar-w: 252px;
        --toc-w: 170px;
    }

    .docs-main {
        gap: 38px;
        padding-right: 30px;
        padding-left: 36px;
    }
}

@media (max-width: 1080px) {
    .docs-main {
        grid-template-columns: minmax(0, var(--content-w));
    }

    .docs-toc {
        display: none;
    }
}

@media (max-width: 820px) {
    :root {
        --header-h: 64px;
    }

    .docs-header {
        gap: 10px;
        padding: 0 15px;
    }

    .docs-brand {
        min-width: 0;
    }

    .docs-brand__logo {
        width: 38px;
        height: 38px;
    }

    .docs-brand__logo img {
        width: 26px;
        height: 26px;
    }

    .docs-header__version,
    .docs-header__link {
        display: none;
    }

    .docs-menu-btn {
        display: grid;
    }

    .docs-sidebar {
        width: min(310px, calc(100vw - 42px));
        box-shadow: 30px 0 70px rgba(0,0,0,.25);
        transform: translateX(-105%);
        transition: transform .28s ease;
    }

    .docs-sidebar.is-open {
        transform: translateX(0);
    }

    .docs-sidebar-backdrop {
        position: fixed;
        z-index: 70;
        inset: var(--header-h) 0 0;
        display: block;
        background: rgba(0,0,0,.48);
        opacity: 0;
        pointer-events: none;
        transition: opacity .28s ease;
        backdrop-filter: blur(3px);
    }

    .docs-sidebar-backdrop.is-open {
        opacity: 1;
        pointer-events: auto;
    }

    .docs-main {
        display: block;
        margin-left: 0;
        padding: 38px 22px 60px;
    }
}

@media (max-width: 600px) {
    body {
        font-size: 14px;
    }

    .docs-brand__text small {
        display: none;
    }

    .docs-brand__text strong {
        font-size: 14px;
    }

    .docs-header__actions {
        gap: 6px;
    }

    .docs-icon-btn,
    .docs-menu-btn {
        width: 37px;
        height: 37px;
    }

    .docs-main {
        padding: 28px 15px 48px;
    }

    .docs-section {
        padding: 25px 0 35px;
    }

    .docs-hero h1 {
        font-size: 44px;
    }

    .docs-hero__lead {
        margin-top: 18px;
        font-size: 15px;
    }

    .docs-hero__meta,
    .docs-feature-grid,
    .code-pair,
    .security-grid,
    .error-table {
        grid-template-columns: 1fr;
    }

    .docs-hero__meta > div {
        min-height: 50px;
    }

    .docs-feature {
        min-height: 125px;
    }

    .docs-feature > span {
        margin-bottom: 14px;
    }

    .code-window {
        margin-right: -2px;
        margin-left: -2px;
        border-radius: 12px;
    }

    .code-window pre {
        padding: 16px;
        font-size: 10px;
    }

    .parameter-table {
        overflow-x: auto;
    }

    .parameter-table > div {
        min-width: 620px;
        grid-template-columns: 140px 90px 1fr;
    }

    .tag-row {
        grid-template-columns: 1fr 1fr;
    }

    .flow-diagram {
        grid-template-columns: 1fr;
    }

    .flow-diagram > i {
        transform: rotate(90deg);
        text-align: center;
    }

    .endpoint-url {
        align-items: flex-start;
    }

    .endpoint-url code {
        white-space: normal;
        overflow-wrap: anywhere;
    }

    .idempotency-card {
        grid-template-columns: 1fr;
    }

    .idempotency-card > span {
        transform: rotate(90deg);
    }

    .docs-cta {
        align-items: stretch;
        flex-direction: column;
        padding: 26px 22px;
    }

    .docs-cta > a {
        justify-content: space-between;
    }

    .docs-toast {
        right: 15px;
        bottom: 15px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
    }
}
