.am-courses-page {
    min-height: 60vh;
    padding: clamp(54px, 7vw, 100px) 20px clamp(70px, 9vw, 130px);
    background: #f8f4f2;
}

.am-course-preview-banner {
    position: sticky;
    top: var(--am-course-sticky-top, 24px);
    z-index: 30;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    max-width: 1180px;
    margin: 0 auto 24px;
    padding: 14px 18px;
    border: 1px solid #e0b423;
    border-radius: 14px;
    background: #fff8d8;
    box-shadow: 0 10px 30px rgba(54, 39, 0, .12);
    color: #332800;
    font-family: Poppins, sans-serif;
}

.am-course-preview-banner div {
    display: grid;
    gap: 2px;
}

.am-course-preview-banner span {
    font-size: 13px;
}

.am-course-preview-banner a {
    flex: none;
    padding: 9px 14px;
    border-radius: 999px;
    background: #332800;
    color: #fff;
    font-weight: 700;
    text-decoration: none;
}

.am-lesson-preview-tasks input[disabled] {
    cursor: not-allowed;
    opacity: .65;
}

@media (max-width: 640px) {
    .am-course-preview-banner {
        position: static;
        align-items: stretch;
        flex-direction: column;
    }

    .am-course-preview-banner a {
        text-align: center;
    }
}

.am-courses-page__inner {
    width: min(1360px, 100%);
    margin-inline: auto;
}

.am-courses,
.am-course,
.am-lesson,
.am-courses-dashboard {
    --am-courses-pink: #f176a4;
    --am-courses-pink-dark: #d85f8d;
    --am-courses-ink: #33271f;
    --am-courses-muted: #686868;
    --am-courses-border: #d9d9d9;
    color: var(--am-courses-ink);
    font-family: Poppins, sans-serif;
}

.am-courses,
.am-course {
    width: min(1120px, 100%);
    margin-inline: auto;
    padding: clamp(22px, 4vw, 42px);
    border: 1px solid var(--am-courses-border);
    border-radius: 25px;
    background: #fff;
}

.am-courses__hero {
    max-width: 720px;
    margin-bottom: clamp(32px, 5vw, 56px);
}

.am-courses__eyebrow {
    display: block;
    margin-bottom: 8px;
    color: var(--am-courses-pink);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .09em;
    text-transform: uppercase;
}

.am-courses h1,
.am-course h1 {
    margin: 0 0 12px;
    color: var(--am-courses-ink);
    font-size: clamp(40px, 6vw, 52px);
    line-height: 1.15;
}

.am-courses h1 {
    font-family: "buffalo-regular", "Buffalo", cursive;
    font-weight: 400;
}

.am-course h1 {
    font-family: Poppins, sans-serif;
    font-size: clamp(32px, 5vw, 46px);
    font-weight: 700;
    letter-spacing: -.025em;
    line-height: 1.2;
}

.am-courses__hero p,
.am-course__header-copy > p {
    margin: 0;
    color: var(--am-courses-muted);
    font-size: 15px;
    line-height: 1.55;
}

.am-courses__group {
    padding-top: clamp(28px, 4vw, 40px);
    border-top: 1px dashed #d7d2cf;
}

.am-courses__group + .am-courses__group {
    margin-top: clamp(36px, 5vw, 48px);
}

.am-courses__group > h2,
.am-course__program-header h2 {
    margin: 0 0 20px;
    font-size: clamp(23px, 3vw, 30px);
    line-height: 1.25;
}

.am-courses__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.am-course-card {
    overflow: hidden;
    border: 1px solid var(--am-courses-border);
    border-radius: 25px;
    background: #fff;
    box-shadow: 0 12px 32px rgb(66 36 49 / 8%);
}

.am-course-card__media {
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: linear-gradient(135deg, #f8dce8, #efe6ff);
}

.am-course-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.am-course-image--placeholder {
    display: grid;
    place-items: center;
    color: var(--am-courses-pink-dark);
    font-size: 32px;
    font-weight: 700;
    letter-spacing: .08em;
}

.am-course-card__body {
    padding: 22px;
}

.am-course-card__status {
    display: inline-flex;
    margin-bottom: 12px;
    padding: 5px 10px;
    border-radius: 999px;
    background: #fbeaf1;
    color: #9b4c6a;
    font-size: 12px;
    font-weight: 700;
}

.am-course-card--completed .am-course-card__status {
    background: #e8f6ed;
    color: #287044;
}

.am-course-card--expired .am-course-card__status,
.am-course-card--scheduled .am-course-card__status {
    background: #f1eff0;
    color: #62585d;
}

.am-course-card h3 {
    margin: 0 0 18px;
    font-size: 20px;
    line-height: 1.35;
}

.am-course-card__progress,
.am-course__progress-bar {
    height: 7px;
    overflow: hidden;
    border-radius: 999px;
    background: #eadfe3;
}

.am-course-card__progress {
    margin-top: 12px;
}

.am-course-card__progress > span,
.am-course__progress-bar > span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: var(--am-courses-pink);
}

.am-course-card__body > small {
    display: block;
    margin-top: 5px;
    color: var(--am-courses-muted);
    font-size: 11px;
}

.am-course-card__action,
.am-course__back,
.am-courses__error a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--am-courses-pink);
    font-weight: 700;
    text-decoration: none;
}

.am-course-card__action:hover,
.am-course__back:hover,
.am-courses__error a:hover {
    color: var(--am-courses-pink-dark);
}

