/* ---------------------------------------------------------------------------
   Daily7 perfect-week strip: seven dots, one per day of the user's local week.

   Shared by the Daily7 page and the dashboard engagement card, so it lives
   here rather than in css/daily7/, which the dashboard does not load.

   All colors come from core-design-system.css tokens, which flip under
   html[data-theme="dark"], so nothing here is hardcoded.
   --------------------------------------------------------------------------- */
.d7-week {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-10, 10px);
    margin: var(--space-12, 12px) 0 0;
}

.d7-week-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--color-text-secondary);
    white-space: nowrap;
}

.d7-week.is-perfect .d7-week-label {
    color: var(--color-success);
}

.d7-week-dots {
    display: flex;
    gap: 6px;
}

.d7-week-day {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--color-surface-raised);
    border: 1px solid var(--color-border);
    transition: background-color 0.18s ease, border-color 0.18s ease;
}

/* Solved every challenge that day. */
.d7-week-day.is-complete {
    background: var(--color-success);
    border-color: var(--color-success);
}

/* Played, but not all seven. */
.d7-week-day.is-partial {
    background: var(--color-warning-bg);
    border-color: var(--color-warning);
}

/* Not yet reachable: reads as absent rather than missed. */
.d7-week-day.is-future {
    background: transparent;
    border-style: dashed;
    border-color: var(--color-border-subtle);
}

@media (max-width: 576px) {
    .d7-week {
        gap: var(--space-8, 8px);
    }

    .d7-week-day {
        width: 10px;
        height: 10px;
    }
}
