html,body { min-width:320px; min-height:100%; margin:0; font-family:var(--aut-font-family); overscroll-behavior-y:none; }
body { color:var(--aut-color-text-muted); background:var(--aut-color-surface); }
body.landing-loading { overflow:hidden; }
*,*::before,*::after { box-sizing:border-box; }
button,input,select,textarea { font:inherit; }
::selection { color:white; background:var(--aut-color-brand); }
h1:focus { outline:none; }
.valid.modified:not([type=checkbox]) { outline:1px solid var(--aut-color-success); }
.invalid { outline:1px solid var(--aut-color-danger); }
.validation-message { color:var(--aut-color-danger); }
.blazor-error-boundary { padding:1rem 1rem 1rem 3.7rem; color:white; background:var(--aut-color-danger); }

#blazor-error-ui { display:none; position:fixed; z-index:1000; inset:auto 1rem 1rem; padding:1rem 2.5rem 1rem 1rem; border-radius:var(--aut-radius-md); color:white; background:var(--aut-color-danger); box-shadow:var(--aut-shadow-md); text-align:center; }
#blazor-error-ui a { color:white; font-weight:750; }

.landing-startup {
    position: fixed;
    z-index: 10000;
    inset: 0;
    display: flex;
    width: 100vw;
    min-height: 100vh;
    min-height: 100dvh;
    align-items: center;
    justify-content: center;
    color: var(--aut-color-text);
    background: var(--aut-color-surface);
    opacity: 1;
    visibility: visible;
}

.landing-startup--hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.landing-startup__emblem {
    position: relative;
    display: flex;
    width: 8rem;
    height: 8rem;
    align-items: center;
    justify-content: center;
}

.landing-startup__emblem img {
    width: 5rem;
    height: auto;
}

.landing-startup__ring {
    position: absolute;
    inset: 0;
    border: .2rem solid color-mix(in srgb, var(--aut-color-brand) 20%, transparent);
    border-top-color: var(--aut-color-brand);
    border-right-color: color-mix(in srgb, var(--aut-color-brand) 65%, transparent);
    border-radius: 50%;
    animation: landing-startup-spin .9s linear infinite;
}

@keyframes landing-startup-spin {
    to { transform: rotate(1turn); }
}

@media (prefers-reduced-motion: no-preference) {
    .landing-startup { transition: opacity .28s ease, visibility 0s linear .28s; }
}

@media (prefers-reduced-motion: reduce) {
    .landing-startup__ring { animation: none; border-color: var(--aut-color-brand); }
}

/* Общая карточка служебных публичных страниц Landing. */
.landing-message-card {
    display: block;
    width: min(100%, 42rem);
    margin: clamp(2rem, 8vh, 6rem) auto 1rem;
    border: 1px solid var(--aut-color-border);
    border-radius: var(--aut-radius-lg);
    background: var(--aut-color-surface);
    box-shadow: var(--aut-shadow-sm);
    overflow-wrap: anywhere;
}
.landing-request-id {
    text-align: center;
    color: var(--aut-color-text-muted);
    font-size: .8rem;
    overflow-wrap: anywhere;
}

/* Общее ожидание документа для MainLayout и StartPage: правило вне CSS isolation достигает обеих разметок. */
.landing-start-loading { display: grid; min-height: 55vh; place-items: center; }
