.fr-lessons .fr-lesson-box{padding:24px;border:1px solid #c9d9bc;border-radius:20px;background:#fffef8;margin:18px 0}
.fr-route .fr-mixed-checkpoint{margin-top:16px;padding:18px;border:1px solid #cbdba9;border-radius:16px;background:#f1f5df}.fr-route .fr-mixed-checkpoint p{margin:0 0 12px}.fr-route .fr-mixed-checkpoint button,.fr-route .fr-mixed-primary{min-height:46px;padding:12px 18px;border:1px solid #9cb568;border-radius:12px;background:#e0ed93;color:#24432e;font:inherit;font-weight:600;cursor:pointer}.fr-route .fr-mixed-prompt{font-size:1.3rem;line-height:1.5}.fr-route .fr-mixed-primary{margin:12px 8px 12px 0}.fr-route [data-mixed-feedback]{white-space:pre-line;margin:12px 0}.fr-route button:disabled{opacity:.55;cursor:default}.fr-route textarea{box-sizing:border-box;width:100%;min-height:130px}
.french-simple-navigation .fr-nav-detail{display:none!important}
.fr-route .fr-route-summary{display:grid;grid-template-columns:1fr 1fr;gap:24px;padding:24px;border:1px solid #c9d9bc;border-radius:22px;background:#e9f1df;margin:20px 0}
.fr-route .fr-route-summary strong{font-size:1.35rem}.fr-route progress{width:100%;height:12px;accent-color:#285c47}
.fr-route .fr-route-summary button{min-height:54px;padding:12px 24px;background:#dff077;border:1px solid #a6ba53;border-radius:14px;color:#183c2c;font:inherit;font-weight:700;cursor:pointer}
.fr-route .fr-route-help,.fr-route .fr-route-group{padding:24px;border:1px solid #d6dfcd;border-radius:22px;background:#fffef8;margin:20px 0}
.fr-route .fr-route-group h3{margin:8px 0;font-size:1.5rem}.fr-route .fr-route-links{display:flex;flex-wrap:wrap;gap:12px}
.fr-route .fr-route-list{list-style:none;padding:0;margin:20px 0 0}.fr-route .fr-route-list li{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:18px 0;border-top:1px solid #e0e6d9}.fr-route .fr-route-list li>div{display:flex;align-items:flex-start;gap:14px;min-width:0}.fr-route .fr-route-list p{font-size:.9rem;color:#61756b;margin:6px 0 0}.fr-route .fr-route-number{flex-shrink:0;display:grid;place-items:center;width:34px;height:34px;border-radius:50%;background:#edf3df;color:#315e48;font-weight:700}
.fr-route .fr-route-list button,.fr-route .fr-route-links button,.fr-lessons .fr-route-back{flex-shrink:0;min-height:44px;padding:10px 18px;border:1px solid #acc58f;border-radius:12px;background:#e6f1db;color:#234a35;font:inherit;cursor:pointer}.fr-lessons .fr-route-back{margin-top:12px}
.fr-route button:focus-visible,.fr-lessons .fr-route-back:focus-visible{outline:3px solid #378b73;outline-offset:3px}
@media(max-width:700px){.fr-route .fr-route-summary{grid-template-columns:1fr}.fr-route .fr-route-list li{align-items:stretch;flex-direction:column}.fr-route .fr-route-list button{align-self:flex-start;margin-left:48px}.fr-route .fr-route-help,.fr-route .fr-route-group,.fr-route .fr-route-summary{padding:18px}}
.fr-lessons .fr-story{font-size:1.25rem;white-space:pre-line;line-height:1.65}
.fr-lessons .fr-lesson-footer{display:flex;justify-content:space-between;gap:18px;margin-top:24px}
.fr-lessons .fr-lesson-footer button{flex:1;min-height:56px}
.fr-lessons .fr-lesson-footer{display:flex;flex-wrap:wrap;align-items:stretch;gap:20px;padding-top:24px;border-top:1px solid #dce4d3}
.fr-lessons .fr-lesson-footer button{box-sizing:border-box;min-width:0;flex:1 1 220px;margin:0;padding:14px 20px;border-radius:14px;line-height:1.45;white-space:normal;font:inherit;cursor:pointer}
.fr-lessons .fr-next-stage{background:#dcef82;border:1px solid #a6bd5c;color:#193a2c}
.fr-lessons .fr-lesson-footer [data-complete]{background:#183e2b;border:1px solid #183e2b;color:#fff}
.fr-lessons .fr-route-help>.fr-route-links{margin-bottom:24px}
.fr-lessons .fr-route-help>.eyebrow{margin:0 0 24px;line-height:1.6}
.fr-lessons .fr-lesson-box label{display:block;margin:12px 0}
.fr-lessons .fr-lesson-box input[type=radio]{width:auto;min-width:0;display:inline-block;margin:0 10px 0 0;vertical-align:middle}
.fr-lessons .fr-card-pair{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;margin:20px 0}
.fr-lessons .fr-card-pair .fr-pair{border:1px solid #dce4d4;border-radius:16px;padding:20px}
.fr-lessons .fr-pair.selected{border:2px solid #d6b133;background:#fff7c9;box-shadow:0 7px 20px rgba(178,143,27,.12)}
.fr-lessons .fr-pair.learned{border:2px solid #6ba84d;background:#e5f6db;box-shadow:0 0 0 1px #b7dc9f}
.fr-lessons .fr-pair.selected [data-select]{background:#cee6be;border-color:#7da566}
.study-row.selected:not(.learned){border:2px solid #d6b133;background:#fff7c9;box-shadow:0 7px 20px rgba(178,143,27,.12)}
.study-row.learned{border:2px solid #6ba84d;background:#e5f6db;box-shadow:0 0 0 1px #b7dc9f}
.fr-lessons .fr-explanation{background:#f1f5df;padding:12px;margin:14px 0;border-left:3px solid #a0b54b}
@media(max-width:700px){.fr-lessons .fr-card-pair{grid-template-columns:1fr}}
.fr-lessons .fr-lesson-box input[type=text],.fr-lessons textarea,.fr-lessons select{font:inherit;max-width:100%;padding:12px;border:1px solid #bacbb1;border-radius:12px}
.fr-lessons input[data-form-answer]{display:block;box-sizing:border-box;width:100%;margin-top:12px;line-height:1.5}
.fr-lessons textarea{width:100%;min-height:130px}
.fr-lessons .fr-result{white-space:pre-line;margin-top:18px}
.fr-lessons .fr-pair{border-bottom:1px solid #dce4d4;padding:16px 0}
@media(max-width:600px){.fr-lessons .fr-lesson-box{padding:16px}.fr-lessons .fr-lesson-footer{gap:10px;flex-wrap:wrap}.fr-lessons .fr-lesson-footer button{flex-basis:42%}}

/* Scoped lesson layout: no changes to English tenses or shared form controls. */
.fr-lessons{max-width:1120px;margin-inline:auto;min-width:0}
.fr-lessons .fr-heading{margin-bottom:24px}
.fr-lessons .fr-heading h2{margin:6px 0 12px;font-size:clamp(30px,3.2vw,44px);line-height:1.15}
.fr-lessons .eyebrow{font-size:12px;letter-spacing:.07em;color:#637a6b;margin:0 0 10px}
.fr-lessons .fr-pilot-note{font-size:14px;line-height:1.6;color:#6b7c72;margin:0;max-width:70ch}
.fr-lessons .fr-navigation{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(0,1fr);gap:18px;padding:20px;background:#fffef9;border:1px solid #dce2d3;border-radius:20px}
.fr-lessons .fr-navigation label{display:flex;flex-direction:column;gap:8px;font-size:13px;font-weight:600;color:#637568;min-width:0;margin:0}
.fr-lessons .fr-navigation select{width:100%;min-width:0;min-height:52px;font-size:16px;color:#193a2c;background:#f6f8f0;padding:12px 36px 12px 14px;margin:0}
.fr-lessons .fr-goal{font-size:16px;line-height:1.6;color:#526b5d;margin:18px 4px 24px;max-width:75ch}
.fr-lessons .fr-lesson-box{padding:clamp(18px,3vw,36px);border-color:#dce2d3;border-radius:24px;box-shadow:0 8px 28px #193a2c05}
.fr-lessons .fr-lesson-box h3{font-size:clamp(20px,2vw,25px);line-height:1.35;margin:0 0 24px}
.fr-lessons .fr-reading{padding:clamp(18px,2.5vw,28px);background:#edf3e5;border:1px solid #dbe5d1;border-radius:18px;margin-bottom:30px}
.fr-lessons .fr-story{font-size:clamp(18px,1.6vw,22px);line-height:1.8;max-width:72ch;margin:0 0 20px}
.fr-lessons details{font-size:16px;line-height:1.7}
.fr-lessons summary{cursor:pointer;color:#416b55;font-weight:500;padding:8px 0;min-height:44px}
.fr-lessons summary:focus-visible{outline:3px solid #9db86b;outline-offset:3px;border-radius:6px}
.fr-lessons .fr-question-heading{font-size:13px;text-transform:uppercase;letter-spacing:.06em;color:#637568;margin:26px 0 20px;font-weight:600}
.fr-lessons .fr-question{min-width:0;border:1px solid #dce2d3;border-radius:18px;padding:12px 20px 20px;margin:0 0 24px;background:#fffef9}
.fr-lessons .fr-question legend{max-width:100%;padding:0 8px;font-size:17px;line-height:1.6;font-weight:600;color:#233d30;float:none;width:auto}
.fr-lessons .fr-question-number{display:inline-flex;align-items:center;justify-content:center;width:28px;height:28px;border-radius:50%;background:#e9efdf;color:#426448;font-size:13px;margin-right:7px}
.fr-lessons .fr-options{display:grid;gap:10px;margin-top:10px}
.fr-lessons .fr-lesson-box .fr-option{display:flex;align-items:center;gap:12px;min-height:52px;padding:13px 16px;border:1px solid #e0e6d9;border-radius:12px;background:#f8f9f3;cursor:pointer;font-size:16px;line-height:1.5;margin:0;transition:background .15s,border-color .15s}
.fr-lessons .fr-option:hover{background:#eff4e5;border-color:#a8bf91}
.fr-lessons .fr-option:has(input:checked){background:#e0efd7;border-color:#79a476;box-shadow:inset 0 0 0 1px #79a476}
.fr-lessons .fr-option:focus-within{outline:3px solid #bed28d;outline-offset:2px}
.fr-lessons .fr-lesson-box .fr-option input[type=radio]{flex:0 0 19px;width:19px;height:19px;margin:0;accent-color:#3d7354;box-shadow:none;padding:0}
.fr-lessons .fr-result:empty{display:none}
.fr-lessons .fr-result:not(:empty){background:#f0f4e7;border-radius:14px;padding:18px;line-height:1.7}
.fr-lessons .fr-lesson-footer{padding-top:24px;border-top:1px solid #e3e8dc;gap:16px}
.fr-lessons .fr-lesson-footer button{border-radius:14px;padding:14px 18px;font-size:16px;line-height:1.4}
.fr-lessons [id$="frLessonCheck"]{background:#193a2c;color:#fffef9;border:1px solid #193a2c}
.fr-lessons [id$="frLessonNext"]{background:#dcef82;color:#193a2c;border:1px solid #a6bd5c}
.fr-lessons .fr-study-bar{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:22px 24px;border:1px solid #dce2d3;border-radius:20px;background:#edf2e4;margin-top:20px}
.fr-lessons .fr-study-bar strong{font-size:16px}
.fr-lessons .fr-study-bar p{font-size:14px;color:#657669;max-width:55ch;line-height:1.6;margin:6px 0 0}
.fr-lessons .fr-study-bar>button{display:inline-flex;align-items:center;justify-content:center;gap:12px;flex:0 1 auto;min-height:56px;max-width:100%;padding:14px 24px;margin:0;border:1px solid #a6bd5c;border-radius:14px;background:#dcef82;color:#193a2c;font:inherit;line-height:1.45;white-space:normal;cursor:pointer}
.fr-lessons .fr-study-bar>button:focus-visible{outline:3px solid #71965c;outline-offset:3px}
.fr-lessons [id$="frLessonStudy"]{display:inline-flex;align-items:center;justify-content:center;gap:10px;flex-shrink:0;max-width:100%;padding:15px 20px;border-radius:14px;font:600 15px/1.45 inherit;min-height:52px;background:#dcef82;color:#193a2c;border:1px solid #a6bd5c;box-shadow:0 3px 0 #a6bd5c33;cursor:pointer;transition:background .15s,box-shadow .15s}
.fr-lessons [id$="frLessonStudy"]::before{content:'＋';display:inline-flex;align-items:center;justify-content:center;flex:0 0 26px;width:26px;height:26px;border-radius:50%;background:#193a2c12;font-size:20px;font-weight:400}
.fr-lessons [id$="frLessonStudy"]:hover{background:#d1e773;box-shadow:0 4px 10px #193a2c12}
.fr-lessons [id$="frLessonStudy"]:active{background:#c7df67;box-shadow:none}
.fr-lessons [id$="frLessonStudy"]:focus-visible{outline:3px solid #71965c;outline-offset:4px}
.fr-lessons [id$="frLessonStudy"]{font-family:inherit;font-size:15px;font-weight:600;line-height:1.45}
.fr-lessons button[data-fr-card]{display:inline-flex;align-items:center;justify-content:center;min-height:46px;max-width:100%;padding:11px 18px;margin-top:4px;border:1px solid #a5bd91;border-radius:12px;background:#e5f1dc;color:#294d36;font-family:inherit;font-size:15px;font-weight:600;line-height:1.45;cursor:pointer;box-shadow:0 2px 0 #a5bd9126;transition:background .15s,border-color .15s}
.fr-lessons button[data-fr-card]:hover{background:#d8eacb;border-color:#7fa26a}
.fr-lessons button[data-fr-card]:active{background:#cce1bc;box-shadow:none}
.fr-lessons button[data-fr-card]:focus-visible{outline:3px solid #a9c578;outline-offset:3px}
.fr-lessons button[data-fr-card][aria-pressed=true]{background:#edf2e7;color:#50694a;border-color:#c1d0b4;box-shadow:none}
@media(prefers-reduced-motion:reduce){.fr-lessons button[data-fr-card],.fr-lessons [id$="frLessonStudy"]{transition:none}}
.fr-lessons .fr-lesson-sound{display:inline-flex;align-items:center;justify-content:center;vertical-align:middle;min-width:46px;min-height:46px;margin-left:10px;border:1px solid #86b9d3;border-radius:12px;background:#e8f5fc;color:#246083;padding:10px;cursor:pointer}
.fr-lessons .fr-lesson-sound:disabled{opacity:.5;cursor:not-allowed}
.fr-lessons .fr-card-actions{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin-top:16px}
.fr-lessons .fr-card-actions button{margin:0;min-height:46px}
.fr-lessons .fr-known{padding:11px 16px;border:1px solid #c3ae54;border-radius:12px;background:#fffcef;color:#76601b;font:inherit;font-size:15px;font-weight:600;line-height:1.45;cursor:pointer}
.fr-lessons .fr-known:hover{background:#f6efce}
.fr-lessons .fr-known:focus-visible{outline:3px solid #c3ae54;outline-offset:3px}
.fr-lessons .fr-known:disabled{background:#f0f2e9;color:#687861;border-color:#c7d1bd;cursor:default}
.fr-lessons .fr-text-audio{display:inline-flex;align-items:center;gap:6px;background:#e8f5fc;color:#246083;border:1px solid #86b9d3;border-radius:10px;padding:8px 12px;min-height:38px;font:inherit;font-size:14px;line-height:1.35;font-weight:600;cursor:pointer;margin:4px 10px 12px 0;vertical-align:middle;max-width:100%;white-space:normal}
.fr-lessons .fr-text-audio[aria-pressed=true]{background:#d5ebd8;border-color:#79a476;color:#294d36}
.fr-lessons .fr-dictation{display:flex;align-items:center;gap:16px;flex-wrap:wrap;margin:16px 0 22px}
.fr-lessons .fr-dictation-mic{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:38px;padding:8px 12px;background:#e8f5fc;color:#246083;border:1px solid #86b9d3;border-radius:10px;font:inherit;font-size:14px;line-height:1.35;font-weight:600;cursor:pointer}
.fr-lessons .fr-dictation-mic svg{width:20px;height:20px;flex-shrink:0}
.fr-lessons .fr-dictation-mic[aria-pressed=true]{background:#bcebdc;color:#164d3c;border-color:#378b73;box-shadow:0 0 0 4px #8ad8bd66}
.fr-lessons .fr-dictation-mic:focus-visible{outline:3px solid #71965c;outline-offset:4px}
.fr-lessons .fr-dictation-mic:disabled{opacity:.55;cursor:not-allowed}
.fr-lessons .fr-dictation-status{flex:1 1 240px;max-width:65ch;margin:0;font-size:14px;line-height:1.6;color:#526b5d}
@media(max-width:720px){
 .fr-lessons .fr-navigation{grid-template-columns:1fr;padding:16px;gap:16px}
 .fr-lessons .fr-study-bar{align-items:stretch;flex-direction:column;padding:18px;gap:16px}
 .fr-lessons .fr-question{padding:10px 12px 14px}
 .fr-lessons .fr-question legend{font-size:16px;padding:0 4px}
 .fr-lessons .fr-lesson-box .fr-option{padding:12px;font-size:16px}
 .fr-lessons .fr-lesson-footer{gap:12px}
}
@media(prefers-reduced-motion:reduce){.fr-lessons .fr-option{transition:none}}
:is(.french-simple-navigation,.english-simple-navigation,.german-simple-navigation) .fr-nav-entry{gap:12px}:is(.french-simple-navigation,.english-simple-navigation,.german-simple-navigation) .fr-nav-avatar{display:grid;place-items:center;flex:0 0 34px;width:34px;height:34px;border-radius:11px;background:#e4edcf;color:#315b43}:is(.french-simple-navigation,.english-simple-navigation,.german-simple-navigation) .fr-nav-entry:is([data-panel="frgrammar"],[data-panel="englishGrammar"],[data-panel="germanGrammar"]) .fr-nav-avatar{background:#e4eef2;color:#356578}.french-simple-navigation .fr-nav-entry[data-panel="frroute"] .fr-nav-avatar{background:#edf2c9;color:#52612d}:is(.french-simple-navigation,.english-simple-navigation,.german-simple-navigation) .fr-nav-entry.active .fr-nav-avatar{background:#cce8b4;color:#183e2b}
.fr-grammar-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;margin-top:24px}.fr-grammar-grid article{display:flex;flex-direction:column;align-items:flex-start;padding:24px;border:1px solid #d3dfc9;border-radius:22px;background:#fffef8;min-width:0}.fr-grammar-grid h3{margin:0;font-size:1.35rem}.fr-grammar-grid p{color:#61756b;line-height:1.55;flex:1}
.fr-grammar-hub button,.fr-location button,.fr-phrase-practice button{font:inherit;cursor:pointer;border:1px solid #a6c18c;border-radius:12px;background:#e5f0da;color:#234a35;padding:12px 18px;min-height:46px;font-weight:600}.fr-phrase-practice{margin:0 0 18px}.fr-location{display:flex;align-items:center;flex-wrap:wrap;gap:10px;margin:12px 0 20px;color:#61756b;font-size:.95rem}.fr-location[hidden]{display:none}.fr-location button{padding:8px 12px;background:#fffef8;min-height:44px}
.fr-grammar-hub button:focus-visible,.fr-location button:focus-visible,.fr-phrase-practice button:focus-visible{outline:3px solid #378b73;outline-offset:3px}@media(max-width:600px){.fr-grammar-grid{grid-template-columns:1fr}}
/* Compact auxiliary actions; primary lesson navigation stays unchanged. */
.fr-lessons .fr-route-back,.fr-route .fr-route-list button,.fr-route .fr-route-links button,.fr-route .fr-mixed-checkpoint button,.fr-route .fr-mixed-primary,.fr-grammar-hub button,.fr-phrase-practice button{min-height:38px;padding:8px 12px;font-size:14px;line-height:1.35;border-radius:10px}
.fr-location{position:relative;gap:10px;line-height:1.5;margin:20px 0 30px;padding:0;clear:both}
.fr-location button{display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;min-height:38px;padding:8px 12px;font-size:14px;line-height:1.35;border-radius:10px}
.fr-location button[data-fr-go="home"]{background:#dff0ce;border-color:#95b875;color:#244d32;font-weight:700;box-shadow:0 2px 0 #95b87526}
.fr-location button[data-fr-go="home"]:hover{background:#cfe7b8;border-color:#7da15c}
.fr-route .fr-lesson-footer:has([data-mixed-next]){display:grid;grid-template-columns:repeat(2,minmax(0,220px));justify-content:space-between;gap:12px}
.fr-route .fr-lesson-footer button[data-mixed-prev],.fr-route .fr-lesson-footer button[data-mixed-next]{box-sizing:border-box;width:100%;min-width:0;min-height:44px;padding:9px 12px;border-radius:10px;font-family:inherit;font-size:14px;font-weight:600;line-height:1.35;cursor:pointer;box-shadow:none}
.fr-route .fr-lesson-footer button[data-mixed-prev]{background:#fffef8;border:1px solid #acc58f;color:#31533c}
.fr-route .fr-lesson-footer button[data-mixed-next]{background:#dcef82;border:1px solid #a6bd5c;color:#193a2c}
.fr-route .fr-lesson-footer button[data-mixed-next]:hover{background:#d1e773}
.fr-route .fr-lesson-footer button[data-mixed-prev]:disabled{background:#f3f4ed;border-color:#dce2d3;color:#899484;opacity:1;cursor:default}
@media(pointer:coarse){.fr-lessons .fr-dictation-mic,.fr-route .fr-lesson-footer button[data-mixed-prev],.fr-route .fr-lesson-footer button[data-mixed-next]{min-height:44px}}
.fr-route .fr-dictation{display:grid;grid-template-columns:minmax(0,1fr);align-items:start;gap:8px;margin:16px 0}
.fr-route .fr-dictation-mic,.fr-route button[data-mixed-reveal]{box-sizing:border-box;width:220px;max-width:100%;min-height:44px;justify-content:center}
.fr-route [data-mixed-mic-status]{margin:0;max-width:72ch;font-size:13px;line-height:1.5;color:#61756b;overflow-wrap:anywhere}
/* Override the shared shell's !important nav margin, which removed this gap. */
:is(.french-simple-navigation,.english-simple-navigation) .shell>nav.fr-location:not(.tabs){margin:16px 0 28px!important;font-size:13px}
:is(.french-simple-navigation,.english-simple-navigation) .fr-location button{min-height:30px;padding:5px 9px;font-size:13px;line-height:1.3;border-radius:8px}
@media(pointer:coarse){.fr-lessons .fr-text-audio,.fr-lessons .fr-route-back,.fr-route .fr-route-list button,.fr-route .fr-route-links button,.fr-route .fr-mixed-checkpoint button,.fr-route .fr-mixed-primary,.fr-grammar-hub button,.fr-phrase-practice button,.fr-location button{min-height:44px}}