.am-course-card__action:focus-visible,
.am-course__back:focus-visible,
.am-courses__error a:focus-visible {
    border-radius: 4px;
    outline: 2px solid var(--am-courses-pink);
    outline-offset: 4px;
}

.am-course-icon {
    display: inline-block;
    flex: 0 0 24px;
    width: 24px;
    height: 24px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.5;
    vertical-align: middle;
}

.am-course-card__notice {
    margin: 0;
    color: var(--am-courses-muted);
    font-size: 14px;
    line-height: 1.55;
}

.am-courses__empty,
.am-courses__error {
    padding: clamp(28px, 5vw, 52px);
    border: 1px dashed #d7d2cf;
    border-radius: 25px;
    background: #f8f4f2;
    text-align: center;
}

.am-courses__empty-icon {
    display: block;
    color: var(--am-courses-pink);
    font-size: 40px;
}

.am-courses__empty h2,
.am-courses__empty h3,
.am-courses__error h1 {
    margin: 8px 0;
}

.am-courses__error h1 {
    font-family: Poppins, sans-serif;
}

.am-courses__empty p,
.am-courses__error p {
    margin: 0 0 18px;
    color: var(--am-courses-muted);
}

.am-course {
    width: min(1000px, 100%);
}

.am-course__back {
    margin-bottom: 28px;
}

.am-course__header {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(260px, .7fr);
    align-items: center;
    gap: clamp(28px, 6vw, 72px);
    margin-bottom: clamp(44px, 7vw, 76px);
}

.am-course__cover {
    overflow: hidden;
    aspect-ratio: 4 / 3;
    border-radius: 25px;
    background: linear-gradient(135deg, #f8dce8, #efe6ff);
    box-shadow: 0 18px 42px rgb(66 36 49 / 12%);
}

.am-course__program {
    padding: clamp(24px, 5vw, 48px);
    border: 1px solid var(--am-courses-border);
    border-radius: 25px;
    background: #fffaf8;
    box-shadow: 0 14px 36px rgb(66 36 49 / 7%);
}

.am-course-qa {
    margin-top: 32px;
    padding: clamp(24px, 5vw, 48px);
    border: 1px solid var(--am-courses-border);
    border-radius: 25px;
    background: #fff;
    box-shadow: 0 14px 36px rgb(66 36 49 / 7%);
}

.am-course-qa__header {
    margin-bottom: 24px;
}

.am-course-qa__header h2 {
    margin: 0 0 8px;
    font-family: Poppins, sans-serif;
    font-size: clamp(26px, 4vw, 34px);
    line-height: 1.2;
}

.am-course-qa__header p,
.am-course-qa__empty p {
    margin: 0;
    color: var(--am-courses-muted);
    line-height: 1.6;
}

.am-course-qa__list {
    display: grid;
    gap: 10px;
}

.am-course-qa__entry {
    overflow: hidden;
    border: 1px solid #eadfe3;
    border-radius: 16px;
    background: #fffafb;
}

.am-course-qa__entry summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 18px 20px;
    color: var(--am-courses-ink);
    cursor: pointer;
    font-weight: 700;
    list-style: none;
}

.am-course-qa__entry summary::-webkit-details-marker {
    display: none;
}

.am-course-qa__entry summary:focus-visible {
    outline: 2px solid var(--am-courses-pink);
    outline-offset: -3px;
}

.am-course-qa__toggle {
    color: var(--am-courses-pink);
    font-size: 26px;
    font-weight: 400;
    line-height: 1;
    transition: transform 160ms ease;
}

.am-course-qa__entry[open] .am-course-qa__toggle {
    transform: rotate(45deg);
}

.am-course-qa__answer {
    padding: 0 20px 20px;
    border-top: 1px solid #f0e5e9;
}

.am-course-qa__answer p {
    margin: 18px 0 0;
    color: var(--am-courses-muted);
    line-height: 1.7;
}

.am-course-qa__answer a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
    color: var(--am-courses-pink-dark);
    font-weight: 700;
    text-decoration: none;
}

.am-course-qa__empty {
    padding: 20px;
    border-radius: 16px;
    background: #fffafb;
}

.am-course__progress {
    display: grid;
    grid-template-columns: minmax(150px, auto) minmax(160px, 1fr) auto;
    align-items: center;
    gap: 22px;
    margin-bottom: 28px;
    padding: 20px 22px;
    border: 1px solid #eadfe3;
    border-radius: 18px;
    background: #fffafb;
}

.am-course__progress strong,
.am-course__progress span {
    display: block;
}

.am-course__progress strong {
    color: var(--am-courses-ink);
    font-size: 15px;
}

.am-course__progress-copy > span {
    margin-top: 3px;
    color: var(--am-courses-muted);
    font-size: 12px;
}

.am-course__progress > a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 17px;
    border-radius: 999px;
    background: var(--am-courses-pink);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
}

.am-course__progress > a:hover {
    background: var(--am-courses-pink-dark);
    color: #fff;
}

.am-course__program-header {
    margin-bottom: 28px;
}

.am-course-section + .am-course-section,
.am-course-section__standalone-title {
    margin-top: 34px;
}

.am-course-section__header {
    margin-bottom: 16px;
}

.am-course-section__header h3,
.am-course-section__standalone-title {
    margin-bottom: 6px;
    font-size: 20px;
}

.am-course-section__header p,
.am-course-section__empty {
    margin: 0;
    color: var(--am-courses-muted);
    line-height: 1.6;
}

