html.ashuni-cache-refresh-pending,
html.ashuni-cache-refresh-pending body {
    min-height: 100%;
    overflow: hidden;
    background: #030303;
}

html.ashuni-cache-refresh-pending body > *:not(#ashuniCacheRefresh) {
    visibility: hidden !important;
}

.cache-refresh-screen {
    position: fixed;
    inset: 0;
    z-index: 2147483647;
    display: grid;
    place-items: center;
    overflow: hidden;
    padding: 36px;
    color: #f8f8fa;
    background: #030303;
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.cache-refresh-screen::before {
    content: "";
    position: absolute;
    inset: 48% -15% -38%;
    background: radial-gradient(ellipse at 50% 100%, rgba(227, 12, 47, 0.62) 0%, rgba(117, 0, 20, 0.32) 34%, rgba(3, 3, 3, 0) 72%);
    pointer-events: none;
}

.cache-refresh-screen::after {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0.2;
    pointer-events: none;
    background-image: repeating-linear-gradient(112deg, transparent 0 86px, rgba(255, 255, 255, 0.035) 87px 88px);
}

.cache-refresh-shell {
    position: relative;
    z-index: 1;
    width: min(100%, 820px);
}

.cache-refresh-topline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.13);
}

.cache-refresh-brand {
    display: flex;
    align-items: baseline;
    gap: 10px;
    color: #ffffff;
    font-family: Outfit, Inter, sans-serif;
    font-size: 18px;
    font-style: italic;
    font-weight: 800;
}

.cache-refresh-brand-slash {
    color: #ff2949;
}

.cache-refresh-release {
    color: rgba(255, 255, 255, 0.46);
    font-family: "Roboto Mono", ui-monospace, monospace;
    font-size: 11px;
}

.cache-refresh-heading {
    max-width: 650px;
    margin-top: clamp(52px, 10vh, 92px);
}

.cache-refresh-kicker {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 12px;
    color: #ff3655;
    font-family: "Roboto Mono", ui-monospace, monospace;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

.cache-refresh-kicker::before {
    content: "";
    width: 28px;
    height: 2px;
    background: #ff2949;
}

.cache-refresh-title {
    margin: 0;
    color: #ffffff;
    font-family: Outfit, Inter, sans-serif;
    font-size: clamp(42px, 8vw, 76px);
    font-style: italic;
    font-weight: 800;
    line-height: 0.98;
    letter-spacing: 0;
}

.cache-refresh-description {
    max-width: 590px;
    margin: 20px 0 0;
    color: rgba(235, 237, 243, 0.63);
    font-size: 15px;
    line-height: 1.65;
}

.cache-refresh-route {
    position: relative;
    margin-top: clamp(52px, 9vh, 76px);
    padding: 22px 0 20px;
}

.cache-refresh-track {
    position: relative;
    height: 68px;
    overflow: hidden;
}

.cache-refresh-rail {
    position: absolute;
    left: 0;
    right: 0;
    height: 2px;
    background: rgba(255, 255, 255, 0.19);
}

.cache-refresh-rail:first-child {
    top: 20px;
}

.cache-refresh-rail:nth-child(2) {
    bottom: 20px;
}

.cache-refresh-sleepers {
    position: absolute;
    inset: 13px 0;
    opacity: 0.42;
    background: repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.3) 0 2px, transparent 2px 34px);
}

.cache-refresh-progress {
    position: absolute;
    left: 0;
    top: 20px;
    width: 8%;
    height: 28px;
    border-top: 2px solid #ff2949;
    border-bottom: 2px solid #ff2949;
    filter: drop-shadow(0 0 7px rgba(255, 24, 62, 0.7));
    transition: width 520ms cubic-bezier(0.16, 1, 0.3, 1);
}

.cache-refresh-runner {
    position: absolute;
    top: 50%;
    right: -10px;
    width: 20px;
    height: 20px;
    border: 5px solid #030303;
    border-radius: 50%;
    background: #ff2949;
    box-shadow: 0 0 0 2px #ff2949, 0 0 22px rgba(255, 30, 66, 0.85);
    transform: translateY(-50%);
}

.cache-refresh-meta {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 24px;
    margin-top: 8px;
}

.cache-refresh-status {
    overflow: hidden;
    color: #f5f5f7;
    font-size: 13px;
    font-style: italic;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cache-refresh-percent {
    color: #ff3655;
    font-family: "Roboto Mono", ui-monospace, monospace;
    font-size: 14px;
    font-weight: 700;
}

.cache-refresh-bottomline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-top: 34px;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.cache-refresh-note {
    margin: 0;
    color: rgba(255, 255, 255, 0.43);
    font-size: 11px;
    line-height: 1.5;
}

.cache-refresh-auto {
    flex: 0 0 auto;
    color: rgba(255, 255, 255, 0.58);
    font-family: "Roboto Mono", ui-monospace, monospace;
    font-size: 10px;
    text-transform: uppercase;
}

.cache-refresh-auto::before {
    content: "";
    display: inline-block;
    width: 6px;
    height: 6px;
    margin-right: 8px;
    border-radius: 50%;
    background: #64d8aa;
    box-shadow: 0 0 10px rgba(100, 216, 170, 0.72);
    vertical-align: 1px;
}

.cache-refresh-screen.is-complete .cache-refresh-progress {
    border-color: #64d8aa;
    filter: drop-shadow(0 0 7px rgba(100, 216, 170, 0.62));
}

.cache-refresh-screen.is-complete .cache-refresh-runner {
    background: #64d8aa;
    box-shadow: 0 0 0 2px #64d8aa, 0 0 22px rgba(100, 216, 170, 0.75);
}

.cache-refresh-screen.is-complete .cache-refresh-percent,
.cache-refresh-screen.is-complete .cache-refresh-kicker {
    color: #64d8aa;
}

.cache-refresh-screen.is-complete .cache-refresh-kicker::before {
    background: #64d8aa;
}

@media (max-width: 640px) {
    .cache-refresh-screen {
        place-items: start center;
        padding: 24px 20px;
    }

    .cache-refresh-shell {
        padding-top: 10px;
    }

    .cache-refresh-heading {
        margin-top: 58px;
    }

    .cache-refresh-title {
        font-size: clamp(40px, 14vw, 58px);
    }

    .cache-refresh-description {
        font-size: 14px;
    }

    .cache-refresh-route {
        margin-top: 54px;
    }

    .cache-refresh-bottomline {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .cache-refresh-progress {
        transition: none;
    }
}
