:root{--navy:#4c1689;--blue:#6526a4;--copper:#007b8a;--ink:#0c2159;--line:#bd91e4}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:linear-gradient(110deg,#bdf3f1 0%,#e9f3fc 48%,#d9bdef 100%);background-attachment:fixed;color:var(--ink);font:16px/1.5 system-ui,-apple-system,"Segoe UI",sans-serif}main{max-width:1160px;margin:auto;padding:32px 28px 55px}a{color:var(--blue);text-underline-offset:3px}.mast{border:1px solid #80cbd0;border-top:4px solid #80cbd0;border-radius:24px;background:linear-gradient(120deg,#7927bd,#4c1689 75%);padding:32px 38px;color:#fff;box-shadow:0 7px 0 #4c168926,0 17px 35px #4c168915}.brand{display:block;text-decoration:none;color:white;font-size:23px;font-weight:800}.brand span{color:#d0f1f1}.eyebrow{font-size:12px;letter-spacing:2px;font-weight:750;color:var(--copper);margin:22px 0 8px}.mast .eyebrow{color:#d0f1f1}h1{font-size:clamp(32px,4.8vw,48px);line-height:1.1;letter-spacing:-1px;margin:12px 0 14px}h1 span{color:#d0f1f1}.mast>p:not(.eyebrow){color:#f0eafb;margin-bottom:24px}.account{display:flex;align-items:center;gap:9px;font-size:14px;flex-wrap:wrap;border-top:1px solid #ffffff30;padding-top:18px;color:#f0eafb}.account a{margin-left:auto;color:#d0f1f1}.lock{color:#88d9be;font-size:12px}h2{font-size:23px;line-height:1.3;margin:0 0 10px}p{margin:8px 0}.intro{display:flex;gap:20px;align-items:center;justify-content:space-between;margin-top:38px}.intro p{color:#5e6c83}.counter{background:#ead7fb;border:1px solid #bd91e4;border-radius:20px;white-space:nowrap;padding:8px 16px;font-size:14px;font-weight:700}.notice{background:#fff5eb;border-left:4px solid #80cbd0;padding:12px 16px;margin:20px 0;color:#5f3b29;font-size:14px}.status{border:1px solid #bd91e4;border-radius:10px;background:#ead7fb;padding:12px 15px;font-size:14px}.status[data-state=success]{background:#e6f5ee;border-color:#9cc5b4;color:#24503e}.status[data-state=error]{background:#fff0ea;border-color:#cf9b85;color:#81351d}.chapter-nav{display:flex;gap:9px;flex-wrap:wrap;margin:22px 0}.chapter-nav a{color:var(--navy);text-decoration:none;font-weight:800;border:1px solid #bd91e4;background:#fff;border-radius:8px;min-width:50px;text-align:center;padding:9px}.chapter{border:1px solid #bd91e4;border-left:5px solid #6526a4;border-radius:15px;background:#fff;margin:16px 0;box-shadow:0 4px 0 #4c168915;scroll-margin-top:15px;overflow:hidden}.chapter summary{cursor:pointer;list-style:none;display:flex;align-items:center;gap:16px;padding:19px 22px;background:linear-gradient(110deg,#ead7fb,#f8f5fc 70%,#d0f1f1)}.chapter summary::-webkit-details-marker{display:none}.chapter summary:after{content:'⌄';font-size:24px;margin-left:7px;color:var(--blue)}.chapter[open] summary:after{transform:rotate(180deg)}.code{display:grid;place-items:center;flex:none;width:51px;height:48px;border-radius:10px;background:linear-gradient(135deg,#7927bd,#4c1689);color:#fff;border:1px solid #80cbd0;box-shadow:0 3px 0 #4c168950;font-size:22px;font-weight:800}.chapter-title{flex:1;font-size:17px;font-weight:750;line-height:1.35}.chapter-count{font-size:13px;white-space:nowrap;color:#5e6c83}.chapter-body{padding:6px 22px 15px}.chapter-actions{display:flex;justify-content:flex-end;padding:9px 0;border-bottom:1px solid #e3d7ef}.small-button{font:650 13px system-ui;color:var(--copper);border:1px solid #d4ad90;border-radius:7px;background:#fff7f0;min-height:36px;padding:6px 12px;cursor:pointer}.correction-row{display:flex;align-items:center;gap:15px;padding:16px 0;border-bottom:1px solid #e3d7ef}.correction-row:last-child{border-bottom:0}.toggle-label{flex:1;display:flex;gap:14px;align-items:center;cursor:pointer;min-width:0}.toggle-label input{appearance:none;width:24px;height:24px;border:2px solid #bd91e4;border-radius:6px;flex:none;background:#fff;cursor:pointer;position:relative;margin:0}.toggle-label input:checked{background:#6526a4;border-color:#6526a4}.toggle-label input:checked:after{content:'✓';position:absolute;inset:0;color:white;font-weight:900;text-align:center;line-height:20px}.row-text{min-width:0}.row-title{display:block;font-size:15px;font-weight:700;overflow-wrap:anywhere}.row-meta{display:block;color:#5e6c83;font-size:12px;margin-top:3px}.row-state{display:inline-block;color:#6a4c37;background:#fbefdf;font-size:11px;font-weight:700;padding:3px 9px;border-radius:20px;white-space:nowrap}.row-state[data-published=true]{background:#e4f3eb;color:#225b46}.preview{font-size:13px;font-weight:650;white-space:nowrap}.save-bar{position:sticky;bottom:16px;z-index:3;display:flex;gap:20px;align-items:center;justify-content:space-between;padding:18px 22px;border:1px solid #bd91e4;border-top:3px solid #80cbd0;border-radius:14px;background:#fbf8fff5;box-shadow:0 7px 25px #4c168930;margin:26px 0 16px;backdrop-filter:blur(8px)}.save-bar strong{font-size:15px}.save-bar p{font-size:12px;color:#5e6c83;margin:3px 0 0}.save-actions,.analytics-actions{display:flex;gap:10px;flex-wrap:wrap}button{min-height:46px;border:1px solid #6526a4;background:linear-gradient(130deg,#7927bd,#4c1689);color:#fff;font:700 14px system-ui;padding:11px 17px;border-radius:9px;cursor:pointer}.secondary{color:#0c2159;background:#fff;border-color:#bd91e4}button:disabled{opacity:.48;cursor:default}a:focus-visible,button:focus-visible,input:focus-visible,summary:focus-visible{outline:3px solid #007b8a;outline-offset:4px}.footnote{font-size:13px;color:#5e6c83}.analytics{margin-top:38px;border:1px solid var(--line);border-radius:15px;background:#ffffffc9;padding:24px}.analytics .eyebrow{margin-top:0}.analytics h2{font-size:20px}.analytics .text-link{display:inline-block;margin-top:17px;font-size:14px;font-weight:700}.back{display:inline-block;margin-top:25px;font-weight:700;font-size:14px}@media(max-width:720px){main{padding:18px 13px 35px}.mast{padding:25px}.intro{display:block}.counter{display:inline-block;margin-top:10px}.account a{margin-left:0}.chapter summary{padding:15px 13px;gap:11px;flex-wrap:wrap}.chapter-title{font-size:15px}.chapter-count{margin-left:62px;order:2;width:100%}.chapter summary:after{margin-left:auto}.chapter-body{padding:4px 14px 13px}.correction-row{flex-wrap:wrap;gap:7px}.toggle-label{flex-basis:calc(100% - 85px)}.preview{margin-left:38px}.row-state{font-size:10px}.save-bar{bottom:8px;display:block;padding:15px}.save-actions{margin-top:11px}.save-actions button{flex:1}.save-bar p{font-size:11px}.row-title{font-size:14px}}@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}}
.save-bar{position:static}.save-bar[data-dirty="true"]{position:sticky}
.login-main{max-width:720px}.login-panel{background:#fff;border:1px solid var(--line);border-radius:16px;margin-top:26px;padding:28px}.login-panel label{display:block;font-weight:700;margin:18px 0 6px}.login-panel input{width:100%;font:inherit;padding:12px;border:1px solid #bd91e4;border-radius:8px;min-height:48px}.login-panel button{margin-top:22px;width:100%}.login-panel [role=status]{color:#8a3e20;font-size:14px}
.account .logout{margin-left:auto;background:transparent;color:#d0f1f1;border:0;min-height:32px;padding:0;text-decoration:underline;font-size:14px;font-weight:500}@media(max-width:720px){.account .logout{margin-left:0}}

[hidden]{display:none!important}.teacher-nav{display:flex;align-items:center;gap:10px 20px;flex-wrap:wrap;border-top:1px solid #ffffff30;padding-top:18px;margin-top:22px}.teacher-nav a{color:#d0f1f1;font-size:13px;font-weight:700}.teacher-nav [aria-current=page]{color:#fff;text-decoration:none;border-bottom:2px solid #d0f1f1;padding-bottom:3px}.login-link{display:inline-block;padding:14px 20px;border-radius:10px;color:#fff;background:linear-gradient(130deg,#7927bd,#4c1689);font-weight:700;text-decoration:none;min-height:48px}

/* Account management shares the teacher layout; pupil registration keeps its own stylesheet. */
.admin-main .mast{margin-bottom:26px}.admin-main .card{background:#fff;border:1px solid var(--line);border-radius:16px;padding:24px;min-width:0}.admin-columns{display:grid;grid-template-columns:minmax(0,2fr) minmax(0,1fr);gap:24px;margin-top:24px}.admin-main label{display:block;font-size:14px;font-weight:700;margin:14px 0 0}.admin-main input,.admin-main select{display:block;width:100%;max-width:100%;min-height:46px;margin-top:6px;padding:11px 12px;border:1px solid #bd91e4;border-radius:9px;background:#fff;color:var(--ink);font:inherit}.admin-main input:focus-visible,.admin-main select:focus-visible{outline:3px solid #007b8a;outline-offset:3px}.admin-main form>button{width:100%;margin-top:17px}.admin-main .toolbar{display:flex;justify-content:space-between;align-items:center;gap:14px;flex-wrap:wrap}.admin-main .toolbar h2{margin:0}.admin-main .toolbar label{margin:0}.admin-main .toolbar select{width:auto;min-width:150px}.member{border-top:1px solid var(--line);padding:21px 0;overflow-wrap:anywhere}.member:first-child{margin-top:16px}.member h3{margin:0 0 5px;font-size:18px}.member p{font-size:14px;color:#5e6c83}.member-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:13px}.member-actions button{font-size:13px;min-height:40px;padding:9px 12px}.badge{display:inline-block;background:#f9ecdd;border-radius:99px;padding:4px 11px;color:#7c4d29;font-size:12px;font-weight:700}.badge.approved{background:#e0f3eb;color:#23694d}.badge.refused,.badge.suspended{background:#fbe9e5;color:#873f32}.admin-main .danger{background:#934f5f;border-color:#934f5f}.class-list{padding-left:20px;overflow-wrap:anywhere}.help{border-top:1px solid var(--line);margin-top:25px;padding-top:10px}.help p,.admin-main footer{font-size:13px;color:#5e6c83}.admin-main footer{margin-top:26px}.admin-main .code{display:block;width:auto;height:auto;padding:12px;font:700 16px/1.6 monospace;overflow-wrap:anywhere;white-space:normal;letter-spacing:.03em}.delete-dialog{width:min(540px,calc(100% - 32px));max-height:calc(100vh - 32px);max-height:calc(100dvh - 32px);overflow:auto;border:1px solid var(--line);border-radius:20px;padding:28px;color:var(--ink);background:#fff;box-shadow:0 18px 80px #18334733}.delete-dialog::backdrop{background:#18334799}.delete-member{font-weight:750;overflow-wrap:anywhere}.delete-actions{display:flex;justify-content:flex-end;flex-wrap:wrap;gap:10px;margin-top:20px}.muted{font-size:13px;color:#5e6c83}#delete-error:not(:empty){color:#8a2844}@media(max-width:720px){.admin-columns{grid-template-columns:minmax(0,1fr)}.admin-main .card{padding:19px}.member-actions button{flex:1}.delete-dialog{padding:22px}.delete-actions button{flex:1}.teacher-nav{gap:11px 15px}.admin-main .toolbar select{min-width:0;max-width:100%}}
/* The shared pupil evaluation sheet must not recolor the teacher mast. */
.teacher-evaluations{font:16px/1.5 system-ui,-apple-system,"Segoe UI",sans-serif;color:var(--ink)}.teacher-evaluations .evaluation-main{width:auto;max-width:1160px;margin:0 auto;padding:32px 28px 55px}.mast.evaluation-mast h1{color:#fff}.mast.evaluation-mast h1 span{color:#d0f1f1}.mast.evaluation-mast a{color:#d0f1f1}.mast.evaluation-mast .brand{color:#fff}.mast.evaluation-mast .brand span{color:#d0f1f1}.mast.evaluation-mast .teacher-nav a[aria-current=page]{color:#fff}.mast.evaluation-mast .teacher-nav{margin-bottom:0}.teacher-evaluations .evaluation-session-title{min-width:0;overflow-wrap:anywhere}.teacher-evaluations .evaluation-table-scroll{max-width:100%}@media(max-width:720px){.teacher-evaluations .evaluation-main{padding:18px 13px 35px}}

/* Navigation buttons below the mast, matching the requested Terminale layout. */
.teacher-nav{border:0;padding:0;margin:24px 0;gap:12px;align-items:stretch}.teacher-nav a{display:inline-flex;align-items:center;justify-content:center;gap:10px;min-height:58px;padding:12px 16px;border:1px solid #bd91e4;border-radius:9px;background:#fff;color:#0c2159;font-size:clamp(15px,1.6vw,20px);font-weight:800;line-height:1.35;text-decoration:none}.teacher-nav a:hover{background:#ead7fb}.teacher-nav a[aria-current=page]{color:#4c1689;background:#d0f1f1;border:1px solid #007b8a;padding:12px 16px;text-decoration:none}.teacher-nav a:focus-visible{outline:3px solid #7927bd;outline-offset:4px}@media(max-width:720px){.teacher-nav a{width:100%;justify-content:space-between;min-height:54px;font-size:16px}}

/* Validated split teacher header: compact, named and visibly marked Seconde. */
.teacher-topline{display:flex;align-items:center;justify-content:space-between;gap:18px;min-height:48px;margin:0 0 14px}
.teacher-identity{display:flex;flex-direction:column;gap:2px;min-width:0}
.teacher-topline .brand{display:block;color:#0c2159;font-size:19px;font-weight:850;line-height:1.3;letter-spacing:-.35px;text-decoration:none}
.teacher-topline .brand span{color:#7927bd}
.teacher-author{color:#596984;font-size:13px;font-weight:500;line-height:1.4}
.teacher-topline .account{display:flex;justify-content:flex-end;align-items:center;gap:8px 16px;margin:0;padding:0;border:0;color:#596984;font-size:12px;line-height:1.45;max-width:55%;min-width:0}
.teacher-topline .account #account-email{overflow-wrap:anywhere;min-width:0}
.teacher-topline .account .logout{margin-left:0;color:#4c1689;background:none;border:0;font-size:13px;font-weight:650;min-height:32px;padding:0;text-decoration:underline}
.teacher-session{color:#596984;font-size:12px;white-space:nowrap}
.mast.compact-mast{display:flex;align-items:center;justify-content:space-between;gap:24px;min-height:144px;padding:22px 28px;border:1px solid #bca6d4;border-left:7px solid #007b8a;border-radius:15px;background:#fffffff2;color:#0c2159;box-shadow:0 7px 24px #4c16890d}
.compact-heading{min-width:0;flex:1}
.mast.compact-mast .eyebrow{margin:0 0 7px;color:#007b8a;font-size:11px;line-height:1.4;letter-spacing:1.7px;font-weight:800}
.mast.compact-mast h1,.mast.compact-mast h1 span{margin:0;color:#4c1689;font-size:clamp(27px,3.2vw,36px);line-height:1.15;letter-spacing:-.8px;font-weight:800}
.mast.compact-mast .compact-description{margin:10px 0 0;color:#596984;font-size:14px;line-height:1.55}
.compact-mark{display:flex;align-items:center;gap:14px;flex:none}
.level-badge{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:6px 15px;border:1px solid #bd91e4;border-radius:30px;background:#ead7fb;color:#4c1689;font-size:24px;font-weight:850;line-height:1.2;letter-spacing:.3px;white-space:nowrap}
.teacher-geometry{position:relative;width:60px;height:56px;border:1px solid #b9dadc;border-radius:13px;background:#effbfb;flex:none}
.teacher-geometry:before{content:'';position:absolute;left:10px;top:12px;width:25px;height:25px;border:3px solid #7927bd;border-radius:50%}
.teacher-geometry:after{content:'';position:absolute;right:8px;bottom:8px;width:23px;height:23px;border:3px solid #007b8a;transform:rotate(-13deg);background:#effbfb}
.admin-main .compact-mast{margin-bottom:0}
.code,.chapter-nav a{background:linear-gradient(135deg,#7927bd,#4c1689);color:#fff;border-color:#bd91e4}
.chapter-nav a:hover{background:#4c1689;color:#fff}
@media(max-width:720px){
 .teacher-topline{flex-wrap:wrap;align-items:flex-start;gap:9px;margin-bottom:12px}
 .teacher-topline .brand{font-size:17px}
 .teacher-author{font-size:12px}
 .teacher-topline .account{width:100%;max-width:100%;justify-content:space-between;gap:5px 10px;font-size:11px}
 .teacher-topline .account .logout{font-size:12px}
 .teacher-session{font-size:11px}
 .mast.compact-mast{display:flex;flex-direction:column;align-items:flex-start;gap:12px;padding:19px 17px;min-height:0;border-left-width:5px}
 .compact-mark{order:-1;gap:0}
 .level-badge{min-height:35px;font-size:21px;padding:4px 12px}
 .teacher-geometry{display:none}
 .mast.compact-mast .eyebrow{font-size:9px;letter-spacing:1.3px}
 .mast.compact-mast h1{font-size:28px;letter-spacing:-.6px}
 .mast.compact-mast .compact-description{font-size:13px;line-height:1.5;margin-top:8px}
}
@media(max-width:720px){.tracking-select .tracking-filters{width:100%;min-width:0;grid-template-columns:minmax(0,1fr)}.tracking-select .tracking-filters>label{min-width:0;max-width:100%}.tracking-select .tracking-filters select{width:100%;min-width:0;max-width:100%}}

/* Compact account rows; actions stay available in a native disclosure. */
:is(.teacher-access,.admin-main) .member{position:relative;display:grid;grid-template-columns:minmax(0,1fr) max-content max-content max-content;align-items:center;gap:12px;margin:0;padding:12px 0;min-height:60px;overflow:visible}
:is(.teacher-access,.admin-main) .member>h3{min-width:0;margin:0;font-size:15px;line-height:1.4;overflow-wrap:anywhere}
:is(.teacher-access,.admin-main) .member>.member-profile{max-width:22ch;margin:0;font-size:13px;line-height:1.4;overflow-wrap:anywhere}
:is(.teacher-access,.admin-main) .member>.badge{justify-self:start;white-space:nowrap;font-size:12px;line-height:1.5;padding:3px 9px}
:is(.teacher-access,.admin-main) .member-menu{position:relative;justify-self:end;min-width:0;margin:0}
:is(.teacher-access,.admin-main) .member-menu[open]{z-index:5}
:is(.teacher-access,.admin-main) .member-menu:not([open])>.member-actions{display:none}
:is(.teacher-access,.admin-main) .member-menu>summary{display:flex;align-items:center;justify-content:center;gap:8px;min-height:36px;padding:6px 10px;border:1px solid var(--line);border-radius:8px;background:#fff;color:var(--teal);font-size:13px;font-weight:700;line-height:1.4;list-style:none;cursor:pointer;white-space:nowrap}
:is(.teacher-access,.admin-main) .member-menu>summary::-webkit-details-marker{display:none}
:is(.teacher-access,.admin-main) .member-menu>summary:after{content:'▾';font-size:12px}
:is(.teacher-access,.admin-main) .member-menu[open]>summary:after{content:'▴'}
:is(.teacher-access,.admin-main) .member-menu>summary:focus-visible{outline:3px solid var(--teal);outline-offset:3px}
:is(.teacher-access,.admin-main) .member-menu>.member-actions{position:absolute;top:calc(100% + 7px);right:0;display:flex;flex-direction:column;gap:6px;width:236px;max-width:calc(100vw - 52px);margin:0;padding:9px;border:1px solid var(--line);border-radius:10px;background:#fff;box-shadow:0 10px 28px #18334726}
:is(.teacher-access,.admin-main) .member-menu>.member-actions>button{flex:none;width:100%;min-height:36px;padding:8px 11px;font-size:13px;line-height:1.4;text-align:left;white-space:normal}
@media(max-width:600px){:is(.teacher-access,.admin-main) .member{grid-template-columns:minmax(0,1fr) max-content;gap:6px 10px;padding:10px 0}:is(.teacher-access,.admin-main) .member>h3{grid-column:1;grid-row:1;font-size:14px}:is(.teacher-access,.admin-main) .member>.member-profile{grid-column:1;grid-row:2;max-width:none}:is(.teacher-access,.admin-main) .member>.badge{grid-column:2;grid-row:1;justify-self:end}:is(.teacher-access,.admin-main) .member-menu{grid-column:2;grid-row:2}}

/* Accounts grouped by class, independently from each account Actions menu. */
:is(.teacher-access,.admin-main) .member-folder{min-width:0;margin-top:13px;border:1px solid var(--line);border-radius:12px;background:#fff}
:is(.teacher-access,.admin-main) .member-folder-summary{display:flex;align-items:center;gap:12px;min-height:64px;padding:14px 16px;list-style:none;cursor:pointer;color:var(--navy,var(--ink));background:linear-gradient(105deg,color-mix(in srgb,var(--blue,var(--teal)) 9%,white),#fff);border-radius:11px}
:is(.teacher-access,.admin-main) .member-folder-summary::-webkit-details-marker{display:none}
:is(.teacher-access,.admin-main) .member-folder-summary:after{content:'⌄';flex:none;font-size:21px;line-height:1;color:var(--blue,var(--teal))}
:is(.teacher-access,.admin-main) .member-folder[open]>.member-folder-summary:after{content:'⌃'}
:is(.teacher-access,.admin-main) .member-folder-summary:focus-visible{outline:3px solid var(--copper,var(--teal));outline-offset:3px}
:is(.teacher-access,.admin-main) .member-folder-icon{position:relative;flex:none;width:25px;height:18px;margin-top:4px;border:2px solid var(--blue,var(--teal));border-radius:3px;background:#fff}
:is(.teacher-access,.admin-main) .member-folder-icon:before{content:'';position:absolute;left:-2px;top:-7px;width:12px;height:7px;border:2px solid var(--blue,var(--teal));border-bottom:0;border-radius:3px 3px 0 0;background:#fff}
:is(.teacher-access,.admin-main) .member-folder-title{flex:1;min-width:0;font-size:17px;line-height:1.35;overflow-wrap:anywhere}
:is(.teacher-access,.admin-main) .member-folder-count{flex:none;color:var(--muted,#536d7e);font-size:12px;line-height:1.5;text-align:right}
:is(.teacher-access,.admin-main) .member-folder-body{padding:0 15px}
:is(.teacher-access,.admin-main) .member-folder-body>.member:first-child{margin-top:0}
:is(.teacher-access,.admin-main) .member-folder-empty,:is(.teacher-access,.admin-main) .member-list-note{font-size:13px;color:var(--muted,#536d7e);line-height:1.6}
:is(.teacher-access,.admin-main) .member-folder-empty{margin:0;padding:16px 0}
@media(max-width:600px){:is(.teacher-access,.admin-main) .member-folder-summary{gap:9px;padding:13px 12px;flex-wrap:wrap}:is(.teacher-access,.admin-main) .member-folder-title{font-size:15px}:is(.teacher-access,.admin-main) .member-folder-count{order:2;flex-basis:100%;padding-left:34px;text-align:left}:is(.teacher-access,.admin-main) .member-folder-body{padding:0 11px}}

/* Personal access codes need full width; chapter badges keep their own .code style. */
#admin-message .access-reset-code{display:block;box-sizing:border-box;width:100%;max-width:100%;min-width:0;height:auto;min-height:0;margin-top:10px;padding:12px 14px;border:1px dashed var(--blue,var(--teal));border-radius:9px;background:#fff;color:var(--ink);box-shadow:none;font:700 clamp(14px,1.5vw,19px)/1.6 ui-monospace,SFMono-Regular,Consolas,monospace;letter-spacing:.035em;text-align:left;white-space:normal;overflow-wrap:anywhere;word-break:normal;hyphens:none;user-select:all}

/* Approved teacher workspace 1, Seconde violet and turquoise, 2 November 2026. */
body.teacher-workspace-styled{--tw-ink:#291147;--tw-muted:#64647b;--tw-purple:#6526a4;--tw-deep:#421374;--tw-accent:#007b8a;--tw-line:#d9c9eb;background:radial-gradient(ellipse at 0 0,#d2f4ef,transparent 55%),radial-gradient(ellipse at 100% 8%,#e5d1f4,transparent 65%),#f5f5fb;background-attachment:fixed;color:var(--tw-ink)}
body.teacher-workspace-styled main,body.teacher-workspace-styled main.evaluation-main{width:auto;max-width:1180px;margin:0 auto;padding:24px 28px 55px}
body.teacher-workspace-styled .teacher-topline{min-height:58px;margin-bottom:18px;gap:20px}
body.teacher-workspace-styled .teacher-identity{min-width:0}
body.teacher-workspace-styled .teacher-brand-signature{display:flex;align-items:center;gap:12px;min-width:0;color:#32115a;font-size:19px;font-weight:850;line-height:1.2;letter-spacing:-.3px}
body.teacher-workspace-styled .teacher-brand-signature>img{width:52px;height:52px;object-fit:contain;border-radius:12px;flex:0 0 52px}
body.teacher-workspace-styled .teacher-brand-copy{display:block;color:#32115a}
body.teacher-workspace-styled .teacher-brand-copy>small{display:block;margin-top:5px;font-size:10px;font-weight:850;line-height:1.3;letter-spacing:.13em;color:#007b8a}
body.teacher-workspace-styled .teacher-brand-copy>.teacher-author{display:block;margin-top:4px;font-size:12px;font-weight:400;line-height:1.3;letter-spacing:normal;color:var(--tw-muted)}
body.teacher-workspace-styled .teacher-topline .account,body.teacher-workspace-styled .teacher-session{color:var(--tw-muted)}
body.teacher-workspace-styled .teacher-topline .account .logout{color:#4c1689;min-height:36px}
body.teacher-workspace-styled .mast.compact-mast{position:relative;min-height:150px;margin:0;padding:25px 30px;border:1px solid #8550b1;border-top:3px solid #5ec7c5;border-left-width:1px;border-radius:19px;background:linear-gradient(110deg,#3e126e,#7927bd);color:#fff;box-shadow:0 6px 0 #4c168926,0 15px 30px #42137416}
body.teacher-workspace-styled .mast.compact-mast .eyebrow{color:#bff2e8;margin:0 0 9px;font-size:11px;font-weight:850;letter-spacing:.16em}
body.teacher-workspace-styled .mast.compact-mast h1,body.teacher-workspace-styled .mast.compact-mast h1 span{color:#fff;font-size:clamp(28px,3vw,36px);line-height:1.16;margin:0;letter-spacing:-.7px}
body.teacher-workspace-styled .mast.compact-mast .compact-description{max-width:740px;margin:10px 0 0;color:#e4daf3;font-size:14px;line-height:1.55}
body.teacher-workspace-styled .compact-mark{gap:14px}
body.teacher-workspace-styled .level-badge{background:#ffffff10;border-color:#ffffff38;color:#c9f7ed;font-size:23px;letter-spacing:.04em;min-height:43px;padding:9px 16px}
body.teacher-workspace-styled .teacher-geometry{background:#ffffff0b;border-color:#ffffff2e}
body.teacher-workspace-styled .teacher-geometry:before{border-color:#c9e5ff}
body.teacher-workspace-styled .teacher-geometry:after{border-color:#80d8ca;background:#562188}
body.teacher-workspace-styled .teacher-nav{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:10px;margin:19px 0 23px;padding:0}
body.teacher-workspace-styled .teacher-nav>a{display:flex;align-items:center;justify-content:flex-start;gap:10px;min-width:0;min-height:62px;padding:13px 14px;border:1px solid #d4c2e7;border-radius:11px;background:linear-gradient(135deg,#f8f4fd,#eee5f8);color:#451a70;font-size:14px;font-weight:750;line-height:1.35;box-shadow:0 3px 0 #68427d16;overflow-wrap:anywhere}
body.teacher-workspace-styled .teacher-nav>a:hover{background:#e6f5f2;border-color:#80bebb;color:#32115a}
body.teacher-workspace-styled .teacher-nav>a[aria-current=page]{padding:13px 14px;background:linear-gradient(135deg,#f0fcf8,#def4ed);border-color:#63aaa6;color:#075f66;box-shadow:0 3px 0 #007b8a5c}
body.teacher-workspace-styled .teacher-nav-icon{width:21px;height:21px;flex:0 0 21px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
body.teacher-workspace-styled .teacher-nav-label{flex:1;min-width:0}
body.teacher-workspace-styled .teacher-nav>a>span[aria-hidden=true]{font-size:19px;color:#007b8a}
body.teacher-workspace-styled .teacher-nav>a:focus-visible{outline:3px solid #007b8a;outline-offset:4px}
body.teacher-workspace-styled .teacher-overview{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin:20px 0}
body.teacher-workspace-styled .teacher-metric{display:flex;align-items:center;gap:13px;min-width:0;padding:17px 19px;border:1px solid var(--tw-line);border-radius:15px;background:#ffffffed;box-shadow:0 5px 20px #4c168908}
body.teacher-workspace-styled .teacher-metric-icon{display:grid;place-items:center;flex:0 0 40px;width:40px;height:40px;border-radius:12px;color:#6526a4;background:#eee5fa}
body.teacher-workspace-styled .teacher-metric:nth-child(2) .teacher-metric-icon{color:#007b8a;background:#dff5ed}
body.teacher-workspace-styled .teacher-metric-icon svg{width:23px;height:23px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
body.teacher-workspace-styled .teacher-metric b{display:block;color:#421374;font-size:28px;line-height:1.05;letter-spacing:-.03em;font-variant-numeric:tabular-nums}
body.teacher-workspace-styled .teacher-metric strong{display:block;margin-top:5px;color:#524568;font-size:12px;line-height:1.4}
body.teacher-workspace-styled .teacher-metric small{display:block;margin-top:3px;color:#747087;font-size:11px;line-height:1.45}
body.teacher-workspace-styled .admin-columns{gap:22px;margin-top:22px}
body.teacher-workspace-styled .admin-main .card,body.teacher-workspace-styled .tracking-create,body.teacher-workspace-styled .tracking-select,body.teacher-workspace-styled #student-detail,body.teacher-workspace-styled .tracking-import,body.teacher-workspace-styled .evaluation-panel{min-width:0;border:1px solid var(--tw-line);border-top:3px solid #8ac9c5;border-radius:18px;background:linear-gradient(135deg,#fff,#fcfaff);box-shadow:0 8px 25px #4c16890c;overflow:visible}
body.teacher-workspace-styled .admin-main .card{padding:23px}
body.teacher-workspace-styled .admin-main .toolbar{padding-bottom:17px;margin-bottom:0;border-bottom:1px solid #e7ddf1}
body.teacher-workspace-styled .admin-main .toolbar h2,body.teacher-workspace-styled .admin-main aside.card>h2,body.teacher-workspace-styled .evaluation-panel h2,body.teacher-workspace-styled .tracking-select h2,body.teacher-workspace-styled #student-detail h2{color:#421374;letter-spacing:-.025em}
body.teacher-workspace-styled .admin-main .toolbar h2,body.teacher-workspace-styled .admin-main aside.card>h2{font-size:24px}
body.teacher-workspace-styled .admin-main .toolbar label{font-size:12px;color:#574a6d}
body.teacher-workspace-styled .admin-main .toolbar select{min-height:42px;padding:9px 11px;background:#faf7fd;border-color:#cdb5e3}
body.teacher-workspace-styled .admin-main .toolbar button{min-height:42px;font-size:13px}
body.teacher-workspace-styled .member-folder{margin-top:15px;border:1px solid #d9c9eb;border-radius:12px;background:#fff;overflow:visible}
body.teacher-workspace-styled .member-folder-summary{background:linear-gradient(105deg,#eee3f9,#f8f4fd);color:#4c1689;border-radius:11px;min-height:65px;padding:15px 16px}
body.teacher-workspace-styled .member-folder[open]>.member-folder-summary{border-bottom:1px solid #ddd0ec;border-radius:11px 11px 0 0;background:linear-gradient(105deg,#e8d9f7,#f4ecfc)}
body.teacher-workspace-styled .member-folder-icon,body.teacher-workspace-styled .member-folder-icon:before{border-color:#007b8a;background:#f7fffd}
body.teacher-workspace-styled .member-folder-title{font-size:16px}
body.teacher-workspace-styled .member-folder-count{font-size:12px;color:#6c5b7f}
body.teacher-workspace-styled .member-folder-body{padding:0 15px;overflow:visible}
body.teacher-workspace-styled .member{min-height:60px;padding:12px 0;border-color:#ede6f4}
body.teacher-workspace-styled .member>h3{font-size:14px;color:#3c235a}
body.teacher-workspace-styled .member>.member-profile{font-size:12px;color:#746581}
body.teacher-workspace-styled .member-menu>summary{color:#4c1689;background:#fbf8ff;border-color:#d6bfe7}
body.teacher-workspace-styled .member-menu>.member-actions{background:#fff;border-color:#c5a5df;box-shadow:0 12px 30px #42137426}
body.teacher-workspace-styled .badge.pending{color:#086a68;background:#dcf4ed}
body.teacher-workspace-styled .badge.approved{color:#266551;background:#e1f3e8}
body.teacher-workspace-styled .badge.refused,body.teacher-workspace-styled .badge.suspended{background:#fbe9e5;color:#873f32}
body.teacher-workspace-styled .managed-class{padding:17px 0;border-color:#e5daf0}
body.teacher-workspace-styled .managed-class>strong{color:#421374}
body.teacher-workspace-styled .class-actions button{font-size:12px;border-color:#cdb5e1}
body.teacher-workspace-styled .admin-main #class-form{margin-top:12px;padding-top:15px;border-top:1px solid #e4d9ef}
body.teacher-workspace-styled .admin-main #class-form>button{background:linear-gradient(130deg,#7927bd,#4c1689);border-color:#6526a4;min-height:46px}
body.teacher-workspace-styled .admin-main .help{padding:14px;border:1px solid #d4e9e4;border-radius:12px;background:#edf9f5}
body.teacher-workspace-styled .admin-main .help h3{margin:0 0 6px;color:#075f66;font-size:16px}
body.teacher-workspace-styled .admin-main .help p{margin:0;font-size:12px;line-height:1.6}
body.teacher-workspace-styled .chapter{box-shadow:0 5px 0 #4c168912,0 10px 26px #4c168908}
body.teacher-workspace-styled .chapter summary{background:linear-gradient(110deg,#ede1f9,#fcfaff 75%,#dff5ef)}
body.teacher-workspace-styled .intro{margin-top:28px}
body.teacher-workspace-styled .notice{border-left-color:#007b8a;border-radius:10px;background:#edf9f5;color:#205f60}
body.teacher-workspace-styled .status[data-state=error]{background:#fff0ea;border-color:#cf9b85;color:#81351d}
body.teacher-workspace-styled .evaluation-panel{padding:26px}
body.teacher-workspace-styled .evaluation-panel h2{font-size:26px}
body.teacher-workspace-styled .evaluation-panel .evaluation-small{color:#6a5e7b}
@media(max-width:900px){body.teacher-workspace-styled .teacher-nav{grid-template-columns:repeat(2,minmax(0,1fr))}body.teacher-workspace-styled .teacher-metric{padding:15px;gap:10px}body.teacher-workspace-styled .teacher-metric strong{font-size:11px}}
@media(max-width:720px){body.teacher-workspace-styled main,body.teacher-workspace-styled main.evaluation-main{padding:17px 14px 38px}body.teacher-workspace-styled .teacher-topline{gap:12px}body.teacher-workspace-styled .teacher-brand-signature{font-size:17px;gap:10px}body.teacher-workspace-styled .teacher-brand-signature>img{width:47px;height:47px;flex-basis:47px}body.teacher-workspace-styled .teacher-brand-copy>small{font-size:9px}body.teacher-workspace-styled .teacher-brand-copy>.teacher-author{font-size:11px}body.teacher-workspace-styled .mast.compact-mast{padding:22px 20px;gap:16px;min-height:0;flex-direction:row;flex-wrap:wrap}body.teacher-workspace-styled .mast.compact-mast h1{font-size:28px}body.teacher-workspace-styled .compact-mark{order:0}body.teacher-workspace-styled .level-badge{font-size:20px;min-height:36px;padding:7px 13px}body.teacher-workspace-styled .teacher-nav{gap:9px;margin:16px 0 20px}body.teacher-workspace-styled .teacher-nav>a,body.teacher-workspace-styled .teacher-nav>a[aria-current=page]{min-height:62px;padding:12px 11px;font-size:13px;gap:8px}body.teacher-workspace-styled .teacher-nav-icon{width:19px;height:19px;flex-basis:19px}body.teacher-workspace-styled .teacher-nav>a>span[aria-hidden=true]{display:none}body.teacher-workspace-styled .teacher-overview{gap:9px;margin:17px 0}body.teacher-workspace-styled .teacher-metric{padding:13px 11px;gap:8px;align-items:flex-start}body.teacher-workspace-styled .teacher-metric-icon{display:none}body.teacher-workspace-styled .teacher-metric b{font-size:25px}body.teacher-workspace-styled .teacher-metric small{font-size:10px}body.teacher-workspace-styled .admin-columns{grid-template-columns:minmax(0,1fr);gap:19px}body.teacher-workspace-styled .admin-main .card,body.teacher-workspace-styled .evaluation-panel{padding:20px}body.teacher-workspace-styled .admin-main .toolbar h2,body.teacher-workspace-styled .admin-main aside.card>h2{font-size:22px}body.teacher-workspace-styled .member-folder-summary{padding:14px 12px}body.teacher-workspace-styled .member-folder-title{font-size:15px}}
@media(max-width:430px){body.teacher-workspace-styled .teacher-overview{grid-template-columns:minmax(0,1fr)}body.teacher-workspace-styled .teacher-metric{align-items:center;padding:12px 15px}body.teacher-workspace-styled .teacher-metric-icon{display:grid;width:34px;height:34px;flex-basis:34px}body.teacher-workspace-styled .teacher-metric small{font-size:11px}body.teacher-workspace-styled .teacher-metric strong{font-size:12px}body.teacher-workspace-styled .teacher-nav{grid-template-columns:minmax(0,1fr)}}
@media print{body.teacher-workspace-styled{background:#fff!important;color:#183347}body.teacher-workspace-styled .teacher-topline,body.teacher-workspace-styled .teacher-nav,body.teacher-workspace-styled .teacher-overview{display:none!important}body.teacher-workspace-styled .mast.compact-mast{background:#fff;color:#183347;border-color:#999;box-shadow:none}body.teacher-workspace-styled .mast.compact-mast h1,body.teacher-workspace-styled .mast.compact-mast h1 span,body.teacher-workspace-styled .mast.compact-mast .eyebrow,body.teacher-workspace-styled .mast.compact-mast .compact-description{color:#183347}body.teacher-workspace-styled .admin-main .card,body.teacher-workspace-styled .evaluation-panel,body.teacher-workspace-styled .tracking-select,body.teacher-workspace-styled #student-detail{background:#fff;box-shadow:none}}

/* Gestion Seconde: no empty message strip, and class labels displayed as tidy rows. */
body.teacher-workspace-styled #admin-message:empty{display:none}
body.teacher-workspace-styled #classes.class-list{list-style:none;padding:0;margin:16px 0 0}
body.teacher-workspace-styled #classes.class-list>li{display:block;list-style:none;margin:10px 0;padding:13px 15px;border:1px solid #e1d4ee;border-left:3px solid #79beb8;border-radius:10px;background:linear-gradient(110deg,#f0e8fa,#fcfaff);color:#4c1689;font-size:14px;font-weight:750;line-height:1.5;overflow-wrap:anywhere}

/* Combined correction and workshop controls, grouped by chapter. */
.publication-row[data-kind="workshop"]{background:linear-gradient(100deg,#effaf9,#f8f4fd);border-left:3px solid #43a99f;border-radius:10px;padding-left:12px}.publication-row[data-kind="workshop"] .row-meta{color:#276d68}


/* Rubans compacts - 20261109 */
body.rubans-enseignant{--rub-blue:#176787;--rub-ink:#103b56;--rub-warm:#b85c29;--rub-soft:#fff2e5;--rub-cool:#eef8fd;--rub-third:#137e8b;--rub-third-soft:#e9f7f6}
body.rubans-seconde{--rub-blue:#69309c;--rub-ink:#351754;--rub-warm:#16888b;--rub-soft:#e6f8f5;--rub-cool:#f4edfc;--rub-third:#427898;--rub-third-soft:#ebf5fc}
body.rubans-enseignant .teacher-topline{align-items:center;gap:24px;margin-bottom:26px}
body.rubans-enseignant .teacher-topline img{width:112px!important;height:112px!important;max-width:none;object-fit:contain;flex-shrink:0;filter:drop-shadow(0 4px 4px #143c5226)}
body.rubans-enseignant .teacher-identity,body.rubans-enseignant .teacher-brand-signature{align-items:center;gap:22px}
body.rubans-enseignant .teacher-owner{margin-left:134px}
body.rubans-enseignant .mast{padding:24px 30px!important;min-height:0;margin-bottom:24px}
body.rubans-enseignant .mast h1{font-size:clamp(27px,3vw,40px);margin:8px 0 12px}
body.rubans-enseignant .mast .teacher-geometry{display:none}
body.rubans-enseignant .teacher-ribbons{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:16px!important;margin:0 0 30px!important;padding:0!important}
body.rubans-enseignant .teacher-ribbons>a{display:flex!important;align-items:center;gap:16px;min-width:0;min-height:94px;margin:0!important;padding:18px 22px!important;border:1px solid color-mix(in srgb,var(--rub-blue),white 68%)!important;border-left:5px solid var(--rub-blue)!important;border-radius:17px!important;background:linear-gradient(115deg,var(--rub-cool),#fff)!important;color:var(--rub-ink)!important;box-shadow:0 5px 0 #17394d18!important;text-decoration:none;font-size:17px;font-weight:750;transition:transform .15s,box-shadow .15s}
body.rubans-enseignant .teacher-ribbons>a:nth-child(3n){--rub-blue:var(--rub-warm);--rub-cool:var(--rub-soft)}
body.rubans-enseignant .teacher-ribbons>a:nth-child(5){--rub-blue:var(--rub-third);--rub-cool:var(--rub-third-soft)}
body.rubans-enseignant .teacher-ribbons>a:hover{transform:translateY(-2px);box-shadow:0 7px 14px #17394d25!important}
body.rubans-enseignant .teacher-ribbons>a>span:last-child{margin-left:auto;flex-shrink:0;color:var(--rub-blue);font-size:23px}
body.rubans-enseignant .teacher-ribbons .teacher-nav-label{flex:1;line-height:1.4}
body.rubans-enseignant .teacher-ribbons .teacher-nav-icon{display:flex;align-items:center;justify-content:center;width:44px!important;height:46px!important;flex:0 0 44px;border-radius:12px;padding:9px;background:linear-gradient(140deg,color-mix(in srgb,var(--rub-blue),white 20%),var(--rub-blue));color:#fff;box-shadow:inset 0 1px 2px #ffffffb0,0 3px 0 #17394d28}
body.rubans-enseignant .teacher-ribbons .teacher-nav-icon svg{width:26px;height:26px;stroke:currentColor;fill:none;stroke-width:1.8}
@media(max-width:650px){body.rubans-enseignant .teacher-ribbons{grid-template-columns:1fr!important}body.rubans-enseignant .teacher-topline{flex-wrap:wrap}body.rubans-enseignant .teacher-topline img{width:88px!important;height:88px!important}body.rubans-enseignant .teacher-owner{margin-left:110px}body.rubans-enseignant .teacher-ribbons>a{min-height:82px;padding:14px!important}body.rubans-enseignant .mast{padding:20px!important}}

body.rubans-enseignant.rubans-seconde .mast + .teacher-ribbons {
  gap: 12px !important;
  margin: clamp(20px,2vw,30px) 0 28px !important;
}
body.rubans-enseignant.rubans-seconde .teacher-ribbons > a {
  min-height: 76px;
  padding: 12px 16px !important;
  background: linear-gradient(114deg,var(--rub-cool),#fff 75%) !important;
}
body.rubans-enseignant.rubans-seconde .teacher-ribbons > a:focus-visible {
  outline: 2px solid var(--rub-blue);
  outline-offset: 3px;
}
body.rubans-enseignant.rubans-seconde .teacher-ribbons .teacher-nav-icon svg {
  width: 26px !important;
  height: 26px !important;
  flex: none;
  padding: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
}

/* Chapter and inquiry visibility within the publication form. */
.visibility-panel{min-inline-size:0;margin:0 0 1.25rem;padding:.85rem 1rem 1rem;border:1px solid #cdbbe7;border-radius:.85rem;background:#fbf8ff;color:#13254a}
.visibility-panel legend{padding:0 .45rem;color:#452371;font-weight:800;font-size:1.1rem}
.visibility-panel p{margin:0 0 .85rem;font-size:.94rem}
.visibility-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,24rem),1fr));gap:.55rem}
.visibility-row{display:flex;align-items:center;flex-wrap:wrap;gap:.5rem;padding:.45rem .65rem;border:1px solid #ded5eb;border-radius:.55rem;background:#fff}
.visibility-row .toggle-label{flex:1 1 12rem;min-width:0;font-weight:700}
.visibility-row .row-state{white-space:nowrap}
