/* Gate layout geometry only. @see docs/ui-surface-truth-model.md */

.ll-surface--gate-fullscreen {
    display: flex;
    flex-direction: column;
    min-height: 100%;
    width: 100%;
}

.ll-surface--gate-fullscreen > .ll-surface__body {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    min-height: 0;
    min-width: 0;
    overflow-x: hidden;
    overflow-y: auto;
}

.auth-screen.ll-surface--gate-fullscreen > .ll-surface__header {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 0 24px;
}

.auth-screen.ll-surface--gate-fullscreen > .ll-surface__header .ll-surface__title {
    font-size: 1.7rem;
    line-height: 1.2;
    text-align: left;
    white-space: normal;
}

@media (max-width: 400px) {
    .auth-screen.ll-surface--gate-fullscreen > .ll-surface__header {
        padding: 0 12px;
    }
}

.ll-surface--gate-blocking > .ll-surface__body {
    align-items: center;
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    justify-content: center;
    overflow: visible;
    text-align: center;
}

.ll-surface--gate-blocking .ll-surface__title.loading-title {
    margin: 4px 0 0;
}

.dialog-content.ll-surface--gate-blocking > .ll-surface__header .ll-surface__title {
    text-align: center;
    white-space: normal;
}

/* Demo entry: hide the signed-in shell until sandbox session is ready (avoids real Today flash). */
html.ll-sandbox-boot-pending .app-shell,
html.ll-sandbox-boot-pending #lessonlink-env-float,
html.ll-sandbox-boot-pending #app-toast {
    visibility: hidden;
}

html.ll-sandbox-boot-pending body {
    background: var(--ll-color-bg-app, #0f1115);
}

.app-sandbox-boot-spinner {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 10001;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

html.ll-sandbox-boot-pending .app-sandbox-boot-spinner {
    display: flex;
}