.am-course-lessons {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.am-course-lesson {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
    border: 1px solid #e8e1dd;
    border-radius: 14px;
    background: #fffafb;
    color: inherit;
    text-decoration: none;
    transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.am-course-lesson:hover {
    border-color: rgb(241 118 164 / 55%);
    color: inherit;
    box-shadow: 0 8px 18px rgb(66 36 49 / 7%);
    transform: translateY(-1px);
}

.am-course-lesson:focus-visible {
    outline: 2px solid var(--am-courses-pink);
    outline-offset: 3px;
}

.am-course-lesson__number {
    display: grid;
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    place-items: center;
    border-radius: 50%;
    background: #f7dbe6;
    color: #9b4c6a;
    font-size: 13px;
    font-weight: 700;
}

.am-course-lesson--completed .am-course-lesson__number {
    background: #dcefe3;
    color: #287044;
}

.am-course-lesson--started .am-course-lesson__number {
    box-shadow: 0 0 0 3px rgb(241 118 164 / 20%);
}

.am-course-lesson__copy {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 3px;
}

.am-course-lesson__copy strong {
    overflow-wrap: anywhere;
}

.am-course-lesson__copy > span {
    color: var(--am-courses-muted);
    font-size: 13px;
}

.am-course-lesson__arrow {
    margin-left: auto;
    color: var(--am-courses-pink);
    line-height: 0;
}

.am-lesson {
    width: min(1220px, 100%);
    margin-inline: auto;
    padding: clamp(22px, 4vw, 42px);
    border: 1px solid var(--am-courses-border);
    border-radius: 25px;
    background: #fff;
}

.am-lesson__breadcrumbs {
    margin-bottom: 28px;
}

.am-lesson__breadcrumbs a,
.am-lesson__materials a,
.am-lesson__navigation a {
    color: var(--am-courses-pink);
    font-weight: 700;
    text-decoration: none;
}

.am-lesson__breadcrumbs a,
.am-lesson__materials a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.am-lesson__breadcrumbs a:hover,
.am-lesson__materials a:hover,
.am-lesson__navigation a:hover {
    color: var(--am-courses-pink-dark);
}

.am-lesson__breadcrumbs a:focus-visible,
.am-lesson__materials a:focus-visible,
.am-lesson__navigation a:focus-visible,
.am-lesson-program a:focus-visible {
    border-radius: 4px;
    outline: 2px solid var(--am-courses-pink);
    outline-offset: 4px;
}

.am-lesson__layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 330px);
    align-items: start;
    gap: clamp(28px, 5vw, 56px);
}

.am-lesson__main {
    min-width: 0;
}

.am-lesson__header {
    margin-bottom: 24px;
}

.am-lesson__header h1 {
    margin: 0 0 10px;
    color: var(--am-courses-ink);
    font-family: Poppins, sans-serif;
    font-size: clamp(30px, 5vw, 44px);
    font-weight: 700;
    letter-spacing: -.025em;
    line-height: 1.2;
}

.am-lesson__header p {
    margin: 0;
    color: var(--am-courses-muted);
    font-size: 14px;
}

.am-lesson-player {
    position: relative;
    overflow: hidden;
    margin-bottom: 32px;
    border-radius: 20px;
    background: #171316;
    box-shadow: 0 18px 42px rgb(66 36 49 / 14%);
}

.am-lesson-player .wp-video,
.am-lesson-player video {
    width: 100% !important;
    max-width: 100%;
}

.am-lesson-player .am-course-native-video {
    display: block;
    height: auto;
}

.am-course-player__loader {
    --am-course-loader-size: 40px;
    --am-course-loader-speed: .9s;
    position: absolute;
    z-index: 5;
    top: 50%;
    left: 50%;
    width: var(--am-course-loader-size);
    height: var(--am-course-loader-size);
    color: var(--am-courses-pink);
    pointer-events: none;
    transform: translate(-50%, -50%);
}

.am-course-player__loader[hidden] {
    display: none;
}

.am-course-player-diagnostics {
    display: grid;
    gap: 10px;
    margin-top: 18px;
    padding: 18px 20px;
    border: 1px solid #f0bfd1;
    border-radius: 16px;
    background: #fff8fb;
    color: #34231b;
}

.am-course-player-diagnostics > span {
    color: #ec6e9e;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.am-course-player-diagnostics > strong {
    overflow-wrap: anywhere;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 13px;
}

.am-course-player-diagnostics > p,
.am-course-player-diagnostics > small {
    margin: 0;
}

.am-course-player-diagnostics > button {
    justify-self: start;
    padding: 11px 18px;
    border: 0;
    border-radius: 999px;
    background: #ef6f9f;
    color: #fff;
    cursor: pointer;
    font: inherit;
    font-weight: 700;
}

.am-course-player-diagnostics > button:disabled {
    cursor: wait;
    opacity: .65;
}

.am-course-player-diagnostics > small {
    min-height: 1.4em;
    color: #65564f;
}

