@font-face {
    font-family: 'IBM Plex Sans';
    src: url('./fonts/IBMPlexSans-Regular.woff2') format('woff2'),
    url('./fonts/IBMPlexSans-Regular.woff') format('woff');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'IBM Plex Sans';
    src: url('./fonts/IBMPlexSans-Bold.woff2') format('woff2'),
    url('./fonts/IBMPlexSans-Bold.woff') format('woff');
    font-weight: 700;
    font-style: normal;
}

:root {
    --font-family: 'IBM Plex Sans', sans-serif;
    --bs-font-sans-serif: 'IBM Plex Sans', sans-serif;
    --bs-body-font-family: var(--bs-font-sans-serif);
}

@font-face {
    font-family: "doc-icons";
    src: url("./fonts/CarbonIcons.ttf") format("truetype");
    font-weight: normal;
    font-style: normal;
    font-display: block;
}

.icon {
    font-family: "doc-icons", serif;
    display: contents;
    font-style: normal;
    font-weight: normal;
    line-height: 1;
    vertical-align: middle;
    text-rendering: auto;
}

.icon-warning::before { content: "\f086"; }
.icon-tools::before { content: "\eff4"; }
.icon-fragments::before { content: "\f2b2"; }
.icon-minor::before { content: "\f0f9"; }
.icon-patch::before { content: "\f0f8"; }
.icon-major::before { content: "\f0fa"; }

.icon-time-filled::before { content: "\f106"; }
.icon-notification--new::before { content: "\edd1"; }
.icon-industry-automotive::before { content: "\e9c5"; }
.icon-industry-transportation::before { content: "\f006"; }
.icon-industry-agriculture-machinery::before { content: "\eac5"; }
.icon-industry-heavy-machinery::before { content: "\eb20"; }
.icon-industry-defence::before { content: "\ef97"; }
.icon-industry-aviation::before { content: "\ec5d"; }
.icon-industry-toolmaking::before { content: "\f0f8"; }
.icon-industry-industry-all::before { content: "\ec9e"; }

/* Anwenden der Schriftart */
body {
    font-family: 'IBM Plex Sans', sans-serif;
}

@media (max-width: 991px) {
    main { > .content {
            height: fit-content;
        }
    }   
}

.sidebar-toggle:hover {
    background: none;
}

.vertical-left {
    display: flex;
    justify-content: left;
    align-items: center;
}

.doc-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.45em;
    padding: 0 0.8em;
    font-size: 12px!important;
    font-weight: 400;
    line-height: 1.5rem;
    border-radius: 2em;
    border: 1px solid transparent;
    cursor: default;
}

.doc-tag .icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    vertical-align: middle;
}

.doc-tag-label {
    display: inline-block;
}

.industry-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    align-items: center;
    margin-bottom: 0.5rem;
}

.tutorials-card-grid > .row {
    display: grid;
    grid-template-columns: 1fr;
    align-items: stretch;
}

.tutorials-card-grid > .row > [class*="col-"] {
    display: flex;
    width: 100%;
    max-width: none;
    min-width: 0;
    flex: none;
    padding-right: 16px;
}

.tutorials-card-grid > .row > [class*="col-"] > a {
    display: flex;
    width: 100%;
}

.tutorials-card-grid .card {
    width: 100%;
    flex: 1;
}

.tutorials-card-grid .card-body {
    padding: 1rem 0 0 0;
}

.card-main-title-custom .card-title,
.tutorials-card-grid .card-title {
    overflow-wrap: normal;
    word-wrap: normal;
    word-break: normal;
    hyphens: manual;
    text-wrap: wrap;
}

.tutorials-card-grid .card-title {
    white-space: normal;
    word-break: keep-all;
    -webkit-hyphens: none;
    hyphens: none;
}

.tutorials-card-grid .card-text {
    font-size: 13px;
    line-height: 1.35;
    overflow-wrap: break-word;
    word-break: normal;
    hyphens: auto;
}

@media (min-width: 992px) {
    .tutorials-card-grid > .row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-auto-rows: 1fr;
    }
}

