.dx {
    --dx-ink: #101014;
    --dx-text: #2b2b33;
    --dx-muted: #71717a;
    --dx-line: #e9e9ef;
    --dx-soft: #f6f6f8;
    --dx-violet: #6d28d9;
    --dx-violet-soft: #f3efff;
    --dx-code: #0c0c11;
    --dx-code-line: #1e1e28;
    --dx-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    --dx-top: 96px;
    background: #fff;
    color: var(--dx-text);
}

.dx-wrap { max-width: 1320px; margin: 0 auto; padding: 0 24px; }

.dx-hero {
    position: relative;
    padding: 96px 0 56px;
    border-bottom: 1px solid var(--dx-line);
    background: radial-gradient(60% 120% at 20% 0%, rgba(124, 58, 237, .07), transparent 70%);
}

.dx-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: 999px;
    background: var(--dx-violet-soft);
    font-size: 12px;
    font-weight: 700;
    color: var(--dx-violet);
}

.dx-h1 { margin: 18px 0 0; font-size: 36px; line-height: 1.05; font-weight: 400; letter-spacing: -.025em; color: var(--dx-ink); }
.dx-h1 span { font-weight: 800; font-style: italic; }
.dx-lead { max-width: 620px; margin: 16px 0 0; font-size: 16px; line-height: 1.65; color: #000; }

.dx-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.dx-chip { padding: 6px 12px; border: 1px solid var(--dx-line); border-radius: 999px; background: #fff; font-size: 12.5px; font-weight: 600; color: var(--dx-ink); }

.dx-base {
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: 560px;
    margin-top: 26px;
    padding: 8px 8px 8px 16px;
    border: 1px solid var(--dx-line);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 18px 40px -28px rgba(16, 16, 20, .35);
}

.dx-base__label { flex-shrink: 0; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--dx-muted); }
.dx-base__url { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: var(--dx-mono); font-size: 13.5px; color: var(--dx-ink); }

.dx-copy {
    flex-shrink: 0;
    padding: 8px 14px;
    border: 0;
    border-radius: 10px;
    background: var(--dx-ink);
    font-size: 12px;
    font-weight: 700;
    color: #fff;
    cursor: pointer;
    transition: background .2s ease;
}

.dx-copy:hover { background: #000; }
.dx-copy.is-done { background: var(--dx-violet); }
.dx-copy--dark { padding: 5px 11px; background: transparent; border: 1px solid rgba(255, 255, 255, .16); font-size: 11.5px; }
.dx-copy--dark:hover { background: rgba(255, 255, 255, .08); }

.dx-shell { display: grid; grid-template-columns: 236px minmax(0, 1fr); gap: 48px; padding-top: 8px; padding-bottom: 96px; }

.dx-nav { position: relative; }
.dx-nav__toggle { display: none; }

.dx-nav__list {
    position: sticky;
    top: var(--dx-top);
    max-height: calc(100vh - var(--dx-top) - 24px);
    overflow-y: auto;
    padding: 32px 0 24px;
    scrollbar-width: none;
}

.dx-nav__list::-webkit-scrollbar { width: 0; height: 0; }

.dx-nav__group { margin-bottom: 22px; }
.dx-nav__title { display: block; margin-bottom: 6px; padding-left: 12px; font-size: 11px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--dx-muted); }

.dx-nav__link {
    position: relative;
    display: block;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    color: var(--dx-text);
    text-decoration: none;
    transition: background .15s ease, color .15s ease;
}

.dx-nav__link:hover { background: var(--dx-soft); color: var(--dx-ink); }
.dx-nav__link.is-active { background: var(--dx-violet-soft); color: var(--dx-violet); font-weight: 600; }

.dx-main { min-width: 0; }

.dx-sec {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, .92fr);
    gap: 40px;
    padding: 56px 0;
    border-bottom: 1px solid var(--dx-line);
    scroll-margin-top: calc(var(--dx-top) - 24px);
}