.am-course-player__loader-dot {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

.am-course-player__loader-dot::before {
    width: 20%;
    height: 20%;
    border-radius: 50%;
    background: currentColor;
    content: '';
    opacity: .5;
    transform: scale(0);
    animation: am-course-player-pulse calc(var(--am-course-loader-speed) * 1.111) ease-in-out infinite;
}

.am-course-player__loader-dot:nth-child(2) {
    transform: rotate(45deg);
}

.am-course-player__loader-dot:nth-child(2)::before {
    animation-delay: calc(var(--am-course-loader-speed) * -.875);
}

.am-course-player__loader-dot:nth-child(3) {
    transform: rotate(90deg);
}

.am-course-player__loader-dot:nth-child(3)::before {
    animation-delay: calc(var(--am-course-loader-speed) * -.75);
}

.am-course-player__loader-dot:nth-child(4) {
    transform: rotate(135deg);
}

.am-course-player__loader-dot:nth-child(4)::before {
    animation-delay: calc(var(--am-course-loader-speed) * -.625);
}

.am-course-player__loader-dot:nth-child(5) {
    transform: rotate(180deg);
}

.am-course-player__loader-dot:nth-child(5)::before {
    animation-delay: calc(var(--am-course-loader-speed) * -.5);
}

.am-course-player__loader-dot:nth-child(6) {
    transform: rotate(225deg);
}

.am-course-player__loader-dot:nth-child(6)::before {
    animation-delay: calc(var(--am-course-loader-speed) * -.375);
}

.am-course-player__loader-dot:nth-child(7) {
    transform: rotate(270deg);
}

.am-course-player__loader-dot:nth-child(7)::before {
    animation-delay: calc(var(--am-course-loader-speed) * -.25);
}

.am-course-player__loader-dot:nth-child(8) {
    transform: rotate(315deg);
}

.am-course-player__loader-dot:nth-child(8)::before {
    animation-delay: calc(var(--am-course-loader-speed) * -.125);
}

@keyframes am-course-player-pulse {
    0%,
    100% {
        opacity: .5;
        transform: scale(0);
    }

    50% {
        opacity: 1;
        transform: scale(1);
    }
}

.am-lesson-player .mejs-container {
    background: #171316;
    font-family: Poppins, sans-serif;
}

.am-lesson-player .mejs-container .mejs-controls {
    display: flex;
    align-items: center;
    height: 56px;
    padding: 6px 8px;
    background: rgb(23 19 22 / 78%);
}

.am-lesson-player .mejs-controls .mejs-button {
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
}

.am-lesson-player .mejs-controls .mejs-button > button,
.am-lesson-player .mejs-controls .mejs-button > button:hover {
    position: relative;
    top: auto;
    left: auto;
    width: 44px;
    height: 44px;
    margin: 0;
    border-radius: 0;
    background: transparent !important;
    color: #fff;
}

.am-lesson-player .mejs-controls .mejs-button > button:hover {
    color: var(--am-courses-pink);
}

.am-lesson-player .mejs-controls .mejs-button > button:focus-visible {
    border-radius: 0;
    outline: 2px solid var(--am-courses-pink);
    outline-offset: -4px;
}

.am-course-player__control-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    display: block;
    width: 22px;
    height: 22px;
    fill: currentColor;
    pointer-events: none;
    transform: translate(-50%, -50%);
    animation: am-course-player-icon-in .3s ease;
}

.am-course-player__control-icon--play,
.am-course-player__control-icon--pause {
    width: 20px;
    height: 24px;
}

.am-lesson-player .mejs-controls .am-course-player__control-icon--pause,
.am-lesson-player .mejs-controls .am-course-player__control-icon--mute,
.am-lesson-player .mejs-controls .am-course-player__control-icon--compress,
.am-lesson-player .mejs-pause .am-course-player__control-icon--play,
.am-lesson-player .mejs-unmute .am-course-player__control-icon--volume,
.am-lesson-player .mejs-container-fullscreen .am-course-player__control-icon--expand {
    display: none !important;
}

.am-lesson-player .mejs-pause .am-course-player__control-icon--pause,
.am-lesson-player .mejs-unmute .am-course-player__control-icon--mute,
.am-lesson-player .mejs-container-fullscreen .am-course-player__control-icon--compress {
    display: block !important;
}

@keyframes am-course-player-icon-in {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0);
    }

    50% {
        transform: translate(-50%, -50%) scale(1.12);
    }
}

.am-lesson-player .mejs-overlay-loading {
    display: none;
}

.am-lesson-player .mejs-controls .mejs-time {
    display: flex;
    align-items: center;
    height: 44px;
    padding: 0 6px;
    color: #fff;
    font-family: Poppins, sans-serif;
    font-size: 11px;
    font-variant-numeric: tabular-nums;
    line-height: 1;
}

.am-lesson-player .mejs-time-rail {
    flex: 1 1 auto;
    width: auto !important;
    min-width: 64px;
    height: 44px;
    padding: 0;
}

.am-lesson-player .mejs-container .mejs-controls .mejs-time-rail .mejs-time-total {
    top: 18px;
    width: 100% !important;
    height: 8px;
    margin: 0;
    overflow: hidden;
    border-radius: 999px;
    background: #525252 !important;
}

.am-lesson-player .mejs-container .mejs-controls .mejs-time-rail .mejs-time-buffering,
.am-lesson-player .mejs-container .mejs-controls .mejs-time-rail .mejs-time-loaded,
.am-lesson-player .mejs-container .mejs-controls .mejs-time-rail .mejs-time-current,
.am-lesson-player .mejs-container .mejs-controls .mejs-time-rail .mejs-time-hovered {
    height: 100%;
    border-radius: 999px;
}

.am-lesson-player .mejs-container .mejs-controls .mejs-time-rail .mejs-time-loaded {
    background: #777 !important;
}

.am-lesson-player .mejs-container .mejs-controls .mejs-time-rail .mejs-time-current {
    background: var(--am-courses-pink) !important;
}

.am-lesson-player .mejs-container .mejs-controls .mejs-time-rail .mejs-time-hovered {
    background: rgb(255 255 255 / 20%) !important;
}