.tutorial-card-image-col {
    display: flex;
    align-items: flex-start;
    padding-top: 1.25rem;
}

.tutorial-card-image-col .card-body {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.tutorial-card-image {
    width: 100%;
}

.components-card-grid > .row {
    align-items: flex-start !important;
}

.components-card-grid > .row > [class*="col-"] {
    align-self: flex-start !important;
}

.components-card-grid > .row > [class*="col-"] > a {
    align-items: flex-start;
}

.components-card-grid .card {
    flex: none;
    height: auto;
    border: none;
}

@media (min-width: 992px) {
    .components-card-grid > .row {
        grid-auto-rows: auto;
    }
}

@media (min-width: 992px) and (max-width: 1199.98px) {
    .card-main-title-custom .card-title {
        font-size: 2.5rem;
        line-height: 1.1;
    }

    .card-main-title-custom .card-subtitle {
        font-size: 1.125rem;
    }

    .components-card-grid .tutorial-card-image-col {
        flex: 0 0 42%;
        max-width: 42%;
    }

    .components-card-grid .tutorial-card-image-col + [class*="col-"] {
        flex: 0 0 58%;
        max-width: 58%;
    }

    body:has(.sidebar.show) .components-card-grid .tutorial-card-image-col {
        display: none;
    }

    body:has(.sidebar.show) .components-card-grid .tutorial-card-image-col + [class*="col-"] {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

.doc-tag.warm-gray {
    background: #f4f4f4;
    color: #525252;
    border-color: #e0e0e0;
}

.doc-tag.red {
    background: #fff1f1;
    color: #a2191f;
    border-color: #ffd7d9;
}

.doc-tag.magenta {
    background: #fff0f7;
    color: #9f1853;
    border-color: #ffd6e8;
}

.doc-tag.purple {
    background: #f6f2ff;
    color: #6929c4;
    border-color: #e8daff;
}

.doc-tag.blue {
    background: #edf5ff;
    color: #0043ce;
    border-color: #d0e2ff;
}

.doc-tag.cyan {
    background: #e5f6ff;
    color: #00539a;
    border-color: #bae6ff;
}

.doc-tag.teal {
    background: #e0f7f6;
    color: #005d5d;
    border-color: #9ef0f0;
}

.doc-tag.green {
    background: #defbe6;
    color: #0e6027;
    border-color: #a7f0ba;
}

.doc-tag.cool-gray {
    background: #f2f4f8;
    color: #4d5358;
    border-color: #dde1e6;
}

.doc-tag.high-contrast {
    background: #161616;
    color: #ffffff;
    border-color: #161616;
}

.doc-tag.outline {
    background: transparent;
    color: #161616;
    border: 1px solid #8d8d8d;
}

details {
    border: 1px solid #ccc;
    padding: 10px;
    margin: 10px 0;
    position: relative;
}

details summary {
    list-style: none;
    cursor: pointer;
    padding-right: 20px;
    font-weight: bold;
    position: relative;
}

details summary::after {
    content: '▼';
    font-size: 16px;
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
}

details[open] summary::after {
    content: '▲';
}


:root {
    --docsifytabs-border-radius-px: 0px;
    --docsifytabs-margin: 1.5em 0;
    --docsifytabs-border-color: #ededed;
    --docsifytabs-tab-highlight-color: var(--theme-color);
    --docsifytabs-tab-background: #f8f8f8;
    --docsifytabs-tab-background--active: red;
    --docsifytabs-tab-color: #999;
    --docsifytabs-tab-color--active: inherit;
    --docsifytabs-tab-highlight-px: 4px;
    --docsifytabs-content-background: #e9e9e9;
}

.sidebar a.app-name-link {
    display: flex;
    justify-content: center;
}

.sidebar a.app-name-link img {
    max-width: 66%;
}

.mermaid {
    filter: invert();
}

.markdown-section tr:nth-child(2n) {
    background-color: var(--twyn-table-alt-bg);
}

* {
    -webkit-font-smoothing: antialiased;
    -webkit-overflow-scrolling: touch;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
    -webkit-text-size-adjust: none;
    -webkit-touch-callout: none;
    box-sizing: border-box
}

body:not(.ready) {
    overflow: hidden
}

body:not(.ready) .app-nav, body:not(.ready) > nav, body:not(.ready) [data-cloak] {
    display: none
}

div#app {
    font-size: 30px;
    font-weight: lighter;
    margin: 40vh auto;
    text-align: center
}

div#app:empty:before {
    content: "Loading..."
}

.emoji {
    height: 1.2rem;
    vertical-align: middle
}

body, html {
    height: 100%
}

body {
    -moz-osx-font-smoothing: grayscale;
    -webkit-font-smoothing: antialiased;
    color: #34495e;
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: 16px;
    letter-spacing: 0;
    margin: 0;
    overflow-x: hidden
}

img {
    max-width: 100%
}

a[disabled] {
    cursor: not-allowed;
    opacity: .6
}

li input[type=checkbox] {
    margin: 0 .2em .25em 0;
    vertical-align: middle
}

main.hidden {
    display: none
}

.anchor {
    display: inline-block;
    text-decoration: none;
    transition: all .3s
}

.anchor span {
    color: #34495e
}

.anchor:hover {
    text-decoration: underline
}

.sidebar {
    border-right: 1px solid rgba(0, 0, 0, .07);
    overflow-y: auto;
    padding: 20px 0 0
}

.sidebar > h1 {
    margin: 0 auto 1rem;
    font-size: 1.5rem;
    font-weight: 300;
    text-align: center
}

.sidebar > h1 a {
    color: inherit;
    text-decoration: none
}

.sidebar > h1 .app-nav {
    display: block;
    position: static
}

.sidebar .sidebar-nav {
    line-height: 2em;
    padding-bottom: 40px
}

.sidebar li.collapse .app-sub-sidebar {
    display: none
}

.sidebar ul {
    margin: 0 0 0 15px;
    padding: 0
}

.sidebar li > p {
    font-weight: 700;
    margin: 0
}

.sidebar ul, .sidebar ul li {
    list-style: none
}

.sidebar ul li a {
    border-bottom: none;
    display: block
}

.sidebar ul li ul {
    padding-left: 20px
}

.sidebar::-webkit-scrollbar {
    width: 4px
}

.sidebar::-webkit-scrollbar-thumb {
    background: transparent;
    border-radius: 4px
}

.sidebar:hover::-webkit-scrollbar-thumb {
    background: hsla(0, 0%, 53.3%, .4)
}

.sidebar:hover::-webkit-scrollbar-track {
    background: hsla(0, 0%, 53.3%, .1)
}

.markdown-section {
    margin: 0 auto;
    padding: 30px 15px 40px;
    position: relative
}

.markdown-section > * {
    box-sizing: border-box;
    font-size: inherit
}

.markdown-section > :first-child {
    margin-top: 0 !important
}

.markdown-section hr {
    border: none;
    border-bottom: 1px solid #7e7e7e;
    margin: 2em 0
}

.markdown-section iframe {
    border: 1px solid #eee;
    width: 1px;
    min-width: 100%
}

.markdown-section table {
    border-collapse: collapse;
    border-spacing: 0;
    display: block;
    margin-bottom: 1rem;
    overflow: auto;
    width: 100%
}

.markdown-section th {
    font-weight: 700
}

.markdown-section td, .markdown-section th {
    border: 1px solid var(--twyn-table-border);
    padding: 6px 13px
}

.markdown-section tr {
    border-top: 1px solid var(--twyn-table-border)
}

.markdown-section tr:nth-child(2n) {
    background-color: var(--twyn-table-alt-bg)
}

.markdown-section ul.task-list > li {
    list-style-type: none
}

@media print {
    .app-nav, .github-corner, .sidebar {
        display: none
    }
}


/* Größere Margins für größere Bildschirme */
@media (min-width: 2000px) and (max-width: 4000px) {
    .markdown-section {
        width: 50%;
        margin:auto;
    }
}

/* Mittlere Margins für mittlere Bildschirme */
@media (min-width: 1600px) and (max-width: 2000px) {
    .markdown-section {
        width: 60%;
        margin:auto;
    }
}

@media (min-width: 1200px) and (max-width: 1600px) {
    .markdown-section {
        width: 70%;
        margin:auto;
    }
}

/* Mittlere Margins für mittlere Bildschirme */
@media (min-width: 992px) and (max-width: 1199px) {
    .markdown-section {
        width: 80%;
        margin:auto;
    }
}

/* Keine Margins für kleinere Bildschirme */
@media (max-width: 991px) {
    .markdown-section {
        width: 80%;
        margin:auto;
    }
}



@media screen and (max-width: 768px) {
    .github-corner, .sidebar {
        position: fixed
    }

    .app-nav {
        margin-top: 16px
    }

    .app-nav li ul {
        top: 30px
    }

    main {
        height: auto;
        overflow-x: hidden
    }

    .app-nav, .github-corner {
        transition: transform .25s ease-out
    }

    .github-corner:hover .octo-arm {
        -webkit-animation: none;
        animation: none
    }

    .github-corner .octo-arm {
        -webkit-animation: octocat-wave .56s ease-in-out;
        animation: octocat-wave .56s ease-in-out
    }
}

@-webkit-keyframes octocat-wave {
    0%, to {
        transform: rotate(0)
    }
    20%, 60% {
        transform: rotate(-25deg)
    }
    40%, 80% {
        transform: rotate(10deg)
    }
}

@keyframes octocat-wave {
    0%, to {
        transform: rotate(0)
    }
    20%, 60% {
        transform: rotate(-25deg)
    }
    40%, 80% {
        transform: rotate(10deg)
    }
}

section.cover {
    align-items: center;
    background-position: 50%;
    background-repeat: no-repeat;
    background-size: cover;
    height: 100vh;
    width: 100vw;
    display: none
}

section.cover.show {
    display: flex
}

section.cover.has-mask .mask {
    background-color: #fff;
    opacity: .8;
    position: absolute;
    top: 0;
    height: 100%;
    width: 100%
}

section.cover .cover-main {
    flex: 1;
    margin: -20px 16px 0;
    text-align: center;
    position: relative
}

section.cover a {
    color: inherit
}

section.cover a, section.cover a:hover {
    text-decoration: none
}

section.cover p {
    line-height: 1.5rem;
    margin: 1em 0
}

section.cover h1 {
    color: inherit;
    font-size: 2.5rem;
    font-weight: 300;
    margin: .625rem 0 2.5rem;
    position: relative;
    text-align: center
}

section.cover h1 a {
    display: block
}

section.cover h1 small {
    bottom: -.4375rem;
    font-size: 1rem;
    position: absolute
}

section.cover blockquote {
    font-size: 1.5rem;
    text-align: center
}

section.cover ul {
    line-height: 1.8;
    list-style-type: none;
    margin: 1em auto;
    max-width: 500px;
    padding: 0
}

section.cover .cover-main > p:last-child a {
    border-radius: 2rem;
    border: 1px solid var(--theme-color);
    box-sizing: border-box;
    color: var(--theme-color);
    display: inline-block;
    font-size: 1.05rem;
    letter-spacing: .1rem;
    margin: .5rem 1rem;
    padding: .75em 2rem;
    text-decoration: none;
    transition: all .15s ease
}

section.cover .cover-main > p:last-child a:last-child {
    background-color: var(--theme-color);
    color: #fff
}

section.cover .cover-main > p:last-child a:last-child:hover {
    color: inherit;
    opacity: .8
}

section.cover .cover-main > p:last-child a:hover {
    color: inherit
}

section.cover blockquote > p > a {
    border-bottom: 2px solid var(--theme-color);
    transition: color .3s
}

section.cover blockquote > p > a:hover {
    color: var(--theme-color)
}

.sidebar, body {
    background-color: #FFF
}

.sidebar {
    color: #364149
}

.sidebar li {
    margin: 6px 0
}

.sidebar ul li a {
    color: #505d6b;
    font-size: 14px;
    font-weight: 400;
    overflow: hidden;
    text-decoration: none;
    text-overflow: ellipsis;
    white-space: nowrap
}

.sidebar ul li a.page-link {
    padding: 0;
    border: 0;
    background: transparent;
}

.sidebar ul li a.page-link:hover {
    color: inherit;
    border-color: transparent;
    background: transparent;
}

.sidebar ul li a:hover {
    text-decoration: underline
}

.sidebar ul li ul {
    padding: 0
}

.sidebar ul li.active > a {
    border-right: 2px solid;
    color: var(--theme-color);
    font-weight: 600
}

.app-sub-sidebar li:before {
    content: "-";
    padding-right: 4px;
    float: left
}

.markdown-section h1, .markdown-section h2, .markdown-section h3, .markdown-section h4, .markdown-section strong {
    color: #2c3e50;
    font-weight: 600
}

.markdown-section a {
    color: var(--theme-color);
    font-weight: 600
}

.markdown-section h1 {
    font-size: 2rem;
    margin: 0 0 1rem
}

.markdown-section h2 {
    font-size: 1.75rem;
    margin: 45px 0 .8rem
}

.markdown-section h3 {
    font-size: 1.5rem;
    margin: 40px 0 .6rem
}

.markdown-section h4 {
    font-size: 1.25rem
}

.markdown-section h5 {
    font-size: 1rem
}

.markdown-section h6 {
    color: #777;
    font-size: 1rem!important;
    font-weight: normal;
}

.markdown-section figure, .markdown-section p {
    margin: 1.2em 0
}

.markdown-section ol, .markdown-section p, .markdown-section ul {
    line-height: 1.6rem;
    word-spacing: .05rem
}

.markdown-section ol, .markdown-section ul {
    padding-left: 1.5rem
}

.markdown-section blockquote {
    border-left: 4px solid var(--theme-color);
    color: #858585;
    margin: 2em 0;
    padding-left: 20px
}

.markdown-section blockquote p {
    font-weight: 600;
    margin-left: 0
}

.markdown-section iframe {
    margin: 1em 0
}

.markdown-section em {
    color: #7f8c8d
}

.markdown-section code, .markdown-section output:after, .markdown-section pre {
    font-family: Roboto Mono, Monaco, courier, monospace
}

.markdown-section code, .markdown-section pre {
    background-color: var(--twyn-code-bg)
}

.markdown-section output, .markdown-section pre {
    margin: 1.2em 0;
    position: relative
}

.markdown-section output, .markdown-section pre > code {
    border-radius: 2px;
    display: block
}

.markdown-section output:after, .markdown-section pre > code {
    -moz-osx-font-smoothing: initial;
    -webkit-font-smoothing: initial
}

.markdown-section code {
    border-radius: 2px;
    color: #1669a8;    
    margin: 0 2px;
    padding: 3px 5px;
    white-space: pre-wrap
}

.markdown-section > :not(h1):not(h2):not(h3):not(h4):not(h5):not(h6) code {
    font-size: .8rem
}

.markdown-section pre {
    padding: 0 1.4rem;
    line-height: 1.5rem;
    overflow: auto;
    word-wrap: normal
}

.markdown-section pre > code {
    color: #525252;
    font-size: .8rem;
    padding: 2.2em 5px;
    line-height: inherit;
    margin: 0 2px;
    max-width: inherit;
    overflow: inherit;
    white-space: inherit
}

.markdown-section output {
    padding: 1.7rem 1.4rem;
    border: 1px dotted #ccc
}

.markdown-section output > :first-child {
    margin-top: 0
}

.markdown-section output > :last-child {
    margin-bottom: 0
}

.markdown-section code:after, .markdown-section code:before, .markdown-section output:after, .markdown-section output:before {
    letter-spacing: .05rem
}

.markdown-section output:after, .markdown-section pre:after {
    color: #ccc;
    font-size: .6rem;
    font-weight: 600;
    height: 15px;
    line-height: 15px;
    padding: 5px 10px 0;
    position: absolute;
    right: 0;
    text-align: right;
    top: 0;
    content: attr(data-lang)
}

.token.cdata, .token.comment, .token.doctype, .token.prolog {
    color: #8e908c
}

.token.namespace {
    opacity: .7
}

.token.boolean, .token.number {
    color: #c76b29
}

.token.punctuation {
    color: #525252
}

.token.property {
    color: #c08b30
}

.token.tag {
    color: #2973b7
}

.token.string {
    color: var(--theme-color)
}

.token.selector {
    color: #6679cc
}

.token.attr-name {
    color: #2973b7
}

.language-css .token.string, .style .token.string, .token.entity, .token.url {
    color: #22a2c9
}

.token.attr-value, .token.control, .token.directive, .token.unit {
    color: var(--theme-color)
}

.token.function, .token.keyword {
    color: #e96900
}

.token.atrule, .token.regex, .token.statement {
    color: #22a2c9
}

.token.placeholder, .token.variable {
    color: #3d8fd1
}

.token.deleted {
    text-decoration: line-through
}

.token.inserted {
    border-bottom: 1px dotted #202746;
    text-decoration: none
}

.token.italic {
    font-style: italic
}

.token.bold, .token.important {
    font-weight: 700
}

.token.important {
    color: #c94922
}

.token.entity {
    cursor: help
}

code .token {
    -moz-osx-font-smoothing: initial;
    -webkit-font-smoothing: initial;
    min-height: 1.5rem;
    position: relative;
    left: auto
}

/* Docsify v5 theme variables */
:root {
    --theme-color: #009C98;
    --sidebar-width: 300px;
    --color-bg: #ffffff;
    --color-text: #333333;
    --link-color-hover: var(--theme-color);
    --link-underline-color: var(--theme-color);
    --link-underline-color-hover: var(--theme-color);
    --button-bg: var(--theme-color);
    --navbar-link-color-active: var(--theme-color);
    --sidebar-link-color-active: var(--theme-color);
    --sidebar-toggle-bg: transparent;
    --sidebar-toggle-bg-hover: transparent;
    --sidebar-toggle-color-hover: var(--theme-color);
    --twyn-bg: #ffffff;
    --twyn-surface: #ffffff;
    --twyn-panel: #f3f3f3;
    --twyn-panel-raised: #ffffff;
    --twyn-border: #e0e0e0;
    --twyn-text: #333333;
    --twyn-muted: #6f6f6f;
    --twyn-heading: #2c3e50;
    --twyn-nav-bg: #ffffff;
    --twyn-table-alt-bg: #f8f8f8;
    --twyn-table-border: #dddddd;
    --twyn-code-bg: #f8f8f8;
    --twyn-language-settings-gradient: rgba(255, 255, 255, 1);
    --twyn-language-settings-gradient-transparent: rgba(255, 255, 255, 0);
}

html[data-ui-theme="dark"] {
    --color-bg: #15191d;
    --color-text: #e6eaee;
    --color-mono-min: var(--color-bg);
    --color-mono-max: var(--color-text);
    --heading-color: #ffffff;
    --twyn-bg: #15191d;
    --twyn-surface: #1d2329;
    --twyn-panel: #21252a;
    --twyn-panel-raised: #20262d;
    --twyn-border: #3a424c;
    --twyn-text: #e6eaee;
    --twyn-muted: #aeb8c2;
    --twyn-heading: #ffffff;
    --twyn-nav-bg: #20262d;
    --twyn-table-alt-bg: #20262d;
    --twyn-table-border: #3a424c;
    --twyn-code-bg: #20262d;
    --code-bg: #20262d;
    --code-color: #e6eaee;
    --codeblock-bg: #20262d;
    --table-row-alt-bg: #20262d;
    --twyn-language-settings-gradient: rgba(29, 35, 41, 1);
    --twyn-language-settings-gradient-transparent: rgba(29, 35, 41, 0);
    --sidebar-bg: var(--twyn-surface);
    --sidebar-color: var(--twyn-text);
    --sidebar-border-color: var(--twyn-border);
    --sidebar-link-color: var(--twyn-text);
    --sidebar-name-color: var(--twyn-heading);
    --strong-color: #ffffff;
}

html[data-ui-theme="dark"] body {
    background-color: var(--twyn-surface);
}

html[data-ui-theme="dark"] .content {
    background-color: var(--twyn-bg);
}

html[data-ui-theme="dark"] .sidebar {
    background-color: var(--twyn-surface);
    border-right-color: var(--twyn-border);
    color: var(--twyn-text);
}

html[data-ui-theme="dark"] .sidebar ul li a {
    color: var(--twyn-text);
}

html[data-ui-theme="dark"] .sidebar ul li.active > a {
    color: var(--theme-color);
}

html[data-ui-theme="dark"] .markdown-section {
    color: var(--twyn-text);
}

html[data-ui-theme="dark"] .markdown-section h1,
html[data-ui-theme="dark"] .markdown-section h2,
html[data-ui-theme="dark"] .markdown-section h3,
html[data-ui-theme="dark"] .markdown-section h4,
html[data-ui-theme="dark"] .markdown-section h5,
html[data-ui-theme="dark"] .markdown-section h6,
html[data-ui-theme="dark"] .markdown-section strong,
html[data-ui-theme="dark"] .markdown-section h1 a,
html[data-ui-theme="dark"] .markdown-section h2 a,
html[data-ui-theme="dark"] .markdown-section h3 a,
html[data-ui-theme="dark"] .markdown-section h4 a,
html[data-ui-theme="dark"] .markdown-section h5 a,
html[data-ui-theme="dark"] .markdown-section h6 a,
html[data-ui-theme="dark"] .markdown-section h1 span,
html[data-ui-theme="dark"] .markdown-section h2 span,
html[data-ui-theme="dark"] .markdown-section h3 span,
html[data-ui-theme="dark"] .markdown-section h4 span,
html[data-ui-theme="dark"] .markdown-section h5 span,
html[data-ui-theme="dark"] .markdown-section h6 span {
    color: #ffffff !important;
}

html[data-ui-theme="dark"] .markdown-section blockquote,
html[data-ui-theme="dark"] .markdown-section em {
    color: var(--twyn-muted);
}

.markdown-section .callout.note {
    --theme-color: #0b85d7;
    --callout-bg: color-mix(in srgb, #0b85d7, var(--color-bg) 90%);
    --callout-border-color: color-mix(in srgb, #0b85d7, var(--color-bg) 75%);
    --callout-color: var(--color-text);
}

html[data-ui-theme="dark"] .markdown-section .callout.note {
    --callout-bg: color-mix(in srgb, #0b85d7, var(--color-bg) 84%);
    --callout-border-color: color-mix(in srgb, #0b85d7, var(--color-bg) 45%);
}

html[data-ui-theme="dark"] .markdown-section .callout.tip {
    --callout-bg: color-mix(in srgb, #14b8a6, var(--color-bg) 84%);
    --callout-border-color: color-mix(in srgb, #14b8a6, var(--color-bg) 45%);
    --callout-color: var(--color-text);
}

html[data-ui-theme="dark"] .markdown-section .callout.important {
    --callout-bg: color-mix(in srgb, #8b5cf6, var(--color-bg) 84%);
    --callout-border-color: color-mix(in srgb, #8b5cf6, var(--color-bg) 45%);
    --callout-color: var(--color-text);
}

html[data-ui-theme="dark"] .markdown-section .callout.warning {
    --callout-bg: color-mix(in srgb, #fcd34d, var(--color-bg) 84%);
    --callout-border-color: color-mix(in srgb, #fcd34d, var(--color-bg) 45%);
    --callout-color: var(--color-text);
}

html[data-ui-theme="dark"] .markdown-section .callout.caution {
    --callout-bg: color-mix(in srgb, #ef4444, var(--color-bg) 84%);
    --callout-border-color: color-mix(in srgb, #ef4444, var(--color-bg) 45%);
    --callout-color: var(--color-text);
}

html[data-ui-theme="dark"] .card {
    background-color: transparent;
}

@media screen and (max-width: 991px) {
    #app-navigation {
        background: linear-gradient(0deg, var(--twyn-language-settings-gradient-transparent) 0%, var(--twyn-language-settings-gradient) 100%);
        margin-top: 0 !important;
    }
}

#app-navigation > ul > li {
    background: transparent !important;
}

#app-navigation .language-toggle-item {
    --language-list-top: 100%;
    padding: 5px;
}

#app-navigation #currentLanguage {
    background: transparent;
    cursor: pointer;
}

#app-navigation #language-list {
    top: -9999vh;
}

#app-navigation .language-toggle-item.language-menu-open #language-list {
    top: var(--language-list-top);
}

#app-navigation #language-list li {
    background: transparent;
}

@media (hover: hover) and (pointer: fine) {
    #app-navigation .language-toggle-item:hover #language-list,
    #app-navigation .language-toggle-item:focus-within #language-list {
        top: var(--language-list-top);
    }
}

@media (hover: none), (pointer: coarse) {
    #app-navigation .language-toggle-item:hover #language-list,
    #app-navigation .language-toggle-item:focus-within #language-list {
        top: -9999vh;
    }

    #app-navigation .language-toggle-item.language-menu-open #language-list {
        top: var(--language-list-top);
    }
}

@media screen and (max-width: 768px) {
    #app-navigation .language-toggle-item {
        --language-list-top: 30px;
    }
}

html[data-ui-theme="dark"] #app-navigation #language-list {
    background-color: var(--twyn-surface);
    border-color: var(--twyn-border);
}

html[data-ui-theme="dark"] #app-navigation #currentLanguage,
html[data-ui-theme="dark"] #app-navigation #language-list a {
    color: var(--twyn-text);
}

