#dockpipe-document-reader {
    position: fixed;
    z-index: 5;
    box-sizing: border-box;
    overflow: auto;
    overscroll-behavior: contain;
    background: #111519;
    color: #bec8d0;
    font: 15px/1.75 Inter, system-ui, sans-serif;
    scrollbar-color: #46525d #111519;
    color-scheme: dark;
}

#dockpipe-document-reader:focus-visible {
    outline: 2px solid #a4eccd;
    outline-offset: -3px;
}

.docs-article {
    max-width: 900px;
    margin: 0 auto;
    padding: 18px 40px 64px;
    overflow-wrap: anywhere;
}

.docs-article > :first-child {
    margin-top: 0;
}

.docs-article h1, .docs-article h2, .docs-article h3, .docs-article h4 {
    color: #edf2f6;
    line-height: 1.3;
    scroll-margin-top: 20px;
}

.docs-article h1 {
    font-size: 34px;
    letter-spacing: -1px;
    margin-bottom: 28px;
}

.docs-article h2 {
    font-size: 25px;
    margin-top: 42px;
    padding-top: 20px;
    border-top: 1px solid #303840;
}

.docs-article h3 {
    font-size: 20px;
    margin-top: 30px;
}

.docs-article p, .docs-article ul, .docs-article ol {
    margin: 16px 0;
}

.docs-article li {
    margin: 5px 0;
}

.docs-article a {
    color: #a4eccd;
    text-underline-offset: 3px;
}

.docs-article a:hover {
    color: #d4ffec;
}

.docs-article strong {
    color: #e0e7ec;
}

.docs-article code {
    font: 0.86em/1.65 "DejaVu Sans Mono", ui-monospace, monospace;
}

.docs-article :not(pre) > code {
    background: #232c34;
    color: #d7e7ee;
    border-radius: 4px;
    padding: 2px 5px;
}

.docs-code, .docs-diagram {
    margin: 24px 0;
    border: 1px solid #34414c;
    border-radius: 10px;
    overflow: hidden;
    background: #0b1117;
}

.docs-code-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 10px 16px;
    background: #19222b;
    border-bottom: 1px solid #34414c;
    color: #9eafbd;
    font-size: 11px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.docs-code-toolbar button {
    padding: 5px 10px;
    border: 1px solid #46525d;
    border-radius: 5px;
    background: transparent;
    color: #e0e7ec;
    font: 12px system-ui;
    cursor: pointer;
}

.docs-code-toolbar button:hover {
    background: #2a3843;
}

.docs-code-toolbar button:focus-visible {
    outline: 2px solid #a4eccd;
}

.docs-article pre {
    margin: 0;
    padding: 18px 20px;
    overflow-x: auto;
    white-space: pre;
    tab-size: 4;
    font-size: 14px;
}

.docs-article pre code {
    background: none;
    color: #d4dde5;
    padding: 0;
}

.docs-table {
    margin: 24px 0;
    overflow-x: auto;
    border: 1px solid #34414c;
    border-radius: 9px;
}

.docs-table table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.docs-table th {
    background: #1e2933;
    color: #edf2f6;
    font-weight: 600;
    text-align: left;
}

.docs-table th, .docs-table td {
    padding: 13px 16px;
    border-bottom: 1px solid #303d47;
    vertical-align: top;
    min-width: 110px;
}

.docs-table tr:nth-child(even) {
    background: #151e26;
}

.docs-table tr:last-child td {
    border-bottom: 0;
}

.docs-table tbody tr:hover {
    background: #1d2a32;
}

.docs-article blockquote {
    margin: 24px 0;
    padding: 1px 20px;
    border-left: 3px solid #a4eccd;
    background: #18241f;
}

.docs-article hr {
    border: 0;
    border-top: 1px solid #303840;
    margin: 32px 0;
}

.docs-diagram-canvas {
    overflow: auto;
    padding: 24px;
    text-align: center;
}

.docs-diagram-canvas svg {
    display: block;
    max-width: 100%;
    height: auto;
    margin: auto;
}

.docs-diagram details {
    border-top: 1px solid #34414c;
}

.docs-diagram summary {
    cursor: pointer;
    padding: 10px 16px;
    color: #a4eccd;
    font-size: 12px;
}

.docs-diagram-error {
    padding: 12px 20px;
    color: #efc390;
    font-size: 13px;
}

.hljs-keyword, .hljs-selector-tag, .hljs-literal {
    color: #cfabff;
}

.hljs-string, .hljs-regexp, .hljs-addition {
    color: #a4eccd;
}

.hljs-attr, .hljs-attribute, .hljs-title {
    color: #8dccff;
}

.hljs-number, .hljs-symbol, .hljs-bullet {
    color: #f6c78e;
}

.hljs-comment, .hljs-quote {
    color: #8b9ca9;
    font-style: italic;
}

.hljs-variable, .hljs-template-variable, .hljs-built_in {
    color: #f0b9a2;
}

@media (max-width: 879px) {
    #dockpipe-document-reader {
        font-size: 14px;
    }
    .docs-article {
        padding: 16px 20px 48px;
    }
    .docs-article h1 {
        font-size: 28px;
    }
    .docs-article h2 {
        font-size: 23px;
    }
    .docs-article pre {
        padding: 16px;
    }
    .docs-table th, .docs-table td {
        padding: 10px 12px;
    }
}

html {
    color-scheme: dark;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: #111519;
    color: #bec8d0;
    font: 15px/1.75 Inter, system-ui, sans-serif;
}

a {
    color: #a4eccd;
    text-underline-offset: 3px;
}

header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 20px 32px;
    border-bottom: 1px solid #303840;
}

header nav {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
}

.brand {
    color: #a4eccd;
    font-size: 24px;
    font-weight: 750;
    text-decoration: none;
}

.docs-layout {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    max-width: 1440px;
    margin: auto;
}

aside {
    padding: 26px 24px;
    border-right: 1px solid #303840;
}

aside h2 {
    color: #edf2f6;
    font-size: 16px;
}

aside ul {
    list-style: none;
    padding: 0;
}

aside a {
    display: block;
    padding: 7px 10px;
    border-radius: 5px;
    text-decoration: none;
    color: #bec8d0;
}

aside a:hover, aside a[aria-current="page"] {
    color: #a4eccd;
    background: #1e2c27;
}

main {
    min-width: 0;
    padding-top: 32px;
}

.skip-link {
    position: absolute;
    left: 12px;
    top: -100px;
    padding: 8px 16px;
    background: #111519;
}

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

.docs-article pre {
    margin: 24px 0;
    background: #0b1117;
    border-radius: 8px;
}

.docs-code pre, .docs-diagram pre {
    margin: 0;
}

@media (max-width: 879px) {
    header {
        padding: 16px 20px;
        align-items: flex-start;
    }

    header nav {
        gap: 8px 16px;
        font-size: 13px;
        justify-content: flex-end;
    }

    .docs-layout {
        display: block;
    }

    aside {
        border-right: 0;
        border-bottom: 1px solid #303840;
        padding: 12px 20px;
    }

    aside ul {
        display: flex;
        overflow-x: auto;
        gap: 6px;
        padding-bottom: 8px;
    }

    aside a {
        white-space: nowrap;
    }

    main {
        padding-top: 20px;
    }

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

}
