button.aaf-lesson {
    display: inline-flex;
    align-items: center;
    gap: .45em;
    padding: .4em .7em;
    margin: .25em 0;
    font: 600 .875rem/1.3 Arial, sans-serif;
    color: #124965;
    background: #f1f7fa;
    border: 1px solid #91b4c6;
    border-radius: 5px;
    cursor: pointer;
}
button.aaf-lesson::before { content: "▶"; font-size: .75em; }
button.aaf-lesson:hover { background: #dfedf4; }
.aaf-lesson-list { display: flex; flex-wrap: wrap; gap: .45rem .6rem; }
.aaf-lesson-dialog {
    position: fixed;
    inset: 0;
    margin: auto;
    width: min(62rem, 92vw);
    max-height: 92vh;
    height: fit-content;
    box-sizing: border-box;
    padding: 0;
    color: #10283c;
    background: white;
    border: 0;
    border-radius: .6rem;
    box-shadow: 0 12px 60px #0006;
}
.aaf-lesson-dialog::backdrop { background: #122230ba; }
.aaf-lesson-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: .6rem 1rem;
}
.aaf-lesson-header h2 { margin: 0; font: 600 1rem/1.3 Arial, sans-serif; }
.aaf-lesson-header button { padding: .4rem .75rem; cursor: pointer; }
.aaf-lesson-dialog video {
    display: block;
    width: 100%;
    max-height: 76vh;
    aspect-ratio: 16 / 9;
    background: #111;
}
@media print {
    .aaf-lesson, .aaf-lesson-dialog { display: none !important; }
}
