/* ESAC student portal — mobile app shell (v5.0)
   Phone and tablet layout (up to 980px): app bar, bottom tab bar, bottom sheets,
   compact cards. Desktop keeps the v4 sidebar workspace. Every rule is scoped to
   .esac-app, a class added by student-app-v50.js, so the previous layout remains
   the fallback when the script does not run. */

.esac-appbar,.esac-app-tabbar,.esac-app-playerbar,.esac-app-backdrop,.esac-app-sheet{display:none}
.esac-app-icon{width:22px;height:22px;flex:0 0 auto;display:block}

@media (max-width:980px){
html.esac-app-lock,html.esac-app-lock body{overflow:hidden}

.esac-student-shell.esac-app{--app-navy:#092c45;--app-deep:#061d2e;--app-gold:#c49b38;--app-gold-2:#e2c47e;--app-ink:#15364b;--app-muted:#647a89;--app-line:#e1e8ed;--app-bg:#f2f5f8;--app-card:#fff;--app-radius:16px;--app-bar:56px;--app-tab:62px;--app-safe-b:env(safe-area-inset-bottom,0px);--app-top:var(--wp-admin--admin-bar--height,0px);background:var(--app-bg)!important;min-height:100vh;min-height:100dvh;-webkit-tap-highlight-color:transparent;-webkit-text-size-adjust:100%}
.esac-student-shell.esac-app button,.esac-student-shell.esac-app a{touch-action:manipulation}
.esac-student-shell.esac-app :focus-visible{outline:2px solid var(--app-gold);outline-offset:2px}

/* ---- Replaced desktop chrome ---- */
.esac-student-shell.esac-app .esac-student-header,.esac-student-shell.esac-app .esac-student-hero,.esac-student-shell.esac-app .esac-dashboard-sidebar,.esac-student-shell.esac-app .esac-dashboard-title,.esac-student-shell.esac-app .esac-dashboard-section-head,.esac-student-shell.esac-app .esac-course-player-head{display:none!important}
.esac-student-shell.esac-app>main{max-width:none!important;margin:0!important;padding:14px 14px calc(var(--app-tab) + var(--app-safe-b) + 22px)!important}
.esac-student-shell.esac-app[data-app-mode="player"]>main{padding:0 0 calc(var(--app-tab) + var(--app-safe-b) + 18px)!important}
.esac-student-shell.esac-app[data-app-mode="gate"]>main,.esac-student-shell.esac-app[data-app-mode="loading"]>main{padding-bottom:28px!important}
.esac-student-shell.esac-app .esac-alert{border-radius:12px;font-size:13px;line-height:1.7;margin:0 0 12px}

/* ---- App bar ---- */
.esac-student-shell.esac-app .esac-appbar{display:flex;align-items:center;gap:10px;position:sticky;top:var(--app-top);z-index:60;height:var(--app-bar);padding:0 12px;padding-top:env(safe-area-inset-top,0px);box-sizing:content-box;background:var(--app-deep);color:#fff;box-shadow:0 1px 0 #ffffff14,0 6px 18px #061d2e2e}
.esac-student-shell.esac-app .esac-appbar-logo{flex:0 0 auto;width:36px;height:36px;display:grid;place-items:center}
.esac-student-shell.esac-app .esac-appbar-logo img{width:36px;height:36px;object-fit:contain;display:block}
.esac-student-shell.esac-app .esac-appbar-title{flex:1 1 auto;min-width:0;display:flex;flex-direction:column;justify-content:center;line-height:1.35}
.esac-student-shell.esac-app .esac-appbar-title small{font-size:11px;font-weight:700;color:var(--app-gold-2);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.esac-student-shell.esac-app .esac-appbar-title small:empty{display:none}
.esac-student-shell.esac-app .esac-appbar-title strong{font-size:16px;font-weight:800;color:#fff;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.esac-student-shell.esac-app .esac-appbar-btn{position:relative;flex:0 0 auto;width:42px;height:42px;display:grid;place-items:center;border:0;border-radius:12px;background:#ffffff14;color:#fff;padding:0;cursor:pointer}
.esac-student-shell.esac-app .esac-appbar-btn:active{background:#ffffff29}
.esac-student-shell.esac-app .esac-appbar-btn[hidden],.esac-student-shell.esac-app .esac-appbar-progress[hidden],.esac-student-shell.esac-app .esac-appbar-bell i[hidden]{display:none}
.esac-student-shell.esac-app .esac-appbar-bell i{position:absolute;top:9px;inset-inline-end:10px;width:9px;height:9px;border-radius:50%;background:#f0b429;border:2px solid var(--app-deep)}
.esac-student-shell.esac-app[dir="rtl"] .esac-appbar-back .esac-app-icon{transform:scaleX(-1)}
.esac-student-shell.esac-app .esac-appbar-avatar{flex:0 0 auto;width:42px;height:42px;border-radius:50%;border:2px solid #ffffff38;background:linear-gradient(135deg,var(--app-gold),var(--app-gold-2));color:var(--app-navy);font:inherit;font-size:13px;font-weight:800;padding:0;cursor:pointer;letter-spacing:0}
.esac-student-shell.esac-app .esac-appbar-progress{flex:0 0 auto;font-size:12px;font-weight:800;color:var(--app-navy);background:var(--app-gold-2);border-radius:999px;padding:3px 10px;direction:ltr}
.esac-student-shell.esac-app[data-app-mode="player"] .esac-appbar-logo,.esac-student-shell.esac-app[data-app-mode="player"] .esac-appbar-bell,.esac-student-shell.esac-app[data-app-mode="player"] .esac-appbar-avatar{display:none}
.esac-student-shell.esac-app[data-app-mode="gate"] .esac-appbar-bell,.esac-student-shell.esac-app[data-app-mode="loading"] .esac-appbar-bell{display:none}

/* ---- Bottom tab bar ---- */
.esac-student-shell.esac-app .esac-app-tabbar{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));position:fixed;inset-inline:0;bottom:0;z-index:60;height:var(--app-tab);padding-bottom:var(--app-safe-b);box-sizing:content-box;background:#fffffff2;-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px);border-top:1px solid var(--app-line);box-shadow:0 -6px 22px #092c4512}
.esac-student-shell.esac-app .esac-app-tabbar button{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;min-width:0;border:0;background:none;color:#7b8f9c;font:inherit;font-size:10.5px;font-weight:700;line-height:1.3;padding:6px 2px 4px;cursor:pointer;letter-spacing:0}
.esac-student-shell.esac-app .esac-app-tabbar button span{max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.esac-student-shell.esac-app .esac-app-tabbar button .esac-app-icon{width:24px;height:24px;transition:transform .15s}
.esac-student-shell.esac-app .esac-app-tabbar button.is-active{color:var(--app-navy)}
.esac-student-shell.esac-app .esac-app-tabbar button.is-active .esac-app-icon{color:#a47c1f;transform:translateY(-1px)}
.esac-student-shell.esac-app .esac-app-tabbar button.is-active::before{content:"";position:absolute;top:0;left:50%;width:28px;height:3px;margin-left:-14px;border-radius:0 0 4px 4px;background:var(--app-gold)}
.esac-student-shell.esac-app[data-app-mode="player"] .esac-app-tabbar,.esac-student-shell.esac-app[data-app-mode="gate"] .esac-app-tabbar,.esac-student-shell.esac-app[data-app-mode="loading"] .esac-app-tabbar{display:none}

/* ---- Sheets ---- */
.esac-student-shell.esac-app .esac-app-backdrop{display:block;position:fixed;inset:0;z-index:70;background:#061d2e8c;opacity:0;transition:opacity .2s}
.esac-student-shell.esac-app .esac-app-backdrop.is-open{opacity:1}
.esac-student-shell.esac-app .esac-app-backdrop[hidden],.esac-student-shell.esac-app .esac-app-sheet[hidden]{display:none}
.esac-student-shell.esac-app .esac-app-sheet{display:block;position:fixed;inset-inline:0;bottom:0;z-index:80;max-height:86vh;max-height:86dvh;overflow-y:auto;overscroll-behavior:contain;background:#fff;border-radius:22px 22px 0 0;padding:8px 16px calc(18px + var(--app-safe-b));box-shadow:0 -18px 50px #061d2e40;transform:translateY(104%);transition:transform .22s ease-out}
.esac-student-shell.esac-app .esac-app-sheet.is-open{transform:none}
.esac-student-shell.esac-app .esac-app-sheet-grip{width:40px;height:4px;border-radius:4px;background:#d3dde3;margin:2px auto 12px}
.esac-student-shell.esac-app .esac-app-sheet>header{display:flex;align-items:center;gap:12px;margin-bottom:12px}
.esac-student-shell.esac-app .esac-app-sheet-avatar{flex:0 0 auto;width:48px;height:48px;border-radius:50%;display:grid;place-items:center;background:linear-gradient(135deg,var(--app-gold),var(--app-gold-2));color:var(--app-navy);font-weight:800;font-size:15px}
.esac-student-shell.esac-app .esac-app-sheet>header>div{flex:1;min-width:0}
.esac-student-shell.esac-app .esac-app-sheet>header strong{display:block;font-size:16px;color:var(--app-navy);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.esac-student-shell.esac-app .esac-app-sheet>header small{display:block;font-size:12px;color:var(--app-muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-align:start}
.esac-student-shell.esac-app[dir="rtl"] .esac-app-sheet>header small{text-align:right}
.esac-student-shell.esac-app .esac-app-sheet-close{flex:0 0 auto;width:40px;height:40px;border-radius:50%;border:0;background:#eef3f6;color:var(--app-ink);display:grid;place-items:center;padding:0;cursor:pointer}
.esac-student-shell.esac-app .esac-app-sheet-close .esac-app-icon{width:18px;height:18px}
.esac-student-shell.esac-app .esac-app-code{display:flex;align-items:center;gap:10px;width:100%;box-sizing:border-box;border:1px dashed #dcc48a;background:#fffaf0;border-radius:14px;padding:10px 14px;margin:0 0 10px;font:inherit;color:var(--app-navy);cursor:pointer;text-align:start}
.esac-student-shell.esac-app .esac-app-code>span{flex:1;min-width:0;display:flex;flex-direction:column;align-items:flex-start}
.esac-student-shell.esac-app .esac-app-code small{font-size:11px;color:var(--app-muted);font-weight:700}
.esac-student-shell.esac-app .esac-app-code strong{font-size:16px;letter-spacing:.02em}
.esac-student-shell.esac-app .esac-app-code i{color:#97721f;display:grid}
.esac-student-shell.esac-app .esac-app-code i .esac-app-icon{width:18px;height:18px}
.esac-student-shell.esac-app .esac-app-code em{font-style:normal;font-size:12px;font-weight:800;color:#8a6a1d}
.esac-student-shell.esac-app .esac-app-code.is-copied{border-style:solid;border-color:#a9d6bb;background:#f0f9f3}
.esac-student-shell.esac-app .esac-app-code.is-copied i,.esac-student-shell.esac-app .esac-app-code.is-copied em{color:#23704a}
.esac-student-shell.esac-app .esac-app-sheet ul{list-style:none;margin:0;padding:0}
.esac-student-shell.esac-app .esac-app-sheet li+li{border-top:1px solid #eef2f5}
.esac-student-shell.esac-app .esac-app-sheet li button{display:flex;align-items:center;gap:12px;width:100%;min-height:54px;border:0;background:none;font:inherit;font-size:14.5px;font-weight:700;color:var(--app-ink);padding:6px 2px;cursor:pointer;text-align:start}
.esac-student-shell.esac-app .esac-app-sheet li button>i{flex:0 0 auto;width:38px;height:38px;border-radius:11px;display:grid;place-items:center;background:#eef3f6;color:var(--app-navy)}
.esac-student-shell.esac-app .esac-app-sheet li button>i .esac-app-icon{width:20px;height:20px}
.esac-student-shell.esac-app .esac-app-sheet li button>span{flex:1;min-width:0}
.esac-student-shell.esac-app .esac-app-sheet li button>b{font-size:12px;font-weight:700;color:var(--app-muted);background:#eef3f6;border-radius:999px;padding:2px 10px}
.esac-student-shell.esac-app .esac-app-sheet li button>em{color:#a9b8c2;display:grid}
.esac-student-shell.esac-app .esac-app-sheet li button>em .esac-app-icon{width:16px;height:16px}
.esac-student-shell.esac-app[dir="rtl"] .esac-app-sheet li button>em .esac-app-icon{transform:scaleX(-1)}
.esac-student-shell.esac-app .esac-app-sheet li button.is-danger{color:#a23b3b}
.esac-student-shell.esac-app .esac-app-sheet li button.is-danger>i{background:#fbeaea;color:#a23b3b}
.esac-student-shell.esac-app .esac-app-sheet li button.is-danger>em{display:none}

/* ---- Dashboard frame ---- */
.esac-student-shell.esac-app .esac-dashboard-layout{display:block!important}
.esac-student-shell.esac-app .esac-dashboard-workspace{display:flex;flex-direction:column;gap:12px}
.esac-student-shell.esac-app .esac-dashboard-content{background:none!important;border:0!important;box-shadow:none!important;border-radius:0!important;padding:0!important}
.esac-student-shell.esac-app #esacStudentView{outline:0}

/* Quick stats: one compact strip */
.esac-student-shell.esac-app .esac-dashboard-metrics{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:0!important;margin:0!important;background:var(--app-card);border:1px solid var(--app-line);border-radius:var(--app-radius);padding:10px 4px}
.esac-student-shell.esac-app .esac-dashboard-metrics[hidden]{display:none!important}
.esac-student-shell.esac-app .esac-dashboard-metrics article{display:flex!important;flex-direction:column;align-items:center;justify-content:flex-start;gap:0;background:none!important;border:0!important;box-shadow:none!important;border-radius:0!important;padding:2px 4px!important;min-height:0!important;min-width:0;text-align:center}
.esac-student-shell.esac-app .esac-dashboard-metrics article+article{border-inline-start:1px solid #edf1f4!important}
.esac-student-shell.esac-app .esac-dashboard-metrics article>span{display:none!important}
.esac-student-shell.esac-app .esac-dashboard-metrics article>div{display:flex;flex-direction:column-reverse;align-items:center;gap:2px;min-width:0}
.esac-student-shell.esac-app .esac-dashboard-metrics article strong{font-size:20px!important;line-height:1.2!important;color:var(--app-navy)!important;margin:0!important}
.esac-student-shell.esac-app .esac-dashboard-metrics article small{font-size:10.5px!important;line-height:1.45!important;color:var(--app-muted)!important;font-weight:700;letter-spacing:0!important;text-transform:none!important;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}

/* ---- Home ---- */
.esac-student-shell.esac-app .esac-home{display:flex;flex-direction:column;gap:12px}
.esac-student-shell.esac-app .esac-home-row{display:contents}
.esac-student-shell.esac-app .esac-home-resume{order:1;display:block;border-radius:18px;padding:18px}
.esac-student-shell.esac-app .esac-home-next{order:2}
.esac-student-shell.esac-app .esac-home-goal{order:3}
.esac-student-shell.esac-app .esac-home-streak{order:4}
.esac-student-shell.esac-app .esac-home-news{order:5}
.esac-student-shell.esac-app .esac-home-activity{order:6}
.esac-student-shell.esac-app .esac-home-badges{order:7}
.esac-student-shell.esac-app .esac-home-resume h3{font-size:19px;margin:6px 0 4px}
.esac-student-shell.esac-app .esac-home-resume p{font-size:12.5px;margin-bottom:12px}
.esac-student-shell.esac-app .esac-home-resume-progress{max-width:none}
.esac-student-shell.esac-app .esac-home-resume>button{width:100%;justify-content:center;margin-top:14px;min-height:48px;border-radius:13px;font-size:14.5px}
.esac-student-shell.esac-app .esac-home-card{border-radius:var(--app-radius);padding:14px;border-color:var(--app-line)}
.esac-student-shell.esac-app .esac-home-card>header{margin-bottom:10px;gap:10px}
.esac-student-shell.esac-app .esac-home-card>header>span{width:36px;height:36px;border-radius:11px}
.esac-student-shell.esac-app .esac-home-card>header h3{font-size:15px;margin:0}
.esac-student-shell.esac-app .esac-home-card>header small{font-size:11px}
.esac-student-shell.esac-app .esac-home-goal-body{display:flex!important;flex-direction:row!important;gap:14px;align-items:center;text-align:start!important}
.esac-student-shell.esac-app .esac-home-goal-body>div:last-child{flex:1;min-width:0}
.esac-student-shell.esac-app .esac-goal-form{justify-content:flex-start!important}
.esac-student-shell.esac-app .esac-ring-wrap{width:88px;height:88px}
.esac-student-shell.esac-app .esac-ring-wrap svg{width:88px;height:88px}
.esac-student-shell.esac-app .esac-ring-wrap strong{font-size:22px}
.esac-student-shell.esac-app .esac-home-goal-body p{font-size:13px;margin-bottom:8px}
.esac-student-shell.esac-app .esac-goal-form select,.esac-student-shell.esac-app .esac-goal-form button{min-height:40px}
.esac-student-shell.esac-app .esac-goal-form label>span{font-size:11px}
.esac-student-shell.esac-app .esac-home-streak dl{grid-template-columns:repeat(4,minmax(0,1fr));gap:6px}
.esac-student-shell.esac-app .esac-home-streak dl>div{padding:8px 4px;text-align:center;display:flex;flex-direction:column-reverse;justify-content:flex-end;gap:2px;border-radius:12px}
.esac-student-shell.esac-app .esac-home-streak dd{font-size:18px;margin:0;line-height:1.25}
.esac-student-shell.esac-app .esac-home-streak dt{font-size:10.5px;line-height:1.45}
.esac-student-shell.esac-app .esac-heatmap{width:100%;box-sizing:border-box;grid-template-rows:repeat(7,auto);grid-auto-columns:minmax(0,1fr);gap:4px;overflow:visible;padding:0}
.esac-student-shell.esac-app .esac-heatmap i{width:auto;height:15px;border-radius:4px}
.esac-student-shell.esac-app .esac-home-next li{padding:9px 0;gap:10px}
.esac-student-shell.esac-app .esac-home-next li strong{white-space:normal;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;line-height:1.55}
.esac-student-shell.esac-app .esac-home-next li button{min-height:38px;padding:6px 12px;border-radius:10px}
.esac-student-shell.esac-app .esac-home-news h4{font-size:14px;margin:4px 0 8px}
.esac-student-shell.esac-app .esac-home-link{min-height:36px}
.esac-student-shell.esac-app .esac-home-badges ul{display:flex;gap:10px;overflow-x:auto;scroll-snap-type:x proximity;-webkit-overflow-scrolling:touch;margin:0 -14px;padding:2px 14px 6px;scrollbar-width:none}
.esac-student-shell.esac-app .esac-home-badges ul::-webkit-scrollbar{display:none}
.esac-student-shell.esac-app .esac-home-badges li{flex:0 0 124px;scroll-snap-align:start;padding:12px 8px;border-radius:14px}

/* ---- Toolbars, chips, search ---- */
.esac-student-shell.esac-app .esac-student-toolbar{display:flex;flex-direction:column-reverse;align-items:stretch;gap:10px;margin:0 0 12px}
.esac-student-shell.esac-app .esac-student-search{min-width:0;flex:none;width:100%;box-sizing:border-box;border-radius:13px;background:#fff}
.esac-student-shell.esac-app .esac-student-search input{min-height:46px;font-size:16px}
.esac-student-shell.esac-app .esac-filter-chips{align-self:stretch;width:calc(100% + 28px)!important;max-width:calc(100% + 28px)!important;min-width:0!important;box-sizing:border-box;flex-wrap:nowrap;overflow-x:auto;gap:8px;margin:0 -14px;padding:0 14px 2px;scrollbar-width:none;-webkit-overflow-scrolling:touch}
.esac-student-shell.esac-app .esac-filter-chips::-webkit-scrollbar{display:none}
.esac-student-shell.esac-app .esac-filter-chips button{flex:0 0 auto;min-height:38px;padding:6px 14px;font-size:13px;white-space:nowrap}
.esac-student-shell.esac-app .esac-toolbar-count{align-self:flex-end}

/* ---- Courses ---- */
.esac-student-shell.esac-app .esac-student-course-grid{display:grid!important;grid-template-columns:1fr!important;gap:12px!important}
.esac-student-shell.esac-app .esac-student-course{border-radius:var(--app-radius)!important;overflow:hidden;padding:0!important;border-color:var(--app-line)!important;box-shadow:0 2px 10px #092c450a!important}
.esac-student-shell.esac-app .esac-student-course-cover{min-height:118px!important;height:auto!important;padding:12px 14px!important;border-radius:0!important}
.esac-student-shell.esac-app .esac-student-course-cover strong{font-size:16.5px!important;line-height:1.5!important}
.esac-student-shell.esac-app .esac-student-course-cover small{font-size:11.5px!important}
.esac-student-shell.esac-app .esac-student-course-body{padding:12px 14px 14px!important;gap:8px!important}
.esac-student-shell.esac-app .esac-course-statline{display:none!important}
.esac-student-shell.esac-app .esac-student-course-body>button,.esac-student-shell.esac-app .esac-student-course-body>.esac-course-renew{min-height:46px!important;border-radius:12px!important;font-size:14px!important}

/* ---- Exams .esac-student-shell.esac-app tests ---- */
.esac-student-shell.esac-app .esac-final-results-toolbar{margin:0 0 12px}
.esac-student-shell.esac-app .esac-final-results-toolbar button{width:100%;justify-content:center;min-height:44px;border-radius:12px}
.esac-student-shell.esac-app .esac-assessment-sections{display:flex;flex-direction:column;gap:18px}
.esac-student-shell.esac-app .esac-assessment-section>header{display:block!important;margin:0 0 10px!important;padding:0!important}
.esac-student-shell.esac-app .esac-assessment-section>header span{font-size:15px!important;font-weight:800!important;color:var(--app-navy)!important;letter-spacing:0!important;text-transform:none!important}
.esac-student-shell.esac-app .esac-assessment-section>header h3{font-size:12.5px!important;font-weight:500!important;line-height:1.7!important;color:var(--app-muted)!important;margin:2px 0 0!important}
.esac-student-shell.esac-app .esac-assessment-section>header>b{display:flex!important;font-size:11.5px!important;font-weight:600!important;margin-top:6px!important;white-space:normal!important}
.esac-student-shell.esac-app .esac-module-test-grid,.esac-student-shell.esac-app .esac-final-request-grid,.esac-student-shell.esac-app .esac-student-exams{display:grid!important;grid-template-columns:1fr!important;gap:12px!important}
.esac-student-shell.esac-app .esac-module-test-card,.esac-student-shell.esac-app .esac-final-request-card,.esac-student-shell.esac-app .esac-student-exams>article{border-radius:var(--app-radius)!important;padding:14px!important}
.esac-student-shell.esac-app .esac-exam-heading h2{font-size:16px!important;line-height:1.5!important}
.esac-student-shell.esac-app .esac-module-test-card>button,.esac-student-shell.esac-app .esac-final-request-card>button,.esac-student-shell.esac-app .esac-student-exams>article>a{min-height:46px!important;border-radius:12px!important}

/* ---- Announcements ---- */
.esac-student-shell.esac-app .esac-announcement-list{gap:10px}
.esac-student-shell.esac-app .esac-announcement-list article{border-radius:var(--app-radius);padding:14px}
.esac-student-shell.esac-app .esac-announcement-list h2{font-size:15.5px;line-height:1.55;margin:4px 0 6px}
.esac-student-shell.esac-app .esac-announcement-copy{font-size:13.5px;line-height:1.85}
.esac-student-shell.esac-app .esac-announcement-copy img,.esac-student-shell.esac-app .esac-lesson-content img,.esac-student-shell.esac-app .esac-lesson-content iframe,.esac-student-shell.esac-app .esac-lesson-content video{max-width:100%;height:auto}
.esac-student-shell.esac-app .esac-lesson-content table{display:block;max-width:100%;overflow-x:auto}

/* ---- Certificates ---- */
.esac-student-shell.esac-app .esac-student-certificate-list article{border-radius:var(--app-radius);padding:14px}
.esac-student-shell.esac-app .esac-student-certificate-list h2{font-size:16px;line-height:1.5}
.esac-student-shell.esac-app .esac-certificate-language-row>span{display:grid!important;grid-template-columns:1fr 1fr!important;gap:8px!important}
.esac-student-shell.esac-app .esac-certificate-language-row a,.esac-student-shell.esac-app .esac-certificate-card-actions>a{min-height:44px!important;height:auto!important;padding:8px 10px!important;border-radius:11px!important;box-sizing:border-box}

/* ---- Notes ---- */
.esac-student-shell.esac-app .esac-notes-list article{border-radius:var(--app-radius);padding:14px}
.esac-student-shell.esac-app .esac-notes-list footer button{min-height:40px;border-radius:10px}

/* ---- Profile ---- */
.esac-student-shell.esac-app .esac-profile{gap:12px}
.esac-student-shell.esac-app .esac-profile-card{border-radius:var(--app-radius);padding:14px;gap:12px;align-items:flex-start}
.esac-student-shell.esac-app .esac-profile-card .esac-dashboard-avatar{width:54px;height:54px;font-size:18px}
.esac-student-shell.esac-app .esac-profile-card h3{font-size:17px}
.esac-student-shell.esac-app .esac-profile-grid{grid-template-columns:1fr;gap:0;background:#fff;border:1px solid var(--app-line);border-radius:var(--app-radius);overflow:hidden}
.esac-student-shell.esac-app .esac-profile-grid>div{display:flex;align-items:center;justify-content:space-between;gap:12px;border:0!important;border-radius:0!important;background:none!important;padding:12px 14px!important;min-height:50px;box-sizing:border-box}
.esac-student-shell.esac-app .esac-profile-grid>div+div{border-top:1px solid #eef2f5!important}
.esac-student-shell.esac-app .esac-profile-grid dt{flex:0 0 auto;max-width:55%;font-size:12.5px;margin:0}
.esac-student-shell.esac-app .esac-profile-grid dd{flex:1;min-width:0;margin:0;font-size:13.5px;text-align:right;overflow-wrap:anywhere}
.esac-student-shell.esac-app[dir="rtl"] .esac-profile-grid dd{text-align:left}
.esac-student-shell.esac-app .esac-profile-note{border-radius:var(--app-radius)}

/* ---- Empty states ---- */
.esac-student-shell.esac-app .esac-student-empty{border-radius:var(--app-radius);padding:32px 18px}
.esac-student-shell.esac-app .esac-student-empty h2{font-size:17px}

/* ---- Course player ---- */
.esac-student-shell.esac-app .esac-learning-layout{display:block!important}
.esac-student-shell.esac-app .esac-lesson-stage{background:none!important;border:0!important;border-radius:0!important;box-shadow:none!important;padding:0 14px!important;min-height:0!important}
.esac-student-shell.esac-app .esac-lesson-stage>.esac-student-empty{margin-top:14px}
.esac-student-shell.esac-app .esac-video-shell{margin:0 -14px 14px!important;border-radius:0!important;width:auto!important;max-width:none!important}
.esac-student-shell.esac-app[data-app-video="none"] .esac-video-shell{aspect-ratio:auto!important;height:auto!important;margin:14px 0!important;border-radius:var(--app-radius)!important}
.esac-student-shell.esac-app[data-app-video="none"] .esac-no-video{height:auto;padding:22px 18px;gap:8px}
.esac-student-shell.esac-app[data-app-video="none"] .esac-no-video h2{font-size:17px;margin:0}
.esac-student-shell.esac-app[data-app-video="none"] .esac-no-video p{font-size:13px;margin:0 0 6px}
.esac-student-shell.esac-app[data-app-video="none"] .esac-no-video .esac-mark-complete{position:static!important;min-height:46px;border-radius:12px;padding:10px 22px}
.esac-student-shell.esac-app .esac-lesson-title{display:block!important;margin:0 0 12px!important;padding:0!important}
.esac-student-shell.esac-app .esac-lesson-title>div>span{font-size:11.5px!important;line-height:1.7!important;letter-spacing:0!important}
.esac-student-shell.esac-app .esac-lesson-title h1{font-size:20px!important;line-height:1.5!important;margin:4px 0 2px!important}
.esac-student-shell.esac-app .esac-lesson-title p{font-size:13px!important;margin:0!important}
.esac-student-shell.esac-app .esac-lesson-title aside{margin-top:8px!important;text-align:start!important;align-items:flex-start!important}
.esac-student-shell.esac-app .esac-lesson-content{grid-template-columns:1fr!important;gap:14px!important;font-size:14px}
.esac-student-shell.esac-app .esac-attachments a{display:flex;align-items:center;justify-content:space-between;min-height:46px;margin:6px 0;border-radius:12px;box-sizing:border-box}
.esac-student-shell.esac-app .esac-lesson-notes{border-radius:var(--app-radius);padding:14px}
.esac-student-shell.esac-app .esac-lesson-notes textarea{font-size:16px}
.esac-student-shell.esac-app .esac-lesson-notes footer{flex-wrap:wrap}
.esac-student-shell.esac-app .esac-lesson-notes footer button{min-height:42px}
.esac-student-shell.esac-app .esac-student-quiz label{min-height:48px}
.esac-student-shell.esac-app .esac-quiz-submit .esac-quiz-primary,.esac-student-shell.esac-app .esac-quiz-result .esac-quiz-primary{min-height:48px;width:100%;justify-content:center;border-radius:12px}

/* Lesson navigation bar */
.esac-student-shell.esac-app[data-app-mode="player"] .esac-app-playerbar{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.5fr) minmax(0,1fr);gap:8px;align-items:center;position:fixed;inset-inline:0;bottom:0;z-index:60;height:var(--app-tab);padding:0 10px var(--app-safe-b);box-sizing:content-box;background:#fffffff2;-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px);border-top:1px solid var(--app-line);box-shadow:0 -6px 22px #092c4512}
.esac-student-shell.esac-app .esac-app-playerbar button{display:flex;align-items:center;justify-content:center;gap:6px;min-width:0;height:46px;border:1px solid var(--app-line);border-radius:13px;background:#fff;color:var(--app-navy);font:inherit;font-size:13px;font-weight:800;padding:0 8px;cursor:pointer;letter-spacing:0}
.esac-student-shell.esac-app .esac-app-playerbar button .esac-app-icon{width:18px;height:18px}
.esac-student-shell.esac-app .esac-app-playerbar button:disabled{opacity:.4;cursor:default}
.esac-student-shell.esac-app .esac-app-playerbar button.is-primary{background:var(--app-navy);border-color:var(--app-navy);color:#fff;gap:9px}
.esac-student-shell.esac-app .esac-app-playerbar button.is-primary>span{display:flex;flex-direction:column;align-items:flex-start;min-width:0;line-height:1.35}
.esac-student-shell.esac-app .esac-app-playerbar button.is-primary b{font-size:13px;white-space:nowrap}
.esac-student-shell.esac-app .esac-app-playerbar button.is-primary small{font-size:10.5px;font-weight:600;color:var(--app-gold-2);white-space:nowrap}

/* Course contents as a bottom sheet */
.esac-student-shell.esac-app .esac-curriculum{position:fixed!important;top:auto!important;inset-inline:0!important;bottom:0!important;z-index:80;width:auto!important;max-width:none!important;height:auto!important;max-height:82vh!important;max-height:82dvh!important;margin:0!important;overflow-y:auto!important;overscroll-behavior:contain;border:0!important;border-radius:22px 22px 0 0!important;box-shadow:0 -18px 50px #061d2e40!important;padding-bottom:calc(14px + var(--app-safe-b))!important;transform:translateY(104%);visibility:hidden;transition:transform .22s ease-out,visibility 0s .22s}
.esac-student-shell.esac-app.is-curriculum-open .esac-curriculum{transform:none;visibility:visible;transition:transform .22s ease-out}
.esac-student-shell.esac-app .esac-curriculum>header{position:sticky;top:0;z-index:2;background:#fff;padding-top:22px!important}
.esac-student-shell.esac-app .esac-curriculum>header::before{content:"";position:absolute;top:9px;left:50%;width:40px;height:4px;margin-left:-20px;border-radius:4px;background:#d3dde3}
.esac-student-shell.esac-app .esac-curriculum>header h2{font-size:16px!important;margin:2px 0 8px!important}
.esac-student-shell.esac-app .esac-curriculum section>button{min-height:52px}
}

/* Keep the video in view while reading the lesson (portrait phones only). */
@media (max-width:980px) and (orientation:portrait){
.esac-student-shell.esac-app[data-app-video="video"] .esac-video-shell{position:sticky;top:calc(var(--app-top) + var(--app-bar) + env(safe-area-inset-top,0px));z-index:30;box-shadow:0 8px 20px #061d2e33}
}

@media (max-width:980px) and (prefers-reduced-motion:reduce){
.esac-student-shell.esac-app .esac-app-sheet,.esac-student-shell.esac-app .esac-curriculum,.esac-student-shell.esac-app .esac-app-backdrop,.esac-student-shell.esac-app .esac-app-tabbar button .esac-app-icon{transition:none!important}
}

/* Small phones */
@media (max-width:359px){
.esac-student-shell.esac-app .esac-app-tabbar button{font-size:9.5px}
.esac-student-shell.esac-app .esac-dashboard-metrics article small{font-size:9.5px!important}
.esac-student-shell.esac-app .esac-home-streak dl{grid-template-columns:repeat(2,minmax(0,1fr))}
.esac-student-shell.esac-app .esac-app-playerbar button:not(.is-primary) span{display:none}
.esac-student-shell.esac-app .esac-app-playerbar{grid-template-columns:52px minmax(0,1fr) 52px!important}
}

/* Tablets: two columns where cards allow it */
@media (min-width:700px) and (max-width:980px){
.esac-student-shell.esac-app>main{padding-inline:22px!important}
.esac-student-shell.esac-app .esac-student-course-grid,.esac-student-shell.esac-app .esac-module-test-grid,.esac-student-shell.esac-app .esac-final-request-grid,.esac-student-shell.esac-app .esac-student-exams{grid-template-columns:repeat(2,minmax(0,1fr))!important}
.esac-student-shell.esac-app .esac-app-tabbar{grid-template-columns:repeat(5,minmax(0,120px));justify-content:center}
.esac-student-shell.esac-app .esac-app-sheet,.esac-student-shell.esac-app .esac-curriculum{inset-inline:max(0px,calc(50% - 300px))!important;max-width:600px!important}
.esac-student-shell.esac-app .esac-lesson-stage{max-width:760px;margin-inline:auto}
}

/* Home quick access to courses: swipeable strip on phones (v3.19.0) */
@media (max-width:980px){
.esac-student-shell.esac-app .esac-home-courses{order:1}
.esac-student-shell.esac-app .esac-home-courses ul{display:flex;gap:10px;overflow-x:auto;scroll-snap-type:x proximity;-webkit-overflow-scrolling:touch;margin:0 -14px;padding:2px 14px 6px;scrollbar-width:none}
.esac-student-shell.esac-app .esac-home-courses ul::-webkit-scrollbar{display:none}
.esac-student-shell.esac-app .esac-home-courses li{flex:0 0 82%;max-width:320px;scroll-snap-align:start}
.esac-student-shell.esac-app .esac-home-courses li:only-child{flex-basis:100%;max-width:none}
}

@media (max-width:980px){
.esac-student-shell.esac-app .esac-browse-banner .esac-browse-courses{width:100%}
.esac-student-shell.esac-app .esac-home-resume.is-empty .esac-browse-courses{width:100%;min-height:48px}
}

/* Exams tab v2 on phones (v3.21.0) */
@media (max-width:980px){
.esac-student-shell.esac-app .esac-exams-v2{gap:12px}
.esac-student-shell.esac-app .esac-exam-next{padding:16px;border-radius:18px;gap:12px}
.esac-student-shell.esac-app .esac-exam-next-icon{width:46px;height:46px;border-radius:14px}
.esac-student-shell.esac-app .esac-exam-next-copy{flex:1 1 0}
.esac-student-shell.esac-app .esac-exam-next-copy h3{font-size:17px}
.esac-student-shell.esac-app .esac-exam-next>button,.esac-student-shell.esac-app .esac-exam-next>a{flex:1 1 100%}
.esac-student-shell.esac-app .esac-exam-summary{grid-template-columns:repeat(4,minmax(0,1fr));gap:0;background:#fff;border:1px solid var(--app-line);border-radius:var(--app-radius);padding:10px 4px}
.esac-student-shell.esac-app .esac-exam-summary>div{display:flex;flex-direction:column;align-items:center;gap:1px;border:0;border-radius:0;background:none;padding:2px 4px;text-align:center}
.esac-student-shell.esac-app .esac-exam-summary>div+div{border-inline-start:1px solid #edf1f4}
.esac-student-shell.esac-app .esac-exam-summary span{width:30px;height:30px;border-radius:9px;margin-bottom:3px}
.esac-student-shell.esac-app .esac-exam-summary span .esac-ui-icon{width:15px;height:15px}
.esac-student-shell.esac-app .esac-exam-summary strong{font-size:18px}
.esac-student-shell.esac-app .esac-exam-summary small{font-size:10.5px;white-space:normal;line-height:1.4}
.esac-student-shell.esac-app .esac-exam-toolbar{flex-direction:column;align-items:stretch}
.esac-student-shell.esac-app .esac-exam-refresh{align-self:flex-start;min-height:38px}
.esac-student-shell.esac-app .esac-exams-v2 .esac-module-test-grid,.esac-student-shell.esac-app .esac-exams-v2 .esac-final-request-grid,.esac-student-shell.esac-app .esac-exams-v2 .esac-student-exams{grid-template-columns:1fr!important;gap:12px!important}
.esac-student-shell.esac-app .esac-exams-v2 .esac-assessment-section>header>div>span{font-size:16px!important}
.esac-student-shell.esac-app .esac-exams-v2 .esac-assessment-section>header h3{font-size:12.5px!important}
}
@media (min-width:700px) and (max-width:980px){
.esac-student-shell.esac-app .esac-exams-v2 .esac-module-test-grid,.esac-student-shell.esac-app .esac-exams-v2 .esac-final-request-grid,.esac-student-shell.esac-app .esac-exams-v2 .esac-student-exams{grid-template-columns:repeat(2,minmax(0,1fr))!important}
}

/* ---- Paid completion certificates (Learning Core 3.41.0) ---- */
.esac-completion-offers{margin:0 0 18px;padding:18px;border:1px solid var(--app-line,#e1e8ed);border-radius:var(--app-radius,16px);background:#fff;box-shadow:0 7px 20px rgba(7,40,61,.04)}
.esac-completion-offers>header{display:flex;align-items:center;gap:12px;margin:0 0 14px}
.esac-completion-offers>header>span{display:grid;place-items:center;flex:0 0 44px;width:44px;height:44px;border-radius:12px;background:#fff6e2;color:var(--app-gold,#c49b38)}
.esac-completion-offers>header>span .esac-ui-icon{width:22px;height:22px}
.esac-completion-offers>header h2{margin:0;color:var(--app-ink,#15364b);font-size:17px;line-height:1.4}
.esac-completion-offers>header p{margin:2px 0 0;color:var(--app-muted,#647a89);font-size:13px;line-height:1.7}
.esac-completion-offer-list{display:grid;gap:10px}
.esac-completion-offer-list article{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:14px 16px;border:1px solid var(--app-line,#e1e8ed);border-radius:14px;background:#fbfcfd}
.esac-completion-offer-list article.is-available{border-color:#e6cf93;background:#fffbf1}
.esac-completion-offer-list article.is-requested{border-color:#cfe0ec;background:#f5f9fc}
.esac-completion-offer-list article.is-revoked{border-color:#f1c9c4;background:#fff6f5}
.esac-completion-offer-main{min-width:0}
.esac-completion-offer-main small{color:var(--app-muted,#647a89);font-size:12px;font-weight:700}
.esac-completion-offer-main small code{background:none;padding:0;color:inherit}
.esac-completion-offer-main h3{margin:3px 0 6px;color:var(--app-ink,#15364b);font-size:15.5px;line-height:1.5}
.esac-completion-status{display:flex;align-items:flex-start;gap:6px;margin:0;color:var(--app-muted,#647a89);font-size:13px;line-height:1.6}
.esac-completion-status .esac-ui-icon{flex:0 0 15px;width:15px;height:15px;margin-top:3px}
.is-available .esac-completion-status{color:#0a7a50}
.is-requested .esac-completion-status{color:#1d5f8a}
.is-revoked .esac-completion-status{color:#b42318}
.esac-completion-offer-side{display:flex;align-items:center;gap:14px;flex:0 0 auto}
.esac-completion-price{display:grid;text-align:end}
.esac-completion-price small{color:var(--app-muted,#647a89);font-size:11.5px;font-weight:700}
.esac-completion-price b{color:var(--app-ink,#15364b);font-size:17px;white-space:nowrap}
.esac-completion-buy{display:inline-flex;align-items:center;gap:7px;min-height:44px;padding:0 16px;border-radius:12px;background:var(--app-gold,#c49b38);color:#1d1503!important;font-size:14px;font-weight:800;text-decoration:none!important;white-space:nowrap;transition:background .2s}
.esac-completion-buy:hover{background:#b48a2c}
.esac-completion-buy .esac-ui-icon{width:17px;height:17px}
.esac-completion-buy.is-disabled{background:#eef2f5;color:var(--app-muted,#647a89)!important;cursor:not-allowed}
.esac-completion-note{margin:0;color:var(--app-muted,#647a89);font-size:12.5px;max-width:220px}
@media (max-width:640px){
  .esac-completion-offers{padding:14px}
  .esac-completion-offer-list article{flex-direction:column;align-items:stretch;gap:12px}
  .esac-completion-offer-side{justify-content:space-between}
  .esac-completion-price{text-align:start}
}
.esac-completion-request-note{margin:0 0 12px;padding:10px 12px;border-radius:10px;background:#fff6e2;color:#7a5a10;font-size:13px;font-weight:700}

/* ---- Lesson complete → next step modal (Learning Core 3.42.0) ---- */
.esac-lesson-modal{position:fixed;inset:0;z-index:100050;display:grid;place-items:center;padding:20px;font-family:inherit;opacity:0;transition:opacity .2s ease}
.esac-lesson-modal.is-open{opacity:1}
.esac-lesson-modal-backdrop{position:absolute;inset:0;background:rgba(6,24,38,.62);backdrop-filter:blur(6px);-webkit-backdrop-filter:blur(6px)}
.esac-lesson-modal-card{position:relative;width:min(520px,100%);max-height:calc(100vh - 40px);overflow:auto;padding:30px 28px 24px;border-radius:24px;background:#fff;box-shadow:0 30px 80px rgba(3,20,33,.35);transform:translateY(14px) scale(.98);transition:transform .25s cubic-bezier(.2,.8,.2,1);outline:none;color:#15364b}
.esac-lesson-modal.is-open .esac-lesson-modal-card{transform:none}
.esac-lesson-modal-x{position:absolute;top:14px;inset-inline-end:14px;display:grid;place-items:center;width:36px;height:36px;padding:0;border:0;border-radius:50%;background:#f1f5f8;color:#5b6f7d;cursor:pointer}
.esac-lesson-modal-x:hover{background:#e6edf2;color:#15364b}
.esac-lesson-modal-x .esac-ui-icon{width:18px;height:18px}
.esac-lesson-modal-card>header{display:grid;justify-items:center;gap:6px;text-align:center;margin-bottom:20px}
.esac-lesson-modal-badge{display:grid;place-items:center;width:64px;height:64px;margin-bottom:6px;border-radius:50%;background:linear-gradient(135deg,#0a7a50,#16a06c);color:#fff;box-shadow:0 0 0 8px #e9f7f0}
.esac-lesson-modal-badge.is-partial{background:linear-gradient(135deg,#b8860f,#dfad38);box-shadow:0 0 0 8px #fff5dc}
.esac-lesson-modal-badge .esac-ui-icon{width:30px;height:30px;stroke-width:2.4}
.esac-lesson-modal-card>header small{color:#0a7a50;font-size:13px;font-weight:800}
.esac-lesson-modal-badge.is-partial+small{color:#9a6a00}
.esac-lesson-modal-card>header h2{margin:0;color:#15364b;font-size:20px;line-height:1.45}
.esac-lesson-modal-card>header p{margin:0;color:#7a8d99;font-size:12.5px}
.esac-lesson-modal-progress{margin:0 0 18px;padding:14px 16px;border-radius:16px;background:#f5f8fa}
.esac-lesson-modal-progress>div{display:flex;justify-content:space-between;align-items:baseline;margin-bottom:8px;font-size:13px;color:#5b6f7d;font-weight:700}
.esac-lesson-modal-progress>div b{color:#15364b;font-size:16px}
.esac-lesson-modal-progress i{display:block;height:8px;border-radius:99px;background:#e2e9ee;overflow:hidden}
.esac-lesson-modal-progress s{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,#c49b38,#dfad38);text-decoration:none;transition:width .6s ease}
[dir="rtl"] .esac-lesson-modal-progress s{margin-inline-start:auto}
.esac-lesson-modal-progress small{display:block;margin-top:7px;color:#8a9aa5;font-size:12px}
.esac-next-step{margin:0 0 20px}
.esac-next-step>small{display:block;margin-bottom:8px;color:#b8860f;font-size:12px;font-weight:800;letter-spacing:.02em}
.esac-next-step-card{display:flex;align-items:center;gap:14px;padding:14px 16px;border:1.5px solid #e3e9ee;border-radius:16px;background:#fff}
.esac-next-step.is-quiz .esac-next-step-card{border-color:#e9d39a;background:#fffbf1}
.esac-next-step.is-locked .esac-next-step-card{opacity:.75}
.esac-next-step-icon{display:grid;place-items:center;flex:0 0 48px;width:48px;height:48px;border-radius:14px;background:#0b3957;color:#fff}
.esac-next-step.is-quiz .esac-next-step-icon{background:#c49b38}
.esac-next-step.is-done .esac-next-step-icon{background:#0a7a50}
.esac-next-step-icon .esac-ui-icon{width:24px;height:24px}
.esac-next-step-card>div{min-width:0}
.esac-next-step-card strong{display:block;color:#15364b;font-size:15.5px;line-height:1.5}
.esac-next-step-card p{display:flex;flex-wrap:wrap;gap:6px 14px;margin:5px 0 0}
.esac-next-step-card em{display:inline-flex;align-items:center;gap:5px;color:#6b7f8c;font-size:12.5px;font-style:normal}
.esac-next-step-card em .esac-ui-icon{width:14px;height:14px}
.esac-next-step-lock{display:flex;align-items:flex-start;gap:7px;margin:10px 0 0;padding:10px 12px;border-radius:12px;background:#fff6e2;color:#7a5a10;font-size:12.5px;line-height:1.7}
.esac-next-step-lock .esac-ui-icon{flex:0 0 15px;width:15px;height:15px;margin-top:3px}
.esac-lesson-modal-card>footer{display:flex;flex-wrap:wrap;gap:10px}
.esac-lesson-modal-primary{flex:1 1 100%;display:inline-flex;align-items:center;justify-content:center;gap:9px;min-height:54px;padding:0 20px;border:0;border-radius:14px;background:#0b3957;color:#fff;font:inherit;font-size:16px;font-weight:800;cursor:pointer;transition:background .2s,transform .2s;box-shadow:0 10px 24px rgba(11,57,87,.25)}
.esac-lesson-modal-primary:hover{background:#0e4a70;transform:translateY(-1px)}
.esac-lesson-modal-primary[data-next-action="quiz"]{background:#c49b38;color:#1d1503;box-shadow:0 10px 24px rgba(196,155,56,.3)}
.esac-lesson-modal-primary[data-next-action="quiz"]:hover{background:#b48a2c}
.esac-lesson-modal-primary .esac-ui-icon{width:21px;height:21px}
.esac-lesson-modal-primary.is-busy{opacity:.7;cursor:progress}
.esac-lesson-modal-ghost{flex:1 1 0;display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:46px;padding:0 14px;border:1px solid #dbe4ea;border-radius:12px;background:#fff;color:#35505f;font:inherit;font-size:14px;font-weight:700;cursor:pointer}
.esac-lesson-modal-ghost:hover{background:#f5f8fa;border-color:#c9d6de}
.esac-lesson-modal-ghost .esac-ui-icon{width:16px;height:16px}
.esac-lesson-modal button:focus-visible{outline:3px solid rgba(196,155,56,.55);outline-offset:2px}
@media (max-width:560px){
  .esac-lesson-modal{place-items:end center;padding:0}
  .esac-lesson-modal-card{width:100%;max-height:92vh;padding:26px 18px calc(18px + env(safe-area-inset-bottom));border-radius:24px 24px 0 0;transform:translateY(40px)}
  .esac-lesson-modal-badge{width:56px;height:56px}
  .esac-lesson-modal-card>header h2{font-size:18px}
}
@media (prefers-reduced-motion:reduce){.esac-lesson-modal,.esac-lesson-modal-card,.esac-lesson-modal-progress s{transition:none}}
