.ek-progress__header,
.ek-progress__section-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.ek-progress__header h1,
.ek-progress__section-head h2 {
    margin: .25rem 0 .5rem;
}

.ek-progress__header p {
    margin: 0;
    opacity: .72;
}

.ek-progress__refresh {
    padding: .7rem 1rem;
    border: 1px solid rgba(127, 127, 127, .2);
    border-radius: 14px;
    background: transparent;
    color: inherit;
    font-weight: 800;
}

.ek-progress__notice {
    margin-top: 1rem;
    padding: .9rem 1rem;
    border-radius: 16px;
    background: rgba(40, 167, 110, .1);
}

.ek-progress__notice.is-error {
    background: rgba(201, 74, 74, .12);
}

.ek-progress__summary {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: .8rem;
    margin-top: 1.25rem;
}

.ek-progress__summary article,
.ek-progress__subject,
.ek-progress__history-item {
    padding: 1rem;
    border: 1px solid rgba(127, 127, 127, .16);
    border-radius: 20px;
    background: rgba(255, 255, 255, .035);
}

.ek-progress__summary article {
    display: grid;
    gap: .45rem;
}

.ek-progress__summary strong {
    font-size: 1.55rem;
}

.ek-progress__summary small,
.ek-progress__history-item small {
    opacity: .68;
}

.ek-progress__section {
    margin-top: 1.5rem;
}

.ek-progress__subjects {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .8rem;
    margin-top: 1rem;
}

.ek-progress__subject > div:first-child,
.ek-progress__subject-meta {
    display: flex;
    justify-content: space-between;
    gap: .8rem;
}

.ek-progress__subject > div:first-child span {
    font-size: .78rem;
    opacity: .72;
}

.ek-progress__bar {
    height: 8px;
    margin: .8rem 0;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(127, 127, 127, .14);
}

.ek-progress__bar span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: currentColor;
}

.ek-progress__subject-meta {
    font-size: .78rem;
    opacity: .72;
}

.ek-progress__history {
    display: grid;
    gap: .75rem;
    margin-top: 1rem;
}

.ek-progress__history-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.ek-progress__history-item > div:first-child {
    display: grid;
    gap: .35rem;
}

.ek-progress__history-item > div:first-child > span {
    font-size: .76rem;
    opacity: .7;
}

.ek-progress__history-score {
    display: grid;
    min-width: max-content;
    text-align: left;
}

.ek-progress__empty {
    padding: 1.5rem;
    text-align: center;
    opacity: .7;
}

@media (max-width: 860px) {
    .ek-progress__summary,
    .ek-progress__subjects {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 560px) {
    .ek-progress__header,
    .ek-progress__history-item {
        align-items: stretch;
        flex-direction: column;
    }

    .ek-progress__summary,
    .ek-progress__subjects {
        grid-template-columns: 1fr;
    }

    .ek-progress__history-score {
        text-align: right;
    }
}