.am-lesson-player .mejs-time-rail .mejs-time-handle-content {
    top: -5px;
    border-color: var(--am-courses-pink);
}

.am-lesson-player .mejs-horizontal-volume-slider {
    width: 82px;
    height: 44px;
}

.am-lesson-player .mejs-horizontal-volume-total,
.am-lesson-player .mejs-horizontal-volume-current {
    top: 19px;
    height: 6px;
    border-radius: 999px;
}

.am-lesson-player .mejs-horizontal-volume-total {
    background: #525252;
}

.am-lesson-player .mejs-horizontal-volume-current {
    background: #fff;
}

.am-lesson-player__status {
    min-height: 0;
    margin: 0;
    padding: 0 18px;
    color: #fff;
    font-size: 13px;
}

.am-lesson-player__status:not(:empty) {
    padding-block: 12px;
    background: #662a40;
}

.am-lesson__state {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 32px;
    padding: clamp(24px, 5vw, 38px);
    border: 1px dashed #d7d2cf;
    border-radius: 20px;
    background: #fffaf8;
}

.am-lesson__state > span {
    display: grid;
    flex: 0 0 48px;
    width: 48px;
    height: 48px;
    place-items: center;
    border-radius: 50%;
    background: #f8dce8;
    color: var(--am-courses-pink-dark);
    font-size: 23px;
}

.am-lesson__state h2,
.am-lesson__content h2,
.am-lesson__materials h2,
.am-lesson__sidebar h2 {
    margin: 0 0 10px;
    font-size: clamp(21px, 3vw, 27px);
    line-height: 1.3;
}

.am-lesson__state p,
.am-lesson__content p,
.am-lesson__materials p {
    margin: 0;
    color: var(--am-courses-muted);
    line-height: 1.65;
}

.am-lesson__content,
.am-lesson__materials {
    margin-top: 32px;
    padding-top: 30px;
    border-top: 1px dashed #d7d2cf;
}

.am-lesson-progress {
    display: grid;
    gap: 20px;
    margin: 32px 0;
    padding: clamp(22px, 4vw, 30px);
    border: 1px solid #eadfe3;
    border-radius: 20px;
    background: #fffafb;
}

.am-lesson-progress__header,
.am-lesson-progress__row,
.am-lesson-progress__task {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.am-lesson-progress__header h2 {
    margin: 0;
    color: var(--am-courses-ink);
    font-family: Poppins, sans-serif;
    font-size: clamp(20px, 3vw, 25px);
    line-height: 1.3;
}

.am-lesson-progress__badge {
    display: grid;
    flex: 0 0 50px;
    width: 50px;
    height: 50px;
    place-items: center;
    border-radius: 50%;
    background: #f8dce8;
    color: #9b4c6a;
    font-size: 14px;
    font-weight: 700;
}

.am-lesson-progress__requirement {
    padding-top: 18px;
    border-top: 1px dashed #d7d2cf;
}

.am-lesson-progress__row strong,
.am-lesson-progress__task strong {
    color: var(--am-courses-ink);
    font-size: 14px;
}

.am-lesson-progress__row > span,
.am-lesson-progress__task p {
    color: var(--am-courses-muted);
    font-size: 12px;
}

.am-lesson-progress__task p {
    margin: 4px 0 0;
}

.am-lesson-checklist__heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.am-lesson-checklist__heading > strong {
    color: var(--am-courses-ink);
    font-size: 14px;
}

.am-lesson-checklist__heading > span {
    color: var(--am-courses-muted);
    font-size: 12px;
}

.am-lesson-checklist ul {
    display: grid;
    gap: 10px;
    margin: 14px 0 0;
    padding: 0;
    list-style: none;
}

.am-lesson-checklist li {
    border: 1px solid #eadfe3;
    border-radius: 14px;
    background: #fff;
    transition: border-color 160ms ease, background 160ms ease;
}

.am-lesson-checklist li.is-completed {
    border-color: #b9d8c5;
    background: #f6fcf8;
}

.am-lesson-checklist label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    cursor: pointer;
}

.am-lesson-checklist input {
    flex: 0 0 auto;
    width: 20px;
    height: 20px;
    margin: 1px 0 0;
    accent-color: var(--am-courses-pink);
}

.am-lesson-checklist input:disabled {
    cursor: default;
}

.am-lesson-checklist__content {
    display: grid;
    flex: 1;
    gap: 4px;
}

.am-lesson-checklist__content > strong {
    color: var(--am-courses-ink);
    font-size: 14px;
}

.am-lesson-checklist__content > span {
    color: var(--am-courses-muted);
    font-size: 12px;
    line-height: 1.55;
}

.am-lesson-checklist__content > small {
    justify-self: start;
    padding: 2px 7px;
    border-radius: 999px;
    background: #f6edf1;
    color: #766b70;
    font-size: 10px;
    font-weight: 600;
}

.am-lesson-checklist li.is-completed .am-lesson-checklist__content > strong {
    color: #4f6e5a;
    text-decoration: line-through;
}

.am-lesson-progress__bar {
    height: 9px;
    margin-top: 11px;
    overflow: hidden;
    border-radius: 999px;
    background: #eadfe3;
}

.am-lesson-progress__bar > span {
    display: block;
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: var(--am-courses-pink);
    transition: width 200ms ease;
}

