/* ESAC student workspace v4 — home, notes, goals, achievements, profile, filters.
   Uses the existing --esac-dash-* tokens from portal-v251.css. */
.esac-student-shell{--s4-gold:#c49b38;--s4-gold-2:#e2c47e;--s4-navy:#092c45;--s4-ink:#15364b;--s4-muted:#687e8d;--s4-line:#dce6eb}

/* Fixed (sticky) sidebar that never leaves the screen on desktop */
@media(min-width:981px){
 .esac-student-shell .esac-dashboard-sidebar{position:sticky!important;top:calc(20px + var(--wp-admin--admin-bar--height,0px));max-height:calc(100vh - 40px - var(--wp-admin--admin-bar--height,0px));overflow-y:auto;scrollbar-width:thin}
}
.esac-student-shell .esac-dashboard-sidebar .esac-student-tabs button b:empty{display:none}

/* Toolbar: filter chips + search */
.esac-student-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin:0 0 16px}
.esac-filter-chips{display:flex;flex-wrap:wrap;gap:6px}
.esac-filter-chips button{display:inline-flex;align-items:center;gap:7px;padding:7px 13px;border-radius:999px;border:1px solid var(--s4-line);background:#fff;color:var(--s4-ink);font:inherit;font-size:12.5px;font-weight:700;cursor:pointer}
.esac-filter-chips button b{background:#eef3f6;color:var(--s4-muted);border-radius:999px;padding:0 7px;font-size:11px;line-height:1.8}
.esac-filter-chips button:hover{border-color:var(--s4-gold)}
.esac-filter-chips button.is-active{background:var(--s4-navy);border-color:var(--s4-navy);color:#fff}
.esac-filter-chips button.is-active b{background:var(--s4-gold);color:var(--s4-navy)}
.esac-student-search{display:flex;align-items:center;gap:8px;background:#fff;border:1px solid var(--s4-line);border-radius:10px;padding:0 12px;min-width:240px;flex:0 1 320px;color:var(--s4-muted)}
.esac-student-search:focus-within{border-color:var(--s4-gold);box-shadow:0 0 0 3px #c49b3826}
.esac-student-search .esac-ui-icon{width:17px;height:17px;flex:0 0 auto}
.esac-student-search input{border:0!important;background:transparent!important;box-shadow:none!important;outline:0;min-height:40px;width:100%;font:inherit;font-size:13px;color:var(--s4-ink);padding:0}
.esac-toolbar-count{font-size:12px;color:var(--s4-muted);font-weight:700}

/* Home */
.esac-home{display:grid;gap:16px}
.esac-home-row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.esac-home-card{background:#fff;border:1px solid var(--s4-line);border-radius:16px;padding:18px 20px;min-width:0}
.esac-home-card>header{display:flex;align-items:center;gap:12px;margin:0 0 14px}
.esac-home-card>header>span{width:40px;height:40px;border-radius:12px;display:grid;place-items:center;background:#fbf3df;color:#97721f;flex:0 0 auto}
.esac-home-card>header .esac-ui-icon{width:20px;height:20px}
.esac-home-card>header small{display:block;color:var(--s4-muted);font-size:11.5px;font-weight:700}
.esac-home-card>header h3{margin:2px 0 0;color:var(--s4-navy);font-size:17px;line-height:1.35}
.esac-home-muted{color:var(--s4-muted);font-size:13px;margin:0;line-height:1.8}

.esac-home-resume{display:flex;align-items:center;justify-content:space-between;gap:18px;flex-wrap:wrap;background:linear-gradient(110deg,#061d2e,#0b3a58 70%,#0e4868);background-size:cover;background-position:center;color:#fff;border-radius:18px;padding:24px 26px;position:relative;overflow:hidden}
.esac-home-resume::after{content:"";position:absolute;inset-inline-end:-50px;bottom:-70px;width:200px;height:200px;border-radius:50%;border:26px solid #c49b3826;pointer-events:none}
.esac-home-resume>div{flex:1 1 320px;min-width:0;position:relative;z-index:1}
.esac-home-resume>div>span{display:inline-flex;align-items:center;gap:7px;color:var(--s4-gold-2);font-size:12px;font-weight:800}
.esac-home-resume .esac-ui-icon{width:17px;height:17px}
.esac-home-resume h3{color:#fff;font-size:22px;margin:8px 0 6px;line-height:1.35}
.esac-home-resume p{display:flex;align-items:center;gap:7px;margin:0 0 14px;color:#cfe0ea;font-size:13px}
.esac-home-resume-progress{display:flex;align-items:center;gap:12px;max-width:440px}
.esac-home-resume-progress .esac-student-progress{flex:1;background:#ffffff26!important;height:8px}
.esac-home-resume-progress b{font-size:13px;color:#fff}
.esac-home-resume>button{position:relative;z-index:1;display:inline-flex;align-items:center;gap:10px;background:var(--s4-gold);color:var(--s4-navy);border:0;border-radius:11px;padding:13px 20px;font:inherit;font-size:14px;font-weight:800;cursor:pointer}
.esac-home-resume>button:hover{background:#d4ad4d}
.esac-student-shell[dir=rtl] .esac-home-resume>button .esac-ui-icon,.esac-student-shell[dir=rtl] .esac-home-link .esac-ui-icon,.esac-student-shell[dir=rtl] .esac-profile-note button .esac-ui-icon{transform:scaleX(-1)}
.esac-home-resume.is-empty h3{font-size:18px}

.esac-home-goal-body{display:flex;align-items:center;gap:18px}
.esac-ring-wrap{position:relative;flex:0 0 auto;width:112px;height:112px}
.esac-ring-wrap strong{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;gap:3px;font-size:26px;color:var(--s4-navy);direction:ltr}
.esac-ring-wrap strong small{font-size:13px;color:var(--s4-muted);font-weight:700}
.esac-home-goal-body p{margin:0 0 10px;font-size:13px;color:var(--s4-ink);line-height:1.7}
.esac-goal-form{display:flex;align-items:flex-end;gap:8px;flex-wrap:wrap}
.esac-goal-form label{display:flex;flex-direction:column;gap:4px;font-size:11.5px;color:var(--s4-muted);font-weight:700}
.esac-goal-form select{min-height:36px;border:1px solid var(--s4-line);border-radius:8px;padding:0 10px;font:inherit;background:#fff;min-width:80px}
.esac-goal-form button{min-height:36px;border:0;border-radius:8px;padding:0 14px;background:var(--s4-navy);color:#fff;font:inherit;font-size:12.5px;font-weight:800;cursor:pointer}
.esac-goal-status{display:block;color:var(--s4-muted);font-size:11.5px;margin-top:4px;min-height:1em}

.esac-home-streak>header>span{background:#fde9de;color:#c4562a}
.esac-home-streak dl{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:0}
.esac-home-streak dl>div{background:#f6f9fb;border:1px solid #e6edf1;border-radius:11px;padding:10px 12px}
.esac-home-streak dt{font-size:11.5px;color:var(--s4-muted);font-weight:700}
.esac-home-streak dd{margin:2px 0 0;font-size:22px;font-weight:800;color:var(--s4-navy)}

.esac-heatmap{display:grid;grid-auto-flow:column;grid-template-rows:repeat(7,18px);grid-auto-columns:18px;gap:5px;width:max-content;max-width:100%;direction:ltr;overflow-x:auto;padding-bottom:4px}
.esac-heatmap i{display:block;width:18px;height:18px;border-radius:4px;background:#edf2f5}
.esac-heatmap-legend i{display:block;width:14px;height:14px;border-radius:3px;background:#edf2f5}
.esac-heatmap i.is-pad{background:transparent}
.esac-heatmap i.is-l1,.esac-heatmap-legend i.is-l1{background:#f3e3b5}
.esac-heatmap i.is-l2,.esac-heatmap-legend i.is-l2{background:#e2c47e}
.esac-heatmap i.is-l3,.esac-heatmap-legend i.is-l3{background:#c49b38}
.esac-heatmap i.is-l4,.esac-heatmap-legend i.is-l4{background:#8a6a1d}
.esac-heatmap-legend{display:flex;align-items:center;gap:4px;margin-top:10px;font-size:11px;color:var(--s4-muted);direction:ltr;justify-content:flex-end}
.esac-heatmap-legend span{margin:0 4px}

.esac-home-next ul{list-style:none;margin:0;padding:0}
.esac-home-next li{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:12px;padding:10px 0;border-bottom:1px solid #edf2f5}
.esac-home-next li:last-child{border-bottom:0}
.esac-home-next li>span{width:34px;height:34px;border-radius:10px;display:grid;place-items:center;background:#e6f0f7;color:#155b7d}
.esac-home-next li .esac-ui-icon{width:17px;height:17px}
.esac-home-next li strong{display:block;font-size:13px;color:var(--s4-navy);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.esac-home-next li small{display:block;font-size:11.5px;color:var(--s4-muted)}
.esac-home-next li button{border:1px solid #ecdcb2;background:#fff;color:#8a6a1d;border-radius:8px;padding:6px 11px;font:inherit;font-size:12px;font-weight:800;cursor:pointer;white-space:nowrap}
.esac-home-next li button:hover{background:#faf7ed}
.esac-home-news time{font-size:11.5px;color:var(--s4-muted);font-weight:700}
.esac-home-news h4{margin:6px 0 12px;font-size:15px;color:var(--s4-navy);line-height:1.6}
.esac-home-link{display:inline-flex;align-items:center;gap:6px;background:none;border:0;padding:0;color:#97721f;font:inherit;font-size:12.5px;font-weight:800;cursor:pointer}
.esac-home-link .esac-ui-icon{width:15px;height:15px}

.esac-home-badges ul{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:10px}
.esac-home-badges li{display:flex;flex-direction:column;align-items:center;text-align:center;gap:5px;padding:14px 10px;border:1px dashed #d5dfe5;border-radius:14px;background:#fafcfd;color:var(--s4-muted)}
.esac-home-badges li>span{width:46px;height:46px;border-radius:50%;display:grid;place-items:center;background:#edf2f5;color:#9aaeb9}
.esac-home-badges li>span .esac-ui-icon{width:22px;height:22px}
.esac-home-badges li strong{font-size:13px;color:var(--s4-ink)}
.esac-home-badges li small{font-size:11px;line-height:1.5}
.esac-home-badges li em{display:block;width:80%;height:5px;border-radius:5px;background:#e6edf1;overflow:hidden;margin-top:3px}
.esac-home-badges li em i{display:block;height:100%;background:var(--s4-gold-2)}
.esac-student-shell[dir=rtl] .esac-home-badges li em{transform:scaleX(-1)}
.esac-home-badges li b{font-size:11px;color:var(--s4-muted);display:inline-flex;align-items:center;gap:4px}
.esac-home-badges li.is-earned{border-style:solid;border-color:#ecdcb2;background:linear-gradient(180deg,#fffaf0,#fff)}
.esac-home-badges li.is-earned>span{background:linear-gradient(135deg,#c49b38,#e2c47e);color:#fff;box-shadow:0 6px 16px #c49b3840}
.esac-home-badges li.is-earned b{color:#23704a}
.esac-home-badges li b .esac-ui-icon{width:13px;height:13px}

/* Notes */
.esac-notes-list{display:grid;gap:12px}
.esac-notes-list article{background:#fff;border:1px solid var(--s4-line);border-inline-start:4px solid var(--s4-gold);border-radius:14px;padding:16px 18px}
.esac-notes-list header{display:flex;justify-content:space-between;gap:12px;align-items:flex-start}
.esac-notes-list header small{font-size:11.5px;color:#97721f;font-weight:700}
.esac-notes-list h3{margin:3px 0 0;font-size:15px;color:var(--s4-navy)}
.esac-notes-list time{font-size:11.5px;color:var(--s4-muted);white-space:nowrap}
.esac-notes-list p{margin:10px 0 12px;white-space:pre-wrap;line-height:1.8;color:var(--s4-ink);font-size:13.5px}
.esac-notes-list footer{display:flex;gap:8px;flex-wrap:wrap}
.esac-notes-list footer button{display:inline-flex;align-items:center;gap:6px;border:1px solid var(--s4-line);background:#fff;border-radius:8px;padding:7px 12px;font:inherit;font-size:12px;font-weight:800;color:var(--s4-navy);cursor:pointer}
.esac-notes-list footer button .esac-ui-icon{width:15px;height:15px}
.esac-notes-list footer button:first-child:not(.is-danger){background:var(--s4-navy);border-color:var(--s4-navy);color:#fff}
.esac-notes-list footer button.is-danger{color:#a23b3b}
.esac-notes-list footer button.is-danger:hover{background:#fbeaea;border-color:#f0c9c9}

/* Lesson notes inside the player */
.esac-lesson-notes{margin:18px 0 0;background:#fffdf7;border:1px solid #ecdcb2;border-radius:14px;padding:16px 18px}
.esac-lesson-notes header{display:flex;align-items:center;gap:12px;margin-bottom:10px}
.esac-lesson-notes header>span{width:36px;height:36px;border-radius:10px;display:grid;place-items:center;background:#fbf3df;color:#97721f}
.esac-lesson-notes header .esac-ui-icon{width:18px;height:18px}
.esac-lesson-notes h3{margin:0;font-size:15px;color:var(--s4-navy)}
.esac-lesson-notes header small{font-size:11.5px;color:var(--s4-muted)}
.esac-lesson-notes textarea{width:100%;box-sizing:border-box;min-height:110px;border:1px solid var(--s4-line);border-radius:10px;padding:12px;font:inherit;font-size:13.5px;line-height:1.8;resize:vertical;background:#fff;color:var(--s4-ink)}
.esac-lesson-notes textarea:focus{border-color:var(--s4-gold);box-shadow:0 0 0 3px #c49b3826;outline:0}
.esac-lesson-notes footer{display:flex;align-items:center;gap:10px;margin-top:8px}
.esac-lesson-notes footer small{flex:1;color:var(--s4-muted);font-size:11.5px}
.esac-note-count{font-size:11px;color:#9aaeb9;direction:ltr}
.esac-lesson-notes footer button{display:inline-flex;align-items:center;gap:6px;border:0;border-radius:9px;background:var(--s4-navy);color:#fff;padding:8px 14px;font:inherit;font-size:12.5px;font-weight:800;cursor:pointer}
.esac-lesson-notes footer button .esac-ui-icon{width:15px;height:15px}
.esac-lesson-notes footer button:disabled{opacity:.6}

/* Profile */
.esac-profile{display:grid;gap:14px}
.esac-profile-card{display:flex;align-items:center;gap:16px;background:#fff;border:1px solid var(--s4-line);border-radius:16px;padding:18px 20px}
.esac-profile-card .esac-dashboard-avatar{width:64px;height:64px;font-size:22px;flex:0 0 auto}
.esac-profile-card h3{margin:0;font-size:19px;color:var(--s4-navy)}
.esac-profile-card p{margin:2px 0 10px;color:var(--s4-muted);font-size:13px;text-align:start}
.esac-profile-tags{display:flex;flex-wrap:wrap;gap:6px}
.esac-profile-tags b{display:inline-flex;align-items:center;gap:6px;padding:5px 11px;border-radius:999px;font-size:11.5px}
.esac-profile-tags b .esac-ui-icon{width:14px;height:14px}
.esac-profile-tags b.is-ok{background:#e7f4ec;color:#23704a}
.esac-profile-tags b.is-warn{background:#fbf3df;color:#8a6a1d}
.esac-profile-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:0}
.esac-profile-grid>div{background:#fff;border:1px solid var(--s4-line);border-radius:12px;padding:12px 14px;min-width:0}
.esac-profile-grid dt{display:flex;align-items:center;gap:7px;font-size:11.5px;color:var(--s4-muted);font-weight:700}
.esac-profile-grid dt .esac-ui-icon{width:15px;height:15px;color:#97721f}
.esac-profile-grid dd{margin:5px 0 0;font-size:14px;font-weight:700;color:var(--s4-navy);overflow-wrap:anywhere;text-align:start}
.esac-profile-note{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:0;background:#f2f7fa;border:1px solid #dbe7ee;border-radius:12px;padding:12px 14px;font-size:13px;color:var(--s4-ink);line-height:1.7}
.esac-profile-note>.esac-ui-icon{width:18px;height:18px;color:#155b7d;flex:0 0 auto}
.esac-profile-note span{flex:1 1 260px}
.esac-profile-note button{display:inline-flex;align-items:center;gap:6px;border:0;border-radius:8px;background:var(--s4-gold);color:var(--s4-navy);padding:8px 13px;font:inherit;font-size:12.5px;font-weight:800;cursor:pointer}
.esac-profile-note button .esac-ui-icon{width:15px;height:15px}

/* Phones: the tab menu stays pinned at the top while scrolling. */
@media(max-width:980px){
 .esac-student-shell .esac-dashboard-sidebar{position:sticky!important;top:var(--wp-admin--admin-bar--height,0px);z-index:20;border-radius:16px;padding:12px!important}
 .esac-student-shell .esac-dashboard-sidebar :is(.esac-dashboard-profile,.esac-dashboard-code,.esac-dashboard-security){display:none!important}
 .esac-student-shell .esac-dashboard-sidebar .esac-student-tabs{display:flex!important;overflow-x:auto;gap:6px!important;scrollbar-width:none}
 .esac-student-shell .esac-dashboard-sidebar .esac-student-tabs::-webkit-scrollbar{display:none}
 .esac-student-shell .esac-dashboard-sidebar .esac-student-tabs button{flex:0 0 auto;display:inline-flex!important;min-height:40px!important;white-space:nowrap}
}
@media(max-width:700px){
 .esac-home-row,.esac-profile-grid{grid-template-columns:minmax(0,1fr)}
 .esac-home-resume{padding:20px}
 .esac-home-resume h3{font-size:19px}
 .esac-home-resume>button{width:100%;justify-content:center}
 .esac-home-goal-body{flex-direction:column;align-items:flex-start}
 .esac-student-search{flex:1 1 100%;min-width:0}
 .esac-home-badges ul{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(prefers-reduced-motion:reduce){.esac-student-shell *{transition:none!important}}

.esac-home-badges li b{direction:ltr;unicode-bidi:isolate}
.esac-home-activity .esac-heatmap-legend{justify-content:flex-start}
.esac-student-shell label.esac-student-search{display:flex!important;flex-direction:row!important;align-items:center!important;margin:0!important;grid-template-columns:none!important}
.esac-student-shell label.esac-student-search input{flex:1 1 auto;margin:0!important;height:40px;min-width:0}
.esac-student-shell .esac-goal-form label{display:flex!important;flex-direction:column!important;margin:0!important}
.esac-student-shell[dir=rtl] :is(.esac-profile-grid dd,.esac-profile-card p){text-align:right}
@media(max-width:980px){
 .esac-student-shell .esac-dashboard-sidebar .esac-student-tabs{grid-template-columns:none!important}
 .esac-student-shell .esac-dashboard-sidebar .esac-student-tabs button{width:auto!important;grid-template-columns:none!important;gap:7px!important;padding:6px 12px!important;font-size:12px!important}
 .esac-student-shell .esac-dashboard-sidebar .esac-student-tabs button i{width:20px;height:20px;display:inline-grid;place-items:center}
}

/* Video language switch for two-language lessons (v3.18.0) */
.esac-video-lang{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin:0 0 14px;padding:8px 8px 8px 14px;background:#f6f9fb;border:1px solid var(--s4-line);border-radius:12px}
.esac-student-shell[dir=rtl] .esac-video-lang{padding:8px 14px 8px 8px}
.esac-video-lang>span{display:inline-flex;align-items:center;gap:7px;font-size:12.5px;font-weight:700;color:var(--s4-muted)}
.esac-video-lang>span .esac-ui-icon{width:16px;height:16px}
.esac-video-lang>div{display:inline-flex;background:#e6edf1;border-radius:9px;padding:3px;gap:2px}
.esac-video-lang button{min-height:36px;min-width:84px;border:0;border-radius:7px;background:transparent;color:var(--s4-ink);font:inherit;font-size:13px;font-weight:800;padding:0 14px;cursor:pointer}
.esac-video-lang button.is-active{background:var(--s4-navy);color:#fff;box-shadow:0 2px 6px #092c4533}

/* Home: quick access to enrolled courses (v3.19.0) */
.esac-home-courses>header{align-items:center}
.esac-home-courses>header .esac-home-link{margin-inline-start:auto;white-space:nowrap}
.esac-home-courses ul{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:10px}
.esac-home-courses li{min-width:0}
.esac-home-courses li button{display:flex;align-items:center;gap:12px;width:100%;height:100%;min-height:76px;text-align:start;background:#f8fafb;border:1px solid var(--s4-line);border-radius:14px;padding:10px;font:inherit;color:var(--s4-ink);cursor:pointer;transition:border-color .15s,box-shadow .15s,transform .1s}
.esac-home-courses li button:hover{border-color:var(--s4-gold);box-shadow:0 6px 16px #092c4514}
.esac-home-courses li button:active{transform:translateY(1px)}
.esac-quick-cover{flex:0 0 56px;width:56px;height:56px;border-radius:12px;display:grid;place-items:center;background:linear-gradient(135deg,var(--s4-navy),#17506f) center/cover no-repeat;color:#fff}
.esac-quick-cover .esac-ui-icon{width:22px;height:22px}
.esac-quick-copy{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}
.esac-quick-copy small{font-size:11px;font-weight:700;color:var(--s4-gold-deep);letter-spacing:.02em}
.esac-quick-copy small:empty{display:none}
.esac-quick-copy strong{font-size:14px;line-height:1.5;color:var(--s4-navy);display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.esac-quick-progress{display:flex;align-items:center;gap:8px;margin-top:3px}
.esac-quick-progress i{flex:1;height:6px;border-radius:6px;background:#e3eaef;overflow:hidden;display:block}
.esac-quick-progress b{display:block;height:100%;border-radius:6px;background:linear-gradient(90deg,var(--s4-gold),var(--s4-gold-2))}
.esac-quick-progress em{font-style:normal;font-size:11.5px;font-weight:800;color:var(--s4-muted);white-space:nowrap}
.esac-home-courses li button.is-done .esac-quick-progress b{background:#2e8b5c}
.esac-home-courses li button.is-done .esac-quick-progress em{color:#23704a}
.esac-home-courses li button.is-locked{opacity:.72}

/* Browse the public course catalogue from the dashboard (v3.20.0) */
.esac-browse-courses{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;margin-top:12px;padding:0 16px;border:1px dashed #cdb26c;border-radius:12px;background:#fffaf0;color:#7a5c14!important;font-size:13.5px;font-weight:800;text-decoration:none!important}
.esac-browse-courses:hover{background:#fbf0d4;border-style:solid}
.esac-browse-courses .esac-ui-icon{width:17px;height:17px}
.esac-home-courses .esac-browse-courses{width:100%}
.esac-browse-courses.is-cta{border:0;background:linear-gradient(180deg,#d0a744,#c0942f);color:#092c45!important;box-shadow:0 6px 14px #c49b3838;margin-top:0}
.esac-browse-courses.is-centered{display:flex;width:max-content;max-width:100%;margin:14px auto 0}
.esac-home-resume.is-empty .esac-browse-courses{margin-top:14px;align-self:flex-start}
.esac-browse-banner{display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap;margin-top:16px;padding:16px 18px;border:1px solid var(--s4-line);border-radius:16px;background:linear-gradient(135deg,#f6f9fb,#fffaf0)}
.esac-browse-banner>div{display:flex;flex-direction:column;gap:2px;min-width:0;flex:1 1 220px}
.esac-browse-banner strong{font-size:15px;color:var(--s4-navy)}
.esac-browse-banner span{font-size:12.5px;color:var(--s4-muted)}

/* ===== Exams tab v2 (v3.21.0): next step, summary, filters and clearer cards ===== */
.esac-exams-v2{display:flex;flex-direction:column;gap:16px}
.esac-exams-v2 [hidden]{display:none!important}
.esac-exam-next{display:flex;align-items:center;gap:16px;flex-wrap:wrap;padding:18px 20px;border-radius:18px;color:#fff;background:linear-gradient(135deg,#061d2e,#0c4161);box-shadow:0 14px 34px #092c4526;position:relative;overflow:hidden}
.esac-exam-next::after{content:"";position:absolute;inset-inline-end:-60px;top:-80px;width:220px;height:220px;border-radius:50%;border:30px solid #c49b3826;pointer-events:none}
.esac-exam-next-icon{flex:0 0 auto;width:54px;height:54px;border-radius:16px;display:grid;place-items:center;background:#c49b3833;border:1px solid #c49b3859;color:var(--s4-gold-2)}
.esac-exam-next-icon .esac-ui-icon{width:26px;height:26px}
.esac-exam-next-copy{flex:1 1 240px;min-width:0;position:relative;z-index:1}
.esac-exam-next-copy small{display:block;font-size:12.5px;font-weight:700;color:var(--s4-gold-2)}
.esac-exam-next-copy small b{color:#fff;background:#ffffff24;border-radius:999px;padding:1px 9px;font-weight:800}
.esac-exam-next-copy h3{margin:4px 0 6px;font-size:19px;line-height:1.45;color:#fff}
.esac-exam-next-copy p{margin:0;display:flex;flex-wrap:wrap;gap:6px 16px;font-size:13px;color:#cfe0ea}
.esac-exam-next-copy p span{display:inline-flex;align-items:center;gap:6px}
.esac-exam-next-copy p .esac-ui-icon{width:15px;height:15px;color:var(--s4-gold-2)}
.esac-exam-next>button,.esac-exam-next>a{position:relative;z-index:1;flex:0 0 auto;display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:48px;padding:0 22px;border:0;border-radius:13px;background:linear-gradient(180deg,#d9b352,#c49b38);color:#092c45!important;font:inherit;font-size:14.5px;font-weight:800;text-decoration:none!important;cursor:pointer}
.esac-exam-next>button .esac-ui-icon,.esac-exam-next>a .esac-ui-icon{width:17px;height:17px}
.esac-student-shell:not([dir=rtl]) .esac-exam-next>button .esac-ui-icon,.esac-student-shell:not([dir=rtl]) .esac-exam-next>a .esac-ui-icon{transform:scaleX(-1)}

.esac-exam-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
.esac-exam-summary>div{display:grid;grid-template-columns:auto 1fr;grid-template-rows:auto auto;column-gap:10px;align-items:center;background:#fff;border:1px solid var(--s4-line);border-radius:14px;padding:12px 14px;min-width:0}
.esac-exam-summary span{grid-row:1 / span 2;width:38px;height:38px;border-radius:11px;display:grid;place-items:center}
.esac-exam-summary span .esac-ui-icon{width:19px;height:19px}
.esac-exam-summary strong{font-size:22px;line-height:1.1;color:var(--s4-navy)}
.esac-exam-summary small{font-size:12px;font-weight:700;color:var(--s4-muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.esac-exam-summary .is-now span{background:#fbf1d6;color:#8a6a1d}
.esac-exam-summary .is-wait span{background:#e6f0f8;color:#1d5a86}
.esac-exam-summary .is-done span{background:#e3f4ea;color:#23704a}
.esac-exam-summary .is-locked span{background:#eef2f5;color:#6b7f8d}

.esac-exam-toolbar{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}
.esac-exam-toolbar .esac-filter-chips{flex:1 1 auto;min-width:0}
.esac-exam-refresh{display:inline-flex;align-items:center;gap:7px;min-height:40px;padding:0 14px;border:1px solid var(--s4-line);border-radius:999px;background:#fff;color:var(--s4-ink);font:inherit;font-size:12.5px;font-weight:700;cursor:pointer}
.esac-exam-refresh .esac-ui-icon{width:15px;height:15px}
.esac-exam-refresh:hover{border-color:var(--s4-gold)}

/* Section headings: a clear title with a short description */
.esac-exams-v2 .esac-assessment-sections{display:flex;flex-direction:column;gap:22px}
.esac-exams-v2 .esac-assessment-section>header{display:flex!important;align-items:flex-end;justify-content:space-between;gap:10px 16px;flex-wrap:wrap;margin:0 0 12px!important;padding:0!important;border:0!important;background:none!important}
.esac-exams-v2 .esac-assessment-section>header>div>span{display:block;font-size:17px!important;font-weight:800!important;color:var(--s4-navy)!important;letter-spacing:0!important;text-transform:none!important}
.esac-exams-v2 .esac-assessment-section>header h3{margin:3px 0 0!important;font-size:13px!important;font-weight:500!important;line-height:1.75!important;color:var(--s4-muted)!important;max-width:720px}
.esac-exams-v2 .esac-assessment-section>header>b{display:inline-flex!important;align-items:center;gap:6px;font-size:12px!important;font-weight:700!important;color:#557080!important;background:#eef3f6!important;border-radius:999px!important;padding:5px 12px!important;white-space:nowrap}
.esac-exams-v2 .esac-assessment-section>header>b .esac-ui-icon{width:14px;height:14px}

/* Cards: one readable style for module tests, on-site requests and final exams */
.esac-exams-v2 .esac-module-test-grid,.esac-exams-v2 .esac-final-request-grid,.esac-exams-v2 .esac-student-exams{display:grid!important;grid-template-columns:repeat(auto-fill,minmax(300px,1fr))!important;gap:14px!important}
.esac-exams-v2 [data-exam-group]{position:relative;display:flex!important;flex-direction:column;gap:0;background:#fff!important;border:1px solid var(--s4-line)!important;border-radius:16px!important;box-shadow:0 4px 14px #092c450a!important;padding:16px 16px 16px!important;overflow:hidden}
.esac-exams-v2 [data-exam-group]::before{content:""!important;position:absolute!important;inset:0 auto 0 0!important;inset-inline-start:0!important;inset-inline-end:auto!important;width:4px!important;height:auto!important;background:#c9d4db!important}
.esac-exams-v2 [data-exam-group="now"]::before{background:var(--s4-gold)!important}
.esac-exams-v2 [data-exam-group="wait"]::before{background:#2f7fb8!important}
.esac-exams-v2 [data-exam-group="done"]::before{background:#2e8b5c!important}
.esac-exams-v2 [data-exam-group]>header{display:flex!important;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap;margin:0!important;padding:0!important;border:0!important;background:none!important}
.esac-exams-v2 [data-exam-group]>header>span{display:inline-flex!important;align-items:center;gap:6px;font-size:12px!important;font-weight:800!important;letter-spacing:0!important;text-transform:none!important;border-radius:999px!important;padding:5px 11px!important;background:#eef2f5!important;color:#55697a!important}
.esac-exams-v2 [data-exam-group]>header>span i{width:7px!important;height:7px!important;border-radius:50%!important;background:currentColor!important}
.esac-exams-v2 [data-exam-group="now"]>header>span{background:#fbf1d6!important;color:#7a5c14!important}
.esac-exams-v2 [data-exam-group="wait"]>header>span{background:#e6f0f8!important;color:#1d5a86!important}
.esac-exams-v2 [data-exam-group="done"]>header>span{background:#e3f4ea!important;color:#1f6844!important}
.esac-exams-v2 [data-exam-group]>header>b{display:inline-flex!important;align-items:center;gap:5px;font-size:12px!important;font-weight:700!important;color:#557080!important;background:#f3f6f8!important;border-radius:8px!important;padding:4px 9px!important}
.esac-exams-v2 [data-exam-group]>header>b .esac-ui-icon{width:13px;height:13px}
.esac-exams-v2 .esac-exam-heading{display:flex!important;align-items:flex-start;gap:12px!important;margin:14px 0 6px!important}
.esac-exams-v2 .esac-exam-heading>.esac-ui-icon{flex:0 0 auto;box-sizing:content-box;width:20px!important;height:20px!important;padding:10px!important;border-radius:12px!important;background:#eaf1f5!important;color:var(--s4-navy)!important}
.esac-exams-v2 .esac-exam-heading small{display:block;font-size:11.5px!important;font-weight:700!important;letter-spacing:0!important;text-transform:none!important;color:var(--s4-muted)!important;margin:0 0 2px!important}
.esac-exams-v2 .esac-exam-heading h2{margin:0!important;font-size:16.5px!important;line-height:1.5!important;color:var(--s4-navy)!important}
.esac-exams-v2 [data-exam-group]>p{flex:1;margin:4px 0 12px!important;font-size:13px!important;line-height:1.8!important;color:#586e7c!important}
.esac-exams-v2 [data-exam-group] dl{display:grid!important;grid-template-columns:repeat(auto-fit,minmax(78px,1fr));gap:8px!important;margin:0 0 12px!important;padding:0!important;border:0!important}
.esac-exams-v2 [data-exam-group] dl:empty{display:none!important}
.esac-exams-v2 [data-exam-group] dl>div{display:flex!important;flex-direction:column;align-items:flex-start!important;justify-content:flex-start!important;gap:3px;background:#f6f9fb;border:1px solid #e9eef2;border-radius:11px;padding:8px 10px;min-width:0}
.esac-exams-v2 [data-exam-group] dt{display:inline-flex!important;align-items:center;gap:5px;font-size:11.5px!important;font-weight:700;color:var(--s4-muted)!important}
.esac-exams-v2 [data-exam-group] dt .esac-ui-icon{width:13px;height:13px}
.esac-exams-v2 [data-exam-group] dd{margin:0!important;font-size:14.5px!important;font-weight:800!important;color:var(--s4-navy)!important;overflow-wrap:break-word;line-height:1.55}
.esac-exams-v2 .esac-final-request-card dl,.esac-exams-v2 .esac-student-exams dl{grid-template-columns:repeat(auto-fit,minmax(128px,1fr))!important}
.esac-exams-v2 .is-exhausted::before,.esac-exams-v2 .is-cancelled::before{background:#c9603a!important}
.esac-exams-v2 .is-exhausted>header>span,.esac-exams-v2 .is-cancelled>header>span{background:#fdeee6!important;color:#9c4219!important}
.esac-score-bar{position:relative;height:8px;border-radius:8px;background:#e6edf1;margin:0 0 14px}
.esac-score-bar i{display:block;height:100%;border-radius:8px;background:linear-gradient(90deg,#d98b3a,#e2b04a)}
.esac-score-bar.is-pass i{background:linear-gradient(90deg,#2e8b5c,#58b587)}
.esac-score-bar b{position:absolute;top:-4px;width:2px;height:16px;background:var(--s4-navy);border-radius:2px;transform:translateX(-1px)}
.esac-exams-v2 [data-exam-group]>button,.esac-exams-v2 [data-exam-group]>a{display:flex!important;align-items:center;justify-content:center;gap:8px;width:100%;min-height:46px!important;margin:0!important;border:0!important;border-radius:12px!important;background:var(--s4-navy)!important;color:#fff!important;font:inherit;font-size:14px!important;font-weight:800!important;text-decoration:none!important;cursor:pointer;box-sizing:border-box}
.esac-exams-v2 [data-exam-group="now"]>button,.esac-exams-v2 [data-exam-group="now"]>a{background:linear-gradient(180deg,#d9b352,#c49b38)!important;color:#092c45!important}
.esac-exams-v2 [data-exam-group="done"]>button,.esac-exams-v2 [data-exam-group="done"]>a,.esac-exams-v2 [data-exam-group="locked"]>button,.esac-exams-v2 [data-exam-group="locked"]>a{background:#fff!important;color:var(--s4-navy)!important;border:1px solid #cdd8df!important}
.esac-exams-v2 [data-exam-group]>button:disabled{background:#f1f4f6!important;color:#8195a2!important;border:1px dashed #cfd9df!important;cursor:not-allowed}
.esac-exams-v2 [data-exam-group]>button .esac-ui-icon,.esac-exams-v2 [data-exam-group]>a .esac-ui-icon{width:16px;height:16px}
.esac-exams-v2 [data-exam-group="locked"] .esac-exam-heading h2{color:#4d6474!important}
.esac-exams-v2 .esac-final-exam-grade,.esac-exams-v2 .esac-final-exam-wait{border-radius:11px;font-size:13px;margin:0 0 12px;padding:9px 12px}
@media (max-width:760px){.esac-exam-summary{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* Exam check-in (QR) panel as a collapsible bar under the exam cards (v3.21.0) */
.esac-student-shell .esac-qr-student.is-in-exam-tab{margin:18px 0 0}
.esac-student-shell .esac-qr-student .esac-qr-head{align-items:center}
.esac-student-shell .esac-qr-student .esac-qr-head>div{flex:1;min-width:0}
.esac-qr-toggle{flex:0 0 auto;display:inline-flex;align-items:center;gap:7px;min-height:40px;padding:0 14px;border:1px solid var(--s4-line);border-radius:999px;background:#fff;color:var(--s4-navy);font:inherit;font-size:13px;font-weight:800;cursor:pointer}
.esac-qr-toggle .esac-ui-icon{width:15px;height:15px;transform:rotate(-90deg);transition:transform .15s}
.esac-qr-toggle[aria-expanded="true"] .esac-ui-icon{transform:rotate(90deg)}
.esac-student-shell .esac-qr-student.is-collapsed{padding-block:14px}
.esac-student-shell .esac-qr-student.is-collapsed>*:not(.esac-qr-head){display:none!important}
.esac-student-shell .esac-qr-student.is-collapsed .esac-qr-head{margin:0;flex-wrap:nowrap}
.esac-student-shell .esac-qr-student.is-collapsed .esac-qr-head p,.esac-student-shell .esac-qr-student.is-collapsed .esac-qr-head small{display:none}
.esac-student-shell .esac-qr-student.is-collapsed .esac-qr-head h2{font-size:15.5px;line-height:1.5;margin:0}
.esac-exam-next>button.is-ghost{background:#ffffff1f;color:#fff!important;border:1px solid #ffffff47;min-height:48px}
