:root {
    --brand-color: var(--color-primary-light, #ff8a2a);
    --brand-color-strong: var(--color-primary, #dc6600);
    --brand-color-rgb: 255, 138, 42;
}

.content-grid {
    width: min(calc(100% - 24px), 1600px);
    max-width: 1600px;
}

.wiki-layout {
    display: grid;
    grid-template-columns: clamp(300px, 22vw, 360px) minmax(0, 1fr);
    gap: 40px;
    align-items: start;
    padding: 0 0 72px;
}

.wiki-layout.has-toc {
    grid-template-columns: clamp(300px, 22vw, 360px) minmax(0, 1fr) clamp(220px, 16vw, 260px);
}

@media (max-width: 1280px) {
    .wiki-layout.has-toc {
        grid-template-columns: clamp(300px, 22vw, 360px) minmax(0, 1fr);
    }

    .wiki-layout.has-toc .wiki-toc {
        display: none;
    }
}

@media (max-width: 900px) {
    .wiki-toc {
        display: none !important;
    }
}

@media (max-width: 900px) {
    :root {
        --wiki-mobile-header-height: 56px;
    }

    html {
        overflow-x: clip;
    }

    body {
        width: 100%;
        max-width: 100%;
        overflow-x: clip;
        overscroll-behavior-x: none;
    }

    body.wiki-sidebar-open {
        overflow: hidden;
        overscroll-behavior: none;
    }

    .header-outer + .content-grid {
        margin-top: 0;
    }

    .wiki-layout {
        display: block;
        padding-top: 0;
    }

    .wiki-layout .wiki-content {
        min-width: 0;
        max-width: 100%;
        overflow-x: hidden;
    }

    .wiki-layout .wiki-sidebar {
        position: fixed !important;
        top: 10px !important;
        left: 0 !important;
        right: 0 !important;
        bottom: auto !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        z-index: 100010 !important;
        box-sizing: border-box;
        display: block;
        height: auto;
        min-height: var(--wiki-mobile-header-height, 56px);
        max-height: none;
        overflow: visible;
        border-radius: 0;
        border: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        padding: 0;
        background: #1d1d1d;
        background-image: linear-gradient(rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.03));
        box-shadow: 0 2px 14px rgba(0, 0, 0, 0.35);
    }

    .wiki-layout .wiki-sidebar-header {
        margin: 0;
        padding: 12px 16px;
        border-bottom: none;
        min-height: 32px;
        box-sizing: border-box;
    }

    .wiki-layout .wiki-sidebar-body {
        position: fixed;
        left: 0;
        right: 0;
        top: calc(var(--wiki-mobile-header-height, 56px) + 10px);
        bottom: auto;
        height: auto;
        max-height: calc(100dvh - var(--wiki-mobile-header-height, 56px) - 10px);
        margin: 0;
        padding: 16px 16px 28px;
        box-sizing: border-box;
        background: #1d1d1d;
        background-image: linear-gradient(rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.03));
        z-index: 100011;
        overflow-y: auto;
        overscroll-behavior: contain;
        touch-action: pan-y;
        border-top: 1px solid rgba(255, 255, 255, 0.08);
        box-shadow: 0 12px 24px rgba(0, 0, 0, 0.4);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: opacity 0.16s ease, visibility 0s linear 0.16s;
    }

    .wiki-layout .wiki-sidebar.mobile-expanded .wiki-sidebar-body {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transition: opacity 0.16s ease;
    }

    .wiki-sidebar-backdrop {
        display: none;
        position: fixed;
        inset: 0;
        z-index: 100009;
        background: rgba(0, 0, 0, 0.5);
        opacity: 0;
        touch-action: none;
        transition: opacity 0.16s ease;
    }

    .wiki-layout .wiki-sidebar.mobile-expanded ~ .wiki-sidebar-backdrop {
        display: block;
        opacity: 1;
    }
}

@media (min-width: 901px) {
    .wiki-sidebar-backdrop {
        display: none !important;
    }
}


/* --- Sidebar -------------------------------------------------------------- */

.wiki-sidebar {
    position: sticky;
    top: 24px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 20px;
    max-height: calc(100vh - 48px);
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 0, 0, 0.78) rgba(255, 255, 255, 0.08);
    scrollbar-gutter: stable;
}

