/* Student app: a phone app, centred in a phone-width column on larger screens */
.e-app{max-width:460px;margin:0 auto;display:flex;flex-direction:column;gap:14px}
.e-app.running{padding-bottom:0}
.e-head h1{font-size:26px;line-height:1.15;font-weight:800}
.e-head p{margin-top:4px}
.e-small{font-size:13.5px}
.e-wide{width:100%;min-height:52px;font-size:16px}
.e-sec{display:flex;flex-direction:column;gap:10px}
.e-sec h3{font-size:17px}
.e-sec h4{font-size:14px;margin-top:6px}
.e-row{display:flex;justify-content:space-between;align-items:center;gap:10px}

.e-stats{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(0,1fr);gap:8px;margin-top:14px}
.e-stats div{background:#fff;border:1px solid var(--line);border-radius:14px;padding:10px 6px;text-align:center;display:flex;flex-direction:column;gap:2px}
.e-stats b{font-size:22px;line-height:1.1}
.e-stats span{font-size:12.5px;color:var(--ink2);line-height:1.25}
.e-stats .s-fire{background:#FFF4E5;border-color:#FCD9A8}
.e-stats .s-fire b{color:#C2410C}

/* the path */
.e-path{display:flex;flex-direction:column;gap:12px}
.e-unit{background:#fff;border:1px solid var(--line);border-radius:18px;padding:16px;display:flex;flex-direction:column;gap:12px;box-shadow:var(--sh)}
.e-unit.reco{border:2px solid var(--acc)}
.e-flag{align-self:flex-start;background:var(--acc);color:#fff;font-size:12.5px;font-weight:700;border-radius:999px;padding:3px 10px}
.e-uh{display:flex;align-items:center;gap:12px}
.e-uh .sg,.e-uh .qmark{width:52px;height:52px;font-size:26px}
.e-uh h3{font-size:18px;line-height:1.2}
.e-nodes{display:flex;align-items:center}
.e-nodes i{flex:1;height:4px;background:#E8EBF0;border-radius:2px;margin:0 6px}
.e-node{flex:none;width:44px;height:44px;padding:0;font-size:16px;border-radius:50%;display:grid;place-items:center;font-weight:800;background:#EEF1F5;color:var(--ink2);border:2px solid transparent}
.e-node svg{width:20px;height:20px}
.e-node.done{background:var(--ok);color:#fff}
.e-node.cur{background:#fff;border-color:var(--acc);color:var(--acc)}

/* bottom tabs */
.e-nav{position:fixed;z-index:15;bottom:0;left:50%;transform:translateX(-50%);width:min(460px,100%);display:flex;background:#fff;border-top:1px solid var(--line);padding:6px 4px calc(6px + env(safe-area-inset-bottom))}
@media(min-width:520px){.e-nav{border:1px solid var(--line);border-bottom:0;border-radius:16px 16px 0 0}}
.e-nav a{flex:1;min-width:0;display:flex;flex-direction:column;align-items:center;gap:2px;text-decoration:none;color:var(--ink2);font-size:11.5px;font-weight:700;padding:5px 2px;border-radius:10px;text-align:center;line-height:1.2}
.e-nav a svg{width:23px;height:23px}
.e-nav a.on{color:var(--acc);background:#EEF5FF}

/* a running lesson or exam */
.e-run{display:flex;flex-direction:column;gap:10px;min-height:calc(100dvh - 230px)}
.e-run>.tag{align-self:flex-start}
.e-runtop{display:flex;align-items:center;gap:10px}
.e-runtop .bar{flex:1;height:12px}
.e-x{flex:none;width:44px;height:44px;border-radius:50%;border:0;background:#E8EBF0;font-size:24px;line-height:1;color:var(--ink2)}
.e-clock{font-weight:800;font-size:17px;background:var(--ink);color:#fff;border-radius:10px;padding:5px 10px}
.e-clock.low{background:var(--bad)}
.e-fb{position:sticky;bottom:0;margin:auto -16px 0;padding:14px 16px calc(14px + env(safe-area-inset-bottom));display:flex;flex-direction:column;gap:10px;border-top:2px solid var(--line);background:#fff}
.e-fb.ok{background:var(--okbg);border-color:#86EFAC;color:#14532D}
.e-fb.bad{background:var(--badbg);border-color:#FCA5A5;color:#7F1D1D}
.e-fb>div>b{font-size:18px;display:block}
.e-fb p{font-size:15px;margin-top:2px}
.e-fb .btn{width:100%;min-height:50px;font-size:16px}
.e-fb.ok .btn{background:var(--ok);border-color:var(--ok);color:#fff}
.e-fb.bad .btn{background:var(--bad);border-color:var(--bad);color:#fff}
.e-fb.plain{background:var(--bg);border-top:0}
@media(min-width:520px){.e-fb{margin-inline:0;border-radius:16px;border:2px solid var(--line);bottom:12px}.e-fb.plain{border:0}}

/* result screens */
.e-end{text-align:center;display:flex;flex-direction:column;align-items:center;gap:10px;padding-top:16px}
.e-end h1{font-size:28px;font-weight:800}
.e-end .e-stats{width:100%;margin-top:6px}
.e-end .note{width:100%}
.e-medal{width:84px;height:84px;border-radius:50%;background:var(--ok);color:#fff;display:grid;place-items:center;font-size:44px;font-weight:800}
.e-medal svg{width:44px;height:44px}
.e-medal.no{background:#F59E0B}
.e-score{font-size:46px;font-weight:800;line-height:1}
.e-stack{display:flex;flex-direction:column;gap:8px;width:100%;margin-top:6px}
.e-stack .btn{min-height:50px}
.e-mist{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:10px}
.e-mist li{display:flex;gap:12px;background:#fff;border:1px solid var(--line);border-radius:14px;padding:12px}
.e-mist li>div:last-child{min-width:0;flex:1;display:flex;flex-direction:column;gap:3px}
.e-th .sg,.e-th .scene,.e-th .qmark{width:56px;height:56px}
.e-mq{font-weight:700}

/* exam tab: past scores */
.e-bars{position:relative;display:flex;align-items:flex-end;gap:8px;height:130px;direction:ltr}
.e-bars div{flex:1;max-width:44px;height:100%;position:relative}
.e-bars i{position:absolute;inset-inline:0;bottom:0;height:var(--h);border-radius:8px 8px 3px 3px;background:#CBD2DC}
.e-bars div.ok i{background:var(--ok)}
.e-bars b{position:absolute;inset-inline:0;bottom:calc(var(--h) + 3px);text-align:center;font-size:13px}
.e-bars hr{position:absolute;left:0;right:0;bottom:var(--pass);margin:0;border:0;border-top:2px dashed var(--ink2);opacity:.6}

/* first visit */
.e-wel{text-align:center;display:flex;flex-direction:column;align-items:center;gap:8px;padding:22px 18px}
.e-wel img{width:120px;height:120px;border-radius:50%;background:#fff}
.e-wel h1{font-size:28px;font-weight:800;line-height:1.15}
.e-welp{font-size:18px;font-weight:600}
.e-wel .btn{margin-top:8px}

/* lesson stages */
.e-stage{display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:15px}
.e-stage b{color:var(--acc);font-size:16px}
.e-lcard{padding:22px 16px;display:flex;flex-direction:column;gap:16px}
.e-lcard .l-body{width:100%}
.e-two{display:flex;flex-direction:row!important;gap:10px}
.e-two .btn{flex:1;min-height:50px;font-size:16px;width:auto}
.e-ask{display:flex;flex-direction:column;gap:8px;border:2px solid #F59E0B;background:var(--warnbg)}
.e-ask b{font-size:17px}

/* the page's footer sits above the tab bar, and leaves during a lesson or an exam */
body[data-app=eleve] main{padding-bottom:24px}
body[data-app=eleve] .foot{padding-bottom:96px}
body[data-app=eleve]:has(.e-app.running) .foot{display:none}

/* who is this student + sending the result */
.e-me{display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:14px;margin-bottom:10px;padding:8px 12px;border-radius:12px;background:var(--soft,#eef1f7)}
.e-link{background:none;border:0;padding:6px 2px;font:inherit;font-size:14px;color:inherit;text-decoration:underline;cursor:pointer}
.e-names .btn{font-size:18px;font-weight:700;min-height:56px}
.e-lock{margin:14px 0;display:flex;flex-direction:column;gap:8px}
.e-path+.wa-go{margin-top:16px}
