/* ── Home: setup checklist (SetupChecklist.razor) ──
   Sits above the Home tiles and uses the same surface, border and violet as them, so it reads as part of
   the page rather than a pop-up. The one strong accent is the progress bar. */

.setup-card {
    background-color: var(--focus-surface);
    border: 1px solid var(--focus-border);
    border-radius: 14px;
    padding: 1.25rem 1.25rem 0.5rem;
    margin-bottom: 1.5rem;
}

.setup-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.setup-title {
    font-size: 1.15rem;
    font-weight: 700;
    margin: 0;
    color: var(--focus-ink);
}

.setup-sub {
    margin: 0.25rem 0 0;
    color: var(--focus-muted);
    font-size: 0.92rem;
    max-width: 60ch;
}

.setup-hide {
    border: 0;
    background: transparent;
    color: var(--focus-faint);
    border-radius: 8px;
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
}

    .setup-hide:hover {
        background-color: var(--focus-background);
        color: var(--focus-ink);
    }

.setup-progress {
    height: 6px;
    border-radius: 999px;
    background-color: var(--focus-brand-tint);
    margin: 1rem 0 0.25rem;
    overflow: hidden;
}

.setup-progress-fill {
    height: 100%;
    border-radius: 999px;
    background-color: var(--focus-brand);
    transition: width 0.4s ease;
}

/* Shown once everything needed is done */
.setup-live {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 1rem;
    padding: 0.85rem 1rem;
    border-radius: 12px;
    background-color: var(--focus-brand-tint);
}

.setup-live-text {
    min-width: 0;
}

.setup-link {
    color: var(--focus-brand-dark);
    font-weight: 600;
    word-break: break-all;
}

/* Steps */
.setup-steps {
    list-style: none;
    margin: 0.5rem 0 0;
    padding: 0;
}

.setup-step {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    padding: 0.85rem 0;
}

    .setup-step + .setup-step {
        border-top: 1px solid var(--focus-border);
    }

.setup-mark {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--focus-brand);
    border: 2px solid var(--focus-brand);
}

    .setup-mark .rzi {
        font-size: 18px;
    }

.setup-step.is-done .setup-mark {
    background-color: var(--focus-green);
    border-color: var(--focus-green);
    color: #FFFFFF;
}

.setup-step-body {
    flex: 1;
    min-width: 0;
}

.setup-step-title {
    font-weight: 700;
    color: var(--focus-ink);
}

.setup-step.is-done .setup-step-title {
    color: var(--focus-muted);
}

.setup-step-detail {
    color: var(--focus-faint);
    font-size: 0.85rem;
    margin-top: 0.1rem;
    overflow-wrap: anywhere;
}

.setup-optional {
    font-weight: 600;
    font-size: 0.75rem;
    color: var(--focus-faint);
    background-color: var(--focus-background);
    border: 1px solid var(--focus-border);
    border-radius: 999px;
    padding: 0.05rem 0.5rem;
    margin-left: 0.4rem;
    vertical-align: middle;
}

.setup-action {
    flex-shrink: 0;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    color: #FFFFFF;
    background-color: var(--focus-brand);
    border-radius: 10px;
    padding: 0.45rem 0.9rem;
    white-space: nowrap;
}

    .setup-action:hover {
        background-color: var(--focus-brand-dark);
    }

    .setup-action.is-quiet {
        color: var(--focus-brand);
        background-color: transparent;
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }

        .setup-action.is-quiet:hover {
            background-color: var(--focus-brand-tint);
        }

.setup-hide:focus-visible,
.setup-action:focus-visible,
.setup-link:focus-visible {
    outline: 2px solid var(--focus-brand);
    outline-offset: 2px;
}

.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

@media (max-width: 560px) {
    .setup-step {
        flex-wrap: wrap;
    }

    .setup-step-body {
        flex-basis: calc(100% - 44px);
    }

    .setup-action {
        margin-left: 44px;
    }
}

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