
/* Layout idea: a calm workbench. Slim top bar, tabs, then a three-panel editor that stacks on phones. */
:root{
  --bg:#f2f3ef; --surface:#ffffff; --surface2:#e8ebe4; --ink:#18202b; --muted:#5d6673; --line:#d3d8ce;
  --accent:#2446c8; --accent-ink:#ffffff; --accent-soft:#e3e8fb;
  --ok:#1e7a4c; --warn:#9a5a00; --crit:#b3261e;
  --display:"Trebuchet MS","Segoe UI",system-ui,sans-serif; --body:system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;
}
@media (prefers-color-scheme: dark){
  :root:not([data-theme="light"]){
    --bg:#12161c; --surface:#1b212a; --surface2:#252d39; --ink:#e8ebef; --muted:#9aa4b2; --line:#343e4c;
    --accent:#93a8ff; --accent-ink:#0d1330; --accent-soft:#232c4d;
    --ok:#5fce95; --warn:#f0b455; --crit:#ff8a80; color-scheme:dark;
  }
}
:root[data-theme="dark"]{
  --bg:#12161c; --surface:#1b212a; --surface2:#252d39; --ink:#e8ebef; --muted:#9aa4b2; --line:#343e4c;
  --accent:#93a8ff; --accent-ink:#0d1330; --accent-soft:#232c4d;
  --ok:#5fce95; --warn:#f0b455; --crit:#ff8a80; color-scheme:dark;
}
*{box-sizing:border-box}
html,body{margin:0;min-height:100%}
body{background:var(--bg);color:var(--ink);font-family:var(--body);font-size:15px;line-height:1.45}
h1,h2,h3{font-family:var(--display);margin:0;text-wrap:balance;line-height:1.15}
h1{font-size:26px} h2{font-size:20px} h3{font-size:16px}
p{margin:0}
button,input,select,textarea{font:inherit;color:inherit}
button{cursor:pointer}
:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.btn{border:1px solid var(--line);background:var(--surface);border-radius:8px;padding:7px 12px;font-weight:600}
.btn:hover{border-color:var(--accent)}
.btn.primary{background:var(--accent);color:var(--accent-ink);border-color:var(--accent)}
.btn.small{padding:4px 8px;font-size:13px}
.btn[disabled]{opacity:.45;cursor:not-allowed}
input[type=text],input[type=number],select,textarea{width:100%;border:1px solid var(--line);background:var(--surface);border-radius:8px;padding:7px 9px}
textarea{resize:vertical}
label.f{display:flex;flex-direction:column;gap:4px;font-size:13px;font-weight:600;color:var(--muted)}
.muted{color:var(--muted)} .sm{font-size:13px}
.row{display:flex;gap:10px;align-items:center;flex-wrap:wrap}
.spread{justify-content:space-between}
.card{background:var(--surface);border:1px solid var(--line);border-radius:12px;padding:16px}
.stack{display:flex;flex-direction:column;gap:12px}
.pill{display:inline-flex;align-items:center;gap:5px;border-radius:99px;padding:2px 9px;font-size:12px;font-weight:700;border:1px solid currentColor;white-space:nowrap}
.pill.ok{color:var(--ok)} .pill.warn{color:var(--warn)} .pill.crit{color:var(--crit)} .pill.neutral{color:var(--muted)}

/* top bar */
.top{display:flex;gap:12px;align-items:center;justify-content:space-between;flex-wrap:wrap;padding:10px 16px;background:var(--surface);border-bottom:1px solid var(--line)}
.brand{font-family:var(--display);font-weight:700;font-size:19px}
.brand span{color:var(--accent)}
.demo{font-size:12px;font-weight:700;color:var(--warn);border:1px dashed var(--warn);border-radius:6px;padding:2px 7px}
main{padding:16px;max-width:1400px;margin:0 auto}
.tabs{display:flex;gap:4px;border-bottom:1px solid var(--line);margin:14px 0;overflow-x:auto}
.tab{border:0;background:none;padding:9px 13px;font-weight:600;color:var(--muted);border-bottom:3px solid transparent;white-space:nowrap}
.tab.on{color:var(--ink);border-bottom-color:var(--accent)}

/* login */
.login{max-width:560px;margin:6vh auto;padding:0 16px}
.acct{display:flex;justify-content:space-between;align-items:center;gap:10px;width:100%;text-align:left;border:1px solid var(--line);background:var(--surface);border-radius:10px;padding:12px 14px}
.acct:hover{border-color:var(--accent)}
.acct b{display:block}

/* business plan */
.bp{display:grid;grid-template-columns:260px 1fr;gap:16px;align-items:start}
.seclist{display:flex;flex-direction:column;gap:4px}
.secbtn{display:flex;gap:8px;align-items:center;text-align:left;border:1px solid transparent;background:none;border-radius:8px;padding:7px 9px;width:100%}
.secbtn.on{background:var(--accent-soft);border-color:var(--accent)}
.dot{width:10px;height:10px;border-radius:50%;flex:none;border:2px solid var(--muted)}
.dot.s1{border-color:var(--warn);background:linear-gradient(90deg,var(--warn) 50%,transparent 50%)}
.dot.s2{border-color:var(--ok);background:var(--ok)}
.consigne{background:var(--surface2);border-radius:8px;padding:10px 12px;font-size:14px}
.comment{border-left:4px solid var(--warn);background:var(--surface2);border-radius:0 8px 8px 0;padding:8px 12px;font-size:14px}
.comment.ok{border-left-color:var(--ok)}
table{border-collapse:collapse;width:100%}
th,td{padding:7px 9px;border-bottom:1px solid var(--line);text-align:left;vertical-align:middle}
th{font-size:12px;text-transform:uppercase;letter-spacing:.04em;color:var(--muted)}
td.num,th.num{text-align:right;font-variant-numeric:tabular-nums}
.scroll-x{overflow-x:auto}
.fin input{min-width:90px;text-align:right}
.bars{display:flex;gap:18px;align-items:flex-end;height:120px;padding-top:8px}
.bars .grp{display:flex;gap:4px;align-items:flex-end;height:100%;flex:1;justify-content:center;position:relative}
.bars .b{width:22px;border-radius:4px 4px 0 0;background:var(--accent)}
.bars .b.r{background:var(--ok)} .bars .b.neg{background:var(--crit)}

