/* Documentation content (.docs-body). Used by the public docs and the staff editor preview. */
.docs-body { --dx-line: rgba(255,255,255,.09); --dx-surface: rgba(255,255,255,.03); color: #d4d4d8; line-height: 1.75; font-size: 1rem; }
.docs-body > * + * { margin-top: 1.1rem; }
.docs-body .dx-text .dc-line { min-height: 0; }
.docs-body .dx-text .dc-line:empty { display: none; }
.docs-body .dx-text { overflow-wrap: anywhere; }
.docs-body .dx-text .dc-list { margin: .4rem 0; }

/* headings */
.docs-body .dx-h { color: #fff; font-weight: 800; line-height: 1.25; position: relative; scroll-margin-top: 6rem; }
.docs-body .dx-h2 { font-size: 1.65rem; margin-top: 2.6rem; padding-top: .4rem; letter-spacing: -.01em; }
.docs-body .dx-h2:first-child { margin-top: 0; }
.docs-body .dx-h3 { font-size: 1.25rem; margin-top: 2rem; }
.docs-body .dx-h4 { font-size: 1.05rem; margin-top: 1.5rem; }
.docs-body .dx-anchor { margin-left: .5rem; color: #1ab373; opacity: 0; text-decoration: none; font-weight: 700; transition: opacity .15s; }
.docs-body .dx-h:hover .dx-anchor, .docs-body .dx-anchor:focus { opacity: .8; }
.docs-body .dx-hr { border: 0; border-top: 1px solid var(--dx-line); margin: 2rem 0; }

/* screenshots */
.docs-body .dx-fig { margin: 1.4rem 0; }
.docs-body .dx-fig a { display: block; border: 1px solid var(--dx-line); border-radius: 14px; overflow: hidden; background: #0b0b0c; box-shadow: 0 18px 50px rgba(0,0,0,.45); transition: border-color .2s, transform .2s; }
.docs-body .dx-fig a:hover { border-color: rgba(26,179,115,.45); }
.docs-body .dx-fig img { width: 100%; height: auto; display: block; }
.docs-body figcaption { color: #8b8b94; font-size: .85rem; text-align: center; margin-top: .6rem; }

/* video */
.docs-body .dx-video { margin: 1.4rem 0; }
.docs-body .dx-video-box { position: relative; aspect-ratio: 16 / 9; border: 1px solid var(--dx-line); border-radius: 14px; overflow: hidden; background: #000; box-shadow: 0 18px 50px rgba(0,0,0,.45); }
.docs-body .dx-video-box iframe, .docs-body .dx-video-box video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* tables */
.docs-body .dx-table { overflow-x: auto; border: 1px solid var(--dx-line); border-radius: 12px; background: var(--dx-surface); }
.docs-body .dx-table table { width: 100%; border-collapse: collapse; font-size: .93rem; min-width: 420px; }
.docs-body .dx-table th { text-align: left; color: #fff; font-weight: 700; background: rgba(255,255,255,.04); padding: .75rem 1rem; white-space: nowrap; }
.docs-body .dx-table td { padding: .75rem 1rem; border-top: 1px solid var(--dx-line); vertical-align: top; }
.docs-body .dx-table .dx-right { text-align: right; } .docs-body .dx-table .dx-center { text-align: center; }
.docs-body .dx-table tbody tr:hover td { background: rgba(255,255,255,.02); }

/* callouts / info boxes */
.docs-body .dx-note { --c: 59,130,246; display: flex; gap: .9rem; padding: 1rem 1.15rem; border-radius: 12px; border: 1px solid rgba(var(--c), .35); background: rgba(var(--c), .08); }
.docs-body .dx-tip, .docs-body .dx-success { --c: 26,179,115; } .docs-body .dx-warning { --c: 245,158,11; } .docs-body .dx-danger { --c: 239,68,68; }
.docs-body .dx-note-ico { flex: none; width: 1.9rem; height: 1.9rem; border-radius: 9px; display: flex; align-items: center; justify-content: center; color: rgb(var(--c)); background: rgba(var(--c), .16); font-size: .95rem; margin-top: .1rem; }
.docs-body .dx-note-body { min-width: 0; flex: 1; }
.docs-body .dx-note-title { color: #fff; font-weight: 700; margin-bottom: .15rem; }
.docs-body .dx-note-body > * + * { margin-top: .5rem; }

/* step by step */
.docs-body .dx-steps { list-style: none; padding: 0; margin: 1.4rem 0; counter-reset: dx; }
.docs-body .dx-steps > li { counter-increment: dx; position: relative; padding: 0 0 1.6rem 3.4rem; }
.docs-body .dx-steps > li:before { content: counter(dx); position: absolute; left: 0; top: 0; width: 2.2rem; height: 2.2rem; border-radius: 50%; background: rgba(19,141,90,.18); border: 1px solid rgba(26,179,115,.55); color: #1ab373; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.docs-body .dx-steps > li:after { content: ""; position: absolute; left: 1.1rem; top: 2.4rem; bottom: .2rem; width: 1px; background: var(--dx-line); }
.docs-body .dx-steps > li:last-child { padding-bottom: 0; } .docs-body .dx-steps > li:last-child:after { display: none; }
.docs-body .dx-step-title { color: #fff; font-weight: 700; font-size: 1.08rem; line-height: 2.2rem; }
.docs-body .dx-step-body > * + * { margin-top: .6rem; }

/* link boxes / cards */
.docs-body .dx-cards, .dx-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1rem; }
.dx-card { position: relative; display: flex; align-items: flex-start; gap: .9rem; padding: 1.1rem 1.15rem; border-radius: 14px; border: 1px solid rgba(255,255,255,.09); background: rgba(255,255,255,.03); text-decoration: none !important; color: inherit; transition: border-color .2s, transform .2s, background .2s; }
.dx-card:hover { border-color: rgba(26,179,115,.5); background: rgba(19,141,90,.07); transform: translateY(-2px); }
.dx-card-ico { flex: none; width: 2.5rem; height: 2.5rem; border-radius: 11px; background: rgba(19,141,90,.18); color: #1ab373; display: flex; align-items: center; justify-content: center; }
.dx-card-txt { min-width: 0; flex: 1; display: block; }
.dx-card b { display: block; color: #fff; font-weight: 700; }
.dx-card small { display: block; color: #9a9aa3; font-size: .86rem; line-height: 1.5; margin-top: .15rem; }
.dx-card-go { color: #52525b; font-size: .8rem; margin-top: .25rem; transition: transform .2s, color .2s; }
.dx-card:hover .dx-card-go { color: #1ab373; transform: translateX(3px); }

/* faq */
.docs-body .dx-faq details { border: 1px solid var(--dx-line); border-radius: 12px; background: var(--dx-surface); margin-bottom: .6rem; }
.docs-body .dx-faq summary { cursor: pointer; padding: .9rem 1.1rem; font-weight: 600; color: #fff; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.docs-body .dx-faq summary::-webkit-details-marker { display: none; }
.docs-body .dx-faq summary:after { content: "+"; color: #1ab373; font-size: 1.2rem; line-height: 1; }
.docs-body .dx-faq details[open] summary:after { content: "\2212"; }
.docs-body .dx-faq-body { padding: 0 1.1rem 1rem; }
.docs-body .dx-faq-body > * + * { margin-top: .5rem; }

/* inline code + links inside docs */
.docs-body a:not(.dx-card):not(.dx-anchor) { color: #1ab373; text-decoration: underline; text-underline-offset: 3px; }
.docs-body a:not(.dx-card):hover { color: #fff; }
.docs-body strong { color: #fff; }
@media (prefers-reduced-motion: reduce) { .dx-card, .dx-card-go { transition: none; } .dx-card:hover { transform: none; } }

/* sidebar + layout helpers */
.dx-nav-link { display: flex; align-items: center; gap: .65rem; padding: .5rem .75rem; border-radius: 10px; color: #a1a1aa; font-size: .93rem; font-weight: 500; text-decoration: none; transition: background .15s, color .15s; }
.dx-nav-link:hover { color: #fff; background: rgba(255,255,255,.05); }
.dx-nav-link.on { color: #fff; background: rgba(19,141,90,.16); box-shadow: inset 2px 0 0 #1ab373; }
.dx-nav-link i { width: 1.1rem; text-align: center; color: #71717a; font-size: .85rem; }
.dx-nav-link.on i { color: #1ab373; }
.dx-toc a { display: block; padding: .3rem 0 .3rem .9rem; border-left: 2px solid transparent; color: #8b8b94; font-size: .88rem; text-decoration: none; transition: color .15s, border-color .15s; }
.dx-toc a.l3 { padding-left: 1.7rem; font-size: .84rem; }
.dx-toc a:hover { color: #fff; }
.dx-toc a.on { color: #1ab373; border-left-color: #1ab373; }
