[hidden]{display:none!important}
:root {
    --brand: #ff2b16;
    --brand-strong: #d92010;
    --text: #17191f;
    --muted: #667085;
    --border: #e5e7eb;
    --surface: #ffffff;
    --surface-soft: #f8fafc;
    --surface-elevated: #ffffff;
    --code: #111827;
    --shadow: 0 14px 40px rgba(17, 24, 39, 0.08);
}

:root[data-theme="dark"] {
    --text: #f3f4f6;
    --muted: #a8b0bf;
    --border: #2b3038;
    --surface: #111318;
    --surface-soft: #171a20;
    --surface-elevated: #1c2027;
    --code: #090b0f;
    --shadow: 0 14px 40px rgba(0, 0, 0, 0.34);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    color: var(--text);
    background: var(--surface);
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    line-height: 1.65;
}

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

button, input { font: inherit; }

a:focus-visible, button:focus-visible, input:focus-visible {
    outline: 3px solid rgba(255, 43, 22, 0.35);
    outline-offset: 3px;
}

.skip-link {
    position: fixed;
    top: -100px;
    left: 16px;
    z-index: 100;
    padding: 10px 14px;
    color: #fff;
    background: var(--brand);
    border-radius: 8px;
}

.skip-link:focus { top: 16px; }

.topbar {
    min-height: 72px;
    padding: 0 28px;
    border-bottom: 1px solid var(--border);
    background: color-mix(in srgb, var(--surface) 94%, transparent);
    backdrop-filter: blur(14px);
    display: flex;
    align-items: center;
    gap: 24px;
    position: sticky;
    top: 0;
    z-index: 40;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.brand-mark {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: var(--brand);
    color: #fff;
    font-size: 22px;
    font-weight: 800;
}

.brand-copy strong, .brand-copy small { display: block; }
.brand-copy small { color: var(--muted); }

.topnav {
    margin-left: 8px;
    display: flex;
    align-items: center;
    gap: 22px;
    color: var(--muted);
    font-weight: 650;
}

.topnav a:hover { color: var(--brand); }

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

.topbar-actions button,
.search-open,
.theme-toggle,
.menu-toggle {
    padding: 8px 11px;
    border: 1px solid var(--border);
    border-radius: 9px;
    color: var(--text);
    background: var(--surface-elevated);
    cursor: pointer;
}

.docs-layout {
    display: grid;
    grid-template-columns: 286px minmax(0, 1fr);
    min-height: calc(100vh - 72px);
}

.sidebar {
    border-right: 1px solid var(--border);
    background: var(--surface-soft);
    padding: 26px 18px;
}

.sidebar-nav {
    position: sticky;
    top: 96px;
    max-height: calc(100vh - 114px);
    overflow-y: auto;
    padding-bottom: 28px;
}

.nav-label {
    margin: 22px 12px 8px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.sidebar-nav a {
    display: block;
    padding: 9px 12px;
    margin: 2px 0;
    border-radius: 9px;
    color: var(--muted);
    font-weight: 650;
}

.sidebar-nav a:hover,
.sidebar-nav a.active {
    color: var(--brand);
    background: var(--surface-elevated);
}

.docs-content {
    width: 100%;
    max-width: 1120px;
    padding: 62px 56px 96px;
}

.hero {
    padding: 56px;
    border: 1px solid var(--border);
    border-radius: 26px;
    background:
        radial-gradient(circle at 90% 10%, rgba(255, 43, 22, 0.14), transparent 34%),
        linear-gradient(135deg, var(--surface-elevated), var(--surface-soft));
    box-shadow: var(--shadow);
}

.eyebrow {
    color: var(--brand);
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

h1 {
    max-width: 850px;
    margin: 10px 0 18px;
    font-size: clamp(38px, 6vw, 68px);
    line-height: 1.03;
    letter-spacing: -0.045em;
}

h2 {
    margin-top: 54px;
    font-size: 30px;
    line-height: 1.2;
    letter-spacing: -0.025em;
}

h3 { line-height: 1.25; }

.lead {
    max-width: 800px;
    color: var(--muted);
    font-size: 20px;
}

.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 18px;
    border: 1px solid var(--border);
    border-radius: 10px;
    font-weight: 760;
    background: var(--surface-elevated);
    transition: transform .15s ease, box-shadow .15s ease;
}

.button.primary {
    color: #fff;
    border-color: var(--brand);
    background: var(--brand);
}

.button:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 22px rgba(17, 24, 39, 0.1);
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-top: 22px;
}

.card {
    min-height: 176px;
    padding: 24px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: var(--surface-elevated);
    transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease;
}

.card:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 43, 22, 0.5);
    box-shadow: var(--shadow);
}

