.app-version-label,
.app-sidebar-version {
    color: #64748b;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0;
}

.app-sidebar-version {
    display: block;
    padding: 2px 10px 8px;
    text-align: center;
}

.app-version-label {
    position: fixed;
    right: 10px;
    bottom: calc(10px + env(safe-area-inset-bottom));
    z-index: 80;
    padding: 5px 8px;
    border: 1px solid #d7e0ea;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.08);
    pointer-events: none;
}

.app-version-label.is-mobile {
    bottom: calc(72px + env(safe-area-inset-bottom));
    font-size: 10px;
}

.app-update-overlay {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: grid;
    place-items: center;
    padding: 20px;
    background: rgba(15, 23, 42, 0.72);
    backdrop-filter: blur(5px);
}

.app-update-dialog {
    width: min(100%, 390px);
    padding: 24px;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 22px 60px rgba(15, 23, 42, 0.3);
    color: #172033;
    text-align: center;
}

.app-update-icon {
    display: inline-grid;
    place-items: center;
    width: 48px;
    height: 48px;
    margin-bottom: 14px;
    border-radius: 8px;
    background: #dbeafe;
    color: #1d4ed8;
    font-size: 22px;
}

.app-update-dialog h2 {
    margin: 0 0 8px;
    font-size: 21px;
}

.app-update-dialog p {
    margin: 0;
    color: #64748b;
    line-height: 1.55;
}

.app-update-progress {
    height: 5px;
    margin-top: 18px;
    overflow: hidden;
    border-radius: 4px;
    background: #e2e8f0;
}

.app-update-progress::after {
    display: block;
    width: 45%;
    height: 100%;
    border-radius: inherit;
    background: #2563eb;
    content: "";
    animation: app-update-progress 1s ease-in-out infinite alternate;
}

@keyframes app-update-progress {
    from { transform: translateX(-15%); }
    to { transform: translateX(145%); }
}

@media (max-width: 720px) {
    .app-update-dialog { padding: 20px; }
}
