/**
 * File: app.css
 * Path: /wp-content/themes/edumain-app/assets/app.css
 * Date: 2026-09-04
 */

:root{
  --bg:#f4f6f8;--card:#fff;--text:#182230;--muted:#667085;--line:#e4e8ee;
  --accent:#2447d8;--nav:#101828;--ok:#247343;--warn:#926200;--danger:#a13d34;
  font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
}
*{box-sizing:border-box}
body{margin:0;background:var(--bg);color:var(--text)}
button,input,select,textarea{font:inherit}
button{cursor:pointer}
a{text-decoration:none;color:inherit}
.em-loading{min-height:100vh;display:grid;place-content:center;gap:12px;text-align:center;color:var(--muted)}
.em-logo{font-size:32px;font-weight:900;color:var(--accent)}
.em-shell{min-height:100vh;display:grid;grid-template-columns:260px 1fr}
.em-sidebar{background:var(--nav);color:#fff;padding:24px 18px;min-height:100vh;position:sticky;top:0;height:100vh;overflow:auto}
.em-brand{font-size:24px;font-weight:900;margin-bottom:5px}
.em-version{font-size:12px;color:#aab3c3;margin-bottom:24px}
.em-nav{display:flex;flex-direction:column;gap:7px}
.em-nav button{border:0;border-radius:10px;padding:11px 12px;text-align:left;background:transparent;color:#d8deea;font-weight:700}
.em-nav button.active,.em-nav button:hover{background:#1d2939;color:#fff}
.em-main{padding:24px;min-width:0}
.em-topbar{display:flex;justify-content:space-between;gap:16px;align-items:center;margin-bottom:18px}
.em-topbar h1{margin:0;font-size:27px}
.em-muted{color:var(--muted)}
.em-card{background:var(--card);border:1px solid var(--line);border-radius:15px;padding:17px;margin-bottom:14px}
.em-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:14px}
.em-grid.cols-3{grid-template-columns:repeat(3,1fr)}
.em-kpis{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin-bottom:16px}
.em-kpi{background:#fff;border:1px solid var(--line);border-radius:14px;padding:15px}
.em-kpi strong{display:block;font-size:26px;margin-bottom:5px}
.em-btn{border:1px solid var(--line);border-radius:10px;padding:9px 12px;background:#fff;color:var(--text);font-weight:800}
.em-btn.primary{background:var(--accent);color:#fff;border-color:var(--accent)}
.em-btn.danger{color:var(--danger)}
.em-field{display:flex;flex-direction:column;gap:6px;margin-bottom:12px}
.em-field label{font-size:12px;color:var(--muted);font-weight:800}
.em-field input,.em-field select,.em-field textarea{width:100%;border:1px solid var(--line);border-radius:10px;padding:10px 11px;background:#fff}
.em-actions{display:flex;gap:8px;flex-wrap:wrap;align-items:center}
.em-list-row{display:flex;justify-content:space-between;gap:12px;align-items:center;padding:12px 0;border-bottom:1px solid var(--line)}
.em-list-row:last-child{border-bottom:0}
.em-chip{display:inline-flex;padding:4px 7px;border-radius:999px;border:1px solid #cbd5ff;background:#eef3ff;color:#3152b7;font-size:11px;font-weight:800;margin:2px}
.em-chip.ok{border-color:#bde8ca;background:#edfdf3;color:var(--ok)}
.em-chip.warn{border-color:#f0d79d;background:#fff6df;color:var(--warn)}
.em-notice{border:1px solid #cbd5ff;background:#f5f7ff;border-radius:12px;padding:13px 14px;margin-bottom:14px}
.em-error{border:1px solid #f1c7c2;background:#fff7f6;color:var(--danger);border-radius:12px;padding:13px 14px;margin-bottom:14px}
.em-json{background:#101828;color:#d8deea;border-radius:12px;padding:14px;overflow:auto;font-size:12px;line-height:1.55}
.em-tabs{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:14px}
.em-tabs button{border:1px solid var(--line);border-radius:10px;padding:9px 11px;background:#fff;font-weight:800}
.em-tabs button.active{background:var(--accent);color:#fff;border-color:var(--accent)}
.em-table{width:100%;border-collapse:collapse}
.em-table th,.em-table td{text-align:left;padding:10px 8px;border-bottom:1px solid var(--line);vertical-align:top}
.em-table th{font-size:12px;color:var(--muted)}
.em-section-title{display:flex;justify-content:space-between;gap:12px;align-items:center;margin-bottom:12px}
.em-section-title h3{margin:0}
.em-role-checks{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:12px}
.em-role-checks label{border:1px solid var(--line);border-radius:999px;padding:7px 9px;background:#f8fafc;font-size:12px;font-weight:700}
.em-context-switch{border:1px solid #cbd5ff;background:#f5f7ff;border-radius:12px;padding:10px 12px;margin-bottom:14px}
.em-empty{text-align:center;color:var(--muted);padding:22px}
@media(max-width:1000px){
  .em-kpis{grid-template-columns:1fr 1fr}
  .em-grid,.em-grid.cols-3{grid-template-columns:1fr}
}
@media(max-width:800px){
  .em-shell{grid-template-columns:1fr}
  .em-sidebar{min-height:auto;height:auto;position:relative;padding:14px}
  .em-nav{flex-direction:row;overflow:auto}
  .em-nav button{white-space:nowrap}
  .em-main{padding:14px}
  .em-kpis{grid-template-columns:1fr}
  .em-topbar{align-items:flex-start}
  .em-table{font-size:13px}
}


/* v0.2.1 users CRUD */
.em-user-card{
  border:1px solid var(--line);border-radius:13px;padding:13px;margin-bottom:10px;background:#fff
}
.em-user-head{
  display:flex;justify-content:space-between;gap:12px;align-items:flex-start
}
.em-access{
  border:1px solid #bde8ca;background:#edfdf3;border-radius:12px;padding:13px 14px;margin-bottom:14px
}
.em-access code{
  display:inline-block;background:#fff;border:1px solid #bde8ca;border-radius:8px;padding:6px 8px;font-size:15px
}
.em-edit-box{
  border:1px solid #cbd5ff;background:#fafbff;border-radius:14px;padding:14px;margin-bottom:14px
}
@media(max-width:700px){
  .em-user-head{flex-direction:column}
}


/* v0.2.3 human-friendly selectors */
.em-autocomplete{position:relative}
.em-suggestions{
  position:absolute;left:0;right:0;top:100%;z-index:30;
  background:#fff;border:1px solid var(--line);border-radius:10px;
  box-shadow:0 12px 28px rgba(16,24,40,.12);max-height:220px;overflow:auto;
  margin-top:4px
}
.em-suggestion{
  display:block;width:100%;border:0;background:#fff;text-align:left;
  padding:10px 11px;border-bottom:1px solid var(--line)
}
.em-suggestion:last-child{border-bottom:0}
.em-suggestion:hover{background:#f8fafc}
.em-suggestion small{display:block;color:var(--muted);margin-top:2px}

.em-inline-editor{
  border:1px solid #cbd5ff;background:#fafbff;border-radius:12px;padding:12px;margin:10px 0
}
.em-sublist{margin-top:10px;padding-top:10px;border-top:1px dashed var(--line)}
.em-subrow{display:flex;justify-content:space-between;gap:10px;align-items:center;padding:7px 0}


/* v0.2.7 subject catalog */
.em-subject-catalog{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:8px;
  margin:12px 0 14px;
}
.em-subject-option{
  display:flex;
  gap:8px;
  align-items:flex-start;
  border:1px solid var(--line);
  border-radius:10px;
  padding:10px;
  background:#fff;
}
.em-subject-option input{margin-top:3px}
.em-custom-subject{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  border:1px solid var(--line);
  border-radius:10px;
  padding:9px 10px;
  margin-top:7px;
}
.em-icon-btn{
  border:1px solid var(--line);
  border-radius:8px;
  background:#fff;
  padding:4px 9px;
  font-size:18px;
  line-height:1;
}
@media(max-width:1000px){
  .em-subject-catalog{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:650px){
  .em-subject-catalog{grid-template-columns:1fr}
}


/* v0.2.8 subject-specific groups + teacher load */
.em-load-list{display:grid;gap:6px}
.em-load-row{
  display:grid;
  grid-template-columns:minmax(240px,1fr) auto auto;
  gap:14px;
  align-items:center;
  padding:10px 0;
  border-bottom:1px solid var(--line)
}
.em-load-row:last-child{border-bottom:0}
.em-load-hours{font-size:18px;font-weight:900}
@media(max-width:700px){.em-load-row{grid-template-columns:1fr}}


/* v0.2.9 compact classes + students/groups */
.em-class-compact{
  border:1px solid var(--line);
  border-left:4px solid #2447d8;
  border-radius:13px;
  background:#fff;
  margin-bottom:9px;
  overflow:hidden;
}
.em-class-summary{
  display:grid;
  grid-template-columns:70px minmax(220px,1fr) auto auto;
  gap:12px;
  align-items:center;
  padding:11px 13px;
}
.em-class-name{font-size:18px;font-weight:900}
.em-class-stats{
  display:flex;
  gap:7px;
  flex-wrap:wrap;
  justify-content:flex-end;
}
.em-class-details{
  border-top:1px solid var(--line);
  padding:14px;
  background:#fbfcfe;
}
.em-class-detail-grid{
  display:grid;
  grid-template-columns:minmax(280px,.85fr) minmax(380px,1.15fr);
  gap:14px;
}
.em-mini-panel{
  background:#fff;
  border:1px solid var(--line);
  border-radius:12px;
  padding:12px;
}
.em-student-list{
  max-height:280px;
  overflow:auto;
  border:1px solid var(--line);
  border-radius:10px;
  padding:5px 9px;
  margin:9px 0;
}
.em-student-option{
  display:flex;
  gap:8px;
  align-items:center;
  padding:7px 2px;
  border-bottom:1px solid #eef1f5;
}
.em-student-option:last-child{border-bottom:0}
.em-student-option.disabled{opacity:.5}
.em-group-row{
  display:grid;
  grid-template-columns:minmax(180px,1fr) auto;
  gap:10px;
  align-items:center;
  padding:8px 0;
  border-bottom:1px solid #eef1f5;
}
.em-group-row:last-child{border-bottom:0}
.em-group-member-editor{
  margin:10px 0;
  padding:11px;
  border-radius:10px;
  border:1px solid #cbd5ff;
  background:#fafbff;
}
.em-subject-toolbar{
  display:flex;
  gap:8px;
  align-items:center;
  flex-wrap:wrap;
  margin:10px 0;
}
@media(max-width:950px){
  .em-class-summary{grid-template-columns:60px 1fr}
  .em-class-stats{justify-content:flex-start}
  .em-class-detail-grid{grid-template-columns:1fr}
}


/* v0.2.10 scalable users directory */
.em-directory-tabs{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  margin:0 0 12px;
}
.em-directory-tab{
  border:1px solid var(--line);
  background:#fff;
  border-radius:10px;
  padding:9px 12px;
  font-weight:800;
  cursor:pointer;
}
.em-directory-tab.active{
  background:#eef2ff;
  border-color:#aab9ff;
  color:#2447d8;
}
.em-directory-toolbar{
  display:grid;
  grid-template-columns:minmax(260px,1fr) auto;
  gap:10px;
  align-items:end;
  margin-bottom:10px;
}
.em-directory-role-filters{
  display:flex;
  gap:6px;
  flex-wrap:wrap;
  margin:0 0 12px;
}
.em-directory-role-filters button{
  border:1px solid var(--line);
  background:#fff;
  border-radius:999px;
  padding:6px 10px;
  font-weight:700;
  cursor:pointer;
}
.em-directory-role-filters button.active{
  background:#eef2ff;
  border-color:#aab9ff;
  color:#2447d8;
}
.em-directory-meta{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:10px;
  margin:8px 0 10px;
}
.em-directory-pages{
  display:flex;
  gap:6px;
  align-items:center;
}
.em-directory-loading{
  padding:30px;
  text-align:center;
  color:var(--muted);
}
.em-student-search-results{
  border:1px solid var(--line);
  border-radius:10px;
  margin-top:7px;
  overflow:hidden;
}
.em-student-search-result{
  display:flex;
  justify-content:space-between;
  gap:10px;
  align-items:center;
  padding:8px 10px;
  border-bottom:1px solid #eef1f5;
}
.em-student-search-result:last-child{border-bottom:0}
@media(max-width:850px){
  .em-directory-toolbar{grid-template-columns:1fr}
}


/* v0.2.11 password recovery controls */
.em-password-box{
  margin-top:16px;
  padding:14px;
  border:1px solid #d7def8;
  border-radius:12px;
  background:#fafbff;
}
.em-password-box h4{
  margin:0 0 6px;
  font-size:16px;
}
.em-password-row{
  display:grid;
  grid-template-columns:minmax(260px,1fr) auto auto;
  gap:8px;
  align-items:end;
}
.em-password-field-wrap{
  position:relative;
}
.em-password-field-wrap input{
  padding-right:44px;
}
.em-password-eye{
  position:absolute;
  right:7px;
  bottom:7px;
  border:0;
  background:transparent;
  cursor:pointer;
  font-size:18px;
}
@media(max-width:760px){
  .em-password-row{grid-template-columns:1fr}
}


/* v0.2.12 role-linked classes + context filters */
.em-role-assignment-box{
  margin-top:12px;
  padding:12px;
  border:1px solid #d7def8;
  border-radius:12px;
  background:#fafbff;
}
.em-role-assignment-box h4{margin:0 0 5px}
.em-class-check-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:7px;
  margin-top:8px;
}
.em-class-check{
  display:flex;
  align-items:flex-start;
  gap:7px;
  border:1px solid var(--line);
  border-radius:9px;
  background:#fff;
  padding:8px;
}
.em-class-check.conflict{
  border-color:#f2c36b;
  background:#fffaf0;
}
.em-class-check small{
  display:block;
  color:var(--muted);
  margin-top:2px;
}
.em-user-class-filter{
  padding:10px 0 12px;
  border-top:1px solid #eef1f5;
  border-bottom:1px solid #eef1f5;
  margin-bottom:10px;
}
.em-grade-filter,.em-class-filter{
  display:flex;
  gap:6px;
  flex-wrap:wrap;
  margin-top:8px;
}
.em-grade-filter button,.em-class-filter button{
  border:1px solid var(--line);
  background:#fff;
  border-radius:9px;
  padding:6px 10px;
  font-weight:800;
  cursor:pointer;
}
.em-grade-filter button.active,.em-class-filter button.active{
  background:#eef2ff;
  border-color:#aab9ff;
  color:#2447d8;
}
.em-parent-student-selected{
  display:flex;
  gap:6px;
  flex-wrap:wrap;
  margin:8px 0;
}
.em-parent-student-selected .em-chip button{
  border:0;
  background:transparent;
  cursor:pointer;
  margin-left:5px;
  font-weight:900;
}
.em-parent-student-search{
  display:grid;
  grid-template-columns:minmax(240px,1fr) auto;
  gap:8px;
  align-items:center;
}
@media(max-width:950px){
  .em-class-check-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:580px){
  .em-class-check-grid{grid-template-columns:1fr}
  .em-parent-student-search{grid-template-columns:1fr}
}


/* v0.2.13 student group assignment in user form */
.em-student-groups-box{
  margin-top:10px;
  padding-top:10px;
  border-top:1px solid #e4e7ec;
}
.em-student-group-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:8px;
  margin-top:8px;
}
.em-student-group-subject{
  border:1px solid var(--line);
  border-radius:10px;
  background:#fff;
  padding:9px;
}
.em-student-group-subject strong{
  display:block;
  margin-bottom:6px;
}
.em-user-study-meta{
  margin-top:5px;
  display:flex;
  gap:5px;
  flex-wrap:wrap;
}
.em-user-study-meta .em-chip{
  font-size:11px;
}
@media(max-width:700px){
  .em-student-group-grid{grid-template-columns:1fr}
}


/* v0.2.14 schedule */
.em-schedule-week{
  overflow:auto;
  border:1px solid var(--line);
  border-radius:12px;
  background:#fff;
}
.em-schedule-grid{
  display:grid;
  grid-template-columns:120px repeat(6,minmax(190px,1fr));
  min-width:1260px;
}
.em-schedule-head,
.em-schedule-time,
.em-schedule-cell{
  border-right:1px solid #e4e7ec;
  border-bottom:1px solid #e4e7ec;
  padding:9px;
}
.em-schedule-head{
  font-weight:900;
  background:#f8fafc;
  text-align:center;
}
.em-schedule-time{
  background:#fafafa;
}
.em-schedule-time strong{
  display:block;
  font-size:16px;
}
.em-schedule-cell{
  min-height:92px;
  background:#fff;
}
.em-schedule-entry{
  border:1px solid #d7def8;
  border-left:4px solid #2447d8;
  border-radius:9px;
  padding:7px;
  margin-bottom:6px;
  background:#fafbff;
}
.em-schedule-entry:last-child{margin-bottom:0}
.em-schedule-entry-title{
  font-weight:900;
  line-height:1.2;
}
.em-schedule-entry-meta{
  font-size:12px;
  color:var(--muted);
  margin-top:3px;
}
.em-schedule-entry-actions{
  display:flex;
  gap:4px;
  margin-top:6px;
}
.em-schedule-entry-actions button{
  padding:4px 7px;
  font-size:11px;
}
.em-schedule-slot-row{
  display:grid;
  grid-template-columns:70px 1fr 1fr minmax(120px,1fr) auto;
  gap:8px;
  align-items:end;
  padding:8px 0;
  border-bottom:1px solid #eef1f5;
}
.em-schedule-slot-row:last-child{border-bottom:0}
.em-schedule-toolbar{
  display:flex;
  gap:8px;
  align-items:center;
  flex-wrap:wrap;
  margin-bottom:12px;
}
.em-schedule-toolbar select{
  width:auto;
  min-width:160px;
}
@media(max-width:760px){
  .em-schedule-slot-row{grid-template-columns:1fr 1fr}
}


/* v0.2.15 generated bell grids + shifts */
.em-shift-tabs{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  margin:0 0 12px;
}
.em-shift-tab{
  border:1px solid var(--line);
  background:#fff;
  border-radius:10px;
  padding:9px 12px;
  font-weight:900;
  cursor:pointer;
}
.em-shift-tab.active{
  background:#eef2ff;
  border-color:#aab9ff;
  color:#2447d8;
}
.em-shift-generator{
  border:1px solid #d7def8;
  background:#fafbff;
  border-radius:12px;
  padding:12px;
  margin-bottom:12px;
}
.em-break-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(120px,1fr));
  gap:8px;
  margin-top:8px;
}
.em-break-item{
  border:1px solid var(--line);
  border-radius:9px;
  background:#fff;
  padding:8px;
}
.em-bell-preview{
  display:grid;
  grid-template-columns:70px 1fr 100px;
  gap:0;
  border:1px solid var(--line);
  border-radius:10px;
  overflow:hidden;
  margin-top:10px;
}
.em-bell-preview > div{
  padding:7px 9px;
  border-bottom:1px solid #eef1f5;
}
.em-bell-preview > div:nth-last-child(-n+3){
  border-bottom:0;
}
.em-bell-preview .head{
  font-weight:900;
  background:#f8fafc;
}
.em-shift-title-row{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:10px;
  margin-bottom:8px;
}
@media(max-width:900px){
  .em-break-grid{grid-template-columns:repeat(2,minmax(120px,1fr))}
}
@media(max-width:560px){
  .em-break-grid{grid-template-columns:1fr}
}


/* v0.2.17 explicit schedule generator action */
[data-generate-schedule-grid][disabled]{
  opacity:.7;
  cursor:wait;
}


/* v0.2.18 weekday/date bell-grid overrides */
.em-day-grid-list{
  display:grid;
  gap:7px;
  margin-top:10px;
}
.em-day-grid-row{
  display:grid;
  grid-template-columns:140px 1fr auto;
  gap:10px;
  align-items:center;
  padding:9px 10px;
  border:1px solid var(--line);
  border-radius:10px;
  background:#fff;
}
.em-day-grid-status{
  color:var(--muted);
}
.em-day-grid-status.custom{
  color:#2447d8;
  font-weight:800;
}
.em-special-day-list{
  display:grid;
  gap:7px;
  margin-top:8px;
}
.em-special-day-row{
  display:grid;
  grid-template-columns:130px 1fr auto;
  gap:10px;
  align-items:center;
  padding:9px 10px;
  border:1px solid var(--line);
  border-radius:10px;
  background:#fff;
}
.em-grid-override-editor{
  border:1px solid #aab9ff;
  border-radius:12px;
  background:#f8f9ff;
  padding:12px;
  margin-top:12px;
}
.em-effective-time{
  font-size:11px;
  color:#667085;
  margin-bottom:5px;
}
.em-effective-time.custom{
  color:#2447d8;
  font-weight:800;
}
.em-schedule-grid{
  grid-template-columns:80px repeat(6,minmax(190px,1fr));
}
@media(max-width:700px){
  .em-day-grid-row,
  .em-special-day-row{
    grid-template-columns:1fr;
  }
}


/* v0.2.19 direct weekday/date override save action */
[data-save-grid-override][disabled]{
  opacity:.7;
  cursor:wait;
}


/* v0.2.20 CSV imports */
.em-import-types{display:flex;gap:8px;flex-wrap:wrap;margin:10px 0 14px}.em-import-type{border:1px solid var(--line);background:#fff;border-radius:10px;padding:9px 12px;font-weight:900;cursor:pointer}.em-import-type.active{background:#eef2ff;border-color:#aab9ff;color:#2447d8}.em-import-drop{border:2px dashed #cfd6e4;border-radius:12px;padding:16px;background:#fafbfc}.em-import-file{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.em-import-summary{display:grid;grid-template-columns:repeat(6,minmax(95px,1fr));gap:8px;margin:12px 0}.em-import-stat{border:1px solid var(--line);border-radius:10px;padding:10px;background:#fff}.em-import-stat strong{display:block;font-size:20px}.em-import-table-wrap{overflow:auto;border:1px solid var(--line);border-radius:10px;margin-top:10px}.em-import-table{width:100%;border-collapse:collapse;min-width:780px}.em-import-table th,.em-import-table td{padding:8px 10px;border-bottom:1px solid #eef1f5;text-align:left;vertical-align:top;font-size:13px}.em-import-table th{background:#f8fafc}.em-import-row-error{background:#fff6f5}.em-import-row-warning{background:#fffbeb}.em-import-row-ready{background:#f6fef9}.em-import-help{margin-top:8px;padding:10px;border-radius:10px;background:#f8fafc;color:var(--muted)}@media(max-width:900px){.em-import-summary{grid-template-columns:repeat(3,minmax(95px,1fr))}}@media(max-width:540px){.em-import-summary{grid-template-columns:repeat(2,minmax(95px,1fr))}}


/* v0.3.0 Teacher Workspace / Today */
.em-today-toolbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  flex-wrap:wrap;
}
.em-today-toolbar input[type="date"]{
  width:auto;
  min-width:150px;
}
.em-today-heading{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:14px;
  flex-wrap:wrap;
  margin-top:18px;
}
.em-today-date{
  font-size:26px;
  font-weight:900;
  line-height:1.15;
}
.em-today-lessons{
  display:grid;
  gap:10px;
}
.em-lesson-session-card{
  display:grid;
  grid-template-columns:100px 1fr auto;
  gap:16px;
  align-items:center;
}
.em-lesson-time{
  display:flex;
  flex-direction:column;
  gap:2px;
  padding-right:14px;
  border-right:1px solid var(--line);
}
.em-lesson-time strong{
  font-size:22px;
}
.em-lesson-time span,
.em-lesson-time small{
  color:var(--muted);
}
.em-lesson-main{
  display:grid;
  gap:6px;
}
.em-lesson-subject{
  font-size:20px;
  font-weight:900;
}
.em-lesson-target{
  font-weight:800;
}
.em-day-off{
  border-color:#f2c94c;
  background:#fffbeb;
}
.em-workspace-stub{
  min-height:150px;
}
@media(max-width:700px){
  .em-lesson-session-card{
    grid-template-columns:1fr;
  }
  .em-lesson-time{
    border-right:0;
    border-bottom:1px solid var(--line);
    padding:0 0 10px 0;
  }
}


/* v0.3.1 Today aligned with approved v24.2 prototype */
.em-today-date-card{
  box-shadow:none;
}
.em-today-prototype-grid{
  display:grid;
  grid-template-columns:minmax(0,1.3fr) minmax(320px,.7fr);
  gap:16px;
}
.em-focus-lesson-card{
  border-left:5px solid #2447d8;
  padding-left:18px;
}
.em-focus-lesson-head{
  display:flex;
  justify-content:space-between;
  gap:16px;
  align-items:flex-start;
}
.em-focus-badge{
  display:inline-flex;
  align-items:center;
  padding:5px 9px;
  border-radius:999px;
  font-size:12px;
  font-weight:800;
  background:#eef2ff;
  color:#2447d8;
}
.em-focus-title{
  font-size:22px;
  font-weight:900;
  margin:5px 0;
}
.em-focus-stats{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:10px;
  margin:16px 0;
}
.em-focus-stat{
  padding:12px;
  background:#f8fafc;
  border:1px solid var(--line);
  border-radius:12px;
}
.em-focus-stat b{
  display:block;
  font-size:20px;
  margin-bottom:3px;
}
.em-focus-stat span{
  color:var(--muted);
  font-size:12px;
}
.em-day-list{
  display:grid;
  gap:0;
}
.em-day-list-row{
  width:100%;
  display:flex;
  justify-content:space-between;
  gap:14px;
  align-items:center;
  padding:12px 4px;
  border:0;
  border-bottom:1px solid var(--line);
  background:transparent;
  text-align:left;
}
.em-day-list-row:last-child{
  border-bottom:0;
}
.em-day-list-row.focus{
  background:#fafbff;
}
.em-day-list-row strong,
.em-day-list-row small{
  display:block;
}
.em-day-list-row small{
  color:var(--muted);
  margin-top:4px;
}
.em-status-ok{
  color:#16815c;
  font-weight:800;
}
.em-status-warn{
  color:#c17a00;
  font-weight:800;
}
.em-status-danger{
  color:#bd3c3c;
  font-weight:800;
}
.em-today-kpi-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:16px;
  margin-top:16px;
}
.em-future-kpi-value{
  font-size:28px;
}
.em-live-lesson-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:16px;
  margin-bottom:16px;
  background:#fff;
  border:1px solid var(--line);
  border-radius:16px;
  padding:18px;
}
.em-live-title{
  font-size:24px;
  font-weight:900;
  margin:8px 0 4px;
}
.em-live-pill{
  display:inline-flex;
  align-items:center;
  gap:7px;
  padding:5px 9px;
  border-radius:999px;
  background:#edfdf3;
  border:1px solid #bde8ca;
  color:#16815c;
  font-size:12px;
  font-weight:900;
}
.em-live-dot{
  width:8px;
  height:8px;
  border-radius:50%;
  background:#16815c;
}
.em-live-layout{
  display:grid;
  grid-template-columns:minmax(0,1.25fr) minmax(300px,.75fr);
  gap:16px;
}
.em-live-block{
  padding:14px 0;
  border-bottom:1px solid var(--line);
}
.em-live-block:last-child{
  border-bottom:0;
}
.em-live-block h3{
  margin-bottom:5px;
}
.em-lesson-feed{
  display:grid;
  gap:8px;
}
.em-feed-event{
  padding:10px;
  border:1px solid var(--line);
  border-radius:10px;
  background:#f8fafc;
}
.em-live-finish{
  margin-top:16px;
  padding-top:16px;
  border-top:1px solid var(--line);
}
.em-lesson-quick-panel{
  display:flex;
  justify-content:space-between;
  gap:14px;
  align-items:center;
}
@media(max-width:1000px){
  .em-today-prototype-grid,
  .em-live-layout{
    grid-template-columns:1fr;
  }
}
@media(max-width:760px){
  .em-focus-stats,
  .em-today-kpi-grid{
    grid-template-columns:1fr 1fr;
  }
  .em-focus-lesson-head,
  .em-live-lesson-head{
    flex-direction:column;
  }
}
@media(max-width:520px){
  .em-focus-stats,
  .em-today-kpi-grid{
    grid-template-columns:1fr;
  }
}


/* v0.3.2 Lesson Attendance — approved v24.2 marks */
.em-attendance-panel{
  margin-bottom:16px;
}
.em-student-roster{
  display:grid;
  gap:0;
  margin-top:12px;
}
.em-student-row{
  display:grid;
  grid-template-columns:minmax(220px,1fr) auto;
  gap:14px;
  align-items:center;
  padding:11px 0;
  border-bottom:1px solid var(--line);
}
.em-student-row:last-child{
  border-bottom:0;
}
.em-attendance-buttons{
  display:flex;
  gap:6px;
  flex-wrap:wrap;
}
.em-attendance-btn{
  min-width:42px;
  min-height:38px;
  border:1px solid var(--line);
  background:#fff;
  border-radius:9px;
  font-weight:900;
}
.em-attendance-btn:hover{
  background:#f8fafc;
}
.em-attendance-btn.active-ok{
  border-color:#8bd0ad;
  background:#edfdf3;
  color:#16815c;
}
.em-attendance-btn.active-reason{
  border-color:#f0d79d;
  background:#fff6df;
  color:#926200;
}
.em-attendance-btn.active-absent{
  border-color:#f1c7c2;
  background:#fff1f0;
  color:#a34137;
}
.em-attendance-btn[disabled]{
  opacity:.65;
  cursor:wait;
}
.em-attendance-legend{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  margin-top:14px;
  padding-top:12px;
  border-top:1px solid var(--line);
}
.em-attendance-legend span{
  display:inline-flex;
  align-items:center;
  gap:5px;
  padding:5px 8px;
  border-radius:999px;
  background:#f8fafc;
  border:1px solid var(--line);
  color:var(--muted);
  font-size:12px;
}
@media(max-width:650px){
  .em-student-row{
    grid-template-columns:1fr;
  }
}


/* v0.3.3 Curriculum / KTP */
.em-ktp-select{
  min-width:320px;
  margin:0;
}
.em-ktp-progress-grid{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:10px;
  margin-top:14px;
}
.em-ktp-stat{
  border:1px solid var(--line);
  border-radius:12px;
  background:#f8fafc;
  padding:12px;
}
.em-ktp-stat strong{
  display:block;
  font-size:22px;
  margin-bottom:3px;
}
.em-ktp-stat span{
  color:var(--muted);
  font-size:12px;
}
.em-ktp-form-grid{
  display:grid;
  grid-template-columns:1fr 1fr 120px;
  gap:10px;
}
.em-ktp-list{
  display:grid;
  gap:0;
}
.em-ktp-row{
  display:grid;
  grid-template-columns:48px 165px minmax(260px,1fr) 150px auto;
  gap:12px;
  align-items:start;
  padding:13px 0;
  border-bottom:1px solid var(--line);
}
.em-ktp-row:last-child{
  border-bottom:0;
}
.em-ktp-row strong,
.em-ktp-row small{
  display:block;
}
.em-ktp-row small{
  margin-top:4px;
}
.em-ktp-order{
  width:36px;
  height:36px;
  display:grid;
  place-items:center;
  border-radius:10px;
  background:#f3f5f8;
  font-weight:900;
}
.em-ktp-row-edit{
  background:#fafbff;
  padding:13px;
  border-radius:12px;
  border:1px solid #dfe5ff;
  margin:6px 0;
}
.em-ktp-edit-grid{
  display:grid;
  grid-template-columns:1fr 110px;
  gap:8px;
}
.em-lesson-topic-panel{
  margin-bottom:16px;
}
@media(max-width:1050px){
  .em-ktp-row{
    grid-template-columns:48px 150px 1fr;
  }
  .em-ktp-row > :nth-child(4),
  .em-ktp-row > :nth-child(5){
    grid-column:3;
  }
}
@media(max-width:720px){
  .em-ktp-progress-grid{
    grid-template-columns:1fr 1fr;
  }
  .em-ktp-form-grid,
  .em-ktp-edit-grid{
    grid-template-columns:1fr;
  }
  .em-ktp-row{
    grid-template-columns:42px 1fr;
  }
  .em-ktp-row > :not(.em-ktp-order){
    grid-column:2;
  }
  .em-ktp-select{
    min-width:0;
    width:100%;
  }
}


/* v0.3.4 Working Program XLSX Import */
.em-program-import-box{
  display:flex;
  gap:10px;
  align-items:center;
  flex-wrap:wrap;
}
.em-program-preview-kpis,
.em-program-meta{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:10px;
  margin:14px 0;
}
.em-program-meta > div{
  border:1px solid var(--line);
  border-radius:12px;
  padding:10px;
  background:#f8fafc;
}
.em-program-meta b,
.em-program-meta span{
  display:block;
}
.em-program-meta span{
  margin-top:4px;
  color:var(--muted);
}
.em-warning-list{
  display:grid;
  gap:6px;
  padding:12px;
  border:1px solid #f1d79c;
  border-radius:12px;
  background:#fff9e9;
  margin:12px 0;
}
.em-program-topic-list{
  display:grid;
  gap:0;
  margin-top:12px;
}
.em-program-topic-preview{
  max-height:520px;
  overflow:auto;
  border:1px solid var(--line);
  border-radius:12px;
  padding:0 12px;
}
.em-program-topic-row{
  display:grid;
  grid-template-columns:40px 1fr;
  gap:10px;
  padding:10px 0;
  border-bottom:1px solid var(--line);
}
.em-program-topic-row:last-child{
  border-bottom:0;
}
.em-program-topic-row small{
  display:block;
  margin-top:3px;
}
.em-program-plan-preview{
  border:1px solid var(--line);
  border-radius:12px;
  padding:12px;
  margin:12px 0;
}
.em-program-plan-row{
  display:grid;
  grid-template-columns:190px 1fr;
  gap:12px;
  padding:8px 0;
  border-bottom:1px solid var(--line);
}
.em-program-plan-row:last-child{
  border-bottom:0;
}
.em-program-replace{
  display:block;
  padding:12px;
  margin:14px 0;
  border:1px solid #f0d79d;
  border-radius:12px;
  background:#fff9e9;
  font-weight:800;
}
@media(max-width:800px){
  .em-program-preview-kpis,
  .em-program-meta{
    grid-template-columns:1fr 1fr;
  }
  .em-program-plan-row{
    grid-template-columns:1fr;
    gap:3px;
  }
}
@media(max-width:520px){
  .em-program-preview-kpis,
  .em-program-meta{
    grid-template-columns:1fr;
  }
}


/* v0.3.5 Reuse one WorkingProgram across assignments */
.em-program-assign-panel{
  margin:14px 0 18px;
  padding:14px;
  border:1px solid #cfd8ff;
  border-radius:14px;
  background:#fafbff;
}
.em-program-target-list{
  display:grid;
  gap:0;
  margin:12px 0;
  border:1px solid var(--line);
  border-radius:12px;
  overflow:hidden;
  background:#fff;
}
.em-program-target-row{
  display:grid;
  grid-template-columns:24px minmax(240px,1fr) auto;
  gap:12px;
  align-items:center;
  padding:12px;
  border-bottom:1px solid var(--line);
}
.em-program-target-row:last-child{
  border-bottom:0;
}
.em-program-target-row > input{
  width:18px;
  height:18px;
}
.em-program-target-row strong,
.em-program-target-row small{
  display:block;
}
.em-program-target-row small{
  margin-top:3px;
}
.em-program-target-row:has(input:disabled){
  background:#f8fafc;
}
@media(max-width:760px){
  .em-program-target-row{
    grid-template-columns:24px 1fr;
  }
  .em-program-target-row > div:last-child{
    grid-column:2;
  }
}


/* v0.3.7 WorkingProgram unassign */
.em-program-target-status{
  display:flex;
  gap:8px;
  align-items:center;
  justify-content:flex-end;
  flex-wrap:wrap;
}
.em-program-target-status .em-muted{
  font-size:12px;
}
@media(max-width:760px){
  .em-program-target-status{
    justify-content:flex-start;
  }
}


/* v0.3.8 Direct WorkingProgram unassign from KTP */
.em-ktp-head-actions{
  display:flex;
  gap:10px;
  align-items:flex-end;
  justify-content:flex-end;
  flex-wrap:wrap;
}
.em-ktp-head-actions .em-ktp-select{
  margin:0;
}
@media(max-width:760px){
  .em-ktp-head-actions{
    width:100%;
    justify-content:stretch;
  }
  .em-ktp-head-actions .em-ktp-select,
  .em-ktp-head-actions .em-btn{
    width:100%;
  }
}


/* v0.3.9 LessonTemplate / first Content Editor blocks */
.em-template-editor{
  margin-bottom:16px;
}
.em-template-editor-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:12px;
  margin:12px 0;
}
.em-template-editor-grid .em-field{
  margin:0;
}
.em-template-editor-grid textarea{
  min-height:130px;
  resize:vertical;
}
.em-template-read-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px;
  margin-top:12px;
}
.em-template-read-block{
  border:1px solid var(--line);
  border-radius:12px;
  padding:12px;
  background:#f8fafc;
  line-height:1.5;
}
.em-template-read-block h3{
  margin:0 0 8px;
}
.em-template-live-content{
  margin:8px 0 12px;
  line-height:1.55;
  white-space:normal;
}
@media(max-width:760px){
  .em-template-editor-grid,
  .em-template-read-grid{
    grid-template-columns:1fr;
  }
}


/* v0.3.10 Lesson Library */
.em-library-filters{
  display:grid;
  grid-template-columns:2fr 1fr 1fr;
  gap:12px;
  margin-top:14px;
}
.em-library-grade-row{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  margin-top:10px;
}
.em-library-grade-row button{
  border:1px solid var(--line);
  background:#fff;
  border-radius:999px;
  padding:8px 12px;
  cursor:pointer;
  font-weight:700;
}
.em-library-grade-row button.active{
  background:#234fe5;
  color:#fff;
  border-color:#234fe5;
}
.em-library-result-meta{
  display:flex;
  justify-content:space-between;
  gap:12px;
  color:var(--muted);
  margin-top:14px;
  font-size:13px;
}
.em-library-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:12px;
}
.em-library-card{
  min-height:210px;
  display:flex;
  flex-direction:column;
}
.em-library-card h3{
  margin:14px 0 8px;
}
.em-library-card-footer{
  margin-top:auto;
  padding-top:14px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
}
.em-library-create{
  margin:14px 0;
}
.em-library-create-grid,
.em-library-editor-meta{
  display:grid;
  grid-template-columns:2fr 1fr 1fr 1.5fr;
  gap:12px;
  margin:12px 0;
}
@media(max-width:1100px){
  .em-library-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
  .em-library-filters{
    grid-template-columns:1fr 1fr;
  }
  .em-library-create-grid,
  .em-library-editor-meta{
    grid-template-columns:1fr 1fr;
  }
}
@media(max-width:700px){
  .em-library-grid,
  .em-library-filters,
  .em-library-create-grid,
  .em-library-editor-meta{
    grid-template-columns:1fr;
  }
  .em-library-result-meta,
  .em-library-card-footer{
    align-items:flex-start;
    flex-direction:column;
  }
}


/* v0.3.11 — Constructor aligned to confirmed v24 prototype */
.em-constructor-head{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:18px;
  margin-bottom:14px;
}
.em-constructor-head h2{
  margin:4px 0 4px;
  font-size:24px;
}
.em-constructor-kicker{
  color:#234fe5;
  font-size:12px;
  font-weight:800;
}
.em-constructor-layout{
  display:grid;
  grid-template-columns:minmax(0,2.2fr) minmax(300px,.9fr);
  gap:14px;
  align-items:start;
}
.em-constructor-main{
  display:grid;
  gap:12px;
}
.em-constructor-side{
  display:grid;
  gap:12px;
  position:sticky;
  top:14px;
}
.em-constructor-section{
  margin:0;
}
.em-constructor-basic-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px;
}
.em-constructor-section textarea{
  width:100%;
  resize:vertical;
}
.em-constructor-subcard{
  border:1px solid var(--line);
  border-radius:12px;
  background:#f8fafc;
  padding:12px;
  margin-top:10px;
}
.em-constructor-subhead{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin-bottom:8px;
}
.em-constructor-placeholder{
  border:1px dashed #cbd5e1;
  border-radius:12px;
  padding:16px;
  background:#fafcff;
}
.em-constructor-placeholder strong{
  display:block;
  margin-bottom:5px;
}
.em-constructor-side-card{
  margin:0;
}
.em-constructor-side-card h3{
  margin:0 0 12px;
}
.em-readiness-list{
  display:grid;
}
.em-readiness-list > div{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  padding:10px 0;
  border-bottom:1px solid var(--line);
}
.em-readiness-list > div:last-child{
  border-bottom:0;
}
.em-readiness-list .ready{
  color:#15945f;
}
.em-readiness-list .not-ready{
  color:#94a3b8;
}
.em-constructor-usage-list{
  display:grid;
  gap:8px;
  margin-top:12px;
}
.em-constructor-usage-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding:10px;
  border:1px solid var(--line);
  border-radius:10px;
  background:#f8fafc;
}
.em-constructor-usage-row small{
  display:block;
  margin-top:3px;
}
@media(max-width:1050px){
  .em-constructor-layout{
    grid-template-columns:1fr;
  }
  .em-constructor-side{
    position:static;
    grid-template-columns:repeat(3,minmax(0,1fr));
  }
}
@media(max-width:760px){
  .em-constructor-head{
    align-items:flex-start;
    flex-direction:column;
  }
  .em-constructor-basic-grid{
    grid-template-columns:1fr;
  }
  .em-constructor-side{
    grid-template-columns:1fr;
  }
}


/* v0.3.12 — Assignment foundation */
.em-task-filters{
  display:grid;
  grid-template-columns:2fr 1fr 1fr 1fr;
  gap:12px;
  margin-top:14px;
}
.em-assignment-form-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:12px;
}
.em-assignment-mini-meta{
  display:flex;
  gap:14px;
  flex-wrap:wrap;
  margin-top:10px;
  font-size:13px;
  color:var(--muted);
}
.em-assignment-card-status{
  margin-top:8px;
  font-weight:700;
}
.em-assignment-editor-layout{
  display:grid;
  grid-template-columns:minmax(0,1.5fr) minmax(320px,1fr);
  gap:14px;
  align-items:start;
}
.em-assignment-publications{
  margin-top:18px;
}
.em-assignment-publications h3{
  margin:0 0 10px;
}
.em-assignment-publications .em-constructor-usage-row{
  margin-top:8px;
}
@media(max-width:1050px){
  .em-task-filters{
    grid-template-columns:1fr 1fr;
  }
  .em-assignment-editor-layout{
    grid-template-columns:1fr;
  }
}
@media(max-width:700px){
  .em-task-filters,
  .em-assignment-form-grid{
    grid-template-columns:1fr;
  }
}


/* v0.3.13 — Assignment UX clarification */
[hidden]{
  display:none !important;
}
.em-assignment-usage-block{
  margin-top:4px;
}
.em-assignment-usage-block h3{
  margin:0 0 10px;
}
.em-assignment-usage-divider{
  height:1px;
  background:var(--line);
  margin:18px 0;
}

/* v0.3.14 — Pilot hardening */

/* v0.3.15 — Teacher subject scope (no visual CSS changes) */

/* v0.3.16 — Performance fast path (no visual CSS changes) */

/* v0.3.17 — Modular architecture baseline (no visual CSS changes) */

/* v0.3.18 — KTP fast path (no visual CSS changes) */

/* v0.3.19 — Programs + Library fast path (no visual CSS changes) */

/* v0.3.20 — Learning loop: submissions, debts, gradebook, tests */
.em-content-box{
  padding:14px;
  border:1px solid var(--line);
  border-radius:12px;
  background:var(--panel-soft,#f8fafc);
  line-height:1.55;
  min-height:48px;
}
.em-table-wrap,
.em-gradebook-wrap{
  width:100%;
  overflow:auto;
}
.em-table{
  width:100%;
  border-collapse:collapse;
  min-width:760px;
}
.em-table th,
.em-table td{
  padding:10px 12px;
  border-bottom:1px solid var(--line);
  text-align:left;
  vertical-align:top;
}
.em-table th{
  font-size:12px;
  color:var(--muted);
  font-weight:700;
  background:var(--panel-soft,#f8fafc);
}
.em-gradebook-table{
  min-width:max-content;
}
.em-gradebook-student{
  position:sticky;
  left:0;
  z-index:2;
  min-width:190px;
  background:var(--panel,#fff) !important;
}
.em-gradebook-table thead .em-gradebook-student{
  z-index:3;
  background:var(--panel-soft,#f8fafc) !important;
}
.em-gradebook-cell{
  text-align:center !important;
  min-width:92px;
}
.em-test-question{
  margin-top:14px;
}
.em-test-options-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:10px;
}
.em-student-test-question{
  margin:0 0 16px;
}
.em-student-test-options{
  display:grid;
  gap:8px;
  margin-top:10px;
}
.em-student-test-options label{
  display:flex;
  gap:10px;
  align-items:flex-start;
  padding:10px 12px;
  border:1px solid var(--line);
  border-radius:10px;
  cursor:pointer;
}
.em-student-test-options label:hover{
  background:var(--panel-soft,#f8fafc);
}
@media(max-width:700px){
  .em-test-options-grid{
    grid-template-columns:1fr;
  }
}

/* v0.3.21 — Working Journal UX */
.em-journal-toolbar{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:18px;
  flex-wrap:wrap;
}
.em-journal-toolbar-title h3{
  margin:0 0 4px;
}
.em-journal-toolbar-actions{
  display:flex;
  align-items:flex-end;
  gap:10px;
  flex-wrap:wrap;
  margin-left:auto;
}
.em-journal-select{
  display:grid;
  gap:5px;
  min-width:210px;
}
.em-journal-select span{
  font-size:11px;
  font-weight:700;
  color:var(--muted);
}
.em-journal-select select{
  min-height:44px;
}
.em-journal-legend-btn{
  min-height:44px;
}
.em-gradebook-legend{
  display:flex;
  gap:14px 22px;
  flex-wrap:wrap;
  font-size:13px;
}
.em-journal-notice{
  margin:14px 0;
  padding:13px 15px;
  border:1px solid #f0cf83;
  border-radius:12px;
  background:#fff8e7;
  line-height:1.45;
}
.em-journal-table-card{
  padding:0;
  overflow:hidden;
}
.em-gradebook-wrap{
  width:100%;
  overflow:auto;
}
.em-gradebook-prototype-table{
  width:100%;
  min-width:max-content;
  border-collapse:separate;
  border-spacing:0;
  font-size:13px;
}
.em-gradebook-prototype-table th,
.em-gradebook-prototype-table td{
  height:44px;
  padding:8px 10px;
  border-bottom:1px solid var(--line);
  text-align:center;
  vertical-align:middle;
  background:var(--panel,#fff);
}
.em-gradebook-prototype-table thead th{
  font-weight:800;
  color:var(--text);
}
.em-gradebook-month-row th{
  background:#eaf2fa;
}
.em-gradebook-month-row th:not(.em-gradebook-student):not(.em-gradebook-summary-col){
  background:#dbeaf8;
}
.em-gradebook-date-row th{
  min-width:72px;
  background:#edf4fa;
  font-size:12px;
}
.em-gradebook-prototype-table .em-gradebook-student{
  position:sticky;
  left:0;
  z-index:4;
  min-width:250px;
  max-width:300px;
  text-align:left;
  background:var(--panel,#fff) !important;
  box-shadow:1px 0 0 var(--line);
}
.em-gradebook-prototype-table thead .em-gradebook-student{
  z-index:6;
  background:#eaf2fa !important;
}
.em-gradebook-prototype-table tbody .em-gradebook-student strong{
  color:#2455dd;
}
.em-gradebook-summary-col{
  min-width:95px;
  background:#eef3f7 !important;
}
.em-gradebook-summary-value{
  min-width:95px;
  font-weight:700;
}
.em-gradebook-prototype-cell{
  min-width:72px;
}
.em-gradebook-cell-stack{
  display:flex;
  justify-content:center;
  align-items:center;
  gap:5px;
  min-height:24px;
  flex-wrap:wrap;
}
.em-gradebook-grade{
  font-size:14px;
}
.em-gradebook-attendance{
  font-weight:800;
  font-size:12px;
}
.em-gradebook-attendance.warn{
  color:#9b6700;
}
.em-gradebook-attendance.danger{
  color:#b42318;
}
.em-gradebook-mini-result{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:2px 5px;
  border-radius:6px;
  background:#eef3f7;
  font-size:10px;
  font-weight:800;
  white-space:nowrap;
}
.em-gradebook-mini-result.ok{
  color:#067647;
  background:#ecfdf3;
}
.em-gradebook-mini-result.warn{
  color:#9b6700;
  background:#fff8e7;
}
.em-gradebook-average,
.em-gradebook-count-ok{
  color:#07883f;
}
.em-gradebook-count-missing{
  color:#c4322a;
}
.em-gradebook-empty-cell{
  display:inline-block;
  width:12px;
  height:1px;
}
.em-journal-stats-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:14px;
  margin-top:14px;
}
.em-journal-stat-card{
  min-height:160px;
}
.em-journal-stat-card h3{
  margin:0 0 22px;
}
.em-journal-stat-value{
  margin-bottom:12px;
  font-size:28px;
  font-weight:800;
  line-height:1;
}
.em-journal-stat-value small{
  font-size:14px;
  font-weight:500;
}
.em-journal-stat-card p{
  margin:0;
  line-height:1.45;
}
@media (max-width:1000px){
  .em-journal-toolbar-actions{
    width:100%;
    margin-left:0;
  }
  .em-journal-select{
    flex:1 1 220px;
  }
  .em-journal-stats-grid{
    grid-template-columns:1fr;
  }
  .em-gradebook-prototype-table .em-gradebook-student{
    min-width:190px;
  }
}

/* v0.3.22 — Working Journal Schedule Axis + Grade Details */
.em-gradebook-date-row th.is-planned{
  background:#f6f8fb;
}
.em-gradebook-date-row th.is-future{
  color:#60758a;
}
.em-gradebook-date-row th.is-extra{
  background:#fff4e5;
}
.em-gradebook-record-button{
  appearance:none;
  border:0;
  background:transparent;
  padding:2px 3px;
  margin:0;
  border-radius:6px;
  cursor:pointer;
  color:inherit;
  font:inherit;
}
.em-gradebook-record-button:hover,
.em-gradebook-record-button:focus-visible{
  background:#eaf1ff;
  outline:none;
  box-shadow:0 0 0 2px rgba(36,85,221,.14);
}
.em-gradebook-detail-overlay{
  position:fixed;
  inset:0;
  z-index:1000;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:24px;
  background:rgba(15,23,42,.36);
}
.em-gradebook-detail{
  width:min(620px,100%);
  max-height:min(720px,calc(100vh - 48px));
  overflow:auto;
  padding:20px;
  border:1px solid var(--line);
  border-radius:16px;
  background:var(--panel,#fff);
  box-shadow:0 24px 70px rgba(15,23,42,.22);
}
.em-gradebook-detail .em-section-title{
  align-items:flex-start;
}
.em-gradebook-detail .em-section-title h3{
  margin:8px 0 4px;
}
.em-gradebook-detail-result{
  margin:18px 0;
  padding:14px 16px;
  border-radius:12px;
  background:#eef4ff;
  color:#123ca8;
  font-size:24px;
  font-weight:800;
}
.em-gradebook-detail-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:12px;
}
.em-gradebook-detail-grid>div{
  display:grid;
  gap:4px;
  padding:12px;
  border:1px solid var(--line);
  border-radius:10px;
  background:#fbfcfe;
}
.em-gradebook-detail-grid span,
.em-gradebook-detail-comment>span{
  font-size:11px;
  font-weight:700;
  color:var(--muted);
}
.em-gradebook-detail-comment{
  margin-top:14px;
  padding:12px 14px;
  border:1px solid var(--line);
  border-radius:10px;
}
.em-gradebook-detail-comment p{
  margin:6px 0 0;
  line-height:1.5;
}
.em-gradebook-detail .em-actions{
  margin-top:16px;
}
@media(max-width:700px){
  .em-gradebook-detail-overlay{
    align-items:flex-end;
    padding:12px;
  }
  .em-gradebook-detail{
    max-height:88vh;
  }
  .em-gradebook-detail-grid{
    grid-template-columns:1fr;
  }
}

/* v0.3.23 — Teacher Students + Student Card */
.em-student-directory-selectors{
  align-items:center;
}
.em-student-directory-selectors select{
  min-width:220px;
}
.em-student-directory-context{
  margin-top:4px;
}
.em-student-directory-kpis{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:12px;
  margin:14px 0;
}
.em-student-directory-kpi{
  margin:0;
}
.em-student-directory-kpi strong{
  display:block;
  margin-bottom:4px;
  font-size:28px;
  line-height:1;
}
.em-student-directory-kpi.warn strong{color:#a76600}
.em-student-directory-kpi.danger strong{color:#bd3c3c}
.em-student-directory-filters{
  display:grid;
  grid-template-columns:minmax(260px,1fr) minmax(220px,.45fr);
  gap:12px;
  align-items:end;
}
.em-student-directory-card{
  padding:0;
  overflow:hidden;
}
.em-student-directory-head,
.em-student-directory-row{
  display:grid;
  grid-template-columns:minmax(230px,1.45fr) 90px 105px 125px 125px 135px minmax(140px,.8fr) 92px;
  gap:10px;
  align-items:center;
  min-width:1130px;
  padding:12px 14px;
}
.em-student-directory-head{
  background:#f8fafc;
  color:#6d7782;
  font-size:12px;
  font-weight:800;
  border-bottom:1px solid #e3e7eb;
}
.em-student-directory-row{
  border-bottom:1px solid #e3e7eb;
}
.em-student-directory-row:last-child{
  border-bottom:0;
}
.em-student-directory-card{
  overflow-x:auto;
}
.em-student-person{
  display:flex;
  align-items:center;
  gap:10px;
  min-width:0;
}
.em-student-avatar,
.em-student-profile-avatar{
  display:grid;
  place-items:center;
  flex:0 0 auto;
  border-radius:50%;
  background:#eef2ff;
  color:#2447d8;
  font-weight:900;
}
.em-student-avatar{
  width:38px;
  height:38px;
  font-size:12px;
}
.em-student-link{
  min-width:0;
  padding:0;
  border:0;
  background:transparent;
  color:#2447d8;
  font:inherit;
  font-weight:800;
  text-align:left;
  cursor:pointer;
}
.em-student-link:hover{text-decoration:underline}
.em-count-ok{color:#16815c;font-weight:800;white-space:nowrap}
.em-count-warn{color:#c17a00;font-weight:800;white-space:nowrap}
.em-status-danger{color:#bd3c3c;font-weight:800}
.em-student-risk{
  display:inline-flex;
  width:max-content;
  max-width:100%;
  padding:5px 8px;
  border-radius:999px;
  border:1px solid #e3e7eb;
  background:#f8fafc;
  font-size:11px;
  font-weight:800;
}
.em-student-risk.ok{color:#16815c;background:#edfdf3;border-color:#bde8ca}
.em-student-risk.warn{color:#926200;background:#fff6df;border-color:#f0d79d}
.em-student-risk.danger{color:#a13d34;background:#fff7f6;border-color:#f1c7c2}
.em-student-profile-hero{
  display:grid;
  grid-template-columns:auto 1fr auto;
  gap:18px;
  align-items:center;
}
.em-student-profile-main{
  display:flex;
  align-items:center;
  gap:14px;
  min-width:0;
}
.em-student-profile-avatar{
  width:64px;
  height:64px;
  font-size:20px;
}
.em-student-profile-main h2{
  margin:7px 0 4px;
}
.em-student-profile-metrics{
  display:grid;
  grid-template-columns:repeat(5,minmax(0,1fr));
  gap:10px;
  margin:14px 0;
}
.em-student-profile-metric{
  margin:0;
}
.em-student-profile-metric strong{
  display:block;
  margin-bottom:4px;
  font-size:24px;
}
.em-student-profile-tabs{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-bottom:16px;
}
.em-student-profile-tabs button{
  padding:9px 11px;
  border:1px solid #e3e7eb;
  border-radius:10px;
  background:#fff;
  font:inherit;
  font-weight:800;
  cursor:pointer;
}
.em-student-profile-tabs button.active{
  border-color:#2447d8;
  background:#2447d8;
  color:#fff;
}
.em-student-overview-grid{
  display:grid;
  grid-template-columns:minmax(260px,.75fr) minmax(0,1.25fr);
  gap:14px;
}
.em-student-profile-panel{
  border:1px solid #e3e7eb;
  border-radius:14px;
  background:#fff;
  padding:14px;
}
.em-student-profile-panel h3{
  margin:0 0 12px;
}
.em-student-attention-list{
  display:grid;
  gap:8px;
}
.em-student-attention-item{
  padding:10px 11px;
  border:1px solid #f0d79d;
  border-radius:10px;
  background:#fffaf0;
}
.em-student-detail-row{
  display:grid;
  grid-template-columns:minmax(220px,1fr) minmax(110px,140px) minmax(130px,150px);
  gap:12px;
  align-items:center;
  padding:11px 0;
  border-bottom:1px solid #e3e7eb;
}
.em-student-detail-row:last-child{border-bottom:0}
.em-student-result-value{
  color:#16815c;
  white-space:nowrap;
}
.em-student-result-action{
  display:flex;
  justify-content:flex-end;
  min-width:0;
}
.em-student-result-action .em-btn{
  width:100%;
  justify-content:center;
}
@media(max-width:1100px){
  .em-student-directory-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}
  .em-student-profile-metrics{grid-template-columns:repeat(3,minmax(0,1fr))}
  .em-student-profile-hero{grid-template-columns:1fr auto}
  .em-student-profile-hero>div:first-child{grid-column:1/-1}
}
@media(max-width:760px){
  .em-student-directory-selectors,
  .em-student-directory-filters,
  .em-student-overview-grid{grid-template-columns:1fr;display:grid;width:100%}
  .em-student-directory-selectors select{width:100%;min-width:0}
  .em-student-directory-kpis,
  .em-student-profile-metrics{grid-template-columns:1fr 1fr}
  .em-student-profile-hero{grid-template-columns:1fr}
  .em-student-profile-main{align-items:flex-start}
  .em-student-detail-row{grid-template-columns:1fr}
}
@media(max-width:480px){
  .em-student-directory-kpis,
  .em-student-profile-metrics{grid-template-columns:1fr}
}

/* ============================================================
 * Student Daily Flow
 * ============================================================ */
.em-student-day-hero{
  margin-bottom:14px;
  border-left:5px solid #2447d8;
}
.em-student-day-hero.is-live{
  border-left-color:#16815c;
  box-shadow:0 10px 28px rgba(22,129,92,.10);
}
.em-student-day-hero-main{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:18px;
}
.em-student-day-hero h2{
  margin:9px 0 6px;
}
.em-student-day-topic{
  margin-bottom:6px;
  line-height:1.45;
}
.em-student-day-grid{
  grid-template-columns:minmax(0,1.1fr) minmax(320px,.9fr);
  margin-bottom:14px;
}
.em-student-day-schedule,
.em-student-day-todo,
.em-student-day-results{
  display:grid;
}
.em-student-day-schedule-row{
  display:grid;
  grid-template-columns:82px minmax(0,1fr) auto;
  gap:12px;
  align-items:center;
  padding:11px 0;
  border-bottom:1px solid #e3e7eb;
}
.em-student-day-schedule-row:last-child{border-bottom:0}
.em-student-day-schedule-row.is-live{
  margin:0 -8px;
  padding:11px 8px;
  border-radius:10px;
  border-bottom-color:transparent;
  background:#edfdf3;
}
.em-student-day-schedule-row.is-past{
  opacity:.72;
}
.em-student-day-time{
  display:grid;
  gap:2px;
  white-space:nowrap;
}
.em-student-day-time strong{font-size:15px}
.em-student-day-time span,
.em-student-day-subject span{
  color:#6d7782;
  font-size:12px;
}
.em-student-day-subject{
  display:grid;
  gap:3px;
  min-width:0;
}
.em-student-day-subject strong{
  overflow:hidden;
  text-overflow:ellipsis;
}
.em-student-day-status{
  text-align:right;
  white-space:nowrap;
}
.em-student-day-todo-row{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:12px;
  align-items:center;
  padding:11px 0;
  border-bottom:1px solid #e3e7eb;
}
.em-student-day-todo-row:last-child{border-bottom:0}
.em-student-day-todo-row>div{
  display:grid;
  gap:4px;
  min-width:0;
}
.em-student-day-result-row{
  display:grid;
  grid-template-columns:minmax(240px,1fr) minmax(110px,150px) 130px;
  gap:14px;
  align-items:center;
  padding:11px 0;
  border-bottom:1px solid #e3e7eb;
}
.em-student-day-result-row:last-child{border-bottom:0}
.em-student-day-result-row>div{
  display:grid;
  gap:3px;
  min-width:0;
}
.em-student-day-result-value{
  color:#16815c;
  white-space:nowrap;
}
.em-student-day-empty,
.em-student-live-empty{
  max-width:900px;
}
.em-student-live-head{
  margin-bottom:14px;
  border-left:5px solid #16815c;
}
.em-student-live-head h2{
  margin:8px 0 5px;
}
.em-student-live-grid{
  grid-template-columns:minmax(0,1.35fr) minmax(300px,.65fr);
  align-items:start;
}
.em-student-live-grid>div{
  display:grid;
  gap:14px;
}
.em-student-live-block{
  margin:0;
}
.em-student-live-block h3{
  margin-bottom:10px;
}
.em-student-live-content{
  line-height:1.65;
  white-space:normal;
  overflow-wrap:anywhere;
}
.em-student-live-task{
  border-color:#f0d79d;
  background:#fffaf0;
}
.em-student-live-task h3{
  margin:10px 0 14px;
}

@media(max-width:980px){
  .em-student-day-grid,
  .em-student-live-grid{
    grid-template-columns:1fr;
  }
}
@media(max-width:700px){
  .em-student-day-hero-main{
    display:grid;
    grid-template-columns:1fr;
  }
  .em-student-day-schedule-row{
    grid-template-columns:68px minmax(0,1fr);
  }
  .em-student-day-status{
    grid-column:2;
    text-align:left;
  }
  .em-student-day-todo-row,
  .em-student-day-result-row{
    grid-template-columns:1fr;
  }
  .em-student-day-result-row .em-btn,
  .em-student-day-todo-row .em-btn{
    width:100%;
    justify-content:center;
  }
}

/* ============================================================
 * Student Workspace
 * ============================================================ */
.em-student-summary-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:14px;
  margin-bottom:14px;
}
.em-student-summary-grid .em-card{
  display:grid;
  gap:5px;
}
.em-student-summary-grid .em-card strong{
  font-size:28px;
  line-height:1.05;
}
.em-student-summary-grid .em-card span{
  color:#6d7782;
}
.em-student-day-summary .em-card strong{
  font-size:24px;
}
.em-student-week-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:14px;
}
.em-student-week-day{
  margin:0;
  min-width:0;
}
.em-student-week-day.is-today{
  border-color:#b9c8ff;
  box-shadow:0 8px 22px rgba(36,71,216,.08);
}
.em-student-week-day-head{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:10px;
  margin-bottom:10px;
}
.em-student-week-day-head>div{
  display:grid;
  gap:3px;
}
.em-student-week-day-head span:not(.em-chip){
  color:#6d7782;
  font-size:12px;
}
.em-student-week-lessons{
  display:grid;
}
.em-student-week-lesson{
  display:grid;
  grid-template-columns:78px minmax(0,1fr) auto;
  gap:10px;
  align-items:center;
  padding:10px 0;
  border-top:1px solid #e3e7eb;
}
.em-student-week-time{
  font-weight:700;
  font-size:12px;
  white-space:nowrap;
}
.em-student-week-subject{
  display:grid;
  gap:3px;
  min-width:0;
}
.em-student-week-subject span{
  color:#6d7782;
  font-size:12px;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.em-student-lessons-list{
  display:grid;
  gap:10px;
}
.em-student-history-row{
  display:grid;
  grid-template-columns:190px minmax(0,1fr) auto;
  gap:18px;
  align-items:center;
  margin:0;
}
.em-student-history-date,
.em-student-history-main{
  display:grid;
  gap:4px;
  min-width:0;
}
.em-student-history-date span,
.em-student-history-main span{
  color:#6d7782;
}
.em-student-history-meta{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:8px;
}
.em-student-subject-stats{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:10px;
}
.em-student-subject-stats>div{
  display:grid;
  gap:4px;
  padding:12px;
  border:1px solid #e3e7eb;
  border-radius:10px;
}
.em-student-subject-stats span{
  color:#6d7782;
}
.em-student-results-list,
.em-student-upcoming-list{
  display:grid;
}
.em-student-progress-row{
  display:grid;
  grid-template-columns:minmax(260px,1fr) minmax(130px,170px) 120px;
  gap:14px;
  align-items:center;
  padding:12px 0;
  border-bottom:1px solid #e3e7eb;
}
.em-student-progress-row:last-child{border-bottom:0}
.em-student-progress-row>div,
.em-student-upcoming-list>div{
  display:grid;
  gap:4px;
  min-width:0;
}
.em-student-upcoming-list>div{
  padding:10px 0;
  border-bottom:1px solid #e3e7eb;
}
.em-student-upcoming-list>div:last-child{border-bottom:0}
.em-student-test-result-grid{
  display:grid;
  grid-template-columns:minmax(0,1.35fr) minmax(300px,.65fr);
  gap:14px;
  margin-bottom:14px;
}
.em-student-test-result-hero h3{
  margin:14px 0;
  font-size:30px;
  color:#183ea9;
}
.em-student-test-result-metrics{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:10px;
}
.em-student-test-result-metrics>div,
.em-student-test-info-list>div{
  display:grid;
  gap:4px;
  padding:12px;
  border:1px solid #e3e7eb;
  border-radius:10px;
}
.em-student-test-result-metrics span,
.em-student-test-info-list span{
  color:#6d7782;
  font-size:12px;
}
.em-student-test-info-list{
  display:grid;
  gap:10px;
}
.em-student-test-after-grid{
  grid-template-columns:minmax(0,1fr) minmax(300px,.65fr);
}

@media(max-width:1180px){
  .em-student-week-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .em-student-summary-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .em-student-subject-stats{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:850px){
  .em-student-week-grid,
  .em-student-test-result-grid,
  .em-student-test-after-grid{grid-template-columns:1fr}
  .em-student-history-row{grid-template-columns:1fr}
  .em-student-history-meta{justify-content:flex-start}
  .em-student-progress-row{grid-template-columns:1fr}
}
@media(max-width:560px){
  .em-student-summary-grid,
  .em-student-subject-stats,
  .em-student-test-result-metrics{grid-template-columns:1fr}
  .em-student-week-lesson{grid-template-columns:70px minmax(0,1fr)}
  .em-student-week-lesson .em-btn,
  .em-student-week-lesson>.em-muted{grid-column:2}
}

/* ============================================================
 * v0.3.27 — Teacher Works Workflow
 * ============================================================ */
.em-works-toolbar{display:grid;gap:16px}
.em-works-quick-row{display:grid;grid-template-columns:1fr 1fr;gap:16px}
.em-works-filter-group{display:grid;gap:8px}
.em-works-filter-label{font-size:12px;font-weight:700;color:var(--muted)}
.em-works-chips{display:flex;gap:8px;flex-wrap:wrap}
.em-filter-chip{
  border:1px solid var(--line);
  background:#fff;
  border-radius:999px;
  padding:8px 12px;
  cursor:pointer;
  font-weight:700;
  color:var(--text);
}
.em-filter-chip:hover{border-color:#b9c8ff}
.em-filter-chip.active{background:#234fe5;color:#fff;border-color:#234fe5}
.em-works-filters{
  display:grid;
  grid-template-columns:1.25fr 1fr 1.5fr 140px;
  gap:12px;
}
.em-works-search-field input{width:100%}
.em-works-grid .em-work-publication-card{min-height:330px}
.em-work-card-chips{display:flex;gap:7px;flex-wrap:wrap}
.em-work-lesson-link{margin-top:8px;color:#3152ba;font-size:13px;font-weight:700}
.em-work-dates{display:grid;gap:5px;margin-top:12px;font-size:13px;color:var(--muted)}
.em-work-deadline{font-weight:700;color:#9b6a00}
.em-work-deadline.overdue{color:#b42318}
.em-work-stats{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:8px;
  margin-top:14px;
}
.em-work-stats>div{
  display:grid;
  gap:3px;
  padding:10px;
  border:1px solid var(--line);
  border-radius:10px;
  background:#fafbfd;
}
.em-work-stats strong{font-size:19px}
.em-work-stats span{font-size:11px;color:var(--muted)}
.em-works-pagination{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-top:12px}
.em-list-summary{margin-top:10px;color:var(--muted);font-size:13px}
.em-work-publication-summary{
  display:grid;
  grid-template-columns:repeat(6,minmax(0,1fr));
  gap:10px;
  margin-bottom:14px;
}
.em-work-publication-summary>div{
  display:grid;
  gap:4px;
  padding:12px;
  border:1px solid var(--line);
  border-radius:10px;
  background:#fafbfd;
}
.em-work-publication-summary span{font-size:12px;color:var(--muted)}
.em-work-publication-summary strong{font-size:17px}
.em-work-students-table td:last-child{text-align:right}

@media(max-width:1180px){
  .em-works-quick-row{grid-template-columns:1fr}
  .em-works-filters{grid-template-columns:1fr 1fr}
  .em-work-publication-summary{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media(max-width:760px){
  .em-works-filters{grid-template-columns:1fr}
  .em-work-stats{grid-template-columns:repeat(2,minmax(0,1fr))}
  .em-work-publication-summary{grid-template-columns:repeat(2,minmax(0,1fr))}
  .em-works-pagination{align-items:flex-start;flex-direction:column}
}
@media(max-width:520px){
  .em-work-publication-summary{grid-template-columns:1fr}
}

/* v0.3.28 — Test card metadata */
.em-test-card-meta {
  display: grid;
  gap: 6px;
  margin-top: 14px;
  font-size: 14px;
}
.em-test-publication-preview {
  display: grid;
  gap: 8px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--em-border, #dfe5ee);
}
.em-test-publication-preview-row {
  display: grid;
  gap: 2px;
}

/* v0.3.29 — Assessment workflow */
.em-test-correct-checks {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.em-test-correct-checks label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border: 1px solid var(--em-border, #dbe3ef);
  border-radius: 10px;
  background: #fff;
}

.em-test-review-list {
  display: grid;
  gap: 12px;
}

.em-test-review-item {
  margin: 0;
}

.em-test-review-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.em-test-review-grid > div {
  display: grid;
  gap: 4px;
  padding: 12px;
  border: 1px solid var(--em-border, #dbe3ef);
  border-radius: 10px;
  background: #fff;
}

@media (max-width: 760px) {
  .em-test-review-grid {
    grid-template-columns: 1fr;
  }
}