.wiki-sidebar::-webkit-scrollbar,
.wiki-sidebar-body::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

.wiki-sidebar::-webkit-scrollbar-track,
.wiki-sidebar-body::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.06);
    border-radius: 999px;
}

.wiki-sidebar::-webkit-scrollbar-thumb,
.wiki-sidebar-body::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, rgba(110, 110, 110, 1), rgba(45, 45, 45, 0.96));
    border: 2px solid rgba(255, 255, 255, 0.07);
    border-radius: 999px;
}

.wiki-sidebar::-webkit-scrollbar-thumb:hover,
.wiki-sidebar-body::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, rgba(145, 145, 145, 1), rgba(65, 65, 65, 0.98));
}

.wiki-sidebar-header {
    display: flex;
    flex-direction: column;
    gap: 12px;
    font-weight: 700;
    font-size: 17px;
    padding-bottom: 12px;
    margin-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.wiki-sidebar-header-title {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.wiki-sidebar-toggle {
    display: none;
    appearance: none;
    background: none;
    border: none;
    color: inherit;
    width: 32px;
    height: 32px;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    cursor: pointer;
    opacity: 0.8;
}

.wiki-sidebar-toggle:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.08);
}

.wiki-sidebar-body {
    display: block;
}


.wiki-sidebar-header-title i {
    flex: 0 0 auto;
}

.wiki-sidebar-header-title span {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.wiki-search {
    position: relative;
    width: 100%;
    margin-bottom: 14px;
}

.wiki-search-box {
    display: flex !important;
    align-items: center;
    gap: 8px;
    width: 100% !important;
    height: 40px !important;
    padding: 0 14px !important;
    border-radius: 8px !important;
    background: rgba(255, 255, 255, 0.06) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    box-sizing: border-box !important;
}

.wiki-search-icon {
    font-size: 14px;
    opacity: 0.6;
    flex: 0 0 auto;
}

.wiki-search-input {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    width: 100% !important;
    height: 100% !important;
    max-height: 100% !important;
    background: none !important;
    background-color: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    outline: none !important;
    box-shadow: none !important;
    color: inherit !important;
    font-size: 14.5px !important;
    font-weight: 400 !important;
    padding: 0 !important;
    margin: 0 !important;
    box-sizing: border-box !important;
}

.wiki-search-input::placeholder {
    color: inherit;
    opacity: 0.55;
    font-weight: 400 !important;
    font-size: 14.5px !important;
}

.wiki-search-results {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    max-height: 360px;
    overflow-y: auto;
    z-index: 300;
    background: rgba(22, 22, 26, 0.99);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.wiki-search-result {
    display: block;
    padding: 9px 12px;
    color: inherit;
    text-decoration: none !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.wiki-search-result:last-child {
    border-bottom: none;
}

.wiki-search-result:hover,
.wiki-search-result.is-active {
    background: rgba(var(--brand-color-rgb, 255, 138, 42), 0.14);
}

.wiki-search-result-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    line-height: 1.25;
    font-weight: 600;
}

.wiki-search-result-name {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.wiki-search-result-tab {
    flex: 0 0 auto;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 2px 6px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.1);
    opacity: 0.85;
}

.wiki-search-result-heading {
    display: block;
    font-size: 11px;
    font-weight: 400;
    opacity: 0.62;
    margin-top: 2px;
}

.wiki-search-result-snippet {
    display: block;
    font-size: 12px;
    font-weight: 400;
    opacity: 0.68;
    margin-top: 4px;
    line-height: 1.4;
}

.wiki-search-empty,
.wiki-search-loading {
    padding: 10px 12px;
    font-size: 13px;
    opacity: 0.7;
    font-weight: 400;
}

.wiki-sidebar-switch {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 16px;
}

.wiki-sidebar-switch-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.05);
    color: inherit;
    opacity: 0.75;
    text-decoration: none;
    transition: background 0.15s ease, opacity 0.15s ease;
}

.wiki-sidebar-switch-item:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.1);
}

