/* rz-offline — "No Internet Connection" card (see public/assets/js/rz-offline.js).
   Self-contained: no web fonts, icon fonts or images, so it renders with no network. */

#rz-offline {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: max(24px, env(safe-area-inset-top)) 20px max(24px, env(safe-area-inset-bottom));
    background: rgba(243, 244, 246, .82);
    opacity: 0;
    transition: opacity .28s var(--rz-ease, cubic-bezier(.4, 0, .2, 1));
    font-family: var(--rz-font, "Inter"), system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    -webkit-font-smoothing: antialiased;
}
@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
    #rz-offline {
        background: rgba(243, 244, 246, .66);
        -webkit-backdrop-filter: blur(8px);
        backdrop-filter: blur(8px);
    }
}
#rz-offline.is-visible { opacity: 1; }

#rz-offline .rz-off-card {
    width: 100%;
    max-width: 420px;
    padding: 36px 32px 28px;
    text-align: center;
    background: var(--rz-surface, #fff);
    border: 1px solid var(--rz-line, #E5E7EB);
    border-radius: 16px;
    box-shadow: var(--rz-shadow-lg, 0 12px 32px rgba(16, 24, 40, .12));
    transform: translateY(12px) scale(.97);
    transition: transform .32s cubic-bezier(.22, 1, .36, 1);
}
#rz-offline.is-visible .rz-off-card { transform: none; }

#rz-offline .rz-off-art {
    width: 120px;
    height: 120px;
    margin: 0 auto 20px;
}
#rz-offline .rz-off-art svg { display: block; width: 100%; height: 100%; }
#rz-offline .rz-off-ring {
    fill: none;
    stroke: #DBEAFE;
    stroke-width: 2;
    transform-origin: 60px 60px;
    animation: rz-off-pulse 2.4s ease-out infinite;
}

#rz-offline .rz-off-title {
    margin: 0 0 8px;
    font-family: var(--rz-font-display, var(--rz-font, "Inter")), system-ui, -apple-system, "Segoe UI", sans-serif;
    font-size: 20px;
    font-weight: 600;
    line-height: 1.3;
    color: #111827;
}
#rz-offline .rz-off-desc {
    margin: 0 0 6px;
    font-size: 14px;
    line-height: 1.55;
    color: #4B5563;
}
#rz-offline .rz-off-note {
    margin: 0 0 24px;
    font-size: 12.5px;
    line-height: 1.5;
    color: #6B7280;
}

#rz-offline .rz-off-retry {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 140px;
    height: 40px;
    padding: 0 22px;
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    background: var(--rz-brand, #2563EB);
    border: 0;
    border-radius: var(--rz-radius-md, 8px);
    box-shadow: var(--rz-shadow-xs, 0 1px 2px rgba(16, 24, 40, .05));
    cursor: pointer;
    transition: background-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
#rz-offline .rz-off-retry:hover { background: var(--rz-brand-hover, #1D4ED8); }
#rz-offline .rz-off-retry:active { transform: translateY(1px); }
#rz-offline .rz-off-retry:focus-visible {
    outline: none;
    box-shadow: 0 0 0 4px var(--rz-focus-ring, rgba(37, 99, 235, .16)), 0 0 0 1px var(--rz-brand, #2563EB);
}
#rz-offline .rz-off-retry:disabled { cursor: default; opacity: .85; }

#rz-offline .rz-off-spin {
    display: none;
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255, 255, 255, .45);
    border-top-color: #fff;
    border-radius: 50%;
    animation: rz-off-spin .7s linear infinite;
}
#rz-offline .rz-off-retry.is-checking .rz-off-spin { display: inline-block; }

#rz-offline .rz-off-status {
    min-height: 18px;
    margin-top: 12px;
    font-size: 12.5px;
    color: var(--rz-warning, #D97706);
}

@keyframes rz-off-pulse {
    0% { transform: scale(.82); opacity: 1; }
    100% { transform: scale(1.06); opacity: 0; }
}
@keyframes rz-off-spin { to { transform: rotate(360deg); } }

@media (max-width: 480px) {
    #rz-offline .rz-off-card { padding: 28px 20px 22px; border-radius: 14px; }
    #rz-offline .rz-off-art { width: 96px; height: 96px; margin-bottom: 16px; }
    #rz-offline .rz-off-title { font-size: 18px; }
    #rz-offline .rz-off-retry { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
    #rz-offline,
    #rz-offline .rz-off-card { transition: none; }
    #rz-offline .rz-off-ring { animation: none; }
}
