.a68-demo-header { position: sticky; top: 0; z-index: 80; }
html:not(.a68-standalone) :is(.a68-demo-header, .a68-brand-backdrop),
html[lang="de"] [data-a68-page-locale="en"],
html:not([lang="de"]) [data-a68-page-locale="de"] { display: none; }
.a68-standalone,
.a68-standalone body { background: #000 !important; }
.a68-standalone.dark #root,
.a68-standalone.dark #root > div,
.a68-standalone.dark #root > div > div:nth-child(2) { background: transparent !important; }
.a68-standalone.dark #root > div > div:nth-child(2) > div:first-child {
    background: var(--brand-panel-wash) !important;
    border-color: #262626 !important;
}
@media (min-width: 920px) {
    .a68-standalone #root > div { min-height: calc(100dvh - 71px) !important; }
    .a68-standalone #root > div > div:nth-child(2) { height: calc(100dvh - 71px) !important; }
}
/* On a narrow standalone screen, let the page scroll rather than forcing a
   small scrolling panel inside a 100vh desktop window. */
@media (max-width: 900px) {
    .a68-standalone #root > div,
    .a68-standalone #root > div > div:nth-child(2),
    .a68-standalone #root > div > div:nth-child(2) > div:first-child {
        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;
        overflow: visible !important;
    }
    .a68-standalone #root > div > div:nth-child(2) > div:first-child > div {
        min-width: 0 !important;
        max-width: 100%;
    }
    .a68-standalone #root .flex-1.overflow-y-auto {
        overflow: visible !important;
        flex: initial !important;
        min-height: 0 !important;
        max-height: none !important;
    }
    #root button { min-height: 44px; }
    #root button:focus-visible, #root a:focus-visible { outline: 2px solid #0055ff; outline-offset: 2px; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}
/* Keep small app labels legible on the light theme. */
html:not(.dark) #root :is(.text-gray-400, .text-gray-500, .text-gray-600, .text-slate-400) {
    color: #46536a !important;
}
html:not(.dark) #root .text-red-600 { color: #9c1721 !important; }
html:not(.dark) #root :is(.text-emerald-400, .text-emerald-400\/80, .text-emerald-500, .text-emerald-600) {
    color: #003eb4 !important;
}
#root [role="dialog"] [data-demo-close] {
    min-width: 44px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.a68-standalone.a68-dialog-open { overflow: hidden; }
