/* AZGerman — hand-crafted responsive learning UI. No CSS frameworks or CDN dependencies. */
:root{--bg:#f7f8fb;--panel:#fff;--ink:#242b45;--soft:#69738e;--muted:#8992a9;--line:#e8ebf3;--primary:#7062e8;--primary-deep:#584bd6;--primary-pale:#f1efff;--mint:#23a887;--mint-pale:#e8f8f2;--red:#da6475;--orange:#f0a562;--radius:20px;--shadow:0 8px 40px rgba(36,43,69,.045);font-synthesis:none}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--bg);color:var(--ink);font:15px/1.58 Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif}button,input,select,textarea{font:inherit}button{cursor:pointer}a{text-decoration:none;color:inherit}h1,h2,h3,h4,p{margin-top:0}h1{font-size:clamp(29px,3vw,42px);line-height:1.18;letter-spacing:-1.4px;margin-bottom:10px;font-weight:800}h2{font-size:22px;letter-spacing:-.6px;line-height:1.32;margin-bottom:8px}h3{font-size:17px;line-height:1.38;margin-bottom:8px}.muted{color:var(--soft)}.small{font-size:13px}.tiny{font-size:11px}.hidden,[hidden]{display:none!important}::selection{background:#c9c3ff;color:#252049}mark{background:#fff1a7;border-radius:3px;padding:1px 3px}code{font:12px/1.4 ui-monospace,Consolas,monospace;background:#f2f3fa;padding:2px 5px;border-radius:5px}input,select,textarea{outline:none;accent-color:var(--primary)}input:not([type=checkbox]):not([type=radio]),select,textarea{width:100%;min-width:0;border:1px solid #e3e7ef;border-radius:11px;padding:12px 13px;background:#fff;color:var(--ink);transition:box-shadow .2s,border-color .2s}input:focus,textarea:focus,select:focus,[contenteditable=true]:focus{border-color:#9389f2!important;box-shadow:0 0 0 3px rgba(112,98,232,.11)!important}textarea{resize:vertical}label.field,label:not(.review-round):not(.answer-option):not(.answer-text-label):not(.option-edit label){display:block;font-size:12px;font-weight:700;color:#47516a}label input,label select,label textarea{display:block;margin-top:6px}.btn{border:1px solid transparent;padding:11px 18px;min-height:43px;border-radius:12px;font-size:13px;display:inline-flex;gap:9px;align-items:center;justify-content:center;font-weight:750;transition:background .2s,box-shadow .2s,transform .15s;white-space:nowrap;line-height:1.2}.btn:hover:not(:disabled){transform:translateY(-1px)}.btn:disabled,button:disabled{opacity:.48;cursor:not-allowed}.btn.primary{background:var(--primary);color:#fff;box-shadow:0 6px 16px rgba(112,98,232,.18)}.btn.primary:hover{background:var(--primary-deep);box-shadow:0 8px 20px rgba(112,98,232,.22)}.btn.white{background:#fff;color:var(--primary-deep)}.btn.outline{background:#fff;border-color:#dce0ed;color:#596380}.btn.outline:hover{background:#f5f4ff;border-color:#cfc9fa}.btn.small{padding:8px 12px;min-height:34px;font-size:12px}.btn.full{width:100%}.btn.danger-text{background:#fff0f2;border-color:#ffdce2;color:#c34c65}.icon-btn,.ghost-btn{border:none;background:transparent;color:#8490a8;display:inline-flex;align-items:center;justify-content:center;padding:5px 9px;border-radius:8px}.icon-btn:hover,.ghost-btn:hover{background:#f4f2ff;color:#6b5dde}.text-link,.back-link{font-size:13px;font-weight:750;color:var(--primary-deep)}.text-link:hover,.back-link:hover{text-decoration:underline}.back-link{display:inline-block;margin:0 0 24px}.layout{display:flex;min-height:100vh}.sidebar{width:260px;flex:none;background:#fff;border-right:1px solid var(--line);display:flex;flex-direction:column;position:sticky;top:0;height:100vh;padding:30px 18px 18px;z-index:12}.brand,.auth-brand{display:flex;align-items:center;gap:10px;font-size:27px;letter-spacing:-1.5px;padding:0 14px;color:#2b3150}.brand-icon{width:37px;height:37px;display:grid;place-items:center;font-size:22px;font-weight:800;color:#fff;background:var(--primary);border-radius:12px;letter-spacing:0;box-shadow:0 5px 13px rgba(112,98,232,.23)}.accent{color:var(--primary)}.workspace-label{font-size:10px;font-weight:850;letter-spacing:1.5px;color:#a6adc1;margin:51px 15px 19px;display:flex;justify-content:space-between}.sparkle{color:#f0ba7a}.nav{display:grid;gap:7px}.nav-link{display:flex;align-items:center;gap:15px;padding:12px 14px;border-radius:12px;color:#75809a;font-weight:650;font-size:13px;transition:all .2s}.nav-link:hover{background:#f8f6ff;color:var(--primary-deep)}.nav-link.active{background:var(--primary-pale);color:var(--primary-deep);font-weight:800}.nav-ico{width:22px;text-align:center;font-size:21px;line-height:1}.sidebar-callout{background:linear-gradient(135deg,#8072f0,#6b63da);padding:22px 19px;border-radius:18px;color:#fff;margin:auto 3px 30px;position:relative;overflow:hidden}.sidebar-callout::after{content:"";position:absolute;width:95px;height:95px;border:1px solid #ffffff44;border-radius:100%;right:-22px;top:-24px}.sidebar-callout strong{display:block;font-size:14px;margin-top:8px}.sidebar-callout p{font-size:12px;color:#eeebff;line-height:1.7}.callout-star{font-size:27px;color:#fff3b4}.side-bottom{border-top:1px solid var(--line);display:flex;align-items:center;padding:17px 4px 0;gap:9px}.mini-avatar,.top-avatar{display:grid;place-items:center;width:39px;height:39px;flex:none;border-radius:12px;background:#eceaff;color:#685bdc;font-weight:800}.profile-caption{display:flex;flex-direction:column;gap:1px;min-width:0;flex:1}.profile-caption strong{font-size:12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.profile-caption span{font-size:11px;color:var(--muted)}.main-area{flex:1;min-width:0;display:flex;flex-direction:column}.topbar{height:79px;background:#ffffffbf;backdrop-filter:blur(14px);border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 44px;gap:15px}.breadcrumb{color:#98a0b4;font-size:12px;font-weight:600}.breadcrumb span{padding:0 9px;color:#bec4d1}.breadcrumb strong{color:#55627e}.top-right{display:flex;align-items:center;gap:18px}.top-date{font-size:12px;color:var(--muted)}.top-avatar{width:34px;height:34px;border-radius:10px}.hamburger{display:none;border:0;background:transparent;font-size:23px;color:var(--ink)}.content{max-width:1250px;width:100%;margin:0 auto;padding:38px 45px 62px;flex:1}.content-wide{max-width:1370px}.footer{font-size:11px;color:#a7aec1;text-align:center;padding:20px 20px 26px}.footer span{color:var(--primary)}.page-kicker,.section-label,.editor-section-label{font-size:10px;font-weight:850;letter-spacing:1.55px;color:var(--primary);text-transform:uppercase;margin-bottom:10px}.page-head{display:flex;align-items:center;justify-content:space-between;gap:24px;margin-bottom:28px}.page-head p{margin-bottom:0}.title-decoration{color:#e7bb78;font-size:30px}.card-panel,.stat-card,.lesson-card,.quiz-list-card{background:#fff;border:1px solid #eff0f5;border-radius:18px;box-shadow:var(--shadow)}.stat-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:17px;margin:28px 0 36px}.stat-card{padding:23px 22px;min-height:166px;display:flex;flex-direction:column;align-items:flex-start}.stat-icon{border-radius:11px;display:grid;place-items:center;width:37px;height:37px;font-size:21px;margin-bottom:14px}.stat-icon.lilac{background:#f0eaff;color:#8b72e4}.stat-icon.peach{background:#fff1e6;color:#e8aa70}.stat-icon.mint{background:#e5f8f1;color:#25a77b}.stat-icon.blue{background:#e7f3ff;color:#559cdf}.stat-card>span{font-size:12px;color:var(--soft);font-weight:650}.stat-card>strong{font-size:29px;line-height:1.3;letter-spacing:-.8px;margin-top:5px}.stat-card small{color:#a1a8bb;font-size:11px}.stat-total{font-size:16px;color:#9da4b9;font-weight:600}.section-row{display:flex;align-items:center;justify-content:space-between;gap:13px;margin-bottom:17px}.section-row h2{margin:0}.listing-panel{overflow:hidden}.list-entry{display:flex;align-items:center;gap:14px;padding:17px 23px;border-bottom:1px solid #f1f2f7;transition:background .2s}.list-entry:last-child{border-bottom:none}.list-entry:hover,.practice-row:hover{background:#faf9ff}.entry-glyph{display:grid;place-items:center;width:38px;height:38px;border-radius:10px;background:#f0ecff;color:var(--primary);font-size:20px}.entry-main{flex:1;display:flex;flex-direction:column;line-height:1.35;gap:6px}.entry-main strong{font-size:13px}.entry-main small{font-size:11px;color:var(--muted)}.status{font-size:10px;font-weight:750;padding:5px 9px;border-radius:30px}.status.published{background:#e7f8ee;color:#21835a}.status.draft{background:#f2f3f8;color:#7e8596}.entry-arrow{margin-left:10px;color:#a6aec3}.quick-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:15px}.quick-action{background:#fff;border:1px solid var(--line);border-radius:17px;padding:22px;display:flex;flex-direction:column;gap:7px;transition:transform .2s,box-shadow .2s}.quick-action:hover,.lesson-card:hover,.quiz-list-card:hover{transform:translateY(-3px);box-shadow:0 12px 28px #36377312}.quick-icon{font-size:24px;color:var(--primary)}.quick-action strong{font-size:14px}.quick-action small{color:var(--muted);font-size:12px}.hero-card{min-height:270px;background:linear-gradient(115deg,#7d6cef,#9c8ff0);color:#fff;border-radius:24px;display:flex;overflow:hidden;position:relative;margin-bottom:27px}.hero-copy{padding:37px 42px;position:relative;z-index:2;flex:1}.hero-copy h2{font-size:38px;font-weight:800;line-height:1.15;letter-spacing:-1.5px;margin:14px 0}.hero-copy em{font-style:normal;color:#fff7bf}.hero-copy p{color:#f1edff;font-size:13px;max-width:340px}.hero-pill{font-size:10px;letter-spacing:1.1px;font-weight:850;color:#f9f2c9}.hero-art{width:42%;position:relative;display:grid;place-items:center}.art-circle{position:absolute;border-radius:50%;background:#bfb7ff45;border:1px solid #ffffff33}.art-circle.one{width:260px;height:260px}.art-circle.two{width:185px;height:185px;left:20px;top:45px}.art-text{font-family:Georgia,serif;font-weight:800;font-style:italic;font-size:84px;z-index:1;transform:rotate(-12deg);text-shadow:0 8px 25px #38308333}.art-text span{color:#fff0a9}.art-floating{position:absolute;font-size:11px;background:#ffffffed;color:#6b5dda;border-radius:11px;padding:9px 12px;box-shadow:0 15px 30px #423c7c2b;z-index:2}.float-a{left:1%;top:38px;transform:rotate(-11deg)}.float-b{right:15%;bottom:32px;color:#f285a3;font-size:26px}.dashboard-columns{display:grid;grid-template-columns:1.1fr 1fr;gap:23px}.featured-lesson{background:#fff;border:1px solid var(--line);padding:28px;border-radius:19px;min-height:210px;display:block;position:relative;overflow:hidden}.featured-lesson h3{margin:19px 0 8px;font-size:22px;position:relative;z-index:1}.featured-lesson p{font-size:12px;color:var(--soft);max-width:290px;position:relative;z-index:1}.featured-shape{font-family:Georgia,serif;font-weight:800;color:#eeebff;font-size:99px;position:absolute;right:5%;bottom:-10%;transform:rotate(-13deg)}.small-pill,.card-type,.role-pill{display:inline-flex;align-items:center;background:#f2efff;color:#7667d8;padding:5px 11px;border-radius:50px;font-size:10px;font-weight:800;letter-spacing:.1px}.action-inline{font-size:12px;font-weight:800;color:var(--primary);display:inline-flex;gap:10px}.practice-list{padding:8px}.practice-row{display:flex;align-items:center;gap:13px;border-bottom:1px solid #f1f2f7;padding:18px 15px}.practice-row:last-child{border-bottom:none}.practice-row>span:nth-child(2){flex:1;display:flex;flex-direction:column;gap:3px}.practice-row strong{font-size:13px}.practice-row small{font-size:11px;color:#9ba3b9}.practice-bubble{width:39px;height:39px;border-radius:12px;background:#f2edff;color:var(--primary);display:grid;place-items:center;font-size:23px}.practice-row>b{color:#9aa2b5}.filter-bar{display:flex;gap:12px;margin-bottom:19px}.filter-bar .search{flex:1}.filter-bar select{width:auto;min-width:180px}.lesson-grid,.quiz-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:17px}.lesson-card,.quiz-list-card{display:block;padding:22px 22px 19px;transition:transform .2s,box-shadow .2s;min-height:220px}.lesson-card-top,.quiz-top{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:23px}.lesson-card h3,.quiz-list-card h3{font-size:18px;margin-bottom:8px}.lesson-card p,.quiz-list-card p{font-size:12px;color:var(--soft)}.lesson-meta,.quiz-meta{border-top:1px solid #f1f2f7;margin-top:24px;padding-top:15px;display:flex;align-items:center;gap:15px;color:#8a94ad;font-size:11px}.lesson-meta b,.quiz-meta b{margin-left:auto;color:var(--primary);font-size:12px}.quiz-icon{display:grid;place-items:center;width:40px;height:40px;border-radius:12px;font-size:25px}.quiz-icon.purple{background:#f0edff;color:var(--primary)}.quiz-icon.orange{background:#fff1e6;color:#e9a669}.empty-small{padding:30px;color:#96a0b5;text-align:center;font-size:13px}.empty-state{background:#fff;border:1px solid var(--line);border-radius:18px;text-align:center;padding:55px 25px;margin:25px 0}.empty-emoji{font-size:50px;color:#b0a6ef}.empty-state p{color:var(--soft)}.back-row{display:flex;align-items:center;justify-content:space-between}.editor-layout{display:grid;grid-template-columns:minmax(0,1fr) 250px;align-items:start;gap:23px}.editor-main{min-width:0}.editor-panel{padding:25px;margin-bottom:24px}.form-row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin-bottom:15px}.form-row.three{grid-template-columns:repeat(3,minmax(0,1fr))}.form-row:last-child{margin-bottom:0}.editor-panel>label{margin-bottom:15px}.editor-panel>label:last-child{margin-bottom:0}.editor-section-label{margin-bottom:13px}.rich-edit{min-height:130px;border:1px solid #e4e7f0;border-radius:0 0 11px 11px;background:#fff;padding:16px 17px;outline:none;font-size:14px;line-height:1.85;overflow-wrap:anywhere}.intro-edit{min-height:160px}.rich-edit:empty:before{content:attr(data-placeholder);color:#b1b8c6;pointer-events:none}.rich-edit p{margin:0 0 10px}.rich-edit h3{margin:8px 0}.rich-edit ul{padding-left:22px}.editor-toolbar{display:flex;flex-wrap:wrap;gap:5px;align-items:center;background:#f9fafe;border:1px solid #e4e7f0;border-radius:11px 11px 0 0;padding:7px}.editor-toolbar button{background:#fff;color:#48536b;border:1px solid #e7e8ef;border-radius:7px;min-height:30px;padding:5px 9px;font-size:12px}.editor-toolbar button:hover{background:#eeeaff;color:var(--primary)}.editor-blocks-heading{margin:20px 0 14px}.editor-blocks-heading p{margin:4px 0 0}.count-pill{display:inline-block;background:#f0eefb;color:var(--primary);border-radius:30px;padding:7px 12px;font-size:11px;font-weight:800;white-space:nowrap}.editor-item{padding:23px;margin-bottom:18px;scroll-margin-top:20px}.editor-item.dragging{opacity:.55;border:2px dashed var(--primary)}.block-bar{display:flex;align-items:center;gap:9px;margin-bottom:18px;border-bottom:1px solid #f2f3f7;padding-bottom:12px}.drag-grip{font-size:23px;color:#a3a9bc;cursor:grab;user-select:none;line-height:1}.block-label{font-size:10px;font-weight:850;color:#7b70d9;letter-spacing:1px;flex:1}.block-actions{display:flex;gap:4px}.remove-block:hover{color:#c84b63!important;background:#ffeff1!important}.block-content{margin-top:17px}.block-content>.small{margin-bottom:15px}.add-block-panel{background:#f0f1f9;border:1px dashed #d6d6eb;border-radius:17px;padding:23px;margin-bottom:23px}.add-block-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.add-block-btn{min-height:118px;border:1px solid #e6e4f0;border-radius:12px;padding:14px 9px;background:#fff;display:flex;align-items:flex-start;flex-direction:column;text-align:left;gap:4px}.add-block-btn:hover{border-color:var(--primary);background:#faf9ff}.add-block-btn>span{font-size:25px;color:var(--primary);line-height:1.1}.add-block-btn strong{font-size:12px}.add-block-btn small{font-size:10px;color:var(--muted)}.import-section{padding:22px;margin:24px 0}.import-section h3{margin-bottom:5px}.import-section p{margin-bottom:13px}.import-section textarea{font:12px/1.6 ui-monospace,Consolas,monospace;background:#fbfbfd}.button-line{display:flex;flex-wrap:wrap;gap:10px;margin-top:12px}.button-line.center{justify-content:center}.editor-footer{display:flex;justify-content:flex-end;flex-wrap:wrap;gap:12px;margin-top:23px}.sticky-help{position:sticky;top:25px;padding:22px}.steps-mini{display:grid;gap:17px;margin-bottom:21px}.steps-mini>div{display:flex;align-items:flex-start;gap:10px}.steps-mini b{height:23px;width:23px;flex:none;background:#edeaff;color:#6f5fe1;display:grid;place-items:center;border-radius:8px;font-size:12px}.steps-mini span{font-size:12px;line-height:1.55;color:var(--soft)}.teacher-note{background:#fffaf0;color:#967042;padding:13px 12px;border-radius:10px;font-size:11px;line-height:1.7}.save-state{font-size:12px;color:#8790a3}.word-edit{border:1px solid #e9ecf3;background:#fcfcfe;border-radius:13px;padding:18px;margin-bottom:13px}.word-edit-head{display:flex;align-items:center;gap:9px;margin-bottom:12px}.word-edit-head strong{flex:1;font-size:14px}.word-bubble,.token-edit-index{height:25px;width:25px;flex:none;display:grid;place-items:center;background:#ece8ff;color:var(--primary);border-radius:8px;font-weight:800;font-size:11px}.ghost-btn{font-size:12px;font-weight:700;color:#b46a78}.example-editor{padding:8px 0 12px;border-top:1px solid #eceef5}.example-label{display:block;font-size:11px;color:#998aba;font-weight:800;margin:4px 0 8px}.label-row{margin-bottom:11px}.token-action{display:flex;align-items:center;justify-content:space-between;gap:15px;margin:20px 0}.token-action p{margin:0;max-width:480px}.token-edit-table{display:grid;gap:8px}.token-edit{display:grid;grid-template-columns:26px .8fr 1.25fr 1fr 1fr 1.5fr;align-items:end;gap:9px;padding:12px;background:#f9fafd;border-radius:10px}.token-edit input,.token-edit select{font-size:12px!important;padding:9px!important}.token-edit label{font-size:10px!important}.token-edit-index{margin-bottom:10px}.options-editor{display:grid;gap:9px;margin-bottom:12px}.option-edit{display:flex;align-items:center;gap:8px;background:#fafbfe;padding:9px;border:1px solid #eef0f5;border-radius:10px}.option-edit>label{white-space:nowrap;color:var(--soft);font-size:11px;font-weight:700}.option-edit input[type=text]{margin:0;flex:1}.option-edit input[type=radio]{margin-right:4px}.quiz-player-shell{max-width:760px;margin:0 auto}.quiz-player-head{text-align:center;margin:18px 0 28px}.quiz-player-head h1{font-size:34px}.quiz-play-card{background:#fff;border:1px solid var(--line);border-radius:23px;min-height:350px;padding:36px 42px;box-shadow:var(--shadow)}.quiz-welcome{text-align:center;max-width:550px;margin:0 auto}.quiz-welcome-icon,.result-graphic{display:grid;place-items:center;margin:0 auto 18px;border-radius:20px;width:67px;height:67px;background:#f1edff;color:var(--primary);font-size:40px}.quiz-welcome p{color:var(--soft);font-size:14px}.quiz-overview{display:flex;flex-wrap:wrap;gap:9px;justify-content:center;color:#7f88a3;font-size:11px;margin:20px 0 27px}.quiz-overview span{background:#f5f6fa;border-radius:30px;padding:8px 11px}.quiz-progress-row{display:flex;justify-content:space-between;font-size:12px;color:#7d88a1;font-weight:700}.quiz-progress-bar,.mini-meter{height:8px;background:#f0f0f5;border-radius:30px;overflow:hidden;margin:14px 0 27px}.quiz-progress-bar i,.mini-meter i{display:block;background:var(--primary);border-radius:30px;height:100%;transition:width .25s}.question-prompt{font-size:23px;margin:16px 0 25px;white-space:pre-line}.answer-options{display:grid;gap:12px;margin:12px 0 23px}.answer-option{display:flex;align-items:center;gap:14px;border:1px solid #e7e9f1;border-radius:13px;padding:16px;cursor:pointer;color:#505a74;font-size:14px}.answer-option:has(input:checked){border-color:#a99efd;background:#f8f6ff}.answer-option input{width:16px;height:16px}.answer-option input:disabled{cursor:default}.answer-text-label{display:block;margin-bottom:22px;font-size:12px;font-weight:700}.answer-text{font-size:18px!important;margin-top:9px!important}.answer-feedback{padding:18px 21px;margin-bottom:18px;border-radius:12px;font-size:13px}.answer-feedback.correct{background:#e9f9f1;border:1px solid #c4ead7;color:#277d5b}.answer-feedback.incorrect{background:#fff0f1;border:1px solid #f7d4db;color:#a7475a}.answer-feedback p{margin:8px 0 0}.quiz-results{text-align:center}.quiz-results .result-score{font-size:83px;line-height:1.3;font-weight:900;color:var(--primary);letter-spacing:-5px}.quiz-results>p{color:var(--soft)}.lesson-hero{border-radius:23px;background:linear-gradient(120deg,#e9e7ff,#f6f3ff);padding:27px 35px 28px;margin:0 0 27px}.lesson-hero-row{display:flex;align-items:center;justify-content:space-between}.lesson-hero h1{font-size:35px;margin:12px 0 6px}.lesson-hero p{color:#7b74af;font-size:13px;margin:0}.lesson-big-letter{font:italic 79px Georgia,serif;font-weight:800;color:#c2baf4;white-space:nowrap}.lesson-big-letter span{font-size:28px;color:#e5b965}.reading-layout{display:grid;grid-template-columns:minmax(0,1fr) 246px;gap:24px;align-items:start}.reading-main{min-width:0}.reading-intro,.reading-block{padding:30px 31px;background:#fff;border:1px solid #ebedf5;border-radius:18px;margin-bottom:19px}.reading-intro{background:#fefefe}.rich-prose{font-size:14px;color:#4d5670;line-height:1.95;overflow-wrap:anywhere}.rich-prose p:last-child{margin-bottom:0}.rich-prose ul,.rich-prose ol{padding-left:22px}.rich-prose strong{color:#333b54}.tip-block{background:#fffdf6;border-color:#f6edcc}.tip-block .section-label{color:#d7a34c}.study-guide{padding:22px;position:sticky;top:26px}.study-guide-label{font-size:10px;letter-spacing:1.1px;color:#9983d8;font-weight:850}.study-guide p{font-size:12px;color:var(--soft);line-height:1.75;margin:9px 0 18px}.guide-line{font-size:12px;color:#6f7790;display:flex;align-items:center;gap:9px;margin-bottom:14px}.guide-line span{font-size:19px;color:#8e82e8}.sentence-primary{font-size:22px;font-weight:750;margin:13px 0;color:#443875;line-height:1.5}.sentence-translations{background:#f6f7fc;border:1px solid #eff0f6;border-radius:12px;padding:15px;display:flex;flex-direction:column;gap:9px;font-size:14px;color:#515b75}.urdu{font-family:"Noto Naskh Arabic","Noto Sans Arabic",Tahoma,Arial,sans-serif;line-height:1.9!important}.token-strip{display:flex;flex-wrap:wrap;gap:8px;margin:21px 0 16px}.token-chip{background:#f1efff;border:1px solid #e6e2ff;border-radius:11px;min-width:72px;display:flex;flex-direction:column;gap:1px;align-items:center;padding:9px 10px}.token-chip strong{font-size:15px;color:#5347a8}.token-chip span{font-size:10px;font-weight:750;color:#9185c9}.breakdown-table-wrap{overflow-x:auto;width:100%;border-radius:11px;border:1px solid #e9ecf4}.breakdown-table{width:100%;border-collapse:collapse;min-width:610px;font-size:12px}.breakdown-table th{text-align:left;color:#7d849d;background:#f7f8fc;letter-spacing:.2px;font-size:10px;padding:12px}.breakdown-table td{border-top:1px solid #e9ebf3;padding:12px;vertical-align:middle;color:#556078}.breakdown-table .role-pill{font-size:9px;padding:4px 8px;white-space:nowrap}.vocab-title{margin:12px 0 22px}.vocab-title p{margin:6px 0 0}.word-page-meta{color:#7b84a0;font-size:12px;font-weight:600;margin-bottom:14px;display:flex;align-items:center;justify-content:space-between}.word-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.word-card{background:#fff;border:1px solid #e9ebf4;box-shadow:var(--shadow);padding:22px;border-radius:16px;min-width:0}.word-heading{display:flex;justify-content:space-between;align-items:center;gap:9px;margin-bottom:15px}.word-heading h3{font-size:25px;color:#41386c;margin:0}.word-num{font-size:10px;font-weight:850;color:#aaa6c1;letter-spacing:1.2px}.meanings-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));border:1px solid #eaecf5;border-radius:10px;overflow:hidden}.meanings-grid>div{min-width:0;padding:11px 9px;display:flex;flex-direction:column;gap:4px;border-right:1px solid #eaecf5}.meanings-grid>div:last-child{border-right:0}.meanings-grid span,.example-header{font-size:9px;color:#9a9fb5;letter-spacing:1px;font-weight:850}.meanings-grid strong{font-size:12px;overflow-wrap:anywhere;line-height:1.6}.word-note{font-size:12px;color:#59637a;margin:13px 0}.word-note b{color:#6053c3}.example-header{margin:17px 0 10px}.example-list{display:grid;gap:9px}.example-item{border-left:3px solid #ccc5fb;border-radius:0 8px 8px 0;background:#f8f7ff;padding:10px 12px;display:flex;flex-direction:column;gap:5px;color:#5a6580;font-size:12px;line-height:1.6}.example-item b{color:#43466d}.review-head{display:flex;justify-content:space-between;align-items:center;gap:8px;border-top:1px solid #eef0f5;margin-top:19px;padding-top:15px;font-size:12px}.review-head span{color:#8c95ac}.review-rounds{display:flex;gap:7px;margin:11px 0 0}.review-round{flex:1;border:1px solid #e8eaf3;border-radius:9px;display:flex;justify-content:center;align-items:center;gap:6px;padding:9px 4px;background:#fafbfe;font-size:10px;font-weight:700;color:#646f88;cursor:pointer}.review-round:has(input:checked){background:#e5f8ee;border-color:#c2e9d4;color:#1b875b}.review-round input{margin:0;width:14px;height:14px;cursor:pointer}.mini-meter{height:5px;margin:12px 0 0}.mini-meter i{background:var(--mint)}.pagination{display:flex;justify-content:center;align-items:center;flex-wrap:wrap;gap:16px;margin:27px 0}.pagination>span{color:#909ab2;font-size:12px;font-weight:800}.finish-card{display:flex;gap:22px;align-items:center;border-radius:20px;background:#f2efff;border:1px solid #e4dfff;padding:25px 30px;margin-top:21px}.finish-illust{font-size:38px;width:65px;height:65px;display:grid;place-items:center;background:#e5dffe;color:#7f6ee3;border-radius:19px;flex:none}.finish-card h2{margin:0 0 5px}.finish-card p{color:#7d7aa1;font-size:12px;margin-bottom:14px}.finish-actions{display:flex;flex-wrap:wrap;gap:9px}.study-aside{min-width:0}.word-bank{display:block}.analytics-grid{display:grid;grid-template-columns:1.3fr 1fr;gap:18px;margin:0 0 33px}.analytics-card{padding:25px;min-height:290px}.analytics-card h2{font-size:18px}.chart-area{padding-top:8px}.history-bars{display:flex;justify-content:space-around;align-items:end;gap:11px;height:218px}.history-bar-item{height:100%;flex:1;max-width:80px;display:flex;align-items:center;flex-direction:column;justify-content:end;gap:4px}.history-bar-label{font-size:11px;font-weight:800;color:#7669cd}.bar-track{height:160px;width:42px;background:#f6f4ff;border-radius:8px;position:relative;overflow:hidden}.bar-track i{position:absolute;bottom:0;left:0;right:0;background:linear-gradient(#a69cf5,#7869df);border-radius:6px 6px 0 0}.history-bar-item small{max-width:100%;font-size:9px;color:#8d94a9;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.donut-wrap{display:grid;place-items:center;margin:17px 0}.donut{height:160px;width:160px;border-radius:50%;display:grid;place-items:center;background:conic-gradient(var(--primary) calc(var(--percentage)*1%),#eff0f6 0)}.donut>div{height:121px;width:121px;border-radius:50%;display:flex;flex-direction:column;align-items:center;justify-content:center;background:white}.donut strong{font-size:27px}.donut small{font-size:11px;color:#969eb1}.progress-track{font-size:11px;color:#6b7590;display:flex;justify-content:space-between;flex-wrap:wrap;gap:4px}.progress-track>div{width:100%;height:8px;background:#eff0f6;border-radius:20px;overflow:hidden}.progress-track i{height:100%;display:block;background:var(--mint);border-radius:20px}.results-panel{padding:0 20px}.result-head,.result-row{display:grid;grid-template-columns:2.2fr 1.2fr .9fr .7fr;gap:10px;align-items:center;padding:15px 5px}.result-head{color:#a1a8b8;font-size:10px;letter-spacing:1px;font-weight:800}.result-row{border-top:1px solid #eceef4;font-size:12px;color:#6d7790}.result-row>span:first-child{display:flex;flex-direction:column;gap:3px;color:#3c4660}.result-row small{color:#a3aabd}.score-pill{display:inline-block;padding:5px 10px;border-radius:10px}.score-good{background:#e6f8f0;color:#27845c}.score-medium{background:#fff5e8;color:#b58130}.score-low{background:#fff0f1;color:#ce6171}.student-picker{min-width:200px}.auth-page{background:radial-gradient(circle at 80% 8%,#eceaff 0,transparent 35%),radial-gradient(circle at 0 95%,#e9f8f6 0,transparent 40%),#f8f9fd}.auth-wrap{max-width:520px;margin:0 auto;padding:9vh 20px 65px}.auth-brand{justify-content:center;margin-bottom:33px}.auth-card{background:#fff;border:1px solid #edecf5;border-radius:24px;padding:42px;box-shadow:0 20px 70px #3b32691a}.auth-card h1{font-size:33px;margin:6px 0 12px}.auth-card .muted{font-size:13px;line-height:1.8;margin-bottom:27px}.auth-card .stack{display:grid;gap:17px}.auth-card .stack .btn{margin-top:6px}.eyebrow{font-size:10px;letter-spacing:1.6px;color:#8879e8;font-weight:850}.hand{color:#e6b666}.auth-footer{border-top:1px solid #eff0f4;margin-top:32px;padding-top:21px;font-size:11px;color:#9a9fb2;display:flex;gap:8px;align-items:center}.online-dot{width:8px;height:8px;border-radius:50%;background:#49c6a5}.alert{padding:13px 14px;border-radius:10px;margin-bottom:15px;font-size:12px}.alert.error{color:#b14f61;background:#fff0f1}.setup-wrap{max-width:670px;padding-top:5vh}.setup-form h3{margin:20px 0 12px}.setup-form .btn{margin-top:17px}.setup-form .form-row{margin-bottom:14px}.auth-card>.tiny{margin:23px 0 0!important}.toast{position:fixed;bottom:23px;right:23px;z-index:100;background:#2d3654;color:#fff;border-radius:12px;padding:12px 18px;font-size:12px;max-width:min(400px,calc(100vw - 40px));box-shadow:0 14px 30px #1b1c3a33;transform:translateY(15px);opacity:0;pointer-events:none;transition:opacity .2s,transform .2s}.toast.show{transform:translateY(0);opacity:1}.toast.bad{background:#a9445a}.mobile-overlay{display:none}
@media(max-width:1240px){.sidebar{width:229px}.content{padding:30px 29px 55px}.topbar{padding:0 28px}.editor-layout{grid-template-columns:minmax(0,1fr) 205px}.word-list{grid-template-columns:1fr}.token-edit{grid-template-columns:26px 1fr 1fr 1fr}.token-edit .field:last-child{grid-column:2/-1}}
@media(max-width:1020px){.sidebar{width:210px}.stat-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.lesson-grid,.quiz-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.reading-layout{grid-template-columns:minmax(0,1fr)}.study-aside{order:-1}.study-guide{position:static}.study-guide .guide-line{display:inline-flex;margin-right:20px}.editor-layout{grid-template-columns:1fr}.editor-side{display:none}.word-list{grid-template-columns:repeat(2,minmax(0,1fr))}.quick-grid{grid-template-columns:1fr 1fr}.token-edit{grid-template-columns:26px 1fr 1fr 1fr 1fr}}
@media(max-width:800px){.sidebar{position:fixed;left:0;top:0;bottom:0;height:100vh;transform:translateX(-101%);width:265px;transition:transform .22s}.sidebar.open{transform:translateX(0)}.mobile-overlay.show{display:block;position:fixed;inset:0;background:#1d234773;z-index:11}.hamburger{display:inline-flex}.topbar{height:66px}.content{padding:29px 21px 50px}.dashboard-columns,.analytics-grid{grid-template-columns:1fr}.hero-card{min-height:230px}.hero-copy{padding:29px}.hero-copy h2{font-size:31px}.hero-art{width:40%}.art-text{font-size:60px}.word-list{grid-template-columns:1fr 1fr}}
@media(max-width:610px){body{font-size:14px}.content{padding:23px 14px 45px}.topbar{padding:0 17px}.top-date{display:none}.page-head{align-items:flex-start;flex-direction:column;gap:13px}.page-head .btn{align-self:flex-start}.stat-grid{gap:10px;margin:22px 0 28px}.stat-card{padding:16px;min-height:140px}.stat-card>strong{font-size:26px}.stat-icon{width:32px;height:32px;font-size:18px;margin-bottom:10px}.hero-card{min-height:240px}.hero-copy{padding:25px 20px}.hero-copy h2{font-size:29px}.hero-copy p{max-width:240px}.hero-art{width:34%}.art-text{font-size:43px}.float-a{display:none}.float-b{right:10%;bottom:17%}.lesson-grid,.quiz-grid,.word-list,.quick-grid{grid-template-columns:1fr}.filter-bar{flex-direction:column}.filter-bar select{width:100%}.form-row,.form-row.three{grid-template-columns:1fr}.editor-item,.editor-panel{padding:16px}.add-block-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.add-block-btn{min-height:107px}.token-action{align-items:stretch;flex-direction:column}.token-edit{grid-template-columns:26px 1fr 1fr;gap:7px}.token-edit .field:last-child{grid-column:1/-1}.token-edit .field:nth-last-child(2){grid-column:2/-1}.token-edit .field input,.token-edit .field select{font-size:12px!important}.word-edit{padding:12px}.quiz-play-card{padding:26px 18px}.question-prompt{font-size:19px}.quiz-player-head h1{font-size:28px}.lesson-hero{padding:22px 20px}.lesson-hero h1{font-size:27px}.lesson-big-letter{font-size:50px}.reading-block,.reading-intro{padding:23px 17px}.sentence-primary{font-size:20px}.word-card{padding:18px}.finish-card{padding:22px 16px;align-items:flex-start}.finish-illust{width:45px;height:45px;font-size:27px}.finish-card h2{font-size:19px}.review-round{font-size:10px}.meanings-grid{grid-template-columns:1fr}.meanings-grid>div{display:grid;grid-template-columns:72px 1fr;gap:7px;align-items:center;border-right:0;border-bottom:1px solid #eaecf5;padding:10px 12px}.meanings-grid>div:last-child{border-bottom:none}.word-page-meta{font-size:11px}.result-head,.result-row{grid-template-columns:1.6fr .95fr .75fr .65fr;gap:6px;font-size:11px}.result-head{font-size:9px}.results-panel{padding:0 10px}.auth-wrap{padding:6vh 13px 40px}.auth-card{padding:30px 22px}.setup-form .form-row{grid-template-columns:1fr}.option-edit{flex-wrap:wrap}.option-edit input[type=text]{flex:1 1 60%}.history-bars{gap:6px}.bar-track{width:25px}.student-picker{width:100%}}
@media(max-width:360px){.finish-card{flex-direction:column}.topbar .breadcrumb{font-size:11px}.lesson-big-letter{display:none}.review-rounds{gap:4px}.review-round{padding:7px 3px}.result-row{font-size:10px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}

/* Additional accessible grammar color accents and five-metric learning view. */
.progress-stat-grid{grid-template-columns:repeat(5,minmax(0,1fr))}
.token-chip.role-verb,.role-pill.role-verb,.role-pill.role-auxiliary-verb,.role-pill.role-modal-verb{background:#e6f8ee;color:#237e58;border-color:#c6ead7}
.token-chip.role-verb strong,.token-chip.role-verb span{color:#237e58}
.token-chip.role-preposition,.role-pill.role-preposition{background:#fff1e5;color:#a66b32;border-color:#f9dfbd}
.token-chip.role-preposition strong,.token-chip.role-preposition span{color:#a66b32}
.token-chip.role-article,.role-pill.role-article{background:#e5f2ff;color:#326dba;border-color:#d0e4fb}
.token-chip.role-article strong,.token-chip.role-article span{color:#326dba}
.token-chip.role-noun,.role-pill.role-noun,.token-chip.role-object,.role-pill.role-object{background:#fff0f6;color:#b15182;border-color:#f5d4e4}
.token-chip.role-noun strong,.token-chip.role-noun span,.token-chip.role-object strong,.token-chip.role-object span{color:#b15182}
@media(max-width:1200px){.progress-stat-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:750px){.progress-stat-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
/* Clickable sentence grammar and learner-friendly three-column examples */
.token-chip{font:inherit;cursor:pointer;transition:transform .15s,box-shadow .15s;border:1px solid #e8e8f1}.token-chip:hover,.token-chip.selected{transform:translateY(-3px);box-shadow:0 5px 15px #4448a01a;outline:2px solid #b1a8ed;outline-offset:2px}.token-chip:focus-visible{outline:3px solid #9389f2;outline-offset:3px}.token-detail{background:#faf9ff;border:1px solid #e8e4fb;border-radius:12px;padding:15px 18px;margin:2px 0 22px;color:#748099;font-size:12px}.detail-head{display:flex;align-items:center;gap:11px;margin-bottom:11px}.detail-head strong{font-size:19px;color:#30354f}.detail-languages{display:grid;grid-template-columns:1fr 1fr;gap:12px}.detail-languages small{display:block;font-weight:850;color:#9ca5b8;letter-spacing:.7px;font-size:9px}.detail-languages b{display:block;color:#3b4560;font-size:13px;margin-top:4px}.token-detail p{margin:11px 0 0;padding-top:10px;border-top:1px solid #ebeafa;color:#657188;line-height:1.6}

.word-edit summary{list-style:none;cursor:pointer;margin:0}.word-edit summary::-webkit-details-marker{display:none}.word-edit[open] summary{padding-bottom:11px;border-bottom:1px solid #e9ecf3}.word-edit:not([open]){padding:13px 16px}.word-edit:not([open]) summary{margin-bottom:0}.word-edit .edit-hint{font-size:10px;color:#9288c9;white-space:nowrap}.word-edit[open] .edit-hint{transform:rotate(0deg)}.word-edit-body{padding-top:14px}.remove-word-button{margin:0 0 9px auto;display:flex;color:#bb6b78}.word-edit:not([open]):hover{background:#f7f6ff}

/* Reading comfort, Urdu typography and learning tools — v4 */
@font-face{font-family:Jameel Noori Nastaleeq;src:local('Jameel Noori Nastaleeq'),url('fonts/JameelNooriNastaleeq.woff2') format('woff2'),url('fonts/JameelNooriNastaleeq.ttf') format('truetype');font-display:swap;unicode-range:U+0600-06FF,U+0750-077F,U+08A0-08FF,U+FB50-FDFF,U+FE70-FEFF,U+200C-200D}
.urdu,[lang="ur"],.urdu-inline{font-family:'Jameel Noori Nastaleeq','Noto Nastaliq Urdu','Noto Naskh Arabic',Tahoma,Arial,sans-serif!important;font-size:1.18em;line-height:2.55!important;font-weight:400!important;unicode-bidi:isolate;overflow-wrap:normal}
.urdu-inline{display:inline;direction:rtl}.urdu[dir=rtl]{text-align:right}.rich-prose{font-size:17px;line-height:1.85}.word-note{font-size:16px;line-height:1.75;color:#465169}.word-heading h3{font-size:28px}.meanings-grid strong{font-size:17px;line-height:1.75}.meanings-grid .urdu{font-size:21px}.meanings-grid span,.example-header{font-size:12px;letter-spacing:.7px;color:#626e89}.example-item{font-size:16px;line-height:1.75;padding:14px 16px;gap:7px}.example-item b{font-size:19px}.example-item .urdu{font-size:21px}.sentence-primary{font-size:25px}.sentence-translations{font-size:17px}.sentence-translations .urdu{font-size:22px}.breakdown-table{font-size:15px}.breakdown-table th{font-size:12px}.breakdown-table .role-pill{font-size:12px}.token-chip strong{font-size:18px}.token-chip span{font-size:12px}.token-chip{cursor:default}.token-chip:hover{transform:none;outline:0;box-shadow:none}.reading-block h2,.reading-intro h2{font-size:25px}.review-head{font-size:15px}.review-round{font-size:14px}.answer-feedback{font-size:16px;line-height:1.8}.question-prompt{font-size:23px}.say-btn{display:inline-flex;align-items:center;justify-content:center;vertical-align:middle;border:1px solid #ddd8ff;background:#f3f1ff;color:var(--primary-deep);border-radius:9px;min-width:34px;min-height:32px;font-size:16px;cursor:pointer}.say-btn:hover{background:#e5dfff}.say-btn:focus-visible{outline:2px solid var(--primary)}
.quiz-tabs{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:18px}.quiz-tabs .active{background:var(--primary);color:white;border-color:var(--primary)}.weekly-library{margin-bottom:18px}.learning-tools{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:12px;margin:18px 0}.tool-tile{display:flex;flex-direction:column;gap:5px;padding:17px;border:1px solid var(--line);background:white;border-radius:14px}.tool-tile:hover{border-color:var(--primary)}.tool-tile small{color:var(--soft)}.time-panel{margin:18px 0;padding:20px}.time-panel h2{font-size:30px}.streak-week{display:flex;gap:7px;flex-wrap:wrap}.streak-day{display:flex;align-items:center;flex-direction:column;padding:7px 10px;border-radius:9px;background:#f0f1f7}.streak-day.active{background:var(--mint-pale);color:#17785e}.roadmap-list,.mistake-list{display:grid;gap:13px}.roadmap-item{display:flex;gap:15px;padding:19px}.roadmap-number{display:grid;place-items:center;flex:0 0 46px;height:46px;border-radius:12px;background:var(--primary-pale);color:var(--primary-deep);font-weight:800}.roadmap-main{flex:1;min-width:0}.roadmap-main a{display:block;margin-top:7px;color:var(--primary-deep)}.mistake-item{padding:22px;font-size:16px}.upgrade-note,.revision-reason{padding:13px 16px;background:#f2efff;color:#50459a;border-radius:10px;margin:12px 0;font-size:15px}.avatar-img{width:100%;height:100%;object-fit:cover;border-radius:inherit}.profile-form{max-width:640px;display:grid;gap:14px}.profile-photo{width:92px;height:92px;border-radius:50%;background:var(--primary-pale);display:grid;place-items:center;overflow:hidden;font-size:28px}.profile-photo img{width:100%;height:100%;object-fit:cover}.profile-form input:not([type=checkbox]){width:100%;display:block}.profile-form input[type=checkbox]{width:auto}.footer{line-height:1.8}
@media(max-width:650px){.word-note,.example-item,.rich-prose{font-size:16px}.example-item b{font-size:18px}.example-item .urdu,.meanings-grid .urdu{font-size:20px}.breakdown-table{font-size:14px}.roadmap-item{padding:13px}.roadmap-number{flex-basis:36px;height:36px}.word-heading h3{font-size:24px}}

.streak-days{display:flex;gap:7px;flex-wrap:wrap}.streak-day.done{background:var(--mint-pale);color:#17785e}.streak-panel{padding:20px;margin:18px 0;display:flex;flex-wrap:wrap;gap:16px;align-items:center;justify-content:space-between}

/* AZGerman: comfortable laptop reading, scrollable navigation, activity report. */
.brand-icon{font-size:16px!important;letter-spacing:-.5px}.sidebar{overflow-y:auto;overscroll-behavior:contain}.sidebar .nav{flex-shrink:0}.side-bottom{flex-shrink:0}.sidebar-callout{flex-shrink:0}.activity-panel{margin:20px 0;padding:24px;min-width:0}.activity-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:18px 0}.activity-metrics>div{background:#f7f7fc;border:1px solid var(--line);border-radius:12px;padding:14px;min-width:0}.activity-metrics span{display:block;color:#59637b;font-size:13px}.activity-metrics strong{display:block;font-size:clamp(17px,1.6vw,25px);font-variant-numeric:tabular-nums;margin-top:6px;overflow-wrap:anywhere}.presence{font-size:13px;padding:6px 11px;border-radius:20px;background:#eef0f5;color:#525e73;white-space:nowrap}.presence.is-online{background:#e4f6eb;color:#14663d}.last-seen{font-size:14px}.activity-history{margin-top:22px}.activity-history-head,.activity-day{display:grid;grid-template-columns:1.2fr 1fr 1fr;gap:12px;align-items:center;padding:10px 3px;border-bottom:1px solid var(--line);font-variant-numeric:tabular-nums}.activity-history-head{font-size:12px;color:#59637b;font-weight:700}.activity-day{font-size:15px}.activity-note{margin:14px 0 0;line-height:1.65}.breakdown-table td,.breakdown-table th{overflow-wrap:anywhere}.word-note,.rich-prose,.example-item,.sentence-translations{overflow-wrap:anywhere}.word-card,.reading-block,.editor-main{min-width:0}.meanings-grid>div{min-width:0;overflow-wrap:anywhere}.urdu,.urdu-inline,[lang=ur]{line-height:2.65!important}.word-note{font-size:17px}.rich-prose{font-size:18px}.example-item{font-size:17px}.example-item b{font-size:20px}.example-item .urdu,.meanings-grid .urdu{font-size:23px}.breakdown-table{font-size:16px}.sentence-translations{font-size:18px}.answer-feedback{font-size:17px}.review-round{font-size:14px}.reading-layout{min-width:0}.content{max-width:1450px}
@media(min-width:1021px) and (max-width:1450px){.reading-layout{grid-template-columns:minmax(0,1fr);gap:14px}.study-aside{order:-1}.study-guide{position:static}.study-guide .guide-line{display:inline-flex;margin-right:18px}.editor-layout{grid-template-columns:minmax(0,1fr) 205px}.content{padding:30px 26px 50px}}
@media(max-width:1150px){.activity-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:650px){.activity-panel{padding:15px}.activity-metrics{gap:8px}.activity-metrics>div{padding:10px}.activity-day{font-size:12px}.activity-history-head{font-size:11px}.word-note,.rich-prose,.example-item{font-size:16px}.example-item b{font-size:18px}.example-item .urdu,.meanings-grid .urdu{font-size:21px}.breakdown-table{font-size:14px}.activity-panel .section-row{flex-wrap:wrap}}
/* Private notes and shared 30-day learning journey. */
.love-panel{background:linear-gradient(120deg,#fff0f5,#fff9f0 78%);border:1px solid #f1dbe4;border-radius:22px;padding:25px 28px;margin:0 0 22px;box-shadow:0 7px 26px #aa59810b;min-width:0}.love-heading{display:flex;justify-content:space-between;align-items:center;gap:15px}.love-kicker{font-size:11px;letter-spacing:2px;font-weight:800;color:#a94d70;margin-bottom:7px}.love-heading h2{font-size:25px;color:#642e4a}.love-heart{font-size:42px;line-height:1;color:#ca668e;transform:rotate(-12deg);padding:5px 12px}.love-letter{margin:12px 0 16px;padding:20px 22px;background:#ffffffc9;border:1px solid #f0dce5;border-radius:15px;overflow-wrap:anywhere}.love-from,.love-date{font-size:12px;color:#98647b;font-weight:650}.love-body{font-family:Georgia,serif;font-size:22px;line-height:1.7;color:#633b50;white-space:pre-wrap;margin:8px 0}.love-date{margin:10px 0 0}.love-actions{display:flex;align-items:center;gap:16px;flex-wrap:wrap}.love-panel .btn.primary{background:#a94670;box-shadow:none}.love-panel .text-link{color:#a94670}.journey-form textarea,.journey-form input,.journey-form select{font-size:15px}.journey-form select{max-width:100%}.journey-form label{margin-bottom:12px}.journey-result{display:block;font-size:13px;margin-top:8px;color:var(--soft);overflow-wrap:anywhere}.journey-summary{padding:20px 24px;margin-bottom:22px;display:flex;align-items:center;gap:24px;justify-content:space-between}.journey-summary>div{flex:1;min-width:0}.journey-summary p{margin:10px 0 0}.journey-track{height:9px;background:#ece9f8;border-radius:10px;overflow:hidden;margin:12px 0}.journey-track span{display:block;background:#7062e8;height:100%;border-radius:10px}.journey-overview,.journey-edit{padding:22px;margin-bottom:20px;min-width:0}.journey-overview p{margin:13px 0 0}.journey-mini-grid{display:grid;grid-template-columns:repeat(15,minmax(0,1fr));gap:6px}.journey-mini-grid a{padding:7px 0;border:1px solid var(--line);background:#f7f7fb;border-radius:8px;text-align:center;font-weight:700}.journey-mini-grid .done{background:var(--mint-pale);color:#15795f;border-color:#bce6d9}.journey-mini-grid .current{outline:2px solid var(--primary);outline-offset:1px}.journey-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin-bottom:25px}.journey-day{padding:18px;min-width:0;display:flex;flex-direction:column;scroll-margin-top:85px;overflow-wrap:anywhere}.journey-day.completed{border-color:#a9ddcb}.journey-day-top{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:6px;margin-bottom:13px}.journey-number{font-size:12px;letter-spacing:1px;font-weight:800;color:var(--primary-deep)}.journey-status{font-size:11px;color:var(--soft)}.completed .journey-status{color:#167a61;font-weight:700}.journey-day h3{font-size:19px;line-height:1.4}.journey-details{font-size:16px;white-space:pre-wrap;line-height:1.65;margin-bottom:12px}.journey-resources{display:grid;gap:8px;font-size:13px;margin-bottom:15px;flex:1}.journey-resources a{color:var(--primary-deep);text-decoration:underline;text-underline-offset:3px}.journey-day .btn{align-self:flex-start;white-space:normal}.journey-edit .section-row{align-items:flex-start;gap:15px;flex-wrap:wrap}.journey-edit .section-row label{max-width:100%;min-width:0}.journey-week{margin:20px 0 12px}.journey-edit{scroll-margin-top:85px}.love-body .urdu-inline,.journey-details .urdu-inline{font-size:23px;line-height:2.1}.love-panel textarea{min-width:0}
@media(max-width:1150px){.journey-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.journey-mini-grid{grid-template-columns:repeat(10,minmax(0,1fr))}}@media(max-width:650px){.journey-grid{grid-template-columns:1fr}.journey-mini-grid{grid-template-columns:repeat(6,minmax(0,1fr))}.journey-summary{flex-direction:column;align-items:stretch;gap:8px}.love-panel,.journey-overview,.journey-edit{padding:16px}.love-letter{padding:14px}.love-body{font-size:20px}.love-heading h2{font-size:22px}.love-actions{gap:10px}.journey-edit .form-row{display:grid;grid-template-columns:minmax(0,1fr)}}

.journey-planned{font-size:15px;color:#30364b;line-height:1.55}.journey-awaiting{font-size:12px;color:#657084;background:#f4f4f9;border-radius:7px;padding:4px 8px;align-self:start;justify-self:start}.journey-resources{align-content:start}.journey-edit input,.journey-edit textarea{width:100%;min-width:0}
/* Five distinct weekly palettes; status is always also conveyed in text. */
.week-1{--week-accent:#6650bd;--week-pale:#f0ebff;--week-border:#d9cff9;--week-ink:#46348d}
.week-2{--week-accent:#147d89;--week-pale:#e7f8fa;--week-border:#bce6e9;--week-ink:#155c66}
.week-3{--week-accent:#c16d26;--week-pale:#fff2e1;--week-border:#f3d6ac;--week-ink:#864510}
.week-4{--week-accent:#b44b80;--week-pale:#fcebf4;--week-border:#f1c8dd;--week-ink:#853159}
.week-5{--week-accent:#376ac3;--week-pale:#eaf1ff;--week-border:#cbdaf8;--week-ink:#294e91}
.journey-mini-grid a{background:var(--week-pale);border-color:var(--week-border);color:var(--week-ink);font-size:14px;white-space:nowrap}.journey-mini-grid a:hover{outline:2px solid var(--week-accent);outline-offset:1px}.journey-mini-grid a.done{background:#d9f6e7;border-color:#9ddab9;color:#12603d}.journey-week{background:var(--week-pale);border:1px solid var(--week-border);border-left:5px solid var(--week-accent);border-radius:12px;padding:12px 16px;color:var(--week-ink);gap:10px}.journey-week h2{font-size:20px;color:inherit}.journey-week .muted{color:var(--week-ink)}.journey-day{border:1px solid var(--week-border);border-top:4px solid var(--week-accent);background:linear-gradient(160deg,var(--week-pale),#fff 58%);box-shadow:0 4px 14px #29304b08}.journey-number{color:var(--week-ink);background:var(--week-pale);border:1px solid var(--week-border);border-radius:8px;padding:5px 9px}.journey-status{padding:5px 8px;background:#ffffffc9;border:1px solid #dfe2eb;border-radius:20px;font-size:12px}.journey-day.completed{border-color:#9ddab9;border-top-color:#20835a;background:linear-gradient(160deg,#e5f8ec,#fff 58%)}.completed .journey-status{background:#d9f6e7;border-color:#9ddab9;color:#12603d}.journey-day .btn.outline{color:var(--week-ink);border-color:var(--week-border)}.journey-legend{display:flex;flex-wrap:wrap;gap:9px 15px;margin:15px 0 5px}.journey-legend span{display:inline-flex;align-items:center;gap:6px;color:#4e586f;font-size:12px}.journey-legend i{width:11px;height:11px;border-radius:4px;background:var(--week-accent)}.journey-legend .legend-done i{background:#20835a}.journey-track span{background:linear-gradient(90deg,#6650bd,#147d89,#20835a)}.journey-resources{font-size:15px}.journey-awaiting{background:#fff;border:1px dashed #c4cbd9;color:#535f73}.journey-day h3{margin-bottom:5px}.journey-day p.small{margin-bottom:14px}.journey-summary{background:linear-gradient(115deg,#f2edff,#fff 70%)}
@media(max-width:650px){.journey-week{padding:11px}.journey-week h2{font-size:18px}.journey-mini-grid a{font-size:13px}.journey-legend{gap:8px 11px}.journey-day{padding:16px}}

/* Teacher approval workflow */
.journey-mini-grid a.approved{background:#d9f6e7;border-color:#9ddab9;color:#12603d}.journey-mini-grid a.pending,.pending .journey-status{background:#fff1ca;border-color:#e9c66c;color:#765408}.journey-mini-grid a.returned,.returned .journey-status{background:#ffe7dd;border-color:#efb49e;color:#9b412a}.journey-day.pending{border-top-color:#c18a12}.journey-day.returned{border-top-color:#ca7354}.journey-legend .legend-pending i{background:#c18a12}.journey-legend .legend-returned i{background:#ca7354}.journey-pending-text{color:#795710;font-size:14px;font-weight:650;margin:6px 0 10px}.journey-review-actions{display:flex;flex-wrap:wrap;gap:7px;margin-top:10px}.journey-review-actions .journey-result:empty{display:none}.btn.journey-approve{background:#17754d;color:white;border-color:#17754d}.journey-timestamps{font-size:12px;color:#657084;margin-top:10px;line-height:1.6}.journey-mini-grid a:focus-visible{outline:2px solid #5142ac;outline-offset:2px}

/* AZGerman v7 — connected journey, readable time chart and direct note composer. */
.resource-tag{display:inline-flex;align-items:center;gap:5px;border-radius:999px;padding:4px 9px;font-size:11px;font-weight:750;letter-spacing:.25px;line-height:1.25;white-space:nowrap;vertical-align:middle;text-decoration:none!important;border:1px solid transparent}.resource-tag:before{content:'';width:7px;height:7px;border-radius:50%;background:currentColor;flex:none}.tag-lesson{color:#4d39a3;background:#eee8ff;border-color:#ddd3fa}.tag-quiz{color:#9b5514;background:#fff0d8;border-color:#f3d5aa}.lesson-card-top,.quiz-top{flex-wrap:wrap;gap:6px}.lesson-card-top .level-pill,.quiz-top .small-pill{margin-left:auto}.journey-resources a{display:block;line-height:1.65}.journey-resources .resource-tag{margin-right:4px}.featured-lesson .tag-lesson{background:#fff;color:#4d39a3}.practice-row .resource-tag,.list-entry .resource-tag{margin-right:3px}
.love-compose{border-top:1px solid #efd5e0;padding-top:18px;margin-top:18px;scroll-margin-top:85px}.love-compose-head{display:flex;justify-content:space-between;align-items:center;gap:8px;flex-wrap:wrap;margin-bottom:12px}.love-compose-head h3{font-size:20px;color:#773b58;margin:0}.love-compose label{display:block;color:#773b58;font-size:14px;margin-bottom:6px}.love-compose textarea{display:block;width:100%;min-height:105px;resize:vertical;background:#fff;border:1px solid #e8c8d6;border-radius:12px;padding:12px;font-size:16px;line-height:1.6;margin-bottom:12px}.love-compose .love-clear{color:#8c3d60;border-color:#e4bfce}.love-compose .journey-result:not(:empty){padding:9px 12px;border-radius:8px;background:#fff;color:#773b58;font-weight:650}.love-compose p.small{margin-top:10px}
.time-chart-legend{display:flex;flex-wrap:wrap;gap:16px;margin:12px 0 17px;font-size:13px;color:#4e586f}.time-chart-legend span{display:flex;gap:7px;align-items:center}.time-chart-legend i{display:inline-block;width:11px;height:11px;border-radius:4px}.active-key{background:#6553d3}.online-key{background:#a7d8e1}.time-chart{display:grid;grid-template-columns:48px minmax(0,1fr);gap:8px;--plot-height:178px;margin:8px 0 14px}.time-chart-axis{height:var(--plot-height);display:flex;flex-direction:column;justify-content:space-between;color:#667085;font-size:11px;font-variant-numeric:tabular-nums;text-align:right;line-height:1}.time-chart-plot{position:relative;display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:8px;padding:0 4px;min-width:0}.time-chart-grid{position:absolute;top:0;left:0;right:0;height:var(--plot-height);border-bottom:1px solid #dce0ed;background:repeating-linear-gradient(to bottom,#e5e7f0 0,#e5e7f0 1px,transparent 1px,transparent 25%);pointer-events:none}.time-chart-day{position:relative;min-width:0;text-align:center}.time-chart-bars{display:flex;height:var(--plot-height);align-items:flex-end;justify-content:center;gap:4px}.time-bar{display:block;width:30%;max-width:29px;height:var(--bar-height);border-radius:6px 6px 0 0;transition:height .25s ease}.active-bar{background:linear-gradient(0deg,#5141b8,#8b7aef)}.online-bar{background:linear-gradient(0deg,#75b9cc,#b8e1e8)}.time-chart-label{display:block;margin-top:8px;color:#566078;font-size:12px;font-weight:650}.activity-details{border-top:1px solid #e3e7ef;padding-top:10px;color:#536079}.activity-details summary{cursor:pointer;font-size:13px;font-weight:650}.activity-note{font-size:12px}
.journey-path{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));grid-template-rows:repeat(5,auto);gap:0;margin:22px auto 18px;max-width:730px;isolation:isolate;padding:0 8px}.path-step{position:relative;grid-column:var(--path-col);grid-row:var(--path-row);display:flex;flex-direction:column;align-items:center;justify-content:flex-start;gap:5px;height:91px;padding-top:6px;text-decoration:none!important;min-width:0}.path-dot{display:grid;place-items:center;width:46px;height:46px;border-radius:50%;background:var(--week-pale);border:2px solid var(--week-accent);color:var(--week-ink);font-weight:800;font-size:17px;box-shadow:0 4px 0 var(--week-border);position:relative;z-index:2;transition:transform .15s}.path-label{font-size:11px;font-weight:700;color:#4f5872;z-index:2;background:#fff;padding:1px 3px;border-radius:5px;white-space:nowrap}.path-step:after{content:'';position:absolute;background:#d8dbe9;z-index:0;border-radius:4px;pointer-events:none}.path-step.link-right:after{left:50%;top:27px;width:100%;height:4px}.path-step.link-left:after{right:50%;top:27px;width:100%;height:4px}.path-step.link-down:after{left:calc(50% - 2px);top:27px;width:4px;height:91px}.path-step.end:after{display:none}.path-step.approved .path-dot{background:#21835a;border-color:#21835a;color:#fff;box-shadow:0 4px 0 #b2e3c8}.path-step.pending .path-dot{background:#fff1ca;border-color:#c18a12;color:#805b09;box-shadow:0 4px 0 #f0d28a}.path-step.returned .path-dot{background:#ffe7dd;border-color:#ca7354;color:#9b412a;box-shadow:0 4px 0 #f1c1b0}.path-step.approved:after{background:#9ad9ba}.path-step.current .path-dot{outline:3px solid #aaa0e5;outline-offset:3px}.path-step:hover .path-dot,.path-step:focus-visible .path-dot{transform:translateY(-3px)}.path-step:focus-visible{outline:2px solid #5142ac;outline-offset:1px;border-radius:10px}
/* The full plan follows a continuous vertical trail, keeping the editing controls accessible. */
.journey-grid{position:relative;display:grid;grid-template-columns:minmax(0,1fr);gap:17px;padding-left:39px;margin-left:8px}.journey-grid:before{content:'';position:absolute;left:12px;top:23px;bottom:23px;width:4px;background:var(--week-border);border-radius:4px}.journey-day{position:relative;padding:20px 23px}.journey-day:before{content:'';position:absolute;width:19px;height:19px;border-radius:50%;background:var(--week-pale);border:4px solid var(--week-accent);left:-37px;top:21px;box-shadow:0 0 0 4px #fff}.journey-day:after{content:'';height:3px;width:17px;background:var(--week-border);position:absolute;left:-19px;top:31px}.journey-day.completed:before{background:#21835a;border-color:#21835a}.journey-day.pending:before{background:#fff1ca;border-color:#c18a12}.journey-day.returned:before{background:#ffe7dd;border-color:#ca7354}.journey-day h3{font-size:20px}.journey-day .journey-resources{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 15px}.journey-resources .journey-planned{grid-column:1/-1}.journey-awaiting{font-size:13px;white-space:normal}.journey-day .journey-resources:has(.journey-planned){grid-template-columns:minmax(0,1fr)}
@media(max-width:650px){.time-chart{--plot-height:140px;grid-template-columns:34px minmax(0,1fr);gap:4px}.time-chart-plot{gap:3px;padding:0 1px}.time-chart-bars{gap:2px}.time-chart-axis{font-size:10px}.time-chart-label{font-size:10px}.journey-path{padding:0;margin:18px 0 12px}.path-step{height:70px;gap:4px;padding-top:4px}.path-dot{width:32px;height:32px;font-size:13px;box-shadow:0 3px 0 var(--week-border)}.path-label{font-size:9px}.path-step.link-right:after,.path-step.link-left:after{top:18px;height:3px}.path-step.link-down:after{top:18px;height:70px;width:3px;left:calc(50% - 1.5px)}.path-step.current .path-dot{outline-offset:1px;outline-width:2px}.journey-grid{margin-left:0;padding-left:28px;gap:13px}.journey-grid:before{left:8px;width:3px}.journey-day{padding:14px}.journey-day:before{left:-26px;width:15px;height:15px;border-width:3px;top:20px}.journey-day:after{left:-13px;top:27px;width:12px}.journey-day .journey-resources{grid-template-columns:minmax(0,1fr)}.journey-day h3{font-size:18px}.love-compose textarea{font-size:16px}.love-compose .love-actions .btn{white-space:normal}.resource-tag{font-size:10px}}
@media(prefers-reduced-motion:reduce){.path-dot,.time-bar{transition:none}}

/* v8: interactive charts and requests */
.chartjs-ready{display:block!important;height:auto!important;min-height:0!important;padding:0!important;overflow:visible!important}.interactive-chart{position:relative;height:270px;width:100%;min-width:0}.chartjs-ready canvas{max-width:100%}.request-banner{display:flex;align-items:center;gap:15px;text-decoration:none;color:inherit;margin:18px 0;padding:20px;border:1px solid #e3dbf6}.request-banner>span:nth-child(2){flex:1;min-width:0}.request-banner strong,.request-banner small{display:block}.request-banner small{color:#716984;margin-top:4px}.request-icon{width:44px;height:44px;display:grid;place-items:center;background:#eee6ff;color:#7052bd;border-radius:14px;font-size:22px}.request-card{padding:22px;margin-bottom:15px}.request-card h3{font-size:20px;margin:8px 0}.request-labels{display:flex;flex-wrap:wrap;gap:6px;align-items:center}.request-status{font-size:12px;font-weight:700;padding:5px 10px;border-radius:30px;background:#f1edf8;color:#615478}.rs-pending{background:#fff0d0;color:#875d16}.rs-planned{background:#e6edff;color:#435da8}.rs-completed{background:#dcf4e7;color:#216c4a}.rs-declined{background:#f8e4e2;color:#8d433a}.request-body{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.6;font-size:16px}.request-reply{background:#f2f0ff;border-radius:12px;padding:14px;margin-top:14px}.request-form{margin-top:14px}.request-flash{padding:12px;color:#514491;margin:12px 0}.keyboard-help{display:flex;align-items:center;flex-wrap:wrap;gap:6px;margin:12px 0;color:#655e75;font-size:13px}.keyboard-help button{border:1px solid #ddd6ee;background:#f7f4fc;color:#58439a;border-radius:8px;min-width:34px;min-height:34px;font-size:17px;cursor:pointer}.keyboard-help small{flex-basis:100%;line-height:1.5}.keyboard-help button:disabled{opacity:.45;cursor:default}@media(max-width:600px){.interactive-chart{height:235px}.request-card{padding:15px}.request-banner{padding:14px}.request-card .section-row{flex-wrap:wrap;gap:8px}}
/* Final edition: personal notebook and protected request attachments. */
.notebook-editor,.planner-import{margin:18px 0}.notebook-editor textarea,.planner-import textarea{font-size:17px;line-height:1.7}.notebook-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin:16px 0}.notebook-card{min-width:0;display:flex;flex-direction:column;gap:12px;border-top:3px solid #9380d5}.notebook-card:nth-child(3n+2){border-top-color:#62b9a4}.notebook-card:nth-child(3n+3){border-top-color:#e2ae7c}.notebook-card h3{font-size:19px;margin:0;overflow-wrap:anywhere}.notebook-body{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.8;font-size:17px;max-height:420px;overflow:auto}.notebook-card .button-line{margin-top:auto}.notebook-search{display:grid;grid-template-columns:minmax(0,2fr) minmax(0,1fr) auto;gap:12px;align-items:end}.notebook-banner{margin:16px 0}.request-attachment{display:flex;flex-direction:column;align-items:flex-start;gap:8px;margin:12px 0;color:var(--accent,#7053c4);font-weight:600}.request-attachment img{display:block;max-width:100%;width:auto;max-height:320px;object-fit:contain;border:1px solid #dbd7e8;border-radius:12px}.planner-import summary{cursor:pointer;font-weight:600;padding:12px 0}.planner-import .stack{margin:12px 0}.hero-card:first-child{margin-top:0}.notebook-search label{min-width:0}@media(max-width:700px){.notebook-grid,.notebook-search{grid-template-columns:minmax(0,1fr)}.notebook-body{max-height:360px}.notebook-editor textarea{font-size:16px}}

/* Final dashboard: matched lesson and quiz cards, with diagonal corner ribbons. */
.resource-section{margin-top:30px;gap:12px;flex-wrap:wrap}.resource-links{display:flex;gap:18px;flex-wrap:wrap}.resource-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));grid-auto-rows:1fr;gap:18px;align-items:stretch}.dashboard-resource-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.unified-resource{--resource-ink:#6246b4;--resource-tint:#f0eaff;--ribbon:#7655c9;position:relative;overflow:hidden;display:flex;flex-direction:column;gap:12px;padding:22px 20px 18px;min-width:0;min-height:280px;color:var(--ink,#28324c);border:1px solid #e9e6f2;border-radius:17px;background:#fff;box-shadow:0 5px 18px #392e6b08;text-decoration:none}.unified-resource.resource-quiz{--resource-ink:#a04429;--resource-tint:#fff0e9;--ribbon:#d25c47}.unified-resource[hidden]{display:none!important}.unified-resource:focus-visible{outline:3px solid var(--ribbon);outline-offset:3px}.corner-ribbon{position:absolute;top:0;left:0;width:91px;height:77px;overflow:hidden;pointer-events:none;z-index:1}.corner-ribbon>span{position:absolute;top:15px;left:-28px;width:125px;padding:5px 0;transform:rotate(-40deg);text-align:center;background:var(--ribbon);color:#fff;font-size:10px;font-weight:800;letter-spacing:.8px;line-height:1.3;box-shadow:0 2px 4px #0001}.resource-heading{display:flex;align-items:center;gap:12px;justify-content:flex-start;min-height:51px;padding-left:62px}.resource-illustration{width:44px;height:44px;flex:none;display:grid;place-items:center;border-radius:12px;background:var(--resource-tint);color:var(--resource-ink);font-size:22px;font-weight:800}.resource-category{color:var(--resource-ink);font-size:12px;font-weight:700;overflow-wrap:anywhere;line-height:1.4}.unified-resource h3{font-size:19px;line-height:1.4;margin:0;overflow-wrap:anywhere}.unified-resource .resource-description{font-size:14px;line-height:1.6;color:#697089;margin:0;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere;min-height:44px}.resource-counts{display:flex;flex-wrap:wrap;gap:6px;align-content:flex-start;margin-bottom:8px}.resource-count{font-size:12px;line-height:1.4;color:#535a71;border-radius:20px;background:#f5f5fa;padding:5px 9px;font-weight:600;overflow-wrap:anywhere}.resource-count.main-count{color:var(--resource-ink);background:var(--resource-tint);font-weight:800}.resource-bottom{display:flex;justify-content:space-between;gap:12px;align-items:center;border-top:1px solid #efedf5;margin-top:auto;padding-top:13px;font-size:13px;line-height:1.4;color:#646c83}.resource-bottom b{color:var(--resource-ink);white-space:nowrap}.resource-bottom span{overflow-wrap:anywhere}.unified-resource:hover{border-color:var(--ribbon)}
@media(max-width:1250px){.resource-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:610px){.resource-grid,.dashboard-resource-grid{grid-template-columns:minmax(0,1fr);grid-auto-rows:1fr;gap:13px}.unified-resource{padding:20px 17px 16px;min-height:260px}.unified-resource h3{font-size:18px}.resource-heading{padding-left:65px}.resource-links{gap:12px}.resource-section{align-items:flex-start}}

/* Final notebook: local spacing instead of relying on the unpadded card base. */
.notebook-page{max-width:1180px;margin:0 auto;min-width:0;padding-top:4px}
.notebook-page .page-head{margin-bottom:24px}
.notebook-page .card-panel{padding:26px;min-width:0}
.notebook-page .notebook-editor{margin:0 0 34px;border-color:#e5e1f2;box-shadow:0 12px 35px #52438e0b}
.notebook-editor-heading{display:flex;align-items:center;gap:13px;margin-bottom:24px}
.notebook-icon{display:grid;place-items:center;width:48px;height:48px;flex:0 0 48px;border-radius:14px;background:#eee9fe;color:#7256c8;font-size:26px}
.notebook-editor-heading h2{font-size:23px;margin:0 0 4px}.notebook-editor-heading p{margin:0;font-size:14px;line-height:1.5}
.notebook-page .stack{gap:20px}.notebook-page .form-row{margin:0;gap:16px}
.notebook-page label{font-size:14px;font-weight:650;min-width:0;display:block;color:#38415a}
.notebook-page input,.notebook-page select,.notebook-page textarea{display:block;width:100%;min-width:0;box-sizing:border-box;margin-top:8px;font-size:15px;padding:12px 14px;line-height:1.55;background:#fff;border:1px solid #dcddea;border-radius:12px}
.notebook-page textarea{min-height:240px;resize:vertical;font-size:18px;line-height:1.85;background:#fcfbff;padding:17px 18px;font-weight:400}
.notebook-page input:focus,.notebook-page select:focus,.notebook-page textarea:focus{outline:2px solid #a99aee;outline-offset:1px}
.notebook-hint{display:block;margin-top:8px;font-size:12px;color:#777e93;font-weight:400}
.notebook-page .button-line{gap:10px;flex-wrap:wrap}.notebook-page .btn{font-size:13px;min-height:40px}.notebook-section-title{margin-bottom:15px}.notebook-page .notebook-search{padding:18px 22px;margin:0 0 20px;gap:16px}.notebook-page .notebook-grid{gap:18px}.notebook-page .notebook-card{padding:23px;gap:14px}.notebook-page .notebook-card h3{font-size:20px;line-height:1.4}.notebook-page .notebook-body{background:#faf9fe;border:1px solid #eeeaf6;border-radius:12px;padding:15px;line-height:1.85}.notebook-page .notebook-flash{margin:0 0 16px;background:#effaf5;color:#235e49;padding:13px 17px}.notebook-page .empty-small{padding:25px;text-align:center}.notebook-page #note-editor{scroll-margin-top:90px}
/* Two-step reset, scoped to the teacher's progress page. */
.reset-shortcut{display:flex;justify-content:flex-end;margin:0 0 18px}.learner-reset-panel{margin:35px 0 10px;padding:26px;border:1px solid #efccd0;scroll-margin-top:90px;max-width:900px}.reset-heading{display:flex;align-items:flex-start;gap:13px}.reset-heading h2{margin:3px 0 6px;font-size:23px}.reset-heading p{margin:0}.reset-symbol{flex:0 0 40px;width:40px;height:40px;border-radius:12px;background:#ffe9eb;color:#ae3446;display:grid;place-items:center;font-size:22px;font-weight:800}.learner-reset-panel p{font-size:14px;line-height:1.65}.reset-target{display:grid;gap:4px;margin:20px 0 12px;padding:12px 15px;background:#f8f8fc;border-radius:10px;overflow-wrap:anywhere}.reset-target span{font-size:13px;color:#65718a}.reset-safe{color:#386e58}.reset-form{border-top:1px solid #f0dee0;margin-top:18px;padding-top:18px;display:grid;gap:13px}.reset-step{font-weight:750;letter-spacing:.08em;color:#a94251;font-size:12px}.reset-choice{display:flex!important;align-items:flex-start;gap:10px;line-height:1.5;font-size:14px!important}.reset-choice input[type=checkbox]{width:18px;height:18px;flex:0 0 18px;margin:2px 0 0;accent-color:#a94251}.reset-button{background:#b13c4d;color:white;justify-self:start;white-space:normal;text-align:center}.reset-button:hover{background:#922b3b}.reset-cancel{margin-top:12px}.reset-message{background:#fff3e5;color:#84541e;border-radius:10px;padding:12px 15px;margin-top:16px;font-size:14px}.reset-form input[name=confirmation_text]{max-width:260px;display:block;margin-top:7px}
@media(max-width:700px){.notebook-page .card-panel{padding:18px}.notebook-page .notebook-search{padding:16px;gap:12px}.notebook-page .notebook-card{padding:18px}.notebook-page .form-row{grid-template-columns:minmax(0,1fr)}.notebook-page textarea{min-height:220px;padding:13px;font-size:17px}.notebook-editor-heading h2{font-size:20px}.notebook-page .page-head{margin-bottom:18px}.learner-reset-panel{padding:18px}.reset-shortcut{justify-content:flex-start}.reset-button{width:100%}}

/* Classroom edition */
.classroom-add,.classroom-select,.classroom-results{padding:24px;margin:0 0 20px;min-width:0}.classroom-student-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.classroom-student{padding:24px;min-width:0;overflow-wrap:anywhere}.classroom-mini-stats{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:18px 0}.classroom-mini-stats>div{background:#f5f2fc;border-radius:12px;padding:14px;display:flex;flex-direction:column;gap:4px}.classroom-mini-stats strong{font-size:18px;color:#403267}.classroom-mini-stats small{color:#655d78;font-size:12px}.classroom-summary{align-items:flex-start}.classroom-summary>div{flex:1;min-width:0}.classroom-summary-row{display:flex;flex-wrap:wrap;align-items:center;gap:8px 16px;border-top:1px solid #e7e2f2;padding:12px 0}.classroom-summary-row strong{min-width:100px}.classroom-upload{border:2px dashed #bfb1e9;border-radius:16px;padding:22px;background:#faf8ff;overflow-wrap:anywhere}.classroom-upload input{max-width:100%;margin:8px 0}.classroom-upload small{display:block}.classroom-result{padding:12px;border-radius:10px;overflow-wrap:anywhere}.classroom-result.is-good{background:#e8f7ee;color:#256044}.classroom-result.is-bad{background:#fff0f0;color:#993c44}.journey-day.unplanned .journey-status{background:#eeeaf4;color:#665c77}.path-step.unplanned .path-dot{opacity:.7}.journey-edit input,.classroom-select select{max-width:100%}@media(max-width:720px){.classroom-student-grid{grid-template-columns:1fr}.classroom-student,.classroom-add,.classroom-select,.classroom-results{padding:18px}.classroom-summary{flex-direction:column}.classroom-mini-stats strong{font-size:16px}}

/* Classroom refresh: compact learner dashboard and readable mobile vocabulary. */
.overview-greeting{margin-bottom:20px}.overview-welcome{display:flex;align-items:center;justify-content:space-between;gap:18px;background:#f0edff;border:1px solid #e1dafa;border-radius:18px;padding:22px 26px;margin-bottom:16px;overflow:hidden;color:#30264f}.overview-welcome-copy{min-width:0;flex:1}.overview-welcome .page-kicker{display:block;margin:0 0 8px;color:#7360bd}.overview-welcome h2{font-size:clamp(24px,3vw,34px);line-height:1.2;letter-spacing:-.8px;margin:0 0 7px}.overview-welcome h2 em{color:#7360bd;font-style:normal}.overview-welcome p{margin:0;font-size:14px;color:#5f5675}.overview-welcome-mark{flex:0 0 76px;height:76px;display:grid;place-items:center;position:relative;border-radius:23px;background:#fff;color:#7960c8;font-size:28px;font-weight:850;border:1px solid #e3dcf7}.overview-welcome-mark span{position:absolute;right:9px;top:4px;font-size:16px;color:#b69b52}.overview-nav{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:0 0 24px}.overview-nav>a{display:flex;align-items:center;gap:11px;background:#fff;padding:14px;border:1px solid #e5e5ef;border-radius:14px;color:#2d2940;min-width:0;text-decoration:none}.overview-nav>a>div{flex:1;min-width:0}.overview-nav strong,.overview-nav small{display:block}.overview-nav strong{font-size:15px;line-height:1.3}.overview-nav small{color:#646b80;font-size:12px}.overview-nav b{color:#7561c5}.overview-nav-icon{display:grid;place-items:center;flex:0 0 38px;height:38px;background:#eee8fc;color:#7655c9;border-radius:11px;font-size:18px;font-weight:800}.overview-nav-icon.quiz-icon{background:#fff0e9;color:#b65a42}.overview-library{margin-bottom:26px;min-width:0}.overview-library .resource-section{margin:16px 0 12px;align-items:center;flex-direction:row}.overview-library .resource-section h2{margin:0;font-size:20px;display:flex;align-items:center;gap:8px}.library-count{font-size:12px;padding:2px 8px;border-radius:999px;background:#edeafb;color:#6554ae}.overview-all{margin-top:12px;width:100%;justify-content:center}.overview-student-links{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0}.overview-library .unified-resource{min-height:220px}.overview-library .resource-description{margin-bottom:9px}.roadmap-path{position:relative;gap:0;max-width:900px;margin:20px 0}.roadmap-step{display:grid;grid-template-columns:40px minmax(0,1fr);gap:14px;position:relative;padding-bottom:14px;min-width:0}.roadmap-step:not(:last-child):before{content:"";position:absolute;width:3px;left:18.5px;top:40px;bottom:0;border-radius:4px;background:#dedbed}.roadmap-step.step-done:not(:last-child):before{background:#a1d9c0}.roadmap-step .roadmap-number{z-index:1;width:40px;height:40px;border-radius:50%;border:2px solid var(--chapter-color);background:#fff;color:var(--chapter-color);font-size:14px;display:grid;place-items:center}.roadmap-step.step-done .roadmap-number{background:#248259;border-color:#248259;color:white}.roadmap-step .roadmap-main{border:1px solid #e8e7ef;border-left:3px solid var(--chapter-color);border-radius:13px;padding:15px 18px;box-shadow:none;background:#fff}.roadmap-chapter{color:var(--chapter-color);font-size:10px;font-weight:800;letter-spacing:.8px}.roadmap-step h3{font-size:17px;line-height:1.4;margin:4px 0 7px;overflow-wrap:anywhere}.roadmap-status{font-size:12px;color:#657087;display:flex;gap:6px;align-items:center}.roadmap-status i{height:7px;width:7px;border-radius:50%;background:#b2adbf}.step-ready .roadmap-status i{background:var(--chapter-color)}.step-done .roadmap-status i{background:#248259}.roadmap-step .roadmap-lesson{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:8px 0;border-top:1px solid #efedf4;font-size:14px;overflow-wrap:anywhere}.roadmap-lesson b{white-space:nowrap;font-size:11px}.vocab-view-control{display:none}.interactive-chart{height:230px!important;min-height:0!important;position:relative;width:100%}.activity-panel .chartjs-ready+.activity-details{margin-top:12px}.activity-panel:has(.chartjs-ready) .time-chart-legend{display:none}.activity-panel,.analytics-card{min-width:0}.activity-panel .section-row h2{margin:0}.word-heading>div{min-width:0}.word-heading h3{overflow-wrap:anywhere}.study-aside{min-width:0}
@media(max-width:650px){
 .content{padding:16px 12px 36px}.overview-greeting{gap:4px;margin-bottom:12px}.overview-greeting h1{font-size:27px;line-height:1.2}.overview-greeting p{margin:6px 0 0;font-size:13px}.overview-welcome{padding:14px;gap:10px;border-radius:14px;margin-bottom:12px}.overview-welcome h2{font-size:23px}.overview-welcome .page-kicker{font-size:9px;letter-spacing:1px;margin-bottom:5px}.overview-welcome p{font-size:12px;line-height:1.4}.overview-welcome-mark{flex-basis:46px;height:46px;font-size:19px;border-radius:13px}.overview-welcome-mark span{font-size:10px;right:4px;top:2px}.overview-nav{gap:7px;margin-bottom:18px}.overview-nav>a{padding:10px 8px;gap:5px}.overview-nav-icon{flex-basis:27px;height:29px;font-size:14px;border-radius:7px}.overview-nav strong{font-size:13px}.overview-nav small{font-size:10px}.overview-nav b{font-size:12px}.overview-library .resource-section{flex-wrap:nowrap;gap:7px}.overview-library .resource-section h2{font-size:18px;gap:5px}.overview-library .resource-section .btn{padding:7px 10px;font-size:11px;white-space:nowrap}.overview-library .resource-grid{gap:9px;grid-auto-rows:1fr}.overview-library .unified-resource{min-height:0;padding:12px 13px 10px}.overview-library .resource-heading{padding-left:65px;margin-bottom:6px}.overview-library .resource-illustration{width:30px;height:30px;font-size:15px}.overview-library .unified-resource h3{font-size:16px;line-height:1.35;margin:4px 0}.overview-library .resource-description{font-size:12px;line-height:1.4;margin:3px 0 8px;min-height:0}.overview-library .resource-counts{gap:4px;margin:0 0 8px}.overview-library .resource-count{font-size:10px;padding:3px 7px}.overview-library .resource-bottom{padding-top:8px;font-size:12px}.roadmap-step{grid-template-columns:32px minmax(0,1fr);gap:10px;padding-bottom:10px}.roadmap-step .roadmap-number{width:32px;height:32px;font-size:12px}.roadmap-step:not(:last-child):before{left:14.5px;top:32px}.roadmap-step .roadmap-main{padding:11px 12px}.roadmap-step h3{font-size:16px;line-height:1.35}.roadmap-step .roadmap-lesson{font-size:13px;flex-wrap:wrap}.roadmap-chapter{font-size:9px}.roadmap-status{font-size:11px}.interactive-chart{height:190px!important}.activity-panel{padding:13px}.activity-metrics>div{min-width:0}.activity-metrics strong{font-size:19px}.activity-metrics span{font-size:11px}.analytics-card{padding:14px}.study-aside{display:none}.vocab-title{margin:8px 0 9px;gap:6px;align-items:flex-start}.vocab-title h2{font-size:19px;margin:0}.vocab-title p{font-size:12px;line-height:1.4}.word-page-meta{font-size:12px;margin:8px 0}.vocab-view-control{display:flex;align-items:center;justify-content:space-between;gap:7px;margin:8px 0;color:#626a80;font-size:11px;line-height:1.3}.vocab-view-control .btn{white-space:nowrap;padding:6px 8px;min-height:30px;font-size:11px}.word-list{gap:7px!important}.word-card{padding:9px 11px;border-radius:11px;box-shadow:none;margin:0}.word-heading{margin:0 0 5px;gap:5px;align-items:center}.word-heading>div{flex:1;display:flex;align-items:baseline;gap:7px;flex-wrap:wrap}.word-num{font-size:10px;letter-spacing:.2px;color:#646a81;white-space:nowrap}.word-heading h3{font-size:23px;line-height:1.2;letter-spacing:-.3px;display:inline;margin:0;font-weight:800;color:#30294f}.word-heading .role-pill{font-size:10px;line-height:1.2;padding:4px 7px;max-width:35%;overflow-wrap:anywhere}.word-card .say-btn{font-size:13px;width:28px;height:28px;padding:0;vertical-align:middle}.meanings-grid{grid-template-columns:repeat(2,minmax(0,1fr));border:0;border-radius:0;gap:6px;background:transparent}.meanings-grid .duplicate-german{display:none}.meanings-grid>div{display:block;padding:2px 6px;background:#f6f5fb;border:0!important;border-radius:5px}.meanings-grid span{display:block;font-size:9px;line-height:1.2;letter-spacing:.3px}.meanings-grid strong{display:block;font-size:15px;line-height:1.4;overflow-wrap:anywhere}.meanings-grid .urdu{font-size:17px;line-height:1.65}.word-note{font-size:12px;line-height:1.4;margin:6px 0;color:#505b70}.example-header{font-size:9px;line-height:1.2;letter-spacing:.4px;margin:6px 0 3px}.example-list{gap:4px}.example-item{gap:0;font-size:13px;line-height:1.35;padding:4px 7px;border-left-width:2px;border-radius:0 5px 5px 0}.example-item b{font-size:15px;line-height:1.3}.example-item .urdu{font-size:16px;line-height:1.65}.word-card .extra-example{display:none}.vocab-expanded .word-card .extra-example{display:flex}.review-head{margin:5px 0 0;font-size:11px;line-height:1.4}.review-head b,.review-head span{font-size:11px}.review-rounds{margin:4px 0 0;gap:4px}.review-round{padding:3px 3px;min-height:29px;font-size:11px;gap:4px;border-radius:6px}.review-round input{width:15px;height:15px}.mini-meter{margin-top:4px;height:3px}.revision-reason{font-size:12px;line-height:1.4;margin:5px 0}.vocab-expanded .word-card{padding:13px}.vocab-expanded .word-note{font-size:15px}.vocab-expanded .example-item{font-size:15px;padding:8px}.vocab-expanded .example-item b{font-size:17px}.vocab-expanded .example-item .urdu{font-size:20px;line-height:1.9}.vocab-expanded .meanings-grid strong{font-size:16px}.vocab-expanded .meanings-grid .urdu{font-size:20px}.vocab-expanded .review-round{min-height:36px;font-size:13px}
}
@media(max-width:650px){.word-list{grid-template-columns:minmax(0,1fr)}.word-card .review-head{padding-top:5px}.word-card .say-btn{min-width:28px;min-height:28px}.word-card .example-item b .say-btn{min-width:23px;min-height:23px;width:23px;height:23px;font-size:11px}.word-card .review-round{font-size:11px}.word-heading h3{font-size:24px}}
@media(max-width:650px){
 .word-card .meanings-grid .urdu,.word-card .example-item .urdu{line-height:1.95!important}.word-card .meanings-grid>div{display:flex;align-items:center;gap:6px;min-height:30px;padding:2px 5px}.word-card .meanings-grid .duplicate-german{display:none}.word-card .meanings-grid span{font-size:9px;flex-shrink:0}.word-card .meanings-grid strong{flex:1;min-width:0;text-align:start}.word-card .meanings-grid .urdu{text-align:right}.word-card .example-header{display:none}.word-card .example-list{margin-top:5px}.word-card .word-note{margin:4px 0;font-size:12px}.word-card .example-item{padding:3px 6px}.word-card .review-head{padding-top:3px;margin-top:3px}.word-card .review-rounds{margin-top:2px}.word-card .mini-meter{margin-top:3px}.vocab-expanded .word-card .meanings-grid .urdu,.vocab-expanded .word-card .example-item .urdu{line-height:2.5!important}.vocab-expanded .word-card .example-header{display:block}.vocab-expanded .word-card .word-note{font-size:15px}
}
@media(max-width:650px){.word-card .meanings-grid>div{flex-direction:row}.word-card .meanings-grid strong{font-size:14px}.word-card .meanings-grid .urdu{font-size:17px}.word-card .review-area{display:grid;grid-template-columns:91px minmax(0,1fr);gap:2px 6px;align-items:center;border-top:1px solid #eeedf4;padding-top:4px;margin-top:4px}.word-card .review-head{display:block;border:0;padding:0;margin:0}.word-card .review-head b,.word-card .review-head span{display:block;font-size:10px;line-height:1.3}.word-card .review-rounds{margin:0}.word-card .review-round{font-size:10px;min-height:30px;gap:3px}.word-card .mini-meter{grid-column:1/-1;margin-top:1px}.vocab-expanded .word-card .review-area{display:block}.vocab-expanded .word-card .review-head{display:flex}.vocab-expanded .word-card .review-rounds{margin:6px 0}.vocab-expanded .word-card .meanings-grid>div{flex-direction:column}.vocab-expanded .word-card .meanings-grid strong{font-size:16px}.vocab-expanded .word-card .meanings-grid .urdu{font-size:20px}}
@media(max-width:650px){.overview-library .unified-resource{gap:6px}.overview-library .resource-heading{min-height:36px}.overview-library .resource-description{margin:0 0 3px}.overview-library .resource-counts{margin:0 0 4px}.overview-library .resource-bottom{margin-top:auto}.overview-library .unified-resource h3{margin:0}.vocab-view-control span{max-width:64%}}

/* Restore the original journey hero; fit its decorative art inside phones. */
.hero-card .hero-copy{min-width:0}.hero-card .hero-art{flex-shrink:0}
@media(max-width:650px){
 .hero-card{min-height:0;margin-bottom:14px;border-radius:18px;align-items:stretch}
 .hero-card .hero-copy{padding:20px 0 20px 16px;flex:1 1 0}
 .hero-card .hero-copy h2{font-size:clamp(23px,6.9vw,29px);letter-spacing:-.8px;margin:10px 0;line-height:1.14}
 .hero-card .hero-pill{font-size:9px;letter-spacing:.65px}
 .hero-card .hero-copy p{font-size:12px;line-height:1.45;margin:0 0 12px}
 .hero-card .hero-copy .btn{font-size:11px;padding:9px 11px;min-height:36px;white-space:normal}
 .hero-card .hero-art{width:35%;min-width:0;overflow:hidden;isolation:isolate}
 .hero-card .art-circle.one{width:112%;height:auto;aspect-ratio:1;right:-6%}
 .hero-card .art-circle.two{width:75%;height:auto;aspect-ratio:1;left:10%;top:32%}
 .hero-card .art-text{font-size:clamp(25px,8vw,44px);white-space:nowrap}
 .hero-card .float-a{display:block;left:2%;top:19%;font-size:8px;padding:5px 6px;white-space:nowrap;max-width:96%}
 .hero-card .float-b{right:13%;bottom:16%;font-size:18px;padding:4px 8px}
}
@media(max-width:350px){.hero-card .float-a{display:none}.hero-card .hero-copy h2{font-size:22px}.hero-card .hero-copy{padding-left:12px}.hero-card .hero-art{width:32%}}

/* Resource completion labels and a fully contained mobile banner illustration. */
.hero-art-mobile{display:none}
.resource-bottom .resource-status{display:inline-flex;align-items:center;gap:4px;border-radius:999px;padding:5px 9px;font-size:12px;font-weight:700;line-height:1.3;max-width:100%;white-space:normal}
.resource-status.is-done{background:#e3f5eb;color:#23734c}
.resource-status.is-new{background:#f0edf8;color:#605474}
.resource-bottom{flex-wrap:wrap;gap:8px}
.quiz-status-bar{align-items:center;justify-content:flex-start;margin:0 0 16px;flex-wrap:wrap}
.quiz-status-bar label{font-size:13px;margin:0;font-weight:600;color:var(--ink)}
.quiz-status-bar select{min-width:180px;max-width:100%}
.filter-bar select{min-width:0;max-width:100%}
.resource-filter-empty{padding:20px;margin:12px 0}
@media(max-width:800px){
 .hero-card .hero-art{display:flex;justify-content:center;align-items:center;min-width:0;flex:0 0 38%;width:38%;overflow:visible;padding:5px 7px 5px 0}
 .hero-card .hero-art>.art-circle,.hero-card .hero-art>.art-text,.hero-card .hero-art>.art-floating{display:none!important}
 .hero-card .hero-art-mobile{display:block;width:100%;height:auto;max-width:220px;flex-shrink:1;overflow:hidden}
 .hero-card .hero-copy{min-width:0}
}
@media(max-width:610px){.quiz-status-bar{align-items:stretch;gap:5px}.quiz-status-bar select{width:100%}.resource-bottom .resource-status{font-size:12px;padding:4px 8px}}

/* Mobile quiz: keep Next / Results visible after feedback, reserve room below it. */
@media (max-width:800px){
  #quiz-app .quiz-action-bar .btn{min-height:48px;width:100%;font-size:15px;white-space:normal;}
  #quiz-app{scroll-margin-top:12px;}
  #quiz-app #answer-feedback{scroll-margin-top:12px;overflow-wrap:anywhere;}
  #quiz-app.quiz-answer-revealed .quiz-action-slot{height:calc(76px + env(safe-area-inset-bottom, 0px));}
  #quiz-app.quiz-answer-revealed .quiz-action-bar{position:fixed;left:0;right:0;bottom:0;z-index:10;display:flex;justify-content:center;background:#fff;border-top:1px solid var(--line);box-shadow:0 -6px 24px #24223a12;padding:10px max(14px,env(safe-area-inset-right,0px)) calc(10px + env(safe-area-inset-bottom,0px)) max(14px,env(safe-area-inset-left,0px));}
  #quiz-app.quiz-answer-revealed .quiz-action-bar .btn{max-width:540px;margin:0;}
}

/* Keep navigation scrollable and the account/logout footer accessible. */
.logout-label{display:none}
@media(max-width:800px){
 .sidebar{height:100vh;height:100dvh;bottom:auto;max-width:100%;overflow:hidden;padding:18px 12px max(12px,env(safe-area-inset-bottom,0px));box-sizing:border-box;}
 .sidebar .brand{flex-shrink:0;padding:0 8px;}
 .sidebar .workspace-label{flex-shrink:0;margin:18px 8px 10px;}
 .sidebar .nav{display:flex;flex-direction:column;flex:1 1 auto;min-height:0;overflow-y:auto;overscroll-behavior:contain;gap:3px;padding:0 2px 8px;}
 .sidebar .nav-link{flex-shrink:0;padding:10px 9px;}
 .sidebar .side-bottom{display:grid;grid-template-columns:39px minmax(0,1fr);flex:0 0 auto;background:#fff;gap:8px;padding:12px 4px 0;margin:0;}
 .sidebar #logout{grid-column:1/-1;display:flex;justify-content:center;align-items:center;gap:8px;width:100%;min-height:44px;font-size:14px;font-weight:700;background:#f1edff;color:#5c48b4;border:1px solid #e3dcfa;}
 .sidebar .logout-label{display:inline;}
}

/* Compact mobile feedback: keep the question in place and the existing fixed Next bar. */
@media(max-width:800px){
 #quiz-app{overflow-anchor:none;}
 #quiz-app .answer-feedback{font-size:13px;line-height:1.45;padding:9px 11px;margin:5px 0 8px;border-radius:10px;overflow-wrap:anywhere;}
 #quiz-app .answer-feedback>strong{font-size:14px;line-height:1.4;}
 #quiz-app .answer-feedback p{margin:4px 0 0;line-height:inherit;white-space:pre-line;}
 #quiz-app .answer-feedback .urdu,#quiz-app .answer-feedback .urdu-inline,#quiz-app .answer-feedback [lang=ur]{font-size:16px;line-height:1.95!important;}
 #quiz-app.quiz-answer-revealed .keyboard-help{display:none;}
 #quiz-app.quiz-answer-revealed .answer-text-label{margin-bottom:9px;}
 #quiz-app.quiz-answer-revealed .answer-options{margin-bottom:9px;}
 #quiz-app .quiz-action-slot{overflow-anchor:none;}
}