.wiki-sidebar-switch-item.active {
    opacity: 1;
    background: var(--brand-color-strong, #dc6600);
    color: #fff;
}

.wiki-nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.wiki-nav-list:not(.wiki-nav-root) {
    padding-left: 14px;
    border-left: 1px solid rgba(255, 255, 255, 0.08);
    margin-left: 6px;
}

.wiki-nav-item {
    margin: 2px 0;
    position: relative;
}

.wiki-nav-item.has-children {
    display: block;
}

.wiki-nav-item-header {
    display: flex;
    align-items: center;
    gap: 8px;
}

.wiki-nav-toggle {
    appearance: none;
    background: none;
    border: none;
    color: inherit;
    opacity: 0.55;
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 4px;
    margin-left: auto;
}

.wiki-nav-toggle:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.08);
}

.wiki-nav-toggle-icon {
    font-size: 10px;
    transition: transform 0.15s ease;
}

.wiki-nav-item.has-children:not(.collapsed) > .wiki-nav-item-header > .wiki-nav-toggle .wiki-nav-toggle-icon {
    transform: rotate(90deg);
}

.wiki-nav-item.has-children > .wiki-nav-link,
.wiki-nav-item.has-children > .wiki-nav-group-title {
    flex: 1 1 auto;
    min-width: 0;
}

.wiki-nav-children {
    margin-top: 2px;
}

.wiki-nav-item.collapsed > .wiki-nav-children {
    display: none;
}

.wiki-nav-group-title {
    display: block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    opacity: 0.55;
    padding: 14px 8px 4px;
}

.wiki-nav-link {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 28px;
    padding: 8px 12px;
    border-radius: 8px;
    color: inherit;
    text-decoration: none;
    transition: background 0.15s ease, color 0.15s ease;
    font-size: 15px;
    line-height: 1.35;
}

.wiki-nav-link:hover {
    background: rgba(255, 255, 255, 0.06);
    opacity: 1;
}