.dx-sec:last-child { border-bottom: 0; }
.dx-sec__body { min-width: 0; }
.dx-sec__body > p { margin: 0 0 14px; font-size: 15.5px; line-height: 1.75; color: var(--dx-text); }
.dx-sec__code { min-width: 0; }

.dx-h2 { margin: 0 0 14px; font-size: 26px; line-height: 1.15; font-weight: 800; letter-spacing: -.02em; color: var(--dx-ink); }

.dx-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 22px 0; }
.dx-card { display: flex; flex-direction: column; gap: 4px; padding: 14px; border: 1px solid var(--dx-line); border-radius: 14px; background: #fff; }
.dx-card__t { font-size: 14px; font-weight: 700; color: var(--dx-ink); }
.dx-card__d { font-size: 13px; line-height: 1.5; color: var(--dx-muted); }

.dx-note { display: flex; flex-direction: column; gap: 4px; margin-top: 18px; padding: 14px 16px; border-left: 3px solid var(--dx-violet); border-radius: 0 12px 12px 0; background: var(--dx-violet-soft); font-size: 14px; line-height: 1.6; color: var(--dx-text); }
.dx-note strong { color: var(--dx-ink); }
.dx-note--warn { border-left-color: #d97706; background: #fffbeb; }

.dx-steps { margin: 20px 0; padding: 0; list-style: none; }
.dx-steps li { display: flex; gap: 14px; padding: 12px 0; border-top: 1px solid var(--dx-line); }
.dx-steps li:first-child { border-top: 0; }
.dx-steps li > span { width: 26px; height: 26px; flex-shrink: 0; display: grid; place-items: center; border-radius: 8px; background: var(--dx-ink); font-size: 12px; font-weight: 700; color: #fff; }
.dx-steps strong { display: block; font-size: 14.5px; color: var(--dx-ink); }
.dx-steps p { margin: 3px 0 0; font-size: 14px; line-height: 1.6; color: var(--dx-muted); }

.dx-endpoints { display: flex; flex-direction: column; margin: 18px 0; border: 1px solid var(--dx-line); border-radius: 14px; overflow: hidden; }
.dx-ep { display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-top: 1px solid var(--dx-line); background: #fff; }
.dx-ep:first-child { border-top: 0; }
.dx-ep code { min-width: 0; overflow-wrap: anywhere; font-family: var(--dx-mono); font-size: 13.5px; color: var(--dx-ink); }

.dx-m { width: 62px; flex-shrink: 0; padding: 3px 0; border-radius: 6px; font-family: var(--dx-mono); font-size: 11px; font-weight: 700; text-align: center; letter-spacing: .03em; }
.dx-m--get { background: #ecfdf3; color: #067647; }
.dx-m--post { background: var(--dx-ink); color: #fff; }
.dx-m--patch { background: var(--dx-violet-soft); color: var(--dx-violet); }
.dx-m--delete { background: #fef3f2; color: #b42318; }

.dx-placeholder { margin-top: 18px; padding: 14px 16px; border: 1px dashed #d4d4dd; border-radius: 12px; font-size: 13.5px; color: var(--dx-muted); }

.dx-code { overflow: hidden; border: 1px solid var(--dx-code-line); border-radius: 16px; background: var(--dx-code); box-shadow: 0 30px 60px -40px rgba(12, 12, 17, .7); }
.dx-code__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 46px; padding: 8px 12px 8px 16px; border-bottom: 1px solid var(--dx-code-line); font-size: 12px; font-weight: 600; color: #8b8b9a; }
.dx-status { padding: 2px 8px; border-radius: 6px; background: rgba(52, 211, 153, .12); font-family: var(--dx-mono); font-size: 11px; color: #34d399; }

.dx-tabs { display: flex; gap: 2px; }
.dx-tab { padding: 5px 10px; border: 0; border-radius: 7px; background: transparent; font-size: 12px; font-weight: 600; color: #8b8b9a; cursor: pointer; transition: background .15s ease, color .15s ease; }
.dx-tab:hover { color: #fff; }
.dx-tab.is-on { background: #22222e; color: #fff; }

.dx-pre { margin: 0; padding: 16px 18px; overflow-x: auto; background: transparent; border: 0; font-family: var(--dx-mono); font-size: 12.8px; line-height: 1.75; color: #dcdce6; white-space: pre; tab-size: 2; }
.j-k { color: #c4b5fd; }
.j-s { color: #fbbf24; }
.j-n { color: #34d399; }
.j-p { color: #6b6b7b; }
.j-c { color: #93a4ff; }

.dx-code--ghost { box-shadow: none; }
.dx-ghost-lines { display: flex; flex-direction: column; gap: 10px; padding: 18px; }
.dx-ghost-lines i { display: block; height: 9px; border-radius: 4px; background: #1c1c26; }
.dx-ghost-lines i:nth-child(1) { width: 40%; }
.dx-ghost-lines i:nth-child(2) { width: 72%; }
.dx-ghost-lines i:nth-child(3) { width: 58%; }
.dx-ghost-lines i:nth-child(4) { width: 80%; }
.dx-ghost-lines i:nth-child(5) { width: 30%; }

.dx-sec__code { display: flex; flex-direction: column; gap: 14px; }
.dx-sec__code:empty { display: none; }

.dx-sec--ops { display: block; }
.dx-sec__intro { max-width: 720px; margin-bottom: 8px; }
.dx-sec__intro > p { margin: 0; font-size: 15.5px; line-height: 1.75; color: var(--dx-text); }

.dx-op { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .92fr); gap: 40px; padding-top: 36px; }
.dx-op + .dx-op { margin-top: 36px; border-top: 1px dashed var(--dx-line); }
.dx-op__body { min-width: 0; }
.dx-op__body > p { margin: 0 0 14px; font-size: 15px; line-height: 1.7; color: var(--dx-text); }
.dx-op__code { min-width: 0; display: flex; flex-direction: column; gap: 14px; }

.dx-h3 { margin: 26px 0 12px; font-size: 18px; line-height: 1.3; font-weight: 700; letter-spacing: -.01em; color: var(--dx-ink); }
.dx-op__body > .dx-h3:first-child { margin-top: 0; }

.dx-op__head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0 0 14px; padding: 10px 12px; border: 1px solid var(--dx-line); border-radius: 12px; background: var(--dx-soft); }
.dx-op__head code { min-width: 0; overflow-wrap: anywhere; font-family: var(--dx-mono); font-size: 13.5px; font-weight: 600; color: var(--dx-ink); }
.dx-scope { margin-left: auto; padding: 2px 8px; border: 1px solid var(--dx-line); border-radius: 999px; background: #fff; font-family: var(--dx-mono); font-size: 11px; color: var(--dx-muted); }

.dx-params { margin: 0 0 18px; border: 1px solid var(--dx-line); border-radius: 14px; overflow: hidden; }
.dx-params__title { padding: 10px 14px; border-bottom: 1px solid var(--dx-line); background: var(--dx-soft); font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--dx-muted); }
.dx-param { padding: 12px 14px; border-top: 1px solid var(--dx-line); }
.dx-params__title + .dx-param, .dx-param:first-child { border-top: 0; }
.dx-param__name { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.dx-param__name code { font-family: var(--dx-mono); font-size: 13px; font-weight: 600; color: var(--dx-ink); }
.dx-type { font-size: 12px; color: var(--dx-muted); }
.dx-req { padding: 1px 7px; border-radius: 999px; background: #fef3f2; font-size: 11px; font-weight: 600; color: #b42318; }
.dx-param__desc { margin-top: 4px; font-size: 14px; line-height: 1.6; color: var(--dx-text); }

.dx-table { margin: 0 0 18px; border: 1px solid var(--dx-line); border-radius: 14px; overflow: hidden; }
.dx-table__row { display: grid; grid-template-columns: minmax(140px, .9fr) minmax(0, 2fr); gap: 14px; align-items: center; padding: 10px 14px; border-top: 1px solid var(--dx-line); font-size: 14px; color: var(--dx-text); }
.dx-table__row:first-child { border-top: 0; }
.dx-table__row--head { background: var(--dx-soft); font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--dx-muted); }
.dx-table--3 .dx-table__row { grid-template-columns: 44px 186px minmax(0, 1fr); }
.dx-table--3 code { white-space: nowrap; overflow-wrap: normal; }
.dx-table--wide .dx-table__row { grid-template-columns: 182px minmax(0, 1fr); }
.dx-table--wide code { white-space: nowrap; overflow-wrap: normal; }
.dx-table code { font-family: var(--dx-mono); font-size: 13px; font-weight: 600; color: var(--dx-ink); overflow-wrap: anywhere; }

.dx-list { margin: 0 0 18px; padding: 0; list-style: none; }
.dx-list li { position: relative; padding: 6px 0 6px 20px; font-size: 14.5px; line-height: 1.65; color: var(--dx-text); }
.dx-list li::before { content: ''; position: absolute; left: 4px; top: 15px; width: 6px; height: 6px; border-radius: 2px; background: var(--dx-violet); }

.dx-code__tools { display: flex; align-items: center; gap: 8px; }
.dx-status.is-error { background: rgba(248, 113, 113, .12); color: #f87171; }
.dx-pre { max-height: 560px; overflow: auto; }
.dx-pre .j-b { color: #f0abfc; }
.dx-pre .j-f { color: #8b8b9a; }

@media (max-width: 1199px) {
    .dx-op { grid-template-columns: minmax(0, 1fr); gap: 18px; }
}

@media (max-width: 519px) {
    .dx-table__row, .dx-table--3 .dx-table__row, .dx-table--wide .dx-table__row { grid-template-columns: minmax(0, 1fr); gap: 4px; }
    .dx-table__row--head { display: none; }
    .dx-scope { margin-left: 0; }
}

@media (min-width: 640px) {
    .dx-h1 { font-size: 46px; }
}

@media (max-width: 1199px) {
    .dx-shell { grid-template-columns: 210px minmax(0, 1fr); gap: 32px; }
    .dx-sec { grid-template-columns: minmax(0, 1fr); gap: 22px; }
}

@media (max-width: 899px) {
    .dx-hero { padding: 64px 0 40px; }
    .dx-shell { display: block; padding-top: 0; }
    .dx-nav { position: sticky; top: 74px; z-index: 20; margin: 0 -24px; padding: 10px 24px; border-bottom: 1px solid var(--dx-line); background: rgba(255, 255, 255, .94); backdrop-filter: blur(10px); }
    .dx-nav__toggle { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 11px 14px; border: 1px solid var(--dx-line); border-radius: 12px; background: #fff; font-size: 14px; font-weight: 600; color: var(--dx-ink); cursor: pointer; }
    .dx-nav__toggle svg { transition: transform .2s ease; }
    .dx-nav.is-open .dx-nav__toggle svg { transform: rotate(180deg); }
    .dx-nav__list { position: static; display: none; max-height: 60vh; padding: 14px 0 4px; }
    .dx-nav.is-open .dx-nav__list { display: block; }
    .dx-sec { padding: 40px 0; scroll-margin-top: 150px; }
    .dx-cards { grid-template-columns: minmax(0, 1fr); }
    .dx-h2 { font-size: 23px; }
}

@media (max-width: 519px) {
    .dx-wrap { padding: 0 16px; }
    .dx-nav { margin: 0 -16px; padding: 10px 16px; }
    .dx-base { flex-wrap: wrap; padding: 12px; }
    .dx-base__url { flex-basis: 100%; order: 2; }
    .dx-base__label { order: 1; }
    .dx-copy { order: 3; }
    .dx-pre { font-size: 12px; padding: 14px; }
    .dx-m { width: 56px; }
}
