:root{--ink:#17252d;--muted:#687881;--paper:#fff;--wash:#f5f8f6;--green:#53b67a;--green-dark:#247552;--lime:#d7ee65;--orange:#f5a623;--blue:#5fb9cf;--coral:#f17b68;--purple:#8b78c8;--line:#dce5df;--shadow:0 18px 50px rgba(25,55,44,.10);--radius:24px}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;color:var(--ink);background:var(--wash);line-height:1.55}a{color:inherit;text-decoration:none}.container{width:min(1180px,calc(100% - 40px));margin:auto}.site-header{position:sticky;top:0;z-index:50;background:rgba(255,255,255,.95);backdrop-filter:blur(12px);border-bottom:1px solid rgba(23,37,45,.08)}.nav-wrap{height:86px;display:flex;align-items:center;gap:28px}.brand{display:flex;align-items:center;gap:13px;min-width:260px}.brand img{width:88px;height:60px;object-fit:contain}.brand-divider{width:1px;height:32px;background:var(--line)}.brand-label{font-weight:800;font-size:14px;line-height:1.1;max-width:100px}.main-nav{display:flex;align-items:center;gap:30px;margin-left:auto}.main-nav a{font-size:14px;font-weight:700;position:relative;padding:31px 0}.main-nav a:after{content:"";position:absolute;left:0;right:100%;bottom:20px;height:3px;border-radius:3px;background:var(--green);transition:.2s}.main-nav a:hover:after{right:0}.nav-actions{display:flex;align-items:center;gap:12px}.lang-picker select{border:1px solid var(--line);background:#fff;border-radius:12px;padding:9px 10px;font-weight:800;color:var(--ink)}.avatar{width:38px;height:38px;border-radius:50%;background:var(--ink);color:#fff;display:grid;place-items:center;font-weight:800}.hero{position:relative;overflow:hidden;background:#eff8f3;border-bottom:1px solid var(--line)}.hero:after{content:"";position:absolute;right:-130px;top:-150px;width:480px;height:480px;border-radius:50%;background:radial-gradient(circle,var(--lime),rgba(215,238,101,0) 68%);opacity:.65}.hero-inner{display:grid;grid-template-columns:1.15fr .85fr;align-items:center;min-height:410px;gap:70px;padding:54px 0}.eyebrow{display:inline-flex;align-items:center;gap:8px;text-transform:uppercase;letter-spacing:.13em;font-size:12px;font-weight:900;color:var(--green-dark)}.eyebrow:before{content:"";width:28px;height:3px;border-radius:3px;background:var(--green)}h1{font-size:clamp(42px,5vw,68px);line-height:.98;letter-spacing:-.045em;margin:17px 0 20px;max-width:760px}.hero p{font-size:19px;color:#4f6460;max-width:680px;margin:0}.hero-card{position:relative;z-index:2;background:#fff;padding:18px;border-radius:34px;box-shadow:var(--shadow);transform:rotate(1.5deg)}.hero-card img{display:block;width:100%;aspect-ratio:1.18/1;object-fit:cover;border-radius:24px}.hero-stat{position:absolute;left:-26px;bottom:36px;background:var(--ink);color:#fff;padding:16px 19px;border-radius:18px;box-shadow:var(--shadow);font-weight:800}.section{padding:54px 0 78px}.section-head{display:flex;align-items:end;justify-content:space-between;gap:20px;margin-bottom:28px}.section-head h2{font-size:34px;letter-spacing:-.03em;margin:0}.section-head p{margin:0;color:var(--muted)}.progress-summary{background:#fff;border:1px solid var(--line);padding:22px 24px;border-radius:20px;min-width:270px}.progress-meta{display:flex;justify-content:space-between;font-size:13px;font-weight:800;margin-bottom:10px}.bar{height:9px;border-radius:99px;background:#e9efeb;overflow:hidden}.bar>span{display:block;height:100%;background:linear-gradient(90deg,var(--green),var(--lime));border-radius:inherit}.modules-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}.module-card{position:relative;background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:25px;min-height:306px;display:flex;flex-direction:column;overflow:hidden;transition:.25s}.module-card:hover{transform:translateY(-5px);box-shadow:var(--shadow);border-color:transparent}.module-number{width:43px;height:43px;border-radius:14px;display:grid;place-items:center;background:var(--accent-soft,#eef7f1);color:var(--accent,#287551);font-weight:900;margin-bottom:28px}.module-card h3{font-size:23px;line-height:1.1;letter-spacing:-.02em;margin:0 0 12px}.module-card p{font-size:14px;color:var(--muted);margin:0 0 22px}.module-footer{margin-top:auto;display:flex;align-items:center;justify-content:space-between;gap:14px}.status{font-size:12px;font-weight:900;padding:7px 10px;border-radius:99px;background:#f1f4f2;color:#6d7973}.status.progress{background:#fff4db;color:#906716}.status.done{background:#e6f6ed;color:#287551}.arrow{width:38px;height:38px;border-radius:50%;border:1px solid var(--line);display:grid;place-items:center;font-size:20px}.certificate-card{grid-column:span 3;background:var(--ink);color:#fff;border:0;padding:30px;min-height:auto;display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:22px}.certificate-card .module-number{margin:0;background:var(--lime);color:var(--ink)}.certificate-card p{color:#c6d0cc;margin:4px 0 0}.btn{display:inline-flex;align-items:center;justify-content:center;border:0;border-radius:14px;padding:12px 17px;background:var(--ink);color:#fff;font-weight:800;cursor:pointer}.btn.green{background:var(--green-dark)}.btn.light{background:#fff;color:var(--ink)}.login-shell{min-height:calc(100vh - 86px);display:grid;place-items:center;padding:40px}.login-card{width:min(940px,100%);display:grid;grid-template-columns:1fr 1fr;background:#fff;border-radius:32px;overflow:hidden;box-shadow:var(--shadow)}.login-visual{background:linear-gradient(160deg,rgba(37,117,82,.88),rgba(23,37,45,.92)),url('https://erasmus-engage.eu/wp-content/uploads/2025/07/b97cabbd-6bfe-46cd-9069-128dcdb627be-1536x1169.jpg') center/cover;color:#fff;padding:50px;display:flex;flex-direction:column;justify-content:end;min-height:560px}.login-form{padding:56px}.login-form h1{font-size:42px}.field{margin:18px 0}.field label{display:block;font-size:13px;font-weight:800;margin-bottom:7px}.field input,.field textarea,.field select{width:100%;border:1px solid var(--line);border-radius:13px;padding:13px 14px;font:inherit;background:#fff}.course-hero{padding:44px 0 34px;background:#fff;border-bottom:1px solid var(--line)}.course-layout{display:grid;grid-template-columns:260px 1fr;gap:28px;padding:34px 0 70px}.course-side{background:#fff;border:1px solid var(--line);border-radius:20px;padding:18px;height:max-content;position:sticky;top:110px}.part-link{display:block;padding:13px;border-radius:12px;font-weight:750;font-size:14px}.part-link.active{background:#eef7f1;color:var(--green-dark)}.learning-block{background:#fff;border:1px solid var(--line);border-radius:24px;padding:30px;margin-bottom:18px}.learning-block h3{font-size:24px;margin:0 0 10px}.block-label{font-size:11px;font-weight:900;letter-spacing:.13em;text-transform:uppercase;color:var(--green-dark)}.h5p-frame{border:0;width:100%;min-height:560px;border-radius:16px;background:#f3f6f4}.site-footer{background:#fff;border-top:1px solid var(--line);padding:38px 0}.footer-grid{display:grid;grid-template-columns:1fr 1fr;gap:40px;align-items:center}.footer-logo{width:120px}.site-footer p{color:var(--muted);font-size:12px;max-width:570px}.eu-funding{text-align:right}.eu-funding img{width:min(360px,100%);height:auto}.admin-layout{display:grid;grid-template-columns:240px 1fr;min-height:calc(100vh - 86px)}.admin-side{background:var(--ink);color:#fff;padding:28px 20px}.admin-side a{display:block;padding:12px 14px;border-radius:11px;margin:3px 0;color:#d3dcda;font-weight:700}.admin-side a:hover,.admin-side a.active{background:rgba(255,255,255,.1);color:#fff}.admin-main{padding:36px}.admin-card{background:#fff;border:1px solid var(--line);border-radius:20px;padding:24px;margin-bottom:20px}.table{width:100%;border-collapse:collapse}.table th,.table td{text-align:left;padding:13px;border-bottom:1px solid var(--line);font-size:14px}.table th{font-size:11px;text-transform:uppercase;letter-spacing:.1em;color:var(--muted)}
@media(max-width:920px){.main-nav{display:none}.hero-inner{grid-template-columns:1fr}.hero-card{display:none}.modules-grid{grid-template-columns:1fr 1fr}.certificate-card{grid-column:span 2}.course-layout{grid-template-columns:1fr}.course-side{position:static}.admin-layout{grid-template-columns:1fr}.admin-side{display:none}.login-card{grid-template-columns:1fr}.login-visual{min-height:260px}.footer-grid{grid-template-columns:1fr}.eu-funding{text-align:left}}
@media(max-width:620px){.container{width:min(100% - 24px,1180px)}.brand-label,.brand-divider{display:none}.brand{min-width:auto}.modules-grid{grid-template-columns:1fr}.certificate-card{grid-column:span 1;grid-template-columns:auto 1fr}.certificate-card .btn{grid-column:1/-1}.hero-inner{min-height:360px}.nav-wrap{height:74px}.brand img{width:74px}.section{padding-top:36px}.section-head{align-items:start;flex-direction:column}.progress-summary{width:100%}.login-form{padding:34px}}
/* v3 functional learning/admin additions — intentionally extends Draft v1 visual language */
.flash{margin-top:18px;padding:13px 16px;border-radius:14px;background:#eef7f1;border:1px solid #cfe5d6;color:var(--green-dark);font-weight:700}.flash.error,.notice.danger{background:#fff0ef;border-color:#efc0bc;color:#9d2d27}.notice{padding:15px 17px;border-radius:14px;background:#fff8e8;border:1px solid #f2dca5;color:#735819;margin:18px 0}.notice.success{background:#eef8f2;border-color:#cce4d4;color:#247552}.narrow{width:min(880px,calc(100% - 40px))}.course-title{font-size:clamp(38px,5vw,58px);margin-bottom:14px}.course-description{max-width:860px;color:#687881;font-size:18px}.course-progress-row{display:flex;align-items:center;gap:14px;max-width:520px;margin-top:24px}.course-progress-row .bar{flex:1}.part-overview h2{font-size:30px;margin:7px 0 10px}.block-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-top:22px}.block-card{border:1px solid var(--line);border-radius:16px;padding:15px;display:grid;grid-template-columns:auto 1fr;gap:12px;align-items:center;background:#fbfcfb;transition:.2s}.block-card:hover{background:#fff;box-shadow:0 10px 25px rgba(25,55,44,.08);transform:translateY(-2px)}.block-card .status{grid-column:2}.block-card small{display:block;color:var(--muted);font-size:11px;margin-top:3px}.block-icon{width:40px;height:40px;display:grid;place-items:center;border-radius:12px;background:#eef7f1}.mini-progress{display:flex;align-items:center;gap:9px;margin-top:auto;margin-bottom:14px}.mini-progress .bar{flex:1;height:6px}.mini-progress small{font-size:11px;font-weight:800;color:var(--muted)}.compact{padding:28px 0}.learn-title{font-size:clamp(34px,4vw,50px);margin:10px 0 0}.back-link{display:inline-block;font-size:13px;color:var(--muted);font-weight:800;margin-bottom:12px}.reading{padding:38px}.learning-text{font-size:16px;color:#394b53}.learning-text p{margin:0 0 18px}.learning-text h3{font-size:26px;margin:34px 0 14px;color:var(--ink)}.learning-text h4{font-size:20px;margin:26px 0 10px}.learning-bullet{padding-left:14px}.complete-row{border-top:1px solid var(--line);margin-top:30px;padding-top:22px;display:flex;justify-content:flex-end}.h5p-wrap{margin-top:24px}.h5p-placeholder{margin-top:24px;border:2px dashed #cbd8d1;border-radius:16px;padding:45px 25px;text-align:center;color:#687881;background:#f8faf9}.quiz-head{display:flex;align-items:start;justify-content:space-between;gap:20px}.quiz-head h2{font-size:30px;margin:5px 0}.quiz-result{display:flex;justify-content:space-between;gap:20px;padding:16px 18px;border-radius:14px;margin:18px 0;font-weight:800}.quiz-result.pass{background:#e9f7ef;color:#247552}.quiz-result.fail{background:#fff0ef;color:#9d2d27}.quiz-question{border:0;padding:0;margin:28px 0}.quiz-question legend{font-weight:800;font-size:17px;display:flex;gap:12px;align-items:flex-start;margin-bottom:12px}.quiz-question legend span{flex:0 0 28px;height:28px;border-radius:9px;background:#eef7f1;display:grid;place-items:center;color:var(--green-dark);font-size:12px}.answer-option{display:flex;gap:12px;align-items:flex-start;border:1px solid var(--line);border-radius:13px;padding:12px 14px;margin:8px 0;cursor:pointer;background:#fff}.answer-option:hover{border-color:#9fcdb0}.answer-option input{margin-top:4px}.next-row{display:flex;justify-content:flex-start;margin-top:15px}.admin-title{font-size:44px}.admin-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}.admin-stats .admin-card strong{font-size:34px}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.check-row{display:flex;align-items:center;gap:9px;font-weight:700;margin:14px 0 22px}.check-row input{width:auto}.soft{border:0;border-top:1px solid var(--line);margin:30px 0}.language-tabs{display:flex;gap:7px;flex-wrap:wrap;margin-bottom:20px}.language-tabs a{padding:8px 12px;border-radius:10px;background:#fff;border:1px solid var(--line);font-size:12px;font-weight:800}.language-tabs a.active{background:var(--ink);color:#fff;border-color:var(--ink)}.admin-block-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:14px 0 24px}.admin-block-list a{border:1px solid var(--line);background:#fbfcfb;border-radius:14px;padding:13px}.admin-block-list span{display:block;text-transform:uppercase;font-size:10px;letter-spacing:.08em;color:var(--green-dark);font-weight:900}.admin-block-list strong{display:block;margin:4px 0}.admin-block-list em{font-style:normal;font-size:12px;color:var(--muted)}.quiz-admin-question{border:1px solid var(--line);border-radius:16px;padding:18px;margin:16px 0}.admin-answer{display:grid;grid-template-columns:24px 1fr;align-items:center;gap:10px;margin:8px 0}.admin-answer input[type="text"],.admin-answer input:not([type]){width:100%}.admin-answer input:last-child{border:1px solid var(--line);border-radius:11px;padding:10px 12px;font:inherit}.small-input{width:76px!important;padding:8px!important}.inline-form{display:inline}.text-button{background:none;border:0;padding:0;color:var(--green-dark);font-weight:800;cursor:pointer}.certificate-rule{display:grid;grid-template-columns:1fr 1fr;gap:28px}.full{width:100%}.form-error{color:#b12c28}.form-foot{font-size:13px;color:#687881;margin-top:18px}.certificate-actions{display:flex;justify-content:space-between;margin-bottom:18px}.certificate-sheet{aspect-ratio:1.414/1;background:#fff;border:1px solid var(--line);box-shadow:var(--shadow);position:relative;overflow:hidden}.certificate-template-image{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;display:block;z-index:0}.certificate-sheet .certificate-overlay{z-index:1}.certificate-overlay{position:absolute;inset:9%;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;background:rgba(255,255,255,.88);border:1px solid rgba(36,117,82,.18);padding:5%}.certificate-kicker{text-transform:uppercase;letter-spacing:.18em;font-weight:900;color:var(--green-dark);font-size:13px;margin-top:18px}.certificate-overlay h1{font-size:48px;margin:20px 0 12px}.certificate-overlay h2{font-size:28px;margin:8px 0 22px}.certificate-overlay p{color:var(--muted)}.certificate-meta{font-size:13px}.verify-code{margin-top:20px;font-size:10px;word-break:break-all;color:#7a8580}
@media(max-width:920px){.block-cards,.admin-block-list{grid-template-columns:1fr}.admin-stats{grid-template-columns:1fr 1fr}.certificate-rule{grid-template-columns:1fr}}
@media(max-width:620px){.form-grid,.admin-stats{grid-template-columns:1fr}.quiz-head{flex-direction:column}.certificate-overlay h1{font-size:28px}.certificate-overlay h2{font-size:20px}.certificate-actions{gap:8px}.certificate-actions .btn{padding:9px 11px}}
@page{size:A4 landscape;margin:0}@media print{html,body{width:297mm!important;height:210mm!important;margin:0!important;padding:0!important;background:#fff!important;overflow:hidden!important}.site-header,.site-footer,.certificate-actions,.certificate-print-note,.certificate-preview-notice,.flash{display:none!important}main,.section,.certificate-page{position:relative!important;width:297mm!important;height:210mm!important;margin:0!important;padding:0!important;overflow:hidden!important}.certificate-page .container.narrow{position:relative!important;width:297mm!important;height:210mm!important;max-width:none!important;margin:0!important;padding:0!important;overflow:hidden!important}.certificate-sheet{position:absolute!important;left:0!important;top:0!important;width:880px!important;height:622.35px!important;max-width:none!important;aspect-ratio:auto!important;border:0!important;box-shadow:none!important;margin:0!important;transform:scale(1.27528)!important;transform-origin:top left!important;page-break-before:avoid!important;page-break-after:avoid!important;page-break-inside:avoid!important;break-inside:avoid!important;-webkit-print-color-adjust:exact!important;print-color-adjust:exact!important}.certificate-template-image{width:100%!important;height:100%!important;-webkit-print-color-adjust:exact!important;print-color-adjust:exact!important}.certificate-overlay{-webkit-print-color-adjust:exact!important;print-color-adjust:exact!important}}

/* ===== ENGAGE Learning Hub build 0.4.0 ===== */
.module-locked{opacity:.72;cursor:not-allowed;border-style:dashed}.module-locked:hover{transform:none;box-shadow:none;border-color:var(--line)}.status.translation{background:#eef2fb;color:#52649a}.lock-icon{font-size:20px}.language-notice{margin:-6px 0 28px}.empty-state{text-align:center;padding:60px 40px}.empty-state .empty-icon{font-size:54px}.empty-state h1{font-size:38px;margin:14px auto}.empty-state p{max-width:680px;margin:0 auto 25px;color:var(--muted)}
.table-scroll{overflow-x:auto;-webkit-overflow-scrolling:touch}.translation-table th small{display:block;text-transform:none;letter-spacing:0;font-weight:600;color:var(--muted);margin-top:2px}.translation-cell{display:flex;flex-direction:column;min-width:72px;border-radius:12px;padding:9px 10px;text-align:center}.translation-cell strong{font-size:14px}.translation-cell span{font-size:10px;color:var(--muted)}.translation-cell.ready{background:#e6f6ed;color:#287551}.translation-cell.partial{background:#fff4db;color:#906716}.translation-cell.missing{background:#f3f5f4;color:#7a8580}
.report-stats{grid-template-columns:repeat(5,minmax(0,1fr))}.cell-sub{display:block;color:var(--muted);font-size:11px;margin-top:3px}.activity-list{display:flex;flex-direction:column}.activity-item{display:grid;grid-template-columns:12px 1fr auto;gap:12px;align-items:center;padding:12px 0;border-bottom:1px solid var(--line);font-size:13px}.activity-item:last-child{border-bottom:0}.activity-item small{display:block;color:var(--muted)}.activity-item time{font-size:11px;color:var(--muted);white-space:nowrap}.activity-dot{width:8px;height:8px;border-radius:50%;background:var(--green)}.activity-list.compact .activity-item{padding:9px 0}.muted{color:var(--muted)}.translation-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.order-actions{display:flex;gap:5px}.icon-btn{width:30px;height:30px;border:1px solid var(--line);border-radius:9px;background:#fff;cursor:pointer;font-weight:900}.icon-btn:hover{background:#eef7f1;border-color:#bcd9c7}
.certificate-overlay-configurable{display:block;position:absolute;inset:5%;padding:0}.certificate-static{position:absolute;left:8%;right:8%;top:10%;text-align:center}.certificate-static .certificate-kicker{margin-top:14px}.certificate-static p{margin-top:24px}.certificate-name,.certificate-title-position,.certificate-meta-position{position:absolute;left:7%;right:7%;transform:translateY(-50%);margin:0!important;text-align:center}.certificate-name{line-height:1.05;letter-spacing:-.035em}.certificate-title-position{line-height:1.15}.certificate-meta-position{font-size:13px}.certificate-meta-position .verify-code{display:block;margin-top:8px}
@media(max-width:1100px){.report-stats{grid-template-columns:repeat(3,minmax(0,1fr))}.translation-summary{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:700px){.report-stats,.translation-summary{grid-template-columns:1fr}.activity-item{grid-template-columns:10px 1fr}.activity-item time{grid-column:2}.certificate-static{top:6%}.certificate-static p{display:none}}

/* ===== ENGAGE Learning Hub build 0.5.0: English content quality pass ===== */
.learning-link{color:var(--green-dark);font-weight:800;text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:3px;overflow-wrap:anywhere}.learning-link:hover{color:var(--green)}
.course-video{margin:28px 0;border:1px solid var(--line);border-radius:18px;overflow:hidden;background:#0f201a;box-shadow:0 12px 28px rgba(25,55,44,.10)}.course-video-frame{position:relative;aspect-ratio:16/9;background:#0f201a}.course-video-frame iframe{position:absolute;inset:0;width:100%;height:100%;border:0}.course-video figcaption{display:flex;gap:18px;justify-content:space-between;align-items:center;padding:12px 16px;background:#fff;color:var(--ink);font-size:13px}.course-video figcaption span{font-weight:800}.course-video figcaption a{color:var(--green-dark);font-weight:800;white-space:nowrap}
.source-videos,.source-media{border-top:1px solid var(--line);margin-top:32px;padding-top:30px}.source-media-head h3{font-size:25px;margin:6px 0 18px}.source-media-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.source-visual{margin:0;border:1px solid var(--line);border-radius:16px;overflow:hidden;background:#f8faf9}.source-visual a{display:block;background:#eef3ef}.source-visual img{display:block;width:100%;height:auto;max-height:520px;object-fit:contain;margin:auto}.source-visual figcaption{padding:11px 13px;color:var(--muted);font-size:12px;line-height:1.45}
.interactive-learning-block{padding:34px}.interactive-heading{max-width:720px;margin-bottom:24px}.interactive-heading h2,.native-intro h2{font-size:30px;margin:6px 0 8px}.interactive-heading p,.native-intro p{color:var(--muted)}.native-activities{display:grid;gap:18px}.native-intro{padding:4px 2px 6px}.native-activity{border:1px solid var(--line);border-radius:18px;padding:22px;background:#fbfcfb}.native-activity>header{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;border-bottom:1px solid var(--line);padding-bottom:16px;margin-bottom:18px}.native-activity h3{font-size:23px;margin:4px 0 0}.activity-number{font-size:11px;text-transform:uppercase;letter-spacing:.09em;color:var(--green-dark);font-weight:900}.h5p-badge{padding:7px 10px;border-radius:999px;background:#eef7f1;color:var(--green-dark);font-size:10px;font-weight:900;text-transform:uppercase;letter-spacing:.07em;white-space:nowrap}.activity-help{color:var(--muted);margin:0 0 14px}.guided-practice{padding:15px 16px;border-radius:14px;background:#fff;border:1px solid var(--line)}.guided-practice>p{margin:0;color:var(--muted)}.guided-practice details{margin-top:12px}.guided-practice summary{cursor:pointer;font-weight:800;color:var(--green-dark)}.source-activity-text{margin-top:12px;padding:14px;border-radius:12px;background:#f6f8f7;color:#4a5b53;font-size:13px;line-height:1.55;white-space:normal;max-height:430px;overflow:auto}.scenario-practice textarea{width:100%;margin-top:14px;border:1px solid var(--line);border-radius:12px;padding:12px;font:inherit;resize:vertical}
.sort-practice{list-style:none;padding:0;margin:14px 0}.sort-practice li{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:12px 13px;border:1px solid var(--line);border-radius:12px;background:#fff;margin:8px 0}.sort-practice li>span:first-child{line-height:1.45}.sort-controls{display:flex;gap:5px;flex:0 0 auto}.sort-controls button{width:30px;height:30px;border:1px solid var(--line);border-radius:8px;background:#f8faf9;cursor:pointer;font-weight:900;color:var(--green-dark)}.sort-controls button:hover{background:#eef7f1}.btn.small{padding:9px 13px;font-size:12px}.activity-feedback{display:inline-block;margin-left:12px;font-size:12px;font-weight:800}.activity-feedback.success{color:#247552}.activity-feedback.try{color:#906716}
.node-map{display:grid;grid-template-columns:minmax(180px,.8fr) minmax(0,1.5fr);gap:16px}.node-buttons{display:flex;flex-direction:column;gap:8px}.node-button{display:flex;align-items:center;gap:10px;text-align:left;border:1px solid var(--line);border-radius:12px;background:#fff;padding:10px 12px;font:inherit;font-weight:750;cursor:pointer;color:var(--ink)}.node-button span{width:28px;height:28px;display:grid;place-items:center;border-radius:9px;background:#eef7f1;color:var(--green-dark);font-size:11px}.node-button.active{border-color:#9fcdb0;background:#f0f8f3}.node-panel{display:none;border:1px solid var(--line);border-radius:14px;padding:18px;background:#fff}.node-panel.active{display:block}.node-panel h4{font-size:19px;margin:0 0 9px}.node-panel p{margin:0;color:#4a5b53;line-height:1.6}
.fill-passage{padding:16px;border:1px solid var(--line);border-radius:14px;background:#fff;line-height:1.8;margin-bottom:12px}.inline-blank{display:inline-block;width:145px;max-width:100%;border:0;border-bottom:2px solid #9fcdb0;background:#f4faf6;padding:3px 7px;margin:0 4px;font:inherit}.word-bank{display:flex;gap:7px;flex-wrap:wrap;margin-top:12px;padding:12px;border-radius:12px;background:#eef7f1}.word-bank span,.term-chip{border:1px solid #c9dfd1;border-radius:999px;background:#fff;padding:8px 11px;font-size:12px;font-weight:800;color:var(--green-dark)}.term-practice{display:flex;gap:8px;flex-wrap:wrap}.term-chip{cursor:pointer}.term-chip.reviewed{background:var(--green-dark);border-color:var(--green-dark);color:#fff}.term-practice+.activity-feedback{margin:12px 0 0;color:var(--muted)}
.module-source-visual{margin:26px 0 0;max-width:760px;border-radius:18px;overflow:hidden;border:1px solid rgba(255,255,255,.2);background:#fff}.module-source-visual img{display:block;width:100%;max-height:420px;object-fit:cover}.module-source-visual figcaption{padding:10px 13px;background:#fff;color:var(--muted);font-size:12px}
@media(max-width:760px){.source-media-grid{grid-template-columns:1fr}.course-video figcaption{align-items:flex-start;flex-direction:column;gap:5px}.node-map{grid-template-columns:1fr}.interactive-learning-block,.reading{padding:24px}.native-activity{padding:17px}.native-activity>header{flex-direction:column}.h5p-badge{align-self:flex-start}.inline-blank{width:120px}}
.english-only{display:inline-grid;place-items:center;min-width:38px;height:34px;padding:0 10px;border:1px solid var(--line);border-radius:10px;background:#fff;color:var(--green-dark);font-size:11px;font-weight:900;letter-spacing:.08em}

/* ENGAGE 0.5.1 — English learning quality refinements */
.activity-type{display:block;margin-top:6px;color:var(--muted);font-size:12px;font-weight:750}.sort-group{padding:16px 0;border-top:1px solid var(--line)}.sort-group:first-of-type{border-top:0;padding-top:0}.sort-group h4{margin:0 0 8px;font-size:18px}
.mark-story{font-size:16px;line-height:2.05;padding:18px;border:1px solid var(--line);border-radius:14px;background:#fff;margin-bottom:13px}.mark-token{display:inline;border:0;background:transparent;color:inherit;font:inherit;padding:2px 3px;border-radius:5px;cursor:pointer}.mark-token:hover{background:#eef7f1}.mark-token.selected{background:#dcefe3}.mark-token.right{background:#cce9d6;color:#175d3d}.mark-token.wrong{background:#fbe1df;color:#9a403a}
.fill-questions{display:grid;gap:12px}.fill-item{display:grid;grid-template-columns:32px 1fr;gap:10px;align-items:start;padding:13px;border:1px solid var(--line);border-radius:12px;background:#fff}.fill-number{width:28px;height:28px;border-radius:9px;background:#eef7f1;color:var(--green-dark);display:grid;place-items:center;font-size:11px;font-weight:900}.inline-blank.input-correct,.crossword-clue input.input-correct{border-color:#6bb68a;background:#eef9f1}.inline-blank.input-wrong,.crossword-clue input.input-wrong{border-color:#d6817a;background:#fff3f1}
.crossword-list{display:grid;gap:10px}.crossword-clue{display:grid;grid-template-columns:minmax(0,1fr) 210px;gap:14px;align-items:center;padding:13px 14px;border:1px solid var(--line);border-radius:12px;background:#fff}.crossword-clue span{line-height:1.45}.crossword-clue input{width:100%;border:1px solid var(--line);border-radius:10px;padding:10px 11px;font:inherit}
.memory-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.memory-card{min-height:110px;text-align:left;border:1px solid var(--line);border-radius:14px;background:#fff;padding:16px;cursor:pointer;font:inherit;color:var(--ink);transition:.2s}.memory-card:hover{transform:translateY(-2px);box-shadow:0 8px 20px rgba(25,55,44,.08)}.memory-card strong{display:block;color:var(--green-dark);font-size:15px}.memory-card span{display:none;margin-top:9px;color:var(--muted);line-height:1.5}.memory-card.revealed{background:#f1f8f3}.memory-card.revealed span{display:block}
.source-slides{border:1px solid var(--line);border-radius:16px;background:#fff;overflow:hidden}.source-slide{display:none;padding:22px}.source-slide.active{display:block}.source-slide h4{font-size:22px;margin:7px 0 14px}.slide-count{font-size:11px;font-weight:900;color:var(--green-dark);text-transform:uppercase;letter-spacing:.08em}.slide-controls{display:flex;justify-content:space-between;padding:14px;border-top:1px solid var(--line);background:#f8faf9}.slide-controls button:disabled{opacity:.4;cursor:not-allowed}
.course-hero-inner{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(240px,.75fr);gap:34px;align-items:center}.course-hero-media{border-radius:20px;overflow:hidden;background:#fff;border:1px solid rgba(255,255,255,.3);box-shadow:0 16px 34px rgba(23,62,46,.13)}.course-hero-media img{display:block;width:100%;height:280px;object-fit:contain;background:#fff}.course-hero-media figcaption{padding:10px 12px;color:var(--muted);font-size:11px;background:#fff}
@media(max-width:760px){.crossword-clue{grid-template-columns:1fr}.memory-grid{grid-template-columns:1fr}.course-hero-inner{grid-template-columns:1fr}.course-hero-media img{height:auto;max-height:300px}}

/* ENGAGE build 0.5.1 — final English learning interaction styling */
.course-audio{margin:24px 0;padding:16px;border:1px solid var(--line);border-radius:16px;background:#fff}.course-audio figcaption{font-weight:800;margin-bottom:10px}.course-audio audio{width:100%}.course-audio>a{display:inline-block;margin-top:8px;color:var(--green-dark);font-size:12px;font-weight:800}.resource-link-card{display:grid;gap:5px;margin:18px 0;padding:16px 18px;border:1px solid var(--line);border-radius:14px;background:#fff}.resource-link-card span{font-size:10px;text-transform:uppercase;letter-spacing:.08em;color:var(--green-dark);font-weight:900}.resource-link-card strong{font-size:16px}.resource-link-card em{font-style:normal;font-size:12px;color:var(--muted)}
.source-media-head p{margin:-10px 0 18px;color:var(--muted);font-size:13px}.source-image-button{display:block;width:100%;border:0;padding:0;background:#eef3ef;cursor:zoom-in}.source-image-button img{display:block;width:100%;height:auto;max-height:520px;object-fit:contain;margin:auto}.source-media-grid.count-1{grid-template-columns:1fr}.source-media-grid.count-1 .source-visual{max-width:760px;margin:auto}.source-media-grid.count-1 img{max-height:600px}
.native-empty{padding:24px;border:1px dashed #b8c9bf;border-radius:16px;background:#fbfdfb}.native-empty h3{margin:6px 0}.native-empty p{margin:0;color:var(--muted)}.activity-logic{margin:-4px 0 18px;padding:12px 14px;border-radius:12px;background:#eef7f1;color:#315d48;font-size:13px}.native-subactivity{padding:14px 0;border-top:1px solid var(--line)}.native-subactivity:first-of-type{border-top:0;padding-top:0}.native-subactivity h4{font-size:18px;margin:0 0 6px}.activity-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-top:14px}.activity-actions [hidden]{display:none!important}.btn.light-outline{background:#fff;color:var(--ink);border:1px solid var(--line)}
.mark-passage{font-size:16px;line-height:2.05;padding:18px;border:1px solid var(--line);border-radius:14px;background:#fff}.mark-word{display:inline;border:0;background:transparent;color:inherit;font:inherit;padding:2px 3px;border-radius:5px;cursor:pointer}.mark-word:hover{background:#eef7f1}.mark-word.selected{background:#dcefe3}.mark-word.correct{background:#cce9d6;color:#175d3d}.mark-word.wrong{background:#fbe1df;color:#9a403a}
.fill-quiz{display:grid;gap:10px}.fill-item{display:grid;grid-template-columns:30px 1fr;gap:10px;align-items:start;padding:13px;border:1px solid var(--line);border-radius:12px;background:#fff}.fill-item>span{width:28px;height:28px;border-radius:9px;background:#eef7f1;color:var(--green-dark);display:grid;place-items:center;font-size:11px;font-weight:900}.fill-item p{margin:2px 0 0}.inline-blank.input-correct,.clue-row input.input-correct{border-color:#6bb68a;background:#eef9f1}.inline-blank.input-wrong,.clue-row input.input-wrong{border-color:#d6817a;background:#fff3f1}
.crossword-practice{display:grid;gap:9px}.clue-row{display:grid;grid-template-columns:28px minmax(0,1fr) 210px;gap:12px;align-items:center;padding:12px 13px;border:1px solid var(--line);border-radius:12px;background:#fff}.clue-row>span:first-child{width:26px;height:26px;display:grid;place-items:center;border-radius:8px;background:#eef7f1;color:var(--green-dark);font-size:11px;font-weight:900}.clue-copy{line-height:1.45}.clue-row input{width:100%;border:1px solid var(--line);border-radius:9px;padding:9px 10px;font:inherit}
.wordsearch-grid{display:grid;grid-template-columns:repeat(16,1fr);gap:2px;max-width:640px;margin:14px 0;padding:12px;border:1px solid var(--line);border-radius:14px;background:#fff}.wordsearch-grid span{aspect-ratio:1;display:grid;place-items:center;border-radius:4px;background:#f5f8f6;font-size:11px;font-weight:900;color:#31453d}.wordsearch-terms{display:flex;gap:8px;flex-wrap:wrap}.wordsearch-terms .term-chip.reviewed{text-decoration:line-through;opacity:.65}
.memory-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.memory-card{min-height:108px;text-align:left;border:1px solid var(--line);border-radius:14px;background:#fff;padding:15px;cursor:pointer;font:inherit;color:var(--ink);transition:.2s}.memory-card:hover{transform:translateY(-2px);box-shadow:0 8px 20px rgba(25,55,44,.08)}.memory-card strong{display:block;color:var(--green-dark)}.memory-card span{display:none;margin-top:8px;color:var(--muted);line-height:1.5}.memory-card.revealed{background:#f1f8f3}.memory-card.revealed span{display:block}
.branch-intro{padding:14px;border-radius:12px;background:#fff;border:1px solid var(--line)}.branch-choices{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.branch-choice{text-align:left;border:1px solid var(--line);border-radius:14px;background:#fff;padding:14px;font:inherit;color:var(--ink);cursor:pointer}.branch-choice span{display:block;margin-bottom:5px;font-size:10px;text-transform:uppercase;letter-spacing:.08em;color:var(--green-dark);font-weight:900}.branch-choice.active{border-color:#86bd9a;background:#f0f8f3}.branch-outcome{margin-top:12px;padding:14px;border-radius:12px;background:#eef7f1;color:#315d48}
.slide-practice{border:1px solid var(--line);border-radius:16px;overflow:hidden;background:#fff}.slide-tabs{display:flex;gap:6px;flex-wrap:wrap;padding:10px;border-bottom:1px solid var(--line);background:#f8faf9}.slide-tab{width:34px;height:34px;border:1px solid var(--line);border-radius:9px;background:#fff;cursor:pointer;font-weight:900;color:var(--green-dark)}.slide-tab.active{background:var(--green-dark);color:#fff;border-color:var(--green-dark)}.slide-panel{display:none;padding:20px}.slide-panel.active{display:block}.slide-panel h4{font-size:21px;margin:0 0 12px}
.engage-lightbox[hidden]{display:none}.engage-lightbox{position:fixed;inset:0;z-index:9999;background:rgba(8,18,14,.88);display:grid;place-items:center;padding:30px}.engage-lightbox figure{margin:0;max-width:min(1100px,95vw);max-height:92vh;background:#fff;border-radius:16px;overflow:hidden}.engage-lightbox img{display:block;max-width:100%;max-height:82vh;object-fit:contain;margin:auto}.engage-lightbox figcaption{padding:10px 14px;color:var(--muted);font-size:12px}.lightbox-close{position:absolute;right:22px;top:18px;width:42px;height:42px;border:0;border-radius:50%;background:#fff;color:var(--ink);font-size:27px;cursor:pointer}.lightbox-open{overflow:hidden}
@media(max-width:760px){.clue-row{grid-template-columns:28px 1fr}.clue-row input{grid-column:2}.branch-choices,.memory-grid{grid-template-columns:1fr}.wordsearch-grid{font-size:9px;padding:7px}.wordsearch-grid span{font-size:9px}}
/* Build 0.5.2: source media is positioned inside the exact theory section where it appears in the English module. */
.theory-source-section{margin:0 0 34px}.theory-source-section+ .theory-source-section{border-top:1px solid var(--line);padding-top:28px}.theory-source-section>h3{margin-top:0}.theory-inline-visual{margin:24px 0 30px;border:1px solid var(--line);border-radius:18px;overflow:hidden;background:#f8faf9;box-shadow:0 10px 28px rgba(25,55,44,.07)}.theory-inline-visual img{display:block;width:100%;height:auto;max-height:620px;object-fit:contain;margin:auto;background:#fff}.theory-inline-visual figcaption{padding:10px 14px;color:var(--muted);font-size:12px;background:#fbfcfb;border-top:1px solid var(--line)}.theory-inline-video{margin:22px 0 30px}.theory-inline-video .course-video{margin:0}.media-lead{font-weight:800;color:var(--ink);margin-bottom:10px!important}

/* ===== ENGAGE Learning Hub build 0.5.3: optional interactive practice ===== */
.status.optional{background:#eef3f0;color:#5d6d65;border:1px solid #d8e3dd}
.optional-block-card{background:linear-gradient(180deg,#fff,#fbfdfc)}
.optional-practice-note{display:flex;align-items:center;gap:12px;flex-wrap:wrap;border-top:1px solid var(--line);padding-top:18px;margin-top:22px}
.optional-copy{font-size:13px;color:var(--muted)}

/* ===== ENGAGE Learning Hub build 0.5.4: interface localisation ===== */
.sr-only{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}
.lang-picker{display:flex;align-items:center;margin:0}.lang-picker select{max-width:168px;cursor:pointer;appearance:auto}.content-language-pill{display:inline-flex;align-items:center;margin-left:10px;padding:6px 10px;border-radius:999px;background:#fff4db;color:#815d18;border:1px solid #efd391;font-size:11px;font-weight:900;vertical-align:middle}.language-notice{margin-top:0;margin-bottom:24px}.field-note{display:block;margin-top:7px;color:var(--muted);font-size:12px;line-height:1.45}.translation-progress{display:grid;grid-template-columns:minmax(120px,1fr) auto;gap:8px 12px;align-items:center}.translation-progress .bar{min-width:150px}.translation-progress small{grid-column:1/-1;color:var(--muted)}.translation-table th small{display:block;margin-top:3px;text-transform:none;letter-spacing:0;font-size:10px}.translation-table .status{white-space:nowrap}
@media(max-width:620px){.nav-wrap{gap:10px}.nav-actions{margin-left:auto;gap:8px}.lang-picker select{max-width:118px;padding:8px 7px;font-size:12px}.content-language-pill{display:flex;width:max-content;margin:9px 0 0}.translation-progress{grid-template-columns:1fr}.translation-progress .bar{min-width:0}.translation-progress small{grid-column:auto}}
.site-header .brand + .nav-actions{margin-left:auto}
@media(max-width:920px){.site-header .nav-actions{margin-left:auto}}

/* ===== ENGAGE Learning Hub build 0.5.5: project certificate pathways ===== */
.module-meta{display:flex;gap:7px;flex-wrap:wrap;margin:-14px 0 13px}.module-meta span,.track-tag,.track-pill,.partner-pill{display:inline-flex;align-items:center;padding:5px 8px;border-radius:999px;font-size:10px;font-weight:900;letter-spacing:.035em;text-transform:uppercase}.module-meta span:first-child,.track-pill{background:#eef7f1;color:#247552}.module-meta span:last-child,.partner-pill{background:#f2f4f3;color:#5b6c64}.course-module-meta{display:flex;gap:9px;flex-wrap:wrap;margin:-2px 0 16px}.certificate-pathways-section{padding-top:0}.certificate-pathways-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}.certificate-pathway-card{--track:#247552;background:#fff;border:1px solid var(--line);border-top:5px solid var(--track);border-radius:22px;padding:23px;box-shadow:0 8px 24px rgba(25,55,44,.05)}.certificate-pathway-card.track-engagement{--track:#5fb9cf}.certificate-pathway-card.track-empowerment{--track:#8b78c8}.certificate-pathway-card.track-connection{--track:#53b67a}.certificate-pathway-head{display:grid;grid-template-columns:auto 1fr auto;gap:12px;align-items:center;margin-bottom:16px}.pathway-dot{width:16px;height:16px;border-radius:50%;background:var(--track);box-shadow:0 0 0 6px color-mix(in srgb,var(--track) 16%,white)}.certificate-pathway-head small{display:block;color:var(--muted);font-size:10px;font-weight:900;letter-spacing:.1em}.certificate-pathway-head h3{font-size:24px;margin:1px 0 0}.certificate-pathway-head>strong{font-size:14px;color:var(--track)}.certificate-pathway-card .bar>span{background:var(--track)}.pathway-modules{display:flex;flex-direction:column;gap:8px;margin-top:17px}.pathway-modules>span{font-size:12px;color:var(--muted)}.pathway-modules>span.done{color:#247552;font-weight:800}.pathway-modules.detailed>a{display:grid;grid-template-columns:22px 1fr;gap:9px;align-items:start;padding:9px 0;border-bottom:1px solid #eef2ef}.pathway-modules.detailed>a:last-child{border-bottom:0}.pathway-modules.detailed>a>span:first-child{color:var(--muted);font-weight:900}.pathway-modules.detailed>a.done>span:first-child{color:#247552}.pathway-modules.detailed strong{display:block;font-size:13px}.pathway-modules.detailed small{display:block;color:var(--muted);font-size:11px;margin-top:2px}.pathway-help{font-size:13px;color:var(--muted);margin:0}.certificate-pathway-footer{margin-top:20px;padding-top:16px;border-top:1px solid var(--line)}.certificates-page-grid{align-items:stretch}.track-tag.track-engagement{background:#e9f6fa;color:#33798a}.track-tag.track-empowerment{background:#f0ecf8;color:#66539a}.track-tag.track-connection{background:#eaf7ef;color:#247552}.admin-rule-modules{display:flex;flex-direction:column;gap:6px;margin:9px 0 18px}.admin-rule-modules span{padding:8px 10px;border-radius:10px;background:#f5f8f6;font-size:12px;font-weight:800}.admin-rule-modules small{font-weight:500;color:var(--muted)}
@media(max-width:920px){.certificate-pathways-grid{grid-template-columns:1fr}.certificate-pathway-card{min-height:auto}}

/* ===== ENGAGE Learning Hub build 0.5.7: unified multilingual course editor ===== */
.translation-tabs{display:flex;gap:9px;flex-wrap:wrap;margin:0 0 20px}.translation-tab{min-width:118px;display:grid;grid-template-columns:auto 1fr auto;gap:8px;align-items:center;padding:10px 12px;border:1px solid var(--line);border-radius:14px;background:#fff;transition:.18s}.translation-tab:hover{transform:translateY(-1px);box-shadow:0 7px 18px rgba(25,55,44,.06)}.translation-tab.active{border-color:#77b990;background:#eef8f2;box-shadow:inset 0 0 0 1px #77b990}.translation-tab strong{font-size:12px;color:var(--green-dark)}.translation-tab span{font-size:12px;font-weight:800}.translation-tab em{font-style:normal;font-size:10px;color:var(--muted);font-weight:900}.compact-tabs .translation-tab{min-width:105px;grid-template-columns:auto 1fr}.compact-tabs .translation-tab em{display:none}.translation-notice{margin-top:0}.source-reference{display:block;margin-top:7px;padding:7px 9px;border-radius:9px;background:#f5f8f6;color:#607069;font-size:11px;line-height:1.4}.source-details{margin-top:8px;border:1px solid var(--line);border-radius:10px;background:#f8faf9}.source-details summary{cursor:pointer;padding:8px 10px;font-size:11px;font-weight:900;color:var(--green-dark)}.source-details>p,.source-details>div{padding:0 10px 10px;margin:0;color:#52655c;font-size:12px;white-space:normal}.readonly-meta{min-height:48px;display:flex;align-items:center;padding:12px 13px;border:1px solid var(--line);border-radius:13px;background:#f5f8f6;font-weight:800;color:#53665d}.part-editor-head{display:flex;align-items:center;justify-content:space-between;gap:15px}.part-editor-head h3{margin:4px 0 0}.structured-editor{margin:24px 0;padding:19px;border:1px solid var(--line);border-radius:18px;background:#f8faf9}.structured-editor-head{margin-bottom:18px}.structured-editor-head h3{margin:4px 0 4px}.structured-editor-head p{margin:0;color:var(--muted);font-size:13px}.structured-section{padding:18px;background:#fff;border:1px solid var(--line);border-radius:15px;margin-bottom:14px}.structured-section:last-child{margin-bottom:0}.structured-text-field{padding-top:8px;border-top:1px dashed #e2e9e5}.structured-media-row{display:grid;grid-template-columns:180px 1fr;gap:16px;align-items:center;padding:12px;border:1px solid var(--line);border-radius:13px;background:#fbfcfb;margin:12px 0}.structured-media-preview img{display:block;width:100%;height:115px;object-fit:contain;border-radius:9px;background:#fff;border:1px solid #edf1ee}.structured-media-row .field{margin:0}.media-type-chip{height:70px;border-radius:12px;background:#edf6f0;color:var(--green-dark);display:grid;place-items:center;font-weight:900}.media-url-note{display:block;margin-top:6px;color:var(--muted);font-size:10px;overflow-wrap:anywhere}.activity-editor-card{padding:17px;border:1px solid var(--line);border-radius:15px;background:#fff;margin:12px 0}.activity-editor-title{display:flex;align-items:center;justify-content:space-between;gap:12px}.translation-answer{display:grid!important;grid-template-columns:30px 1fr!important;gap:9px!important;align-items:start!important}.translation-answer>div{min-width:0}.answer-key-marker{display:grid;place-items:center;width:28px;height:28px;border-radius:50%;background:#f1f4f2;color:#84908a;font-weight:900;margin-top:8px}.answer-key-marker.correct{background:#e6f6ed;color:#247552}.content-translation-matrix td{vertical-align:middle}.module-owner-note{display:block;color:var(--muted);font-size:10px;margin-top:4px}.translation-cell{display:flex;flex-direction:column;align-items:flex-start;gap:1px;padding:8px 10px;border-radius:11px;background:#f2f4f3;min-width:72px}.translation-cell strong{font-size:13px}.translation-cell span{font-size:10px;font-weight:800;color:var(--muted)}.translation-cell.started{background:#fff4db;color:#815d18}.translation-cell.ready{background:#e6f6ed;color:#247552}.translation-cell.ready span,.translation-cell.started span{color:inherit;opacity:.8}
@media(max-width:760px){.translation-tab{min-width:calc(50% - 5px)}.structured-media-row{grid-template-columns:1fr}.structured-media-preview img{height:auto;max-height:230px}.content-translation-matrix{min-width:920px}}

/* 0.5.7 unified module editing workspace */
.unified-module-editor{padding-bottom:90px}.module-jump-nav{position:sticky;top:72px;z-index:8;display:flex;gap:8px;flex-wrap:wrap;margin:0 0 18px;padding:10px;background:rgba(248,250,249,.94);backdrop-filter:blur(8px);border:1px solid var(--line);border-radius:14px}.module-jump-nav a{padding:8px 12px;border-radius:10px;background:#fff;border:1px solid var(--line);font-size:12px;font-weight:900;color:var(--green-dark)}.module-jump-nav a:hover{border-color:#8dc2a1;background:#eef8f2}.unified-module-form{display:grid;gap:20px}.unified-overview-card,.unified-part-card{scroll-margin-top:150px}.editor-section-title h3{margin:4px 0 18px;font-size:25px}.module-media-inline{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin:18px 0}.inline-media-editor{border:1px solid var(--line);border-radius:15px;background:#f8faf9;padding:13px}.inline-media-preview{min-height:170px;display:grid;place-items:center;margin-bottom:12px;border-radius:12px;overflow:hidden;background:#fff;border:1px solid #e7eeea;color:var(--muted);font-size:12px}.inline-media-preview.image-preview img{width:100%;height:210px;object-fit:contain}.inline-media-preview.video-preview .course-video{margin:0;width:100%}.inline-media-preview.video-preview .course-video-frame{aspect-ratio:16/9}.inline-media-preview.video-preview figcaption{display:none}.lesson-flow{display:grid;gap:16px;margin-top:20px}.unified-block-card{border:1px solid var(--line);border-radius:18px;padding:18px;background:#fbfcfb}.unified-block-card.type-theory{border-left:4px solid #77b990}.unified-block-card.type-h5p{border-left:4px solid #e7b653}.unified-block-card.type-quiz{border-left:4px solid #6f91c8}.unified-block-head{display:flex;align-items:flex-start;justify-content:space-between;gap:15px;margin-bottom:14px}.unified-block-head h4{margin:4px 0 0;font-size:21px}.advanced-edit-link{font-size:11px;font-weight:900;color:var(--muted);white-space:nowrap}.advanced-edit-link:hover{color:var(--green-dark)}.compact-field{margin-bottom:16px}.document-flow-editor{display:grid;gap:14px}.document-section-card{border:1px solid var(--line);border-radius:16px;background:#fff;overflow:hidden}.document-section-heading{display:grid;grid-template-columns:70px 1fr;gap:12px;align-items:start;padding:14px 16px;background:#f2f7f4;border-bottom:1px solid var(--line)}.document-section-heading>span{font-size:10px;font-weight:900;text-transform:uppercase;letter-spacing:.08em;color:var(--green-dark);padding-top:13px}.document-section-heading .field{margin:0}.document-stream{padding:16px;display:grid;gap:14px}.document-text-chunk,.document-media-chunk{position:relative;border:1px solid #e1e8e4;border-radius:14px;background:#fff;padding:16px}.document-text-chunk{background:#fdfefd}.document-item-label{position:absolute;right:11px;top:9px;padding:4px 7px;border-radius:8px;background:#eef5f0;color:var(--green-dark);font-size:9px;font-weight:900;text-transform:uppercase;letter-spacing:.08em}.document-text-chunk textarea{margin-top:8px;min-height:120px}.document-text-chunk>small,.target-pane>small{display:block;margin-top:7px;color:var(--muted);font-size:10px}.translation-pair{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin-top:8px}.source-pane,.target-pane{min-width:0}.source-pane>span,.target-pane>span{display:block;margin-bottom:8px;font-size:10px;font-weight:900;text-transform:uppercase;letter-spacing:.06em;color:var(--muted)}.source-reading{height:100%;min-height:120px;max-height:360px;overflow:auto;padding:13px;border-radius:11px;background:#f4f7f5;border:1px solid var(--line);white-space:pre-wrap;font-size:12px;line-height:1.55;color:#52655c}.document-media-chunk{display:grid;grid-template-columns:minmax(220px,.9fr) minmax(0,1.1fr);gap:16px;align-items:start;background:#fafcfb}.document-media-preview{min-height:180px;display:grid;place-items:center;padding:8px;border-radius:12px;background:#fff;border:1px solid var(--line)}.document-media-preview img{display:block;width:100%;max-height:320px;object-fit:contain;border-radius:8px}.document-video-preview .course-video{margin:0}.document-video-preview .course-video-frame{aspect-ratio:16/9}.document-video-preview figcaption{font-size:10px}.document-media-fields{display:grid;gap:10px}.document-media-fields .field{margin:0}.h5p-inline-editor,.quiz-inline-editor{margin-top:15px}.inline-editor-note{padding:11px 13px;border-radius:11px;background:#f4f7f5;border:1px solid var(--line);font-size:12px;color:#52655c;margin-bottom:10px}.activity-inline-card,.quiz-inline-question{border:1px solid var(--line);border-radius:13px;background:#fff;margin:9px 0;overflow:hidden}.activity-inline-card>summary,.quiz-inline-question>summary{display:grid;grid-template-columns:auto 1fr auto;gap:10px;align-items:center;padding:12px 14px;cursor:pointer;list-style:none}.activity-inline-card>summary::-webkit-details-marker,.quiz-inline-question>summary::-webkit-details-marker{display:none}.activity-inline-card>summary span,.quiz-inline-question>summary span{font-size:10px;font-weight:900;text-transform:uppercase;color:var(--green-dark)}.activity-inline-card>summary strong,.quiz-inline-question>summary strong{font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.activity-inline-card>summary em{font-style:normal;font-size:10px;color:var(--muted)}.activity-inline-card[open]>summary,.quiz-inline-question[open]>summary{background:#f4f8f6;border-bottom:1px solid var(--line)}.activity-inline-body,.quiz-inline-body{padding:14px}.quiz-structure-link{display:inline-block;margin-top:8px}.editor-advanced-fields{margin-top:14px;border-top:1px dashed #dbe4df;padding-top:10px}.editor-advanced-fields>summary{cursor:pointer;font-size:11px;font-weight:900;color:var(--muted)}.editor-advanced-fields[open]>summary{margin-bottom:12px}.sticky-save-bar{position:sticky;bottom:14px;z-index:12;display:flex;align-items:center;justify-content:space-between;gap:18px;padding:13px 15px;border-radius:16px;background:rgba(27,56,44,.96);color:#fff;box-shadow:0 14px 38px rgba(15,35,27,.24);backdrop-filter:blur(9px)}.sticky-save-bar div{display:flex;flex-direction:column}.sticky-save-bar span{font-size:11px;opacity:.74}.sticky-save-bar .btn{margin:0}.unified-module-editor textarea{line-height:1.5}.unified-module-editor textarea[data-auto-resize]{overflow:hidden;resize:vertical}
@media(max-width:980px){.module-media-inline,.document-media-chunk,.translation-pair{grid-template-columns:1fr}.module-jump-nav{top:62px}.document-section-heading{grid-template-columns:1fr}.document-section-heading>span{padding-top:0}.sticky-save-bar{bottom:8px}.inline-media-preview.image-preview img{height:180px}}

/* 0.5.8 document-flow editor: media is embedded directly inside the text canvas */
.document-composer{display:block!important;padding:18px 20px!important;background:#fff;max-width:100%;overflow:hidden}
.document-composer .document-flow-item{width:100%;max-width:100%;margin:0;padding:0;border:0;border-radius:0;background:transparent}
.document-composer .document-flow-item+.document-flow-item{margin-top:18px}
.document-composer .document-text-chunk{position:relative}
.document-composer .document-text-chunk textarea,.document-composer textarea.lesson-textarea,.translation-pair textarea{display:block!important;width:100%!important;max-width:100%!important;min-width:0!important;box-sizing:border-box!important;margin:0!important;padding:14px 15px!important;border:1px solid var(--line)!important;border-radius:12px!important;background:#fff!important;font:inherit!important;line-height:1.55!important}
.document-composer .document-text-chunk>small,.document-composer .target-pane>small{display:block;margin-top:7px;color:var(--muted);font-size:10px}
.document-composer .translation-pair{width:100%;min-width:0}
.document-composer .source-pane,.document-composer .target-pane{width:100%;min-width:0}
.document-inline-media{position:relative;padding:14px 0 4px!important;border-top:1px dashed #dce6e0!important;border-bottom:1px dashed #dce6e0!important}
.inline-media-kind{display:inline-flex;margin:0 0 9px;padding:4px 8px;border-radius:999px;background:#eef6f1;color:var(--green-dark);font-size:9px;font-weight:900;text-transform:uppercase;letter-spacing:.08em}
.document-inline-media .document-media-preview,.document-inline-media .document-video-preview{width:100%;min-height:0;margin:0;border:0;border-radius:12px;background:#f7faf8;overflow:hidden}
.document-inline-media .document-media-preview{padding:10px;display:grid;place-items:center}
.document-inline-media .document-media-preview img{display:block;width:auto;max-width:100%;height:auto;max-height:520px;object-fit:contain;margin:auto}
.document-inline-media .document-video-preview .course-video{width:100%;margin:0}
.document-inline-media .document-video-preview .course-video-frame{width:100%;aspect-ratio:16/9}
.document-inline-media figcaption{display:block;margin-top:9px}
.inline-caption-input{display:block;width:100%!important;min-width:0!important;border:1px solid transparent!important;border-radius:10px!important;padding:9px 10px!important;background:#f7faf8!important;font:inherit!important;font-weight:700!important;color:var(--ink)!important}
.inline-caption-input:focus{background:#fff!important;border-color:#9fcbb0!important;outline:none}
.inline-media-settings{margin-top:7px}
.inline-media-settings>summary{cursor:pointer;display:inline-block;font-size:10px;font-weight:900;color:var(--green-dark)}
.inline-media-settings[open]>summary{margin-bottom:8px}
.inline-media-settings .field{margin:0;padding:10px;border-radius:11px;background:#f7faf8}
.media-missing{display:grid;place-items:center;min-height:110px;color:var(--muted);font-size:12px}
.document-section-card{overflow:visible}
@media(max-width:980px){.document-composer{padding:14px!important}.document-inline-media .document-media-preview img{max-height:360px}}

/* ENGAGE 0.5.9 — source-aware single-document module editor */
.source-aware-editor{display:grid;gap:22px}.source-aware-section{border:1px solid #dce6e0;border-radius:18px;background:#f6f9f7;overflow:hidden}.source-aware-heading{display:grid;grid-template-columns:minmax(260px,.8fr) minmax(0,1.2fr);gap:18px;align-items:center;padding:15px 18px;background:#edf5f0;border-bottom:1px solid #dce6e0}.source-breadcrumb{min-width:0}.source-breadcrumb span{display:block;margin-bottom:3px;font-size:9px;font-weight:900;text-transform:uppercase;letter-spacing:.1em;color:var(--green-dark)}.source-breadcrumb strong{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px;color:#304b3e}.source-breadcrumb em{display:block;margin-top:3px;font-style:normal;font-size:10px;color:var(--muted)}.source-section-title label{display:block;margin-bottom:5px;font-size:10px;font-weight:900;text-transform:uppercase;letter-spacing:.06em;color:var(--muted)}.source-section-title input{width:100%;box-sizing:border-box}.source-section-title small{display:block;margin-top:5px;color:var(--muted);font-size:10px}
.original-source-panel{margin:14px 16px 0;border:1px solid #d8e4dc;border-radius:14px;background:#fff;overflow:hidden}.original-source-panel>summary{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:11px 14px;cursor:pointer;list-style:none;background:#fbfdfc}.original-source-panel>summary::-webkit-details-marker{display:none}.original-source-panel>summary span{font-size:12px;font-weight:900;color:var(--green-dark)}.original-source-panel>summary small{font-size:10px;color:var(--muted)}.original-source-panel[open]>summary{border-bottom:1px solid #e2eae5;background:#f1f7f3}.original-source-body{max-height:460px;overflow:auto;padding:15px 18px}.original-source-flow{display:grid;gap:0}.original-source-item{display:grid;grid-template-columns:34px minmax(0,1fr);gap:10px;padding:10px 0;border-bottom:1px solid #edf1ee}.original-source-item:last-child{border-bottom:0}.source-item-number{width:27px;height:27px;border-radius:9px;background:#eaf4ed;color:var(--green-dark);display:grid;place-items:center;font-size:10px;font-weight:900}.source-item-content{min-width:0}.source-item-content p{margin:3px 0 7px;line-height:1.55}.source-item-content h5{margin:3px 0 8px;font-size:15px}.source-item-content .source-bullet{padding-left:7px}.source-item-content .source-media-label{font-weight:850;color:var(--green-dark)}.source-item-content img{display:block;max-width:100%;max-height:300px;object-fit:contain;margin:4px auto 7px;border-radius:10px}.source-item-content>.course-video{margin:4px 0 8px}.source-item-content>.course-video figcaption{font-size:10px}.source-empty{margin:0;color:var(--muted);font-size:12px}
.editable-lesson-head{display:flex;align-items:end;justify-content:space-between;gap:16px;margin:16px 16px 8px;padding:0 2px}.editable-lesson-head div{display:flex;flex-direction:column;gap:2px}.editable-lesson-head span{font-size:10px;font-weight:900;text-transform:uppercase;letter-spacing:.08em;color:var(--green-dark)}.editable-lesson-head strong{font-size:14px}.editable-lesson-head small{max-width:380px;text-align:right;font-size:10px;color:var(--muted)}
.lesson-paper-editor{margin:0 16px 18px;background:#fff;border:1px solid #dfe7e2;border-radius:15px;box-shadow:0 8px 22px rgba(30,60,46,.04);overflow:hidden}.lesson-paper-item{position:relative;margin:0;padding:22px 24px 18px 58px;border:0;border-bottom:1px solid #eef2ef;background:#fff}.lesson-paper-item:last-child{border-bottom:0}.lesson-source-marker{position:absolute;left:12px;top:18px;width:36px;padding:5px 3px;border-radius:8px;background:#edf5f0;color:var(--green-dark);font-size:8px;line-height:1.25;font-weight:900;text-align:center;text-transform:uppercase}.lesson-paper-text textarea.lesson-textarea{display:block!important;width:100%!important;max-width:100%!important;min-width:0!important;box-sizing:border-box!important;margin:0!important;padding:8px 4px 9px!important;border:0!important;border-bottom:1px dashed #dbe5df!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;font:inherit!important;font-size:15px!important;line-height:1.65!important;color:var(--ink)!important;resize:vertical}.lesson-paper-text textarea.lesson-textarea:focus{outline:0!important;border-bottom-color:#75ac8b!important;background:#fbfdfb!important}.editor-format-help{display:block;margin-top:7px;color:#8a9891;font-size:9px}.inline-source-reference{margin:0 0 10px;border-left:3px solid #b7cfbf;background:#f6faf7;border-radius:0 9px 9px 0}.inline-source-reference>summary{cursor:pointer;padding:8px 10px;font-size:10px;font-weight:850;color:#567162}.inline-source-reference>div{padding:0 10px 10px;white-space:pre-wrap;font-size:11px;line-height:1.5;color:#63756d}
.lesson-paper-media{display:block;text-align:center;background:#fcfdfc}.lesson-media-visual{max-width:760px;margin:0 auto 10px}.lesson-media-visual img{display:block;max-width:100%;max-height:520px;object-fit:contain;margin:0 auto;border-radius:10px}.lesson-media-visual.video-visual .course-video{margin:0 auto;max-width:760px;text-align:left}.lesson-media-visual.video-visual .course-video-frame{aspect-ratio:16/9}.lesson-media-visual.video-visual .course-video figcaption{display:none}.lesson-paper-media figcaption{max-width:760px;margin:0 auto;text-align:left}.paper-caption-input{display:block;width:100%!important;box-sizing:border-box;border:0!important;border-bottom:1px dashed #dbe5df!important;border-radius:0!important;background:transparent!important;padding:8px 4px!important;font:inherit!important;font-size:12px!important;color:#53675e!important}.paper-caption-input:focus{outline:0!important;border-bottom-color:#75ac8b!important}.paper-media-settings{margin-top:5px;text-align:left}.paper-media-settings>summary{cursor:pointer;color:#84938b;font-size:9px;font-weight:800}.paper-media-settings input{width:100%;box-sizing:border-box;margin-top:7px;padding:8px 9px;border:1px solid var(--line);border-radius:9px;font-size:10px}.lesson-paper-media .source-reference{display:block;margin-top:5px;text-align:left;font-size:9px;color:var(--muted)}
/* suppress the old card-like document editor treatment inside the new paper editor */
.source-aware-editor .document-text-chunk,.source-aware-editor .document-inline-media{border:0;background:transparent}.source-aware-editor .translation-pair{display:block!important}.source-aware-editor .source-pane{display:none}.source-aware-editor .target-pane>span{display:none}
@media(max-width:900px){.source-aware-heading{grid-template-columns:1fr}.editable-lesson-head{align-items:flex-start;flex-direction:column}.editable-lesson-head small{text-align:left}.lesson-paper-item{padding-left:48px;padding-right:14px}.lesson-source-marker{left:8px;width:31px}.original-source-panel{margin-left:10px;margin-right:10px}.lesson-paper-editor{margin-left:10px;margin-right:10px}}

/* 0.5.9 overview and source trace refinements */
.overview-source-ribbon{display:flex;align-items:center;gap:9px;flex-wrap:wrap;margin:18px 0 8px;padding:9px 12px;border-radius:11px;background:#eef6f1;border:1px solid #dce8e0}.overview-source-ribbon span{font-size:9px;font-weight:900;text-transform:uppercase;letter-spacing:.08em;color:var(--green-dark)}.overview-source-ribbon strong{font-size:11px;color:#3c574b}.overview-source-ribbon small{font-size:10px;color:var(--muted)}.overview-content-paper{border:1px solid #dfe7e2;border-radius:15px;background:#fff;overflow:hidden}.overview-paper-block,.overview-paper-media{padding:18px 22px;border-bottom:1px solid #eef2ef}.overview-content-paper>:last-child{border-bottom:0}.overview-paper-block>label{display:block;margin-bottom:8px;font-size:10px;font-weight:900;text-transform:uppercase;letter-spacing:.06em;color:var(--green-dark)}.overview-paper-block textarea{display:block!important;width:100%!important;box-sizing:border-box!important;margin:0!important;padding:8px 4px!important;border:0!important;border-bottom:1px dashed #dbe5df!important;border-radius:0!important;background:transparent!important;font:inherit!important;line-height:1.6!important}.overview-paper-block textarea:focus{outline:0!important;border-bottom-color:#75ac8b!important;background:#fbfdfb!important}.overview-item-label{display:block;margin-bottom:10px;font-size:9px;font-weight:900;text-transform:uppercase;letter-spacing:.08em;color:var(--green-dark)}.overview-paper-media .lesson-media-visual{margin-bottom:8px}.overview-paper-media .lesson-media-visual img{max-width:100%;max-height:420px;object-fit:contain}.overview-paper-media .course-video{max-width:760px;margin:0 auto}.block-source-line{margin:-7px 0 12px;padding:7px 10px;border-radius:9px;background:#f4f7f5;color:#71827a;font-size:9px}.block-source-line span{font-weight:900;color:#52685d}.lesson-paper-item{padding-left:112px}.lesson-source-marker{left:18px;width:78px;padding:6px 6px;font-size:8px;line-height:1.3}.source-item-content .course-video-frame{max-height:320px}.source-item-content .course-video iframe{max-height:320px}
@media(max-width:760px){.lesson-paper-item{padding-left:14px;padding-top:48px}.lesson-source-marker{left:14px;top:12px;width:auto;max-width:180px}.overview-paper-block,.overview-paper-media{padding:15px}}

/* ENGAGE 0.6.1 — simplified visual lesson editor */
.simple-module-editor{max-width:none}.simple-head-actions{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.simple-advanced-link{font-size:11px;font-weight:800;color:var(--green-dark);text-decoration:none}.simple-module-form{display:grid;gap:20px}.simple-card-title,.simple-part-head{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:16px}.simple-card-title h3,.simple-part-head h3{margin:3px 0 0}.simple-overview-main,.simple-part-meta{display:grid;gap:14px}.simple-settings-drawer,.simple-secondary-editor,.simple-source-drawer,.simple-inline-source{border:1px solid #dfe8e2;border-radius:13px;background:#f9fbfa}.simple-settings-drawer{margin-top:16px}.simple-settings-drawer>summary,.simple-secondary-editor>summary,.simple-source-drawer>summary,.simple-inline-source>summary{cursor:pointer;list-style:none}.simple-settings-drawer>summary::-webkit-details-marker,.simple-secondary-editor>summary::-webkit-details-marker,.simple-source-drawer>summary::-webkit-details-marker,.simple-inline-source>summary::-webkit-details-marker{display:none}.simple-settings-drawer>summary{padding:12px 14px;font-size:12px;font-weight:900;color:var(--green-dark)}.simple-settings-drawer[open]>summary{border-bottom:1px solid #dfe8e2}.simple-settings-drawer>.form-grid{padding:16px}.simple-inline-source{margin-top:7px;background:#f4f8f5}.simple-inline-source>summary{padding:7px 9px;font-size:10px;font-weight:800;color:#587166}.simple-inline-source p{margin:0;padding:0 10px 10px;font-size:11px;line-height:1.55;color:#61736b}.simple-part{scroll-margin-top:20px}.simple-part-meta{margin-bottom:18px;padding-bottom:18px;border-bottom:1px solid #e8efeb}.simple-theory-block{display:grid;gap:16px}.simple-block-title{display:flex;align-items:center;gap:10px;margin:2px 0}.simple-block-title>span{font-size:10px;font-weight:900;text-transform:uppercase;letter-spacing:.08em;color:var(--green-dark)}.simple-block-title>input{flex:1;max-width:440px;border:0;border-bottom:1px solid #dce6df;border-radius:0;background:transparent;padding:6px 3px;font-size:14px;font-weight:800}.simple-lesson-section{border:1px solid #dce6df;border-radius:17px;background:#fff;box-shadow:0 9px 24px rgba(25,55,42,.04);overflow:hidden}.simple-lesson-section-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 15px;background:#f1f7f3;border-bottom:1px solid #dfe8e2}.simple-section-title{min-width:0;flex:1;border:0!important;background:transparent!important;padding:4px 2px!important;font-size:14px!important;font-weight:900!important;color:#2c493b!important;box-shadow:none!important}.simple-lesson-section-head>span{font-size:9px;color:#73847c;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:44%}.simple-editor-toolbar{position:sticky;top:0;z-index:3;display:flex;align-items:center;gap:6px;flex-wrap:wrap;padding:9px 12px;background:#fbfdfc;border-bottom:1px solid #edf1ee}.simple-editor-toolbar button{border:1px solid #dce6df;border-radius:9px;background:#fff;padding:7px 10px;font:inherit;font-size:10px;font-weight:850;color:#466255;cursor:pointer}.simple-editor-toolbar button:hover{background:#eef7f1;border-color:#bdd2c4}.simple-editor-toolbar .media-button{background:#eaf5ed;color:var(--green-dark);border-color:#cae0d1}.toolbar-separator{width:1px;height:22px;background:#dfe7e2;margin:0 2px}.simple-lesson-canvas{min-height:260px;padding:28px 34px 34px;outline:0;font-size:15px;line-height:1.72;color:var(--ink);caret-color:var(--green-dark)}.simple-lesson-canvas:focus{background:#fff}.simple-lesson-canvas p,.simple-lesson-canvas h4,.simple-lesson-canvas h5{max-width:900px;margin:0 auto 16px}.simple-lesson-canvas p{min-height:1.4em}.simple-lesson-canvas h4{font-size:21px;line-height:1.3;margin-top:24px;color:#234638}.simple-lesson-canvas h5{font-size:15px;line-height:1.4;color:#355d4b}.simple-lesson-canvas .simple-editor-bullet{position:relative;padding-left:23px}.simple-lesson-canvas .simple-editor-bullet:before{content:'•';position:absolute;left:5px;color:var(--green-dark);font-weight:900}.simple-lesson-canvas:empty:before{content:attr(data-placeholder);color:#9aa8a1;pointer-events:none}.simple-editor-media{position:relative;display:block;max-width:820px;margin:24px auto;padding:14px;border:1px solid #dce6df;border-radius:14px;background:#f9fbfa;text-align:center}.simple-editor-media img{display:block;max-width:100%;max-height:560px;object-fit:contain;margin:0 auto;border-radius:10px}.simple-editor-media figcaption{min-height:22px;margin-top:10px;padding:7px 8px;border-radius:8px;background:#fff;color:#5d7067;font-size:11px;text-align:left;outline:0}.simple-editor-media figcaption:empty:before{content:'Add a caption…';color:#a0aca6}.simple-editor-video-preview .course-video{margin:0}.simple-editor-video-preview .course-video figcaption{display:none}.simple-editor-video-preview .course-video-frame{aspect-ratio:16/9}.simple-video-link{display:flex;align-items:center;justify-content:center;min-height:130px;border-radius:10px;background:#eef4f0;color:var(--green-dark);font-weight:850;word-break:break-all}.simple-media-controls{position:absolute;right:10px;top:10px;z-index:2;display:flex;gap:4px;padding:4px;border-radius:10px;background:rgba(255,255,255,.94);box-shadow:0 3px 12px rgba(30,60,45,.12)}.simple-media-controls button{border:0;border-radius:7px;background:#edf4ef;padding:5px 7px;font-size:9px;font-weight:850;color:#496458;cursor:pointer}.simple-media-controls button:last-child{color:#8f3f3f;background:#fff0f0}.simple-source-drawer{margin:0 12px 12px;background:#f7faf8}.simple-source-drawer>summary{padding:9px 11px;font-size:10px;font-weight:850;color:#62756b}.simple-source-drawer>div{max-height:430px;overflow:auto;padding:12px 16px;border-top:1px solid #e4ebe7}.simple-source-flow{max-width:850px;margin:0 auto}.simple-source-flow p,.simple-source-flow h5{margin:5px 0 11px;line-height:1.55}.simple-source-media{margin:14px 0;padding:10px;border-radius:11px;background:#fff;border:1px solid #e2eae5}.simple-source-media img{display:block;max-width:100%;max-height:340px;object-fit:contain;margin:auto}.simple-source-media small{display:block;margin-top:7px;color:#73847c}.simple-source-empty,.simple-empty-note{margin:0;color:#7f8f87;font-size:11px}.simple-secondary-editor{margin-top:16px;background:#fafcfa}.simple-secondary-editor>summary{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:13px 15px}.simple-secondary-editor>summary div{display:flex;flex-direction:column;gap:2px}.simple-secondary-editor>summary strong{font-size:13px}.simple-secondary-editor>summary span{font-size:10px;color:#7b8a83}.simple-secondary-editor>summary .simple-expand-label{font-weight:850;color:var(--green-dark)}.simple-secondary-editor[open]>summary{border-bottom:1px solid #e2eae5;background:#f4f8f5}.simple-secondary-body{display:grid;gap:14px;padding:16px}.simple-activity-card{display:grid;gap:10px;padding:14px;border:1px solid #e2e9e5;border-radius:13px;background:#fff}.simple-activity-number{font-size:10px;font-weight:900;text-transform:uppercase;letter-spacing:.07em;color:var(--green-dark)}.simple-quiz-question{border:1px solid #e2e9e5;border-radius:12px;background:#fff;overflow:hidden}.simple-quiz-question>summary{display:flex;align-items:center;gap:10px;padding:11px 13px;cursor:pointer;list-style:none}.simple-quiz-question>summary::-webkit-details-marker{display:none}.simple-quiz-question>summary span{display:grid;place-items:center;min-width:28px;height:28px;border-radius:8px;background:#eaf4ed;color:var(--green-dark);font-size:10px;font-weight:900}.simple-quiz-question>summary strong{font-size:11px;line-height:1.45}.simple-quiz-body{display:grid;gap:9px;padding:13px;border-top:1px solid #e8eeea}.simple-answer-row{display:grid;grid-template-columns:26px minmax(0,1fr);gap:8px;align-items:center}.simple-answer-row>input[type=text],.simple-answer-row>input:not([type]){width:100%}.simple-answer-row>small{grid-column:2;color:#819087;font-size:9px}.simple-save-bar{z-index:10}
@media(max-width:800px){.simple-lesson-section-head{align-items:flex-start;flex-direction:column}.simple-lesson-section-head>span{max-width:100%}.simple-lesson-canvas{padding:22px 16px 26px}.simple-editor-toolbar{position:static}.simple-media-controls{position:static;justify-content:flex-end;margin-bottom:8px}.simple-head-actions{align-items:flex-start}.simple-answer-row{grid-template-columns:24px minmax(0,1fr)}}

/* ENGAGE 0.6.2 — unified visual system and typography polish */
:root{
  --font-sans:"Inter","Segoe UI Variable","Segoe UI",Roboto,Helvetica,Arial,sans-serif;
  --ink:#183029;
  --ink-strong:#10231d;
  --muted:#687a72;
  --paper:#ffffff;
  --wash:#f4f7f5;
  --surface-soft:#f8faf9;
  --surface-green:#eff7f2;
  --green:#53b67a;
  --green-dark:#246f50;
  --green-deep:#1d5d43;
  --lime:#d7ee65;
  --line:#dce6df;
  --line-strong:#cbd9d0;
  --shadow-sm:0 6px 18px rgba(24,48,41,.055);
  --shadow-md:0 14px 36px rgba(24,48,41,.09);
  --shadow-lg:0 24px 60px rgba(24,48,41,.12);
  --shadow:var(--shadow-md);
  --radius-sm:10px;
  --radius-md:14px;
  --radius-lg:20px;
  --radius-xl:26px;
  --radius:20px;
}
html{font-size:16px;background:var(--wash)}
body{font-family:var(--font-sans);font-size:16px;line-height:1.62;font-weight:400;color:var(--ink);background:var(--wash);text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased}
main{min-height:calc(100vh - 250px)}
::selection{background:#d9efe1;color:var(--ink-strong)}
a{transition:color .18s ease,background-color .18s ease,border-color .18s ease,box-shadow .18s ease,transform .18s ease}
a:focus-visible,button:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible,[contenteditable="true"]:focus-visible{outline:3px solid rgba(83,182,122,.24);outline-offset:2px}
h1,h2,h3,h4,h5,h6{font-family:var(--font-sans);color:var(--ink-strong);font-weight:750;letter-spacing:-.025em;text-wrap:balance}
h1{font-size:clamp(2.6rem,5vw,4rem);line-height:1.02;letter-spacing:-.045em}
h2{font-size:clamp(1.75rem,3vw,2.25rem);line-height:1.12}
h3{font-size:1.35rem;line-height:1.2}
h4{font-size:1.12rem;line-height:1.3}
p{margin-top:0}small{font-size:.75rem;line-height:1.45}.muted{color:var(--muted)}
code{font-family:"SFMono-Regular",Consolas,"Liberation Mono",monospace;font-size:.9em;background:#f0f4f2;border:1px solid #e3eae6;border-radius:7px;padding:.12em .38em;color:#355548}

/* Header / navigation */
.site-header{background:rgba(255,255,255,.96);border-bottom:1px solid rgba(24,48,41,.08);box-shadow:0 1px 0 rgba(24,48,41,.02)}
.nav-wrap{height:80px;gap:24px}
.brand{gap:12px;min-width:245px}
.brand img{width:82px;height:54px}
.brand-divider{height:28px;background:#d8e2dc}
.brand-label{font-size:13px;line-height:1.18;font-weight:750;letter-spacing:-.01em;max-width:96px}
.main-nav{gap:8px}
.main-nav a{padding:11px 13px;border-radius:10px;font-size:13px;font-weight:700;color:#43584f}
.main-nav a:after{display:none}
.main-nav a:hover,.main-nav a.active{background:var(--surface-green);color:var(--green-dark)}
.nav-actions{gap:10px}
.lang-picker select{min-height:40px;border-color:var(--line);border-radius:10px;padding:7px 32px 7px 10px;font-size:12px;font-weight:700;background-color:#fff}
.avatar{width:40px;height:40px;font-size:13px;font-weight:800;background:var(--ink-strong);box-shadow:0 0 0 4px #f0f5f2}
.avatar:hover{background:var(--green-dark);transform:translateY(-1px)}

/* Shared component language */
.eyebrow{gap:9px;font-size:11px;font-weight:800;letter-spacing:.115em;color:var(--green-dark)}
.eyebrow:before{width:24px;height:2px;background:var(--green)}
.btn{min-height:44px;padding:11px 17px;border-radius:12px;font-family:var(--font-sans);font-size:13px;line-height:1.2;font-weight:750;letter-spacing:.005em;box-shadow:none;transition:.18s ease}
.btn:hover{transform:translateY(-1px);box-shadow:var(--shadow-sm);background:#213c33}
.btn.green{background:var(--green-dark)}.btn.green:hover{background:var(--green-deep)}
.btn.light{border:1px solid var(--line);background:#fff;color:var(--ink)}.btn.light:hover{background:var(--surface-soft)}
.status,.track-tag,.track-pill,.partner-pill,.content-language-pill{font-family:var(--font-sans);font-size:10.5px;font-weight:750;letter-spacing:.025em;border-radius:999px}
.status{padding:6px 10px}
.notice,.flash{border-radius:var(--radius-md);font-size:13px;line-height:1.5;box-shadow:none}
.bar{height:8px;background:#e7ede9}.bar>span{background:linear-gradient(90deg,var(--green-dark),var(--green),var(--lime))}

/* Forms */
.field{margin:16px 0}
.field label,.compact-field label{font-size:12px;font-weight:750;letter-spacing:.005em;color:#365047;margin-bottom:7px}
.field input,.field textarea,.field select,.compact-field input,.compact-field textarea,.compact-field select,.form-grid input,.form-grid textarea,.form-grid select{font-family:var(--font-sans);font-size:14px;line-height:1.45;color:var(--ink);border:1px solid var(--line);border-radius:11px;background:#fff;box-shadow:0 1px 0 rgba(24,48,41,.015);transition:border-color .18s ease,box-shadow .18s ease,background .18s ease}
.field input,.field select,.compact-field input,.compact-field select,.form-grid input:not([type="checkbox"]):not([type="radio"]),.form-grid select{min-height:44px}
.field input:focus,.field textarea:focus,.field select:focus,.compact-field input:focus,.compact-field textarea:focus,.compact-field select:focus,.form-grid input:focus,.form-grid textarea:focus,.form-grid select:focus{border-color:#8dc6a3;box-shadow:0 0 0 4px rgba(83,182,122,.12);outline:none}
.field-note{font-size:11px;line-height:1.5;color:var(--muted)}

/* Dashboard hero and cards */
.hero{background:linear-gradient(135deg,#edf7f1 0%,#f6faf7 55%,#f2f6ec 100%)}
.hero:after{right:-90px;top:-180px;width:520px;height:520px;opacity:.5}
.hero-inner{min-height:390px;gap:56px;padding:50px 0}
.hero h1{margin:15px 0 18px;max-width:720px}
.hero p{font-size:18px;line-height:1.6;color:#536c62}
.hero-card{padding:12px;border-radius:25px;box-shadow:var(--shadow-lg);transform:rotate(.45deg)}
.hero-card img{border-radius:17px}
.hero-stat{left:-18px;bottom:28px;padding:12px 15px;border-radius:13px;font-size:12px;font-weight:750;box-shadow:var(--shadow-md)}
.section{padding:48px 0 66px}
.section-head{align-items:flex-end;gap:24px;margin-bottom:24px}
.section-head h2{margin:4px 0 0}.section-head p{font-size:14px;line-height:1.5;color:var(--muted);max-width:660px;margin-top:6px}
.progress-summary{padding:18px 20px;border-radius:var(--radius-lg);border-color:var(--line);box-shadow:var(--shadow-sm)}
.progress-meta{font-size:12px;font-weight:750}
.modules-grid{gap:18px}
.module-card{padding:23px;border-radius:var(--radius-lg);border-color:var(--line);min-height:300px;box-shadow:0 1px 0 rgba(24,48,41,.015)}
.module-card:hover{transform:translateY(-3px);box-shadow:var(--shadow-md);border-color:#cbdcd1}
.module-number{width:42px;height:42px;border-radius:12px;margin-bottom:23px;font-size:13px;font-weight:800}
.module-meta{margin:-9px 0 13px;gap:6px}
.module-card h3{font-size:21px;line-height:1.18;font-weight:750;letter-spacing:-.025em;margin-bottom:10px}
.module-card p{font-size:13.5px;line-height:1.55;color:var(--muted);margin-bottom:20px}
.module-footer{gap:12px}
.arrow{width:36px;height:36px;border-color:var(--line);font-size:18px;color:var(--green-dark);background:#fbfdfc}
.module-card:hover .arrow{background:var(--surface-green);border-color:#c7ddd0}
.certificate-pathway-card{border-radius:var(--radius-lg)!important;box-shadow:var(--shadow-sm)!important}
.certificate-pathway-head h3{font-size:22px!important;font-weight:750!important}
.pathway-modules>span,.pathway-help{font-size:12.5px!important}

/* Course pages */
.course-hero{padding:42px 0 36px;background:linear-gradient(180deg,#fff 0%,#fbfdfc 100%)}
.course-hero-inner{gap:40px}
.course-title{font-size:clamp(2.45rem,5vw,3.55rem);line-height:1.03;margin:13px 0 14px}
.course-description{max-width:800px;font-size:16.5px;line-height:1.65;color:#5c7067}
.course-module-meta{gap:7px;margin:12px 0 4px}
.course-progress-row{margin-top:22px;font-size:13px}
.course-hero-media{border-radius:var(--radius-lg);border-color:var(--line);box-shadow:var(--shadow-md)}
.course-hero-media img{height:260px}.course-hero-media figcaption{font-size:10.5px}
.course-layout{grid-template-columns:250px minmax(0,1fr);gap:24px;padding:30px 0 68px}
.course-side{top:100px;padding:14px;border-radius:var(--radius-lg);box-shadow:var(--shadow-sm)}
.course-side>strong{display:block;padding:4px 8px 0;font-size:12px;font-weight:800;color:#385349}
.part-link{padding:11px 12px;border-radius:10px;font-size:13px;font-weight:700;color:#4d6259}
.part-link small{font-size:10.5px;font-weight:500;color:#7b8a83}
.part-link:hover{background:#f5f8f6;color:var(--green-dark)}
.part-link.active{background:var(--surface-green);color:var(--green-dark)}
.learning-block{border-radius:var(--radius-lg);padding:27px;border-color:var(--line);box-shadow:var(--shadow-sm);margin-bottom:16px}
.learning-block h2{font-size:27px;margin:5px 0 9px}.learning-block h3{font-size:22px;font-weight:750}
.block-label{font-size:10px;font-weight:800;letter-spacing:.11em}
.block-cards{gap:11px;margin-top:20px}
.block-card{border-radius:13px;background:#fafcfb;padding:14px;box-shadow:none}
.block-card:hover{box-shadow:var(--shadow-sm);transform:translateY(-1px);border-color:#c9dbd0}
.block-card strong{font-size:13px;font-weight:750}.block-card small{font-size:10.5px}
.block-icon{width:38px;height:38px;border-radius:10px}
.reading{padding:34px}
.learning-text{max-width:820px;margin:0 auto;font-size:16px;line-height:1.76;color:#334b42}
.learning-text p{margin:0 0 17px}.learning-text h3{font-size:25px;line-height:1.25;margin:32px 0 13px}.learning-text h4{font-size:19px;line-height:1.3;margin:24px 0 9px}
.quiz-question legend{font-size:16px;line-height:1.45;font-weight:750}.answer-option{border-radius:11px;padding:11px 13px;font-size:14px}.answer-option:hover{background:#fbfdfc}

/* Authentication */
.login-shell{min-height:calc(100vh - 80px);padding:36px}
.login-card{width:min(930px,100%);border-radius:var(--radius-xl);box-shadow:var(--shadow-lg);border:1px solid rgba(24,48,41,.05)}
.login-visual{padding:46px;min-height:540px}
.login-visual-title{font-size:38px;line-height:1.08;margin:14px 0 14px;color:#fff;letter-spacing:-.035em}
.login-visual-copy{font-size:15px;line-height:1.6;color:#d8e6df;max-width:430px}
.login-eyebrow{color:var(--lime)!important}
.login-form{padding:50px}.login-form h1{font-size:38px;line-height:1.05;margin:15px 0 28px}
.form-foot{font-size:13px;color:var(--muted);margin-top:20px}.form-foot a{color:var(--green-dark)}

/* Admin */
.admin-layout{grid-template-columns:230px minmax(0,1fr);background:var(--wash)}
.admin-side{padding:25px 17px;background:#132b24}
.admin-brand{margin:0 8px 19px;font-size:14px;font-weight:750;letter-spacing:-.015em;color:#fff}
.admin-side a{padding:10px 12px;border-radius:9px;margin:2px 0;font-size:12.5px;font-weight:650;color:#c7d5cf}
.admin-side a:hover,.admin-side a.active{background:rgba(255,255,255,.09);color:#fff}
.admin-side a.active{box-shadow:inset 3px 0 0 var(--lime)}
.admin-main{padding:32px 34px 54px;min-width:0}
.admin-title{font-size:clamp(2rem,4vw,2.75rem)!important;line-height:1.05!important;margin:7px 0 0!important}
.admin-card{border-radius:var(--radius-lg);border-color:var(--line);padding:22px;box-shadow:var(--shadow-sm);margin-bottom:18px}
.admin-card h2{font-size:21px;margin:0 0 8px}.admin-card h3{font-size:17px}
.admin-card>p{font-size:13.5px;color:var(--muted)}
.admin-stats{gap:13px}.admin-stats .admin-card{padding:19px}.admin-stats .admin-card strong{font-size:29px;font-weight:750;letter-spacing:-.04em}.admin-stats .admin-card p{font-size:11.5px;margin:3px 0 0}
.table{font-size:13px}.table th,.table td{padding:12px 11px;font-size:13px;vertical-align:middle}.table th{font-size:10px;font-weight:800;letter-spacing:.08em;color:#72827a;background:#fafcfb}.table tbody tr:hover{background:#fbfdfc}.table td a{color:var(--green-dark);font-weight:700}.table td a:hover{text-decoration:underline}
.icon-btn{border-radius:9px!important;font-family:var(--font-sans);font-weight:750}

/* Simple visual module editor */
.simple-module-form{gap:18px}.simple-card-title,.simple-part-head{margin-bottom:14px}.simple-card-title h3,.simple-part-head h3{font-size:19px;font-weight:750}
.simple-settings-drawer,.simple-secondary-editor,.simple-source-drawer,.simple-inline-source{border-radius:12px;border-color:var(--line);background:#fafcfb}
.simple-settings-drawer>summary{font-size:11.5px;font-weight:750}
.simple-block-title>span{font-size:9.5px;font-weight:800}.simple-block-title>input{font-size:13px;font-weight:750}
.simple-lesson-section{border-radius:15px;border-color:var(--line);box-shadow:var(--shadow-sm)}
.simple-lesson-section-head{padding:11px 14px;background:#f1f7f3}.simple-section-title{font-size:13.5px!important;font-weight:750!important;color:#28493c!important}
.simple-lesson-section-head>span{font-size:9.5px}
.simple-editor-toolbar{padding:8px 11px;background:#fcfdfc}.simple-editor-toolbar button{padding:7px 9px;border-radius:8px;font-size:10px;font-weight:750}
.simple-lesson-canvas{padding:27px 32px 32px;font-size:15.5px;line-height:1.74;color:#30483f}
.simple-lesson-canvas p,.simple-lesson-canvas h4,.simple-lesson-canvas h5{max-width:860px}.simple-lesson-canvas h4{font-size:20px;font-weight:750;color:#213f34}.simple-lesson-canvas h5{font-size:15px;font-weight:750;color:#315b49}
.simple-editor-media{max-width:800px;padding:12px;border-radius:12px;background:#fafcfb}.simple-editor-media img{border-radius:8px}.simple-editor-media figcaption{font-size:11.5px;line-height:1.5}
.simple-media-controls{border-radius:9px}.simple-media-controls button{font-size:9.5px;font-weight:750}
.simple-secondary-editor>summary strong{font-size:12.5px;font-weight:750}.simple-secondary-editor>summary span{font-size:10.5px}
.simple-quiz-question>summary strong{font-size:11.5px;font-weight:700}.simple-activity-number{font-size:9.5px;font-weight:800}
.sticky-save-bar{border-radius:14px;padding:12px 14px;background:rgba(19,43,36,.96);box-shadow:0 12px 34px rgba(15,35,27,.18)}

/* Footer */
.site-footer{padding:34px 0;background:#fff;border-top-color:var(--line)}
.footer-grid{gap:36px}.footer-logo{width:108px}.site-footer p{font-size:11px;line-height:1.5;color:#76867e}.eu-funding img{width:min(330px,100%)}

@media(max-width:920px){
  .nav-wrap{height:74px}.brand img{width:74px;height:48px}.hero-inner{padding:42px 0;min-height:340px}.section{padding:40px 0 54px}.course-layout{grid-template-columns:1fr}.admin-main{padding:26px 22px 45px}.login-shell{padding:24px}.login-form{padding:40px}.course-hero-media img{height:auto;max-height:280px}
}
@media(max-width:620px){
  body{font-size:15px}.container{width:min(100% - 24px,1180px)}.nav-wrap{height:68px}.brand img{width:70px;height:44px}.lang-picker select{max-width:92px;min-height:38px}.avatar{width:37px;height:37px}.hero-inner{padding:34px 0}.hero h1{font-size:2.55rem}.hero p{font-size:16px}.section{padding:34px 0 46px}.module-card{min-height:auto;padding:20px}.section-head h2{font-size:1.75rem}.progress-summary{padding:15px 16px}.learning-block{padding:21px}.reading{padding:22px 18px}.learning-text{font-size:15.5px}.login-shell{padding:14px}.login-form{padding:30px 24px}.login-form h1{font-size:32px}.admin-main{padding:22px 14px 40px}.admin-card{padding:17px}.simple-lesson-canvas{padding:22px 16px 26px;font-size:15px}.footer-grid{gap:26px}
}

/* 0.6.2 installer/auth utility cleanup */
.installer-note{font-size:12px;line-height:1.55;color:var(--muted);margin-top:18px}
.installer-status{padding:12px 14px;background:var(--surface-soft);border:1px solid var(--line);border-radius:12px;margin:14px 0 20px;font-size:13px;line-height:1.7;color:#486057}
.form-divider{border:0;border-top:1px solid var(--line);margin:24px 0}
.check-row{display:flex;align-items:flex-start;gap:10px;margin:16px 0 20px;font-size:13px;font-weight:600;line-height:1.5;color:#4a6057}
.check-row input{width:auto!important;margin-top:3px;accent-color:var(--green-dark)}
.form-error{font-size:13px;font-weight:650;color:#a5342f}


/* ENGAGE 0.6.3 — certificate preview controls */
.certificate-admin-actions{display:flex;align-items:flex-end;gap:12px;flex-wrap:wrap;margin-top:18px}
.certificate-admin-actions .field{margin:0;min-width:180px;max-width:240px}
.certificate-actions .status{margin-left:auto}
@media (max-width:720px){.certificate-admin-actions{align-items:stretch}.certificate-admin-actions .field{max-width:none;width:100%}.certificate-admin-actions .btn{width:100%}.certificate-actions .status{margin-left:0}}


/* ENGAGE 0.6.4 — registration profile + official project identity */
.brand-meta{display:flex;flex-direction:column;gap:3px;min-width:0}.brand-meta small{font-size:8px;line-height:1.15;color:var(--muted);font-weight:750;letter-spacing:.015em;white-space:nowrap}.login-project-identity{font-size:11px!important;line-height:1.45!important;color:#d5e6dd!important;margin-top:18px!important;max-width:460px!important}.register-card .login-form{padding-top:42px;padding-bottom:42px}.registration-grid{gap:12px}.registration-grid .field{margin-top:8px;margin-bottom:8px}.field-note{display:block;margin-top:7px;color:var(--muted);font-size:11px;line-height:1.45}.footer-project-identity{font-weight:650;color:#5f746b!important}.certificate-project-identity{position:absolute;left:7%;right:7%;bottom:2.4%;text-align:center;font-size:9px;line-height:1.35;font-weight:700;color:inherit;opacity:.76;letter-spacing:.015em}.certificate-sheet .certificate-project-identity{max-width:86%;margin:auto}.certificate-static .eyebrow{margin-bottom:2px}
@media(max-width:620px){.brand-meta small{display:none}.registration-grid{grid-template-columns:1fr}.certificate-project-identity{font-size:7px;bottom:1.4%}}

.certificate-print-note{margin:0 0 14px;color:var(--muted);font-size:12px;text-align:center}.certificate-actions{align-items:center;gap:10px;flex-wrap:wrap}.certificate-actions .btn{white-space:nowrap}

/* Build 0.6.6 — account management */
.user-actions{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.danger-text{color:#b12c28}.danger-text:hover{color:#861f1b;text-decoration:underline}.compact-head{margin-bottom:14px}.compact-head h2{margin-bottom:5px}.compact-head p{max-width:760px;margin:0;color:var(--muted);font-size:13px}

/* ENGAGE 0.7.1 — mobile interface refinement */
html,body{max-width:100%;overflow-x:hidden}
img,video,iframe{max-width:100%}
.mobile-nav-toggle,.mobile-site-nav,.admin-mobile-nav{display:none}
.mobile-nav-toggle{width:42px;height:42px;border:1px solid var(--line);border-radius:12px;background:#fff;align-items:center;justify-content:center;flex-direction:column;gap:4px;padding:0;cursor:pointer;color:var(--ink);box-shadow:0 2px 8px rgba(23,37,45,.04)}
.mobile-nav-toggle>span:not(.sr-only){display:block;width:18px;height:2px;border-radius:99px;background:currentColor;transition:transform .2s ease,opacity .2s ease}
.mobile-nav-toggle[aria-expanded="true"]>span:nth-child(1){transform:translateY(6px) rotate(45deg)}
.mobile-nav-toggle[aria-expanded="true"]>span:nth-child(2){opacity:0}
.mobile-nav-toggle[aria-expanded="true"]>span:nth-child(3){transform:translateY(-6px) rotate(-45deg)}
.mobile-site-nav[hidden]{display:none!important}

@media(max-width:920px){
  /* Top navigation */
  .site-header{backdrop-filter:blur(16px)}
  .nav-wrap{height:72px;gap:10px}
  .brand{min-width:0;flex:1;gap:10px;overflow:hidden}
  .brand img{width:70px;height:46px;flex:0 0 auto}
  .brand-label{font-size:12px;max-width:none;white-space:nowrap}
  .brand-meta{min-width:0;overflow:hidden}
  .brand-meta small{overflow:hidden;text-overflow:ellipsis;max-width:170px}
  .nav-actions{gap:7px;flex:0 0 auto}
  .lang-picker select{max-width:116px;min-height:42px;padding:8px 9px;border-radius:11px;font-size:12px}
  .avatar{width:40px;height:40px;flex:0 0 40px;font-size:13px}
  .mobile-nav-toggle{display:flex;flex:0 0 42px}
  .mobile-site-nav{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;padding-top:10px;padding-bottom:12px;border-top:1px solid rgba(23,37,45,.06)}
  .mobile-site-nav.is-open{display:grid}
  .mobile-site-nav a{display:flex;align-items:center;justify-content:center;min-height:46px;padding:10px 12px;border:1px solid var(--line);border-radius:12px;background:#fff;font-size:13px;font-weight:750;color:#3d554c;text-align:center}
  .mobile-site-nav a.active{background:var(--surface-green,#eef7f1);border-color:#c9ddd0;color:var(--green-dark)}

  /* Dashboard */
  .hero:after{width:330px;height:330px;right:-150px;top:-160px;opacity:.5}
  .hero-inner{min-height:0;padding:40px 0 42px;gap:0}
  .hero h1{font-size:clamp(2.6rem,9vw,3.8rem);line-height:1;max-width:620px}
  .hero p{font-size:17px;line-height:1.55}
  .section-head{align-items:flex-start}
  .section-head>.btn{flex:0 0 auto}
  .module-card:hover,.block-card:hover,.memory-card:hover{transform:none}
  .certificate-pathway-card{padding:20px}

  /* Course navigation and learning pages */
  .course-hero{padding:34px 0 27px}
  .course-title{font-size:clamp(2.25rem,7.5vw,3.15rem);line-height:1.03}
  .course-description{font-size:16px;line-height:1.58}
  .course-layout{display:block;padding:0 0 54px}
  .course-side{position:sticky;top:72px;z-index:30;display:flex;align-items:center;gap:6px;width:calc(100% + 40px);margin:0 -20px 22px;padding:9px 20px;border-width:0 0 1px;border-radius:0;background:rgba(255,255,255,.97);box-shadow:0 7px 18px rgba(23,55,43,.08);overflow-x:auto;overscroll-behavior-x:contain;scrollbar-width:none}
  .course-side::-webkit-scrollbar{display:none}
  .course-side>strong,.course-side>.bar{display:none}
  .part-link{flex:0 0 auto;white-space:nowrap;padding:9px 11px;border:1px solid transparent;border-radius:10px;font-size:12px;line-height:1.25}
  .part-link small{display:none}
  .part-link.active{border-color:#cfe2d5;background:#eef7f1}
  .block-cards{grid-template-columns:1fr}
  .block-card{grid-template-columns:auto minmax(0,1fr) auto;gap:10px;min-height:68px}
  .block-card .status{grid-column:auto;align-self:center;white-space:nowrap}
  .learning-block{border-radius:18px;padding:24px;margin-bottom:14px}
  .reading{padding:26px 22px}
  .learning-text{font-size:16px;line-height:1.72}
  .learning-text h3{font-size:23px}.learning-text h4{font-size:18px}
  .course-video figcaption{align-items:flex-start;flex-direction:column;gap:5px}
  .course-video figcaption a{white-space:normal;overflow-wrap:anywhere}
  .h5p-frame{min-height:520px}
  .interactive-learning-block{padding:26px}
  .native-activity{padding:18px}
  .native-activity>header{align-items:flex-start}
  .source-image-button img,.theory-inline-visual img{max-height:none}

  /* Authentication */
  .login-shell{min-height:calc(100vh - 72px);padding:20px}
  .login-card{border-radius:22px}
  .login-visual{min-height:220px;padding:30px}
  .login-visual-title{font-size:30px}
  .login-form{padding:34px}

  /* Administration */
  .admin-layout{display:block;min-height:0}
  .admin-side{display:none}
  .admin-mobile-nav{position:sticky;top:72px;z-index:28;display:grid;grid-template-columns:auto minmax(0,1fr);gap:10px;align-items:center;padding:10px 20px;background:rgba(19,43,36,.97);box-shadow:0 8px 18px rgba(15,35,27,.12)}
  .admin-mobile-nav label{color:#fff;font-size:11px;font-weight:800;white-space:nowrap}
  .admin-mobile-nav select{width:100%;min-width:0;border:1px solid rgba(255,255,255,.18);border-radius:10px;background:#fff;color:var(--ink);padding:10px 34px 10px 11px;font:inherit;font-size:12px;font-weight:750}
  .admin-main{padding:24px 20px 44px;min-width:0}
  .admin-main>.section-head{gap:14px}
  .admin-title{font-size:2.15rem!important}
  .admin-card{max-width:100%;overflow-x:auto}
  .table-scroll{width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch;padding-bottom:3px}
  .table-scroll .table{min-width:720px}
  .translation-table{min-width:920px}
  .user-actions{min-width:120px}
  .form-grid{gap:12px}
  .language-tabs{flex-wrap:nowrap;overflow-x:auto;padding-bottom:4px;scrollbar-width:none}
  .language-tabs::-webkit-scrollbar{display:none}
  .language-tabs a{flex:0 0 auto}
  .module-jump-nav{top:124px;flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none}
  .module-jump-nav::-webkit-scrollbar{display:none}
  .module-jump-nav a{flex:0 0 auto}
  .sticky-save-bar{bottom:max(8px,env(safe-area-inset-bottom));padding:11px 12px}
}

@media(max-width:720px){
  .container,.narrow{width:min(100% - 24px,1180px)}
  .course-side{width:calc(100% + 24px);margin-left:-12px;padding-left:12px;padding-right:12px}
  .brand-divider{display:none}
  .brand-meta small{display:none}
  .brand-label{font-size:11.5px}
  .modules-grid{grid-template-columns:1fr}
  .module-card{padding:20px;border-radius:18px}
  .module-number{margin-bottom:18px}
  .module-card h3{font-size:21px}
  .module-footer{gap:10px}
  .certificate-pathways-grid{gap:14px}
  .certificate-pathway-head h3{font-size:21px}
  .certificate-pathway-footer{align-items:flex-start;flex-direction:column}
  .certificate-pathway-footer .btn{width:100%}
  .course-hero-media{margin-top:16px}
  .course-module-meta{gap:6px}
  .track-pill,.partner-pill{white-space:normal;text-align:left}
  .part-overview h2{font-size:25px}
  .quiz-head{flex-direction:column;gap:10px}
  .quiz-result{flex-direction:column;gap:5px}
  .quiz-question{margin:23px 0}
  .quiz-question legend{font-size:15.5px}
  .answer-option{min-height:48px;padding:12px 13px}
  .answer-option input{width:18px;height:18px;flex:0 0 auto}
  .complete-row{justify-content:stretch}
  .complete-row .btn{width:100%}
  .next-row .btn{width:100%}
  .interactive-heading h2,.native-intro h2{font-size:25px}
  .native-activity>header{flex-direction:column;gap:9px}
  .h5p-badge{align-self:flex-start}
  .activity-actions .btn{flex:1 1 auto;min-height:44px}
  .branch-choices,.memory-grid{grid-template-columns:1fr}
  .clue-row{grid-template-columns:28px minmax(0,1fr)}
  .clue-row input{grid-column:2}
  .wordsearch-grid{width:100%;padding:5px;gap:1px}
  .wordsearch-grid span{font-size:8px;border-radius:2px}
  .engage-lightbox{padding:12px}.lightbox-close{right:10px;top:10px;width:38px;height:38px}

  .login-shell{padding:12px}
  .login-card{border-radius:18px}
  .login-visual{min-height:185px;padding:24px}
  .login-visual-copy{font-size:14px}
  .login-form{padding:28px 22px}
  .login-form h1{font-size:30px;margin-bottom:23px}
  .field{margin:14px 0}
  .field input,.field textarea,.field select{min-height:46px;font-size:16px}
  .registration-grid{grid-template-columns:1fr}

  .admin-mobile-nav{grid-template-columns:1fr;gap:5px;padding:9px 12px}
  .admin-mobile-nav label{display:none}
  .admin-main{padding:20px 12px 40px}
  .admin-main>.section-head{flex-direction:column;align-items:stretch}
  .admin-main>.section-head>.btn{width:100%}
  .admin-stats,.report-stats{grid-template-columns:1fr 1fr}
  .admin-card{padding:16px;border-radius:15px}
  .form-grid{grid-template-columns:1fr}
  .simple-card-title,.simple-part-head,.simple-head-actions{align-items:flex-start;flex-direction:column}
  .simple-card-title .btn,.simple-head-actions .btn{width:100%}
  .simple-lesson-section{border-radius:12px}
  .simple-lesson-canvas{padding:20px 14px 24px}
  .simple-editor-toolbar{gap:5px;overflow-x:auto;flex-wrap:nowrap;scrollbar-width:none}
  .simple-editor-toolbar::-webkit-scrollbar{display:none}
  .simple-editor-toolbar button{flex:0 0 auto;min-height:38px}
  .simple-editor-media{margin:18px 0;padding:10px}
  .simple-media-controls{flex-wrap:wrap}
  .simple-secondary-editor>summary{align-items:flex-start}
  .simple-save-bar,.sticky-save-bar{align-items:stretch;flex-direction:column;gap:8px}
  .simple-save-bar .btn,.sticky-save-bar .btn{width:100%}
  .certificate-actions{align-items:stretch;flex-direction:column}
  .certificate-actions .btn{width:100%}
  .certificate-actions .status{width:100%;text-align:center}
  .certificate-print-note{text-align:left}

  .footer-grid{gap:24px}
  .eu-funding{text-align:left}
  .eu-funding img{width:min(290px,100%)}
}

@media(max-width:480px){
  .nav-wrap{height:64px;gap:6px}
  .brand img{width:56px;height:40px}
  .brand-label{display:none}
  .lang-picker select{max-width:78px;min-height:40px;padding:7px;font-size:11px}
  .avatar{width:38px;height:38px;flex-basis:38px}
  .mobile-nav-toggle{width:40px;height:40px;flex-basis:40px}
  .mobile-site-nav{grid-template-columns:1fr;padding-top:8px;padding-bottom:10px}
  .mobile-site-nav a{min-height:43px}
  .hero-inner{padding:30px 0 34px}
  .hero h1{font-size:2.35rem;margin:13px 0 15px}
  .hero p{font-size:15.5px}
  .eyebrow{font-size:10.5px;letter-spacing:.1em}
  .eyebrow:before{width:20px}
  .section{padding:30px 0 40px}
  .section-head{margin-bottom:20px}
  .section-head h2{font-size:1.65rem}
  .section-head>.btn{width:100%}
  .progress-summary{min-width:0;width:100%;padding:14px 15px}
  .module-meta span{font-size:9px}
  .status{font-size:10.5px;padding:6px 9px}
  .course-hero{padding:27px 0 22px}
  .course-title,.learn-title{font-size:2rem!important;line-height:1.05}
  .course-description{font-size:15px}
  .course-side{top:64px;width:calc(100% + 24px);margin-left:-12px;padding-left:12px;padding-right:12px}
  .learning-block{padding:18px 15px;border-radius:15px}
  .reading{padding:20px 14px}
  .learning-text{font-size:15.5px;line-height:1.68}
  .block-card{grid-template-columns:38px minmax(0,1fr);padding:12px}
  .block-card .status{grid-column:2;justify-self:start}
  .block-icon{width:36px;height:36px}
  .course-progress-row{gap:9px}
  .interactive-learning-block{padding:18px 15px}
  .native-activity{padding:15px;border-radius:14px}
  .mark-passage{padding:13px;font-size:15px;line-height:1.9}
  .fill-item{grid-template-columns:26px minmax(0,1fr);padding:11px}
  .fill-item>span{width:25px;height:25px}
  .h5p-frame{min-height:430px;border-radius:12px}
  .slide-panel{padding:15px}.slide-tabs{overflow-x:auto;flex-wrap:nowrap}.slide-tab{flex:0 0 34px}
  .admin-mobile-nav{top:64px}
  .module-jump-nav{top:112px}
  .admin-title{font-size:1.9rem!important}
  .admin-stats,.report-stats{grid-template-columns:1fr}
  .admin-stats .admin-card{margin-bottom:0}
  .table-scroll .table{min-width:680px}
  .simple-section-title{font-size:13px!important}
  .simple-lesson-section-head>span{max-width:100%;white-space:normal}
  .simple-editor-toolbar{padding:7px 8px}
  .simple-lesson-canvas{font-size:15px}
  .sticky-save-bar{border-radius:12px;margin-left:-4px;margin-right:-4px}
  .certificate-sheet{border-radius:6px}
}

/* ===== ENGAGE Learning Hub 0.7.6: complete branching-scenario flow ===== */
.branch-scenario{display:grid;gap:14px}.branch-progress{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:11px 13px;border:1px solid var(--line);border-radius:12px;background:#f7faf8}.branch-step{flex:0 0 auto;font-size:11px;font-weight:900;letter-spacing:.08em;text-transform:uppercase;color:var(--green-dark)}.branch-path{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-align:right;color:var(--muted);font-size:12px;font-weight:700}.branch-stage{min-height:280px}.branch-scene{border:1px solid var(--line);border-radius:18px;background:#fff;padding:20px}.branch-scene-label,.branch-final-label{display:inline-block;margin-bottom:6px;color:var(--green-dark);font-size:10px;font-weight:900;letter-spacing:.1em;text-transform:uppercase}.branch-scene h4{margin:2px 0 10px;font-size:22px;line-height:1.2}.branch-overview{margin:0 0 17px;color:var(--muted);line-height:1.6}.branch-start-copy{margin:0;padding:15px 16px;border-radius:13px;background:#f2f8f4;color:#344c42;line-height:1.65}.branch-question{margin:18px 0 10px;font-weight:900;color:var(--ink)}.branch-choices{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:11px}.branch-choice{position:relative;display:grid;grid-template-columns:1fr auto;grid-template-areas:"label arrow" "copy arrow";align-items:center;gap:1px 12px;min-height:92px;text-align:left;border:1px solid var(--line);border-radius:15px;background:#fff;padding:14px 15px;font:inherit;color:var(--ink);cursor:pointer;transition:border-color .18s,background .18s,transform .18s,box-shadow .18s}.branch-choice:hover,.branch-choice:focus-visible{border-color:#91c6a4;background:#f5fbf7;transform:translateY(-1px);box-shadow:0 8px 22px rgba(25,55,44,.08);outline:none}.branch-choice-label{grid-area:label;display:block!important;margin:0!important;font-size:9px!important;text-transform:uppercase;letter-spacing:.1em;color:var(--green-dark);font-weight:900}.branch-choice-copy{grid-area:copy;display:block;font-size:14px;line-height:1.4}.branch-choice-arrow{grid-area:arrow;display:grid!important;place-items:center;width:32px;height:32px;margin:0!important;border-radius:50%;background:#eef7f1;color:var(--green-dark);font-size:17px!important;line-height:1}.branch-outcome-card,.branch-learning{margin-top:14px;padding:15px 16px;border-radius:14px}.branch-outcome-card{background:#f5f8f6;border:1px solid var(--line)}.branch-learning{background:#eef7f1;border-left:4px solid var(--green)}.branch-outcome-card>span,.branch-learning>span,.branch-final-feedback>span{display:block;margin-bottom:4px;color:var(--green-dark);font-size:10px;font-weight:900;letter-spacing:.09em;text-transform:uppercase}.branch-outcome-card p,.branch-learning p{margin:0;color:#40564d;line-height:1.6}.branch-final{margin-top:17px;padding:17px;border-radius:15px;background:#f4f9f6;border:1px solid #cfe5d6}.branch-final h5{margin:0 0 8px;font-size:19px;color:var(--green-dark)}.branch-final>p{margin:0 0 10px;color:#40564d}.branch-final-points{margin:9px 0 12px;padding-left:20px;color:#40564d}.branch-final-points li{margin:4px 0}.branch-final-feedback{margin-top:13px;padding:13px 14px;border-radius:12px;background:#fff;border:1px solid #d7e7dc}.branch-final-feedback p{margin:0;color:#40564d;font-weight:650}.branch-final-hint{margin-top:12px!important;font-size:13px;color:var(--muted)!important}.branch-actions{margin-top:0;display:flex;gap:9px;flex-wrap:wrap}.branch-actions .btn[hidden]{display:none!important}
@media(max-width:760px){.branch-progress{align-items:flex-start;flex-direction:column;gap:4px}.branch-path{width:100%;text-align:left;overflow-x:auto;text-overflow:clip;padding-bottom:2px}.branch-scene{padding:16px}.branch-scene h4{font-size:20px}.branch-choices{grid-template-columns:1fr}.branch-choice{min-height:82px}.branch-actions{display:grid;grid-template-columns:1fr 1fr}.branch-actions .btn{width:100%}}