html[data-ui-theme="dark"] .sidebar .app-name-link img {
    filter: brightness(0) invert(1);
}

html[data-ui-theme="dark"] .help-center-illustration img[src$="twyn_lines_transparent.svg"],
html[data-ui-theme="dark"] img.card-img[src$="twyn_lines_transparent.svg"] {
    filter: brightness(0) invert(1);
}

#app-navigation .theme-toggle-item {
    padding: 5px;
}

#app-navigation .theme-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    cursor: pointer;
    line-height: 1;
    outline: 0;
}

html[data-ui-theme="dark"] #app-navigation .theme-toggle {
    color: var(--twyn-text) !important;
}

#app-navigation .theme-toggle-input {
    position: absolute;
    z-index: 2;
    inset: 0;
    width: 58px;
    height: 30px;
    margin: 0;
    opacity: 0;
    cursor: pointer;
}

#app-navigation .theme-toggle-track {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    width: 58px;
    height: 30px;
    border: 1.5px solid #111111;
    border-radius: 999px;
    background: #ffffff;
    color: #111111;
}

#app-navigation .theme-toggle-input:focus-visible + .theme-toggle-track {
    outline: 2px solid var(--theme-color);
    outline-offset: 3px;
}

#app-navigation .theme-toggle-handle {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 22px;
    height: 22px;
    border-radius: 999px;
    background: #111111;
    transition: transform var(--duration-fast);
}

