:root {
    --ect-ink: oklch(22% 0.024 252);
    --ect-muted: oklch(49% 0.025 252);
    --ect-soft: oklch(96% 0.006 252);
    --ect-surface: oklch(99% 0.004 252);
    --ect-panel: oklch(97.5% 0.008 252);
    --ect-border: oklch(88% 0.012 252);
    --ect-blue: oklch(42% 0.12 255);
    --ect-blue-dark: oklch(31% 0.1 255);
    --ect-blue-soft: oklch(94% 0.03 252);
    --ect-green: oklch(55% 0.13 158);
    --ect-green-dark: oklch(34% 0.09 158);
    --ect-green-soft: oklch(94% 0.045 158);
    --ect-amber-soft: oklch(95% 0.04 83);
    --ect-shadow: 0 16px 38px oklch(30% 0.03 252 / 0.1);
    --ect-shadow-soft: 0 8px 22px oklch(30% 0.03 252 / 0.08);
}

body.ec-has-custom-course-cta .pmpro_content_message {
    display: none;
}

.ec-classroom-shell,
.ec-my-courses-dashboard,
.ec-course-progress-container,
.ec-course-lessons-container,
.ec-course-card {
    color: var(--ect-ink);
    font-family: inherit;
}

.ec-classroom-shell {
    background: linear-gradient(180deg, var(--ect-surface) 0%, var(--ect-panel) 100%);
    border: 1px solid var(--ect-border);
    border-radius: 8px;
    box-shadow: var(--ect-shadow);
    margin: 28px 0 34px;
    overflow: clip;
}

.ec-classroom-header {
    align-items: center;
    display: flex;
    gap: 18px;
    justify-content: space-between;
    padding: 24px 26px 20px;
}

.ec-classroom-title-block {
    min-width: 0;
}

.ec-classroom-kicker {
    color: var(--ect-blue);
    display: inline-flex;
    font-size: 12px;
    font-weight: 760;
    letter-spacing: 0;
    line-height: 1.2;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.ec-classroom-title,
.ec-my-courses-header h2 {
    color: var(--ect-ink);
    font-size: 24px;
    font-weight: 780;
    letter-spacing: 0;
    line-height: 1.18;
    margin: 0 !important;
}

.ec-classroom-progress-copy {
    color: var(--ect-muted);
    font-size: 14px;
    line-height: 1.45;
    margin: 8px 0 0;
}

.ec-classroom-progress-badge {
    align-items: center;
    background: var(--ect-blue-soft);
    border: 1px solid oklch(82% 0.04 252);
    border-radius: 8px;
    display: flex;
    flex: 0 0 auto;
    flex-direction: column;
    justify-content: center;
    min-height: 76px;
    min-width: 96px;
    padding: 12px 14px;
}

.ec-classroom-percent {
    color: var(--ect-blue-dark);
    font-size: 24px;
    font-weight: 800;
    line-height: 1;
}

.ec-classroom-percent-label {
    color: var(--ect-blue-dark);
    font-size: 12px;
    font-weight: 650;
    line-height: 1.2;
    margin-top: 5px;
}

.ec-classroom-progress-track,
.ec-course-progress-bar-bg,
.ec-course-card-progress-bar-bg {
    background: oklch(91% 0.012 252);
    overflow: hidden;
}

.ec-classroom-progress-track {
    height: 8px;
}

.ec-classroom-progress-fill,
.ec-course-progress-bar-fill,
.ec-course-card-progress-bar-fill {
    background: linear-gradient(90deg, var(--ect-blue-dark), var(--ect-blue));
    height: 100%;
    transition: width 0.42s cubic-bezier(0.22, 1, 0.36, 1);
}

.ec-classroom-grid {
    border-top: 1px solid var(--ect-border);
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 36%);
}

.ec-classroom-main {
    padding: 26px;
}

.ec-current-lesson-meta {
    align-items: center;
    color: var(--ect-muted);
    display: flex;
    flex-wrap: wrap;
    font-size: 13px;
    font-weight: 650;
    gap: 10px;
    line-height: 1.3;
}

.ec-current-lesson-state {
    background: var(--ect-amber-soft);
    border: 1px solid oklch(85% 0.035 83);
    border-radius: 999px;
    color: oklch(37% 0.06 83);
    padding: 4px 9px;
}

.ec-current-lesson-state.completed {
    background: var(--ect-green-soft);
    border-color: oklch(80% 0.06 158);
    color: var(--ect-green-dark);
}

.ec-current-lesson-title {
    color: var(--ect-ink);
    font-size: 25px;
    font-weight: 780;
    letter-spacing: 0;
    line-height: 1.18;
    margin: 12px 0 0 !important;
}