.am-lesson-progress button {
    min-height: 44px;
    padding: 10px 17px;
    border: 0;
    border-radius: 999px;
    background: var(--am-courses-pink);
    color: #fff;
    cursor: pointer;
    font-family: Poppins, sans-serif;
    font-size: 13px;
    font-weight: 600;
}

.am-lesson-progress button:hover:not(:disabled) {
    background: var(--am-courses-pink-dark);
}

.am-lesson-progress button:disabled {
    background: #e3d8dc;
    color: #766b70;
    cursor: default;
}

.am-lesson-progress__complete {
    justify-self: start;
}

.am-lesson-progress__message,
.am-lesson-progress__notice {
    margin: 0;
    color: #287044;
    font-size: 12px;
}

.am-lesson-progress__message:empty {
    display: none;
}

.am-lesson-progress__message.is-error,
.am-lesson-progress__notice {
    color: #8e334e;
}

.am-lesson-progress__notice {
    margin: 24px 0;
    padding: 14px 16px;
    border-radius: 12px;
    background: #fff1f5;
}

.am-lesson-progress--completed {
    border-color: #b9d8c5;
    background: #f6fcf8;
}

.am-lesson-progress--completed .am-lesson-progress__badge {
    background: #dcefe3;
    color: #287044;
    font-size: 22px;
}

.am-lesson__materials ul {
    display: grid;
    gap: 12px;
    margin: 18px 0 0;
    padding: 0;
    list-style: none;
}

.am-lesson__materials li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 16px 18px;
    border: 1px solid #e8e1dd;
    border-radius: 14px;
    background: #fffafb;
}

.am-lesson__materials strong {
    display: block;
    margin-bottom: 3px;
}

.am-lesson__materials p {
    font-size: 13px;
}

.am-lesson__navigation {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-top: 36px;
    padding-top: 30px;
    border-top: 1px dashed #d7d2cf;
}

.am-lesson__navigation a {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 5px;
}

.am-lesson__navigation small {
    color: var(--am-courses-muted);
    font-size: 12px;
    font-weight: 500;
}

.am-lesson__navigation strong {
    display: flex;
    align-items: center;
    gap: 8px;
    overflow-wrap: anywhere;
}

.am-lesson__navigation-next {
    text-align: right;
}

.am-lesson__navigation-next strong {
    justify-content: flex-end;
}

.am-lesson__sidebar {
    position: sticky;
    top: var(--am-course-sticky-top, 24px);
    max-height: calc(100vh - var(--am-course-sticky-top, 24px) - 24px);
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-gutter: stable;
    padding: 24px;
    border: 1px solid #e8e1dd;
    border-radius: 20px;
    background: #fffaf8;
}

.am-lesson__sidebar h2 {
    font-size: 21px;
}

.am-lesson-program {
    display: grid;
    gap: 8px;
    margin: 20px 0 0;
    padding: 0;
    list-style: none;
}

.am-lesson-program a {
    display: grid;
    grid-template-columns: 30px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    padding: 10px;
    border-radius: 12px;
    color: var(--am-courses-ink);
    text-decoration: none;
}

.am-lesson-program a:hover,
.am-lesson-program a[aria-current="page"] {
    background: #f7dbe6;
    color: var(--am-courses-ink);
}

.am-lesson-program a > span {
    display: grid;
    width: 30px;
    height: 30px;
    place-items: center;
    border-radius: 50%;
    background: #fff;
    color: #9b4c6a;
    font-size: 12px;
    font-weight: 700;
}

.am-lesson-program strong {
    min-width: 0;
    overflow-wrap: anywhere;
    font-size: 13px;
    line-height: 1.4;
}

.am-courses-dashboard {
    width: 100%;
    padding: clamp(22px, 4vw, 38px);
    border: 1px solid var(--am-courses-border);
    border-radius: 25px;
    background: #fff;
    box-shadow: 0 12px 32px rgb(66 36 49 / 7%);
}

.am-courses-dashboard__header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 24px;
    padding-bottom: 22px;
    border-bottom: 1px dashed #d7d2cf;
}

.am-courses-dashboard__heading {
    min-width: 0;
}

