.student-pdf-mount,.teach-pdf-reader{width:100%;min-width:0;max-width:100%}.student-pdf-panel{box-sizing:border-box;width:100%;max-width:100%;min-width:0;overflow:hidden;padding:4px;border:1px solid #9dbde0;border-radius:10px;background:#eaf3ff;color:#173c61}.student-pdf-controls{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:5px;margin-bottom:5px}.student-pdf-navigation,.student-pdf-zoom{display:flex;align-items:center;justify-content:center;gap:4px;white-space:nowrap}.student-pdf-controls button{min-width:34px;min-height:34px;padding:4px 8px;border:1px solid #8eacd0;border-radius:8px;background:#195a98;color:#fff;font-size:.9rem;font-weight:700;cursor:pointer}.student-pdf-controls button:disabled{opacity:.5;cursor:default}.student-pdf-page-count,.student-pdf-zoom output{min-width:42px;text-align:center;font-size:.85rem;font-weight:800;color:#173c61}.student-pdf-sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.student-pdf-scroll{width:100%;max-height:88svh;overflow:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch}.student-pdf-stage{position:relative;margin:0 auto;background:#fff}.student-pdf-page{display:block;max-width:none;margin:0;background:#fff;box-shadow:0 2px 12px #1235}.student-pdf-text-layer{position:absolute;inset:0;overflow:hidden;line-height:1;text-align:initial;user-select:text}.student-pdf-text-layer span,.student-pdf-text-layer br{position:absolute;color:transparent;white-space:pre;cursor:text;transform-origin:0 0}.student-pdf-field-layer{position:absolute;inset:0;pointer-events:none}.student-pdf-stroke-layer{position:absolute;inset:0;width:100%;height:100%;pointer-events:none}.student-pdf-placing{cursor:crosshair;touch-action:manipulation}.student-pdf-placing .student-pdf-text-layer,.student-pdf-pen-active .student-pdf-text-layer{pointer-events:none}.student-pdf-pen-active{cursor:crosshair;touch-action:none}.student-pdf-field{position:absolute;box-sizing:border-box;pointer-events:auto}.student-pdf-field textarea{box-sizing:border-box;width:100%;height:100%;min-height:22px;padding:3px;border:1px solid #1774c9;border-radius:3px;background:#fffffff0;color:#102e4b;font:14px Arial,sans-serif;resize:both;user-select:text}.student-tp-card .student-pdf-field .student-pdf-cross{display:grid;place-items:center;width:100%;height:100%;min-width:0;min-height:0;margin:0;padding:0;border:0;border-radius:0;outline:0;box-shadow:none;background:transparent;color:#000;font:700 12px/1 Arial,sans-serif;cursor:pointer;text-shadow:none}.student-tp-card .student-pdf-field .student-pdf-cross:focus-visible{outline:0;filter:brightness(.55)}.student-pdf-cross[aria-pressed=false]{opacity:.35}.student-pdf-move-field,.student-pdf-resize-field{position:absolute;z-index:2;width:19px;height:19px;padding:0;border:1px solid #3973ad;border-radius:4px;background:#eaf4ff;color:#163e65;font-size:13px;line-height:1;cursor:grab;touch-action:none}.student-pdf-move-field{left:0;top:-18px}.student-pdf-resize-field{right:-17px;bottom:-17px;cursor:nwse-resize}.student-pdf-remove-field{position:absolute;right:-15px;top:-15px;width:23px;height:23px;padding:0;border-radius:50%;background:#a63b22;color:#fff;cursor:pointer}.student-pdf-field .student-pdf-move-field,.student-pdf-field .student-pdf-resize-field,.student-pdf-field .student-pdf-remove-field{opacity:0;pointer-events:none}.student-pdf-field:hover .student-pdf-move-field,.student-pdf-field:hover .student-pdf-resize-field,.student-pdf-field:hover .student-pdf-remove-field,.student-pdf-field:focus-within .student-pdf-move-field,.student-pdf-field:focus-within .student-pdf-resize-field,.student-pdf-field:focus-within .student-pdf-remove-field{opacity:1;pointer-events:auto}.student-pdf-form-actions{display:block;margin:0 0 5px;border:0;padding:0}.student-pdf-form-actions>summary{display:none;cursor:pointer;font-weight:800}.student-pdf-form-tools{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:5px}.student-pdf-form-tools button{min-height:32px;padding:4px 8px;border:1px solid #8eacd0;border-radius:8px;background:#195a98;color:#fff;font-size:.85rem;font-weight:700;cursor:pointer}.student-pdf-form-tools button[aria-pressed=true]{background:#b35c00}.student-pdf-color-label{display:inline-flex;align-items:center;gap:4px;font-weight:700;color:#173c61}.student-pdf-color-label input{width:35px;height:32px;padding:2px;border:1px solid #8eacd0;border-radius:8px;background:#fff}.student-pdf-save-status{display:block;text-align:center;font-size:.75rem;color:#173c61}.teach-pdf-reader{min-height:0;overflow:hidden}@media(max-width:700px){.student-pdf-panel{padding:2px}.student-pdf-controls{justify-content:space-between;flex-wrap:nowrap;gap:2px;overflow-x:auto}.student-pdf-navigation,.student-pdf-zoom{gap:2px}.student-pdf-controls button{min-width:30px;min-height:32px;padding:3px 5px;font-size:.8rem}.student-pdf-page-count,.student-pdf-zoom output{min-width:32px;font-size:.75rem}.student-pdf-form-actions{display:block!important;margin:0 0 4px}.student-pdf-form-actions>summary{display:inline-flex;align-items:center;min-height:30px;padding:3px 9px;border:1px solid #8eacd0;border-radius:8px;background:#195a98;color:#fff;font-size:.78rem;list-style:none}.student-pdf-form-actions>summary::-webkit-details-marker{display:none}.student-pdf-form-tools{justify-content:flex-start;margin:4px 0;gap:4px}.student-pdf-form-tools button{min-height:30px;padding:3px 6px;font-size:.77rem}.student-pdf-color-label{font-size:.75rem}.student-pdf-save-status{display:inline;margin-left:8px;font-size:.7rem}.student-tp-viewer section{min-width:0}.student-tp-viewer section>button{max-width:100%;white-space:normal;overflow-wrap:anywhere;text-align:center}.teach-pdf-card{min-width:0}}.student-pdf-display{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:4px}.student-pdf-controls button[aria-pressed=true]{background:#b35c00;border-color:#b35c00}.student-pdf-spread{display:block;width:max-content;min-width:100%}.student-pdf-spread.is-spread{display:flex;justify-content:center;align-items:flex-start;gap:0}.student-pdf-spread.is-spread>.student-pdf-stage{margin:0}.student-pdf-spread>.student-pdf-stage[hidden]{display:none!important}.student-pdf-panel:fullscreen{display:flex;flex-direction:column;width:100%;height:100%;max-width:none;padding:8px;border:0;border-radius:0;background:#3a3f45}.student-pdf-panel:-webkit-full-screen{display:flex;flex-direction:column;width:100%;height:100%;max-width:none;padding:8px;border:0;border-radius:0;background:#3a3f45}.student-pdf-panel.student-pdf-fullscreen{position:fixed;inset:0;z-index:2147483000;display:flex;flex-direction:column;width:100vw;height:100dvh;max-width:none;padding:8px;border:0;border-radius:0;background:#3a3f45}.student-pdf-panel:fullscreen .student-pdf-scroll,.student-pdf-panel.student-pdf-fullscreen .student-pdf-scroll{flex:1;max-height:none}.student-pdf-panel:-webkit-full-screen .student-pdf-scroll{flex:1;max-height:none}.student-pdf-panel:fullscreen :is(.student-pdf-page-count,.student-pdf-zoom output,.student-pdf-save-status,.student-pdf-color-label),.student-pdf-panel.student-pdf-fullscreen :is(.student-pdf-page-count,.student-pdf-zoom output,.student-pdf-save-status,.student-pdf-color-label){color:#fff}html.student-pdf-fullscreen-open,html.student-pdf-fullscreen-open body{overflow:hidden!important}.student-pdf-page{-webkit-user-drag:none;-webkit-touch-callout:none}@media print{.student-pdf-panel,.student-pdf-preview{display:none!important}}#teachingView,#studentDashboard{font-family:Inter,Segoe UI,Arial,sans-serif;font-size:16px;line-height:1.5;font-weight:400;-webkit-text-size-adjust:100%;text-size-adjust:100%}#teachingView :is(button,input,select,textarea),#studentDashboard :is(button,input,select,textarea){font-family:inherit}#teachingView :is(.teach-card h2,.teach-preview h2),#studentDashboard h2{font-size:clamp(24px,2.6vw,30px);line-height:1.2;font-weight:750}#teachingView h3,#studentDashboard h3{font-size:clamp(19px,2vw,22px);line-height:1.3;font-weight:750}#teachingView :is(.teach-tabs button,.teach-card>button,.teach-tp-card button),#studentDashboard :is(.portal-actions>button,.portal-tabs>button,.student-tp-card>button,.student-tp-viewer section>button){font-size:15px;line-height:1.25;font-weight:700}#teachingView :is(.teach-help,.teach-meta),#studentDashboard .portal-small{font-size:14px;line-height:1.45}#teachingView .teach-tp-response-list{grid-template-columns:minmax(0,1fr)}#teachingView .teach-tp-response-row{display:grid;grid-template-columns:minmax(0,1fr);gap:8px;min-width:0;padding:12px;font-size:15px;line-height:1.4}#teachingView .teach-tp-response-label{display:block;min-width:0;overflow-wrap:anywhere;font-weight:600}#teachingView .teach-tp-response-actions{display:flex;align-items:center;flex-wrap:wrap;gap:8px}#teachingView .teach-tp-response-actions button{min-width:0;max-width:100%;margin:0;white-space:normal;text-align:center}#teachingView .teach-tp-response-row .teach-help{display:block;min-height:0;overflow-wrap:anywhere}#teachingView .teach-tp-response-actions .warn{background:#a74e28;color:#fff}#teachingView .teach-tp-final-actions{display:inline-flex;align-items:center;gap:7px;flex-wrap:nowrap;max-width:100%}#teachingView .teach-tp-final-actions button{white-space:nowrap}@media(max-width:700px){#teachingView,#studentDashboard{font-size:15px;line-height:1.45}#teachingView :is(.teach-card h2,.teach-preview h2),#studentDashboard h2{font-size:24px}#teachingView h3,#studentDashboard h3{font-size:19px}#teachingView :is(.teach-tabs button,.teach-card>button,.teach-tp-card button),#studentDashboard :is(.portal-actions>button,.portal-tabs>button,.student-tp-card>button,.student-tp-viewer section>button){font-size:14px}#teachingView .teach-card{min-width:0;padding:clamp(13px,3vw,20px)}#teachingView .teach-tp-response-actions{display:grid;grid-template-columns:minmax(0,1fr)}#teachingView .teach-tp-response-actions button{width:100%}#studentDashboard{min-width:0}#studentDashboard .portal-actions{gap:7px}#studentDashboard .portal-actions>button{min-width:0;white-space:normal}}#studentContentTabs{display:flex;justify-content:center;flex-wrap:wrap;gap:8px}#studentContentTabs[hidden]{display:none!important}#studentContentTabs button{max-width:100%;white-space:normal;text-align:center}#studentLearningReferencePane{min-width:0}#studentLearningReferencePane[hidden]{display:none!important}#studentLearningReferencePane h2{text-align:center;overflow-wrap:anywhere}.student-reference-fold,.student-reference-subfold,.student-ccf-card{margin:10px 0;border:1px solid #98bee5;border-radius:12px;background:#eaf4ff;overflow:hidden}.student-reference-fold>summary,.student-reference-subfold>summary,.student-ccf-card>summary{cursor:pointer;padding:13px 16px;font-weight:700;overflow-wrap:anywhere}.student-reference-subfold{margin:8px 12px;background:#fff}.student-reference-fold:nth-of-type(4n+1){background:#dceeff;border-color:#79b4e7}.student-reference-fold:nth-of-type(4n+2){background:#d7f4e9;border-color:#78c9ac}.student-reference-fold:nth-of-type(4n+3){background:#eee5ff;border-color:#b6a0e4}.student-reference-fold:nth-of-type(4n){background:#fff0d8;border-color:#e1b974}.student-reference-subfold:nth-of-type(3n+1){background:#f7fbff;border-color:#8bbbea}.student-reference-subfold:nth-of-type(3n+2){background:#f4fcf8;border-color:#8bc9b1}.student-reference-subfold:nth-of-type(3n){background:#fcf8ff;border-color:#c1a9e9}.student-reference-fold ul,.student-reference-subfold ul{margin:8px 22px 18px;padding-left:18px}.student-reference-fold li{margin:7px 0;overflow-wrap:anywhere}.student-reference-detail{margin:9px 16px;overflow-wrap:anywhere}.student-reference-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,240px),1fr));gap:10px;padding:12px}.student-reference-card{border-radius:10px;padding:12px;background:#f9fcff;border:1px solid #93bfe6}.student-reference-card:nth-child(3n+2){background:#f1fbf6;border-color:#8fcbb1}.student-reference-card:nth-child(3n){background:#faf6ff;border-color:#c4adea}.student-reference-card h3,.student-reference-card p{margin:0 0 8px;overflow-wrap:anywhere}.student-ccf-card>summary{display:flex;justify-content:space-between;align-items:center;gap:12px}.student-ccf-card>summary strong{min-width:0;overflow-wrap:anywhere}.student-ccf-card>summary span{flex:0 0 auto}.student-ccf-card.student-ccf-tone-0{background:#e3f1ff;border-color:#83baf0}.student-ccf-card.student-ccf-tone-1{background:#def6ec;border-color:#82cbaa}.student-ccf-card.student-ccf-tone-2{background:#f0e8ff;border-color:#baa5e8}.student-ccf-card.student-ccf-tone-3{background:#fff0db;border-color:#e6b66b}.student-ccf-card.student-ccf-tone-4{background:#ffe8ed;border-color:#e9a0b3}.student-ccf-card.student-ccf-tone-5{background:#e0f4f7;border-color:#7dbec9}.student-ccf-note{white-space:nowrap;font-weight:800;color:#102e4b}.student-ccf-body{padding:0 16px 14px;overflow-wrap:anywhere}.student-ccf-competencies{display:flex;flex-wrap:wrap;gap:5px;margin-top:8px}.student-ccf-pill{display:flex;flex-direction:column;align-items:center;justify-content:center;width:34px;height:34px;border-radius:50%;font-size:10px;line-height:1;color:#102435}.student-ccf-pill small{margin-top:2px;font-size:9px;font-weight:700}.student-ccf-pill.red{background:#d84949}.student-ccf-pill.orange{background:#f08a24}.student-ccf-pill.green{background:#78ad30}.student-ccf-pill.darkgreen{background:#388757;color:#fff}.student-ccf-pill.none{background:#c9d4de}@media(max-width:600px){#studentContentTabs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}#studentContentTabs button{width:100%;min-width:0;padding:8px 5px;font-size:clamp(12px,3.2vw,15px)}.student-ccf-card>summary{flex-wrap:wrap}}:root{--melec-ink:#102f4f;--melec-blue-card:#d5eaff;--melec-blue-border:#74afe3;--melec-teal-card:#d3f2ef;--melec-teal-border:#69beb0;--melec-green-card:#dcf3dc;--melec-green-border:#81bd86;--melec-violet-card:#e7defb;--melec-violet-border:#af95dc;--melec-amber-card:#ffebc5;--melec-amber-border:#dea64d}#homeView .home-access-card:nth-child(1){background:linear-gradient(140deg,#ffdfab,#fff0d3)!important;border-color:#d99531!important}#homeView .home-access-card:nth-child(2){background:linear-gradient(140deg,#c4e1ff,#e4f1ff)!important;border-color:#6ba9df!important}#homeView .home-access-card:nth-child(3){background:linear-gradient(140deg,#c4ecdc,#e4f7eb)!important;border-color:#68b18b!important}#homeView .home-access-card:nth-child(4){background:linear-gradient(140deg,#d9caf6,#efe8fc)!important;border-color:#a388d4!important}#homeView .home-access-card:nth-child(5){background:linear-gradient(140deg,#ffd4c9,#fff0e9)!important;border-color:#d88a75!important}#homeView .home-access-card :is(strong,small){color:var(--melec-ink)!important}#teachingView .teach-card{background:linear-gradient(145deg,#dcecff,#edf5ff)!important;border:1.5px solid var(--melec-blue-border)!important;color:var(--melec-ink)!important}#teachingView .teach-content-manager{background:linear-gradient(145deg,#c9e6ff,#e3f2ff)!important;border-color:#5ba3dc!important}#teachingView .teach-tp-card{background:linear-gradient(145deg,#cceee9,#e5f7f3)!important;border-color:var(--melec-teal-border)!important}#teachingView .teach-tp-student,#teachingView .teach-tp-response-row{background:#e2f1ff!important;border:1px solid #9bc9e9!important;color:var(--melec-ink)!important}#teachingView .teach-tp-student:nth-child(2n),#teachingView .teach-tp-response-row:nth-child(2n){background:#e0f4e8!important;border-color:#95cdae!important}#teachingView .teach-card :is(h2,h3,strong,label,summary){color:var(--melec-ink)}#teachingView .teach-card :is(input,select,textarea){background:#fff;color:#173653}#activitiesView>.panel,#studentsView>.panel,#resultsView>.panel,#referentialView>.panel{background:linear-gradient(150deg,#d8eaff,#edf5ff)!important;border-color:var(--melec-blue-border)!important}#activitiesView .activity-class-group,#activity-listView .activity-list-card{background:var(--melec-blue-card)!important;border-color:var(--melec-blue-border)!important}#activitiesView .activity-class-group:nth-child(3n+2),#activity-listView .activity-list-card:nth-child(3n+2){background:var(--melec-teal-card)!important;border-color:var(--melec-teal-border)!important}#activitiesView .activity-class-group:nth-child(3n),#activity-listView .activity-list-card:nth-child(3n){background:var(--melec-violet-card)!important;border-color:var(--melec-violet-border)!important}#activitiesView .activity-card,#activity-listView .activity-entry,#resultsView .result-card{background:#e2f0ff!important;border-color:#8cbae3!important}#activitiesView .activity-card:nth-child(2n),#activity-listView .activity-entry:nth-child(2n),#resultsView .result-card:nth-child(2n){background:var(--melec-green-card)!important;border-color:var(--melec-green-border)!important}#studentsView .class-fold,#studentsView .student-group-item{background:var(--melec-teal-card)!important;border-color:var(--melec-teal-border)!important}#studentsView .class-fold:nth-of-type(2n),#studentsView .student-group-item:nth-of-type(2n){background:var(--melec-violet-card)!important;border-color:var(--melec-violet-border)!important}#referentialView .referential-section,#referentialView .block-card{background:var(--melec-blue-card)!important;border-color:var(--melec-blue-border)!important}#referentialView .referential-section:nth-child(2n),#referentialView .block-card:nth-child(2n){background:var(--melec-teal-card)!important;border-color:var(--melec-teal-border)!important}#activitiesView :is(.activity-class-group,.activity-card),#activity-listView .activity-list-card,#studentsView .class-fold,#resultsView .result-card,#referentialView .referential-section{color:var(--melec-ink)!important}.portal-panel{background:linear-gradient(145deg,#dbeaff,#eef5ff)!important;border-color:#83b5df!important;color:var(--melec-ink)!important}#studentDashboard{background:linear-gradient(145deg,#d3e8ff,#eaf3ff)!important}#studentDashboard .portal-list details{background:var(--melec-blue-card)!important;border-color:var(--melec-blue-border)!important;color:var(--melec-ink)!important}#studentDashboard .portal-list details:nth-child(2n){background:var(--melec-teal-card)!important;border-color:var(--melec-teal-border)!important}#studentDashboard .student-tp-card{background:linear-gradient(145deg,#c9e9e3,#e3f6ef)!important;border-color:#6bbbaa!important;color:var(--melec-ink)!important}#studentDashboard .student-tp-card:nth-child(2n){background:linear-gradient(145deg,#dcd3f5,#f0eafb)!important;border-color:var(--melec-violet-border)!important}#studentDashboard .portal-message{background:#cde5ff!important;color:#143856!important}#studentDashboard .portal-warning{background:var(--melec-amber-card)!important;color:#633d0d!important}.lesson-file{background:#d5eafe!important;color:var(--melec-ink)!important}@media(max-width:700px){#teachingView .teach-card,.portal-panel{box-shadow:0 8px 22px #02214326!important}#homeView .home-access-card{box-shadow:0 8px 20px #02214333!important}}*,*:before,*:after{box-sizing:border-box}.content,.view,.portal-shell,.portal-panel,.teaching-space,.teach-card,.teach-preview-content{min-width:0}.view img,.portal-panel img{max-width:100%;height:auto}.teaching-space .teach-row,.teaching-space .teach-section-heading,.teaching-space .teach-item{min-width:0}.teaching-space .teach-row button,.teaching-space .teach-row select,.teaching-space .teach-row input{max-width:100%;white-space:normal;overflow-wrap:anywhere}.teaching-space .teach-section-heading>div,.teaching-space .teach-item>div{min-width:0}.teaching-space .teach-head h1,.teaching-space .teach-card h2,.teaching-space .teach-card h3,.portal-panel h1,.portal-panel h2,.portal-panel h3{overflow-wrap:anywhere;line-height:1.2}.teaching-space .teach-editable,.lesson-content{min-width:0}@media screen{.teach-preview .teach-preview-content:not(.teach-preview-with-pdf){width:100%;max-width:min(100%,1600px);margin-inline:auto}.teach-preview .teach-preview-content .lesson-content{width:100%;max-width:100%}}@media print{body.print-lesson .teach-preview-content{width:100%;max-width:210mm;margin-inline:auto}}@media(max-width:980px){.content{max-width:100%;padding-inline:clamp(12px,2.6vw,24px)!important}.teaching-space .teach-card,.portal-panel{max-width:100%}.teaching-space .teach-preview-content,.teach-pdf-attachments,.teach-pdf-card{min-width:0;max-width:100%}.teach-preview{max-width:calc(100vw - 12px)}.teach-preview-actions{max-width:100%;overflow-wrap:anywhere}.teach-preview-actions strong{min-width:0;flex:1 1 180px}.portal-page{background-attachment:scroll!important}}@media(max-width:600px){.content{padding:12px 10px max(20px,env(safe-area-inset-bottom,0px))!important}.teaching-space .teach-head{margin-bottom:12px}.teaching-space .teach-head h1{font-size:clamp(22px,6vw,30px)}.teaching-space .teach-card{padding:14px;margin-bottom:12px;border-radius:16px}.teaching-space .teach-row{gap:8px;align-items:stretch}.teaching-space .teach-row>label{align-self:center}.teaching-space .teach-row>select,.teaching-space .teach-row>input{min-width:0;width:100%;font-size:16px}.teaching-space .teach-row>button{min-height:40px;padding:7px 11px;font-size:13px}.teaching-space .teach-tabs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}.teaching-space .teach-tabs button{min-width:0;width:100%;min-height:40px;padding:7px 6px;font-size:clamp(12px,3.3vw,14px);line-height:1.2;white-space:normal}.teaching-space .teach-section-heading{display:flex;flex-wrap:wrap;gap:8px}.teaching-space .teach-section-heading>.teach-row{width:100%;display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.teaching-space .teach-section-heading>.teach-row button{width:100%;min-width:0}.teaching-space .teach-tp-students{grid-template-columns:minmax(0,1fr)}.teaching-space .teach-tp-time{gap:6px;line-height:1.4}.teaching-space .teach-tp-time select{width:auto;flex:1 1 110px}.teaching-space .teach-tp-time button{flex:1 1 110px}.teaching-space .teach-editor-toolbar{gap:4px;padding:5px}.teaching-space .teach-editor-toolbar button{padding:4px 7px}.teach-preview{inset:4px;max-width:none;padding:7px;border-width:1px;border-radius:12px}.teach-preview-actions{top:0;padding:6px;gap:5px}.teach-preview-actions button{min-height:36px;padding:6px 10px;font-size:13px}.teach-pdf-card{padding:6px}.portal-shell{width:100%;padding:12px max(10px,env(safe-area-inset-left)) 22px max(10px,env(safe-area-inset-right))}.portal-header{gap:10px;margin-bottom:14px}.portal-header img{width:clamp(54px,17vw,76px);height:auto;flex:none}.portal-header>div{min-width:0}.portal-header h1{font-size:clamp(22px,6vw,30px);line-height:1.1}.portal-header p{overflow-wrap:anywhere}.portal-panel{padding:clamp(12px,3.4vw,18px);border-radius:16px}.portal-actions.student-refresh-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}.portal-actions.student-refresh-actions button{width:100%;min-width:0;min-height:40px;padding:7px 8px;font-size:clamp(12px,3.2vw,14px);line-height:1.2;white-space:normal}.portal-actions.student-refresh-actions #studentRefresh{grid-column:1/-1;width:100%;min-height:42px;padding:7px 10px;font-size:14px}.portal-tabs{gap:6px;margin-bottom:12px}.portal-tabs button{min-width:0;padding:8px 11px;font-size:clamp(12px,3.3vw,14px);line-height:1.25;white-space:normal}.student-pane,.portal-list,.portal-list details,.student-tp-card,.student-tp-viewer,.student-tp-viewer section{min-width:0;max-width:100%}.student-tp-card,.portal-list details{padding:10px}.student-tp-card button,.portal-list summary{max-width:100%;overflow-wrap:anywhere;white-space:normal}.student-pdf-controls{justify-content:center;gap:4px}.student-pdf-controls button,.student-pdf-form-actions button{min-height:34px;padding:4px 6px;font-size:12px;line-height:1.15}.student-pdf-scroll{max-height:75svh}}@media(max-width:360px){.topbar .brand-logo{width:48px!important;height:48px!important;flex-basis:48px!important}.topbar .brand-copy strong,.topbar .brand-copy strong span{font-size:14px!important;white-space:normal!important}.portal-header img{width:50px}.portal-header h1{font-size:21px}}#studentDashboard{color:#102f4f;background:linear-gradient(150deg,#d6eaff,#ecf5ff 65%,#e6f3f0)!important}#studentDashboard .portal-message:not(.portal-warning){background:#c9e4ff!important;border:1px solid #86b6e1;color:#123757!important}#studentDashboard .student-class-name{background:#d7f4e7;border-color:#78bea0;color:#123b35}#studentContentTabs{justify-content:center;align-items:stretch}#studentContentTabs button{min-width:0;max-width:100%;white-space:normal;overflow-wrap:anywhere;text-align:center;line-height:1.25;border-width:1.5px;transition:background-color .15s ease,box-shadow .15s ease}#studentContentTabs button:nth-child(1){background:#d1e8ff;border-color:#74aee0;color:#153b61}#studentContentTabs button:nth-child(2){background:#d6f0e6;border-color:#79bc9c;color:#174638}#studentContentTabs button:nth-child(3){background:#e7ddfa;border-color:#ad91dc;color:#49346d}#studentContentTabs button:nth-child(4){background:#ffdde6;border-color:#d790a5;color:#72334a}#studentContentTabs button:nth-child(5){background:#d1eef4;border-color:#75b7c8;color:#19505e}#studentContentTabs button:nth-child(1).active{background:#175a98;border-color:#124879;color:#fff}#studentContentTabs button:nth-child(2).active{background:#287451;border-color:#1b5b3e;color:#fff}#studentContentTabs button:nth-child(3).active{background:#69499b;border-color:#54377f;color:#fff}#studentContentTabs button:nth-child(4).active{background:#a13d60;border-color:#7e2d49;color:#fff}#studentContentTabs button:nth-child(5).active{background:#246d7e;border-color:#195461;color:#fff}#studentContentTabs button:hover:not(.active){filter:brightness(.96)}#studentContentTabs button:focus-visible{outline:3px solid #112f50;outline-offset:2px}#studentDashboard .portal-list details:nth-child(4n+1){background:#d2e9ff!important;border-color:#7aafe0!important}#studentDashboard .portal-list details:nth-child(4n+2){background:#d5f0e5!important;border-color:#7bbb9c!important}#studentDashboard .portal-list details:nth-child(4n+3){background:#ece1fa!important;border-color:#b397db!important}#studentDashboard .portal-list details:nth-child(4n){background:#ffedcf!important;border-color:#dfa85a!important}#studentDashboard .portal-list details,#studentDashboard .portal-list summary{color:#102f4f!important;overflow-wrap:anywhere}#studentDashboard .student-tp-card:nth-child(4n+1){background:#d4efe7!important;border-color:#75b99e!important}#studentDashboard .student-tp-card:nth-child(4n+2){background:#e7def8!important;border-color:#ad95d5!important}#studentDashboard .student-tp-card:nth-child(4n+3){background:#ffebd1!important;border-color:#dba765!important}#studentDashboard .student-tp-card:nth-child(4n){background:#d3e8fc!important;border-color:#83b2df!important}#studentDashboard .student-tp-card :is(h2,h3,strong,summary,p){color:#102f4f;overflow-wrap:anywhere}@media(max-width:600px){#studentContentTabs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}#studentContentTabs button{width:100%;padding:9px 6px;font-size:clamp(12px,3.4vw,15px)}}@media(max-width:360px){#studentContentTabs{grid-template-columns:1fr}}body.portal-page{background-color:#08233d;background-image:linear-gradient(180deg,#05192cb0,#05192c85 45%,#05192ca8),url(./fond-espace-eleve.webp);background-position:center top;background-size:cover;background-repeat:no-repeat;background-attachment:fixed}#studentDashboard.portal-panel{width:100%;min-width:0;margin:12px 0 32px;padding:0;border:0;border-radius:0;box-shadow:none;background:transparent!important;color:#fff}#studentDashboard .student-refresh-actions{display:flex;justify-content:center;flex-wrap:wrap;gap:10px;width:fit-content;max-width:100%;margin:0 auto 14px;padding:10px;border:1px solid rgba(224,240,255,.48);border-radius:18px;background:#061d32bf;box-shadow:0 8px 22px #000f2038}#studentDashboard .student-refresh-actions .subtle{background:#edf6ff;border-color:#a9c9e7;color:#103856}#studentDashboard .student-refresh-actions button:focus-visible,#studentDashboard #studentContentTabs button:focus-visible{outline:3px solid #ffca65;outline-offset:3px}#studentDashboard #studentRefreshStatus{width:fit-content;max-width:100%;min-height:0;margin:0 auto 12px;color:#fff;text-align:center;font-size:.95rem;text-shadow:0 1px 3px #061b30}#studentDashboard #studentRefreshStatus:empty{display:none}#studentDashboard #studentProfileStatus{width:min(100%,820px);margin:0 auto 12px;padding:13px 18px;border:1px solid rgba(213,235,255,.62);border-radius:13px;background:#072643d4!important;color:#fff!important;text-align:center;font-size:clamp(1rem,2vw,1.12rem);font-weight:650}#studentDashboard #studentProfileStatus:empty{display:none}#studentDashboard #studentClassName{display:table;margin:10px auto 16px;padding:9px 16px;background:#e2f6e9;color:#123d2d;border:1px solid #7dbb96;text-align:center}#studentDashboard #studentClassName[hidden]{display:none}#studentDashboard #studentContentTabs{max-width:100%;margin:0 auto 18px;padding:8px;border-radius:18px;background:#071d33c2}#studentDashboard #studentContentTabs button{min-height:46px;padding:10px 15px;font-size:clamp(.89rem,1.3vw,1rem);line-height:1.3;box-shadow:0 1px 3px #00142426}#studentContentTabs button:nth-child(6){background:#dce7ff;border-color:#90ace0;color:#283e73}#studentContentTabs button:nth-child(6).active{background:#3d5792;border-color:#304678;color:#fff}#studentDashboard .student-pane{min-width:0;width:100%;margin:0 auto 24px;padding:clamp(16px,3vw,34px);border:2px solid var(--pane-border, #95badc);border-radius:clamp(16px,2vw,24px);background:var(--pane-surface, #edf6ff);color:var(--pane-ink, #123656);box-shadow:0 14px 36px #00122245;overflow-wrap:anywhere}#studentDashboard .student-pane h2{margin:0 0 16px;color:var(--pane-ink, #123656);text-align:center;font-size:clamp(1.45rem,3vw,2.2rem);line-height:1.2}#studentDashboard .student-pane .portal-small{color:#35516b}#studentManualPane{--pane-surface: rgba(225, 241, 255, .97);--pane-border: #7db6e9;--pane-ink: #123e66}#studentTdPane{--pane-surface: rgba(225, 246, 233, .97);--pane-border: #78be97;--pane-ink: #124b32}#studentTpPane{--pane-surface: rgba(239, 229, 251, .97);--pane-border: #b395db;--pane-ink: #47306b}#studentLearningReferencePane{--pane-surface: rgba(255, 232, 239, .97);--pane-border: #d993ad;--pane-ink: #70364e}#studentDashboard:has(#studentContentTabs button:nth-child(5).active) #studentLearningReferencePane{--pane-surface: rgba(223, 245, 249, .97);--pane-border: #77bac9;--pane-ink: #164c5c}#studentDashboard:has(#studentContentTabs button:nth-child(6).active) #studentLearningReferencePane{--pane-surface: rgba(228, 238, 255, .97);--pane-border: #8ba9e4;--pane-ink: #283e73}#studentManualPane .manual-lesson-page{background:#f5faff;border-color:#9dc9ef}#studentManualPane .manual-toc{background:#d6eaff;border-color:#8dbce6}#studentTdPane .manual-lesson-page{background:#f2fbf5;border-color:#9fcfb0}#studentTdPane .manual-toc{background:#d7f0e1;border-color:#88c6a2}#studentTdPane .manual-toc-chapter{border-color:#2c8a59}#studentTdPane .manual-toc-chapter button[aria-current=page]{background:#226e48}#studentTpPane .student-tp-card{color:#243855}#studentDashboard #studentTpPane #studentTpNotice:not(.portal-warning){background:#e5d7f7!important;border:1px solid #b598d7;color:#49316b!important}#studentDashboard #studentTpPane #studentTpNotice:empty{display:none}#studentLearningReferencePane .student-reference-fold,#studentLearningReferencePane .student-ccf-card{color:#163450}#studentDashboard .student-pane :is(img,video,canvas,iframe){max-width:100%}#studentDashboard .student-pane :is(p,li,td,th,summary,h3){overflow-wrap:anywhere}@media(max-width:700px){body.portal-page{background-attachment:scroll;background-position:center top}#studentDashboard .student-refresh-actions{width:100%}#studentDashboard .student-refresh-actions button{flex:1 1 150px}#studentDashboard #studentContentTabs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}#studentDashboard #studentContentTabs button{width:100%;padding:9px 7px}}@media(max-width:390px){#studentDashboard #studentContentTabs{grid-template-columns:1fr}#studentDashboard .student-refresh-actions button{flex-basis:100%}}
