.app-load-state,
.placeholder-app-view {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    padding: var(--safe-top) var(--safe-right) var(--safe-bottom) var(--safe-left);
}

.app-load-state {
    z-index: 1800;
    display: grid;
    place-items: center;
    background:
        radial-gradient(circle at 50% 35%, rgba(255, 255, 255, 0.88), transparent 46%),
        linear-gradient(145deg, #dfe5ea, #f7f8f9 58%, #e8edf1);
}

.app-load-state__card {
    width: min(360px, calc(100vw - 40px));
    display: grid;
    justify-items: center;
    gap: 14px;
    padding: 32px 24px 26px;
    border: 1px solid rgba(255, 255, 255, 0.76);
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.58);
    box-shadow: 0 22px 55px rgba(44, 57, 68, 0.14);
    -webkit-backdrop-filter: blur(24px) saturate(1.15);
    backdrop-filter: blur(24px) saturate(1.15);
    text-align: center;
}

.app-load-state__icon {
    position: relative;
    width: 72px;
    height: 72px;
    display: grid;
    place-items: center;
    border-radius: 24px;
    color: #1c2227;
    background: rgba(255, 255, 255, 0.7);
    box-shadow: 0 10px 30px rgba(44, 57, 68, 0.12);
    font-size: 32px;
}

.app-load-state[data-app-load-state="loading"] .app-load-state__icon::after {
    position: absolute;
    inset: -7px;
    border: 2px solid transparent;
    border-top-color: #1c2227;
    border-radius: 50%;
    content: "";
    animation: app-load-spin 0.9s linear infinite;
}

.app-load-state[data-app-load-state="failed"] .app-load-state__icon {
    color: #a82b32;
    background: rgba(255, 232, 233, 0.86);
}

.app-load-state__card h2 {
    color: #171b1f;
    font-size: 20px;
    line-height: 1.3;
}

.app-load-state__card p {
    min-height: 22px;
    color: #626a71;
    font-size: 13px;
    line-height: 1.6;
}

.app-load-state__actions {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 4px;
}

.app-load-state__actions button {
    min-height: 44px;
    border: 0;
    border-radius: 14px;
    color: #30363b;
    background: rgba(27, 33, 38, 0.08);
    font-weight: 650;
}

.app-load-state__actions .app-load-state__retry {
    color: #fff;
    background: #171b1f;
}

.placeholder-app-view {
    z-index: 1200;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    color: #1c2227;
    background:
        radial-gradient(circle at 50% 38%, rgba(255, 255, 255, 0.92), transparent 36%),
        linear-gradient(145deg, #dfe5ea, #f7f8f9 58%, #e8edf1);
}

.placeholder-app-view__nav {
    min-height: 58px;
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) 44px;
    align-items: center;
    padding: 6px 14px;
}

.placeholder-app-view__nav button {
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 50%;
    color: inherit;
    background: rgba(255, 255, 255, 0.58);
    font-size: 24px;
}

.placeholder-app-view__nav h1 {
    overflow: hidden;
    font-size: 17px;
    text-align: center;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.placeholder-app-view__content {
    display: grid;
    place-content: center;
    justify-items: center;
    gap: 16px;
    padding: 28px 28px calc(90px + var(--safe-bottom));
    text-align: center;
}

.placeholder-app-view__icon {
    width: 92px;
    height: 92px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.78);
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.58);
    box-shadow: 0 18px 45px rgba(44, 57, 68, 0.13);
    font-size: 40px;
}

.placeholder-app-view__content h2 {
    font-size: 24px;
}

.placeholder-app-view__content p {
    max-width: 300px;
    color: #6b7379;
    font-size: 14px;
    line-height: 1.7;
}

@keyframes app-load-spin {
    to {
        transform: rotate(360deg);
    }
}

@media (prefers-reduced-motion: reduce) {
    .app-load-state[data-app-load-state="loading"] .app-load-state__icon::after {
        animation-duration: 1.8s;
    }
}
