:root{--paper:#f8f6f0;--ink:#20382f;--green:#244d40;--soft:#e8eee5;--yellow:#eecb69;--line:#dedfd5;--muted:#727b71;--white:#fffefb;--red:#a03b35}*{box-sizing:border-box}body{margin:0;background:var(--paper);color:var(--ink);font:15px/1.6 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}button,input,select,textarea{font:inherit}button,a,input,textarea,select{outline-offset:4px}button{cursor:pointer}button:disabled{cursor:wait;opacity:.55}a{color:var(--green)}h1,h2,h3,p{margin-top:0}h1,h2{font-family:Georgia,"Times New Roman",serif;font-weight:normal;line-height:1.15}h1{font-size:46px;letter-spacing:-1.6px}h2{font-size:30px}h3{font-size:18px;line-height:1.4}small,.muted{color:var(--muted)}.loading{text-align:center;padding:20vh 20px;font:36px Georgia}.brand{display:flex;align-items:center;gap:12px;font-weight:650;line-height:1.2;font-size:15px}.brandmark{display:grid;place-items:center;background:var(--green);color:var(--paper);border-radius:14px;width:44px;height:44px;font:30px Georgia}.brand small{display:block;font-size:10px;font-weight:500;letter-spacing:2px;text-transform:uppercase;margin-top:5px}.shell{display:grid;grid-template-columns:244px 1fr;min-height:100vh}.sidebar{background:#f0f1e9;border-right:1px solid var(--line);padding:32px 24px;display:flex;flex-direction:column;position:sticky;top:0;height:100vh}.nav{margin-top:45px;display:grid;gap:8px}.nav button{background:transparent;border:0;color:var(--muted);text-align:left;padding:12px 15px;border-radius:9px;font-weight:550}.nav button.active{background:var(--green);color:white}.nav button:hover:not(.active){background:var(--soft)}.navicon{display:inline-block;width:27px;font-size:17px}.sidebar-foot{margin-top:auto;padding-top:30px}.avatar{background:var(--yellow);border-radius:50%;width:35px;height:35px;display:grid;place-items:center;font-weight:700;flex-shrink:0}.profile{display:flex;gap:10px;align-items:center;margin-bottom:15px}.profile strong{display:block;font-size:13px;overflow-wrap:anywhere}.profile small{font-size:11px}.main{padding:26px 48px 60px;max-width:1450px;width:100%;margin:auto}.topbar{display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid var(--line);padding-bottom:22px;margin-bottom:38px;font-size:12px;color:var(--muted)}.topbar .schooltag{border:1px solid var(--line);padding:4px 10px;border-radius:20px}.eyebrow{font-size:11px;letter-spacing:2px;font-weight:650;text-transform:uppercase;color:var(--muted);margin-bottom:14px}.page-head{display:flex;justify-content:space-between;align-items:center;gap:25px;margin-bottom:30px}.page-head h1{margin-bottom:10px}.page-head p{color:var(--muted);max-width:620px;margin:0}.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;border:1px solid var(--green);border-radius:8px;background:var(--green);color:white;padding:10px 18px;font-weight:550;text-decoration:none;white-space:nowrap}.btn.secondary{background:transparent;color:var(--green);border-color:var(--line)}.btn.danger{background:transparent;border-color:#e3b5b0;color:var(--red)}.btn.small{padding:7px 12px;font-size:12px}.linkbutton{background:none;border:0;color:var(--green);padding:0;text-decoration:underline}.stats{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;margin-bottom:28px}.stat{border:1px solid var(--line);border-radius:12px;padding:20px 24px;background:var(--white)}.stat span{display:block;color:var(--muted);font-size:12px}.stat strong{font:38px Georgia;display:block;margin-top:12px}.hero{border-radius:16px;background:var(--green);color:var(--paper);padding:32px 36px;position:relative;overflow:hidden;margin-bottom:32px;display:flex;justify-content:space-between;align-items:center;gap:30px}.hero h2{max-width:500px;font-size:34px;margin-bottom:15px}.hero p{max-width:500px;color:#d2dfd2;font-size:13px;margin:0}.hero .eyebrow{color:#c9d8bd}.hero .btn{background:var(--yellow);color:var(--ink);border-color:var(--yellow);margin-top:24px}.hero-art{width:150px;flex-shrink:0;font:110px Georgia;letter-spacing:-10px;color:var(--yellow);border:1px solid #6d887b;border-radius:50%;height:150px;text-align:center;line-height:135px;transform:rotate(-10deg)}.sectionhead{display:flex;justify-content:space-between;align-items:center;margin:25px 0 16px}.sectionhead h2{font-size:26px;margin:0}.cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.card{padding:24px;background:var(--white);border:1px solid var(--line);border-radius:12px;display:flex;flex-direction:column;gap:12px}.card h3{margin:0;font-size:20px;font-family:Georgia;font-weight:normal;overflow-wrap:anywhere}.card p{font-size:13px;color:var(--muted);margin:0}.card-foot{display:flex;gap:8px;flex-wrap:wrap;margin-top:auto;padding-top:15px}.badge{display:inline-block;font-size:11px;padding:3px 9px;border-radius:6px;background:var(--soft);color:var(--green);font-weight:600}.badge.level{background:#eee8db;color:#766447;align-self:flex-start}.badge.submitted{background:#fbefd0;color:#80632b}.badge.reviewed{background:#e2eddd;color:#3c6a35}.badge.revision{background:#f4e2de;color:#944f46}.empty{border:1px dashed #c7cec1;border-radius:12px;padding:40px;text-align:center;background:#f1f3ec}.empty h3{font-family:Georgia;font-weight:normal;font-size:24px;margin-bottom:10px}.empty p{color:var(--muted);max-width:550px;margin:0 auto 20px}.toolbar{display:flex;gap:12px;margin-bottom:20px}.toolbar input{max-width:420px}.field{display:grid;gap:6px;margin-bottom:16px}.field label{font-size:12px;font-weight:600}input,textarea,select{width:100%;border:1px solid #d4d9ce;border-radius:8px;background:var(--white);padding:10px 12px;color:var(--ink)}textarea{min-height:95px;resize:vertical}input:focus,textarea:focus,select:focus{border-color:var(--green)}.formgrid{display:grid;grid-template-columns:1fr 1fr;gap:16px}.panel{background:var(--white);border:1px solid var(--line);border-radius:12px;padding:26px;margin-bottom:20px}.editor{max-width:920px}.block{background:var(--white);border:1px solid var(--line);border-radius:12px;padding:25px;margin-bottom:18px}.blockhead{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:18px}.blockhead strong{font-size:12px}.blocktools{display:flex;gap:5px}.iconbtn{border:1px solid var(--line);background:transparent;border-radius:6px;color:var(--muted);padding:3px 8px;font-size:13px}.addtypes{display:flex;gap:9px;flex-wrap:wrap;border:1px dashed #b7c3b0;padding:20px;border-radius:10px;margin-bottom:24px}.editorfooter{display:flex;gap:12px;align-items:center;flex-wrap:wrap}.row{display:flex;align-items:center;gap:12px;border-bottom:1px solid var(--line);padding:17px 0}.row:last-child{border:0}.row .grow{flex:1;min-width:0;overflow-wrap:anywhere}.row strong{display:block}.row small{font-size:12px}.answers{display:grid;gap:10px;margin:18px 0}.option{border:1px solid var(--line);border-radius:8px;padding:12px 16px;display:flex;align-items:center;gap:12px;cursor:pointer}.option:has(input:checked){background:var(--soft);border-color:var(--green)}.option input{width:auto;accent-color:var(--green)}.prose{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.8}.exercise-number{font-size:11px;letter-spacing:1px;color:var(--muted);margin-bottom:12px}.feedback{background:#edf2e8;border-left:3px solid var(--green);padding:18px 22px;margin-bottom:20px;border-radius:0 9px 9px 0;white-space:pre-wrap}.correct{font-size:12px;color:#3c6a35;margin-top:12px}.answer-value{background:var(--paper);border-radius:8px;padding:15px;white-space:pre-wrap}.auth{display:grid;grid-template-columns:1.15fr 1fr;min-height:100vh}.auth-left{padding:55px 65px;background:var(--green);color:var(--paper);display:flex;flex-direction:column;justify-content:space-between;position:relative;overflow:hidden}.auth-left .brandmark{background:var(--yellow);color:var(--green)}.auth-left .brand small{color:#afc3b8}.auth-left h1{font-size:68px;max-width:550px;margin:50px 0 25px}.auth-left p{max-width:400px;color:#bed0c3}.auth-left footer{font-size:12px;color:#bed0c3}.auth-right{padding:50px;display:flex;align-items:center;justify-content:center}.auth-form{width:100%;max-width:380px}.auth-form h2{font-size:34px}.auth-form .btn{width:100%}.auth-form p{font-size:13px;color:var(--muted)}.auth-form .eyebrow{color:var(--green)}.error{color:var(--red);background:#faeae6;padding:12px;border-radius:8px;margin-bottom:15px;font-size:13px}.note{font-size:12px;color:var(--muted);margin-top:12px}.modal-backdrop{position:fixed;inset:0;background:#132c2599;display:grid;place-items:center;z-index:20;padding:20px;overflow:auto}.modal{background:var(--paper);border-radius:16px;padding:30px;max-width:540px;width:100%;max-height:90vh;overflow:auto}.modalhead{display:flex;justify-content:space-between;align-items:center;margin-bottom:20px}.modalhead h2{margin:0;font-size:28px}.invitelink{word-break:break-all;background:var(--soft);padding:15px;font-size:12px;border-radius:8px;margin:15px 0}.search-empty{padding:20px;color:var(--muted)}#toast{position:fixed;bottom:25px;right:25px;background:var(--green);color:white;padding:13px 20px;border-radius:9px;z-index:50;display:none;max-width:min(420px,90vw)}#toast.visible{display:block}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}audio{max-width:100%;width:100%;margin-top:15px}.auth-decoration{font:170px Georgia;color:#eecb69;opacity:.6;position:absolute;right:50px;bottom:100px;pointer-events:none;transform:rotate(-12deg)}.auth-content{position:relative;z-index:1}.saved{font-size:12px;color:var(--muted)}
@media(min-width:1500px){.main{padding-top:40px}}@media(max-width:1100px){.cards{grid-template-columns:repeat(2,1fr)}.main{padding:25px}.auth-left{padding:40px}.auth-left h1{font-size:54px}.auth-right{padding:35px}}@media(max-width:760px){h1{font-size:34px}.shell{display:block}.sidebar{position:static;height:auto;padding:18px;border-right:0;border-bottom:1px solid var(--line)}.brand{font-size:13px}.brandmark{width:35px;height:35px;font-size:24px}.nav{margin-top:20px;display:flex;overflow-x:auto;gap:5px}.nav button{white-space:nowrap;padding:9px 12px;font-size:12px}.navicon{width:20px}.sidebar-foot{display:none}.main{padding:20px 18px}.topbar{margin-bottom:25px;padding-bottom:15px}.page-head{align-items:flex-start;flex-wrap:wrap;gap:15px}.stats{gap:8px}.stat{padding:15px 12px}.stat strong{font-size:30px}.stat span{font-size:10px}.cards{grid-template-columns:1fr}.hero{padding:25px}.hero h2{font-size:29px}.hero-art{display:none}.formgrid{grid-template-columns:1fr;gap:0}.panel,.block{padding:19px}.auth{display:block}.auth-left{padding:25px 28px}.auth-left h1{font-size:35px;margin:35px 0 12px;max-width:100%}.auth-left p{margin-bottom:0}.auth-left footer,.auth-decoration{display:none}.auth-right{padding:32px 25px}.auth-form{max-width:450px}.row{align-items:flex-start}.row .btn{font-size:11px;padding:5px 8px}.modal{padding:22px}.editorfooter .btn{width:100%}.toolbar{flex-wrap:wrap}}

.day-number{display:grid;place-items:center;width:48px;flex-shrink:0;padding:7px;background:var(--soft);border-radius:9px;font:25px Georgia}.day-number small{font:10px sans-serif}.stat strong.date-stat{font-size:27px}hr{border:0;border-top:1px solid var(--line);margin:24px 0}

.integration{margin-top:20px}.integration-frame{display:block;width:100%;height:480px;border:1px solid var(--line);border-radius:10px;margin-bottom:16px;background:white}.practice-result{margin-top:12px;font-weight:600}.practice-result.success{color:#3c6a35}.practice-result.retry{color:#944f46}@media(max-width:760px){.integration-frame{height:440px}}
.editor-heading{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:24px}.editor-heading h1{font-size:34px;margin:0}.editor-actions{display:flex;gap:8px;flex-wrap:wrap;align-items:center}.lesson-meta{padding:20px 24px}.lesson-meta .field{margin-bottom:10px}.lesson-workspace{display:grid;grid-template-columns:225px minmax(0,1fr);gap:28px;align-items:start}.lesson-outline{position:sticky;top:22px;background:var(--white);border:1px solid var(--line);border-radius:12px;padding:15px}.outline-label{font-size:11px;letter-spacing:1.3px;text-transform:uppercase;color:var(--muted);padding:8px 9px 18px}.outline-row{margin-bottom:9px}.section-tab{width:100%;text-align:left;border:1px solid transparent;border-radius:8px;background:transparent;color:var(--ink);padding:12px;display:grid;grid-template-columns:25px 1fr;gap:4px}.section-tab span{font-size:11px;color:var(--muted)}.section-tab strong{font-size:13px;overflow-wrap:anywhere}.section-tab small{grid-column:2;font-size:10px}.section-tab.selected{background:var(--soft);border-color:#b9c8b1}.section-tab:hover{background:var(--soft)}.section-controls{display:flex;justify-content:flex-end;gap:5px;margin:5px 0}.lesson-outline>.btn{margin-top:12px;width:100%;font-size:12px}.section-canvas{min-width:0}.section-heading{display:flex;align-items:center;gap:15px;margin-bottom:20px}.section-heading>.field{flex:1;margin:0}.section-heading>.btn{font-size:11px}.section-heading input{font-family:Georgia;font-size:24px;padding:12px 15px}.section-empty{padding:42px 25px;text-align:center;border:1px dashed #c1ccbb;border-radius:12px;background:#f1f3ec;margin-bottom:22px}.section-empty h2{font-size:29px;margin-bottom:12px}.section-empty p{font-size:13px;color:var(--muted);margin:0}.exercise-palette{background:var(--white);border:1px solid var(--line);border-radius:12px;padding:22px}.exercise-palette h3{font-size:12px;text-transform:uppercase;letter-spacing:1px;color:var(--muted);margin-bottom:18px}.palette-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.palette-item{background:var(--paper);border:1px solid var(--line);color:var(--ink);border-radius:8px;padding:14px 8px;display:flex;gap:9px;align-items:center;font-size:12px;text-align:left}.palette-item span{background:var(--soft);display:grid;place-items:center;width:27px;height:27px;border-radius:7px;font-weight:bold;color:var(--green);flex-shrink:0}.palette-item:hover{border-color:var(--green);background:var(--soft)}.reading-heading{margin-bottom:24px}.reading-heading h2{font-size:32px}.section-canvas .integration-frame{height:430px}.section-canvas .block{padding:23px}
@media(max-width:1100px){.lesson-workspace{grid-template-columns:190px minmax(0,1fr);gap:16px}.palette-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.editor-heading{align-items:flex-start;flex-direction:column}}@media(max-width:760px){.lesson-workspace{display:block}.lesson-outline{position:static;margin-bottom:22px}.outline-row{margin-bottom:5px}.section-controls{display:none}.section-tab{grid-template-columns:25px 1fr auto}.section-tab small{grid-column:3;align-self:center}.editor-heading h1{font-size:28px}.editor-actions .btn{padding:8px 12px;font-size:12px}.section-heading{align-items:flex-start;flex-direction:column}.section-heading>.field{width:100%}.section-heading input{font-size:22px}.palette-item{padding:12px 9px}.section-canvas .integration-frame{height:350px}}
/* Hauptsache Deutsch · light violet visual builder */
:root{--paper:#f6f7fb;--ink:#25253d;--green:#7658e5;--soft:#efebff;--yellow:#c8f0df;--line:#e6e7f0;--muted:#8b8b9e;--white:#ffffff;--red:#d75e72}body{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;font-size:14px;line-height:1.55}h1,h2,h3{font-family:inherit;font-weight:650;letter-spacing:-.7px}h1{font-size:36px;line-height:1.2}h2{font-size:25px}h3{letter-spacing:-.2px}.shell{grid-template-columns:225px 1fr}.sidebar{background:white;padding:30px 20px;border-right:1px solid #ebebf2}.brand{font-size:13px;gap:10px;color:#303046}.brandmark{background:#7658e5;border-radius:13px;box-shadow:0 5px 13px #7658e526;font:28px Georgia;color:white}.brand small{font-size:8px;letter-spacing:1.3px;color:#9292a4}.nav{margin-top:40px;gap:5px}.nav button{border-radius:10px;color:#858499;padding:13px 15px;font-size:13px}.nav button.active{background:#eeebff;color:#7353dd}.nav button:hover:not(.active){background:#f7f6fc}.navicon{color:#a49bbf}.nav button.active .navicon{color:#7353dd}.avatar{background:#f0ecff;color:#7658e5}.profile strong{font-size:12px}.sidebar-foot .linkbutton{text-decoration:none;color:#9895ac;font-size:11px}.main{max-width:1550px;margin:0 auto;padding:24px 38px 60px}.topbar{margin-bottom:28px;border-bottom:0;color:#9c9aac;padding-bottom:8px}.schooltag{background:white;border:0!important;box-shadow:0 2px 7px #29244705;color:#88839e;font-size:10px}.eyebrow{letter-spacing:1.3px;font-size:10px;color:#a9a3bb}.page-head{margin-bottom:28px}.page-head h1{font-size:34px;margin-bottom:9px}.page-head p{font-size:13px;color:#9792a7}.btn{background:#7658e5;border-color:#7658e5;border-radius:9px;font-size:12px;padding:10px 15px;box-shadow:0 4px 10px #7658e517}.btn:hover{background:#6849d7}.btn.secondary{background:white;border-color:#e7e4f1;color:#79708e;box-shadow:none}.btn.secondary:hover{border-color:#b8a9ea;color:#7658e5;background:#fbfaff}.btn.danger{box-shadow:none;color:#d75e72}.hero{background:linear-gradient(110deg,#8062e8,#9c82ee);padding:32px 35px;border-radius:18px;box-shadow:0 12px 25px #7962bf12;min-height:185px}.hero h2{font-family:inherit;font-size:30px;max-width:590px;letter-spacing:-.8px}.hero p{color:#eae4ff;max-width:560px}.hero .eyebrow{color:#e6ddff}.hero-art{font-family:Georgia;color:#e2d4ff;border:0;background:#ffffff12;width:160px;height:160px;border-radius:36px;line-height:140px;transform:rotate(12deg);font-size:112px}.card{padding:22px;border-radius:15px;border:1px solid #e8e6f2;box-shadow:0 5px 16px #33235904;transition:transform .15s,box-shadow .15s;gap:11px}.card:hover{transform:translateY(-3px);box-shadow:0 11px 25px #3323590c}.card h3{font-family:inherit;font-size:18px;font-weight:650;line-height:1.4}.card p{font-size:12px;line-height:1.7}.badge.level{color:#886be1;background:#f1edff;border-radius:5px;padding:4px 9px;font-size:10px}.badge{font-size:10px;font-weight:550;border-radius:6px;background:#efebff;color:#8c70d7}.stat{background:white;border:1px solid #eae7f1;padding:18px 22px;border-radius:12px;box-shadow:0 3px 15px #36245803}.stat strong{font-family:inherit;font-size:30px;color:#68538f;font-weight:600}.stat span{font-size:11px;color:#9c96ac}.stat strong.date-stat{font-size:24px}.sectionhead h2{font-size:20px;font-weight:650}.panel,.block{border:1px solid #e8e5ef;border-radius:13px;box-shadow:0 3px 15px #36245803}.row{padding:20px 0;border-color:#f0edf5}.day-number{background:#f0ebfd;color:#947ae0;border-radius:11px;font-family:inherit;font-size:23px;font-weight:600}.day-number small{color:#a18dc2;font-size:9px}.row strong{font-size:13px}.row small{font-size:11px}.empty{background:#faf9fe;border-color:#ded6f0;border-radius:15px}.empty h3{font-family:inherit;font-size:22px;font-weight:600}.empty p{font-size:13px}.field label{font-size:11px;color:#79738c;font-weight:550}input,textarea,select{border-color:#e5e1ed;background:#fcfbff;border-radius:8px;padding:11px 13px;font-size:13px;color:#4c4265}input:focus,textarea:focus,select:focus{border-color:#b19be9;outline:2px solid #eee8fc}textarea{line-height:1.7}.note{color:#a19bb1;font-size:11px}.modal-backdrop{background:#25233d66;backdrop-filter:blur(5px)}.modal{background:white;box-shadow:0 25px 90px #27203a38;border-radius:18px;padding:28px}.modalhead h2{font-size:24px;letter-spacing:-.5px}.iconbtn{border-color:#ede9f3;background:#fff;color:#a29aaf;border-radius:6px}.iconbtn:hover{color:#7658e5;background:#f6f2ff}.auth-left{background:linear-gradient(145deg,#7051d6,#a185f0)}.auth-left h1{font-family:inherit;letter-spacing:-3px;font-size:65px;font-weight:650;line-height:1.1}.auth-left .brand{color:white}.auth-left .brandmark{background:#ffffff26;color:white;box-shadow:none}.auth-left .brand small{color:#e4d7ff}.auth-left p,.auth-left footer{color:#e4d7ff}.auth-decoration{color:#d8c7ff}.auth-form h2{font-family:inherit;font-weight:650;font-size:31px}.auth-right{background:#faf9fe}#toast{background:#6d53c3;box-shadow:0 8px 30px #4b377b26;font-size:12px}.editor-heading{margin-bottom:20px;gap:16px}.editor-heading h1{font-size:29px;letter-spacing:-.6px;font-weight:650}.editor-actions{gap:8px}.save-status{font-size:10px;color:#aca4bb;padding-right:6px}.compact-meta{padding:0;margin-bottom:22px;background:transparent;border:0;box-shadow:none}.compact-meta summary{cursor:pointer;font-size:11px;color:#82788f;list-style:none;padding:12px 0;border-bottom:1px solid #e9e3f0}.compact-meta summary:before{content:'⚙';margin-right:8px;color:#b3a5cf}.compact-meta summary span{color:#b2a9bf;font-size:10px;margin-left:15px}.compact-meta[open] .lesson-meta-content{padding:18px;background:white;border:1px solid #ebe5f4;border-radius:0 0 12px 12px}.lesson-workspace{grid-template-columns:210px minmax(0,1fr);gap:25px}.lesson-outline{background:transparent;box-shadow:none;border:0;padding:0;top:20px}.outline-label{padding:7px 10px 20px;font-size:10px;color:#a99cbb}.outline-row{margin-bottom:8px}.section-tab{background:transparent;padding:13px 12px;border-radius:10px;gap:6px;grid-template-columns:24px 1fr}.section-tab strong{font-size:12px;color:#777088;font-weight:550}.section-tab span{color:#c1b3d0;font-size:10px}.section-tab small{font-size:10px;color:#b1a4be}.section-tab.selected{border-color:#daccf3;background:white;box-shadow:0 4px 16px #7b5bad0a}.section-tab.selected strong{color:#7955c8}.section-controls{margin:4px 5px}.section-controls .iconbtn{padding:1px 7px;background:transparent;border-color:transparent;font-size:10px;color:#c3b7d3}.lesson-outline>.btn{background:transparent;border:1px dashed #d7cbe9;color:#b09bc7;margin-top:17px}.section-heading{margin-bottom:16px}.section-heading input{font-family:inherit;font-size:23px;font-weight:600;letter-spacing:-.5px;background:transparent;border:1px solid transparent;padding:4px 0;color:#504166;box-shadow:none;outline:0}.section-heading input:hover{border-bottom-color:#d3c3e6}.section-heading input:focus{border-bottom-color:#9c79d1;border-radius:0}.section-heading .field label{display:none}.section-heading .btn{font-size:10px;padding:6px 9px;border:0;background:transparent;color:#b4a2c7}.canvas-label{display:flex;justify-content:space-between;align-items:center;margin:0 0 19px;gap:15px}.canvas-label>span{font-size:10px;color:#b0a1bd}.canvas-label>.btn{padding:7px 10px;font-size:10px;background:#ece5fa;color:#9373ba;border:0}.section-empty{background:white;border:1px dashed #d9caea;min-height:225px;padding:50px 25px;border-radius:15px}.section-empty h2{font-size:24px;color:#8c75a5}.section-empty p{font-size:12px;color:#b0a0bf}.exercise-card{border:1px solid #e9e3f3;background:white;box-shadow:0 5px 18px #49346906;border-radius:14px;overflow:visible;transition:border .15s}.exercise-card.is-editing{border-color:#bba1e9;box-shadow:0 7px 25px #9577c312}.exercise-card-head{display:flex;justify-content:space-between;align-items:center;padding:14px 18px;border-bottom:1px solid #f4f0f8;gap:12px}.exercise-identity,.exercise-card-actions{display:flex;align-items:center;gap:10px}.drag-grip{background:none;border:0;color:#c5b5d6;font-size:20px;cursor:grab;padding:0}.exercise-number-pill{font-size:10px;background:#f1ebfb;color:#b195d2;padding:4px 7px;border-radius:5px}.exercise-type-label{font-size:10px;color:#b39ec7}.exercise-card-actions .iconbtn{border:0;background:transparent;font-size:15px;color:#b8a4ce}.exercise-card-body{padding:24px 28px}.exercise-card-body h3{font-size:16px;color:#614975;margin-bottom:13px}.exercise-prompt{font-size:14px;white-space:pre-wrap;line-height:1.85;color:#71647d}.visual-options{display:grid;gap:10px;margin-top:20px;max-width:550px}.visual-option{display:flex;align-items:center;gap:12px;padding:10px 14px;border:1px solid #ebe5f2;border-radius:8px;font-size:12px;color:#8a779b}.visual-option.correct-option{border-color:#d2eade;background:#f4fcf7;color:#88b19a}.option-circle{width:13px;height:13px;border:1px solid #ccb9dc;border-radius:50%;flex-shrink:0}.correct-option .option-circle{border:4px solid #adcfba}.visual-answer{margin-top:20px;max-width:380px;border:1px solid #ece5f3;color:#c4b5cf;padding:12px 15px;border-radius:8px;font-size:11px}.visual-writing{margin-top:20px;border:1px dashed #ddd0eb;padding:25px;font-size:11px;color:#baa7ca;border-radius:8px}.visual-cloze{font-size:15px;line-height:2;margin-top:15px;color:#9580a6}.gap-placeholder{display:inline-block;border-bottom:2px solid #c8b3e0;min-width:55px;color:#bfa2d5;text-align:center;margin:0 5px}.visual-pairs{display:grid;grid-template-columns:1fr 25px 1fr;gap:10px;align-items:center;margin-top:20px;font-size:12px}.visual-pairs>div{border:1px solid #e9e1f2;padding:10px 15px;border-radius:7px;color:#9a81ac}.visual-pairs>span{text-align:center;color:#cab8db}.media-preview{display:flex;align-items:center;gap:16px;background:#f4f0fc;border:1px solid #e8dff6;border-radius:10px;padding:22px;margin-top:20px}.media-symbol{display:grid;place-items:center;width:45px;height:45px;border-radius:11px;background:white;color:#b198d4;font-size:23px;font-weight:650}.media-preview strong{font-size:13px;color:#977db3}.media-preview small{font-size:10px;color:#b8a5c9;display:block;margin-top:5px}.media-play{margin-left:auto;color:#c7b0dc;font-size:21px}.media-preview.youtube{background:#fff4f5;border-color:#f5e1e5}.youtube .media-symbol{color:#e7a5b2}.media-preview.gdrive{background:#f2faf6;border-color:#e1eee7}.gdrive .media-symbol{color:#9ac4b0}.exercise-form{padding:24px}.exercise-form textarea{background:white;min-height:95px;border-color:#e8def4}.exercise-form .field{margin-bottom:20px}.exercise-form-footer{border-top:1px solid #eee6f6;padding-top:18px;display:flex;align-items:center;gap:20px}.exercise-form-footer span{font-size:10px;color:#b3a2c2}.format-toolbar{display:flex;gap:5px;padding:8px;border:1px solid #e8def4;background:#faf7fe;border-radius:7px 7px 0 0}.format-toolbar button{border:0;background:transparent;color:#a089b9;min-width:26px;font-size:12px;padding:3px 7px;border-radius:4px}.format-toolbar button:hover{background:#eee5fa}.format-toolbar button:first-child{font-weight:700}.format-toolbar button:nth-child(2){font-style:italic}.format-toolbar+textarea{border-radius:0 0 7px 7px}.markup-help{font-size:10px;color:#b097c3;padding:10px;background:#faf6fe;border-radius:6px}.markup-help code{color:#9a73ba;font-size:10px}.between-insert{display:block;height:24px;margin:5px auto;border:0;background:transparent;color:#d4c1e3;font-size:21px;opacity:.5;cursor:pointer}.between-insert:hover{color:#946bbd;opacity:1}.add-exercise-large{display:grid;justify-items:center;gap:9px;width:100%;background:#faf7fe;border:1px dashed #dac9e9;border-radius:13px;padding:25px;color:#ad8ec5;margin-top:12px}.add-exercise-large>span{display:grid;place-items:center;background:white;border:1px solid #e5d6f3;width:34px;height:34px;border-radius:10px;font-size:21px;color:#b596d2}.add-exercise-large strong{font-size:12px;font-weight:550}.add-exercise-large small{font-size:9px;color:#c1aacf}.add-exercise-large:hover{background:#f2ebfc;border-color:#be9bdc}.exercise-menu{position:relative}.exercise-menu summary{list-style:none;cursor:pointer;color:#b5a0c9;font-size:22px;line-height:20px;padding:0 5px}.exercise-menu summary::-webkit-details-marker{display:none}.exercise-menu>div{position:absolute;right:0;top:30px;z-index:12;background:white;border:1px solid #e5d9f0;border-radius:10px;box-shadow:0 12px 35px #795b9626;padding:7px;width:195px;display:grid}.exercise-menu>div button{border:0;background:transparent;text-align:left;font-size:11px;color:#9c82b1;padding:9px 11px;border-radius:5px}.exercise-menu>div button:hover{background:#f2eafa}.exercise-menu>div button:last-child{color:#d295a8}.drag-over{outline:2px dashed #a783ce;outline-offset:4px}.template-modal{max-width:860px;padding:30px;max-height:88vh}.template-modal-heading p{font-size:12px;color:#a48cb6;margin:0 0 20px}.template-modal .modalhead{margin-bottom:10px}.template-modal .modalhead h2{color:#75558d;font-size:24px}.template-filters{display:flex;gap:8px;border-bottom:1px solid #eee4f5;padding-bottom:15px;margin-bottom:20px;flex-wrap:wrap}.template-filters button{border:0;background:transparent;color:#bea2cf;border-radius:7px;padding:8px 12px;font-size:11px}.template-filters button.selected{background:#f0e6fa;color:#a27abc}.template-catalogue{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px}.template-tile{border:1px solid #e9ddf2;border-radius:11px;background:white;padding:0;overflow:hidden;text-align:left;transition:transform .15s,box-shadow .15s}.template-tile:hover{border-color:#bd97d7;box-shadow:0 5px 15px #9272b41a;transform:translateY(-2px)}.template-tile[hidden]{display:none}.template-thumbnail{height:110px;background:#faf6fe;padding:20px;display:flex;flex-direction:column;gap:8px;justify-content:center;color:#c1a5d0;font-size:11px}.template-thumbnail b,.template-thumbnail strong{font-size:12px;font-weight:550;color:#ab86bd}.template-thumbnail i{height:5px;display:block;border-radius:4px;background:#eaddf2;width:90%}.template-thumbnail i.short{width:60%}.template-thumbnail span{font-size:10px}.template-thumbnail .highlight{background:#f0e1fa;padding:5px;border-radius:4px;color:#bc8fce}.template-thumbnail mark{background:#ecdbf8;color:#b18cc6;padding:3px 17px;border-radius:4px}.template-thumbnail em{color:#dbc0e7;padding:0 5px}.template-caption{display:flex;gap:8px;padding:14px;align-items:center;color:#b89acb;border-top:1px solid #f2e9f8}.template-caption strong{font-size:11px;font-weight:550}.template-caption>span{font-size:12px;background:#f2e7fa;border-radius:5px;width:23px;height:23px;display:grid;place-items:center;color:#c7a6de}.template-caption b{margin-left:auto;color:#d2b5e3;font-size:18px}.mock-input{background:white;padding:8px;border:1px solid #eadcf4;border-radius:5px;color:#d4b7e1}.mock-wordwall{font-size:22px!important;background:#e1d3f7;color:#b19acd;padding:13px;text-align:center;border-radius:10px;font-weight:650}.mock-flashcard{background:white;box-shadow:2px 2px 0 #e8dff7;border:1px solid #ece1f9;border-radius:6px;padding:14px;text-align:center;color:#c2a1d9}.mock-video{background:#f9e3eb;color:#e5b3c5!important;font-size:24px!important;border-radius:7px;padding:12px;text-align:center}.mock-file{color:#b0c9ba!important;background:#f1faf4;padding:13px;border:1px solid #dfeee5;border-radius:6px}.mock-player{padding:14px 0;color:#c7a8da}.cloze-exercise{line-height:3;margin-top:20px;font-size:16px}.inline-gap{display:inline-block;width:115px;padding:7px 10px;margin:0 5px;border-bottom:2px solid #cab7df;border-radius:6px;font-size:13px}.matching-exercise{display:grid;gap:12px;margin-top:20px}.matching-row{display:grid;grid-template-columns:1fr 1fr;gap:20px;align-items:center}.matching-row>span{padding:12px 15px;border:1px solid #e5d8f1;border-radius:8px;color:#aa8bbc}.matching-row select{font-size:12px}.prose{color:#786484}.practice-result.success{color:#8ab19b}.reading-heading h2{font-size:27px;color:#7e6391}
@media(max-width:1100px){.main{padding:22px 25px}.lesson-workspace{grid-template-columns:175px minmax(0,1fr);gap:18px}.editor-heading h1{font-size:26px}.exercise-card-body{padding:22px}.template-catalogue{grid-template-columns:repeat(3,minmax(0,1fr))}}@media(max-width:760px){.shell{display:block}.sidebar{padding:19px 20px}.brand{font-size:12px}.nav{margin-top:18px}.nav button{padding:8px 11px;font-size:11px}.main{padding:19px 17px}.hero{padding:26px;min-height:160px}.hero h2{font-size:27px}.page-head h1{font-size:29px}.editor-heading{gap:12px}.editor-heading h1{font-size:25px}.save-status{display:none}.compact-meta summary span{font-size:9px;margin-left:7px}.lesson-workspace{display:block}.lesson-outline{padding:12px;border:1px solid #e7dcef;background:white;margin-bottom:22px;border-radius:12px}.outline-label{padding:4px 8px 13px}.section-tab{grid-template-columns:22px 1fr auto}.section-tab.selected{background:#f4ecfc;box-shadow:none}.section-controls{display:none}.canvas-label>.btn{font-size:9px}.exercise-card-head{padding:12px 14px}.exercise-card-body,.exercise-form{padding:19px}.exercise-identity{gap:7px}.exercise-card-actions{gap:3px}.exercise-type-label{font-size:9px}.exercise-form-footer{flex-wrap:wrap;gap:12px}.template-modal{padding:21px}.template-catalogue{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.template-thumbnail{height:100px;padding:15px}.template-caption{padding:10px;gap:6px}.template-caption strong{font-size:10px}.template-caption>b{display:none}.template-filters button{font-size:10px;padding:7px 8px}.auth-left h1{font-size:38px;letter-spacing:-1px}.auth-left{padding:25px}.section-heading input{font-size:23px}.add-exercise-large small{font-size:8px}.matching-row{gap:10px}.inline-gap{width:85px}.between-insert{height:20px}}
/* Readable contrast for controls and instructional text. */
.template-caption{color:#725582}.template-caption strong{font-size:12px}.template-modal-heading p,.template-filters button{color:#82718e}.template-filters button.selected{color:#77558d}.template-thumbnail{color:#8c759a}.template-thumbnail b,.template-thumbnail strong{color:#7d618f}.template-thumbnail .highlight{color:#89619e}.mock-input{color:#a08cae}.mock-flashcard{color:#9973ad}.template-caption>span{color:#a07aba}.exercise-type-label,.canvas-label>span,.outline-label,.section-tab small,.save-status{color:#9784a5}.exercise-prompt{color:#65556f;font-size:14px}.exercise-form .field label{color:#867091}.exercise-form-footer span,.markup-help{color:#a18ab0}.template-filters button{font-size:12px}.section-tab strong{font-size:13px}.add-exercise-large{color:#9470ad}.add-exercise-large strong{font-size:13px}.add-exercise-large small{color:#ac90be}.media-preview strong{color:#8d6aa3}.media-preview small{color:#a087b1}.exercise-menu>div button{color:#8b6aa0}.visual-cloze{color:#826592}.visual-pairs>div{color:#9876a9}.reading-heading h2{color:#725083}

.practice-actions{display:flex;gap:18px;align-items:center;flex-wrap:wrap;margin-top:20px}.reset-practice{background:transparent;border:0;padding:8px 0;color:#9a7db2;font:inherit;font-size:12px;cursor:pointer}.reset-practice:hover{color:#7658e5}.reading-heading>.btn{font-size:10px;padding:7px 11px;margin-top:4px;box-shadow:none}
/* Reference layout: a single lesson sheet and sections on the right. */
.builder-shell{display:block;background:#f2f4fa;min-height:100vh}.builder-shell>.sidebar{display:none}.builder-shell>.main{max-width:1540px;margin:0 auto;padding:18px 28px 50px}.builder-shell .topbar{display:flex;gap:25px;margin:0 0 23px;padding:0 0 15px;border-bottom:1px solid #e9edf5}.builder-brand{display:flex;align-items:center;gap:25px;margin-right:auto}.builder-brand .brand small{font-size:8px}.builder-brand .brandmark{width:34px;height:34px;font-size:23px}.builder-brand .brand{font-size:12px}.builder-brand>.btn{padding:7px 11px;font-size:10px;background:transparent;border:0;color:#9090a3}.builder-shell .topbar>span:not(.schooltag){font-size:10px;color:#aaaabd}.builder-shell .page-head{margin-bottom:24px}.builder-shell .page-head h1,.builder-shell .editor-heading h1{font-size:25px;color:#5a596d}.builder-shell .eyebrow{font-size:9px;color:#a5a5b9}.builder-shell .page-head p{font-size:12px}.builder-shell .editor-heading{margin-bottom:15px;flex-direction:row;align-items:center}.builder-shell .compact-meta{margin-bottom:15px}.builder-shell .compact-meta summary{border-bottom:0;font-size:10px;padding:9px 0;color:#aaa4b9}.builder-shell .lesson-workspace{grid-template-columns:minmax(0,1fr) 285px;gap:22px;align-items:start}.builder-shell .lesson-outline{grid-column:2;grid-row:1;border:0;background:white;border-radius:20px;padding:20px;position:sticky;top:20px;box-shadow:0 6px 25px #797cad05}.builder-shell .section-canvas{grid-column:1;grid-row:1;background:white;border-radius:20px;padding:28px 33px;box-shadow:0 6px 25px #797cad05}.builder-shell .section-heading{border-bottom:1px solid #f0f0f6;padding-bottom:23px;margin-bottom:12px;flex-direction:row}.builder-shell .section-heading input{font-size:30px;font-weight:700;color:#5b5a70;letter-spacing:-.5px;padding:0}.builder-shell .section-heading>.btn{color:#c1bbcd;font-size:9px}.builder-shell .section-heading>.field{flex:1}.builder-shell .reading-heading{position:relative;border-bottom:1px solid #efeff5;padding-bottom:22px;margin-bottom:0}.builder-shell .reading-heading h2{font-size:30px;color:#5a596e;letter-spacing:-.5px;font-weight:700;margin-bottom:12px}.builder-shell .reading-heading .eyebrow{display:none}.builder-shell .reading-heading>.btn{padding:4px 8px;font-size:9px;color:#aaa3bc;border-color:#f1ecf6;background:white}.builder-shell .canvas-label{margin:16px 0 5px}.builder-shell .canvas-label>span{font-size:9px;color:#b5b0c1}.builder-shell .canvas-label>.btn{background:#f3faff;color:#60c8ed;font-size:9px}.builder-shell .outline-label{font-size:18px;color:#68677c;letter-spacing:0;text-transform:none;font-weight:650;padding:16px 0 17px;border-bottom:1px solid #f1f1f6;margin-bottom:14px}.lesson-side-info{padding-bottom:7px}.lesson-side-cover{padding:24px 20px;background:linear-gradient(135deg,#e3f6ff,#e9e5ff);border-radius:13px;position:relative;overflow:hidden;min-height:115px;color:#7b779d}.lesson-side-cover:after{content:'ß';position:absolute;right:15px;bottom:-15px;font:110px Georgia;color:#ffffff66;transform:rotate(-10deg)}.lesson-side-cover span{display:block;font-size:11px;letter-spacing:.8px}.lesson-side-cover strong{display:block;font-size:29px;font-weight:650;color:#797092}.lesson-side-cover small{position:absolute;right:16px;top:16px;font-size:10px;border:1px solid #ffffff99;border-radius:5px;padding:3px 6px}.lesson-side-info>p{font-size:11px;color:#a39ab1;margin:13px 0 0;line-height:1.6}.builder-shell .outline-row{position:relative;margin:0;padding:0}.builder-shell .section-tab{background:transparent;border:0;box-shadow:none;border-radius:0;padding:12px 0;grid-template-columns:22px minmax(0,1fr);gap:8px}.builder-shell .section-tab strong{font-size:13px;color:#aaa9bf;font-weight:500;line-height:1.5}.builder-shell .section-tab span{font-size:17px;color:#d5d4e1;font-weight:500}.builder-shell .section-tab small{display:none}.builder-shell .section-tab.selected{background:transparent}.builder-shell .section-tab.selected:before{content:'';position:absolute;left:-20px;top:8px;height:32px;width:2px;background:#42d0ff}.builder-shell .section-tab.selected strong{color:#656478;font-weight:550}.builder-shell .section-tab.selected span{color:#42d0ff}.builder-shell .section-controls{justify-content:flex-start;gap:5px;margin:-6px 0 4px 26px}.builder-shell .section-controls .iconbtn{font-size:9px;color:#d1c7df;padding:0 3px}.builder-shell .lesson-outline>.btn{border-color:#eeeaf5;color:#a598b8;font-size:10px;border-radius:8px;padding:9px;margin-top:18px}.builder-shell .exercise-card{border:0;background:transparent;border-radius:0;box-shadow:none;border-bottom:1px solid #efeff5;transition:none}.builder-shell .exercise-card-head{padding:24px 0 13px;border-bottom:0;gap:15px}.builder-shell .exercise-card-body{padding:6px 0 24px}.builder-shell .exercise-identity{gap:12px;min-width:0}.builder-shell .drag-grip{font-size:15px;color:#d2d0dd;width:10px;flex-shrink:0}.builder-shell .exercise-number-pill,.reference-number{font-size:15px;font-weight:700;color:#43d1fd;background:#effbff;border-radius:4px;min-width:42px;padding:6px 9px;clip-path:polygon(0 0,88% 0,100% 50%,88% 100%,0 100%);flex-shrink:0}.builder-shell .exercise-type-label{font-size:18px;color:#636277;font-weight:650;letter-spacing:-.25px;line-height:1.45}.builder-shell .exercise-card-actions .iconbtn{font-size:12px;color:#bab9cf;padding:0 4px}.builder-shell .exercise-menu summary{font-size:20px;color:#bbbace;border:1px solid #f4f2f8;border-radius:8px;padding:1px 6px}.builder-shell .exercise-menu>div{z-index:20}.builder-shell .exercise-prompt{font-size:16px;color:#69687e;line-height:1.8}.builder-shell .exercise-card.is-editing{border:1px solid #e7def3;border-radius:13px;margin:15px 0;background:#fdfcff;padding:0 19px}.builder-shell .exercise-form{padding:8px 0 23px}.builder-shell .between-insert{height:12px;margin:3px auto;color:#d9d1e4;opacity:.4;font-size:15px;line-height:12px}.builder-shell .between-insert:hover{opacity:1;color:#43cbed}.builder-shell .add-exercise-large{background:#fbfcff;border-color:#e7e3f2;max-width:100%;padding:20px;margin-top:20px}.builder-shell .add-exercise-large>span{color:#89d5ea;border-color:#e8f7fc}.builder-shell .add-exercise-large strong{color:#a59ab8;font-size:12px}.builder-shell .add-exercise-large small{color:#c7bfd4;font-size:9px}.builder-shell .section-canvas>.note{font-size:9px;color:#c3bccf}.builder-shell .block{border:0;box-shadow:none;background:transparent;border-radius:0;margin:0;padding:24px 0;border-bottom:1px solid #efeff5}.reference-exercise-heading{display:flex;gap:12px;align-items:center;margin-bottom:22px}.reference-exercise-heading h3{font-size:18px;color:#626176;font-weight:650;letter-spacing:-.2px;line-height:1.4;margin:0}.builder-shell .block .prose{font-size:16px;color:#69687e;line-height:1.85}.builder-shell .practice-actions{margin-top:18px}.builder-shell .practice-actions .btn{font-size:10px;padding:7px 11px;border-color:#ede9f4;color:#a092b1}.builder-shell .reset-practice{font-size:10px;color:#b1a4c2}.builder-shell .visual-options{max-width:none}.builder-shell .visual-pairs>div{color:#a18bb2}.builder-shell .section-empty{border-color:#ede7f5;border-radius:12px;background:#fbfaff}.builder-shell .media-preview{margin-top:22px}.builder-shell .section-canvas .integration-frame{height:440px}.image-word-bank{display:flex;gap:8px;flex-wrap:wrap;padding:15px;background:#f7f8fc;border-radius:11px;margin:23px 0 17px}.image-word-bank button{background:white;border:1px solid #e9e8f1;box-shadow:0 2px 3px #797cad03;border-radius:6px;padding:5px 10px;font:inherit;font-size:15px;color:#737287;cursor:grab;line-height:1.4}.image-word-bank button:hover,.image-word-bank button:focus{border-color:#4ed5ff;outline:none;box-shadow:0 0 0 2px #b9efff55}.image-word-bank button.is-used{opacity:.3;cursor:default}.image-word-bank button:disabled{opacity:1;cursor:default}.picture-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}.picture-tile{min-width:0}.picture-tile img{display:block;width:100%;height:170px;object-fit:cover;border-radius:9px;background:#f8f6fc}.picture-tile input{margin-top:10px;background:white;border:2px solid #ece8f4;border-radius:6px;min-width:0;width:100%;font-size:15px;padding:6px 9px;color:#747087;text-align:center}.picture-tile input:focus{border-color:#48d3ff;outline:none}.picture-tile input.answer-correct{border-color:#36d697}.picture-tile input.answer-wrong{border-color:#ef8ca4}.picture-author-label{border:1px solid #eee7f5;border-radius:6px;padding:7px;margin-top:8px;font-size:11px;text-align:center;color:#b09bc3}.image-placeholder{height:150px;border:1px dashed #e1d5ee;border-radius:9px;background:#faf7fd;display:grid;place-items:center;font-size:35px;color:#d6c5e4}.image-author-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px;margin:20px 0}.image-author-card{border:1px solid #e9e0f2;border-radius:9px;padding:13px;background:white}.image-author-card>img{width:100%;height:140px;object-fit:cover;border-radius:6px;margin-bottom:12px}.image-author-card .field{margin:12px 0}.image-author-card .field label{font-size:10px}.image-author-card input{font-size:11px;padding:8px}.image-author-card .linkbutton{font-size:10px;color:#bc9ac9}.upload-picture{display:block;margin-top:8px;font-size:10px;color:#a47bbc;cursor:pointer}.upload-picture input{display:block;font-size:9px;border:0;background:transparent;padding:5px 0;max-width:100%;}.mock-picture-row{font-size:30px!important;letter-spacing:12px;color:#bfcddd}.mock-picture-words{font-size:9px;color:#b39bcc}
@media(max-width:1100px){.builder-shell>.main{padding:18px 22px 40px}.builder-shell .lesson-workspace{grid-template-columns:minmax(0,1fr) 245px;gap:18px}.builder-shell .section-canvas{padding:24px}.builder-shell .lesson-outline{padding:18px}.builder-shell .section-tab.selected:before{left:-18px}.builder-shell .exercise-type-label,.reference-exercise-heading h3{font-size:17px}.picture-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.picture-tile img{height:190px}.builder-shell .topbar>span:not(.schooltag){display:none}.builder-shell .editor-heading{flex-wrap:wrap}}@media(max-width:760px){.builder-shell>.main{padding:14px 14px 35px}.builder-shell .topbar{margin-bottom:20px;gap:10px}.builder-brand{gap:10px}.builder-brand .brand small{display:none}.builder-brand .brand{font-size:10px}.builder-brand>.btn{font-size:9px;padding:5px}.builder-shell .topbar .schooltag{display:none}.builder-shell .editor-heading h1,.builder-shell .page-head h1{font-size:22px}.builder-shell .lesson-workspace{display:flex;flex-direction:column;gap:15px}.builder-shell .lesson-outline{order:0;position:static;width:100%;padding:15px 18px;border-radius:14px;margin:0}.lesson-side-info{display:none}.builder-shell .outline-label{font-size:14px;padding:0 0 10px;margin:0 0 6px}.builder-shell .outline-row{display:inline-block;margin-right:10px;vertical-align:top}.builder-shell .section-tab{padding:9px 8px;grid-template-columns:15px auto;gap:5px}.builder-shell .section-tab strong{font-size:11px}.builder-shell .section-tab span{font-size:14px}.builder-shell .section-tab.selected{background:#eefbff;border-radius:6px}.builder-shell .section-tab.selected:before{display:none}.builder-shell .section-controls{display:none}.builder-shell .lesson-outline>.btn{margin-top:7px;width:auto;font-size:9px;padding:6px 10px}.builder-shell .section-canvas{order:1;width:100%;padding:21px;border-radius:15px}.builder-shell .section-heading input,.builder-shell .reading-heading h2{font-size:26px}.builder-shell .section-heading{padding-bottom:17px;align-items:center}.builder-shell .exercise-card-head{padding-top:20px}.builder-shell .drag-grip{display:none}.builder-shell .exercise-type-label,.reference-exercise-heading h3{font-size:16px}.builder-shell .exercise-card-actions{gap:0}.builder-shell .exercise-number-pill,.reference-number{font-size:13px;min-width:36px;padding:5px 7px}.builder-shell .exercise-prompt,.builder-shell .block .prose{font-size:14px}.builder-shell .exercise-card.is-editing{padding:0 13px}.builder-shell .exercise-form .field label{font-size:10px}.image-word-bank{padding:10px;gap:7px}.image-word-bank button{font-size:13px;padding:4px 7px}.picture-grid{gap:11px}.picture-tile img{height:150px}.picture-tile input{font-size:13px}.image-author-grid{gap:10px}.image-author-card{padding:9px}.image-author-card>img{height:110px}.builder-shell .section-canvas .integration-frame{height:330px}}

.block-matching .matching-row{background:#f7f5ff;border:1px solid #e6dff6;border-radius:12px;padding:16px;align-items:center;gap:20px}.block-matching .matching-row>span{white-space:pre-wrap;font-weight:600}.block-matching select{min-height:50px;white-space:normal}.order-answer{display:flex;flex-wrap:wrap;gap:10px;min-height:72px;padding:15px;border:2px dashed #d3c6eb;border-radius:12px;background:#fcfaff;margin:16px 0}.order-answer:empty:before{content:'Соберите предложение здесь';color:#9890a8;align-self:center}.order-bank{display:flex;flex-wrap:wrap;gap:10px;padding:16px;background:#f6f7fb;border-radius:12px}.order-chip{border:1px solid #ddd6eb;background:white;border-radius:8px;padding:10px 15px;color:#514764;font:inherit;cursor:pointer}.order-chip:hover{border-color:#9164cf;background:#f4edff}.order-answer .order-chip{background:#eee4ff;border-color:#cab0eb}.dictionary-list{border:1px solid #e9e4f0;border-radius:14px;overflow:hidden;margin-top:20px}.dictionary-entry{display:grid;grid-template-columns:1fr 1fr 44px;align-items:center;gap:16px;padding:18px 20px;border-bottom:1px solid #eee9f4}.dictionary-entry:last-child{border-bottom:0}.dictionary-entry strong{color:#514268;font-size:18px}.dictionary-entry>span{color:#797384}.dictionary-sound{border:0;background:#f1e9ff;border-radius:50%;width:40px;height:40px;cursor:pointer}.dictionary-sound:hover{background:#e3d0ff}@media(max-width:600px){.dictionary-entry{gap:8px;padding:14px;grid-template-columns:1fr 1fr 40px}.block-matching .matching-row{grid-template-columns:1fr}}

.marathon-stats{grid-template-columns:repeat(2,minmax(0,1fr))}

.student-attempt{margin-bottom:18px}.attempt-heading{display:flex;gap:20px;justify-content:space-between;align-items:center}.attempt-heading h3{margin:8px 0}.attempt-prompt,.review-row p{white-space:pre-wrap;overflow-wrap:anywhere}.answer-review{display:grid;gap:10px;margin-top:18px}.review-row{padding:16px;border:1px solid #e3dcef;border-radius:12px;background:#faf8fd}.review-row.correct{border-left:4px solid #4d9c75}.review-row.wrong{border-left:4px solid #ca6976}.review-row span{font-size:12px;color:#71687e}.review-row p{margin:5px 0 12px}.review-row b{font-size:12px}.archived-students{margin-top:22px}.archived-students summary{cursor:pointer;font-weight:600}.student-attempt small{color:#71687e}

/* Shared lesson layout for authors and learners. */
.hidden{display:none!important}
.card-cover,.course-banner,.lesson-thumb,.lesson-cover,.cover-preview{display:block;aspect-ratio:1 / 1;height:auto;object-fit:cover;object-position:center}
.card-cover{width:100%;border-radius:12px;margin-bottom:16px}
.course-banner{width:min(100%,220px);border-radius:18px;margin-bottom:22px}
.lesson-thumb{width:72px;border-radius:10px;flex-shrink:0}
.lesson-cover{width:100%;border-radius:12px}
.cover-preview{width:150px;border-radius:10px}
.lesson-side-cover{aspect-ratio:1 / 1;min-height:0;display:flex;flex-direction:column;justify-content:center}
.cover-picker{display:flex;gap:14px;align-items:center;flex-wrap:wrap;margin-bottom:18px}
.cover-picker .upload-picture{font-size:13px;color:#685584}
.cover-picker .upload-picture input{font-size:12px}
.people-row{flex-wrap:wrap}
.temporary-password{display:block;user-select:all;padding:16px;border:1px solid #ded5ed;background:#f8f5ff;border-radius:10px;font-size:18px;overflow-wrap:anywhere}
.builder-shell .lesson-workspace{grid-template-columns:minmax(0,1fr) 250px;gap:20px}
.builder-shell .section-canvas{padding:22px 27px}
.builder-shell .exercise-card-head{padding:15px 0 9px}
.builder-shell .exercise-card-body{padding:0 0 12px}
.builder-shell .exercise-card-body>.block{padding:0;border:0}
.exercise-card-body .reference-exercise-heading{display:none}
.builder-shell .block{padding:16px 0}
.builder-shell .block .prose{font-size:16px;line-height:1.8}
.reference-exercise-heading{margin-bottom:12px}
.builder-shell .exercise-type-label,.reference-exercise-heading h3{font-size:18px}
.builder-shell .section-canvas .integration-frame{height:440px;max-width:100%}
.builder-shell .section-canvas .integration{margin-top:12px}
.builder-shell .section-heading,.builder-shell .reading-heading{padding-bottom:12px}
.builder-shell .section-heading input,.builder-shell .reading-heading h2{font-size:26px}
.builder-shell .practice-actions{margin-top:12px}
.builder-shell .picture-tile img{height:170px}
.save-status{font-size:12px;max-width:240px}
@media(max-width:760px){.builder-shell .section-canvas{padding:18px}.builder-shell .section-canvas .integration-frame{height:330px}.people-row .grow{min-width:160px}}

/* Narrow the lesson sheet while keeping exercises at a readable size. */
.builder-shell>.main{max-width:1160px;padding-top:14px}
.builder-shell .topbar{padding-bottom:12px;margin-bottom:16px}
.builder-shell .page-head{margin-bottom:14px}
.builder-shell .page-head .eyebrow{margin-bottom:5px}
.builder-shell .page-head h1{margin-bottom:6px}
.builder-shell .reading-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}
.builder-shell .reading-heading h2{margin:0;font-size:24px}
.builder-shell .block{padding:12px 0}
.builder-shell .integration .note{margin:8px 0 0;font-size:11px}
.builder-shell .integration>.btn{padding:7px 12px;font-size:12px}
.builder-shell .section-canvas .integration-frame.youtube{width:100%;height:auto;aspect-ratio:16/9;margin-bottom:16px}

/* Quizlet keeps a tall flashcard layout even in short frames. Leave room for
   the complete card, navigation controls and footer on desktop and mobile. */
.integration-frame.quizlet,.builder-shell .section-canvas .integration-frame.quizlet{height:700px;min-height:700px}
@media(max-width:760px){.builder-shell .reading-heading{align-items:flex-start;flex-wrap:wrap}}

/* Text styling is shared by the editor and the student's lesson. */
.text-color-default{color:#69687e}.text-color-red{color:#c73845}.text-color-orange{color:#b45d0a}.text-color-green{color:#23754b}.text-color-blue{color:#2864c5}.text-color-purple{color:#7658e5}.text-color-pink{color:#b53680}.text-color-gray{color:#757585}
.rich-toolbar{display:flex;align-items:center;flex-wrap:wrap;gap:6px;padding:10px;background:#f8f6fd;border:1px solid #e7def3;border-radius:10px 10px 0 0}
.rich-toolbar button{display:inline-flex;align-items:center;justify-content:center;min-width:34px;min-height:34px;padding:5px 9px;border:1px solid transparent;border-radius:6px;color:#69617f;background:transparent;font-size:14px}
.rich-toolbar button:hover,.rich-toolbar button[aria-pressed=true]{background:#eae4ff;border-color:#d1c4f6;color:#6849d7}
.rich-color-picker{position:relative}.color-letter{display:grid;gap:2px;font-weight:700;line-height:1.1}.palette-arrow{font-size:10px;margin-left:6px}
.rich-palette{position:absolute;left:0;top:calc(100% + 8px);z-index:25;width:276px;padding:14px;background:white;border:1px solid #e7e4f1;border-radius:12px;box-shadow:0 8px 30px #31225624}
.rich-palette[hidden]{display:none}.rich-palette>strong{display:block;font-size:12px;margin-bottom:9px;color:#615875}
.rich-palette .palette-auto{width:100%;justify-content:flex-start;gap:9px;margin-bottom:8px;font-size:12px}
.color-swatches{display:grid;grid-template-columns:repeat(8,1fr);gap:4px}.rich-toolbar .color-swatch{min-width:0;min-height:28px;padding:2px;border-radius:6px}.color-swatch svg{display:block}
.rich-toolbar .color-swatch:hover,.rich-toolbar .color-swatch[aria-pressed=true]{outline:2px solid #7658e5;outline-offset:0;background:#f0ebff}
.custom-color{display:grid;grid-template-columns:1fr 88px;align-items:center;gap:8px;margin-top:12px;padding-top:12px;border-top:1px solid #eeeaf4}
.rich-toolbar .custom-color-label{display:flex;align-items:center;gap:8px;font-size:12px;font-weight:500}.custom-color input[type=color]{width:28px;height:28px;padding:2px;border:1px solid #e2ddec;border-radius:5px;cursor:pointer}.custom-color input[type=text]{padding:6px;font-size:12px;width:88px}.rich-toolbar .custom-color button{grid-column:1/-1;border:1px solid #e2ddec;font-size:12px}
.rich-field{gap:0}.rich-field>label{margin-bottom:7px}.rich-field>small{margin-top:7px;color:#9890aa;font-size:11px}
.rich-editor{min-height:150px;max-height:65vh;overflow-y:auto;border:1px solid #e7def3;border-top:0;border-radius:0 0 10px 10px;padding:16px 18px;background:#fff;color:#69687e;font-size:16px;line-height:1.8;cursor:text;white-space:pre-wrap;overflow-wrap:anywhere}
.rich-editor:focus{outline:2px solid #b8a9ea;outline-offset:-2px}.rich-editor:empty:before{content:attr(data-placeholder);color:#aaa3b9;pointer-events:none}
.rich-editor strong,.rich-editor b,.prose strong,.exercise-prompt strong{font-weight:700}
.rich-editor u,.prose u{text-underline-offset:3px}.rich-editor p,.rich-editor div{margin:0}
@media(max-width:760px){.rich-toolbar{gap:3px;padding:7px}.rich-toolbar button{min-width:36px;min-height:38px}.rich-color-picker{position:static}.rich-toolbar{position:relative}.rich-palette{left:0;max-width:100%}.rich-editor{padding:13px;min-height:140px}.rich-toolbar .color-swatch{min-width:0;min-height:28px}}