.wiki-nav-item.active > .wiki-nav-item-header > .wiki-nav-link {
    background: rgba(var(--brand-color-rgb, 255, 138, 42), 0.18);
    color: var(--brand-color, #ff8a2a);
    font-weight: 700;
    opacity: 1;
    box-shadow: inset 3px 0 0 var(--brand-color, #ff8a2a);
}


.wiki-nav-link-external {
    opacity: 0.6;
}


/* --- Content ---------------------------------------------------------- */

.wiki-content {
    min-width: 0;
    width: 100%;
}

.wiki-breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
    font-size: 14px;
    opacity: 0.7;
    margin-bottom: 18px;
}

.wiki-breadcrumbs a {
    color: inherit;
    text-decoration: none;
}

.wiki-breadcrumbs a:hover {
    text-decoration: underline;
}

.wiki-breadcrumb-sep {
    opacity: 0.5;
}

.wiki-page-title {
    margin: 0 0 6px;
    font-size: 38px;
    font-weight: 700;
}

.wiki-page-description {
    opacity: 0.75;
    font-size: 18px;
    margin-bottom: 28px;
}

/* --- Markdown-Body ------------------------------------------------------ */

.wiki-markdown-body {
    --wiki-color-success: #33c77a;
    --wiki-color-success-bg: rgba(51, 199, 122, 0.18);
    --wiki-color-danger: #ff4c4c;
    --wiki-color-danger-bg: rgba(255, 76, 76, 0.18);
    --wiki-color-warning: #ffb224;
    --wiki-color-warning-bg: rgba(255, 178, 36, 0.18);
    --wiki-color-info: #5b9dff;
    --wiki-color-info-bg: rgba(79, 124, 255, 0.18);

    line-height: 1.8;
    font-size: 17px;
}

.wiki-markdown-body h1,
.wiki-markdown-body h2,
.wiki-markdown-body h3,
.wiki-markdown-body h4 {
    margin: 36px 0 16px;
    font-weight: 700;
    scroll-margin-top: 90px;
}

.wiki-markdown-body h1[id],
.wiki-markdown-body h2[id],
.wiki-markdown-body h3[id],
.wiki-markdown-body h4[id],
.wiki-markdown-body h5[id],
.wiki-markdown-body h6[id] {
    position: relative;
    scroll-margin-top: 90px;
}

@media (max-width: 900px) {
    .wiki-markdown-body h1[id],
    .wiki-markdown-body h2[id],
    .wiki-markdown-body h3[id],
    .wiki-markdown-body h4[id],
    .wiki-markdown-body h5[id],
    .wiki-markdown-body h6[id] {
        overflow-x: hidden;
    }
}

.wiki-markdown-body h1[id] > .wiki-heading-anchor,
.wiki-markdown-body h2[id] > .wiki-heading-anchor,
.wiki-markdown-body h3[id] > .wiki-heading-anchor,
.wiki-markdown-body h4[id] > .wiki-heading-anchor,
.wiki-markdown-body h5[id] > .wiki-heading-anchor,
.wiki-markdown-body h6[id] > .wiki-heading-anchor {
    position: absolute;
    left: -0.9em;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0;
    font-size: 0.9em;
    line-height: 1;
    color: inherit;
    text-decoration: none;
    transition: opacity 0.15s ease;
}

.wiki-markdown-body h1[id]:hover > .wiki-heading-anchor,
.wiki-markdown-body h2[id]:hover > .wiki-heading-anchor,
.wiki-markdown-body h3[id]:hover > .wiki-heading-anchor,
.wiki-markdown-body h4[id]:hover > .wiki-heading-anchor,
.wiki-markdown-body h5[id]:hover > .wiki-heading-anchor,
.wiki-markdown-body h6[id]:hover > .wiki-heading-anchor,
.wiki-markdown-body h1[id]:focus-within > .wiki-heading-anchor,
.wiki-markdown-body h2[id]:focus-within > .wiki-heading-anchor,
.wiki-markdown-body h3[id]:focus-within > .wiki-heading-anchor,
.wiki-markdown-body h4[id]:focus-within > .wiki-heading-anchor,
.wiki-markdown-body h5[id]:focus-within > .wiki-heading-anchor,
.wiki-markdown-body h6[id]:focus-within > .wiki-heading-anchor {
    opacity: 0.45;
}

.wiki-markdown-body h2 {
    font-size: 28px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.wiki-markdown-body h3 {
    font-size: 22px;
}

.wiki-markdown-body p {
    margin: 0 0 18px;
}

.wiki-markdown-body img {
    display: inline-block;
    max-width: 100% !important;
    width: auto;
    height: auto !important;
    max-height: 80vh;
    border-radius: 10px;
    box-sizing: border-box;
}

.wiki-markdown-body img[data-size="line"] {
    display: inline-block;
    height: 1.4em !important;
    width: auto !important;
    max-height: 1.4em;
    vertical-align: text-bottom;
    border-radius: 3px;
    margin: 0 2px;
    cursor: default;
}

.wiki-markdown-body img[data-size="line"].wiki-image-lightbox-trigger:hover {
    filter: none;
    transform: none;
}

.wiki-markdown-body img.wiki-image-lightbox-trigger {
    cursor: zoom-in;
    transition: transform 0.18s ease, filter 0.18s ease;
}

.wiki-markdown-body img.wiki-image-lightbox-trigger:hover {
    filter: brightness(1.02);
    transform: scale(1.01);
}

.wiki-markdown-body img.wiki-image-lightbox-trigger:focus-visible {
    outline: 2px solid var(--brand-color, #4f7cff);
    outline-offset: 3px;
}

.wiki-markdown-body img.wiki-img-broken {
    display: none !important;
}

.wiki-markdown-body figure.wiki-img-broken,
.wiki-markdown-body .wiki-card-cover.wiki-img-broken {
    display: none !important;
}

.wiki-markdown-body figure {
    max-width: 100%;
    margin: 20px auto;
    text-align: center;
}

.wiki-markdown-body figure img {
    max-width: min(480px, 100%) !important;
}

.wiki-markdown-body figure img[width],
.wiki-markdown-body [data-full-width="true"] img {
    max-width: 100% !important;
}

.wiki-markdown-body figcaption {
    font-size: 14px;
    opacity: 0.65;
    margin-top: 6px;
}

body.wiki-image-lightbox-open {
    overflow: hidden;
}

.wiki-image-lightbox-backdrop {
    position: fixed;
    inset: 0;
    z-index: 4000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(5, 8, 16, 0.82);
    backdrop-filter: blur(6px);
}

.wiki-image-lightbox-backdrop[hidden] {
    display: none !important;
}

.wiki-image-lightbox {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    max-width: min(92vw, 1280px);
    max-height: 92vh;
    padding: 16px 16px 14px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    background: rgba(10, 14, 24, 0.96);
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
}

.wiki-image-lightbox-image {
    display: block;
    max-width: 100%;
    max-height: calc(92vh - 96px);
    object-fit: contain;
    border-radius: 10px;
    cursor: zoom-out;
}

.wiki-image-lightbox-caption {
    max-width: 100%;
    font-size: 14px;
    line-height: 1.5;
    text-align: center;
    opacity: 0.78;
    word-break: break-word;
}

.wiki-image-lightbox-close {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 1;
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
}

.wiki-image-lightbox-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.wiki-image-lightbox-close:focus-visible {
    outline: 2px solid var(--brand-color, #4f7cff);
    outline-offset: 2px;
}


.wiki-markdown-body a {
    color: var(--brand-color, #4f7cff);
    text-decoration: none;
}

.wiki-markdown-body a:hover {
    text-decoration: underline;
}

.wiki-markdown-body ul,
.wiki-markdown-body ol {
    margin: 0 0 16px;
    padding-left: 24px;
}

.wiki-markdown-body ul {
    list-style: disc;
}

.wiki-markdown-body ul ul {
    list-style: circle;
}

.wiki-markdown-body ul ul ul {
    list-style: square;
}

.wiki-markdown-body ol {
    list-style: decimal;
}

.wiki-markdown-body li {
    display: list-item;
    margin-bottom: 6px;
}

.wiki-markdown-body code {
    background: rgba(255, 255, 255, 0.08);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.9em;
}

.wiki-markdown-body pre {
    background: rgba(0, 0, 0, 0.35);
    padding: 16px;
    border-radius: 10px;
    overflow-x: auto;
    margin: 0 0 18px;
}

.wiki-markdown-body pre code {
    background: none;
    padding: 0;
}

.wiki-markdown-body blockquote {
    margin: 0 0 16px;
    padding: 10px 16px;
    border-left: 3px solid var(--brand-color, #4f7cff);
    background: rgba(255, 255, 255, 0.04);
    border-radius: 0 8px 8px 0;
    opacity: 0.9;
}

.wiki-markdown-body table {
    width: 100% !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
    margin: 0 0 20px !important;
    font-size: 14px !important;
    border: 1px solid rgba(255, 255, 255, 0.18) !important;
    border-radius: 8px !important;
    overflow: hidden !important;
    background: transparent !important;
}

.wiki-markdown-body table th,
.wiki-markdown-body table td {
    border-right: 1px solid rgba(255, 255, 255, 0.14) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.14) !important;
    padding: 8px 12px !important;
    text-align: left !important;
    vertical-align: top !important;
    background: transparent;
}

.wiki-markdown-body table th:last-child,
.wiki-markdown-body table td:last-child {
    border-right: none !important;
}

.wiki-markdown-body table tr:last-child td {
    border-bottom: none !important;
}

.wiki-markdown-body table th {
    background: rgba(255, 255, 255, 0.08) !important;
    font-weight: 700 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.18) !important;
}

.wiki-markdown-body table tbody tr:nth-child(even) td {
    background: rgba(255, 255, 255, 0.025) !important;
}

/* --- GitBook directives: hint / tabs / stepper / content-ref / embed ---- */

.wiki-hint {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 10px;
    margin: 0 0 18px;
    background: rgba(79, 124, 255, 0.1);
    border: 1px solid rgba(79, 124, 255, 0.25);
}

.wiki-hint-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    align-self: center;
    width: 22px;
    font-size: 18px;
    line-height: 1;
}

.wiki-hint-icon i {
    line-height: 1;
}

.wiki-hint-content {
    min-width: 0;
    flex: 1 1 auto;
}

.wiki-hint-content > *:last-child {
    margin-bottom: 0;
}

.wiki-hint-info {
    background: rgba(79, 124, 255, 0.1);
    border-color: rgba(79, 124, 255, 0.25);
}

.wiki-hint-info .wiki-hint-icon {
    color: #5b9dff;
}

.wiki-hint-warning {
    background: rgba(255, 178, 36, 0.1);
    border-color: rgba(255, 178, 36, 0.3);
}

.wiki-hint-warning .wiki-hint-icon {
    color: #ffb224;
}

.wiki-hint-danger {
    background: rgba(255, 76, 76, 0.1);
    border-color: rgba(255, 76, 76, 0.3);
}

.wiki-hint-danger .wiki-hint-icon {
    color: #ff4c4c;
}

.wiki-hint-success {
    background: rgba(51, 199, 122, 0.1);
    border-color: rgba(51, 199, 122, 0.3);
}

.wiki-hint-success .wiki-hint-icon {
    color: #33c77a;
}

.wiki-tabs {
    margin: 0 0 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
}

.wiki-tabs-nav {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: stretch;
    overflow-x: auto;
    overflow-y: hidden;
    background: rgba(255, 255, 255, 0.04);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    scrollbar-width: thin;
}

.wiki-tab-btn {
    appearance: none;
    background: none;
    border: none;
    color: inherit;
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    opacity: 0.6;
    border-bottom: 2px solid transparent;
    white-space: nowrap;
    display: inline-flex !important;
    align-items: center;
    width: auto !important;
    max-width: none !important;
    flex: 0 0 auto !important;
}

.wiki-tab-btn:hover {
    opacity: 0.9;
}

.wiki-tab-btn.active {
    opacity: 1;
    border-bottom-color: var(--brand-color, #4f7cff);
}

.wiki-tabs-panels {
    padding: 16px;
}

.wiki-tab-panel {
    display: none !important;
}

.wiki-tab-panel.active {
    display: block !important;
}

.wiki-tab-panel > *:last-child {
    margin-bottom: 0;
}

.wiki-stepper {
    margin: 0 0 20px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.wiki-step {
    display: flex;
    gap: 16px;
    position: relative;
    padding-bottom: 20px;
    align-items: flex-start;
}

.wiki-step-has-title {
    align-items: flex-start;
}

.wiki-step:not(:last-child)::before {
    content: "";
    position: absolute;
    left: 15px;
    top: 34px;
    bottom: 0;
    width: 2px;
    background: rgba(255, 255, 255, 0.12);
}

.wiki-step-number {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--brand-color-strong, #dc6600);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
}

.wiki-step-main {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.wiki-step-title {
    font-size: 16px;
    font-weight: 700;
}

.wiki-step-title > :first-child,
.wiki-step-content > :first-child {
    margin-top: 0;
}

.wiki-step-title > :last-child,
.wiki-step-content > :last-child {
    margin-bottom: 0;
}

.wiki-step-content {
    min-width: 0;
}

.wiki-step-content > *:last-child {
    margin-bottom: 0;
}

.wiki-content-ref {
    display: block;
    margin: 0 0 14px;
    padding: 14px 16px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.03);
    text-decoration: none !important;
    color: inherit;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.wiki-content-ref:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(var(--brand-color-rgb, 255, 138, 42), 0.4);
}

.wiki-content-ref-title {
    font-weight: 700;
    margin-bottom: 4px;
}

.wiki-content-ref-desc {
    font-size: 13px;
    opacity: 0.7;
    margin-bottom: 8px;
}

.wiki-content-ref-cta {
    font-size: 13px;
    color: var(--brand-color, #4f7cff);
}

.wiki-details {
    margin: 0 0 18px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.03);
    overflow: hidden;
}

.wiki-details-summary {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 16px;
    font-weight: 600;
    cursor: pointer;
    list-style: none;
    user-select: none;
}

.wiki-details-summary::-webkit-details-marker {
    display: none;
}

.wiki-details-summary::before {
    content: "\f105";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    transition: transform 0.15s ease;
    flex-shrink: 0;
}

.wiki-details[open] > .wiki-details-summary::before {
    transform: rotate(90deg);
}

.wiki-details-content {
    padding: 0 16px 16px;
}

.wiki-details-content > *:last-child {
    margin-bottom: 0;
}

/* --- GitBook card-view tables (e.g. team member lists) ------------------ */

.wiki-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
    margin: 0 0 20px;
}

.wiki-cards-grid-small {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
}

.wiki-cards-grid-large {
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}

.wiki-card {
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.03);
    overflow: hidden;
}

.wiki-card-cover {
    height: 160px;
    background-color: rgba(0, 0, 0, 0.25);
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
}

.wiki-card-body {
    padding: 12px 14px;
    font-size: 14px;
}

.wiki-card-field {
    display: flex;
    flex-direction: column;
    gap: 3px;
    margin-bottom: 8px;
}

.wiki-card-field:last-child {
    margin-bottom: 0;
}

.wiki-card-field-label {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    opacity: 0.72;
}

.wiki-card-field-value {
    font-size: 14px;
}

.wiki-card-field ul {
    margin: 0;
    padding-left: 18px;
}

.wiki-card-field p {
    margin: 0 0 4px;
}

.wiki-markdown-body mark {
    background: none;
    padding: 0;
    font-weight: inherit;
    color: inherit;
}

.wiki-embed {
    display: block;
    margin: 0 0 18px;
}

.wiki-embed-video {
    position: relative;
    padding-top: 56.25%;
    border-radius: 10px;
    overflow: hidden;
    background: #000;
}

.wiki-embed-video iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.wiki-embed-link {
    padding: 12px 16px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.03);
    text-decoration: none !important;
    color: inherit;
}

/* --- Allgemein / 1.8 / Cloud ----------------------- */

.wiki-home-tabs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
    margin-top: 28px;
}

.wiki-home-tab-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 34px 18px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.03);
    color: inherit;
    text-decoration: none !important;
    font-weight: 700;
    font-size: 17px;
    transition: transform 0.15s ease, background 0.15s ease;
}

