/* The shell and content have independent document lifecycles. Never hide errors
   behind a permanent spinner, or introduce a second horizontal scroll area. */
.synx-shell-host > .synx-shell > .synx-content { overflow: hidden; }
.synx-shell-host .synx-main { padding: 0; height: 100%; }
.app-content-host { position: relative; width: 100%; height: 100%; min-height: 220px; }
.app-content-frame { display: block; width: 100%; height: 100%; border: 0; background: var(--bs-body-bg); }
/* The loading layer draws the page's skeleton (app/components/skeleton.css).
   It is a size container so the skeleton responds to the content area's
   width, as the page inside the frame does, not to the window's. When the
   page is ready it fades out over 200ms instead of vanishing (where the
   browser can animate to display:none); otherwise it hides at once. */
.app-content-loading { position: absolute; inset: 0; z-index: 2; display: block; overflow: hidden; container-type: size; background: var(--bs-body-bg); opacity: 1; transition: opacity 200ms ease-out, display 200ms allow-discrete; }
.app-content-loading[hidden] { opacity: 0; }
.app-content-loading[hidden], .app-content-recovery[hidden] { display: none; }
.app-content-skeleton { height: 100%; }
@media (prefers-reduced-motion: reduce) { .app-content-loading { transition: none; } }
:is([data-reduce-animations="true"], .reduce-motion) .app-content-loading { transition: none; }
.app-content-recovery { position: absolute; inset: 0; z-index: 3; display: flex; flex-wrap: wrap; align-content: center; justify-content: center; gap: 12px; padding: 24px; background: var(--bs-body-bg); }
.app-content-recovery p { width: 100%; text-align: center; }
.synx-content-document .synx-content { width: 100%; margin: 0; }
.synx-content-document :is(.app-skip-link, .skip-links) { display: none; }
.synx-content-document [data-shell-focus]:focus { outline: none; }
@media (max-width: 991.98px) {
    .synx-shell-host > .synx-shell > .synx-content { padding-top: var(--synx-topbar-height); }
    .synx-content-document .synx-main { padding-top: var(--app-page-inset-top); }
    .synx-content-document .synx-main--canvas { padding-top: 0; }
}
