.lesson-files {
    display: grid;
    gap: 12px;
    width: 100%;
    margin-top: 16px;
}

.lesson-audio-list {
    display: grid;
    gap: 12px;
}

.lesson-audio-card__summary {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
}

.lesson-audio-card__summary p {
    margin: 0;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}

.lesson-audio-card__hint {
    margin: 4px 0 14px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.5;
}

.lesson-audio-track {
    display: grid;
    gap: 10px;
    padding: 14px;
    border: 1px solid rgba(111, 76, 38, 0.16);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.56);
}

.lesson-audio-track__head h3 {
    margin: 0;
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 800;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.lesson-audio-track__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.lesson-audio-track__status {
    flex: 0 0 auto;
    padding: 5px 8px;
    border-radius: 999px;
    background: rgba(111, 76, 38, 0.08);
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
    white-space: nowrap;
}

.lesson-audio-track.is-listened {
    border-color: rgba(73, 116, 95, 0.32);
    background: rgba(237, 245, 239, 0.7);
}

.lesson-audio-track.is-listened .lesson-audio-track__status {
    background: #dcecdf;
    color: #37634d;
}

.lesson-audio-track__head p {
    margin: 3px 0 0;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
}

.lesson-audio-track audio {
    width: 100%;
    min-height: 42px;
}

.lesson-audio-track.is-missing {
    border-style: dashed;
}

.lesson-audio-track__missing {
    margin: 0;
    color: #8a514b;
    font-size: 13px;
}

.lesson-file-card {
    display: grid;
    gap: 14px;
    width: 100%;
    border: 1px solid rgba(111, 76, 38, 0.16);
    border-radius: 10px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.56);
}

.lesson-file-card__head {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.lesson-file-card__icon {
    width: 46px;
    min-width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border-radius: 9px;
    background: #edf5ef;
    color: #49745f;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.04em;
}

.lesson-file-card__info {
    min-width: 0;
}

.lesson-file-card__info h3 {
    margin: 0;
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 800;
    line-height: 1.3;
    overflow-wrap: anywhere;
}

.lesson-file-card__info p {
    margin: 3px 0 0;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.35;
}

.lesson-file-card__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.lesson-file-card__actions .button {
    min-height: 34px;
    padding: 0 13px;
    font-size: 11px;
}

.lesson-file-preview {
    overflow: hidden;
    border: 1px solid rgba(111, 76, 38, 0.14);
    border-radius: 9px;
    background: rgba(255, 253, 248, 0.82);
}

.lesson-file-preview summary {
    min-height: 42px;
    display: flex;
    align-items: center;
    padding: 10px 13px;
    color: #6f4c26;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
    list-style: none;
}

.lesson-file-preview summary::-webkit-details-marker {
    display: none;
}

.lesson-file-preview summary::after {
    margin-left: auto;
    content: "+";
    font-size: 18px;
    font-weight: 500;
    line-height: 1;
}

.lesson-file-preview[open] summary::after {
    content: "−";
}

.lesson-file-preview iframe {
    width: 100%;
    height: min(70vh, 720px);
    display: block;
    border: 0;
    border-top: 1px solid rgba(111, 76, 38, 0.12);
    background: #fff;
}

.lesson-file-preview img {
    width: auto;
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
    border-top: 1px solid rgba(111, 76, 38, 0.12);
}

.lesson-file-card.is-missing {
    border-style: dashed;
}

.lesson-file-card__missing {
    margin: 0;
    color: #8a514b;
    font-size: 13px;
    line-height: 1.5;
}

@media (max-width: 560px) {
    .lesson-audio-track__head {
        display: grid;
    }

    .lesson-audio-track__status {
        justify-self: start;
    }

    .lesson-file-card {
        padding: 14px;
    }

    .lesson-file-card__icon {
        width: 42px;
        min-width: 42px;
        height: 42px;
    }

    .lesson-file-card__actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .lesson-file-card__actions .button {
        width: 100%;
        justify-content: center;
    }

    .lesson-file-preview iframe {
        height: 62vh;
        min-height: 420px;
    }
}
