.activation-progress[hidden],
.activation-progress [hidden] {
    display: none !important;
}

.activation-progress {
    --activation-accent: var(--brand-logo-blue);
    --activation-complete: var(--brand-success);
    width: min(100%, 560px);
    margin: var(--brand-space-6) auto;
    padding: clamp(var(--brand-space-5), 5vw, var(--brand-space-8));
    color: var(--brand-text);
    background: var(--brand-surface);
    border: 1px solid var(--brand-border);
    border-radius: var(--brand-radius-md);
    box-shadow: 0 12px 30px rgb(31 52 75 / 7%);
}

.activation-progress__heading {
    margin-bottom: var(--brand-space-6);
}

.activation-progress__eyebrow {
    display: block;
    margin-bottom: var(--brand-space-2);
    color: var(--activation-accent);
    font-size: var(--brand-text-xs);
    font-weight: 700;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.activation-progress__heading h2 {
    max-width: 28ch;
    color: var(--brand-text);
    font-size: clamp(var(--brand-text-xl), 4vw, var(--brand-text-2xl));
    line-height: 1.25;
}

.activation-progress__steps {
    display: grid;
    gap: var(--brand-space-3);
    margin: 0;
    padding: 0;
    list-style: none;
}

.activation-progress__step {
    display: flex;
    min-height: 48px;
    align-items: center;
    gap: var(--brand-space-4);
    padding: var(--brand-space-3) var(--brand-space-4);
    color: var(--brand-text-muted);
    background: var(--brand-surface-muted);
    border: 1px solid var(--brand-border);
    border-radius: var(--brand-radius-sm);
    transition: color 160ms ease, background-color 160ms ease, border-color 160ms ease;
}

.activation-progress__step-marker {
    position: relative;
    display: grid;
    width: 22px;
    height: 22px;
    flex: 0 0 22px;
    place-items: center;
    border: 1.5px solid var(--brand-border);
    border-radius: 50%;
}

.activation-progress__step-marker::after {
    width: 6px;
    height: 6px;
    content: "";
    background: currentColor;
    border-radius: 50%;
    opacity: 0.45;
}

.activation-progress__step-label {
    font-size: var(--brand-text-md);
    font-weight: 600;
}

.activation-progress__step[data-state="active"] {
    color: var(--brand-text);
    background: color-mix(in srgb, var(--activation-accent) 6%, var(--brand-surface));
    border-color: color-mix(in srgb, var(--activation-accent) 34%, var(--brand-border));
}

.activation-progress__step[data-state="active"] .activation-progress__step-marker {
    color: var(--activation-accent);
    border: 2px solid currentColor;
}

.activation-progress__step[data-state="active"] .activation-progress__step-marker::after {
    width: 8px;
    height: 8px;
    opacity: 1;
}

.activation-progress__step[data-state="complete"],
.activation-progress__step[data-state="reused"] {
    color: var(--brand-text);
}

.activation-progress__step[data-state="complete"] .activation-progress__step-marker,
.activation-progress__step[data-state="reused"] .activation-progress__step-marker {
    color: var(--activation-complete);
    background: color-mix(in srgb, var(--activation-complete) 10%, var(--brand-surface));
    border-color: var(--activation-complete);
}

.activation-progress__step[data-state="complete"] .activation-progress__step-marker::after,
.activation-progress__step[data-state="reused"] .activation-progress__step-marker::after {
    width: 9px;
    height: 5px;
    margin-top: -2px;
    background: transparent;
    border: solid currentColor;
    border-width: 0 0 2px 2px;
    border-radius: 0;
    opacity: 1;
    transform: rotate(-45deg);
}

.activation-progress__step[data-state="reused"] .activation-progress__step-label::after {
    margin-left: var(--brand-space-2);
    color: var(--brand-text-subtle);
    content: "Already ready";
    font-size: var(--brand-text-xs);
    font-weight: 500;
}

.activation-progress__message {
    min-height: 1.5em;
    margin: var(--brand-space-4) 0 0;
    color: var(--brand-text-muted);
    font-size: var(--brand-text-sm);
}

.activation-progress__actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--brand-space-3);
    margin-top: var(--brand-space-4);
}

.activation-progress__retry,
.activation-progress__continue {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    padding: 0 var(--brand-space-5);
    border: 1px solid var(--activation-accent);
    border-radius: var(--brand-radius-sm);
    font: inherit;
    font-size: var(--brand-text-md);
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
}

.activation-progress__retry {
    color: var(--activation-accent);
    background: var(--brand-surface);
}

.activation-progress__continue {
    color: var(--brand-surface);
    background: var(--activation-accent);
}

.activation-progress__retry:hover,
.activation-progress__continue:hover {
    filter: brightness(0.94);
}

.activation-progress__retry:focus-visible,
.activation-progress__continue:focus-visible {
    outline: 3px solid color-mix(in srgb, var(--activation-accent) 36%, transparent);
    outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
    .activation-progress__step {
        transition: none;
    }
}

@media (max-width: 480px) {
    .activation-progress {
        border-radius: var(--brand-radius-sm);
    }

    .activation-progress__step {
        padding-inline: var(--brand-space-3);
    }
}
