:root {
    --ecl-recent-green: var(--ecl-green, #29a55b);
    --ecl-recent-green-dark: var(--ecl-green-dark, #15713b);
    --ecl-recent-line: var(--ecl-line, #e0e7e5);
    --ecl-recent-muted: var(--ecl-muted, #68747d);
}

.ecl-recent-section {
    position: relative;
    padding: 88px 0 94px;
    border-bottom: 1px solid var(--ecl-recent-line);
    background:
        radial-gradient(circle at 8% 0%, rgba(41, 165, 91, 0.11), transparent 31%),
        linear-gradient(180deg, #f7fbf8 0%, #ffffff 100%);
}

.ecl-recent-section[hidden] {
    display: none;
}

.ecl-recent-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 30px;
}

.ecl-recent-heading-copy {
    max-width: 700px;
}

.ecl-recent-heading h2 {
    margin: 0;
    color: #151b1f;
    font-size: clamp(32px, 4vw, 46px);
    line-height: 1.2;
    letter-spacing: -0.045em;
}

.ecl-recent-heading-copy > p:last-child {
    margin: 16px 0 0;
    color: var(--ecl-recent-muted);
    font-size: 15px;
    line-height: 1.7;
}

.ecl-recent-clear {
    min-height: 44px;
    padding: 0 17px;
    border: 1px solid #d5e0da;
    border-radius: 12px;
    color: #59665f;
    background: rgba(255, 255, 255, 0.9);
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    transition:
        color 0.2s ease,
        border-color 0.2s ease,
        background-color 0.2s ease,
        transform 0.2s ease;
}

.ecl-recent-clear:hover {
    border-color: #aebfb5;
    color: #26332c;
    background: #ffffff;
    transform: translateY(-1px);
}

.ecl-recent-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    margin-top: 34px;
}

.ecl-recent-card {
    border-color: rgba(41, 165, 91, 0.31);
    box-shadow: 0 16px 38px rgba(25, 66, 43, 0.08);
}

.ecl-recent-card .ecl-card-body {
    position: relative;
}

.ecl-recent-progress {
    margin: -4px 0 20px;
    padding-bottom: 18px;
    border-bottom: 1px solid #edf2ef;
}

.ecl-recent-progress-copy {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 5px 12px;
}

.ecl-recent-progress-copy span {
    color: #748079;
    font-size: 11px;
    font-weight: 800;
}

.ecl-recent-progress-copy strong {
    color: var(--ecl-recent-green-dark);
    font-size: 13px;
}

.ecl-recent-progress-copy time {
    grid-column: 1 / -1;
    color: #9aa49f;
    font-size: 10px;
}

.ecl-recent-progress-bar {
    height: 5px;
    margin-top: 12px;
    border-radius: 999px;
    display: block;
    overflow: hidden;
    background: #e8efeb;
}

.ecl-recent-progress-fill {
    height: 100%;
    border-radius: inherit;
    display: block;
    background: linear-gradient(
        90deg,
        var(--ecl-recent-green-dark),
        var(--ecl-recent-green)
    );
}

.ecl-recent-controls {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 9px;
    margin-top: 12px;
}

.ecl-recent-start,
.ecl-recent-remove {
    min-height: 39px;
    padding: 0 13px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 800;
}

.ecl-recent-start {
    border: 1px solid #dce5e0;
    color: #46524b;
    background: #f8faf9;
}

.ecl-recent-start:hover {
    border-color: rgba(41, 165, 91, 0.45);
    color: var(--ecl-recent-green-dark);
    background: #ffffff;
}

.ecl-recent-remove {
    border: 0;
    color: #828d87;
    background: transparent;
    cursor: pointer;
}

.ecl-recent-remove:hover {
    color: #b14444;
    background: #fff4f4;
}

.ecl-resume-marker {
    position: absolute;
    z-index: 3;
    left: 16px;
    top: 16px;
    min-height: 31px;
    padding: 0 11px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    color: #ffffff;
    background: rgba(21, 113, 59, 0.9);
    box-shadow: 0 8px 20px rgba(13, 65, 34, 0.2);
    font-size: 10px;
    font-weight: 900;
    backdrop-filter: blur(8px);
}

@media (max-width: 1040px) {
    .ecl-recent-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .ecl-recent-section {
        padding: 70px 0 76px;
    }

    .ecl-recent-heading {
        display: grid;
        align-items: stretch;
        gap: 22px;
    }

    .ecl-recent-heading h2 {
        font-size: 34px;
    }

    .ecl-recent-clear {
        width: 100%;
    }

    .ecl-recent-grid {
        grid-template-columns: 1fr;
        gap: 17px;
        margin-top: 27px;
    }
}
