.topic { overflow: hidden; display: flex; flex-direction: column; }
.topic-photo { display: block; width: calc(100% + 40px); height: 155px; object-fit: cover; margin: -20px -20px 20px; background: #e6e9df; }
.topic .number { display: none; }
.topic h3 { margin-top: 0; }
.topic .example { display: none; }
.topic .topic-count { font-size: 11px; margin-top: 18px; margin-bottom: 10px; }
.topic-start { margin-top: auto; }
.lesson-button { min-height: 46px; padding: 12px 17px; border: 1px solid var(--green); border-radius: 9px; background: var(--green); color: white; cursor: pointer; font-weight: 650; font-size: 13px; line-height: 1.5; }
.lesson-button:hover:not(:disabled) { background: #174b41; }
.lesson-button:disabled { cursor: default; opacity: .5; }
.lesson-button.secondary { background: transparent; color: var(--green); border-color: #c4d1c2; }
#learning-progress { margin: 5px 0 25px; padding: 22px; border-radius: 12px; background: #edf2e5; }
.learning-steps { font: 26px/1.3 Georgia,serif; margin: 0 0 10px; color: var(--green); }
.learning-guide { margin: 0 0 22px; color: var(--muted); font-size: 13px; line-height: 1.7; }
.progress-top { display: flex; justify-content: space-between; gap: 15px; font-size: 12px; }
progress { appearance: none; width: 100%; height: 9px; margin: 10px 0; border: 0; border-radius: 8px; background: #d6dfcc; color: var(--green); }
progress::-webkit-progress-bar { background: #d6dfcc; border-radius: 8px; }
progress::-webkit-progress-value { background: var(--green); border-radius: 8px; }
progress::-moz-progress-bar { background: var(--green); border-radius: 8px; }
.storage-note { margin: 0; font-size: 11px; color: var(--muted); line-height: 1.6; }
#lesson-player { padding: 26px; margin: 25px 0; border: 2px solid #a7bca0; border-radius: 14px; background: #f5f6ed; scroll-margin-top: 20px; }
.lesson-back { display: block; border: 0; background: transparent; color: var(--green); font-size: 12px; text-decoration: underline; text-underline-offset: 4px; padding: 8px 0; cursor: pointer; min-height: 40px; }
#lesson-title { font: 30px/1.3 Georgia,serif; font-weight: 400; margin: 12px 0 24px; }
.lesson-stage { display: grid; grid-template-columns: .85fr 1.15fr; gap: 25px; align-items: stretch; }
.lesson-stage:has(.quiz-choices) { display: block; }
.lesson-photo { width: 100%; height: 100%; min-height: 300px; max-height: 500px; object-fit: cover; border-radius: 12px; }
.word-card { background: #fffdf8; padding: 28px; border: 1px solid var(--line); border-radius: 12px; }
.word-cue { font-size: 44px; margin-bottom: 15px; }
.german-word { font: 36px/1.25 Georgia,serif; margin: 0 0 16px; color: var(--green); overflow-wrap: anywhere; }
.listen-button { min-height: 44px; padding: 9px 15px; border: 1px solid #a7bca0; background: #eef3e7; color: var(--green); font-size: 13px; border-radius: 25px; cursor: pointer; }
.audio-status { font-size: 12px; line-height: 1.6; color: var(--muted); margin: 5px 0 0; }
.audio-status:empty { display: none; }
.word-translation { font-size: 23px; margin: 20px 0; }
.word-example { padding-top: 18px; border-top: 1px solid var(--line); font-size: 16px; margin-bottom: 7px; }
.example-translation { font-size: 13px; color: var(--muted); line-height: 1.7; margin-top: 0; }
.lesson-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.quiz-title { font-size: 20px; margin-bottom: 5px; }
.lesson-help { color: var(--muted); font-size: 14px; line-height: 1.8; max-width: 670px; }
.quiz-choices { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; margin: 24px 0 16px; }
.quiz-choice { border: 1px solid #c5cfc0; background: white; color: var(--ink); padding: 18px; min-height: 60px; border-radius: 9px; cursor: pointer; font-size: 16px; text-align: left; overflow-wrap: anywhere; }
.quiz-choice:hover:not(:disabled) { border-color: var(--green); background: #f0f5ea; }
.quiz-choice.correct { background: #e2efd9; color: #245126; border: 2px solid #6d9555; }
.quiz-choice.incorrect { background: #fbecdf; border-color: #c69b72; color: #815b3c; }
.quiz-choice:disabled { cursor: default; }
.quiz-feedback { min-height: 46px; font-size: 14px; line-height: 1.7; color: #815b3c; }
.correct-feedback { color: #245126; }
.success-star { font-size: 55px; color: var(--orange); }
#lesson-player h4:not(.german-word) { font: 29px/1.4 Georgia,serif; margin: 14px 0; }
.photo-credits { display: inline-block; margin-top: 12px; }
@media(max-width: 800px) { .lesson-stage { grid-template-columns: 1fr; } .lesson-photo { height: 220px; min-height: 0; } }
@media(max-width: 600px) {
  .topic-photo { width: calc(100% + 36px); margin: -18px -18px 18px; height: 190px; }
  #lesson-player { padding: 16px; margin: 20px -6px; }
  #lesson-title { font-size: 25px; }
  .word-card { padding: 20px 16px; }
  .german-word { font-size: 34px; }
  .quiz-choices { grid-template-columns: 1fr; }
  .quiz-choice { padding: 14px; min-height: 54px; }
  .learning-steps { font-size: 23px; }
  .lesson-actions > button { flex: 1; }
}
