.xmp-legacy-shell {
    max-width: 1120px;
    margin: 0 auto;
    padding: 38px 18px;
    color: #24201e;
}

.xmp-legacy-hero,
.xmp-legacy-panel,
.xmp-legacy-section,
.xmp-legacy-card {
    border: 1px solid rgba(36, 32, 30, 0.1);
    border-radius: 14px;
    background: #fffaf2;
    box-shadow: 0 16px 45px rgba(36, 32, 30, 0.06);
}

.xmp-legacy-hero,
.xmp-legacy-panel {
    padding: 32px;
}

.xmp-legacy-hero {
    margin-bottom: 24px;
}

.xmp-legacy-eyebrow {
    margin: 0 0 10px;
    color: #b08a55;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.xmp-legacy-hero h1,
.xmp-legacy-panel h2,
.xmp-legacy-section h2,
.xmp-legacy-card h2 {
    margin: 0;
    color: #231f1d;
    line-height: 1.25;
}

.xmp-legacy-hero h1 {
    font-size: clamp(30px, 4vw, 52px);
}

.xmp-legacy-hero p,
.xmp-legacy-panel p,
.xmp-legacy-card p,
.xmp-legacy-section-head p {
    color: #71665e;
    line-height: 1.8;
}

.xmp-legacy-hero p,
.xmp-legacy-panel p {
    max-width: 760px;
    margin: 14px 0 0;
    font-size: 17px;
}

.xmp-legacy-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 18px 0 0;
}

.xmp-legacy-meta span,
.xmp-legacy-lesson-duration {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    border: 1px solid rgba(74, 111, 91, 0.22);
    border-radius: 999px;
    background: rgba(74, 111, 91, 0.08);
    padding: 0 11px;
    color: #4f755f;
    font-size: 14px;
    font-weight: 800;
}

.xmp-legacy-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    margin-top: 22px;
    border-radius: 10px;
    background: #1f2a24;
    padding: 0 18px;
    color: #fff;
    font-weight: 800;
    text-decoration: none;
}

.xmp-legacy-button:hover {
    background: #314238;
    color: #fff;
}

.xmp-legacy-button.is-secondary {
    border: 1px solid rgba(31, 42, 36, 0.18);
    background: #fff;
    color: #1f2a24;
}

.xmp-legacy-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.xmp-legacy-section-list {
    display: grid;
    gap: 18px;
}

.xmp-legacy-section {
    overflow: hidden;
}

.xmp-legacy-section-head {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr);
    gap: 18px;
    padding: 24px;
}

.xmp-legacy-section-head > span,
.xmp-legacy-lesson-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 999px;
    background: rgba(176, 138, 85, 0.12);
    color: #a17745;
    font-weight: 900;
}

.xmp-legacy-section-head h2 {
    font-size: 25px;
}

.xmp-legacy-section-head p {
    margin: 8px 0 0;
}

.xmp-legacy-lessons {
    border-top: 1px solid rgba(36, 32, 30, 0.08);
}

.xmp-legacy-lesson-row {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) auto;
    align-items: center;
    gap: 16px;
    padding: 16px 24px;
    border-bottom: 1px solid rgba(36, 32, 30, 0.08);
    color: #24201e;
    text-decoration: none;
}

.xmp-legacy-lesson-row:last-child {
    border-bottom: 0;
}

.xmp-legacy-lesson-row:hover {
    background: rgba(176, 138, 85, 0.06);
    color: #24201e;
}

.xmp-legacy-lesson-title {
    min-width: 0;
    font-size: 17px;
    font-weight: 800;
    line-height: 1.55;
}

.xmp-legacy-empty,
.xmp-legacy-video-note {
    border: 1px solid rgba(176, 138, 85, 0.22);
    border-radius: 12px;
    background: rgba(176, 138, 85, 0.08);
    padding: 16px;
    color: #71665e;
}

.xmp-legacy-section .xmp-legacy-empty {
    margin: 0 24px 24px;
}

.xmp-legacy-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.xmp-legacy-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-height: 210px;
    padding: 22px;
}

.xmp-legacy-card h2 {
    font-size: 22px;
}

.xmp-legacy-card h2 a,
.xmp-legacy-link {
    color: #24201e;
    text-decoration: none;
}

.xmp-legacy-link {
    margin-top: auto;
    color: #4f755f;
    font-weight: 900;
}

@media (max-width: 860px) {
    .xmp-legacy-shell {
        padding: 26px 16px;
    }

    .xmp-legacy-hero,
    .xmp-legacy-panel {
        padding: 24px;
    }

    .xmp-legacy-grid {
        grid-template-columns: 1fr;
    }

    .xmp-legacy-section-head {
        grid-template-columns: 42px minmax(0, 1fr);
        gap: 14px;
        padding: 20px;
    }

    .xmp-legacy-section-head > span,
    .xmp-legacy-lesson-num {
        width: 38px;
        height: 38px;
    }

    .xmp-legacy-lesson-row {
        grid-template-columns: 38px minmax(0, 1fr);
        gap: 13px;
        padding: 15px 18px;
    }

    .xmp-legacy-lesson-duration {
        grid-column: 2;
        justify-self: start;
    }

    .xmp-legacy-actions,
    .xmp-legacy-button {
        width: 100%;
    }
}