/* editor */
.ed{display:grid;grid-template-columns:220px minmax(0,1fr) 270px;gap:12px;align-items:start}
.panel{background:var(--surface);border:1px solid var(--line);border-radius:12px;padding:12px}
.lib{display:grid;grid-template-columns:1fr 1fr;gap:6px}
.libitem{border:1px solid var(--line);background:var(--bg);border-radius:8px;padding:8px 6px;font-size:12px;font-weight:600;text-align:center;cursor:grab}
.libitem:hover{border-color:var(--accent)}
.pages{display:flex;gap:6px;flex-wrap:wrap}
.pg{border:1px solid var(--line);background:var(--surface);border-radius:8px;padding:5px 10px;font-weight:600;font-size:13px}
.pg.on{background:var(--accent);color:var(--accent-ink);border-color:var(--accent)}
.seg{display:inline-flex;border:1px solid var(--line);border-radius:8px;overflow:hidden}
.seg button{border:0;background:var(--surface);padding:6px 11px;font-weight:600;font-size:13px;color:var(--ink)}
.btn{color:var(--ink)}
.seg button.on{background:var(--ink);color:var(--bg)}
.stagewrap{overflow-x:auto;background:var(--surface2);border-radius:12px;padding:12px;border:1px solid var(--line)}
/* The mockup page itself: always a light sheet, styled by the students' own brand settings */
.sheet{background:#fff;color:#1c1c1c;margin:0 auto;min-height:300px;box-shadow:0 1px 6px rgba(0,0,0,.18);font-size:14px}
.sheet.tablet{width:768px} .sheet.mobile{width:390px} .sheet.desktop{min-width:0;width:100%}
.msec{position:relative;border:1px dashed transparent}
.editing .msec{border-color:#c5cad3;margin:4px}
.editing .msec.sel{border-color:#2446c8;border-style:solid}
.sectools{display:flex;gap:3px;justify-content:flex-end;padding:2px;background:#eef0f4}
.sectools button{border:0;background:#fff;border-radius:4px;font-size:11px;padding:2px 6px;color:#333;font-weight:700}
.mrow{display:flex;gap:0}
.sheet.mobile .mrow{flex-direction:column}
.mcol{min-width:0;min-height:20px}
.editing .mcol{min-height:54px;outline:1px dotted #c5cad3;outline-offset:-2px}
.editing .mcol.target{background:#eef2ff}
.empty{font-size:12px;color:#7a8190;text-align:center;padding:18px 6px}
.mod{position:relative}
.editing .mod{cursor:pointer}
.editing .mod:hover{outline:2px solid #9fb0f3;outline-offset:-2px}
.editing .mod.sel{outline:2px solid #2446c8;outline-offset:-2px}
.ph{background:repeating-linear-gradient(45deg,#e6e8ec,#e6e8ec 8px,#f1f2f5 8px,#f1f2f5 16px);border-radius:6px;display:flex;align-items:center;justify-content:center;color:#6b7280;font-size:12px;min-height:80px}
.m-btn{display:inline-block;border:0;border-radius:6px;padding:9px 16px;font-weight:700;color:#fff}
.m-nav{display:flex;gap:14px;flex-wrap:wrap;font-weight:600;font-size:13px}
.m-nav a{color:inherit;text-decoration:none;cursor:pointer}
.m-grid{display:grid;gap:10px}
.m-card{border:1px solid #dcdfe5;border-radius:8px;padding:8px;background:#fff;color:#1c1c1c;text-align:left}
.m-field{border:1px solid #c9cdd6;border-radius:6px;height:32px;background:#fff;margin:3px 0 9px}
.m-table td,.m-table th{border-bottom:1px solid #e1e4ea;font-size:12px;color:inherit}
.m-stat{border:1px solid #dcdfe5;border-radius:8px;padding:10px;background:#fff;color:#1c1c1c;flex:1;min-width:90px}
.m-stat b{font-size:20px;display:block}
.timeline{display:flex;flex-direction:column;gap:0}
.ev{display:grid;grid-template-columns:110px 1fr;gap:10px;padding:8px 0;border-bottom:1px solid var(--line);font-size:14px}
.ev.flag{color:var(--crit);font-weight:600}
.prog{height:8px;border-radius:99px;background:var(--surface2);overflow:hidden;min-width:90px}
.prog i{display:block;height:100%;background:var(--accent)}
.tiles{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:12px}
.tile b{font-family:var(--display);font-size:28px;display:block}
.toast{position:fixed;left:50%;bottom:18px;transform:translateX(-50%);background:var(--ink);color:var(--bg);padding:9px 14px;border-radius:8px;font-weight:600;font-size:14px;max-width:90vw;z-index:9}
.presentbar{display:flex;gap:8px;align-items:center;flex-wrap:wrap;padding:8px 12px;background:var(--ink);color:var(--bg)}
.presentbar .pg{background:transparent;color:inherit;border-color:currentColor}
.presentbar .pg.on{background:var(--bg);color:var(--ink)}
@media (max-width:900px){
  .bp{grid-template-columns:1fr}
  .seclist{flex-direction:row;overflow-x:auto;padding-bottom:4px}
  .secbtn{width:auto;white-space:nowrap;border-color:var(--line)}
  .ed{grid-template-columns:1fr}
  .lib{display:flex;overflow-x:auto;padding-bottom:4px}
  .libitem{white-space:nowrap;flex:none}
}
@media (prefers-reduced-motion:no-preference){.btn,.pg,.tab{transition:border-color .15s,background .15s}}

h4{margin:6px 0 0;font-size:12px;text-transform:uppercase;letter-spacing:.05em;color:var(--muted);border-top:1px solid var(--line);padding-top:10px}
.chk{display:inline-flex;gap:6px;align-items:center;font-size:13px;font-weight:600}
.chk input{width:16px;height:16px}
div.f{display:flex;flex-direction:column;gap:5px;font-size:13px;font-weight:600;color:var(--muted)}
input[type=date]{width:100%;border:1px solid var(--line);background:var(--surface);border-radius:8px;padding:7px 9px}
input[type=color]{width:100%;height:34px;padding:2px;border:1px solid var(--line);border-radius:8px;background:var(--surface)}
input[type=file]{font-size:12px;max-width:100%}
.ed{grid-template-columns:200px minmax(0,1fr) 320px}
.thumbs{display:flex;gap:6px;flex-wrap:wrap}
.th{width:54px;height:44px;border:2px solid var(--line);border-radius:6px;padding:0;overflow:hidden;background:var(--bg);font-size:10px;font-weight:700;color:var(--muted)}
.th img{width:100%;height:100%;object-fit:cover;display:block}
.th.on{border-color:var(--accent);box-shadow:0 0 0 2px var(--accent-soft)}
.thumbs.big{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.thumbs.big .th{width:auto;height:auto;padding:6px;display:flex;flex-direction:column;gap:4px;align-items:flex-start;font-weight:400}
.thumbs.big .th img{height:70px;border-radius:4px}
.sidetabs{display:flex;flex-wrap:wrap;gap:4px}
.sidetabs button{border:1px solid var(--line);background:var(--bg);border-radius:6px;padding:4px 8px;font-size:12px;font-weight:700}
.sidetabs button.on{background:var(--ink);color:var(--bg);border-color:var(--ink)}
.mi{border:1px solid var(--line);border-radius:8px;padding:8px;display:flex;flex-direction:column;gap:6px;background:var(--bg)}
.mi.sub{margin-left:14px;border-style:dashed}
details.mi{display:block} details.mi summary{cursor:pointer}
.serp{border:1px solid var(--line);border-radius:8px;padding:8px 10px;display:flex;flex-direction:column;gap:2px;font-size:12px;background:var(--bg)}
.serp b{color:var(--accent);font-size:15px;font-weight:600}
.file{display:flex;gap:10px;align-items:center;border:1px solid var(--line);border-radius:8px;padding:8px;flex-wrap:wrap}
.fthumb{width:44px;height:44px;border-radius:6px;background:var(--surface2);display:flex;align-items:center;justify-content:center;font-size:11px;font-weight:700;color:var(--muted);overflow:hidden;flex:none}
.fthumb img{width:100%;height:100%;object-fit:cover}
.al{border:1px solid var(--line);border-left:5px solid var(--muted);border-radius:8px;padding:10px 12px;display:flex;flex-direction:column;gap:6px}
.al.crit{border-left-color:var(--crit)} .al.warn{border-left-color:var(--warn)} .al.done{opacity:.6}
.al p{max-width:95ch}
/* mockup pieces */
.hdr,.ftr{padding:12px 16px;position:relative}
.ftr{padding:20px 16px}
.editing .hdr,.editing .ftr,.editing .bo-side{cursor:pointer}
.editing .hdr:hover,.editing .ftr:hover,.editing .bo-side:hover{outline:2px solid #9fb0f3;outline-offset:-2px}
.editing .hdr.sel,.editing .ftr.sel,.editing .bo-side.sel{outline:2px solid #2446c8;outline-offset:-2px}
.m-nav{align-items:center;padding:0 14px}
.m-nav.col{flex-direction:column;align-items:flex-start;gap:8px;padding:10px 0 0}
.m-item{position:relative}
.m-sub{display:none;position:absolute;top:100%;left:-8px;background:#fff;color:#1c1c1c;border:1px solid #dcdfe5;border-radius:6px;padding:6px 10px;min-width:130px;z-index:4;box-shadow:0 6px 16px rgba(0,0,0,.14)}
.m-sub a{display:block;padding:4px 0;font-weight:500}
.m-item:hover .m-sub{display:block}
.m-nav.col .m-sub{display:block;position:static;border:0;box-shadow:none;background:transparent;color:inherit;padding:2px 0 0 12px}
.m-cart{font-weight:700;font-size:13px;white-space:nowrap;cursor:pointer}
.m-burger{border:1px solid currentColor;background:transparent;border-radius:6px;font-size:18px;padding:2px 9px}
.m-h{margin:0 0 8px}
h1.m-h{font-size:28px} h2.m-h{font-size:22px} h3.m-h{font-size:17px}
.m-two{display:grid;grid-template-columns:1fr 1fr;gap:18px;align-items:start}
.sheet.mobile .m-two{grid-template-columns:1fr}
.m-qty{border:1px solid #c9cdd6;border-radius:6px;padding:7px 12px;font-weight:700}
.m-steps{display:flex;gap:8px;flex-wrap:wrap;justify-content:center}
.m-steps span{display:inline-flex;gap:6px;align-items:center;font-size:13px;border-bottom:2px solid #dcdfe5;padding-bottom:4px;color:#7a8190}
.m-steps i{font-style:normal;width:20px;height:20px;border-radius:50%;background:#dcdfe5;color:#555;display:inline-flex;align-items:center;justify-content:center;font-size:11px;font-weight:700}
.m-ico{width:28px;height:28px;border-radius:8px;margin:0 auto 6px;display:block}
.m-faq{border-bottom:1px solid #dcdfe5;padding:8px 0}
.m-faq summary{font-weight:700;cursor:pointer}
.m-faq p{margin-top:6px}
.m-chip{display:inline-block;border:1px solid #c9cdd6;border-radius:99px;padding:1px 9px;font-size:12px;font-weight:700}
.m-box{display:inline-block;width:14px;height:14px;border:1px solid #9aa1ad;border-radius:3px;vertical-align:-2px;margin-right:6px;background:#fff}
.m-field.sel{background:#fff linear-gradient(45deg,transparent 50%,#7a8190 50%) no-repeat right 12px center/7px 7px}
.m-slide{position:relative;overflow:hidden}
.m-slide .cap{position:absolute;left:0;right:0;bottom:0;padding:10px 14px;background:linear-gradient(transparent,rgba(0,0,0,.6));color:#fff;font-weight:700}
.m-slide .arr{position:absolute;top:50%;transform:translateY(-50%);border:0;background:rgba(255,255,255,.85);color:#1c1c1c;width:32px;height:32px;border-radius:50%;font-size:20px;line-height:1}
.m-slide .arr.l{left:8px} .m-slide .arr.r{right:8px}
.dots{display:flex;gap:5px;justify-content:center;padding:6px}
.dots i{width:8px;height:8px;border-radius:50%;background:#cfd3da}
.bo{display:flex;min-height:420px}
.bo-side{width:190px;flex:none;padding:14px}
.bo-side nav{display:flex;flex-direction:column;gap:2px;margin-top:12px}
.bo-side a{padding:7px 8px;border-radius:6px;font-size:13px;cursor:pointer}
.bo-side a.on{background:rgba(255,255,255,.16);font-weight:700}
.bo-main{flex:1;min-width:0;background:#f5f6f8}
.sheet.mobile .bo{flex-direction:column}
.sheet.mobile .bo-side{width:auto}
.sheet.mobile .bo-side nav{flex-direction:row;flex-wrap:wrap}
.mod.hid{opacity:.3}
.m-table{width:100%}
@media (max-width:900px){.ed{grid-template-columns:1fr}}
.sheetgrid{border-collapse:collapse;width:auto;min-width:100%}
.sheetgrid th{background:var(--surface2);border:1px solid var(--line);padding:3px 8px;text-align:center;font-size:11px;min-width:28px;white-space:nowrap}
.sheetgrid td{border:1px solid var(--line);padding:0}
.sheetgrid td:last-child{border:0;padding:0 4px}
.sheetgrid input{border:0;border-radius:0;background:var(--surface);padding:7px 8px;min-width:110px;width:100%;text-align:right;font-variant-numeric:tabular-nums}
.sheetgrid input.lab{text-align:left;font-weight:700;min-width:170px}
.sheetgrid input.fx{color:var(--accent);font-weight:700;background:var(--accent-soft)}
.sheetgrid input.err{color:var(--crit)}
.sheetgrid input:focus{outline:2px solid var(--accent);outline-offset:-2px;text-align:left}
.x{border:0;background:none;color:var(--muted);font-size:11px;padding:2px 4px;border-radius:4px}
.x:hover{color:var(--crit)}
.m-opt{display:flex;justify-content:space-between;align-items:center;gap:10px;width:100%;text-align:left;border:1px solid #c9cdd6;border-radius:8px;background:#fff;color:#1c1c1c;padding:10px 12px;margin:6px 0;font:inherit}
.m-radio{display:inline-block;width:14px;height:14px;border-radius:50%;border:2px solid #9aa1ad;margin-right:8px;vertical-align:-2px;box-shadow:inset 0 0 0 2px #fff}
.m-in{display:block;width:100%;border:1px solid #c9cdd6;border-radius:6px;height:34px;background:#fff;color:#1c1c1c;margin:3px 0 9px;padding:0 8px;font:inherit}
.m-qbtn{border:1px solid #c9cdd6;background:#fff;color:#1c1c1c;border-radius:6px;width:26px;height:26px;font-weight:700;line-height:1}
.m-ok{width:54px;height:54px;border-radius:50%;color:#fff;font-size:28px;display:flex;align-items:center;justify-content:center;margin:0 auto 12px}
.prod{display:grid;grid-template-columns:110px minmax(0,1fr);gap:14px;border:1px solid var(--line);border-radius:10px;padding:12px;align-items:start}
.pimg{width:110px;height:90px;border-radius:8px;background:var(--surface2);display:flex;align-items:center;justify-content:center;font-size:12px;color:var(--muted);overflow:hidden}
.pimg img{width:100%;height:100%;object-fit:cover}
.pf{display:grid;grid-template-columns:2fr 1.4fr 1fr 1fr;gap:8px}
.m-link{border:0;background:none;padding:0;font:inherit;font-weight:700;cursor:pointer;text-decoration:underline}
@media (max-width:700px){.prod{grid-template-columns:1fr}.pf{grid-template-columns:1fr 1fr}}

/* ===== page builder ===== */
.bld{position:fixed;inset:0;display:grid;grid-template-columns:330px minmax(0,1fr);grid-template-rows:auto minmax(0,1fr);background:var(--surface2)}
.bbar{grid-column:1/-1;display:flex;justify-content:space-between;align-items:center;gap:10px;padding:6px 10px;background:#161b24;color:#eef0f3;overflow-x:auto}
.bb{display:inline-flex;gap:6px;align-items:center;border:1px solid transparent;background:transparent;color:inherit;border-radius:7px;padding:6px 9px;font-weight:600;font-size:13px;white-space:nowrap}
.bb:hover{background:rgba(255,255,255,.14)} .bb[disabled]{opacity:.35;cursor:not-allowed}
.bb.primary{background:#4f6ef7;color:#fff}
.bseg{display:inline-flex;border:1px solid rgba(255,255,255,.3);border-radius:8px;overflow:hidden;flex:none}
.bseg button{border:0;background:transparent;color:inherit;padding:6px 10px;font-size:13px;font-weight:600;display:inline-flex;align-items:center;white-space:nowrap}
.bseg button.on{background:#eef0f3;color:#161b24}
.bbar select{width:auto;max-width:180px;background:transparent;color:inherit;border-color:rgba(255,255,255,.3);padding:5px 8px}
.bbar select option{color:#18202b;background:#fff}
.bbar>*{flex:none}
.bpill{font-size:11px;font-weight:700;border:1px solid #f0b455;color:#f0b455;border-radius:99px;padding:2px 8px;white-space:nowrap}
.bpill.ok{border-color:#6fd6a0;color:#6fd6a0}
.bpanel{background:var(--surface);border-right:1px solid var(--line);display:flex;flex-direction:column;min-height:0;overflow:hidden}
.ptabs{display:flex;border-bottom:1px solid var(--line);flex:none}
.ptabs button{flex:1;border:0;background:none;padding:8px 2px 5px;display:flex;flex-direction:column;align-items:center;gap:2px;font-size:11px;font-weight:700;color:var(--muted);border-bottom:3px solid transparent}
.ptabs button.on{color:var(--accent);border-bottom-color:var(--accent)}
.pbody{padding:12px;overflow-y:auto;flex:1;min-height:0}
.wgrid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}
.wtile{border:1px solid var(--line);border-radius:8px;background:var(--bg);padding:10px 4px 8px;display:flex;flex-direction:column;align-items:center;gap:5px;font-size:11px;font-weight:600;text-align:center;cursor:grab;color:var(--ink);line-height:1.2}
.wtile:hover{border-color:var(--accent);color:var(--accent)}
.ihead{display:flex;align-items:center;gap:8px;padding:8px 10px;border-bottom:1px solid var(--line);flex:none}
.ibtn{border:0;background:none;color:inherit;padding:4px;border-radius:6px;display:inline-flex}
.ibtn:hover{background:var(--surface2)} .iico{color:var(--accent);display:inline-flex}
.itabs{display:flex;border-bottom:1px solid var(--line);flex:none}
.itabs button{flex:1;border:0;background:none;padding:8px 4px;font-size:13px;font-weight:600;color:var(--muted);border-bottom:3px solid transparent}
.itabs button.on{color:var(--ink);border-bottom-color:var(--accent)}
.lays{display:flex;flex-wrap:wrap;gap:6px;justify-content:center}
.lay{display:flex;gap:3px;width:58px;height:34px;padding:5px;border:1px solid var(--line);border-radius:6px;background:var(--surface)}
.lay i{background:var(--muted);opacity:.5;border-radius:2px}
.lay:hover i,.lay.on i{background:var(--accent);opacity:1} .lay.on{border-color:var(--accent)}
.sheet .lay{background:#fff;border-color:#c5cad3} .sheet .lay i{background:#8b93a1} .sheet .lay:hover i{background:#2446c8;opacity:1}
.prow,.trow,.hrow{display:flex;align-items:center;gap:8px;width:100%;border:1px solid var(--line);background:var(--bg);border-radius:8px;padding:7px 9px;text-align:left;color:var(--ink);font:inherit}
.prow.on{border-color:var(--accent);background:var(--accent-soft)}
.trow{border:0;background:none;padding:5px 6px} button.trow:hover,.hrow:hover{background:var(--surface2)}
.trow.sub{padding-left:26px} .trow.sub2{padding-left:40px;font-size:13px}
.hrow{border:0;background:none;padding-top:5px;padding-bottom:5px;font-size:13px;align-items:flex-start}
.hl{font-size:10px;font-weight:700;border-radius:4px;padding:1px 5px;background:var(--surface2);flex:none;margin-top:2px}
.hl.h1{background:var(--accent);color:var(--accent-ink)}
.chk-row{display:flex;gap:8px;align-items:flex-start}
.chk-row>i{flex:none;width:18px;height:18px;border-radius:50%;font-style:normal;font-size:11px;font-weight:700;color:var(--surface);display:flex;align-items:center;justify-content:center;background:var(--ok);margin-top:2px}
.chk-row.ko>i{background:var(--warn)}
.bstage{overflow:auto;padding:20px;min-height:0}
.bstage .sheet.desktop{max-width:1200px}
.editing .msec{margin:0;border-color:transparent}
.editing .msec:hover{border-color:#7f97f0}
.editing .msec.sel{border-color:#2446c8;border-style:solid}
.shandle{position:absolute;top:0;left:50%;transform:translateX(-50%);z-index:3;display:none;background:#2446c8;border-radius:0 0 7px 7px;color:#fff;font-family:var(--body);font-size:11px;font-weight:700}
.msec:hover>.shandle,.msec.sel>.shandle{display:flex}
.shandle button,.wtools button{border:0;background:transparent;color:#fff;padding:3px 5px;display:inline-flex;align-items:center;gap:4px;font:inherit}
.shandle button:hover,.wtools button:hover{background:rgba(255,255,255,.22)}
.shandle svg,.wtools svg{width:14px;height:14px}
.wtools{position:absolute;top:0;right:0;display:none;background:#0e8a7d;color:#fff;border-radius:0 0 0 7px;z-index:2;font-size:11px;font-weight:700;align-items:center;font-family:var(--body);text-align:left;line-height:1.3}
.wtools span{padding:2px 6px}
.mod:hover>.wtools,.mod.sel>.wtools{display:flex}
.editing .mod:hover{outline:1px solid #0e8a7d;outline-offset:-1px}
.editing .mod.sel{outline:2px solid #0e8a7d;outline-offset:-2px}
.editing .mcol{outline:0;min-height:0}
.editing .mcol.target{background:transparent}
.colplus{margin:6px;border:1px dashed #b9c0cc;border-radius:6px;min-height:70px;display:flex;flex-direction:column;align-items:center;justify-content:center;color:#7a8190;font-size:12px;gap:2px;font-family:var(--body);cursor:pointer}
.colplus b{font-size:20px;line-height:1}
.mcol.target .colplus{border-color:#2446c8;background:#eef2ff;color:#2446c8}
.ins{height:12px;margin:-6px 0;position:relative;z-index:3}
.ins:hover::before{content:"";position:absolute;left:0;right:0;top:5px;border-top:2px solid #2446c8}
.ins button{position:absolute;left:50%;top:-5px;transform:translateX(-50%);width:22px;height:22px;border-radius:50%;border:0;background:#2446c8;color:#fff;font-weight:700;line-height:1;opacity:0}
.ins:hover button,.ins button:focus-visible{opacity:1}
@media (hover:none){.ins button{opacity:.6}}
.picker,.addzone{margin:10px;border:2px dashed #b9c0cc;border-radius:8px;padding:16px;display:flex;flex-direction:column;align-items:center;gap:10px;color:#4b5563;font-family:var(--body);background:#fafbfc;font-size:13px}
.addbtn{width:38px;height:38px;border-radius:50%;border:0;background:#2446c8;color:#fff;font-size:22px;line-height:1}
.dropb{box-shadow:0 -4px 0 #e0457b!important} .dropa{box-shadow:0 4px 0 #e0457b!important}
.dropcol .colplus,.dropsec{border-color:#e0457b!important;background:#fdeef4!important;color:#b02a5b}
body.dragging .shandle,body.dragging .wtools{display:none!important}
h4.m-h{font-size:15px} h5.m-h,h6.m-h{font-size:13px}
@media (max-width:900px){
 .bld{grid-template-columns:1fr;grid-template-rows:auto minmax(0,1fr) minmax(0,46%)}
 .bpanel{grid-row:3;border-right:0;border-top:2px solid var(--line)}
 .bstage{grid-row:2;padding:8px}
 .bb span,.bpill{display:none}
 .bbar{flex-wrap:wrap;justify-content:flex-start;gap:6px;overflow:visible}
 .bbar select{max-width:130px}
}
.plist{display:flex;flex-direction:column;gap:4px;max-height:230px;overflow-y:auto}
.pk{display:flex;align-items:center;gap:8px;border:1px solid var(--line);background:var(--bg);border-radius:7px;padding:5px 8px;font:inherit;font-size:13px;color:var(--ink)}
.pk>i{flex:none;width:18px;height:18px;border:1.5px solid var(--muted);border-radius:4px;font-style:normal;font-size:11px;font-weight:700;display:flex;align-items:center;justify-content:center}
.pk.on{border-color:var(--accent);background:var(--accent-soft)}
.pk.on>i{background:var(--accent);border-color:var(--accent);color:var(--accent-ink)}
.sheet{color-scheme:light}
.sheet input.m-in,.sheet input.m-in[type]{background:#fff;color:#1c1c1c;border:1px solid #9aa1ad;border-radius:6px;padding:0 10px;width:100%}
.sheet input.m-in::placeholder{color:#7a8190}
.sheet input.m-in:focus{outline:2px solid #2446c8;outline-offset:1px;border-color:#2446c8}
.presentbar{background:#161b24;color:#eef0f3}
.presentbar .seg{border-color:rgba(255,255,255,.3)}
.presentbar .seg button{background:transparent;color:#eef0f3}
.presentbar .seg button.on,.presentbar .pg.on{background:#eef0f3;color:#161b24}
.presentbar .pg{color:#eef0f3;border-color:rgba(255,255,255,.4);background:transparent}
.presentbar .btn{background:#eef0f3;color:#161b24;border-color:#eef0f3}

.savestate{font-size:12px;font-weight:600;color:var(--muted)} .savestate.bad{color:var(--crit)}
.bbar .savestate{color:#aab3c2} .bbar .savestate.bad{color:#ff8a80}
.formerr{color:var(--crit);font-weight:600;border-left:4px solid var(--crit);padding-left:10px}
input[type=password],input[type=email]{width:100%;border:1px solid var(--line);background:var(--surface);border-radius:8px;padding:7px 9px}
.h1in{font-family:var(--display);font-size:26px;font-weight:700;border:1px dashed var(--line)!important;background:transparent!important;padding:2px 6px!important;max-width:520px}
.code{font-family:ui-monospace,Menlo,Consolas,monospace;font-size:18px;letter-spacing:.12em;background:var(--surface2);padding:3px 10px;border-radius:6px}
a.btn{text-decoration:none;display:inline-block}


/* ===== v2: courses, projects, accounts ===== */
.brandbtn{border:0;background:none;padding:0;color:inherit}
.cgrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:12px}
.ccard{display:flex;flex-direction:column;gap:8px;text-align:left;border:1px solid var(--line);background:var(--surface);border-radius:12px;padding:16px;color:var(--ink);font:inherit}
button.ccard:hover{border-color:var(--accent);box-shadow:0 2px 10px rgba(0,0,0,.06)}
.ccard .ct{font-family:var(--display);font-size:17px}
.ccard.new{border-style:dashed;background:transparent}
.ccard .go,.actrow .go{font-weight:700;color:var(--accent);font-size:13px;margin-top:auto}
.actrow{display:flex;align-items:center;gap:10px;flex-wrap:wrap;width:100%;border:1px solid var(--line);background:var(--bg);border-radius:10px;padding:12px 14px;font:inherit;color:var(--ink);text-align:left}
.actrow:hover{border-color:var(--accent)}
.act-draft{border-style:dashed}
.act-closed{opacity:.85}
.actcfg{border-top:1px solid var(--line);padding-top:12px}
.passbox{border:2px solid var(--ok)}
tr.open td{background:var(--surface2)}
.code.sm{font-size:13px;padding:1px 6px}

/* ===== éditeur de texte riche ===== */
.rte-wrap{font-weight:400;color:var(--ink);border:1px solid var(--line);border-radius:10px;background:var(--surface);overflow:hidden}
.rte-wrap:focus-within{border-color:var(--accent);box-shadow:0 0 0 3px var(--accent-soft)}
.rte-toolbar.ql-toolbar.ql-snow{border:0;border-bottom:1px solid var(--line);background:var(--bg);padding:6px 8px;font-family:var(--body);position:sticky;top:0;z-index:2;display:flex;flex-wrap:wrap;gap:2px 0}
.rte-toolbar .ql-formats{margin-right:10px!important;display:inline-flex;align-items:center}
.rte-toolbar.ql-snow button{width:30px;height:30px;padding:5px;border-radius:6px;color:var(--ink)}
.rte-toolbar.ql-snow button svg{width:18px;height:18px}
.rte-toolbar.ql-snow button:hover,.rte-toolbar.ql-snow button.ql-active{background:var(--accent-soft)}
.rte-toolbar.ql-snow .ql-stroke{stroke:var(--ink)} .rte-toolbar.ql-snow .ql-fill{fill:var(--ink)}
.rte-toolbar.ql-snow button:hover .ql-stroke,.rte-toolbar.ql-snow button.ql-active .ql-stroke,.rte-toolbar.ql-snow .ql-picker-label:hover .ql-stroke,.rte-toolbar.ql-snow .ql-picker-label.ql-active .ql-stroke{stroke:var(--accent)}
.rte-toolbar.ql-snow button:hover .ql-fill,.rte-toolbar.ql-snow button.ql-active .ql-fill{fill:var(--accent)}
.rte-toolbar.ql-snow .ql-picker{color:var(--ink);height:30px}
.rte-toolbar.ql-snow .ql-picker-label{border-radius:6px;display:flex;align-items:center}
.rte-toolbar.ql-snow .ql-picker-options{background:var(--surface);border-color:var(--line);border-radius:8px;box-shadow:0 8px 24px rgba(0,0,0,.16);z-index:5}
.rte-toolbar.ql-snow .ql-picker.ql-header{width:120px}
.rte-toolbar.ql-snow .ql-picker.ql-header .ql-picker-label::before,.rte-toolbar.ql-snow .ql-picker.ql-header .ql-picker-item::before{content:'Paragraphe'}
.rte-toolbar.ql-snow .ql-picker.ql-header [data-value="1"]::before{content:'Titre 1'!important}
.rte-toolbar.ql-snow .ql-picker.ql-header [data-value="2"]::before{content:'Titre 2'!important}
.rte-toolbar.ql-snow .ql-picker.ql-header [data-value="3"]::before{content:'Titre 3'!important}
.rte-toolbar.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="1"]{font-size:1.5em;font-weight:700}
.rte-toolbar.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="2"]{font-size:1.25em;font-weight:700}
.rte-toolbar.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="3"]{font-size:1.08em;font-weight:700}
.rte-table{border-left:1px solid var(--line);padding-left:8px}
.rte-area.ql-container.ql-snow{border:0;font-family:Georgia,"Times New Roman",serif;font-size:16px;color:var(--ink)}
.rte-area .ql-editor{min-height:300px;max-height:70vh;padding:18px 22px;line-height:1.6;overflow-y:auto}
.rte-area .ql-editor.ql-blank::before{color:var(--muted);font-style:normal;left:22px;right:22px}
.rte-area .ql-editor h1,.rte-area .ql-editor h2,.rte-area .ql-editor h3{font-family:var(--display);margin:.9em 0 .35em;line-height:1.25}
.rte-area .ql-editor h1{font-size:1.6em} .rte-area .ql-editor h2{font-size:1.3em} .rte-area .ql-editor h3{font-size:1.1em}
.rte-area .ql-editor blockquote{border-left:4px solid var(--accent);padding:2px 0 2px 14px;margin:.6em 0;color:var(--muted)}
.rte-area .ql-editor table{border-collapse:collapse;width:100%;margin:.6em 0;font-family:var(--body);font-size:14px}
.rte-area .ql-editor td{border:1px solid var(--line);padding:6px 8px;min-width:60px}
.rte-area .ql-editor a{color:var(--accent)}
.ql-snow .ql-tooltip{z-index:6;border-radius:8px;box-shadow:0 8px 24px rgba(0,0,0,.18);color:#1c1c1c}
.ql-snow .ql-tooltip[data-mode=link]::before{content:'Adresse du lien :'}
.ql-snow .ql-tooltip::before{content:'Ouvrir :'}
.ql-snow .ql-tooltip a.ql-action::after{content:'Modifier'} .ql-snow .ql-tooltip a.ql-remove::before{content:'Retirer'}
.ql-snow .ql-tooltip.ql-editing a.ql-action::after{content:'Enregistrer'}
/* lecture seule (enseignant, projet clos) et contenu imprimé */
.rte-view{font-weight:400;color:var(--ink);border:1px solid var(--line);border-radius:10px;background:var(--surface);padding:18px 22px;font-family:Georgia,"Times New Roman",serif;font-size:16px;line-height:1.6}
.rte-view>:first-child,.rt>:first-child{margin-top:0}
.rte-view p,.rt p{margin:0 0 .7em} .rte-view .rt-empty,.rt .rt-empty{margin:0;height:.6em}
.rte-view h3,.rte-view h4,.rte-view h5{font-family:var(--display);margin:1em 0 .35em}
.rte-view blockquote{border-left:4px solid var(--accent);padding:2px 0 2px 14px;margin:.6em 0;color:var(--muted)}
.rte-view ul,.rte-view ol,.rt ul,.rt ol{margin:0 0 .7em;padding-left:1.6em}
.rt-checks{list-style:none;padding-left:.4em!important} .rt-checks li::before{content:'☐ ';font-family:Arial,sans-serif} .rt-checks li.checked::before{content:'☑ '}
.rt-table{border-collapse:collapse;width:100%;margin:.6em 0 1em;font-family:var(--body);font-size:.88em}
.rt-table td{border:1px solid var(--line);padding:6px 8px;vertical-align:top}
.rte-view a{color:var(--accent)}

/* ===== document imprimable A4 ===== */
.printbar{display:flex;gap:10px;align-items:center;flex-wrap:wrap;padding:10px 16px;background:var(--surface);border-bottom:1px solid var(--line);position:sticky;top:0;z-index:5}
.pdoc{--pa:#2446c8;--pink:#1d2330;--pmut:#5c6575;--pline:#dfe2e8;background:#fff;color:var(--pink);width:210mm;max-width:100%;margin:20px auto;padding:18mm 16mm 20mm;box-shadow:0 2px 18px rgba(0,0,0,.18);color-scheme:light;
 font-family:Charter,"Bitstream Charter",Georgia,Cambria,"Times New Roman",serif;font-size:10.5pt;line-height:1.55;hyphens:auto;-webkit-hyphens:auto;text-rendering:optimizeLegibility}
.pdoc h1,.pdoc h2,.pdoc h3,.pdoc h4,.pdoc h5,.pdoc .pn,.pdoc table,.pdoc dl,.pdoc figcaption,.pdoc .pnote,.pdoc .pfiles,.pdoc .pc-top,.pdoc .pc-kind{font-family:"Avenir Next","Segoe UI","Helvetica Neue",Helvetica,Arial,sans-serif;color:var(--pink)}
/* page de garde */
.pcover{position:relative;min-height:255mm;display:flex;flex-direction:column;padding:6mm 0 0;break-after:page}
.pdoc th{text-transform:none;letter-spacing:0;color:inherit;font-size:inherit}
.pc-band{height:3mm;width:42mm;background:var(--pa);margin-bottom:8mm}
.pc-top{font-size:9pt;letter-spacing:.14em;text-transform:uppercase;color:var(--pmut)!important}
.pc-main{margin-top:52mm;border-left:5px solid var(--pa);padding-left:9mm}
.pc-kind{font-size:10pt;font-weight:700;letter-spacing:.12em;text-transform:uppercase;color:var(--pa)!important}
.pcover h1{font-size:30pt;line-height:1.1;margin:4mm 0 5mm;text-wrap:balance;font-weight:800}
.pc-company{font-size:16pt;color:var(--pmut)}
.pc-meta{margin:auto 0 0;display:grid;grid-template-columns:1fr 1fr;gap:5mm 10mm;border-top:1px solid var(--pline);padding-top:7mm;font-size:9.5pt}
.pc-meta dt{font-size:7.5pt;text-transform:uppercase;letter-spacing:.1em;color:var(--pmut);margin-bottom:1mm}
.pc-meta dd{margin:0;font-weight:600}
/* sommaire */
.ptoc{break-after:page}
.ptoc h2,.psec h2{font-size:17pt;margin:0 0 6mm;display:flex;align-items:baseline;gap:4mm;font-weight:800;text-wrap:balance;break-after:avoid}
.ptoc ol{list-style:none;margin:0;padding:0}
.ptoc li{display:flex;gap:5mm;align-items:baseline;padding:2.6mm 0;border-bottom:1px dotted var(--pline);font-family:"Avenir Next","Segoe UI",Helvetica,Arial,sans-serif;font-size:11pt}
.pn{color:var(--pa)!important;font-weight:800;font-variant-numeric:tabular-nums;min-width:9mm}
/* sections */
.psec{margin:0 0 11mm}
.psec+.psec{padding-top:2mm}
.pbreak,.ppage{break-before:page}
.psec h2{border-bottom:2px solid var(--pink);padding-bottom:2.5mm}
.rt{text-align:justify}
.rt :is(h3,h4,h5,h6),.rte-view :is(h3,h4,h5,h6){text-transform:none;letter-spacing:0;border-top:0;padding-top:0;color:inherit;font-size:1.1em}
.rte-view .rt-h1{font-size:1.45em} .rte-view .rt-h2{font-size:1.22em} .rte-view .rt-h3{font-size:1.05em}
.rt h3,.rt h4,.rt h5{text-align:left;break-after:avoid;margin:5mm 0 2mm;line-height:1.25}
.pdoc .pb-view :is(h1,h2,h3,h4,h5,h6,table,dl,figcaption){color:inherit;font-family:inherit}
.rt .rt-h1{font-size:13.5pt;font-weight:800} .rt .rt-h2{font-size:12pt;font-weight:700} .rt .rt-h3{font-size:10.5pt;font-weight:700;text-transform:uppercase;letter-spacing:.04em;color:var(--pmut)}
.rt blockquote{margin:3mm 0;padding:1mm 0 1mm 5mm;border-left:3px solid var(--pa);font-style:italic;color:#3a4252}
.rt li{margin-bottom:1mm}
.rt a{color:var(--pa)}
.rt .rt-table td{border-color:var(--pline);font-size:9pt}
.rt table{break-inside:avoid}
.pempty{color:var(--pmut);font-style:italic}
.pnote{font-size:8.5pt;color:var(--pmut)!important;margin:2mm 0}
.pfiles{margin-top:4mm;background:#f5f6f8;border-radius:2mm;padding:3mm 4mm;font-size:9pt;break-inside:avoid}
.pfiles ul{margin:1.5mm 0 0;padding-left:5mm} .pfiles span{color:var(--pmut)}
/* tableur */
.psheet{border-collapse:collapse;width:100%;margin:2mm 0 3mm;font-size:9pt;font-variant-numeric:tabular-nums;break-inside:avoid}
.psheet thead th{background:var(--pink);color:#fff!important;font-weight:700;text-align:right;padding:2mm 3mm}
.psheet thead th:first-child{text-align:left}
.psheet tbody th{text-align:left;font-weight:500;padding:1.6mm 3mm}
.psheet td{text-align:right;padding:1.6mm 3mm;white-space:nowrap}
.psheet tbody tr{border-bottom:1px solid var(--pline)} .psheet tbody tr:nth-child(even){background:#f8f9fb}
.psheet tr.calc th,.psheet tr.calc td{font-weight:800;background:#eef1f6;border-top:1.5px solid var(--pink)}
.neg{color:#b3261e!important}
.pchart{margin:3mm 0 1mm;break-inside:avoid} .pchart svg{width:100%;max-width:150mm;display:block}
.pchart figcaption{display:flex;gap:6mm;font-size:8.5pt;color:var(--pmut);margin-top:1mm}
.pchart figcaption i{display:inline-block;width:3mm;height:3mm;border-radius:.6mm;margin-right:1.5mm;vertical-align:-.3mm}
/* récapitulatif et tableaux de synthèse */
.precap{border-collapse:collapse;width:100%;font-size:9pt}
.precap th{text-align:left;font-size:7.5pt;text-transform:uppercase;letter-spacing:.08em;color:var(--pmut)!important;border-bottom:1.5px solid var(--pink);padding:2mm}
.precap td{padding:2mm;border-bottom:1px solid var(--pline);vertical-align:top}
.precap tfoot th,.precap tfoot td{font-weight:800;border-top:1.5px solid var(--pink);border-bottom:0;color:var(--pink)!important;font-size:9pt;text-transform:none;letter-spacing:0}
.precap tr{break-inside:avoid}
.pgroup td{background:#f1f3f6;font-weight:700;font-size:8pt;text-transform:uppercase;letter-spacing:.08em}
.pcat img{width:16mm;height:12mm;object-fit:cover;border-radius:1mm;display:block}
.pst{display:inline-block;border-radius:99px;padding:.3mm 2.4mm;font-size:8pt;font-weight:700;border:1px solid currentColor}
.pst.s0{color:#b3261e} .pst.s1{color:#9a5a00} .pst.s2{color:#1e7a4c}
.pfig{margin:0 0 6mm;break-inside:avoid;text-align:center} .pfig img{max-width:100%;max-height:150mm;border:1px solid var(--pline)}
.pfig figcaption{font-size:8.5pt;color:var(--pmut);margin-top:1.5mm}
/* maquette */
.pid{display:grid;grid-template-columns:1fr 1.5fr;gap:6mm;align-items:start;margin-bottom:3mm}
.pswatches{display:flex;flex-direction:column;gap:3mm}
.pswatches div{display:grid;grid-template-columns:14mm 1fr;grid-template-rows:auto auto;column-gap:3mm;font-family:Arial,sans-serif;font-size:9pt}
.pswatches i{grid-row:span 2;width:14mm;height:14mm;border-radius:2mm;border:1px solid var(--pline)}
.pswatches span{color:var(--pmut)}
.pfonts{display:flex;flex-direction:column;gap:4mm}
.pfonts span{display:block;font:8pt Arial,sans-serif;text-transform:uppercase;letter-spacing:.08em;color:var(--pmut);margin-bottom:1mm}
.pfonts b{font-size:18pt} .pfonts p{margin:0;font-size:10.5pt}
.plogo{grid-column:1/-1} .plogo span{display:block;font:8pt Arial,sans-serif;text-transform:uppercase;letter-spacing:.08em;color:var(--pmut);margin-bottom:1mm} .plogo img{max-height:18mm;max-width:60mm}
.pmeta{display:grid;grid-template-columns:repeat(2,1fr);gap:2mm 8mm;margin:0 0 4mm;font-size:9pt}
.pmeta dt{font-size:7pt;text-transform:uppercase;letter-spacing:.08em;color:var(--pmut)} .pmeta dd{margin:0}
.pcallout{border-left:3px solid var(--pa);background:#f5f6f8;padding:2.5mm 4mm;margin:0 0 4mm;font-size:9.5pt;break-inside:avoid} .pcallout p{margin:1mm 0 0;white-space:pre-wrap}
.pbrowser{border:1px solid #c9cdd6;border-radius:2mm;overflow:hidden}
.pb-bar{display:flex;align-items:center;gap:1.5mm;background:#eef0f3;padding:2mm 3mm;border-bottom:1px solid #c9cdd6;font:8pt Arial,sans-serif;color:#5c6575}
.pb-bar i{width:2.4mm;height:2.4mm;border-radius:50%;background:#c9cdd6} .pb-bar span{margin-left:3mm;background:#fff;border-radius:1mm;padding:.6mm 3mm;flex:1}
.pb-view{width:1100px;zoom:.6}
.pb-view .sheet{box-shadow:none;width:1100px;max-width:none}
@media screen and (max-width:860px){.pdoc{width:auto;margin:0;padding:16px;box-shadow:none}.pcover{min-height:0}.pc-main{margin-top:20mm}.pb-view{zoom:.3}}
@media print{
 html,body{background:#fff!important;height:auto!important}
 .printbar,.toast,#toast{display:none!important}
 .pdoc{width:auto;margin:0;padding:0;box-shadow:none}
 .pcover{min-height:255mm}
 *{-webkit-print-color-adjust:exact;print-color-adjust:exact}
 a{text-decoration:none}
}

/* ===== travail à plusieurs ===== */
.av{--av:#556;display:inline-flex;align-items:center;justify-content:center;width:24px;height:24px;border-radius:50%;background:var(--av);color:#fff;font:700 10px/1 var(--body);border:2px solid var(--surface);flex:none;letter-spacing:0}
.av.ed{box-shadow:0 0 0 2px var(--warn)}
.av+.av{margin-left:-6px}
.pstrip{display:flex;align-items:center;gap:8px;padding:6px 10px;border:1px solid var(--line);border-radius:99px;background:var(--surface)}
.pstrip .av+.av{margin-left:-12px}
.secbtn .av{width:20px;height:20px;font-size:9px}
.avs{display:inline-flex;margin-right:6px}
.bavs{display:flex;align-items:center} .bavs .av{border-color:#161b24}
.lockbar{display:flex;gap:12px;align-items:flex-start;border:1px solid var(--warn);border-left:5px solid var(--warn);background:var(--surface);border-radius:10px;padding:10px 14px;margin:0 0 10px}
.lockbar .av{width:30px;height:30px;font-size:11px}
.lockbar b{display:block} .lockbar span:not(.av){font-size:13px;color:var(--muted)}
.bstage>.lockbar{max-width:1200px;margin:0 auto 12px}

/* ===== notes internes ===== */
.notes{border:1px dashed var(--line);border-radius:10px;background:var(--bg);padding:0}
.notes>summary{cursor:pointer;padding:9px 12px;display:flex;flex-wrap:wrap;gap:8px;align-items:center;list-style:none}
.notes>summary::-webkit-details-marker{display:none}
.notes>summary::before{content:'▸';color:var(--muted);transition:transform .15s}
.notes[open]>summary::before{transform:rotate(90deg)}
.notes>summary .muted{margin-left:auto}
.notes-body{padding:0 12px 12px;display:flex;flex-direction:column;gap:8px}
.note{display:flex;gap:10px;align-items:flex-start;background:var(--surface);border:1px solid var(--line);border-radius:8px;padding:8px 10px}
.note .av{width:26px;height:26px;margin-top:2px}
.note-main{flex:1;min-width:0} .note-main p{margin:2px 0;white-space:pre-wrap;overflow-wrap:anywhere}
.note.done .note-main p{text-decoration:line-through;color:var(--muted)}
.note-act{display:flex;flex-direction:column;gap:6px;align-items:flex-end}
.note-form{display:flex;gap:8px;align-items:flex-end} .note-form textarea{flex:1}
.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
.bpanel .notes>summary .muted{margin-left:0}

.accc{border:1px solid var(--line);border-radius:8px;padding:8px 10px;display:flex;flex-direction:column;gap:6px;background:var(--bg)}
.acc-acts{display:flex;flex-direction:column;gap:4px;padding-left:4px}
.acc-acts[hidden]{display:none}