.am-courses-dashboard__eyebrow {
    display: block;
    margin-bottom: 7px;
    color: var(--am-courses-pink);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.am-courses-dashboard h2 {
    margin: 0;
    color: var(--am-courses-ink);
    font-family: "buffalo-regular", "Buffalo", cursive;
    font-size: clamp(36px, 5vw, 46px);
    font-weight: 400;
    line-height: 1.15;
}

.am-courses-dashboard__heading p {
    max-width: 620px;
    margin: 8px 0 0;
    color: var(--am-courses-muted);
    font-size: 14px;
    line-height: 1.55;
}

.am-courses-dashboard__all {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 44px;
    padding: 10px 18px;
    border-radius: 999px;
    background: var(--am-courses-pink);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 160ms ease, transform 160ms ease;
}

.am-courses-dashboard__all:hover {
    background: var(--am-courses-pink-dark);
    color: #fff;
    transform: translateY(-1px);
}

.am-courses-dashboard__all:focus-visible,
.am-courses-dashboard-card:focus-visible {
    outline: 2px solid var(--am-courses-pink);
    outline-offset: 4px;
}

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

.am-courses-dashboard-card {
    position: relative;
    display: grid;
    grid-template-columns: 82px minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    min-width: 0;
    min-height: 108px;
    padding: 13px 14px;
    border: 1px solid #e8e1dd;
    border-radius: 18px;
    background: #fffaf8;
    color: inherit;
    text-decoration: none;
    transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

a.am-courses-dashboard-card:hover {
    border-color: rgb(241 118 164 / 55%);
    color: inherit;
    box-shadow: 0 10px 24px rgb(66 36 49 / 8%);
    transform: translateY(-2px);
}

.am-courses-dashboard-card__media {
    display: block;
    width: 82px;
    height: 82px;
    overflow: hidden;
    border-radius: 14px;
    background: linear-gradient(135deg, #f8dce8, #efe6ff);
}

.am-courses-dashboard-card__copy {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 4px;
}

.am-courses-dashboard-card__copy strong {
    overflow-wrap: anywhere;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.35;
}

.am-courses-dashboard-card__copy small {
    color: var(--am-courses-muted);
    font-size: 12px;
    line-height: 1.4;
}

.am-courses-dashboard-card__meeting {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 3px;
    color: #9b4c6a;
    font-size: 11px;
    font-weight: 650;
}

.am-courses-dashboard-card__meeting .am-course-icon {
    width: 16px;
    flex: 0 0 auto;
}

.am-courses-dashboard-card__status {
    color: #9b4c6a;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.am-courses-dashboard-card--completed .am-courses-dashboard-card__status {
    color: #287044;
}

.am-courses-dashboard-card--scheduled .am-courses-dashboard-card__status {
    color: #62585d;
}

.am-courses-dashboard-card__arrow {
    color: var(--am-courses-pink);
    line-height: 0;
    transition: color 160ms ease, transform 160ms ease;
}

a.am-courses-dashboard-card:hover .am-courses-dashboard-card__arrow {
    color: var(--am-courses-pink-dark);
    transform: translateX(3px);
}

.am-courses-dashboard__empty,
.am-courses-dashboard__notice {
    margin: 0;
    border-radius: 18px;
    background: #f8f4f2;
    color: var(--am-courses-muted);
}

.am-courses-dashboard__empty {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px;
}

.am-courses-dashboard__empty > span {
    color: var(--am-courses-pink);
    font-size: 30px;
}

.am-courses-dashboard__empty strong {
    display: block;
    margin-bottom: 3px;
    color: var(--am-courses-ink);
    font-size: 14px;
}

.am-courses-dashboard__empty p {
    margin: 0;
    font-size: 13px;
}

.am-courses-dashboard__notice {
    padding: 16px 18px;
    font-size: 13px;
    line-height: 1.5;
}

.am-course-card__meeting {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 10px 0 2px;
    padding: 10px 12px;
    border-radius: 12px;
    background: #fff3f8;
    color: var(--am-courses-ink);
}

.am-course-card__meeting .am-course-icon {
    flex: 0 0 auto;
    width: 20px;
    color: var(--am-courses-pink);
}

.am-course-card__meeting strong,
.am-course-card__meeting small {
    display: block;
}

.am-course-card__meeting strong {
    font-size: 12px;
}

.am-course-card__meeting small {
    margin-top: 2px;
    color: var(--am-courses-muted);
    font-size: 11px;
}

.am-course-meetings {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
    margin: 30px 0;
    padding: 28px;
    border: 1px solid var(--am-courses-border);
    border-radius: 24px;
    background: #fffafc;
}

.am-course-meetings__header {
    margin-bottom: 18px;
}

.am-course-meetings__header h2 {
    margin: 4px 0 0;
}

.am-course-meeting {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
    gap: 16px;
    padding: 18px;
    border: 1px solid #f0dce5;
    border-radius: 18px;
    background: #fff;
}

.am-course-meeting--next {
    border-color: #f5bfd3;
    box-shadow: 0 12px 30px rgba(241, 118, 164, .1);
}

.am-course-meeting__icon {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: #fce2ec;
    color: var(--am-courses-pink-dark);
}

.am-course-meeting__icon .am-course-icon {
    width: 23px;
}

.am-course-meeting__status {
    color: var(--am-courses-pink-dark);
    font-size: 11px;
    font-weight: 750;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.am-course-meeting__copy {
    min-width: 0;
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.am-course-meeting__copy h3 {
    margin: 3px 0 4px;
    font-family: Poppins, sans-serif;
    font-size: 18px;
}

.am-course-meeting__copy p,
.am-course-meeting__copy small {
    margin: 4px 0 0;
    color: var(--am-courses-muted);
}

.am-course-meeting__date {
    color: var(--am-courses-ink) !important;
    font-weight: 650;
}

.am-course-meeting__action,
.am-course-meeting__recording,
.am-course-meetings__telegram {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
    gap: 8px;
    overflow-wrap: anywhere;
    text-align: center;
    white-space: normal;
    text-decoration: none;
}

.am-course-meeting__action {
    padding: 11px 15px;
    border: 1px solid rgba(74, 140, 255, .32);
    border-radius: 999px;
    background: #f5f8ff;
    color: #356fd4;
    font-size: 13px;
    font-weight: 700;
    transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}

a.am-course-meeting__action:hover,
a.am-course-meeting__action:focus-visible {
    border-color: #4a8cff;
    background: #edf3ff;
    color: #4a8cff;
}

.am-course-meeting__action .am-course-icon,
.am-course-meeting__recording .am-course-icon,
.am-course-meetings__telegram .am-course-icon {
    width: 18px;
}

.am-course-meetings__empty {
    padding: 18px;
    border-radius: 16px;
    background: #f7f2f4;
}

.am-course-meetings__empty p {
    margin: 4px 0 0;
    color: var(--am-courses-muted);
}

.am-course-meetings__telegram {
    justify-content: flex-start;
    width: 100%;
    box-sizing: border-box;
    margin-top: 14px;
    padding: 14px 18px;
    border-radius: 16px;
    border: 1px solid rgba(55, 174, 226, .3);
    background: #f4fbfe;
    color: #187eaa;
    transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}

a.am-course-meetings__telegram:hover,
a.am-course-meetings__telegram:focus-visible {
    border-color: #37aee2;
    background: #eaf8fd;
    color: #37aee2;
}

.am-course-meetings__telegram span,
.am-course-meetings__telegram small {
    display: block;
}

.am-course-meetings__telegram > span {
    min-width: 0;
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.am-course-meetings__telegram small {
    margin-top: 2px;
    color: #39788f;
}

.am-course-brand-icon {
    display: block;
    flex: 0 0 auto;
    object-fit: contain;
}

.am-course-brand-icon--zoom {
    width: 52px;
    height: 26px;
}

.am-course-brand-icon--telegram {
    width: 32px;
    height: 32px;
}

.am-course-meetings__history {
    min-width: 0;
    max-width: 100%;
    margin-top: 14px;
}

.am-course-meetings__history > summary {
    cursor: pointer;
    color: var(--am-courses-ink);
    font-weight: 650;
}

.am-course-meetings__history > div {
    display: grid;
    min-width: 0;
    max-width: 100%;
    gap: 10px;
    margin-top: 12px;
}

.am-course-meeting--cancelled {
    opacity: .72;
}

.am-course-meeting--cancelled .am-course-meeting__copy h3,
.am-course-meeting--cancelled .am-course-meeting__date {
    text-decoration: line-through;
}

@media (max-width: 880px) {
    .am-courses__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .am-courses-dashboard__grid {
        grid-template-columns: 1fr;
    }

    .am-course__header {
        grid-template-columns: 1fr;
    }

    .am-course__cover {
        width: min(480px, 100%);
    }

    .am-lesson__layout {
        grid-template-columns: 1fr;
    }

    .am-lesson__sidebar {
        position: static;
        max-height: none;
        overflow: visible;
    }

    .am-course-meeting {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .am-course-meeting__action {
        grid-column: 1 / -1;
    }
}

@media (max-width: 600px) {
    .am-courses-page {
        padding: 28px 14px 52px;
    }

    .am-courses__grid {
        grid-template-columns: 1fr;
    }

    .am-courses,
    .am-course,
    .am-lesson {
        padding: 22px 16px;
    }

    .am-courses-dashboard {
        padding: 22px 16px;
    }

    .am-courses-dashboard__header {
        align-items: flex-start;
        flex-direction: column;
    }

    .am-courses-dashboard__all {
        width: 100%;
    }

    .am-courses-dashboard-card {
        grid-template-columns: 68px minmax(0, 1fr) auto;
    }

    .am-courses-dashboard-card__media {
        width: 68px;
        height: 68px;
    }

    .am-course-card,
    .am-course__program,
    .am-course-qa,
    .am-course__cover,
    .am-courses__empty,
    .am-courses__error {
        border-radius: 18px;
    }

    .am-course__program {
        padding: 20px 14px;
    }

    .am-course-qa {
        padding: 20px 14px;
    }

    .am-course-meetings {
        padding: 20px 14px;
        border-radius: 18px;
    }

    .am-course-meeting {
        grid-template-columns: 1fr;
        padding: 15px;
    }

    .am-course-meeting__icon {
        width: 40px;
        height: 40px;
    }

    .am-course-meeting__action,
    .am-course-meeting__recording {
        width: 100%;
        box-sizing: border-box;
    }

    .am-course__progress {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .am-course__progress > a {
        justify-content: center;
    }

    .am-course-lesson {
        align-items: flex-start;
    }

    .am-lesson,
    .am-lesson-player,
    .am-lesson__sidebar,
    .am-lesson__state {
        border-radius: 18px;
    }

    .am-lesson__materials li {
        align-items: flex-start;
        flex-direction: column;
    }

    .am-lesson-progress__task {
        align-items: flex-start;
        flex-direction: column;
    }

    .am-lesson-progress__task button,
    .am-lesson-progress__complete {
        width: 100%;
    }

    .am-lesson__materials a {
        align-self: stretch;
        justify-content: center;
        padding: 9px 12px;
        border-radius: 999px;
        background: var(--am-courses-pink);
        color: #fff;
        text-align: center;
    }

    .am-lesson__navigation {
        grid-template-columns: 1fr;
    }

    .am-lesson__navigation > span {
        display: none;
    }

    .am-lesson__navigation-next {
        text-align: left;
    }

    .am-lesson__navigation-next strong {
        justify-content: flex-start;
    }

    .am-lesson-player .mejs-container .mejs-controls {
        height: 52px;
        padding-inline: 4px;
    }

    .am-lesson-player .mejs-horizontal-volume-slider {
        display: none !important;
    }

    .am-lesson-player .mejs-time-rail {
        min-width: 44px;
    }

    .am-lesson-player .mejs-controls .mejs-time {
        padding-inline: 3px;
        font-size: 10px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .am-course-card__action,
    .am-course__back,
    .am-courses__error a {
        scroll-behavior: auto;
    }

    .am-course-lesson,
    .am-lesson-program a,
    .am-course-qa__toggle {
        transition: none;
    }

    .am-course-player__loader-dot::before,
    .am-course-player__control-icon {
        animation: none;
    }

    .am-course-player__loader-dot::before {
        opacity: 1;
        transform: scale(1);
    }
}