.wiki-home-tab-card:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.07);
}

.wiki-home-tab-card-icon {
    font-size: 32px;
    color: var(--brand-color, #4f7cff);
}

.wiki-error-box {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    padding: 40px 0;
}

.wiki-error-box p {
    margin: 0;
    line-height: 1.6;
    max-width: 72ch;
}

.wiki-error-box .button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: flex-start;
    width: fit-content;
    padding: 10px 18px;
    border-radius: 8px;
    line-height: 1.1;
    text-decoration: none;
}

/* --- Sidebar inline search overrides -------------------------------------- */

@media (max-width: 900px) {

    .wiki-sidebar-toggle {
        display: inline-flex;
    }
}

.wiki-toc {
    position: sticky;
    top: 24px;
    max-height: calc(100vh - 48px);
    overflow-y: auto;
    padding-left: 4px;
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 0, 0, 0.78) rgba(255, 255, 255, 0.08);
}

.wiki-toc[hidden] {
    display: none !important;
}

.wiki-toc::-webkit-scrollbar {
    width: 8px;
}

.wiki-toc::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.06);
    border-radius: 999px;
}

.wiki-toc::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, rgba(110, 110, 110, 1), rgba(45, 45, 45, 0.96));
    border-radius: 999px;
}

.wiki-toc-title {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    opacity: 0.55;
    margin-bottom: 10px;
}

.wiki-toc-nav {
    position: relative;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
}

.wiki-toc-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.wiki-toc-item {
    margin: 0;
}

.wiki-toc-link {
    display: block;
    margin-left: -1px;
    padding: 5px 0 5px 14px;
    border-left: 1px solid transparent;
    font-size: 13px;
    line-height: 1.4;
    color: inherit;
    opacity: 0.62;
    text-decoration: none !important;
    transition: opacity 0.15s ease, color 0.15s ease, border-color 0.15s ease;
    overflow-wrap: anywhere;
}

.wiki-toc-link:hover {
    opacity: 1;
}

.wiki-toc-link.active {
    opacity: 1;
    color: var(--brand-color, #4f7cff);
    border-left-color: var(--brand-color, #4f7cff);
    font-weight: 600;
}

.wiki-toc-item[data-level="3"] > .wiki-toc-link {
    padding-left: 26px;
    font-size: 12.5px;
}

.wiki-toc-item[data-level="4"] > .wiki-toc-link,
.wiki-toc-item[data-level="5"] > .wiki-toc-link,
.wiki-toc-item[data-level="6"] > .wiki-toc-link {
    padding-left: 38px;
    font-size: 12px;
}
