.p2-course-progress-card {
    --p2-course-progress: 0%;
    margin: 18px 0;
    padding: 20px;
    border: 1px solid #cfe0ea;
    border-radius: 20px;
    background:
        radial-gradient(circle at 100% 0, rgba(246, 195, 68, .18), transparent 34%),
        linear-gradient(135deg, #0c3342, #12564f);
    box-shadow: 0 12px 30px rgba(8, 45, 58, .18);
    color: #fff;
}

.p2-course-progress-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
}

.p2-course-progress-eyebrow {
    color: #bfd5d7;
    font-size: .76rem;
    font-weight: 800;
    letter-spacing: .06em;
}

.p2-course-progress-title {
    margin: 2px 0 0;
    font-size: 1.18rem;
    font-weight: 800;
}

.p2-course-progress-motto {
    margin: .28rem 0 0;
    color: rgba(255, 255, 255, .76);
    font-size: .82rem;
    line-height: 1.45;
}

.p2-course-progress-percent {
    color: #ffd15c;
    font-size: 2rem;
    line-height: 1;
}

.p2-course-progress-track {
    position: relative;
    height: 15px;
    margin: 35px 24px 14px 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, .2);
}

.p2-course-progress-fill {
    position: absolute;
    inset: 0 auto 0 0;
    width: var(--p2-course-progress);
    border-radius: inherit;
    background: linear-gradient(90deg, #76bdff, #ffd15c);
    box-shadow: 0 0 16px rgba(255, 209, 92, .35);
    transition: width 950ms cubic-bezier(.2, .8, .3, 1);
}

.p2-course-progress-runner {
    position: absolute;
    left: var(--p2-course-progress);
    bottom: 2px;
    display: grid;
    width: 42px;
    height: 42px;
    border: 3px solid #fff;
    border-radius: 50%;
    place-items: center;
    background: #eaf4ff;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .24);
    font-size: 1.35rem;
    transform: translateX(-50%);
    transition: left 950ms cubic-bezier(.2, .8, .3, 1);
}

.p2-course-progress-goal {
    position: absolute;
    right: -31px;
    bottom: -7px;
    font-size: 1.55rem;
}

.p2-course-progress-card.is-updating .p2-course-progress-runner {
    animation: p2-course-run 800ms ease;
}

.p2-course-progress-summary {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-top: 14px;
}

.p2-course-progress-summary > div {
    padding: 9px;
    border: 1px solid rgba(255, 255, 255, .13);
    border-radius: 12px;
    background: rgba(255, 255, 255, .08);
    text-align: center;
}

.p2-course-progress-summary span,
.p2-course-progress-summary strong {
    display: block;
}

.p2-course-progress-summary span {
    color: #bed1d4;
    font-size: .7rem;
}

.p2-course-progress-summary strong {
    margin-top: 2px;
    color: #fff;
    font-size: .9rem;
}

.p2-course-subject-list {
    display: grid;
    gap: 9px;
    margin-top: 16px;
}

.p2-course-subject-label {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 4px;
    color: #eaf4f4;
    font-size: .76rem;
}

.p2-course-subject-label span {
    color: #bfd1d3;
    white-space: nowrap;
}

.p2-course-subject-track {
    height: 6px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(255, 255, 255, .15);
}

.p2-course-subject-track span {
    display: block;
    height: 100%;
    border-radius: inherit;
    transition: width 850ms ease;
}

.p2-course-progress-note,
.p2-course-empty {
    margin: 14px 0 0;
    color: #d1e0e1;
    font-size: .8rem;
    text-align: center;
}

@keyframes p2-course-run {
    0%, 100% { transform: translateX(-50%) translateY(0) rotate(0); }
    30% { transform: translateX(-50%) translateY(-13px) rotate(-8deg); }
    60% { transform: translateX(-50%) translateY(-5px) rotate(8deg); }
}

@media (max-width: 575.98px) {
    .p2-course-progress-card {
        padding: 16px;
    }

    .p2-course-progress-summary {
        gap: 5px;
    }

    .p2-course-progress-summary > div {
        padding-inline: 5px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .p2-course-progress-fill,
    .p2-course-progress-runner,
    .p2-course-subject-track span {
        animation: none !important;
        transition: none !important;
    }
}

@media print {
    .p2-course-progress-card {
        display: none !important;
    }
}