#app-navigation .theme-toggle-input:checked + .theme-toggle-track .theme-toggle-handle {
    transform: translateX(28px);
}

#app-navigation .theme-toggle-icon {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    color: #111111;
    transition: color var(--duration-fast);
    pointer-events: none;
}

#app-navigation .theme-toggle-sun::before {
    content: "";
    width: 9px;
    height: 9px;
    border: 2px solid currentColor;
    border-radius: 999px;
    box-shadow:
        0 -8px 0 -3px currentColor,
        0 8px 0 -3px currentColor,
        8px 0 0 -3px currentColor,
        -8px 0 0 -3px currentColor,
        6px 6px 0 -3px currentColor,
        -6px -6px 0 -3px currentColor,
        6px -6px 0 -3px currentColor,
        -6px 6px 0 -3px currentColor;
}

#app-navigation .theme-toggle-moon::before {
    content: "";
    width: 16px;
    height: 16px;
    border-radius: 999px;
    box-shadow: inset 6px -1px 0 0 currentColor;
    transform: rotate(-15deg);
}

#app-navigation .theme-toggle-input:not(:checked) + .theme-toggle-track .theme-toggle-sun,
#app-navigation .theme-toggle-input:checked + .theme-toggle-track .theme-toggle-moon {
    color: #ffffff;
}