.ec-current-lesson-summary {
    color: var(--ect-muted);
    font-size: 15px;
    line-height: 1.58;
    margin: 12px 0 0;
    max-width: 68ch;
}

.ec-classroom-actions {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 22px;
}

.ec-tracker-button-container {
    margin: 0;
}

.ec-tracker-btn {
    align-items: center;
    background: var(--ect-blue);
    border: 1px solid var(--ect-blue-dark);
    border-radius: 7px;
    box-shadow: 0 8px 18px oklch(42% 0.12 255 / 0.18);
    color: var(--ect-surface);
    cursor: pointer;
    display: inline-flex;
    font-size: 15px;
    font-weight: 720;
    justify-content: center;
    line-height: 1;
    min-height: 42px;
    padding: 12px 18px;
    transition: background-color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.ec-tracker-btn:hover {
    background: var(--ect-blue-dark);
    box-shadow: 0 10px 24px oklch(42% 0.12 255 / 0.22);
    color: var(--ect-surface);
    transform: translateY(-1px);
}

.ec-tracker-btn:disabled {
    cursor: progress;
    opacity: 0.7;
}

.ec-tracker-btn.completed {
    background: var(--ect-green-soft);
    border-color: oklch(78% 0.065 158);
    box-shadow: none;
    color: var(--ect-green-dark);
}

.ec-tracker-btn.completed:hover {
    background: oklch(91% 0.06 158);
    color: var(--ect-green-dark);
}

.ec-tracker-icon {
    border: 2px solid currentColor;
    border-radius: 999px;
    display: inline-block;
    flex: 0 0 auto;
    height: 17px;
    margin-right: 10px;
    position: relative;
    width: 17px;
}

.ec-tracker-btn.completed .ec-tracker-icon {
    background: var(--ect-green);
    border-color: var(--ect-green);
}

.ec-tracker-btn.completed .ec-tracker-icon::after,
.ec-course-lesson-item.completed .ec-lesson-checkbox::after,
.ec-classroom-lesson.completed .ec-classroom-lesson-status::after {
    border: solid var(--ect-surface);
    border-width: 0 2px 2px 0;
    content: "";
    height: 8px;
    left: 5px;
    position: absolute;
    top: 2px;
    transform: rotate(45deg);
    width: 4px;
}

.ec-lesson-nav {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.ec-lesson-nav-link,
.ec-course-card-link {
    align-items: center;
    border: 1px solid var(--ect-border);
    border-radius: 7px;
    color: var(--ect-blue-dark);
    display: inline-flex;
    font-size: 14px;
    font-weight: 720;
    justify-content: center;
    line-height: 1;
    min-height: 40px;
    padding: 11px 14px;
    text-decoration: none;
    transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.ec-lesson-nav-link:hover,
.ec-course-card-link:hover {
    background: var(--ect-blue-soft);
    border-color: oklch(79% 0.045 252);
    color: var(--ect-blue-dark);
    text-decoration: none;
}

.ec-lesson-nav-link.primary {
    background: var(--ect-ink);
    border-color: var(--ect-ink);
    color: var(--ect-surface);
}

.ec-lesson-nav-link.primary:hover {
    background: var(--ect-blue-dark);
    border-color: var(--ect-blue-dark);
    color: var(--ect-surface);
}

.ec-classroom-sidebar {
    background: oklch(97% 0.008 252);
    border-left: 1px solid var(--ect-border);
    min-width: 0;
}

.ec-classroom-sidebar-header {
    align-items: center;
    color: var(--ect-muted);
    display: flex;
    font-size: 13px;
    font-weight: 720;
    justify-content: space-between;
    line-height: 1.2;
    padding: 18px 18px 12px;
}

.ec-classroom-lessons,
.ec-course-lessons-list {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.ec-classroom-lesson {
    margin: 0 !important;
}

.ec-classroom-lesson-link {
    align-items: flex-start;
    border-top: 1px solid oklch(92% 0.01 252);
    color: var(--ect-ink);
    display: flex;
    gap: 11px;
    padding: 13px 18px;
    text-decoration: none;
    transition: background-color 0.18s ease;
}

.ec-classroom-lesson-link:hover {
    background: var(--ect-blue-soft);
    color: var(--ect-ink);
    text-decoration: none;
}

.ec-classroom-lesson.current .ec-classroom-lesson-link {
    background: var(--ect-surface);
}

.ec-classroom-lesson-status,
.ec-lesson-checkbox {
    border: 2px solid oklch(75% 0.016 252);
    border-radius: 999px;
    display: inline-block;
    flex: 0 0 auto;
    height: 18px;
    position: relative;
    width: 18px;
}

.ec-classroom-lesson.current .ec-classroom-lesson-status {
    border-color: var(--ect-blue);
    box-shadow: 0 0 0 4px var(--ect-blue-soft);
}

.ec-classroom-lesson.completed .ec-classroom-lesson-status,
.ec-course-lesson-item.completed .ec-lesson-checkbox {
    background: var(--ect-green);
    border-color: var(--ect-green);
}

.ec-classroom-lesson-copy {
    display: grid;
    gap: 3px;
    min-width: 0;
}

.ec-classroom-lesson-number,
.ec-lesson-index {
    color: var(--ect-muted);
    font-size: 12px;
    font-weight: 680;
    line-height: 1.2;
}

.ec-classroom-lesson-title,
.ec-lesson-link {
    color: var(--ect-ink);
    font-size: 14px;
    font-weight: 650;
    line-height: 1.35;
    text-decoration: none;
}

.ec-classroom-lesson.current .ec-classroom-lesson-title,
.ec-course-lesson-item.current .ec-lesson-link {
    color: var(--ect-blue-dark);
    font-weight: 780;
}

.ec-course-progress-container,
.ec-course-lessons-container {
    background: var(--ect-surface);
    border: 1px solid var(--ect-border);
    border-radius: 8px;
    box-shadow: var(--ect-shadow-soft);
    margin: 24px 0;
    padding: 18px;
}

.ec-course-progress-header {
    align-items: center;
    display: flex;
    gap: 12px;
    justify-content: space-between;
    margin-bottom: 10px;
}

.ec-course-progress-title {
    color: var(--ect-ink);
    font-size: 15px;
    font-weight: 760;
}

.ec-course-progress-stats {
    color: var(--ect-muted);
    font-size: 13px;
    font-weight: 620;
}

.ec-course-progress-bar-bg {
    border-radius: 999px;
    height: 8px;
}

.ec-course-progress-bar-fill {
    border-radius: 999px;
}

.ec-course-lesson-item {
    align-items: center;
    border-bottom: 1px solid oklch(92% 0.01 252);
    display: flex;
    font-size: 15px;
    gap: 10px;
    padding: 12px 0;
}

.ec-course-lesson-item:last-child {
    border-bottom: none;
}

.ec-lesson-link:hover {
    color: var(--ect-blue-dark);
    text-decoration: underline;
}

.ec-my-courses-dashboard {
    margin: 28px 0 34px;
}

.ec-my-courses-header {
    margin-bottom: 16px;
}

.ec-my-courses-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
}

.ec-course-card {
    background: var(--ect-surface);
    border: 1px solid var(--ect-border);
    border-radius: 8px;
    box-shadow: var(--ect-shadow-soft);
    display: flex;
    flex-direction: column;
    min-height: 190px;
    padding: 18px;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.ec-course-card:hover {
    border-color: oklch(79% 0.045 252);
    box-shadow: var(--ect-shadow);
    transform: translateY(-2px);
}

.ec-course-card-topline,
.ec-course-card-footer {
    align-items: center;
    display: flex;
    justify-content: space-between;
}

.ec-course-card-topline {
    color: var(--ect-muted);
    font-size: 12px;
    font-weight: 720;
    line-height: 1.2;
    margin-bottom: 18px;
}

.ec-course-card-title {
    font-size: 18px;
    font-weight: 780;
    line-height: 1.25;
    margin: 0 0 8px !important;
}

.ec-course-card-title a {
    color: var(--ect-ink);
    text-decoration: none;
}

.ec-course-card-title a:hover {
    color: var(--ect-blue-dark);
}

.ec-course-card-meta {
    color: var(--ect-muted);
    font-size: 13px;
    line-height: 1.45;
    margin-bottom: 16px;
}

.ec-course-card-progress-bar-bg {
    border-radius: 999px;
    height: 7px;
    margin-bottom: 16px;
    margin-top: auto;
}

.ec-course-card-progress-bar-fill {
    border-radius: 999px;
}

.ec-course-card-percentage {
    color: var(--ect-ink);
    font-size: 14px;
    font-weight: 780;
}

@media (max-width: 860px) {
    .ec-classroom-header,
    .ec-classroom-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .ec-classroom-progress-badge {
        align-items: flex-start;
        min-height: auto;
        width: 100%;
    }

    .ec-classroom-grid {
        grid-template-columns: 1fr;
    }

    .ec-classroom-sidebar {
        border-left: none;
        border-top: 1px solid var(--ect-border);
    }

    .ec-classroom-main,
    .ec-classroom-header {
        padding-left: 18px;
        padding-right: 18px;
    }

    .ec-current-lesson-title {
        font-size: 22px;
    }

    .ec-tracker-btn,
    .ec-lesson-nav,
    .ec-lesson-nav-link {
        width: 100%;
    }

    .ec-lesson-nav-link {
        justify-content: center;
    }
}
