/* The approved post-login waiting surface. Scoped to the startup loader only. */
.app-loader.pai-entry {
    /* The initial iframe cover is 280; keep this surface above it until paint. */
    z-index: 300;
    background: #FAF9F7;
    color: #1E192D;
    font-family: Nunito, PaiTitles, sans-serif;
    font-weight: 500;
}
.pai-entry[hidden] { display: none !important; }
.pai-entry .app-loader__content {
    width: min(340px, calc(100vw - 40px));
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    opacity: 1;
    animation: none;
    transform: none;
}
.pai-entry__buddy {
    position: relative;
    display: block;
    flex: none;
    width: 44px;
    height: 44px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 24px;
    background: none;
    box-shadow: none;
    cursor: pointer;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}
.pai-entry__buddy:focus-visible { outline: 2px solid #8E8796; outline-offset: 8px; }
.pai-entry .companion-art {
    position: relative;
    display: block;
    width: 44px;
    height: 44px;
    stroke: none;
    overflow: visible;
    transform: translateX(-.75px);
}
.pai-entry .companion-ink { transform-box: fill-box; transform-origin: 50% 88%; }
.pai-entry .companion-gaze { transform-box: fill-box; transform-origin: center; }
.pai-entry :is(.companion-eye, .companion-eye-open, .companion-eye-lid) { transform-box: view-box; }
.pai-entry :is(.companion-eye-open, .companion-eye-lid) { transform-origin: inherit; }
.pai-entry__shadow {
    position: absolute;
    left: 13px;
    bottom: -1px;
    width: 18px;
    height: 2px;
    border-radius: 50%;
    background: #1E192D0B;
    filter: blur(1.5px);
    transform-origin: center;
}
.pai-entry .app-loader__content p {
    margin: 0;
    color: #716B7B;
    font-size: 14px;
    line-height: 1.6;
    letter-spacing: .045em;
    text-align: center;
    font-weight: 500;
}
@supports (background-clip: text) {
    .pai-entry .app-loader__content p {
        background: linear-gradient(105deg, #716B7B 38%, #B5ACBC 47%, #716B7B 56%);
        background-size: 260% 100%;
        background-position: 160% 0;
        color: transparent;
        background-clip: text;
        -webkit-background-clip: text;
        animation: pai-entry-letter-light 4.4s linear infinite;
    }
}
@keyframes pai-entry-letter-light {
    0%, 18% { background-position: 160% 0; }
    65%, 100% { background-position: -70% 0; }
}
.pai-entry[data-motion-paused] .app-loader__content p { animation-play-state: paused; }
.pai-entry [hidden] { display: none !important; }
.pai-entry .pai-entry__progress { display: none; }
.pai-entry__progress i { flex: 1; height: 3px; border-radius: 8px; background: #E5E2DD; }
.pai-entry__progress i[data-state="done"] { background: #7D708A; }
.pai-entry__progress i[data-state="active"] { background: #7D708A; opacity: .55; animation: pai-entry-stage-breathe 1.8s ease-in-out infinite; }
.pai-entry .pai-entry__note { margin-top: 5px; color: #716B7B; font-size: 12px; line-height: 1.65; text-align: center; }
.pai-entry .pai-entry__retry { margin-top: 7px; min-height: 44px; padding: 0 20px; border: 1px solid #E5E2DD; border-radius: 14px; background: #FFFEFB; color: #1E192D; font: inherit; font-size: 14px; cursor: pointer; }
.pai-entry__retry:focus-visible { outline: 2px solid #8E8796; outline-offset: 3px; }
.pai-entry[data-entry-error] .app-loader__content p { animation: none; background: none; color: #1E192D; }
@keyframes pai-entry-stage-breathe { 50% { opacity: 1; } }
@media (max-width: 600px) {
    .pai-entry .app-loader__content { gap: 10px; }
    .pai-entry .companion-art { width: 40px; height: 40px; margin: 2px; }
    .pai-entry__shadow { left: 14px; width: 16px; }
    .pai-entry .app-loader__content p { font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
    .pai-entry .app-loader__content p { animation: none; background: none; color: #716B7B; }
    .pai-entry__progress i[data-state="active"] { animation: none; opacity: 1; }
}
