:root{--navy:#062847;--blue:#08688c;--copper:#ad4a22;--ink:#18394e;--line:#c4d7e2}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:radial-gradient(ellipse at 0 0,#f7dcc8,transparent 50%),radial-gradient(ellipse at 100% 25%,#cdefff,transparent 55%),#f1f6f9;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 #2285a7;border-top:4px solid #de9b69;border-radius:24px;background:linear-gradient(120deg,#0c5577,#062847 75%);padding:32px 38px;color:#fff;box-shadow:0 7px 0 #06304726,0 17px 35px #18394e15}.brand{display:block;text-decoration:none;color:white;font-size:23px;font-weight:800}.brand span{color:#ffc99f}.eyebrow{font-size:12px;letter-spacing:2px;font-weight:750;color:var(--copper);margin:22px 0 8px}.mast .eyebrow{color:#ffd0ad}h1{font-size:clamp(32px,4.8vw,48px);line-height:1.1;letter-spacing:-1px;margin:12px 0 14px}h1 span{color:#ffbd8d}.mast>p:not(.eyebrow){color:#dfedf6;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:#e1edf4}.account a{margin-left:auto;color:#ffcfab}.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:#486476}.counter{background:#e1eff6;border:1px solid #96bacb;border-radius:20px;white-space:nowrap;padding:8px 16px;font-size:14px;font-weight:700}.notice{background:#fff5eb;border-left:4px solid #d88d58;padding:12px 16px;margin:20px 0;color:#5f3b29;font-size:14px}.status{border:1px solid #bfd4df;border-radius:10px;background:#eaf3f8;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:#fff;text-decoration:none;font-weight:800;border:1px solid #57c9e1;background:linear-gradient(135deg,#1184aa,#062847);box-shadow:0 3px 0 #082d4150;border-radius:8px;min-width:50px;text-align:center;padding:9px}.chapter{border:1px solid #adcad9;border-left:5px solid #075b82;border-radius:15px;background:#fff;margin:16px 0;box-shadow:0 4px 0 #153e5415;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,#e7f5fc,#f8fbfd 70%,#f9e6d7)}.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,#1184aa,#062847);color:#fff;border:1px solid #57c9e1;box-shadow:0 3px 0 #082d4150;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:#416273}.chapter-body{padding:6px 22px 15px}.chapter-actions{display:flex;justify-content:flex-end;padding:9px 0;border-bottom:1px solid #dbe5ec}.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 #e1eaf0}.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 #8eacbd;border-radius:6px;flex:none;background:#fff;cursor:pointer;position:relative;margin:0}.toggle-label input:checked{background:#07587c;border-color:#07587c}.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:#617b8a;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 #6d9cb5;border-top:3px solid #d98a53;border-radius:14px;background:#f6fbfef5;box-shadow:0 7px 25px #0e2b4030;margin:26px 0 16px;backdrop-filter:blur(8px)}.save-bar strong{font-size:15px}.save-bar p{font-size:12px;color:#536d7e;margin:3px 0 0}.save-actions,.analytics-actions{display:flex;gap:10px;flex-wrap:wrap}button{min-height:46px;border:1px solid #07557b;background:linear-gradient(130deg,#08749b,#062847);color:#fff;font:700 14px system-ui;padding:11px 17px;border-radius:9px;cursor:pointer}.secondary{color:#204961;background:#fff;border-color:#a2bccb}button:disabled{opacity:.48;cursor:default}a:focus-visible,button:focus-visible,input:focus-visible,summary:focus-visible{outline:3px solid #d68144;outline-offset:4px}.footnote{font-size:13px;color:#506c7f}.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 #9ebacb;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:#ffcfab;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}}

/* Approved compact split header, in Terminale blue and copper. */
body.teacher-workspace{font:16px/1.5 system-ui,-apple-system,"Segoe UI",sans-serif;color:#18394e}
.teacher-workspace main,.teacher-workspace main.shell,.teacher-workspace main.evaluation-main{max-width:1160px;width:auto;margin:0 auto;padding:24px 28px 55px}.teacher-workspace main.login-main{max-width:780px}
.teacher-topline{display:flex;align-items:center;justify-content:space-between;gap:22px;min-height:52px;margin-bottom:14px}.teacher-brand-group{min-width:0}.teacher-identity{display:block;color:#062847;text-decoration:none;font-size:19px;font-weight:800;line-height:1.35}.teacher-identity span{color:#08688c}.teacher-owner{font-size:13px;line-height:1.4;color:#536d7e;margin:3px 0 0}
.teacher-topline .account,.teacher-account{display:flex;align-items:center;justify-content:flex-end;gap:16px;flex-wrap:wrap;margin:0;padding:0;border:0;color:#536d7e;font-size:13px;line-height:1.4}.teacher-topline .account .lock{color:#087f83}.teacher-topline .account .logout,.teacher-topline .teacher-account button,.teacher-account-link{margin:0;padding:3px 0;min-height:32px;border:0;background:transparent;color:#063b58;font-size:13px;font-weight:650;text-decoration:underline;border-radius:0}.teacher-connected:before{content:"";display:inline-block;width:7px;height:7px;margin-right:7px;border-radius:50%;background:#087f83}
.mast.teacher-hero{display:flex;align-items:center;justify-content:space-between;gap:22px;min-height:144px;padding:23px 29px;border:1px solid #abc8d8;border-left:7px solid #b87942;border-top-width:1px;border-radius:15px;background:#fffffff2;color:#18394e;box-shadow:0 7px 24px #0628470d}.mast.teacher-hero .eyebrow{margin:0 0 8px;color:#a35028;font-size:11px;line-height:1.4;letter-spacing:1.7px;font-weight:800}.mast.teacher-hero h1,.mast.teacher-hero.evaluation-mast h1{font-size:clamp(28px,3.2vw,36px);line-height:1.15;letter-spacing:-.8px;margin:0;color:#062847}.mast.teacher-hero h1 span,.mast.teacher-hero.evaluation-mast h1 span{color:#062847}.mast.teacher-hero .hero-description{margin:10px 0 0;color:#536d7e;font-size:15px;line-height:1.5;max-width:730px}.teacher-heading{min-width:0}
.teacher-level-mark{display:flex;align-items:center;gap:15px;flex-shrink:0}.teacher-level{display:inline-block;font-size:24px;font-weight:850;letter-spacing:1px;line-height:1.15;border:1px solid #c49a76;border-radius:30px;padding:11px 17px;background:#fff0e1;color:#062847;white-space:nowrap}.teacher-geometry{position:relative;display:block;width:58px;height:58px;border:1px solid #b8d3de;border-radius:13px;background:#eff8fc}.teacher-geometry:before{content:"";position:absolute;left:10px;top:12px;width:24px;height:24px;border:3px solid #08688c;border-radius:50%}.teacher-geometry:after{content:"";position:absolute;right:8px;bottom:9px;width:22px;height:22px;border:3px solid #b87942;transform:rotate(-13deg);background:#eff8fc}
.teacher-navigation{display:flex;align-items:stretch;flex-wrap:wrap;gap:12px;margin:20px 0 28px;padding:0;border:0}.teacher-navigation a{display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:58px;padding:13px 15px;border:1px solid #a9c8d8;border-radius:9px;background:#fff;color:#062847;font-size:clamp(14px,1.25vw,17px);font-weight:800;line-height:1.35;text-decoration:none;box-shadow:0 3px 0 #06284707}.teacher-navigation a:hover{background:#edf6fc}.teacher-navigation a[aria-current=page]{background:#e3f1f7;border-color:#08688c}.teacher-navigation a>span{color:#a35028;font-size:21px}.teacher-extra-links{font-size:13px;margin:-14px 0 22px}.teacher-extra-links a{color:#08688c}.teacher-workspace .intro{margin-top:28px}
.teacher-access .card{background:#fff;border:1px solid #c4d7e2;border-radius:16px;padding:24px}.teacher-access input,.teacher-access select{font:inherit;color:#18394e;border-color:#a5c4d4}.teacher-access button:not(.danger){background:linear-gradient(130deg,#08749b,#062847);border-color:#07557b}.teacher-access button.secondary{background:#fff;color:#204961;border-color:#a2bccb}.teacher-access .teacher-topline button{background:transparent;border:0;color:#063b58}.teacher-access .badge{background:#e4f3f7;color:#075477}.teacher-access .class-actions button{font-size:13px}
@media(max-width:720px){.teacher-workspace main,.teacher-workspace main.shell,.teacher-workspace main.evaluation-main{padding:14px 13px 35px}.teacher-topline{align-items:flex-start;gap:10px;min-height:57px}.teacher-identity{font-size:17px}.teacher-owner{font-size:12px}.teacher-topline .account,.teacher-account{font-size:11px;gap:5px;align-items:flex-end;flex-direction:column;max-width:49%;overflow-wrap:anywhere}.teacher-topline .account .logout,.teacher-topline .teacher-account button,.teacher-account-link{font-size:11px}.mast.teacher-hero{flex-wrap:wrap;align-items:flex-start;gap:16px;padding:20px 17px;border-left-width:5px;min-height:0}.mast.teacher-hero h1,.mast.teacher-hero.evaluation-mast h1{font-size:28px}.mast.teacher-hero .hero-description{font-size:13px;max-width:none}.teacher-level-mark{gap:10px;width:100%;justify-content:flex-start}.teacher-level{font-size:21px;padding:8px 14px}.teacher-geometry{display:none}.teacher-navigation{display:grid;gap:9px;margin:15px 0 24px}.teacher-navigation a{width:100%;min-height:52px;padding:12px 14px;font-size:15px}.teacher-extra-links{margin-top:-10px}}

/* Access form headers must match the shared teacher workspace width. */
.teacher-access .mast.teacher-hero{max-width:none;width:100%;margin:0}

/* 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}

/* Teacher workspace, approved presentation 1. Only the five teacher pages opt in. */
body.teacher-workspace-styled{--teacher-dark:#07243e;--teacher-blue:#135777;--teacher-accent:#b96535;--teacher-peach:#ffd0a7;background:radial-gradient(ellipse at 0 0,#ffe5cf,transparent 52%),radial-gradient(ellipse at 100% 18%,#cbecfa,transparent 64%),#f1f6f8;color:#173b51}
body.teacher-workspace-styled main,body.teacher-workspace-styled main.shell,body.teacher-workspace-styled main.evaluation-main{max-width:1220px;padding-top:18px}
body.teacher-workspace-styled .teacher-topline{margin-bottom:17px;min-height:60px}
body.teacher-workspace-styled .teacher-identity{display:flex;align-items:center;gap:12px;color:#0b3a57;line-height:1.2;text-decoration:none}
body.teacher-workspace-styled .teacher-signature-logo{display:block;width:52px;height:52px;flex:0 0 52px;object-fit:contain;border-radius:13px}
body.teacher-workspace-styled .teacher-brand-copy{display:block;color:#0b3a57}
body.teacher-workspace-styled .teacher-signature-subject{display:block;color:#0b3a57;font-size:19px;font-weight:850}
body.teacher-workspace-styled .teacher-signature-level{display:block;margin-top:5px;color:#38617a;font-size:10px;font-weight:800;letter-spacing:.13em}
body.teacher-workspace-styled .teacher-owner{margin:3px 0 0 64px;color:#698192;font-size:11px;line-height:1.25}
body.teacher-workspace-styled .mast.teacher-hero{padding:25px 29px;min-height:150px;border:1px solid #276a88;border-left-width:1px;border-top:3px solid #d18a54;border-radius:18px;color:#fff;background:linear-gradient(110deg,#07243e,#135777);box-shadow:0 6px 0 #0a425d33,0 14px 28px #163f5014}
body.teacher-workspace-styled .mast.teacher-hero .eyebrow{color:#ffd0a7;font-size:10px;letter-spacing:.17em;margin:0 0 10px}
body.teacher-workspace-styled .mast.teacher-hero h1,body.teacher-workspace-styled .mast.teacher-hero h1 span{color:#fff;font-size:clamp(28px,3vw,35px);line-height:1.15;font-weight:800;letter-spacing:-.035em}
body.teacher-workspace-styled .mast.teacher-hero .hero-description{margin-top:11px;color:#d0e6f0;font-size:14px;line-height:1.6}
body.teacher-workspace-styled .teacher-level{background:#ffffff0d;border-color:#ffffff30;color:#ffcca3;font-size:21px;letter-spacing:.07em;padding:10px 16px}
body.teacher-workspace-styled .teacher-geometry{background:#ffffff09;border-color:#ffffff24}
body.teacher-workspace-styled .teacher-geometry:before{border-color:#9fd1e5}
body.teacher-workspace-styled .teacher-geometry:after{border-color:#edb17e;background:#164761}
body.teacher-workspace-styled .teacher-navigation{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,180px),1fr));gap:10px;margin:19px 0 22px}
body.teacher-workspace-styled .teacher-navigation a{display:flex;align-items:center;justify-content:flex-start;gap:9px;min-height:58px;padding:12px;border:1px solid #bdd6e5;border-radius:11px;background:linear-gradient(110deg,#e7f4fa,#f0f8fc);color:#164865;font-size:13px;font-weight:750;line-height:1.35;box-shadow:0 3px 0 #bacdd644}
body.teacher-workspace-styled .teacher-navigation a:hover{background:#dceff8;border-color:#71a9c5}
body.teacher-workspace-styled .teacher-navigation a[aria-current=page]{background:linear-gradient(110deg,#fff6eb,#fffaf5);border-color:#ce9b72;color:#88502b;box-shadow:inset 0 -3px 0 #b87942,0 3px 0 #c6ae9b33}
body.teacher-workspace-styled .teacher-nav-icon{display:flex;align-items:center;justify-content:center;flex:0 0 21px;color:inherit}
body.teacher-workspace-styled .teacher-nav-icon svg,body.teacher-workspace-styled .teacher-metric-icon svg{display:block;width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
body.teacher-workspace-styled .teacher-nav-label{min-width:0;color:inherit;font-size:inherit}
body.teacher-workspace-styled .teacher-navigation a>span[aria-hidden=true]:last-child{display:none}
body.teacher-workspace-styled .teacher-overview{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin:18px 0}
body.teacher-workspace-styled .teacher-metric{display:flex;align-items:center;gap:13px;padding:16px 18px;border:1px solid #c4dae6;border-radius:14px;background:#ffffffed;box-shadow:0 6px 18px #153e5008;min-width:0}
body.teacher-workspace-styled .teacher-metric-icon{display:grid;place-items:center;width:39px;height:39px;flex:0 0 39px;background:#e3f2f9;color:#176987;border-radius:12px}
body.teacher-workspace-styled .teacher-metric:nth-child(2) .teacher-metric-icon{background:#fff0e0;color:#af5d2e}
body.teacher-workspace-styled .teacher-metric>div{min-width:0}
body.teacher-workspace-styled .teacher-metric strong{display:block;color:#0d3c57;font-size:26px;line-height:1.1;letter-spacing:-.025em}
body.teacher-workspace-styled .teacher-metric span:not(.teacher-metric-icon){display:block;margin-top:4px;font-size:12px;font-weight:700;color:#3e6076}
body.teacher-workspace-styled .teacher-metric small{display:block;margin-top:4px;font-size:11px;line-height:1.45;color:#6b8190}
body.teacher-workspace-styled .card,body.teacher-workspace-styled .tracking-create,body.teacher-workspace-styled .tracking-class,body.teacher-workspace-styled .tracking-results,body.teacher-workspace-styled .parcours-panel,body.teacher-workspace-styled .evaluation-panel{border:1px solid #bfd7e4;border-radius:17px;background:linear-gradient(120deg,#fff,#fbfdff);box-shadow:0 8px 23px #153e500b}
body.teacher-workspace-styled .admin-columns{gap:20px;align-items:start}
body.teacher-workspace-styled .admin-columns>.card{padding:21px}
body.teacher-workspace-styled .toolbar{gap:12px;padding-bottom:16px;margin-bottom:9px;border-bottom:1px solid #d8e7ee}
body.teacher-workspace-styled .toolbar h2{font-size:23px;letter-spacing:-.025em;color:#103b56}
body.teacher-workspace-styled .toolbar label{margin-top:0;font-size:12px}
body.teacher-workspace-styled .toolbar select{font-size:13px;min-height:41px;padding:9px 10px}
body.teacher-workspace-styled .toolbar button{min-height:41px;font-size:13px;padding:9px 12px}
body.teacher-workspace-styled .admin-head{justify-content:flex-end;font-size:12px;margin-top:-10px;margin-bottom:10px}
body.teacher-workspace-styled .admin-head a:not(:last-child){display:none}
body.teacher-workspace-styled .activation-card{display:flex;align-items:center;flex-wrap:wrap;gap:10px 18px;padding:13px 18px;margin:15px 0 20px;border-left:4px solid #b87942;background:#fffaf4}
body.teacher-workspace-styled .activation-card h2{font-size:17px;margin:0;color:#81502f}
body.teacher-workspace-styled #activation-state:not(:empty){padding:0;margin:0;border:0;background:transparent;border-radius:0;font-size:13px;color:#3f6074}
body.teacher-workspace-styled .teacher-access-rules{margin-left:auto;color:#80512f;font-size:12px;line-height:1.6}
body.teacher-workspace-styled .teacher-access-rules summary{cursor:pointer;font-weight:700}
body.teacher-workspace-styled .teacher-access-rules[open]{flex-basis:100%;margin-left:0}
body.teacher-workspace-styled .teacher-access-rules p{margin:9px 0 0;color:#5e7584;font-size:13px}
body.teacher-workspace-styled .activation-card form{flex-basis:100%;max-width:700px}
body.teacher-workspace-styled .member-folder{border-color:#bed8e7;border-radius:12px;background:#fff;box-shadow:0 3px 0 #c7d9e322;overflow:visible}
body.teacher-workspace-styled .member-folder-summary{min-height:61px;border-radius:11px;background:linear-gradient(110deg,#dfF0f9,#f0f8fc);color:#174c68}
body.teacher-workspace-styled .member-folder[open]>.member-folder-summary{border-radius:11px 11px 0 0;border-bottom:1px solid #c9e0ec}
body.teacher-workspace-styled .member-folder-title{font-size:16px;font-weight:800}
body.teacher-workspace-styled .member-folder-count{font-size:11px;color:#52758a}
body.teacher-workspace-styled .member-folder-icon{border-color:#367e9f;background:#fff}
body.teacher-workspace-styled .member-folder-icon:before{border-color:#367e9f;background:#fff}
body.teacher-workspace-styled .member-folder-body{padding:0 13px}
body.teacher-workspace-styled .member{padding-top:11px;padding-bottom:11px;border-color:#e0ebf1}
body.teacher-workspace-styled .member>h3{font-size:14px;color:#214f68}
body.teacher-workspace-styled .member-profile{font-size:12px;color:#617f90}
body.teacher-workspace-styled .badge.approved{background:#e3f4f1;color:#236d68}
body.teacher-workspace-styled .badge.pending{background:#fff0dc;color:#9d602d}
body.teacher-workspace-styled .badge.refused,body.teacher-workspace-styled .badge.suspended{background:#f8e9ed;color:#8a3f53}
body.teacher-workspace-styled .member-menu>summary{background:#f7fbfe;border-color:#c5dce8;color:#205b79}
body.teacher-workspace-styled .member-menu[open]>.member-actions{background:#fff;border-color:#a7cadc;box-shadow:0 12px 28px #123b5524}
body.teacher-workspace-styled .managed-class{border-color:#d7e7ef;padding:15px 0}
body.teacher-workspace-styled .managed-class strong{color:#204e68;font-size:15px}
body.teacher-workspace-styled .managed-class small{color:#6a8392;line-height:1.5}
body.teacher-workspace-styled .help{border-top-color:#d4e5ee}
body.teacher-workspace-styled .help h3{color:#235874}
body.teacher-workspace-styled .help p{font-size:13px;line-height:1.65}
body.teacher-workspace-styled .chapter{border-color:#b8d5e4;box-shadow:0 4px 0 #7e9ba820,0 8px 20px #153e500b}
body.teacher-workspace-styled .chapter>summary{background:linear-gradient(110deg,#dfedf7,#f6fbfe 75%);color:#143f5d}
body.teacher-workspace-styled .chapter-nav a{background:linear-gradient(135deg,#1184aa,#062847);border-color:#57c9e1;color:#fff;box-shadow:0 3px 0 #082d4150}
body.teacher-workspace-styled .save-bar{border-color:#9fbfd0;background:#f8fcff}
body.teacher-workspace-styled .save-bar[data-dirty=true]{border-color:#c48655;background:#fff5e9}
body.teacher-workspace-styled :is(input,select,textarea):focus-visible{outline:3px solid #e5b28788;outline-offset:2px}
body.teacher-workspace-styled :is(a,button,summary):focus-visible{outline:3px solid #b96535;outline-offset:4px}
@media(max-width:950px){body.teacher-workspace-styled .teacher-navigation{grid-template-columns:repeat(auto-fit,minmax(min(100%,160px),1fr))}body.teacher-workspace-styled .teacher-metric{padding:13px;gap:10px}body.teacher-workspace-styled .teacher-metric-icon{width:33px;height:33px;flex-basis:33px}}
@media(max-width:720px){body.teacher-workspace-styled main{padding-top:14px}body.teacher-workspace-styled .teacher-topline{gap:10px;min-height:62px}body.teacher-workspace-styled .teacher-signature-logo{width:44px;height:44px;flex-basis:44px}body.teacher-workspace-styled .teacher-signature-subject{font-size:16px}body.teacher-workspace-styled .teacher-signature-level{font-size:8px;letter-spacing:.1em}body.teacher-workspace-styled .teacher-owner{margin-left:56px;font-size:10px}body.teacher-workspace-styled .mast.teacher-hero{padding:22px 20px;min-height:0}body.teacher-workspace-styled .mast.teacher-hero h1{font-size:28px}body.teacher-workspace-styled .teacher-level{font-size:18px}body.teacher-workspace-styled .teacher-level-mark{width:auto}body.teacher-workspace-styled .teacher-navigation{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:17px}body.teacher-workspace-styled .teacher-navigation a{font-size:12px;min-height:58px;padding:10px;gap:7px}body.teacher-workspace-styled .teacher-overview{grid-template-columns:1fr;gap:9px}body.teacher-workspace-styled .teacher-metric{padding:12px 14px}body.teacher-workspace-styled .teacher-metric strong{font-size:24px}body.teacher-workspace-styled .teacher-metric span:not(.teacher-metric-icon){display:inline-block;margin-top:0;margin-left:7px}body.teacher-workspace-styled .teacher-metric small{margin-top:3px}body.teacher-workspace-styled .admin-columns>.card{padding:18px}body.teacher-workspace-styled .activation-card{gap:8px;padding:12px 14px}body.teacher-workspace-styled .teacher-access-rules{margin-left:0}body.teacher-workspace-styled .toolbar h2{font-size:22px}body.teacher-workspace-styled .member-folder-title{font-size:15px}}
@media print{body.teacher-workspace-styled{background:#fff;color:#173b51}body.teacher-workspace-styled .teacher-topline,body.teacher-workspace-styled .teacher-navigation,body.teacher-workspace-styled .teacher-overview,body.teacher-workspace-styled .admin-head{display:none!important}body.teacher-workspace-styled .mast.teacher-hero{background:#fff;color:#173b51;border:1px solid #aaa;box-shadow:none}body.teacher-workspace-styled .mast.teacher-hero h1,body.teacher-workspace-styled .mast.teacher-hero h1 span,body.teacher-workspace-styled .mast.teacher-hero .eyebrow,body.teacher-workspace-styled .mast.teacher-hero .hero-description{color:#173b51}body.teacher-workspace-styled .teacher-level{color:#173b51;background:#fff;border-color:#aaa}body.teacher-workspace-styled .teacher-geometry{display:none}body.teacher-workspace-styled .card,body.teacher-workspace-styled .evaluation-panel,body.teacher-workspace-styled .parcours-panel,body.teacher-workspace-styled .chapter{box-shadow:none;background:#fff}}

body.teacher-workspace-styled #admin-message:empty{display:none}

/* Distinguer les ateliers sans modifier les commandes de publication. */
body.teacher-workspace-styled .publication-row[data-kind="workshop"]{
  background:linear-gradient(110deg,#fff0e3 0%,#f7f5ef 42%,#e9f5fc 100%);
  border-left:3px solid #c18458;
  border-bottom-color:#cbdfe9;
  border-radius:12px;
  padding-left:14px;
  padding-right:14px;
}


/* 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}}

/* Accueil enseignant compact, sans toucher aux autres pages. */
body.rubans-enseignant .teacher-brand-copy .teacher-owner{display:block;margin:7px 0 0;font-size:12px;font-weight:400}
body.rubans-enseignant .teacher-topline{margin-bottom:18px}
body.rubans-enseignant .mast{padding:18px 30px!important;margin-bottom:16px}
body.rubans-enseignant .mast h1{margin:5px 0 8px}
body.rubans-enseignant .teacher-ribbons{gap:12px!important}
body.rubans-enseignant .teacher-ribbons>a{min-height:76px;padding:12px 20px!important}
@media(max-width:650px){body.rubans-enseignant .teacher-ribbons>a{min-height:76px;padding:12px!important}}

.publication-row[data-category="revision"]{background:linear-gradient(100deg,#e7f5fc,#f8fbfe);border-left:4px solid #2680a6;border-radius:12px;padding-left:18px}.publication-row[data-category="questions-bac"]{background:linear-gradient(100deg,#fff0df,#eef7fc);border-left:4px solid #ba602c;border-radius:12px;padding-left:18px}

/* Les réglages de visibilité des chapitres utilisent la palette des disponibilités. */
.chapter-visibility-settings{margin:1rem 0;padding:.85rem;border:1px solid #bad0dc;border-radius:12px;background:#f3faff;color:#12354d}
.chapter-visibility-settings legend{padding:0 .4rem;font-weight:750;color:#0c4564}
.chapter-visibility-settings p{margin:0 0 .7rem;font-size:.92rem}
.chapter-visibility-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.45rem}
.chapter-visibility-row{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:.55rem;min-height:44px;padding:.45rem .55rem;border:1px solid #c8dde7;border-radius:8px;background:#fff}
.chapter-visibility-row input{margin:0;accent-color:#0a6790}
.chapter-visibility-row:focus-within{outline:2px solid #0a6790;outline-offset:1px}
@media(max-width:720px){.chapter-visibility-grid{grid-template-columns:minmax(0,1fr)}}
