.app-shell-version {
    position: fixed;
    left: 16px;
    bottom: 16px;
    z-index: 10010;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.45rem 0.7rem;
    border-radius: 999px;
    background: rgba(26, 31, 54, 0.9);
    color: #fff;
    font: 600 0.72rem/1.1 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    letter-spacing: 0.03em;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.18);
    backdrop-filter: blur(10px);
}

.app-shell-version__dot {
    width: 0.55rem;
    height: 0.55rem;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.16);
    flex: 0 0 auto;
}

.app-shell-update {
    position: fixed;
    right: 16px;
    bottom: 16px;
    z-index: 10010;
    width: min(360px, calc(100vw - 32px));
    padding: 0.95rem 1rem;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.97);
    color: #1f2937;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.16);
    border: 1px solid rgba(148, 163, 184, 0.22);
    backdrop-filter: blur(14px);
}

.app-shell-update[hidden] {
    display: none !important;
}

.app-shell-update__title {
    margin: 0 0 0.35rem;
    font: 700 0.92rem/1.2 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.app-shell-update__text {
    margin: 0;
    font: 500 0.8rem/1.45 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: #475569;
}

.app-shell-update__actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.55rem;
    margin-top: 0.85rem;
}

.app-shell-btn {
    border: 0;
    border-radius: 10px;
    padding: 0.5rem 0.8rem;
    font: 600 0.78rem/1 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    cursor: pointer;
}

.app-shell-btn--ghost {
    background: #e2e8f0;
    color: #334155;
}

.app-shell-btn--primary {
    background: #0f766e;
    color: #fff;
}

body.mob-ready .app-shell-version {
    bottom: calc(var(--mob-bottom-h, 60px) + var(--mob-safe-bottom, env(safe-area-inset-bottom, 0px)) + 10px);
}

body.mob-ready .app-shell-update {
    bottom: calc(var(--mob-bottom-h, 60px) + var(--mob-safe-bottom, env(safe-area-inset-bottom, 0px)) + 12px);
}

@media (max-width: 640px) {
    .app-shell-version {
        left: 12px;
        bottom: 12px;
        font-size: 0.63rem;
        padding: 0.38rem 0.58rem;
    }

    .app-shell-update {
        right: 12px;
        bottom: 58px;
        width: calc(100vw - 24px);
    }

    body.mob-ready .app-shell-version {
        bottom: calc(var(--mob-bottom-h, 60px) + var(--mob-safe-bottom, env(safe-area-inset-bottom, 0px)) + 8px);
    }

    body.mob-ready .app-shell-update {
        bottom: calc(var(--mob-bottom-h, 60px) + var(--mob-safe-bottom, env(safe-area-inset-bottom, 0px)) + 10px);
    }
}