.card p, .muted { color: var(--muted); }

.doc-header {
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border);
}

.doc-header h1 { font-size: clamp(36px, 5vw, 56px); }

.callout {
    margin: 24px 0;
    padding: 18px 20px;
    border-left: 4px solid var(--brand);
    border-radius: 8px;
    background: color-mix(in srgb, var(--brand) 7%, var(--surface-elevated));
}

.callout.warning {
    border-left-color: #b54708;
    background: color-mix(in srgb, #f79009 10%, var(--surface-elevated));
}

.callout.success {
    border-left-color: #067647;
    background: color-mix(in srgb, #12b76a 9%, var(--surface-elevated));
}

.endpoint {
    display: grid;
    grid-template-columns: 86px minmax(0, 1fr);
    align-items: center;
    gap: 14px;
    margin: 14px 0;
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--surface-elevated);
}

.method {
    display: inline-grid;
    min-height: 34px;
    place-items: center;
    border-radius: 8px;
    color: #fff;
    background: #175cd3;
    font-size: 13px;
    font-weight: 800;
}

.method.post { background: #067647; }
.method.put { background: #b54708; }

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

table {
    width: 100%;
    border-collapse: collapse;
    margin: 24px 0;
}

th, td {
    padding: 13px 14px;
    border-bottom: 1px solid var(--border);
    text-align: left;
    vertical-align: top;
}

th { background: var(--surface-soft); }

code {
    padding: 3px 7px;
    border-radius: 6px;
    background: var(--surface-soft);
    font-family: "SFMono-Regular", Consolas, monospace;
    font-size: .94em;
}

pre {
    position: relative;
    overflow-x: auto;
    padding: 22px;
    color: #e5e7eb;
    background: var(--code);
    border-radius: 14px;
}

pre code {
    padding: 0;
    color: inherit;
    background: transparent;
}

.copy-code {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 7px 10px;
    border: 1px solid #3a404a;
    border-radius: 7px;
    color: #fff;
    background: #1d222b;
    cursor: pointer;
}

.search-panel {
    position: fixed;
    inset: 72px 0 auto;
    z-index: 35;
    padding: 22px;
    border-bottom: 1px solid var(--border);
    background: var(--surface);
    box-shadow: var(--shadow);
}

.search-box {
    max-width: 760px;
    margin: 0 auto;
}

.search-box label {
    display: block;
    margin-bottom: 8px;
    font-weight: 750;
}

.search-box input {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--border);
    border-radius: 11px;
    color: var(--text);
    background: var(--surface-elevated);
}

.search-results a {
    display: block;
    padding: 10px 0;
    color: var(--brand);
    border-bottom: 1px solid var(--border);
}

.footer {
    padding: 42px 30px;
    border-top: 1px solid #282d34;
    background: #0f1115;
    color: #fff;
}

.footer-grid {
    display: flex;
    justify-content: space-between;
    gap: 28px;
    flex-wrap: wrap;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    color: #d0d5dd;
}

.copyright { color: #98a2b3; }

@media (max-width: 960px) {
    .topnav { display: none; }
    .topbar-actions { display: flex; }
    .docs-layout { display: block; }

    .sidebar {
        display: none;
        position: fixed;
        inset: 72px 0 0;
        z-index: 32;
        overflow-y: auto;
    }

    .sidebar.open { display: block; }
    .sidebar-nav { position: static; max-height: none; }
    .docs-content { padding: 36px 20px 72px; }
    .hero { padding: 34px 25px; }
    .card-grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
    .topbar { padding: 0 14px; }
    .brand-copy small { display: none; }
    .search-open { display: none; }
    .endpoint { grid-template-columns: 72px minmax(0, 1fr); }
}

.menu-toggle{display:none}
.search-open,.theme-toggle,.menu-toggle{appearance:none;-webkit-appearance:none;line-height:1}
.search-open:hover,.theme-toggle:hover,.menu-toggle:hover{color:var(--brand);border-color:rgba(255,43,22,.45)}
pre>.copy-code{position:absolute!important;top:10px!important;right:10px!important;display:inline-flex;align-items:center;justify-content:center;min-width:62px;padding:7px 10px!important;border:1px solid #3a404a!important;border-radius:7px!important;color:#fff!important;background:#1d222b!important;font-size:12px;font-weight:700;cursor:pointer}
pre code{display:block;padding-right:78px;white-space:pre}
@media(max-width:960px){.menu-toggle{display:inline-flex}.topbar-actions{margin-left:auto}}
