
:root{
  --bg:#f5f7fb;--surface:#fff;--surface-2:#f8fafc;--text:#172033;--muted:#667085;--line:#e4e8ef;
  --primary:#1b93d2;--primary-2:#52b1e4;--success:#238563;--warning:#a96d17;--danger:#bd405b;
  --shadow:0 5px 16px rgba(23,32,51,.045);--radius:8px;--radius-sm:6px;--sidebar:246px;
}
*{box-sizing:border-box}
html{font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;background:var(--bg);color:var(--text)}
body{margin:0;min-height:100vh}a{color:inherit;text-decoration:none}button,input,select,textarea{font:inherit}button{cursor:pointer}
.shell{display:grid;grid-template-columns:var(--sidebar) minmax(0,1fr);min-height:100vh}
.sidebar{background:#171a2b;color:#fff;padding:20px 14px;position:sticky;top:0;height:100vh;display:flex;flex-direction:column;gap:18px}
.brand{display:flex;align-items:center;gap:10px;padding:2px 9px 10px}.brand-mark{width:34px;height:34px;border-radius:7px;background:linear-gradient(145deg,#7777eb,#4a4ac6);display:grid;place-items:center;font-weight:800;font-size:17px;box-shadow:0 6px 14px rgba(91,91,214,.2)}.brand-name{font-size:20px;font-weight:800;letter-spacing:.2px}
.nav-main,.nav-bottom{display:flex;flex-direction:column;gap:4px}.nav-bottom{margin-top:auto;border-top:1px solid rgba(255,255,255,.09);padding-top:12px}
.nav-link{display:flex;align-items:center;gap:10px;padding:10px 11px;border-radius:6px;color:#d6d9e9;font-size:14px}.nav-link:hover,.nav-link.active{background:#262a42;color:#fff}.nav-link.logout{color:#efc0c8}
.nav-link .dashicons{width:20px;height:20px;font-size:20px;line-height:20px;color:#aeb5d8;flex:0 0 20px}.nav-link.active .dashicons,.nav-link:hover .dashicons{color:#fff}.nav-link.logout .dashicons{color:#efc0c8}
.profile-mini{display:flex;align-items:center;gap:10px;padding:7px 10px 10px;margin-bottom:2px}.profile-avatar{width:36px;height:36px;aspect-ratio:1/1;border-radius:50%;display:grid;place-items:center;background:#343a5f;color:#fff;font-weight:800;line-height:1;flex:0 0 36px}.profile-mini strong{display:block;font-size:13px}.profile-mini small{display:block;color:#8f96b4;margin-top:2px;font-size:11px;line-height:1.35}
.main{min-width:0}.topbar{height:70px;background:rgba(255,255,255,.9);backdrop-filter:blur(10px);border-bottom:1px solid var(--line);display:flex;align-items:center;gap:18px;padding:0 30px;position:sticky;top:0;z-index:10}.page-title{font-size:19px;font-weight:760}.topbar .spacer{flex:1}
.content{padding:26px 30px 40px;max-width:1500px;margin:0 auto}.hero{display:flex;justify-content:space-between;gap:22px;align-items:flex-start;margin-bottom:20px}.hero h1{font-size:28px;line-height:1.15;margin:0 0 7px;letter-spacing:-.025em}.hero p{margin:0;color:var(--muted);font-size:14px;max-width:760px;line-height:1.6}
.actions{display:flex;gap:8px;flex-wrap:wrap}.btn{border:1px solid var(--line);background:#fff;color:var(--text);border-radius:6px;padding:9px 13px;font-weight:670;font-size:13px;box-shadow:0 1px 0 rgba(0,0,0,.02)}.btn.primary{background:var(--primary);border-color:var(--primary);color:#fff}.btn.danger{color:var(--danger);border-color:#edc9d2}.btn.small{padding:7px 10px;font-size:12px}
.pill{border:1px solid var(--line);background:#fff;padding:7px 10px;border-radius:6px;color:var(--muted);font-size:12px}
.card{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow)}.grid{display:grid;gap:16px}.grid.stats{grid-template-columns:repeat(3,minmax(0,1fr));margin-bottom:20px}.stat{padding:18px}.stat-label{font-size:12px;color:var(--muted);margin-bottom:9px}.stat-value{font-size:28px;font-weight:800;letter-spacing:-.03em}.stat-note{font-size:12px;color:var(--muted);margin-top:7px}
.announcement{display:grid;grid-template-columns:auto minmax(0,1fr);gap:12px;align-items:start;padding:14px 16px;margin-bottom:18px;border:1px solid #ecd7aa;background:#fffaf0;border-radius:8px}.announcement-icon{width:34px;height:34px;border-radius:6px;background:#fff0ca;color:#99651d;display:grid;place-items:center}.announcement-icon .dashicons{font-size:19px;width:19px;height:19px}.announcement strong{display:block;font-size:13px;margin-bottom:3px}.announcement p{margin:0;color:#806534;font-size:12px;line-height:1.55}.announcement-meta{font-size:11px;color:#a17f42;margin-top:5px}
.dashboard-actions{display:flex;justify-content:flex-end;gap:8px;margin:0 0 18px;flex-wrap:wrap}
.two-col{display:grid;grid-template-columns:minmax(0,1.55fr) minmax(300px,.8fr);gap:18px}.section-card{padding:18px}.section-head{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:14px}.section-head h2{font-size:16px;margin:0}.section-head p{margin:4px 0 0;color:var(--muted);font-size:12px}.section-title-row{display:flex;align-items:center;gap:7px}
.table{width:100%;border-collapse:collapse}.table th{text-align:left;font-size:10px;letter-spacing:.055em;text-transform:uppercase;color:#8a93a6;font-weight:750;padding:10px 9px;border-bottom:1px solid var(--line)}.table td{padding:12px 9px;border-bottom:1px solid var(--line);font-size:13px;vertical-align:middle}.table tr:last-child td{border-bottom:none}.name{font-weight:700}.sub{color:var(--muted);font-size:11px;margin-top:3px}
.badge{display:inline-flex;align-items:center;gap:6px;border-radius:999px;padding:5px 8px;font-size:11px;font-weight:650}.badge.success{background:#e8f7f0;color:#187a57}.badge.warning{background:#fff4dd;color:#95621c}.badge.info{background:#eeeefe;color:#4e4ec7}.badge.gray{background:#f0f2f5;color:#667085}.dot{width:6px;height:6px;border-radius:50%;background:currentColor}
.progress{height:7px;background:#edf0f4;border-radius:999px;overflow:hidden}.progress>span{display:block;height:100%;background:var(--primary);border-radius:999px}.progress-row{display:grid;grid-template-columns:minmax(110px,1fr) 44px;gap:9px;align-items:center}
.group-cell{display:flex;align-items:center;gap:10px}.group-icon{width:39px;height:39px;border-radius:7px;display:grid;place-items:center;font-size:18px;flex:0 0 39px;border:1px solid rgba(0,0,0,.04);font-family:"Segoe UI Emoji","Apple Color Emoji",sans-serif}.group-icon.flower{background:#fff0f4}.group-icon.paw{background:#eef6ff}.group-icon.diamond{background:#edf8f2;color:#1e8061;font-family:inherit;font-weight:900}.group-icon.star{background:#fff7df;color:#9b6c15;font-family:inherit;font-weight:900}
.list{display:flex;flex-direction:column}.list-item{display:flex;align-items:center;gap:11px;padding:12px 0;border-bottom:1px solid var(--line)}.list-item:last-child{border-bottom:none}.list-icon{flex:0 0 34px;height:34px;border-radius:6px;background:#f0f1ff;color:var(--primary);display:grid;place-items:center}.list-icon .dashicons{font-size:18px;width:18px;height:18px}.list-body{min-width:0;flex:1}.list-title{font-size:13px;font-weight:700}.list-meta{font-size:11px;color:var(--muted);margin-top:3px;line-height:1.4}.notification-item.unread{background:#fbfbff;border-radius:7px;padding-left:9px;padding-right:9px}.notification-item.unread .list-title::after{content:"";display:inline-block;width:6px;height:6px;border-radius:50%;background:var(--primary);margin-left:6px;vertical-align:middle}.notification-count{display:inline-flex;align-items:center;justify-content:center;min-width:22px;height:22px;padding:0 7px;border-radius:999px;background:#eeeefe;color:#4e4ec7;font-size:11px;font-weight:750}
.group-header{background:linear-gradient(135deg,#fff,#f7f7ff);padding:20px;border:1px solid #e2e4f6;border-radius:8px;margin-bottom:16px}.group-header-top{display:flex;justify-content:space-between;gap:16px}.group-title{display:flex;align-items:center;gap:11px}.group-code{font-size:11px;color:var(--muted);margin-top:7px}.group-code strong{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;color:var(--text)}
.tabs{display:flex;gap:4px;border-bottom:1px solid var(--line);margin:18px 0 16px;overflow:auto}.tab{padding:10px 11px;color:var(--muted);font-size:13px;border-bottom:2px solid transparent;white-space:nowrap}.tab.active{color:var(--primary);border-bottom-color:var(--primary);font-weight:700}
.callout{border:1px solid #f0d49f;background:#fffaf0;border-radius:8px;padding:12px 13px;display:flex;gap:11px;align-items:flex-start}.callout .dashicons{color:#a36b15}.callout strong{font-size:12px}.callout p{font-size:11px;color:#806534;margin:3px 0 0;line-height:1.5}
.assignment{display:grid;grid-template-columns:48px minmax(0,1fr) auto;gap:12px;align-items:center;padding:14px 0;border-bottom:1px solid var(--line)}.assignment:last-child{border-bottom:none}.assignment-num{width:40px;height:40px;border-radius:7px;background:#f1f2ff;color:var(--primary);display:grid;place-items:center;font-weight:800;font-size:12px}.assignment h3{font-size:14px;margin:0 0 4px}.assignment p{font-size:11px;color:var(--muted);margin:0;line-height:1.4}
.course-card{padding:18px}.course-card+.course-card{margin-top:12px}.course-top{display:flex;justify-content:space-between;gap:16px}.course-top h3{margin:0 0 5px;font-size:16px}.course-meta{color:var(--muted);font-size:12px}
.step-layout{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:18px}.lesson{padding:22px}.lesson h1{font-size:26px;margin:0 0 7px}.lesson-lead{font-size:14px;color:var(--muted);line-height:1.65}.lesson-section{padding-top:21px;margin-top:21px;border-top:1px solid var(--line)}.lesson-section h2{font-size:17px;margin:0 0 9px}.placeholder{border:1px dashed #cfd5df;background:#fafbfc;border-radius:7px;min-height:190px;display:grid;place-items:center;color:#8b94a7;font-size:12px;margin:12px 0}.code{background:#171a2b;color:#e5e8f6;border-radius:7px;padding:16px;font:12px/1.7 ui-monospace,SFMono-Regular,Menlo,monospace;overflow:auto}.side-panel{padding:16px;position:sticky;top:88px;height:max-content}.step-list{display:flex;flex-direction:column;gap:5px}.step-link{padding:9px 10px;border-radius:6px;font-size:12px;color:var(--muted);display:flex;justify-content:space-between;gap:10px}.step-link.active{background:#f0f1ff;color:var(--primary);font-weight:700}.step-link.done::after{content:"✓";color:var(--success);font-weight:800}.feedback{margin-top:16px;border:1px solid #dfe3ff;background:#f8f8ff;border-radius:7px;padding:12px}.feedback strong{font-size:12px}.feedback p{font-size:11px;color:var(--muted);line-height:1.5;margin:5px 0 0}.locked{display:flex;gap:9px;align-items:flex-start;border:1px solid #e7e9ee;background:#fafafa;border-radius:7px;padding:10px 11px;color:var(--muted);font-size:11px;line-height:1.5}
.field{display:flex;flex-direction:column;gap:6px;margin-bottom:16px}.field label{font-size:12px;font-weight:700}.field input,.field select,.field textarea{width:100%;border:1px solid #dfe3ea;border-radius:6px;padding:10px 11px;background:#fff;color:var(--text);outline:none}.field textarea{min-height:100px;resize:vertical}
.empty{padding:28px;text-align:center}.empty-icon{width:48px;height:48px;border-radius:7px;background:#f0f1ff;color:var(--primary);display:grid;place-items:center;margin:0 auto 12px}.empty-icon .dashicons{font-size:24px;width:24px;height:24px}.empty h3{margin:0 0 6px}.empty p{margin:0 auto 14px;color:var(--muted);font-size:12px;max-width:420px;line-height:1.6}
.notification-filter{display:flex;gap:7px;flex-wrap:wrap}.notification-filter .pill.active{background:#f0f1ff;color:var(--primary);border-color:#dfe1ff;font-weight:700}
.login-shell{min-height:100vh;display:grid;grid-template-columns:1.1fr .9fr}.login-visual{background:#171a2b;color:#fff;padding:58px;display:flex;flex-direction:column;justify-content:space-between}.login-visual h1{font-size:44px;line-height:1.05;max-width:650px;letter-spacing:-.04em}.login-visual p{max-width:580px;color:#b8bdd2;line-height:1.7}.login-card-wrap{display:grid;place-items:center;padding:38px;background:#f7f8fb}.login-card{width:min(450px,100%);padding:26px}.login-card h2{margin:0 0 7px;font-size:26px}.login-card>p{color:var(--muted);margin:0 0 21px;line-height:1.6}.role-links{display:grid;grid-template-columns:1fr 1fr;gap:8px}.role-link{border:1px solid var(--line);border-radius:7px;padding:13px;text-align:center;font-weight:700}.role-link:hover{border-color:#c9cbf7;background:#f7f7ff}.notice{font-size:11px;color:var(--muted);line-height:1.55;margin-top:14px}
@media(max-width:1080px){:root{--sidebar:220px}.grid.stats{grid-template-columns:repeat(2,1fr)}.two-col,.step-layout{grid-template-columns:1fr}.side-panel{position:static}}
@media(max-width:760px){.shell{grid-template-columns:1fr}.sidebar{height:auto;position:static;padding:14px}.nav-main{display:grid;grid-template-columns:1fr 1fr}.nav-bottom{margin-top:0}.profile-mini{display:none}.topbar{padding:0 16px;height:62px}.content{padding:20px 16px 30px}.hero,.group-header-top{flex-direction:column}.grid.stats{grid-template-columns:1fr}.table{display:block;overflow:auto;white-space:nowrap}.login-shell{grid-template-columns:1fr}.login-visual{display:none}.login-card-wrap{min-height:100vh}.assignment{grid-template-columns:44px 1fr}.assignment>.badge{grid-column:2}}


/* v4 — sidebar bottom utilities + topbar actions */
.sidebar{
  display:flex;
  flex-direction:column;
}
.nav{
  flex:0 0 auto;
}
.sidebar-bottom{
  margin-top:auto;
  border-top:none;
  padding-top:0;
}
.sidebar-utilities{
  display:flex;
  flex-direction:column;
  gap:4px;
  margin-bottom:14px;
}
.sidebar-utilities a{
  display:flex;
  align-items:center;
  gap:11px;
  padding:10px 12px;
  border-radius:7px;
  color:#d6d9e9;
  font-size:14px;
}
.sidebar-utilities a:hover,
.sidebar-utilities a.active{
  background:#262a42;
  color:#fff;
}
.sidebar-utilities .logout{
  color:#f0c0c8;
}
.profile-divider{
  height:1px;
  background:rgba(255,255,255,.09);
  margin:0 0 14px;
}
.topbar-actions{
  display:flex;
  align-items:center;
  gap:9px;
  margin-left:auto;
}
.topbar-actions .btn{
  box-shadow:none;
}
@media(max-width:760px){
  .sidebar-utilities{margin-top:10px}
  .topbar{flex-wrap:wrap;height:auto;min-height:64px;padding-top:10px;padding-bottom:10px}
  .topbar-actions{width:100%;margin-left:0}
}


/* v4 final — utility links above profile */
.nav-bottom{
  margin-top:auto;
  display:flex;
  flex-direction:column;
}
.nav-bottom-links{
  display:flex;
  flex-direction:column;
  gap:4px;
}
.profile-separator{
  height:1px;
  background:rgba(255,255,255,.10);
  margin:14px 0;
}
.nav-bottom .profile-mini{
  padding:0 8px 2px;
}


/* v5 — teacher home grid aligned with the 3 KPI tiles */
.teacher-home-grid{
  display:grid;
  grid-template-columns:2fr 1fr;
  gap:18px;
  align-items:start;
}
@media(max-width:1100px){
  .teacher-home-grid{
    grid-template-columns:1fr;
  }
}


/* v6 — power icon for logout */
.power-icon{
  width:20px;
  height:20px;
  position:relative;
  display:inline-block;
  flex:0 0 20px;
}
.power-icon::before{
  content:"";
  position:absolute;
  left:4px;
  top:5px;
  width:12px;
  height:12px;
  border:2px solid currentColor;
  border-top-color:transparent;
  border-radius:50%;
  box-sizing:border-box;
}
.power-icon::after{
  content:"";
  position:absolute;
  left:9px;
  top:1px;
  width:2px;
  height:9px;
  border-radius:2px;
  background:currentColor;
}


/* v7 — logout stays white */
.nav-bottom-links .logout{
  color:#fff;
}
.nav-bottom-links .logout:hover{
  color:#fff;
}


/* v8 — tasks screen */
.completed-tasks{
  margin-top:18px;
}
.task-list-toolbar{
  margin-bottom:4px;
}


/* v9 — task library / own tasks architecture */
.task-title-line{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.task-title-line h3{margin:0}
.source-badge,.visibility-badge{
  display:inline-flex;align-items:center;gap:4px;border-radius:999px;padding:4px 7px;
  font-size:10px;font-weight:700;line-height:1;white-space:nowrap
}
.source-badge.eureka{background:#eeeefe;color:#4e4ec7}
.source-badge.own{background:#eaf7ef;color:#1f7b58}
.source-badge.school{background:#eef6ff;color:#356a9c}
.source-badge.student{background:#fff3e7;color:#9a5d17}
.visibility-badge.private{background:#f1f2f5;color:#667085}
.visibility-badge.school{background:#eef6ff;color:#356a9c}
.visibility-badge .dashicons{font-size:13px;width:13px;height:13px;line-height:13px}

.catalog-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin-bottom:16px}
.compact-stat{padding:16px}
.compact-stat .stat-value{font-size:24px}
.student-review-callout{align-items:center;margin-bottom:16px}
.student-review-callout>.dashicons{color:#a36b15}
.callout-action{margin-left:auto}
.catalog-toolbar{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:16px}
.catalog-tabs{display:flex;gap:7px;flex-wrap:wrap}
.catalog-tabs .pill.active{background:#f0f1ff;color:var(--primary);border-color:#dfe1ff;font-weight:700}
.catalog-search{display:flex;align-items:center;gap:7px;border:1px solid var(--line);background:#fff;border-radius:6px;padding:7px 9px;min-width:220px}
.catalog-search .dashicons{font-size:17px;width:17px;height:17px;color:#8a93a6}
.catalog-search input{border:0;outline:0;background:transparent;width:100%;font-size:12px}
.task-library-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.task-library-card{border:1px solid var(--line);border-radius:7px;padding:16px;background:#fff}
.task-card-top{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:12px}
.task-library-card h3{font-size:15px;margin:0 0 7px}
.task-description{font-size:12px;color:var(--muted);line-height:1.55;margin:0 0 12px}
.task-card-meta{font-size:11px;color:var(--muted);line-height:1.45}
.task-card-actions{display:flex;gap:7px;flex-wrap:wrap;margin-top:14px}
.difficulty{font-size:11px;color:var(--muted)}

.editor-layout{display:grid;grid-template-columns:minmax(0,1.7fr) 320px;gap:18px}
.editor-main,.editor-side{min-width:0}
.editor-side{height:max-content;position:sticky;top:88px}
.editor-section{border-top:1px solid var(--line);padding-top:17px;margin-top:17px}
.editor-section-head{display:flex;align-items:center;justify-content:space-between;gap:12px}
.editor-section-head>div{display:flex;flex-direction:column;gap:3px}
.editor-section-head strong{font-size:13px}
.editor-section-head span{font-size:11px;color:var(--muted)}
.editor-placeholder{min-height:120px;margin-bottom:0}
.component-chips{display:flex;gap:7px;flex-wrap:wrap;margin-top:11px}
.component-chips span{border:1px solid var(--line);background:#fafbfc;border-radius:999px;padding:6px 9px;font-size:11px}
.add-section{margin-top:17px;display:flex;align-items:center;gap:5px}
.add-section .dashicons{font-size:15px;width:15px;height:15px}
.radio-row{display:flex;align-items:flex-start;gap:8px;border:1px solid var(--line);border-radius:6px;padding:10px 11px}
.radio-row+ .radio-row{margin-top:7px}
.radio-row input{width:auto;margin-top:2px}
.radio-row span{display:flex;flex-direction:column;gap:2px}
.radio-row strong{font-size:12px}
.radio-row small{font-size:10px;color:var(--muted);line-height:1.4}
.info-box{display:flex;gap:8px;padding:10px;border-radius:6px;background:#f8f8ff;border:1px solid #e1e3ff;margin:14px 0}
.info-box .dashicons{color:var(--primary);font-size:16px;width:16px;height:16px}
.info-box p{margin:0;color:var(--muted);font-size:10px;line-height:1.5}
.meta-box{border-top:1px solid var(--line);padding-top:12px;display:flex;flex-direction:column;gap:9px}
.meta-box div{display:flex;justify-content:space-between;gap:10px;font-size:11px}
.meta-box span{color:var(--muted)}

.review-list{margin-top:16px}
.student-submission{display:grid;grid-template-columns:42px minmax(0,1fr) auto;gap:12px;align-items:center;padding:15px 0;border-bottom:1px solid var(--line)}
.student-submission:last-child{border-bottom:none}
.submission-icon{width:38px;height:38px;border-radius:7px;background:#fff3e7;color:#9a5d17;display:grid;place-items:center}
.submission-icon .dashicons{font-size:19px;width:19px;height:19px}
.submission-main h3{font-size:14px}
.submission-main p{font-size:11px;color:var(--muted);line-height:1.5;margin:5px 0}
.submission-actions{display:flex;gap:7px;flex-wrap:wrap;justify-content:flex-end}

@media(max-width:1080px){
  .catalog-summary{grid-template-columns:1fr 1fr}
  .task-library-grid{grid-template-columns:1fr}
  .editor-layout{grid-template-columns:1fr}
  .editor-side{position:static}
}
@media(max-width:760px){
  .catalog-summary{grid-template-columns:1fr}
  .catalog-toolbar{align-items:stretch;flex-direction:column}
  .catalog-search{min-width:0}
  .student-review-callout{align-items:flex-start}
  .callout-action{margin-left:0}
  .student-submission{grid-template-columns:38px 1fr}
  .submission-actions{grid-column:2;justify-content:flex-start}
}


/* v10 — task page group filtering */
.tasks-filterbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  margin-bottom:18px;
  padding:13px 15px;
  border:1px solid var(--line);
  border-radius:7px;
  background:#fff;
}
.tasks-filter-copy{
  display:flex;
  flex-direction:column;
  gap:3px;
}
.tasks-filter-copy strong{font-size:12px}
.tasks-filter-copy span{font-size:11px;color:var(--muted)}
.tasks-filter-control{
  display:flex;
  align-items:center;
  gap:8px;
}
.tasks-filter-control label{
  font-size:11px;
  color:var(--muted);
  font-weight:700;
}
.tasks-filter-control select{
  min-width:210px;
  border:1px solid var(--line);
  border-radius:6px;
  background:#fff;
  padding:8px 10px;
  color:var(--text);
  font-size:12px;
}
.task-groups{
  display:flex;
  flex-wrap:wrap;
  gap:6px;
  margin:7px 0 5px;
}
.group-filter-link{
  border:0;
  background:transparent;
  padding:0;
  color:var(--primary);
  font-size:11px;
  font-weight:650;
  cursor:pointer;
}
.group-filter-link:hover{
  text-decoration:underline;
}
@media(max-width:760px){
  .tasks-filterbar{
    align-items:stretch;
    flex-direction:column;
  }
  .tasks-filter-control{
    align-items:stretch;
    flex-direction:column;
  }
  .tasks-filter-control select{
    min-width:0;
    width:100%;
  }
}


/* v11 — single group / enrollment flow */
.group-topbar{
  gap:18px;
}
.group-topbar-title{
  display:flex;
  align-items:center;
  gap:10px;
  min-width:0;
}
.group-topbar-title .group-icon{
  width:36px;
  height:36px;
  flex:0 0 36px;
  font-size:18px;
}
.group-topbar-name{
  font-size:19px;
  font-weight:780;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.enrollment-status{
  display:inline-flex;
  align-items:center;
  gap:5px;
  border-radius:999px;
  padding:5px 8px;
  font-size:11px;
  font-weight:700;
  white-space:nowrap;
}
.enrollment-status .dashicons{
  font-size:14px;
  width:14px;
  height:14px;
}
.enrollment-status.open{
  background:#eef8f3;
  color:#1f7b58;
}
.enrollment-status.closed{
  background:#f1f2f5;
  color:#667085;
}

.modal-overlay{
  position:fixed;
  inset:0;
  z-index:9999;
  display:none;
  align-items:center;
  justify-content:center;
  padding:28px;
  background:rgba(18,22,36,.38);
  backdrop-filter:blur(7px);
}
.modal-overlay.visible{
  display:flex;
}
.invite-modal{
  position:relative;
  width:min(580px,100%);
  max-height:calc(100vh - 44px);
  overflow:auto;
  border:1px solid rgba(255,255,255,.75);
  border-radius:10px;
  background:#fff;
  box-shadow:0 24px 80px rgba(15,23,42,.28);
  padding:26px;
  text-align:center;
}
.modal-close{
  position:absolute;
  top:12px;
  right:12px;
  width:34px;
  height:34px;
  border:1px solid var(--line);
  border-radius:6px;
  background:#fff;
  color:var(--muted);
  display:grid;
  place-items:center;
}
.modal-close .dashicons{
  font-size:19px;
  width:19px;
  height:19px;
}
.invite-modal-head h2{
  margin:10px 0 4px;
  font-size:23px;
}
.invite-modal-head p{
  margin:0;
  color:var(--muted);
  font-size:13px;
}
.qr-frame{
  width:min(330px,82vw);
  aspect-ratio:1;
  margin:22px auto 18px;
  border:1px solid var(--line);
  border-radius:8px;
  padding:12px;
  background:#fff;
  display:grid;
  place-items:center;
}
.qr-frame img{
  width:100%;
  height:100%;
  object-fit:contain;
  image-rendering:pixelated;
}
.invite-link-box{
  border:1px solid var(--line);
  border-radius:7px;
  background:#fafbfc;
  padding:10px 12px;
  text-align:left;
}
.invite-link-label{
  margin-bottom:4px;
  color:var(--muted);
  font-size:10px;
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:.04em;
}
.invite-link-value{
  font:12px/1.45 ui-monospace,SFMono-Regular,Menlo,monospace;
  overflow-wrap:anywhere;
}
.invite-copy-btn{
  width:100%;
  justify-content:center;
  display:flex;
  align-items:center;
  gap:7px;
  margin-top:10px;
}
.invite-copy-btn .dashicons{
  font-size:16px;
  width:16px;
  height:16px;
}
.copy-feedback{
  min-height:17px;
  margin-top:5px;
  font-size:10px;
  color:var(--success);
}
.info-link{
  border:0;
  background:transparent;
  padding:4px;
  margin-top:3px;
  color:var(--primary);
  font-size:11px;
  font-weight:650;
  text-decoration:underline;
}
.invite-info{
  margin-top:7px;
  padding:11px 12px;
  border:1px solid #dfe3ff;
  border-radius:6px;
  background:#f8f8ff;
  color:var(--muted);
  font-size:11px;
  line-height:1.55;
  text-align:left;
}
.invite-modal-note{
  margin-top:13px;
  color:var(--muted);
  font-size:10px;
  line-height:1.5;
}

@media(max-width:980px){
  .group-topbar{
    align-items:flex-start;
    flex-direction:column;
    height:auto;
    padding-top:12px;
    padding-bottom:12px;
  }
  .group-topbar .topbar-actions{
    width:100%;
  }
}
@media(max-width:640px){
  .group-topbar-title{
    flex-wrap:wrap;
  }
  .modal-overlay{
    padding:12px;
  }
  .invite-modal{
    padding:20px 16px;
  }
  .qr-frame{
    width:min(290px,80vw);
  }
}


/* v12 — modal blurs only page content */



/* v13 — pending approvals callout */
.group-attention-icon{
  flex:0 0 38px;
}
.attention-btn{
  background:#9a681d;
  border-color:#9a681d;
  color:#fff;
}
.attention-btn:hover{
  background:#835817;
  border-color:#835817;
  color:#fff;
}


/* v14 — pending approvals uses the same warning icon as admin announcements */
.group-attention-icon{
  width:34px;
  height:34px;
  flex:0 0 34px;
}
.group-attention-icon .dashicons{
  color:#99651d;
}


/* v15 — students in single group */
.students-head{
  margin-bottom:8px;
}
.students-title-wrap{
  display:flex;
  align-items:center;
  gap:8px;
}
.students-title-wrap h2{
  margin:0;
}
.students-count{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:25px;
  height:25px;
  padding:0 8px;
  border-radius:999px;
  background:#eeeefe;
  color:#4e4ec7;
  font-size:12px;
  font-weight:800;
}
.students-table td{
  vertical-align:middle;
}
.task-count{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:30px;
  height:27px;
  padding:0 8px;
  border-radius:6px;
  font-size:12px;
  font-weight:800;
}
.task-count.open{
  background:#eef4ff;
  color:#3f63a0;
}
.task-count.done{
  background:#eaf7ef;
  color:#1f7b58;
}
.attention-status{
  display:inline-flex;
  align-items:center;
  gap:6px;
  color:#9a681d;
  font-size:12px;
  font-weight:750;
}
.attention-dot{
  width:8px;
  height:8px;
  border-radius:50%;
  background:#c58a2a;
  box-shadow:0 0 0 3px #fff3d6;
}
.student-row-actions{
  display:flex;
  gap:6px;
  flex-wrap:wrap;
}
.assign-student-task{
  color:var(--primary);
}
@media(max-width:900px){
  .students-table{
    min-width:760px;
  }
}


/* v18 — breadcrumbs */
.breadcrumbs{
  min-height:38px;
  display:flex;
  align-items:center;
  gap:7px;
  padding:8px 34px;
  border-bottom:1px solid var(--line);
  background:rgba(255,255,255,.72);
  color:var(--muted);
  font-size:11px;
  line-height:1.4;
}
.breadcrumbs-label{
  color:#8a93a6;
  margin-right:1px;
}
.breadcrumbs a{
  color:var(--muted);
  text-decoration:none;
}
.breadcrumbs a:hover{
  color:var(--primary);
  text-decoration:underline;
}
.breadcrumbs-separator{
  color:#aab0bc;
}
.breadcrumbs-current{
  color:var(--text);
  font-weight:650;
}
@media(max-width:760px){
  .breadcrumbs{
    padding-left:18px;
    padding-right:18px;
    overflow-x:auto;
    white-space:nowrap;
  }
}


/* v19 — group student view cleanup */
.group-students-layout{
  display:block;
}
.group-students-layout > .students-card{
  width:100%;
}

.students-count{
  border-radius:6px;
}
.group-topbar-title .badge{
  border-radius:6px;
}
.enrollment-status{
  border-radius:6px;
}
.task-count{
  border-radius:6px;
}

/* Keep the primary invite action visually anchored at the far right */
.group-topbar .topbar-actions{
  margin-left:auto;
}


/* v20 — group submodule */
.group-tabs{
  margin-top:18px;
}
.group-tabs .tab{
  text-decoration:none;
}

.group-task-row{
  display:grid;
  grid-template-columns:minmax(260px,1.5fr) 100px 90px 110px auto;
  gap:14px;
  align-items:center;
  padding:16px 0;
  border-bottom:1px solid var(--line);
}
.group-task-row:last-child{border-bottom:none}
.group-task-row.compact{
  grid-template-columns:minmax(260px,1fr) 120px auto;
}
.task-main h3{font-size:14px}
.task-target{
  display:flex;
  align-items:center;
  gap:5px;
  margin:7px 0 3px;
  color:var(--muted);
  font-size:11px;
}
.task-target.individual{
  color:#7257a8;
}
.task-target .dashicons{
  font-size:14px;width:14px;height:14px
}
.task-progress-summary{
  display:flex;
  flex-direction:column;
  gap:2px;
  text-align:center;
}
.task-progress-summary strong{font-size:14px}
.task-progress-summary span{font-size:10px;color:var(--muted)}
.task-progress-summary.attention strong{color:#9a681d}

.progress-summary-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:16px;
  margin-bottom:16px;
}
.progress-legend{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  font-size:10px;
  color:var(--muted);
}
.progress-legend span{
  display:flex;align-items:center;gap:5px;
}
.matrix-dot{
  width:9px;height:9px;border-radius:3px;display:inline-block;
}
.matrix-dot.not-started{background:#eef1f5}
.matrix-dot.in-progress{background:#dce8ff}
.matrix-dot.review{background:#fff0ce}
.matrix-dot.completed{background:#dff3e9}
.matrix-dot.not-assigned{background:#f5f5f6;border:1px dashed #cdd2da}
.matrix-wrap{overflow:auto}
.progress-matrix{
  width:100%;
  min-width:850px;
  border-collapse:collapse;
}
.progress-matrix th,.progress-matrix td{
  padding:12px 10px;
  border-bottom:1px solid var(--line);
  text-align:left;
  font-size:11px;
}
.progress-matrix th{
  color:var(--muted);
  font-weight:700;
}
.progress-matrix th span,.progress-matrix th small{
  display:block;
}
.progress-matrix th small{
  margin-top:3px;font-weight:400;color:#9aa1b0
}
.matrix-cell{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:72px;
  min-height:28px;
  padding:5px 8px;
  border-radius:5px;
  font-size:10px;
  font-weight:700;
}
.matrix-cell.not-started{background:#eef1f5;color:#667085}
.matrix-cell.in-progress{background:#eaf1ff;color:#456aa8}
.matrix-cell.review{background:#fff2d6;color:#94641c}
.matrix-cell.completed{background:#e8f6ef;color:#1f7b58}
.matrix-cell.not-assigned{background:#fafafa;color:#a0a6b0;border:1px dashed #d3d7dd}

.review-toolbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  margin-bottom:14px;
}
.review-filters{display:flex;gap:8px}
.review-filters select{
  border:1px solid var(--line);
  border-radius:6px;
  padding:8px 10px;
  background:#fff;
  font-size:11px;
}
.review-item{
  display:grid;
  grid-template-columns:minmax(220px,1.2fr) 130px minmax(220px,1fr) auto;
  gap:16px;
  align-items:center;
  padding:15px 0;
  border-bottom:1px solid var(--line);
}
.review-item:last-child{border-bottom:none}
.review-person{
  display:flex;align-items:center;gap:10px;
}
.student-avatar{
  width:36px;height:36px;border-radius:50%;background:#f0f1ff;color:var(--primary);
  display:grid;place-items:center;font-size:11px;font-weight:800;flex:0 0 36px;
}
.review-person>div{display:flex;flex-direction:column;gap:3px}
.review-person strong{font-size:12px}
.review-person span{font-size:10px;color:var(--muted)}
.review-status-block{display:flex;flex-direction:column;gap:4px}
.review-status-block small{font-size:9px;color:var(--muted)}
.review-snippet{font-size:10px;color:var(--muted);line-height:1.45}

.group-settings-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:16px;
}
.group-settings-grid .danger-zone{
  grid-column:1/-1;
}
.group-identity-picker{
  display:flex;gap:8px;flex-wrap:wrap;
}
.identity-option{
  border:1px solid var(--line);
  background:#fff;
  border-radius:7px;
  padding:5px;
}
.identity-option.selected{
  border-color:var(--primary);
  box-shadow:0 0 0 2px #ededff;
}
.settings-copy{
  margin:0 0 14px;
  color:var(--muted);
  font-size:11px;
  line-height:1.55;
}
.settings-link-box{
  display:flex;flex-direction:column;gap:5px;
  border:1px solid var(--line);
  border-radius:6px;
  background:#fafbfc;
  padding:10px 11px;
  margin-bottom:12px;
}
.settings-link-box span{font-size:9px;text-transform:uppercase;color:var(--muted);font-weight:700}
.settings-link-box code{font-size:10px;overflow-wrap:anywhere}
.warning-help{color:#94641c;margin-top:8px}
.danger-zone{
  border-color:#efced4;
}

@media(max-width:1150px){
  .group-task-row{
    grid-template-columns:minmax(240px,1fr) repeat(3,85px) auto;
  }
  .review-item{
    grid-template-columns:minmax(200px,1fr) 120px minmax(180px,1fr) auto;
  }
}
@media(max-width:900px){
  .progress-summary-grid{grid-template-columns:1fr}
  .group-settings-grid{grid-template-columns:1fr}
  .group-settings-grid .danger-zone{grid-column:auto}
  .review-toolbar{align-items:stretch;flex-direction:column}
  .review-item{grid-template-columns:1fr}
  .group-task-row,.group-task-row.compact{grid-template-columns:1fr}
  .task-progress-summary{text-align:left}
}


/* v21 — group tabs, persistent statuses and dense 15-task progress matrix */
.settings-current{
  background:#f4f5f7;
}

.group-status,
.enrollment-status,
.students-count,
.task-count{
  border-radius:6px !important;
}

/* Dense matrix for 15+ tasks */
.dense-progress-card{
  overflow:hidden;
}
.dense-progress-head{
  align-items:flex-start;
}
.dense-progress-controls{
  display:flex;
  align-items:flex-end;
  flex-direction:column;
  gap:8px;
}
.dense-progress-controls select{
  border:1px solid var(--line);
  border-radius:6px;
  padding:7px 9px;
  background:#fff;
  font-size:11px;
}
.progress-legend.dense{
  justify-content:flex-end;
}
.dense-matrix-wrap{
  width:100%;
  overflow-x:auto;
  overflow-y:visible;
  border:1px solid var(--line);
  border-radius:7px;
  background:#fff;
}
.dense-progress-matrix{
  border-collapse:separate;
  border-spacing:0;
  min-width:1160px;
  width:max-content;
}
.dense-progress-matrix th,
.dense-progress-matrix td{
  border-right:1px solid var(--line);
  border-bottom:1px solid var(--line);
  text-align:center;
  padding:0;
}
.dense-progress-matrix thead th{
  position:sticky;
  top:0;
  z-index:2;
  background:#f8f9fb;
}
.dense-progress-matrix tr:last-child td{
  border-bottom:0;
}
.dense-progress-matrix th:last-child,
.dense-progress-matrix td:last-child{
  border-right:0;
}
.dense-progress-matrix .student-col{
  min-width:180px;
  width:180px;
  max-width:180px;
  padding:0 12px;
  text-align:left;
  background:#fff;
}
.dense-progress-matrix thead .student-col{
  background:#f8f9fb;
}
.dense-progress-matrix .sticky-col,
.dense-progress-matrix tbody .student-col{
  position:sticky;
  left:0;
  z-index:3;
  box-shadow:1px 0 0 var(--line);
}
.dense-progress-matrix tbody .student-col{
  z-index:1;
}
.dense-progress-matrix .student-col strong{
  font-size:11px;
  white-space:nowrap;
}
.task-col{
  width:62px;
  min-width:62px;
  height:58px;
  vertical-align:middle;
}
.task-col .task-no,
.task-col .task-short{
  display:block;
}
.task-col .task-no{
  color:#8b93a2;
  font-size:9px;
  font-weight:800;
  margin-bottom:3px;
}
.task-col .task-short{
  max-width:58px;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  color:#5f6878;
  font-size:9px;
  font-weight:650;
}
.matrix-state{
  width:62px;
  min-width:62px;
  height:42px;
}
.matrix-state span{
  display:grid;
  place-items:center;
  width:24px;
  height:24px;
  margin:auto;
  border-radius:5px;
  font-size:11px;
  font-weight:800;
}
.matrix-state.done span{
  background:#e8f6ef;
  color:#1f7b58;
}
.matrix-state.progress span{
  background:#eaf1ff;
  color:#456aa8;
}
.matrix-state.review span{
  background:#fff2d6;
  color:#94641c;
}
.matrix-state.not span{
  background:#f0f2f5;
  color:#9ca3af;
}
.dense-progress-note{
  margin-top:8px;
  color:var(--muted);
  font-size:10px;
}
@media(max-width:900px){
  .dense-progress-controls{
    align-items:flex-start;
  }
  .progress-legend.dense{
    justify-content:flex-start;
  }
}


/* v22 — scalable progress view for dozens of tasks */
.progress-overview-card{
  overflow:visible;
}
.progress-overview-head{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:20px;
  margin-bottom:18px;
}
.progress-overview-head h2{
  margin:0 0 5px;
}
.progress-overview-head p{
  margin:0;
  color:var(--muted);
  font-size:11px;
}
.view-switch{
  display:flex;
  gap:4px;
  border:1px solid var(--line);
  background:#f7f8fa;
  padding:3px;
  border-radius:7px;
  flex:0 0 auto;
}
.view-switch-btn{
  border:0;
  background:transparent;
  color:var(--muted);
  border-radius:5px;
  padding:7px 11px;
  font-size:11px;
  font-weight:650;
  cursor:pointer;
}
.view-switch-btn.active{
  background:#fff;
  color:var(--text);
  box-shadow:0 1px 3px rgba(24,32,48,.08);
}
.progress-toolbar{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:10px;
  margin:0 0 12px;
}
.progress-toolbar select{
  border:1px solid var(--line);
  border-radius:6px;
  padding:8px 10px;
  background:#fff;
  font-size:11px;
}
.search-field.compact{
  min-width:260px;
  max-width:380px;
  flex:1;
}
.search-field.compact input{
  width:100%;
}
.scalable-progress-table{
  width:100%;
}
.scalable-progress-table th,
.scalable-progress-table td{
  vertical-align:middle;
}
.progress-count{
  background:#eaf1ff;
  color:#456aa8;
}
.review-count{
  background:#fff2d6;
  color:#94641c;
}
.tasks-progress-table .task-target{
  margin:0;
}
.table-footer{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:10px;
  padding-top:12px;
  color:var(--muted);
  font-size:10px;
}
.pagination{
  display:flex;
  gap:6px;
}
.pagination .btn:disabled{
  opacity:.45;
  cursor:not-allowed;
}
@media(max-width:900px){
  .progress-overview-head{
    flex-direction:column;
  }
  .progress-toolbar{
    align-items:stretch;
    flex-direction:column;
  }
  .search-field.compact{
    min-width:0;
    max-width:none;
    width:100%;
  }
  .view-switch{
    width:100%;
  }
  .view-switch-btn{
    flex:1;
  }
}


/* v23 — simplified group information architecture */
.group-task-filters select{
  border:1px solid var(--line);
  border-radius:6px;
  padding:8px 10px;
  background:#fff;
  font-size:11px;
}
.group-tasks-table td,
.group-tasks-table th{
  vertical-align:middle;
}
.group-tasks-table .task-target{
  margin:0;
}


/* v24 — group icon and color pickers */
.group-appearance-preview{
  display:flex;
  align-items:center;
  gap:11px;
  padding:11px 12px;
  margin:8px 0 18px;
  border:1px solid var(--line);
  border-radius:7px;
  background:#fafbfc;
}
.group-preview-icon{
  width:42px;
  height:42px;
  display:grid;
  place-items:center;
  flex:0 0 42px;
  border-radius:8px;
  font-size:22px;
  transition:background .15s ease;
}
.group-preview-label{
  margin-bottom:2px;
  color:var(--muted);
  font-size:9px;
  text-transform:uppercase;
  letter-spacing:.04em;
}
.group-appearance-preview strong{
  font-size:12px;
}

.appearance-picker-block{
  margin-top:15px;
}
.appearance-picker-title{
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  gap:10px;
  margin-bottom:8px;
}
.appearance-picker-title > span{
  font-size:11px;
  font-weight:750;
  color:var(--text);
}
.appearance-picker-title small{
  color:var(--muted);
  font-size:9px;
}

.icon-choice-grid,
.color-choice-grid{
  display:grid;
  grid-template-columns:repeat(10,minmax(0,1fr));
  gap:6px;
}
.icon-choice,
.color-choice{
  position:relative;
  width:100%;
  aspect-ratio:1;
  min-width:0;
  border:1px solid var(--line);
  border-radius:7px;
  background:#fff;
  cursor:pointer;
  transition:border-color .12s ease, box-shadow .12s ease, transform .12s ease;
}
.icon-choice:hover,
.color-choice:hover{
  border-color:#aeb4c2;
  transform:translateY(-1px);
}
.icon-choice.selected,
.color-choice.selected{
  border-color:var(--primary);
  box-shadow:0 0 0 2px rgba(84,84,210,.12);
}
.icon-choice span{
  display:grid;
  place-items:center;
  width:100%;
  height:100%;
  font-size:19px;
  line-height:1;
}
.color-choice{
  padding:4px;
}
.color-choice span{
  display:block;
  width:100%;
  height:100%;
  border-radius:4px;
}
.icon-choice.selected::after,
.color-choice.selected::after{
  content:"✓";
  position:absolute;
  right:3px;
  bottom:3px;
  width:14px;
  height:14px;
  display:grid;
  place-items:center;
  border-radius:4px;
  background:var(--primary);
  color:#fff;
  font-size:9px;
  font-weight:800;
  box-shadow:0 1px 2px rgba(0,0,0,.12);
}
@media(max-width:1150px){
  .icon-choice-grid,
  .color-choice-grid{
    grid-template-columns:repeat(8,minmax(0,1fr));
  }
}
@media(max-width:760px){
  .icon-choice-grid,
  .color-choice-grid{
    grid-template-columns:repeat(6,minmax(0,1fr));
  }
}
@media(max-width:480px){
  .icon-choice-grid,
  .color-choice-grid{
    grid-template-columns:repeat(5,minmax(0,1fr));
  }
}


/* v25 — settings layout repair */
.settings-save-actions{
  margin-top:18px;
}
.group-settings-grid > .section-card{
  align-self:start;
}


/* v26 — settings back in submenu and two-column settings layout */
.group-settings-grid{
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(320px,.82fr);
  gap:16px;
  align-items:start;
}
.settings-left-column,
.settings-right-column{
  display:flex;
  flex-direction:column;
  gap:16px;
  min-width:0;
}
.group-settings-grid .danger-zone{
  grid-column:auto;
}
@media(max-width:980px){
  .group-settings-grid{
    grid-template-columns:1fr;
  }
}


/* v28 — stable invite modal */
.modal-overlay{
  background:rgba(18,22,36,.38);
  backdrop-filter:none !important;
  -webkit-backdrop-filter:none !important;
}
.content.modal-content-blur{
  filter:blur(5px);
  transform:scale(.997);
  pointer-events:none;
  user-select:none;
}


/* v30 — blur całej aplikacji pod modalem */
.shell.modal-shell-blur{
  filter:blur(5px);
  transform:scale(.997);
  pointer-events:none;
  user-select:none;
  transition:filter .15s ease, transform .15s ease;
}

/* stary blur tylko dla treści nie jest już używany */
.content.modal-content-blur{
  filter:none !important;
  transform:none !important;
  pointer-events:auto !important;
  user-select:auto !important;
}


/* v31 — refined groups view */
.groups-view-tabs{margin-bottom:18px}
.groups-view-tabs .tab-link{padding:13px 18px}
.list-title-row{display:flex;align-items:center;gap:8px}
.enrollment-lock{
  display:inline-flex;align-items:center;justify-content:center;
  width:22px;height:22px;border-radius:8px;
  background:#f4f6fa;color:#6d7691;border:1px solid #dfe5ee;
}
.enrollment-lock .dashicons{font-size:13px;width:13px;height:13px}
.enrollment-lock.open{color:#17815f;background:#edf8f2;border-color:#d7eee1}
.enrollment-lock.closed{color:#8f6871;background:#faf4f5;border-color:#eddde0}

.list-meta{display:flex;flex-wrap:wrap;gap:6px;align-items:center}
.meta-separator{color:#9aa3b8}

.status-inline{
  display:inline-flex;align-items:center;gap:8px;
  font-weight:700;white-space:nowrap;
}
.status-inline .status-dot{
  width:10px;height:10px;border-radius:50%;background:currentColor;
}
.status-inline.warning{color:#b17812}
.status-inline.ok{color:#16835d}
.status-inline.archived{color:#6d7691}


/* v32 — groups list uses the same submenu/status language as group detail */
.groups-view-tabs{
  margin:18px 0 16px;
}
.groups-view-tabs .tab{
  padding:10px 11px;
}
.group-list-status{
  display:inline-flex;
  align-items:center;
  gap:6px;
  font-size:12px;
  font-weight:700;
  white-space:nowrap;
}
.status-ok-inline{
  color:#1f7b58;
}
.status-ok-dot{
  width:8px;
  height:8px;
  border-radius:50%;
  background:#48a77b;
  box-shadow:0 0 0 3px #e8f6ef;
}
.status-archived-inline{
  color:#737b8b;
}
.status-archived-dot{
  width:8px;
  height:8px;
  border-radius:50%;
  background:#9ba3b1;
  box-shadow:0 0 0 3px #f0f2f5;
}

.groups-view-tabs .tab-link{
  padding:10px 11px !important;
}
.status-inline{
  background:none !important;
  padding:0 !important;
  border-radius:0 !important;
}


/* v33 — enrollment lock chips + archived group actions */
.enrollment-lock.filled{
  width:24px;
  height:24px;
  border:none !important;
  border-radius:6px;
  box-shadow:none !important;
}
.enrollment-lock.filled .dashicons{
  color:#fff !important;
}
.enrollment-lock.filled.open{
  background:#35a777 !important;
  color:#fff !important;
}
.enrollment-lock.filled.closed{
  background:#a96f2d !important;
  color:#fff !important;
}
.reactivate-group-btn{
  white-space:nowrap;
}


/* v34 — lightweight enrollment lock icons */
.enrollment-lock,
.enrollment-lock.filled{
  display:inline-flex !important;
  align-items:center;
  justify-content:center;
  width:auto !important;
  height:auto !important;
  padding:0 !important;
  border:0 !important;
  border-radius:0 !important;
  background:transparent !important;
  box-shadow:none !important;
}
.enrollment-lock .dashicons,
.enrollment-lock.filled .dashicons{
  width:14px !important;
  height:14px !important;
  font-size:14px !important;
  line-height:14px !important;
}
.enrollment-lock.open,
.enrollment-lock.filled.open{
  background:transparent !important;
  color:#2d9f72 !important;
}
.enrollment-lock.closed,
.enrollment-lock.filled.closed{
  background:transparent !important;
  color:#b6752b !important;
}
.enrollment-lock.open .dashicons,
.enrollment-lock.filled.open .dashicons{
  color:#2d9f72 !important;
}
.enrollment-lock.closed .dashicons,
.enrollment-lock.filled.closed .dashicons{
  color:#b6752b !important;
}


/* v35 — navigation logo + logout tone */
.brand.brand-logo{
  display:flex;
  align-items:center;
  min-height:44px;
}
.brand.brand-logo img{
  display:block;
  width:auto;
  height:34px;
  max-width:168px;
  object-fit:contain;
  object-position:left center;
}

/* Logout should visually match the other utility links */
.sidebar .nav-link.logout{
  color:var(--sidebar-muted, #aab1c4) !important;
}
.sidebar .nav-link.logout .power-icon,
.sidebar .nav-link.logout .dashicons{
  color:inherit !important;
}


/* v36 — logo, group listing actions, custom appearance, archived detail */
.brand.brand-logo{
  width:100%;
  padding:0 12px;
  box-sizing:border-box;
}
.brand.brand-logo img{
  width:100% !important;
  height:auto !important;
  max-width:none !important;
  object-fit:contain;
  object-position:left center;
}

.group-list-row{
  cursor:pointer;
}
.group-list-row:focus-visible{
  outline:2px solid var(--primary);
  outline-offset:2px;
}
.group-list-actions{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:12px;
  margin-left:auto;
}
.group-details-btn{white-space:nowrap}

.custom-icon-upload{
  margin-top:10px;
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:8px;
}
.custom-icon-upload input[type=file]{
  max-width:250px;
  font-size:10px;
}
.custom-icon-label{
  display:inline-flex;
  align-items:center;
  gap:6px;
  border:1px solid var(--line);
  background:#fff;
  border-radius:6px;
  padding:8px 10px;
  font-size:11px;
  font-weight:700;
  cursor:pointer;
}
.custom-icon-label .dashicons{font-size:15px;width:15px;height:15px}
.custom-preview-img{
  width:70%;
  height:70%;
  object-fit:contain;
}
.color-choice[data-color="#FFFFFF"] span{
  border:1px solid #cfd5df;
  box-sizing:border-box;
}

.confirm-modal{
  width:min(460px,calc(100vw - 32px));
  background:#fff;
  border-radius:10px;
  box-shadow:0 24px 70px rgba(25,32,48,.24);
  padding:26px;
  text-align:center;
  position:relative;
}
.confirm-modal-icon{
  width:42px;height:42px;border-radius:8px;
  display:grid;place-items:center;
  background:#fff1d6;color:#9a681d;
  margin:0 auto 12px;
}
.confirm-modal h2{margin:0 0 8px;font-size:20px}
.confirm-modal p{margin:0;color:var(--muted);font-size:12px;line-height:1.55}
.confirm-modal-actions{
  display:flex;justify-content:flex-end;gap:8px;margin-top:20px;
}

.archive-notice{
  display:flex;
  align-items:flex-start;
  gap:10px;
  border:1px solid #dfe3ea;
  background:#f7f8fa;
  border-radius:8px;
  padding:12px 14px;
  margin-bottom:16px;
  color:#667085;
}
.archive-notice .dashicons{
  margin-top:1px;
}
.archive-notice strong{
  color:var(--text);
  font-size:12px;
}
.archive-notice p{
  margin:3px 0 0;
  font-size:11px;
  line-height:1.5;
}


/* v37 — complete archived group module */
.archived-readonly-label{
  display:inline-flex;
  align-items:center;
  gap:6px;
  color:#7b8495;
  font-size:10px;
  font-weight:700;
}
.archived-readonly-label .dashicons{
  width:14px;
  height:14px;
  font-size:14px;
}
.archived-readonly-card input:disabled{
  background:#f7f8fa;
  color:#697386;
  opacity:1;
  cursor:not-allowed;
}
.archived-preview{
  margin-bottom:0;
}
.archived-preview-icon{
  background:#fff7df;
  color:#9b6c15;
  font-weight:900;
}
.archived-enrollment-state{
  display:inline-flex;
  align-items:center;
  gap:7px;
  color:#8a6470;
  font-size:11px;
  font-weight:700;
}
.archived-enrollment-state .dashicons{
  width:14px;
  height:14px;
  font-size:14px;
}
.archived-reactivation-card{
  border-color:#dfe3ea;
}


/* v38 — corrected vector logo sizing */

.sidebar .brand.brand-logo img{
  display:block;
  width:100% !important;
  max-width:150px !important;
  height:auto !important;
  margin:0;
  object-fit:contain;
  object-position:left center;
}

/* First/login screen: deliberately smaller logo */




/* v39 — final logo proportions */
.sidebar .brand.brand-logo{
  width:100%;
  padding:0 14px;
  box-sizing:border-box;
}
.sidebar .brand.brand-logo img{
  display:block;
  width:100% !important;
  max-width:none !important;
  height:auto !important;
  margin:0;
  object-fit:contain;
  object-position:left center;
}

/* Splash / future login screen — compact logo */
.login-brand{
  width:auto !important;
  min-height:0 !important;
  padding:0 !important;
  justify-content:center;
}
.login-brand img{
  display:block;
  width:auto !important;
  max-width:118px !important;
  height:auto !important;
  margin:0 auto 18px !important;
  object-fit:contain;
}


/* v40 — global students + pending approval */
.students-view-tabs{margin-top:0}
.tab-count{
  display:inline-flex;align-items:center;justify-content:center;
  min-width:20px;height:20px;padding:0 6px;margin-left:4px;
  border-radius:6px;background:#fff2d8;color:#9a681d;
  font-size:10px;font-weight:800;
}
.global-students-head{align-items:flex-end}
.student-list-tools{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.search-field{
  min-width:220px;height:36px;display:flex;align-items:center;gap:7px;
  padding:0 10px;border:1px solid var(--line);border-radius:6px;background:#fff;
}
.search-field .dashicons{width:16px;height:16px;font-size:16px;color:#8a93a6}
.search-field input{
  width:100%;border:0;outline:0;font:inherit;font-size:12px;
  color:var(--text);background:transparent;
}
.select-control{
  height:36px;border:1px solid var(--line);border-radius:6px;
  padding:0 32px 0 10px;background:#fff;color:var(--text);font-size:12px;
}
.table-scroll{overflow-x:auto}
.global-students-table{min-width:980px}
.pending-students-table{min-width:760px}
.student-groups{display:flex;flex-direction:column;gap:3px;font-size:11px}
.student-groups a,.group-inline-link{color:var(--primary);text-decoration:none}
.student-groups a:hover{text-decoration:underline}
.group-inline-link{
  display:inline-flex;align-items:center;gap:8px;color:var(--text);font-weight:650;
}
.group-inline-link .group-icon{
  width:28px;height:28px;flex-basis:28px;font-size:13px;
}
.attention-count{background:#fff3dc;color:#9a681d}
.back-link{
  display:inline-flex;align-items:center;gap:5px;margin-bottom:14px;
  color:var(--muted);font-size:11px;font-weight:650;text-decoration:none;
}
.back-link:hover{color:var(--primary)}
.back-link .dashicons{width:14px;height:14px;font-size:14px}
.student-approval-header{
  display:flex;align-items:center;gap:14px;padding:20px;margin-bottom:16px;
}
.student-approval-avatar{
  width:52px;height:52px;flex:0 0 52px;border-radius:50%;
  display:grid;place-items:center;background:#eeeefe;color:#4e4ec7;
  font-size:16px;font-weight:800;
}
.student-approval-main{min-width:0}
.student-approval-name-row{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.student-approval-name-row h1{margin:0;font-size:22px}
.student-approval-login{margin-top:4px;color:var(--muted);font-size:11px}
.student-approval-grid{
  display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-bottom:16px;
}
.detail-list{margin:0}
.detail-list > div{
  display:grid;grid-template-columns:160px 1fr;gap:14px;
  padding:10px 0;border-bottom:1px solid var(--line);
}
.detail-list > div:last-child{border-bottom:0}
.detail-list dt{color:var(--muted);font-size:11px}
.detail-list dd{margin:0;color:var(--text);font-size:12px;font-weight:650}
.detail-list.compact{margin-top:10px}
.approval-group-card{
  display:flex;align-items:center;gap:10px;padding:11px 0 13px;
  border-bottom:1px solid var(--line);
}
.student-approval-info{
  display:flex;gap:11px;align-items:flex-start;border:1px solid #dfe5f1;
  background:#f7f9fc;border-radius:8px;padding:13px 14px;
}
.student-approval-info .announcement-icon{background:#eaf0ff;color:#5069a7}
.student-approval-info strong{font-size:12px}
.student-approval-info p{
  margin:3px 0 0;color:var(--muted);font-size:11px;line-height:1.5;
}
.student-approval-bottom-actions{
  display:flex;justify-content:flex-end;gap:8px;margin-top:16px;
}
.student-reject-btn{color:#a84d5c;border-color:#e6c9cf}
@media(max-width:900px){
  .student-approval-grid{grid-template-columns:1fr}
  .global-students-head{align-items:flex-start;flex-direction:column}
  .student-list-tools{width:100%}
}


/* v41 — CTA cleanup + group alerts */
.callout{
  align-items:center;
}
.callout > div:not(.callout-action):nth-child(2){
  align-self:center;
}
.callout-action{
  margin-left:auto;
  display:flex;
  align-items:center;
  justify-content:flex-end;
  flex:0 0 auto;
}
.callout-action .attention-btn{
  white-space:nowrap;
}

/* My groups: multiple actionable alerts */
.groups-alerts{
  display:flex;
  flex-direction:column;
  gap:8px;
  margin-bottom:18px;
}
.group-alert{
  display:grid;
  grid-template-columns:auto minmax(0,1fr) auto;
  gap:12px;
  align-items:center;
  border:1px solid transparent;
  border-radius:8px;
  padding:12px 14px;
}
.group-alert-icon{
  width:34px;
  height:34px;
  border-radius:6px;
  display:grid;
  place-items:center;
}
.group-alert-icon .dashicons{
  width:18px;
  height:18px;
  font-size:18px;
}
.group-alert-body{
  min-width:0;
}
.group-alert-body strong{
  display:block;
  font-size:12px;
  margin-bottom:3px;
}
.group-alert-body p{
  margin:0;
  font-size:11px;
  line-height:1.5;
}
.group-alert-action{
  display:flex;
  align-items:center;
  justify-content:flex-end;
}
.group-alert-btn{
  white-space:nowrap;
}

/* Membership / approval */
.group-alert-approval{
  background:#fffaf0;
  border-color:#f0d49f;
}
.group-alert-approval .group-alert-icon{
  background:#fff0ca;
  color:#99651d;
}
.group-alert-approval .group-alert-body strong{
  color:#4a3513;
}
.group-alert-approval .group-alert-body p{
  color:#806534;
}
.group-alert-approval .group-alert-btn{
  border-color:#d7b167;
  color:#8d5e17;
  background:#fffdf8;
}

/* Tasks to review */
.group-alert-review{
  background:#f7f7ff;
  border-color:#d9d9f6;
}
.group-alert-review .group-alert-icon{
  background:#e8e8ff;
  color:#5757c7;
}
.group-alert-review .group-alert-body strong{
  color:#30305f;
}
.group-alert-review .group-alert-body p{
  color:#666693;
}
.group-alert-review .group-alert-btn{
  border-color:#c9c9ee;
  color:#5555bd;
  background:#fbfbff;
}

@media(max-width:760px){
  .group-alert{
    grid-template-columns:auto minmax(0,1fr);
  }
  .group-alert-action{
    grid-column:2;
    justify-content:flex-start;
  }
}


/* v42 — universal student avatars + teacher-side student module */
.settings-enrollment-actions{
  display:flex;
  flex-wrap:nowrap;
  gap:6px;
}
.settings-enrollment-actions .btn{
  padding:8px 10px;
  font-size:11px;
  white-space:nowrap;
}

/* Universal user avatar component */
.student-avatar{
  --avatar-bg:#1E3A8A;
  display:inline-grid;
  place-items:center;
  width:40px;
  height:40px;
  flex:0 0 40px;
  border-radius:50%;
  background:var(--avatar-bg);
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.18);
}
.student-avatar-icon{
  display:block;
  font-size:20px;
  line-height:1;
  filter:saturate(.92);
}
.student-avatar-sm{
  width:32px;
  height:32px;
  flex-basis:32px;
}
.student-avatar-sm .student-avatar-icon{font-size:16px}
.student-avatar-lg{
  width:54px;
  height:54px;
  flex-basis:54px;
}
.student-avatar-lg .student-avatar-icon{font-size:27px}
.student-avatar-xl{
  width:74px;
  height:74px;
  flex-basis:74px;
}
.student-avatar-xl .student-avatar-icon{font-size:36px}

.student-list-identity{
  display:flex;
  align-items:center;
  gap:10px;
}
.student-list-copy{min-width:0}

.student-profile-strip{
  display:flex;
  align-items:center;
  gap:14px;
  margin-bottom:2px;
}
.student-profile-identity{min-width:0}
.student-profile-name-row{
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
}
.student-profile-name-row h1{
  margin:0;
  font-size:22px;
}
.student-profile-meta{
  margin-top:4px;
  color:var(--muted);
  font-size:11px;
}
.student-detail-tabs{margin-top:18px}
.student-detail-stats{margin-top:0}
.student-summary-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:16px;
  margin-bottom:16px;
}
.student-membership-row{text-decoration:none;color:inherit}
.student-activity-list{
  display:flex;
  flex-direction:column;
}
.student-activity-item{
  display:flex;
  gap:10px;
  align-items:flex-start;
  padding:10px 0;
  border-bottom:1px solid var(--line);
}
.student-activity-item:last-child{border-bottom:0}
.student-activity-item strong{font-size:12px}
.student-activity-item p{
  margin:3px 0 0;
  color:var(--muted);
  font-size:10px;
}
.student-activity-icon{
  width:28px;
  height:28px;
  border-radius:6px;
  display:grid;
  place-items:center;
  flex:0 0 28px;
}
.student-activity-icon .dashicons{font-size:15px;width:15px;height:15px}
.student-activity-icon.done{background:#eaf7ef;color:#1f7b58}
.student-activity-icon.comment{background:#eeeefe;color:#5656c7}
.student-activity-icon.progress{background:#eef4ff;color:#46679e}
.student-attention-list{display:flex;flex-direction:column}
.student-attention-row{
  display:grid;
  grid-template-columns:minmax(240px,1fr) 150px auto;
  gap:14px;
  align-items:center;
  padding:12px 0;
  border-bottom:1px solid var(--line);
}
.student-attention-row:last-child{border-bottom:0}
.student-attention-row strong{font-size:12px}
.student-attention-row p{
  margin:3px 0 0;
  color:var(--muted);
  font-size:10px;
}
.student-comment-status{
  display:inline-flex;
  align-items:center;
  gap:5px;
  color:#5757c7;
  font-size:11px;
  font-weight:700;
}
.student-comment-status .dashicons{font-size:14px;width:14px;height:14px}
.student-module-head{align-items:flex-end}
.student-detail-tasks-table{min-width:920px}
.student-task-complete,
.student-task-open{
  display:inline-flex;
  align-items:center;
  gap:5px;
  font-size:11px;
  font-weight:700;
}
.student-task-complete{color:#1f7b58}
.student-task-open{color:#5b6f92}
.student-task-complete .dashicons,
.student-task-open .dashicons{font-size:14px;width:14px;height:14px}

/* Comments */
.student-comment-threads{
  display:flex;
  flex-direction:column;
  gap:12px;
}
.student-comment-thread{
  border:1px solid var(--line);
  border-radius:8px;
  padding:14px;
  background:#fff;
}
.student-comment-thread.unread{
  border-color:#d9d9f6;
  background:#fbfbff;
}
.student-comment-thread-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:14px;
  padding-bottom:11px;
  border-bottom:1px solid var(--line);
}
.student-comment-thread-head strong{font-size:12px}
.comment-thread-date{font-size:10px;color:var(--muted)}
.comment-conversation{
  display:flex;
  flex-direction:column;
  gap:12px;
  padding:14px 0;
}
.comment-message{
  display:flex;
  gap:9px;
  align-items:flex-start;
}
.comment-message.teacher{padding-left:40px}
.comment-teacher-avatar{
  width:32px;
  height:32px;
  flex:0 0 32px;
}
.comment-bubble{
  min-width:0;
  max-width:720px;
  border-radius:7px;
  background:#f6f7f9;
  padding:9px 11px;
}
.comment-message.teacher .comment-bubble{background:#f0f0ff}
.comment-author{
  font-size:10px;
  font-weight:750;
}
.comment-author span{
  margin-left:5px;
  color:var(--muted);
  font-weight:500;
}
.comment-bubble p{
  margin:4px 0 0;
  font-size:11px;
  line-height:1.5;
}
.comment-reply-box{
  display:flex;
  gap:8px;
  border-top:1px solid var(--line);
  padding-top:11px;
}
.comment-reply-box input{
  flex:1;
  border:1px solid var(--line);
  border-radius:6px;
  padding:8px 10px;
  font-size:11px;
}

/* Student settings */
.student-settings-grid{
  display:grid;
  grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr);
  gap:16px;
}
.student-account-settings{
  grid-column:1/-1;
}
.student-avatar-editor{
  display:flex;
  align-items:center;
  gap:14px;
  margin-bottom:18px;
}
.avatar-picker-block{
  margin-top:16px;
}
.avatar-icon-grid{
  display:grid;
  grid-template-columns:repeat(8,minmax(0,1fr));
  gap:7px;
}
.avatar-icon-choice{
  height:44px;
  display:grid;
  place-items:center;
  border:1px solid var(--line);
  border-radius:7px;
  background:#fff;
  cursor:pointer;
}
.avatar-icon-choice span{font-size:21px;line-height:1}
.avatar-icon-choice.selected{
  border-color:var(--primary);
  box-shadow:0 0 0 2px #ededff;
}
.avatar-color-grid{
  display:grid;
  grid-template-columns:repeat(12,minmax(0,1fr));
  gap:7px;
}
.avatar-color-choice{
  aspect-ratio:1;
  padding:4px;
  border:1px solid var(--line);
  border-radius:7px;
  background:#fff;
  cursor:pointer;
}
.avatar-color-choice span{
  display:block;
  width:100%;
  height:100%;
  border-radius:5px;
}
.avatar-color-choice[data-avatar-color="#FFFFFF"] span{
  border:1px solid #cfd5df;
  box-sizing:border-box;
}
.avatar-color-choice.selected{
  border-color:var(--primary);
  box-shadow:0 0 0 2px #ededff;
}

@media(max-width:1000px){
  .settings-enrollment-actions{flex-wrap:wrap}
  .student-summary-grid,
  .student-settings-grid{grid-template-columns:1fr}
  .student-account-settings{grid-column:auto}
  .student-attention-row{grid-template-columns:1fr}
  .avatar-icon-grid{grid-template-columns:repeat(6,minmax(0,1fr))}
  .avatar-color-grid{grid-template-columns:repeat(8,minmax(0,1fr))}
}


/* v43 — pending avatars + on-demand student editing */
.student-data-settings .section-head{
  align-items:center;
}
.student-data-display .detail-list{
  margin-top:0;
}
.student-data-edit[hidden],
.avatar-save-actions[hidden]{
  display:none !important;
}
.student-data-edit{
  margin-top:4px;
}
.student-data-edit .settings-save-actions{
  justify-content:flex-end;
}
.avatar-save-actions{
  justify-content:flex-end;
  margin-top:16px;
}


/* v44 — avatar edit mode + clickable student identities */
.student-avatar-settings .section-head{
  align-items:center;
}
.student-avatar-display{
  display:flex;
  align-items:center;
  gap:14px;
}
.student-avatar-edit[hidden]{
  display:none !important;
}
.student-avatar-edit{
  margin-top:2px;
}
.avatar-edit-actions{
  justify-content:flex-end;
  margin-top:16px;
}

.student-identity-link{
  display:inline-block;
  color:inherit;
  text-decoration:none;
  border-radius:6px;
}
.student-identity-link:hover .name{
  color:var(--primary);
  text-decoration:underline;
}
.student-identity-link:focus-visible{
  outline:2px solid var(--primary);
  outline-offset:3px;
}


/* v45 — current/new avatar comparison */
.student-avatar-comparison{
  display:flex;
  align-items:flex-start;
  gap:34px;
  margin-bottom:4px;
}
.student-avatar-state{
  display:flex;
  align-items:center;
  gap:14px;
  min-width:220px;
}
.student-avatar-state[hidden]{
  display:none !important;
}
.student-avatar-state strong{
  display:block;
  font-size:13px;
  margin-bottom:3px;
}
.student-avatar-edit{
  margin-top:18px;
}
@media(max-width:760px){
  .student-avatar-comparison{
    flex-direction:column;
    gap:14px;
  }
}


/* v46 — student memberships + subtler identity hover */
.student-identity-link:hover .name{
  color:var(--primary);
  text-decoration:none !important;
}
.student-identity-link:hover .student-avatar{
  transform:translateY(-1px);
}
.student-avatar{
  transition:transform .12s ease;
}

.student-membership-status{
  display:inline-flex;
  align-items:center;
  gap:6px;
  color:#1f7b58;
  font-size:11px;
  font-weight:700;
  text-decoration:none;
  white-space:nowrap;
}
.student-membership-status:hover{
  color:#176346;
}
.student-membership-status.static{
  pointer-events:none;
}
.student-groups-list{
  display:flex;
  flex-direction:column;
}
.student-group-card{
  display:grid;
  grid-template-columns:auto minmax(0,1fr) auto auto;
  gap:12px;
  align-items:center;
  padding:14px 0;
  border-bottom:1px solid var(--line);
  color:inherit;
  text-decoration:none;
}
.student-group-card:last-child{
  border-bottom:0;
}
.student-group-card:hover .student-group-card-title strong{
  color:var(--primary);
}
.student-group-card-body{
  min-width:0;
}
.student-group-card-title{
  display:flex;
  align-items:center;
  gap:8px;
}
.student-group-card-title strong{
  font-size:12px;
}
.student-group-card-meta{
  margin-top:3px;
  color:var(--muted);
  font-size:10px;
}
.student-group-arrow{
  color:#9aa3b2;
  width:16px;
  height:16px;
  font-size:16px;
}


/* v47 — remove student from group */
.remove-from-group-btn{
  color:#a84d5c;
  border-color:#e8cdd2;
  background:#fff;
}
.remove-from-group-btn:hover{
  color:#8f3f4c;
  border-color:#dcaeb7;
  background:#fff8f9;
}
.confirm-modal-icon.danger{
  background:#fdebed;
  color:#a84d5c;
}
.remove-student-modal p{
  margin:0;
}
.remove-student-note{
  margin-top:7px !important;
  color:var(--muted);
}


/* v48 — centered actions in confirmation modals */
.confirm-modal-actions{
  justify-content:center !important;
}


/* v49 — student group membership actions */
.student-group-card{
  cursor:pointer;
}
.student-group-card:focus-visible{
  outline:2px solid var(--primary);
  outline-offset:2px;
}
.student-group-actions{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:10px;
  margin-left:auto;
}
.remove-student-membership-btn{
  color:#a84d5c;
  border-color:#e8cdd2;
  background:#fff;
}
.remove-student-membership-btn:hover{
  color:#8f3f4c;
  border-color:#dcaeb7;
  background:#fff8f9;
}


/* v50 — student password reset flow */
.password-reset-modal{
  width:min(560px,calc(100vw - 32px));
  background:#fff;
  border-radius:10px;
  box-shadow:0 24px 70px rgba(25,32,48,.24);
  padding:26px;
  position:relative;
  text-align:center;
}
.password-reset-step[hidden]{
  display:none !important;
}
.password-reset-step h2{
  margin:0 0 8px;
  font-size:20px;
}
.password-reset-step > p{
  margin:0;
  color:var(--muted);
  font-size:12px;
  line-height:1.55;
}
.password-reset-warning{
  margin:18px 0;
  padding:12px 14px;
  border:1px solid #efced4;
  border-radius:8px;
  background:#fff8f9;
  text-align:left;
}
.password-reset-warning strong{
  display:block;
  margin-bottom:3px;
  color:#a84d5c;
  font-size:11px;
}
.password-reset-warning p{
  margin:0;
  color:#7d5a61;
  font-size:11px;
  line-height:1.5;
}
.password-reset-ready-head{
  margin-bottom:14px;
}
.password-reset-ready-head h2{
  margin:8px 0 6px;
  font-size:20px;
}
.password-reset-ready-head p{
  margin:0;
  color:var(--muted);
  font-size:11px;
}
.password-reset-qr{
  width:230px;
  height:230px;
  margin:14px auto;
  padding:14px;
  border:1px solid var(--line);
  border-radius:8px;
  background:#fff;
}
.password-reset-qr img{
  display:block;
  width:100%;
  height:100%;
  object-fit:contain;
}
.password-reset-link-box{
  text-align:left;
}
.password-reset-expiry{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:6px;
  margin-top:12px;
  color:var(--muted);
  font-size:10px;
}
.password-reset-expiry .dashicons{
  width:14px;
  height:14px;
  font-size:14px;
}


/* v52 — simplified password reset modal */
.password-reset-footnote{
  margin-top:10px;
  color:var(--muted);
  font-size:9px;
  line-height:1.45;
}


/* v53 — active/archived student groups */
.student-groups-view-tabs{
  margin-top:18px;
  margin-bottom:16px;
}
.student-group-card.archived{
  background:transparent;
}
.student-group-card.archived .student-group-card-meta{
  color:#8a93a6;
}


/* v54 — alignment of the student groups module heading. The shared
   .eureka-groups-toolbar owns vertical spacing above list cards. */
.student-groups-module-head{
  align-items:center;
}
.view-segmented-control{
  display:inline-flex;
  align-items:center;
  gap:2px;
  padding:3px;
  border:1px solid var(--line);
  border-radius:7px;
  background:#f7f8fa;
}
.view-segment{
  display:inline-flex;
  align-items:center;
  gap:6px;
  min-height:30px;
  padding:0 10px;
  border:0;
  border-radius:5px;
  background:transparent;
  color:#697386;
  font:inherit;
  font-size:11px;
  font-weight:650;
  cursor:pointer;
}
.view-segment:hover{
  background:#fff;
  color:var(--text);
}
.view-segment.active{
  background:#fff;
  color:var(--primary);
  box-shadow:0 1px 3px rgba(20,28,48,.08);
}
.view-segment-count{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:18px;
  height:18px;
  padding:0 5px;
  border-radius:5px;
  background:#eceef3;
  color:#70798c;
  font-size:9px;
  font-weight:800;
}
.view-segment.active .view-segment-count{
  background:#eeeeff;
  color:var(--primary);
}
.student-groups-view[hidden]{
  display:none !important;
}


/* v55 — consistent local Active/Archived filter placement */
.module-title-filter{
  display:flex;
  align-items:center;
  gap:14px;
  min-width:0;
  flex-wrap:wrap;
}
.module-title-filter h2{
  margin:0;
}
.section-head:has(.module-title-filter){
  justify-content:flex-start;
}

/* local filters belong to the title area, never to the action column */
.module-title-filter .view-segmented-control{
  flex:0 0 auto;
}

/* slightly lighter than primary navigation */
.module-title-filter .view-segmented-control{
  padding:2px;
  border-color:#e1e5ec;
  background:#f8f9fb;
}
.module-title-filter .view-segment{
  min-height:28px;
  padding:0 9px;
  font-size:10px;
}
.module-title-filter .view-segment-count{
  min-width:17px;
  height:17px;
  font-size:8px;
}
.groups-module-view[hidden],
.student-groups-view[hidden]{
  display:none !important;
}


/* v56 — local filters + group settings edit-on-demand */
.student-task-status-view[hidden],
.students-status-view[hidden],
.group-name-edit[hidden],
.group-appearance-edit[hidden]{
  display:none !important;
}

.student-module-head:has(.module-title-filter),
.global-students-head:has(.module-title-filter){
  align-items:center;
}
.student-module-head .student-list-tools,
.global-students-head .student-list-tools{
  margin-left:auto;
}

.settings-subsection-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom:10px;
}
.settings-subsection-head strong{
  font-size:12px;
}
.group-name-settings-block{
  padding-bottom:18px;
  border-bottom:1px solid var(--line);
}
.group-appearance-settings-block{
  padding-top:18px;
}
.settings-display-value{
  font-size:12px;
  font-weight:650;
}
.group-appearance-display{
  display:flex;
  align-items:center;
}
.group-appearance-edit{
  margin-top:4px;
}

.group-appearance-state{
  display:flex;
  align-items:center;
  gap:12px;
  min-width:210px;
}
.group-appearance-state strong,
.group-appearance-preview strong{
  display:block;
  font-size:12px;
  margin-bottom:3px;
}
.group-appearance-preview{
  display:flex;
  align-items:center;
  gap:12px;
  margin:0;
}


/* v57 — compact, progressive group settings */
.group-settings-main-card{
  padding-bottom:8px;
}
.settings-inline-item{
  border-top:1px solid var(--line);
}
.settings-inline-item:first-of-type{
  border-top:0;
}
.settings-inline-summary{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  padding:15px 0;
}
.settings-inline-copy{
  min-width:0;
}
.settings-inline-label{
  color:var(--muted);
  font-size:10px;
  font-weight:650;
  margin-bottom:4px;
}
.settings-inline-value{
  color:var(--text);
  font-size:12px;
  font-weight:700;
}
.settings-appearance-current{
  display:flex;
  align-items:center;
  gap:9px;
}
.current-group-preview{
  width:34px;
  height:34px;
  flex-basis:34px;
  font-size:16px;
}
.settings-inline-editor[hidden]{
  display:none !important;
}
.settings-inline-editor{
  border-top:1px dashed #e2e6ee;
  padding:14px 0 18px;
}
.compact-field{
  max-width:620px;
}
.settings-inline-actions{
  display:flex;
  justify-content:flex-end;
  gap:8px;
  margin-top:14px;
}
.appearance-compare-row{
  display:flex;
  align-items:center;
  gap:14px;
  width:max-content;
  max-width:100%;
  padding:10px 12px;
  margin-bottom:16px;
  border:1px solid var(--line);
  border-radius:8px;
  background:#fafbfc;
}
.appearance-compare-item{
  display:flex;
  align-items:center;
  gap:10px;
  min-width:180px;
}
.appearance-compare-item .group-preview-icon{
  width:40px;
  height:40px;
  flex-basis:40px;
  font-size:18px;
}
.appearance-compare-label{
  font-size:10px;
  font-weight:750;
  color:var(--text);
  margin-bottom:2px;
}
.appearance-compare-arrow{
  color:#a2a9b7;
  display:grid;
  place-items:center;
}
.appearance-editor-section{
  margin-top:14px;
}
.appearance-editor-section .appearance-picker-title{
  margin-bottom:8px;
}
.compact-upload{
  margin-top:10px;
}


/* v58 — group settings aligned with student settings */
.settings-left-column{
  display:flex;
  flex-direction:column;
  gap:16px;
}
.group-name-settings-card .section-head,
.group-appearance-settings-card .section-head{
  align-items:center;
}
.group-name-edit[hidden],
.group-appearance-edit[hidden]{
  display:none !important;
}
.group-name-edit,
.group-appearance-edit{
  margin-top:4px;
}
.group-name-edit .settings-save-actions,
.group-appearance-edit .settings-save-actions{
  justify-content:flex-end;
}
.group-settings-avatar-row{
  display:flex;
  align-items:center;
  gap:14px;
}
.group-preview-lg{
  width:52px;
  height:52px;
  flex-basis:52px;
  font-size:24px;
}
.group-preview-xl{
  width:74px !important;
  height:74px !important;
  flex-basis:74px !important;
  font-size:34px !important;
}
.group-appearance-comparison{
  margin-bottom:18px;
}


/* v59 — group appearance edit mirrors student avatar edit */
.group-appearance-display[hidden],
.group-appearance-edit[hidden]{
  display:none !important;
}
.group-appearance-comparison{
  display:flex;
  align-items:flex-start;
  gap:34px;
  margin-bottom:18px;
}
.group-appearance-comparison .student-avatar-state{
  min-width:220px;
}


/* v60 — group students accepted/pending switch + pending quick actions */
.group-students-status-view[hidden],
.pending-student-data-edit[hidden]{
  display:none !important;
}
.pending-group-toolbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding:12px 0;
  border-bottom:1px solid var(--line);
}
.pending-group-toolbar strong{
  display:block;
  font-size:12px;
  margin-bottom:3px;
}
.pending-group-students-table{
  min-width:760px;
}
.pending-row-actions{
  flex-wrap:nowrap;
}
.pending-student-data-edit .settings-save-actions{
  justify-content:flex-end;
}


/* v61 — student statuses, progress and right-aligned table actions */
.student-table-toolbar{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:10px;
  padding:0 0 10px;
}
.student-sort-control{
  display:flex;
  align-items:center;
  gap:8px;
  color:var(--muted);
  font-size:10px;
  font-weight:650;
}
.student-sort-control .select-control{
  min-width:190px;
}

.student-status-table th:nth-child(3),
.student-status-table td:nth-child(3){
  width:38%;
}
.global-students-table.student-status-table th:nth-child(4),
.global-students-table.student-status-table td:nth-child(4){
  width:34%;
}

.student-status-block{
  min-width:250px;
  max-width:360px;
}
.student-status-title{
  display:flex;
  align-items:center;
  gap:6px;
  min-height:20px;
  font-size:11px;
}
.student-status-title strong{
  font-size:11px;
}
.status-count{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:19px;
  height:19px;
  padding:0 5px;
  border-radius:5px;
  background:#f0f1f5;
  color:#646d80;
  font-size:9px;
  font-weight:800;
}
.status-review .student-status-title{
  color:#9a681d;
}
.status-review .status-count{
  background:#fff0cf;
  color:#96651d;
}
.status-progress .student-status-title{
  color:#46679e;
}
.status-progress .status-count{
  background:#eaf1ff;
  color:#46679e;
}
.status-progress-dot{
  width:8px;
  height:8px;
  border-radius:50%;
  background:#5b7fb8;
  box-shadow:0 0 0 3px #edf3ff;
}
.status-closed .student-status-title{
  color:#1f7b58;
}
.status-closed-icon{
  width:15px;
  height:15px;
  font-size:15px;
}
.status-note{
  margin-top:3px;
  color:var(--muted);
  font-size:9px;
}

.status-task-list{
  display:flex;
  align-items:center;
  gap:5px 8px;
  flex-wrap:wrap;
  margin-top:5px;
}
.status-task-link{
  color:#5f6879;
  text-decoration:none;
  font-size:9px;
  line-height:1.2;
}
.status-task-link:hover{
  color:var(--primary);
}
.status-more{
  color:#8a93a6;
  font-size:9px;
  white-space:nowrap;
}

.student-progress-list{
  display:flex;
  flex-direction:column;
  gap:6px;
  margin-top:6px;
}
.student-progress-task{
  width:100%;
  max-width:260px;
}
.student-progress-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
  margin-bottom:3px;
}
.student-progress-name{
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  color:#626b7c;
  font-size:9px;
}
.student-progress-percent{
  flex:0 0 auto;
  color:#7b8494;
  font-size:9px;
  font-weight:700;
}
.student-progress-track{
  width:100%;
  height:5px;
  overflow:hidden;
  border-radius:4px;
  background:#edf0f4;
}
.student-progress-fill{
  display:block;
  height:100%;
  border-radius:4px;
}
.student-progress-fill.low{background:#d99a35}
.student-progress-fill.mid{background:#607dcc}
.student-progress-fill.high{background:#38a77a}

/* Action columns consistently align right */
.students-table th.actions-col,
.students-table td.actions-col,
.student-detail-tasks-table th:last-child,
.student-detail-tasks-table td:last-child,
.pending-group-students-table th:last-child,
.pending-group-students-table td:last-child{
  text-align:right;
}
.student-row-actions{
  justify-content:flex-end;
}


/* v62 — readability in student statuses + cleaner pending queue */
.status-task-link{
  font-size:10.5px;
  line-height:1.35;
}
.student-progress-name{
  font-size:10.5px;
  line-height:1.3;
}
.student-progress-percent{
  font-size:10px;
}
.pending-group-toolbar{
  justify-content:flex-end;
  padding:0 0 10px;
  border-bottom:0;
}


/* v63 — cleaner group student lists */
.group-students-status-view{
  position:relative;
}
.pending-box-action{
  position:absolute;
  top:0;
  right:0;
  z-index:2;
}
#groupPendingStudents{
  padding-top:44px;
}
.pending-group-students-table th:last-child,
.pending-group-students-table td:last-child{
  text-align:right;
}
#groupAcceptedStudents .student-row-actions{
  justify-content:flex-end;
}


/* v64 — student task view aligned with group progress/status logic */
.modern-student-tasks{
  min-width:980px;
}
.modern-student-tasks th:nth-child(1){width:24%}
.modern-student-tasks th:nth-child(2){width:17%}
.modern-student-tasks th:nth-child(3){width:20%}
.modern-student-tasks th:nth-child(4){width:17%}
.modern-student-tasks th:nth-child(5){width:14%}
.modern-student-tasks .task-list-progress{
  max-width:220px;
}
.compact-status{
  min-width:0;
  max-width:none;
}
.task-title-link{
  color:inherit;
  text-decoration:none;
}
.task-title-link:hover .name{
  color:var(--primary);
}
.compact-sort{
  white-space:nowrap;
}
.student-detail-tasks-table .actions-col{
  text-align:right;
}


/* v65 — repaired global students layout + cleaner task progress */
.global-students-head{
  align-items:center;
}
.global-students-head .student-list-tools{
  margin-left:auto;
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:10px;
  flex-wrap:nowrap;
}
.global-students-head .search-field{
  width:240px;
  flex:0 0 240px;
}
.global-students-head .student-list-tools > .select-control{
  width:190px;
  flex:0 0 190px;
}
.header-sort-control{
  display:flex;
  align-items:center;
  gap:7px;
  white-space:nowrap;
}
.header-sort-control .select-control{
  width:190px;
  min-width:190px;
}

.global-students-table{
  width:100%;
  table-layout:fixed;
}
.global-students-table th:nth-child(1),
.global-students-table td:nth-child(1){width:19%}
.global-students-table th:nth-child(2),
.global-students-table td:nth-child(2){width:17%}
.global-students-table th:nth-child(3),
.global-students-table td:nth-child(3){width:11%}
.global-students-table th:nth-child(4),
.global-students-table td:nth-child(4){width:43%}
.global-students-table th:nth-child(5),
.global-students-table td:nth-child(5){width:10%}

.global-students-table .student-list-copy .name{
  white-space:nowrap;
}
.global-students-table .student-status-block{
  min-width:0;
  max-width:100%;
}
.global-students-table .student-progress-task{
  max-width:300px;
}
.global-students-table .actions-col{
  text-align:right;
}
.global-students-table .student-row-actions{
  justify-content:flex-end;
  flex-wrap:nowrap;
}
#acceptedStudentsView .table-footer{
  margin-top:10px;
}

/* In Student -> Tasks the task title is already in the first column. */
.task-list-progress .progress-only-head{
  justify-content:flex-end;
  margin-bottom:4px;
}
.task-list-progress .progress-only-head .student-progress-percent{
  margin-left:auto;
}


/* v67 — bulk approval action belongs to the whole Students card header */
.students-head{
  align-items:center;
}
.group-students-head-action{
  margin-left:auto;
  display:flex;
  align-items:center;
  justify-content:flex-end;
}
.group-students-head-action[hidden]{
  display:none !important;
}

.pending-box-action{
  display:none !important;
}


/* v68 — global pending students quick approval */
.global-students-head{
  position:relative;
}
.global-pending-head-action{
  margin-left:auto;
  display:flex;
  align-items:center;
  justify-content:flex-end;
}
.global-pending-head-action[hidden]{
  display:none !important;
}
.pending-global-students-table{
  width:100%;
  table-layout:fixed;
}
.pending-global-students-table th:nth-child(1),
.pending-global-students-table td:nth-child(1){width:23%}
.pending-global-students-table th:nth-child(2),
.pending-global-students-table td:nth-child(2){width:28%}
.pending-global-students-table th:nth-child(3),
.pending-global-students-table td:nth-child(3){width:20%}
.pending-global-students-table th:nth-child(4),
.pending-global-students-table td:nth-child(4){width:29%}
.pending-global-students-table .actions-col{
  text-align:right;
}
.pending-global-students-table .pending-row-actions{
  justify-content:flex-end;
  flex-wrap:nowrap;
}
.pending-group-link{
  display:inline-flex;
  align-items:center;
  gap:9px;
  color:var(--text);
  text-decoration:none;
}
.pending-group-link:hover strong{
  color:var(--primary);
}
.compact-group-icon{
  width:34px;
  height:34px;
  flex:0 0 34px;
  font-size:15px;
  border-radius:7px;
}


/* v69 — separate bulk actions from filters in Students header */
.global-students-head{
  display:block;
}
.students-card-primary-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  width:100%;
}
.students-card-filters-row{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  width:100%;
  margin-top:12px;
}
.students-card-filters-row .student-list-tools{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:10px;
  margin-left:auto;
  flex-wrap:nowrap;
}
.global-pending-head-action{
  margin-left:auto;
  flex:0 0 auto;
}
.students-card-filters-row .search-field{
  width:260px;
  flex:0 0 260px;
}
.students-card-filters-row .student-list-tools > .select-control{
  width:200px;
  flex:0 0 200px;
}
.students-card-filters-row .header-sort-control .select-control{
  width:200px;
  min-width:200px;
}


/* v70 — student approval belongs to a concrete group */
.approval-group-tabs{
  margin-bottom:16px;
}


/* v71 — compact student membership approval modal */
.student-approval-modal{
  position:relative;
  width:min(500px,calc(100vw - 32px));
  max-height:calc(100vh - 44px);
  overflow:auto;
  border-radius:10px;
  background:#fff;
  box-shadow:0 24px 80px rgba(15,23,42,.28);
  padding:24px;
}
.student-approval-modal-head{
  text-align:center;
  margin-bottom:18px;
}
.student-approval-modal-head h2{
  margin:0;
  font-size:20px;
}
.approval-modal-student{
  display:flex;
  align-items:center;
  gap:14px;
}
.approval-modal-avatar{
  width:58px;
  height:58px;
  flex:0 0 58px;
  font-size:26px;
}
.approval-modal-student-copy{
  min-width:0;
  flex:1;
}
.approval-modal-name-row{
  display:flex;
  align-items:center;
  gap:8px;
  flex-wrap:wrap;
}
.approval-modal-name-row strong{
  font-size:17px;
}
.text-action{
  border:0;
  background:transparent;
  padding:2px 0;
  color:var(--primary);
  font-size:10px;
  font-weight:700;
  cursor:pointer;
}
.approval-modal-name-edit[hidden]{
  display:none !important;
}
.approval-modal-name-edit{
  margin-top:12px;
  padding:12px;
  border:1px solid var(--line);
  border-radius:8px;
  background:#fafbfc;
}
.approval-modal-name-fields{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px;
}
.approval-modal-name-fields .field{
  margin:0;
}
.approval-modal-inline-actions{
  display:flex;
  justify-content:flex-end;
  gap:8px;
  margin-top:10px;
}
.approval-modal-divider{
  height:1px;
  background:var(--line);
  margin:18px 0;
}
.approval-modal-group{
  display:flex;
  align-items:center;
  gap:12px;
}
.approval-modal-group-icon{
  width:44px;
  height:44px;
  flex:0 0 44px;
  font-size:20px;
}
.approval-modal-group-copy{
  min-width:0;
}
.approval-modal-group-copy > strong{
  display:block;
  font-size:14px;
  margin-bottom:4px;
}
.approval-modal-group-state{
  display:inline-flex;
  align-items:center;
  gap:5px;
  font-size:10px;
  font-weight:700;
}
.approval-modal-group-state .dashicons{
  width:14px;
  height:14px;
  font-size:14px;
}
.approval-modal-group-state.open{color:#1f7b58}
.approval-modal-group-state.closed{color:#a66b1b}
.approval-modal-group-state.archived{color:#737b8b}
.approval-modal-date{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  margin-top:16px;
  padding-top:14px;
  border-top:1px solid var(--line);
  color:var(--muted);
  font-size:10px;
}
.approval-modal-date strong{
  color:var(--text);
  font-size:11px;
}
.approval-modal-blocked[hidden]{
  display:none !important;
}
.approval-modal-blocked{
  display:flex;
  align-items:flex-start;
  gap:10px;
  margin-top:14px;
  padding:11px 12px;
  border:1px solid #ecd7ad;
  border-radius:8px;
  background:#fff9ec;
  color:#986517;
}
.approval-modal-blocked .dashicons{
  flex:0 0 auto;
  margin-top:1px;
}
.approval-modal-blocked strong{
  display:block;
  font-size:11px;
}
.approval-modal-blocked p{
  margin:3px 0 0;
  color:#7f6a45;
  font-size:10px;
  line-height:1.45;
}
.approval-modal-actions{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  flex-wrap:wrap;
  margin-top:20px;
}
.approval-modal-actions [hidden]{
  display:none !important;
}


/* v72 — softer, centered approval modal composition */
.student-approval-modal-head{
  margin-bottom:16px;
}
.student-approval-modal-head h2{
  font-size:17px;
  font-weight:700;
  line-height:1.25;
  color:#253047;
}

.approval-modal-student{
  width:max-content;
  max-width:100%;
  margin:0 auto;
  justify-content:center;
}
.approval-modal-student-copy{
  flex:0 1 auto;
}
.approval-modal-name-row{
  justify-content:flex-start;
}

.approval-modal-group{
  width:max-content;
  max-width:100%;
  margin:0 auto;
  justify-content:center;
}
.approval-modal-group-copy{
  flex:0 1 auto;
}

.approval-modal-date{
  justify-content:center;
  gap:6px;
  margin-top:16px;
  padding-top:14px;
  text-align:center;
}
.approval-modal-date span,
.approval-modal-date strong{
  white-space:nowrap;
}


/* v73 — approval modal adopts invite-modal header language */
.student-approval-modal-head{
  display:flex;
  flex-direction:column;
  align-items:center;
  text-align:center;
  margin-bottom:0;
}
.approval-modal-badge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:25px;
  padding:0 10px;
  border-radius:999px;
  font-size:10px;
  font-weight:750;
  line-height:1;
  margin-bottom:12px;
}
.approval-modal-badge.open{
  background:#e7f6ef;
  color:#177553;
}
.approval-modal-badge.closed{
  background:#fff0d5;
  color:#9a681d;
}
.approval-modal-badge.archived{
  background:#eef0f3;
  color:#697386;
}
.student-approval-modal-head h2{
  margin:0;
  font-size:20px;
  font-weight:750;
  line-height:1.25;
  color:var(--text);
}
.approval-modal-header-group{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  margin-top:10px;
}
.approval-modal-header-group-icon{
  width:34px;
  height:34px;
  flex:0 0 34px;
  font-size:15px;
  border-radius:7px;
}
.approval-modal-header-group-copy{
  text-align:left;
}
.approval-modal-header-group-copy > strong{
  display:block;
  font-size:12px;
  margin-bottom:2px;
}
.approval-modal-divider{
  margin:18px 0;
}
.approval-modal-student-centered{
  justify-content:center;
  width:max-content;
  max-width:100%;
  margin:0 auto;
}
.approval-modal-student-centered .approval-modal-student-copy{
  flex:0 1 auto;
}
.approval-modal-student-centered .approval-modal-student-copy > strong{
  display:block;
  font-size:16px;
  margin-bottom:3px;
}
.invite-modal-group-identity{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  margin-top:7px;
  color:var(--muted);
  font-size:12px;
}
.invite-modal-group-icon{
  width:30px;
  height:30px;
  flex:0 0 30px;
  border-radius:7px;
  font-size:14px;
}

/* v74 — tall student rows align to the top */
.student-status-table tbody td,
.global-students-table tbody td{
  vertical-align:top;
}
.student-status-table .student-list-identity,
.global-students-table .student-list-identity,
.student-status-table .student-row-actions,
.global-students-table .student-row-actions{
  align-items:flex-start;
}

/* v74 — create group modal */
.create-group-modal{
  position:relative;
  width:min(540px,calc(100vw - 32px));
  max-height:calc(100vh - 44px);
  overflow:auto;
  padding:24px;
  border-radius:10px;
  background:#fff;
  box-shadow:0 24px 80px rgba(15,23,42,.28);
}

.create-group-badge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:25px;
  padding:0 10px;
  margin-bottom:10px;
  border-radius:999px;
  background:#eeeeff;
  color:var(--primary);
  font-size:10px;
  font-weight:750;
}
.create-group-modal-head h2{
  margin:0;
  font-size:20px;
}
.create-group-modal-head p{
  max-width:390px;
  margin:6px auto 0;
  color:var(--muted);
  font-size:11px;
  line-height:1.45;
}
.create-group-field{
  margin-bottom:18px;
}
.create-group-field label,
.create-group-picker-label{
  display:block;
  margin-bottom:7px;
  font-size:10px;
  font-weight:750;
  color:var(--text);
}
.create-group-field input{width:100%}
.field-error{border-color:#d95363 !important}
.create-group-avatar-section{
  padding-top:16px;
  border-top:1px solid var(--line);
}
.create-group-section-head{
  margin-bottom:10px;
}
.create-group-section-head strong{
  font-size:12px;
}
.create-group-avatar-preview{
  display:flex;
  align-items:center;
  gap:12px;
  margin-bottom:16px;
}
.create-group-preview-icon{
  width:54px;
  height:54px;
  flex:0 0 54px;
  font-size:25px;
  background:#F7DDE5;
}
.create-group-avatar-preview strong{
  display:block;
  font-size:13px;
  margin-bottom:2px;
}
.create-group-icon-grid,
.create-group-color-grid{
  display:grid;
  grid-template-columns:repeat(8,1fr);
  gap:7px;
  margin-bottom:14px;
}
.create-group-icon-choice,
.create-group-color-choice{
  display:grid;
  place-items:center;
  aspect-ratio:1;
  min-width:0;
  border:1px solid var(--line);
  border-radius:7px;
  background:#fff;
  cursor:pointer;
}
.create-group-icon-choice{
  font-size:20px;
}
.create-group-icon-choice.selected,
.create-group-color-choice.selected{
  border-color:var(--primary);
  box-shadow:0 0 0 1px var(--primary);
}
.create-group-color-choice span{
  width:70%;
  height:70%;
  border-radius:5px;
  border:1px solid rgba(15,23,42,.08);
}
.create-group-modal-actions{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  margin-top:22px;
}


/* v75 — global tag geometry */
.badge,
.source-badge,
.visibility-badge,
.enrollment-status,
.students-count,
.approval-modal-badge,
.create-group-badge{
  border-radius:6px !important;
}

/* v75 — simplified create-group modal */
.create-group-modal{
  width:min(470px,calc(100vw - 32px));
  padding:26px;
}
.create-group-modal-head{
  text-align:center;
  margin-bottom:20px;
}
.create-group-badge{
  min-height:28px;
  padding:0 11px;
  margin:0;
  font-size:11px;
  font-weight:750;
}
.create-group-avatar-preview{
  justify-content:center;
  text-align:left;
  margin:0 auto 22px;
  width:max-content;
  max-width:100%;
}
.create-group-preview-icon{
  width:66px;
  height:66px;
  flex:0 0 66px;
  font-size:30px;
  border-radius:10px;
}
.create-group-preview-copy strong{
  display:block;
  max-width:290px;
  font-size:16px;
  line-height:1.25;
  overflow-wrap:anywhere;
}
.create-group-preview-copy .sub{
  margin-top:3px;
}
.create-group-config{
  padding-top:18px;
  border-top:1px solid var(--line);
}
.create-group-field{
  margin-bottom:12px;
}
.create-group-field label{
  margin-bottom:7px;
  font-size:11px;
}
.create-group-field input{
  width:100%;
  min-height:46px;
  padding:12px 14px;
  font-size:13px;
}
.create-group-randomize{
  display:inline-flex;
  align-items:center;
  gap:7px;
}
.create-group-randomize .dashicons{
  width:16px;
  height:16px;
  font-size:16px;
}
.create-group-note{
  margin:14px 0 0;
  color:var(--muted);
  font-size:10.5px;
  line-height:1.5;
}
.create-group-modal-actions{
  margin-top:22px;
}


/* v76 — robust top alignment for student listings */
.students-table.student-status-table tbody > tr > td,
.global-students-table tbody > tr > td{
  vertical-align:top !important;
}

/* Keep the avatar/name composition internally centered. */
.students-table.student-status-table .student-list-identity,
.global-students-table .student-list-identity{
  align-items:center !important;
}

/* Actions begin at the same top line as the other cells. */
.students-table.student-status-table .student-row-actions,
.global-students-table .student-row-actions{
  align-items:flex-start !important;
  justify-content:flex-end;
}


/* v77 — create group modal refinements */
.create-group-randomize{
  width:100%;
  min-height:46px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  border:1px solid #cfd5e2;
  background:#fff;
  box-shadow:0 1px 2px rgba(15,23,42,.04);
  font-weight:700;
}
.create-group-randomize:hover{
  border-color:#aeb7c8;
  background:#fafbfc;
}


/* v78 — student listing controls and bulk approval placement */
.students-head{
  align-items:flex-start;
}
.group-students-head-tools{
  margin-left:auto;
  display:flex;
  align-items:center;
  justify-content:flex-end;
}
.group-students-head-tools .student-sort-control{
  margin:0;
}
.group-students-head-tools .student-sort-select{
  min-width:220px;
}

/* Bulk approval belongs below the queue, not in the controls row. */
.pending-bulk-footer{
  display:flex;
  justify-content:flex-end;
  margin-top:14px;
  padding-top:14px;
  border-top:1px solid var(--line);
}
.pending-bulk-footer > .btn{
  width:276px;
  justify-content:center;
}
#groupPendingStudents{
  padding-top:0;
}

/* v79 — bulk approval width follows the row action cluster */
.pending-bulk-footer > .btn{
  width:auto !important;
  min-width:0 !important;
  justify-content:center;
  white-space:nowrap;
}


/* v80 — global Students filters in one top row */
.students-card-unified-row{
  width:100%;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
}
.students-card-unified-row .student-list-tools{
  margin-left:auto;
  flex-wrap:nowrap;
  justify-content:flex-end;
}
.students-card-unified-row .search-field{
  width:240px;
  flex:0 0 240px;
}
.students-card-unified-row .student-list-tools > .select-control{
  width:190px;
  flex:0 0 190px;
}
.students-card-unified-row .header-sort-control .select-control{
  width:190px;
  min-width:190px;
}

/* v80 — unified assignments listing */
.assignments-module-head{
  align-items:center;
}
.assignments-module-head .module-title-filter{
  display:flex;
  align-items:center;
  gap:14px;
  min-width:0;
}
.assignment-list-tools{
  margin-left:auto;
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:nowrap;
}
.assignment-list-tools > .select-control{
  min-width:190px;
}
.assignment-sort-control{
  margin:0;
}
.assignment-sort-control .select-control{
  min-width:180px;
}
.task-switch-count{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:20px;
  height:20px;
  padding:0 6px;
  margin-left:4px;
  border-radius:6px;
  background:#eeeefe;
  color:var(--primary);
  font-size:9px;
  font-weight:800;
}
.assignment-list-table{
  width:100%;
  min-width:1000px;
  table-layout:fixed;
}
.assignment-list-table th:nth-child(1),
.assignment-list-table td:nth-child(1){width:23%}
.assignment-list-table th:nth-child(2),
.assignment-list-table td:nth-child(2){width:17%}
.assignment-list-table th:nth-child(3),
.assignment-list-table td:nth-child(3){width:13%}
.assignment-list-table th:nth-child(4),
.assignment-list-table td:nth-child(4){width:11%}
.assignment-list-table th:nth-child(5),
.assignment-list-table td:nth-child(5){width:11%}
.assignment-list-table th:nth-child(6),
.assignment-list-table td:nth-child(6){width:17%}
.assignment-list-table th:nth-child(7),
.assignment-list-table td:nth-child(7){width:8%}
.group-assignment-list-table th:nth-child(1),
.group-assignment-list-table td:nth-child(1){width:30%}
.group-assignment-list-table th:nth-child(2),
.group-assignment-list-table td:nth-child(2){width:16%}
.group-assignment-list-table th:nth-child(3),
.group-assignment-list-table td:nth-child(3){width:13%}
.group-assignment-list-table th:nth-child(4),
.group-assignment-list-table td:nth-child(4){width:13%}
.group-assignment-list-table th:nth-child(5),
.group-assignment-list-table td:nth-child(5){width:20%}
.group-assignment-list-table th:nth-child(6),
.group-assignment-list-table td:nth-child(6){width:8%}
.assignment-list-table td{
  vertical-align:middle;
}
.assignment-list-table .actions-col{
  text-align:right;
}
.task-group-link{
  display:inline-flex;
  align-items:center;
  gap:8px;
  color:var(--text);
  text-decoration:none;
}
.task-group-link:hover span:last-child{
  color:var(--primary);
}
.task-attention{
  display:inline-flex;
  align-items:center;
  gap:6px;
  min-height:22px;
  font-size:10.5px;
  font-weight:700;
}
.task-attention-review{
  color:#9a681d;
}
.task-attention-ok{
  color:#1f7b58;
}
.task-attention-archived{
  color:#1f7b58;
}
.status-ok-dot{
  width:8px;
  height:8px;
  border-radius:50%;
  background:#38a77a;
  box-shadow:0 0 0 3px #e8f7f1;
}
.task-attention-archived .dashicons{
  width:15px;
  height:15px;
  font-size:15px;
}
.assignment-status-view[hidden]{
  display:none !important;
}


/* v81 — simplified archived assignments */
.archived-assignment-list-table{
  min-width:720px;
}
.archived-assignment-list-table th:nth-child(1),
.archived-assignment-list-table td:nth-child(1){width:42%}
.archived-assignment-list-table th:nth-child(2),
.archived-assignment-list-table td:nth-child(2){width:30%}
.archived-assignment-list-table th:nth-child(3),
.archived-assignment-list-table td:nth-child(3){width:18%}
.archived-assignment-list-table th:nth-child(4),
.archived-assignment-list-table td:nth-child(4){width:10%}

.archived-group-assignment-list-table{
  min-width:620px;
}
.archived-group-assignment-list-table th:nth-child(1),
.archived-group-assignment-list-table td:nth-child(1){width:62%}
.archived-group-assignment-list-table th:nth-child(2),
.archived-group-assignment-list-table td:nth-child(2){width:26%}
.archived-group-assignment-list-table th:nth-child(3),
.archived-group-assignment-list-table td:nth-child(3){width:12%}

/* v81 — compact splash logo */
.login-brand img{
  width:150px !important;
  max-width:150px !important;
  height:auto !important;
}


/* v82 — concrete assignment detail */
.assignment-detail-header{
  margin-bottom:12px;
}
.assignment-detail-title-row{
  display:flex;
  align-items:center;
  gap:10px;
}
.assignment-detail-title-row h1{
  margin:0;
  font-size:26px;
  line-height:1.2;
}
.assignment-status-badge{
  background:#e7f6ef;
  color:#177553;
}
.assignment-detail-meta{
  display:flex;
  align-items:center;
  gap:8px;
  margin-top:6px;
  color:var(--muted);
  font-size:11px;
}
.assignment-meta-separator{color:#b1b7c5}
.assignment-detail-tabs{margin-bottom:18px}

.assignment-overview-grid{
  display:grid;
  grid-template-columns:minmax(0,2fr) minmax(280px,1fr);
  gap:16px;
  margin-bottom:16px;
}
.assignment-summary-card,
.assignment-info-card{
  padding:20px;
}
.assignment-kpi-grid{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:10px;
}
.assignment-kpi{
  padding:12px;
  border:1px solid var(--line);
  border-radius:8px;
  background:#fff;
}
.assignment-kpi span,
.assignment-kpi small{
  display:block;
  color:var(--muted);
  font-size:10px;
}
.assignment-kpi strong{
  display:block;
  margin:4px 0 2px;
  font-size:24px;
}
.assignment-kpi.attention-kpi{
  background:#fffaf0;
  border-color:#efd39b;
}
.assignment-progress-summary{
  margin-top:18px;
  padding-top:16px;
  border-top:1px solid var(--line);
}
.assignment-progress-row + .assignment-progress-row{margin-top:12px}
.assignment-progress-row > div:first-child{
  display:flex;
  justify-content:space-between;
  gap:10px;
  font-size:10.5px;
}
.assignment-progress-track{
  height:7px;
  margin-top:6px;
  border-radius:4px;
  background:#edf0f5;
  overflow:hidden;
}
.assignment-progress-track span{
  display:block;
  height:100%;
  background:#1b93d2;
}
.assignment-progress-row.completed .assignment-progress-track span{
  background:#38a77a;
}
.assignment-info-card h2{margin:0 0 12px;font-size:16px}
.assignment-info-list{margin:0}
.assignment-info-list > div{
  display:grid;
  grid-template-columns:120px 1fr;
  gap:10px;
  padding:10px 0;
  border-top:1px solid var(--line);
  font-size:11px;
}
.assignment-info-list > div:first-child{border-top:0}
.assignment-info-list dt{color:var(--muted)}
.assignment-info-list dd{margin:0;font-weight:650}
.assignment-info-list a{color:var(--primary);text-decoration:none}
.status-inline-green{color:#177553}

.assignment-messages-head .module-title-filter{display:flex;align-items:center;gap:12px}
.assignment-message-list{display:flex;flex-direction:column}
.assignment-message-row{
  display:grid;
  grid-template-columns:auto 1fr auto;
  align-items:start;
  gap:12px;
  padding:14px 0;
  border-top:1px solid var(--line);
}
.assignment-message-row:first-child{border-top:0}
.assignment-message-copy p{
  margin:7px 0 0;
  font-size:11px;
  line-height:1.55;
}
.assignment-message-top{display:flex;align-items:center;gap:8px}
.problem-label,
.comment-label{
  display:inline-flex;
  align-items:center;
  min-height:22px;
  padding:0 7px;
  border-radius:6px;
  font-size:9px;
  font-weight:750;
}
.problem-label{background:#fff0d5;color:#9a681d}
.comment-label{background:#eeeefe;color:#4e4ec7}
.assignment-message-row[hidden]{display:none!important}

.assignment-students-head{align-items:center}
.assignment-students-table{min-width:980px;table-layout:fixed}
.assignment-students-table th:nth-child(1),
.assignment-students-table td:nth-child(1){width:20%}
.assignment-students-table th:nth-child(2),
.assignment-students-table td:nth-child(2){width:18%}
.assignment-students-table th:nth-child(3),
.assignment-students-table td:nth-child(3){width:18%}
.assignment-students-table th:nth-child(4),
.assignment-students-table td:nth-child(4){width:14%}
.assignment-students-table th:nth-child(5),
.assignment-students-table td:nth-child(5){width:20%}
.assignment-students-table th:nth-child(6),
.assignment-students-table td:nth-child(6){width:10%}
.assignment-students-table .actions-col{text-align:right}
.message-count-link{font-size:10px;color:var(--muted)}

.assignment-content-head{align-items:center}
.assignment-source-note{
  display:flex;
  align-items:center;
  gap:8px;
  margin-bottom:16px;
  padding:10px 12px;
  border-radius:7px;
  background:#f5f7fb;
  color:var(--muted);
  font-size:10.5px;
}
.assignment-source-note .dashicons{width:16px;height:16px;font-size:16px;color:#5474ba}
.catalog-step-list{display:flex;flex-direction:column;gap:12px}
.catalog-step{
  padding:18px;
  border:1px solid var(--line);
  border-radius:8px;
  background:#fff;
}
.catalog-step-head{
  display:flex;
  align-items:center;
  gap:11px;
}
.catalog-step-head h3{margin:0;font-size:15px}
.catalog-step-number{
  width:28px;height:28px;flex:0 0 28px;
  display:grid;place-items:center;
  border-radius:6px;
  background:#eeeefe;color:var(--primary);
  font-size:10px;font-weight:800;
}
.step-activity-badges{
  margin-left:auto;
  display:flex;align-items:center;gap:6px;
}
.catalog-step-body{
  margin-top:14px;
  padding-left:39px;
  font-size:11px;
  line-height:1.6;
}
.catalog-media-placeholder{
  width:220px;height:120px;
  display:grid;place-items:center;
  align-content:center;gap:6px;
  margin-bottom:12px;
  border:1px dashed #cfd5e2;
  border-radius:7px;
  background:#fafbfc;
  color:#8a93a6;
}
.catalog-media-placeholder.wide{width:100%;height:170px}
.catalog-code{
  margin:0 0 10px;
  padding:14px;
  border-radius:7px;
  background:#171a2b;
  color:#eef1ff;
  overflow:auto;
  font-size:10px;
  line-height:1.55;
}
.component-list{margin:0;padding-left:18px}
.step-teacher-note{
  margin:16px 0 0 39px;
  padding-top:12px;
  border-top:1px solid var(--line);
}
.step-note-display{
  display:flex;
  align-items:center;
  gap:8px;
  min-height:30px;
}
.step-note-display strong{font-size:10.5px}
.step-note-value{
  flex:1;
  color:#4b5568;
  font-size:10.5px;
}
.step-note-display .sub{flex:1}
.step-note-editor textarea{
  width:100%;
  padding:10px 12px;
  border:1px solid var(--line);
  border-radius:7px;
  font:inherit;
  font-size:11px;
  resize:vertical;
}
.step-note-editor > div{
  display:flex;
  justify-content:flex-end;
  gap:7px;
  margin-top:8px;
}
.step-note-editor[hidden],
.step-note-display[hidden]{display:none!important}

/* v82 — splash logo: use a selector stronger than the generic .brand.brand-logo rule */
.login-visual .brand.brand-logo.login-brand{
  width:180px!important;
  max-width:180px!important;
  padding:0!important;
  justify-content:flex-start!important;
  align-self:flex-start!important;
}
.login-visual .brand.brand-logo.login-brand img{
  display:block!important;
  width:180px!important;
  max-width:180px!important;
  height:auto!important;
  margin:0!important;
}


/* v83 — archived assignment statuses */
.archive-status{
  display:inline-flex;
  align-items:center;
  gap:6px;
  font-size:10.5px;
  font-weight:750;
  white-space:nowrap;
}
.archive-status .dashicons{
  width:15px;
  height:15px;
  font-size:15px;
}
.archive-status.completed{
  color:#177553;
}
.archive-status.cancelled{
  color:#a84b58;
}

.archived-assignment-list-table th:nth-child(1),
.archived-assignment-list-table td:nth-child(1){width:36%}
.archived-assignment-list-table th:nth-child(2),
.archived-assignment-list-table td:nth-child(2){width:25%}
.archived-assignment-list-table th:nth-child(3),
.archived-assignment-list-table td:nth-child(3){width:16%}
.archived-assignment-list-table th:nth-child(4),
.archived-assignment-list-table td:nth-child(4){width:13%}
.archived-assignment-list-table th:nth-child(5),
.archived-assignment-list-table td:nth-child(5){width:10%}

.archived-group-assignment-list-table th:nth-child(1),
.archived-group-assignment-list-table td:nth-child(1){width:50%}
.archived-group-assignment-list-table th:nth-child(2),
.archived-group-assignment-list-table td:nth-child(2){width:24%}
.archived-group-assignment-list-table th:nth-child(3),
.archived-group-assignment-list-table td:nth-child(3){width:16%}
.archived-group-assignment-list-table th:nth-child(4),
.archived-group-assignment-list-table td:nth-child(4){width:10%}

/* v83 — cancel assignment */
.cancel-assignment-trigger{
  color:#a84b58;
  border-color:#e7c7cd;
  background:#fff;
}
.cancel-assignment-trigger:hover{
  color:#923947;
  border-color:#dcaeb7;
  background:#fffafb;
}
.cancel-assignment-modal{
  width:min(560px,100%);
  text-align:center;
}
.cancel-assignment-modal > p{
  max-width:450px;
  margin-left:auto;
  margin-right:auto;
}
.cancel-assignment-note{
  color:var(--muted);
  font-size:11px;
  line-height:1.55;
}
.cancel-assignment-modal .confirm-modal-actions{
  justify-content:center;
}


/* v85 — state-aware assignment details */
.assignment-status-active{
  background:#e7f6ef;
  color:#177553;
}
.assignment-status-completed{
  background:#e7f6ef;
  color:#177553;
}
.assignment-status-cancelled{
  background:#fdebed;
  color:#a84b58;
}
.assignment-status-catalog{
  background:#eeeefe;
  color:#4e4ec7;
}
.readonly-step-note{
  opacity:.92;
}
.readonly-step-note .step-note-display{
  min-height:auto;
}
.status-completed .student-status-title{
  color:#177553;
}
.status-cancelled .student-status-title{
  color:#a84b58;
}
.status-completed .dashicons,
.status-cancelled .dashicons{
  width:15px;
  height:15px;
  font-size:15px;
}
.assignment-detail-tabs .tab:only-child{
  min-width:110px;
}
.task-library-card h3 a{
  color:inherit;
  text-decoration:none;
}
.task-library-card h3 a:hover{
  color:var(--primary);
}


/* v86 — task catalog cleanup and usage history */
.task-library-grid{
  gap:12px;
}
.task-library-card-v86{
  display:grid;
  grid-template-columns:minmax(0,1.4fr) minmax(280px,.9fr) auto;
  gap:18px;
  align-items:center;
  padding:17px 18px;
}
.task-library-card-v86 h3{
  margin:0 0 6px;
  font-size:15px;
}
.task-library-card-v86 .task-description{
  margin:0 0 9px;
}
.task-card-author{
  color:var(--muted);
  font-size:10.5px;
}
.task-card-author strong{
  color:var(--text);
  font-weight:700;
}
.task-library-card-v86 .task-card-actions{
  margin:0;
  justify-content:flex-end;
}
.task-usage{
  display:flex;
  flex-direction:column;
  gap:7px;
  padding-left:16px;
  border-left:1px solid var(--line);
}
.task-usage-row{
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:6px;
  min-height:20px;
  color:var(--muted);
  font-size:10.5px;
  line-height:1.4;
}
.task-usage-row strong{
  color:var(--text);
  font-size:10.5px;
}
.task-usage-row a{
  color:var(--primary);
  text-decoration:none;
}
.task-usage-row em{
  font-style:normal;
  color:#8a93a6;
}
.task-usage-dot{
  width:8px;
  height:8px;
  flex:0 0 8px;
  border-radius:50%;
}
.active-use .task-usage-dot{
  background:#4aa87a;
  box-shadow:0 0 0 3px #e7f6ef;
}
.never-use .task-usage-dot{
  background:#98a2b3;
  box-shadow:0 0 0 3px #eef0f4;
}
.task-usage-history-icon{
  width:14px;
  height:14px;
  font-size:14px;
  color:#8a93a6;
}

.task-detail-usage{
  display:flex;
  align-items:flex-start;
  gap:18px;
  margin:0 0 14px;
  padding:12px 14px;
  border:1px solid var(--line);
  border-radius:7px;
  background:#fff;
}
.task-detail-usage-label{
  flex:0 0 145px;
  color:var(--muted);
  font-size:10px;
  font-weight:750;
  text-transform:uppercase;
  letter-spacing:.02em;
}
.task-detail-usage-lines{
  display:flex;
  flex-direction:column;
  gap:5px;
}

.catalog-teacher-note{
  margin:16px 0 0 39px;
  padding-top:12px;
  border-top:1px solid var(--line);
}
.catalog-note-display{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:14px;
}
.catalog-note-display > div{
  display:flex;
  flex-direction:column;
  gap:3px;
  min-width:0;
}
.catalog-note-display strong{
  font-size:10.5px;
}
.catalog-note-value{
  color:#4b5568;
  font-size:10.5px;
  line-height:1.45;
}
.catalog-note-editor textarea{
  width:100%;
  min-height:82px;
  padding:10px 12px;
  border:1px solid var(--line);
  border-radius:7px;
  font:inherit;
  font-size:11px;
  resize:vertical;
}
.catalog-note-editor-actions{
  display:flex;
  justify-content:flex-end;
  gap:7px;
  margin-top:8px;
}
.catalog-note-editor[hidden],
.catalog-note-display[hidden]{
  display:none!important;
}

@media(max-width:1080px){
  .task-library-card-v86{
    grid-template-columns:1fr;
  }
  .task-usage{
    padding-left:0;
    padding-top:12px;
    border-left:0;
    border-top:1px solid var(--line);
  }
  .task-library-card-v86 .task-card-actions{
    justify-content:flex-start;
  }
}


/* v87 — cleaner task catalog cards */
.task-library-card-v87{
  display:block;
  padding:18px;
  cursor:pointer;
  transition:border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.task-library-card-v87:hover{
  border-color:#c8cfdb;
  box-shadow:0 5px 16px rgba(15,23,42,.06);
  transform:translateY(-1px);
}
.task-library-card-v87:focus-visible{
  outline:2px solid var(--primary);
  outline-offset:2px;
}
.task-card-main-v87{
  width:100%;
}
.task-card-main-v87 h3{
  margin:0 0 7px;
  font-size:15px;
}
.task-card-main-v87 .task-description{
  width:100%;
  max-width:none;
  margin:0 0 9px;
  line-height:1.55;
}
.task-card-main-v87 .task-card-author{
  width:100%;
}

.task-card-footer-v87{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:20px;
  margin-top:15px;
  padding-top:14px;
  border-top:1px solid var(--line);
}
.task-card-footer-v87 .task-usage{
  flex:1;
  min-width:0;
  padding:0;
  border:0;
}
.task-card-footer-v87 .task-more-btn{
  flex:0 0 auto;
  align-self:flex-end;
  min-width:74px;
  justify-content:center;
}


/* v88 — task content as a step-by-step viewer */
.assignment-content-card{
  padding-top:18px;
}
.assignment-content-card > .assignment-content-head,
.assignment-content-card > .assignment-source-note{
  display:none!important;
}
.task-stepper-controls{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  margin-bottom:14px;
  padding-bottom:14px;
  border-bottom:1px solid var(--line);
}
.task-stepper-progress{
  display:flex;
  flex-direction:column;
  gap:2px;
}
.task-stepper-progress strong{
  font-size:12px;
}
.task-stepper-progress span{
  color:var(--muted);
  font-size:10px;
}
.task-stepper-dots{
  display:flex;
  align-items:center;
  gap:6px;
}
.task-step-dot{
  width:28px;
  height:28px;
  border:1px solid var(--line);
  border-radius:6px;
  background:#fff;
  color:var(--muted);
  font-size:10px;
  font-weight:750;
  cursor:pointer;
}
.task-step-dot:hover{
  border-color:#bfc6d4;
  color:var(--text);
}
.task-step-dot.active{
  border-color:#c7c8f5;
  background:#eeeefe;
  color:var(--primary);
}
.task-stepper-step{
  margin:0;
  min-height:300px;
  border:0;
  padding:8px 0 4px;
}
.task-stepper-step[hidden]{
  display:none!important;
}
.task-stepper-footer{
  display:grid;
  grid-template-columns:1fr auto 1fr;
  align-items:center;
  gap:12px;
  margin-top:18px;
  padding-top:16px;
  border-top:1px solid var(--line);
}
.task-stepper-footer .btn:first-child{
  justify-self:start;
}
.task-stepper-footer .btn:last-child{
  justify-self:end;
}
.task-stepper-footer .btn{
  display:inline-flex;
  align-items:center;
  gap:6px;
}
.task-stepper-footer-label{
  color:var(--muted);
  font-size:10px;
  font-weight:700;
}

/* Teacher comments attached to a step */
.step-teacher-note,
.catalog-teacher-note{
  margin-top:18px;
}
.step-note-display > strong,
.catalog-note-display strong{
  font-size:10.5px;
}
.catalog-note-display > div{
  flex:1;
}

@media(max-width:720px){
  .task-stepper-controls{
    align-items:flex-start;
    flex-direction:column;
  }
  .task-stepper-dots{
    width:100%;
    overflow-x:auto;
    padding-bottom:2px;
  }
  .task-stepper-footer{
    grid-template-columns:1fr 1fr;
  }
  .task-stepper-footer-label{
    display:none;
  }
}


/* v89 — compact top step pagination + larger task content */
.task-stepper-top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  margin-bottom:18px;
  padding-bottom:14px;
  border-bottom:1px solid var(--line);
}
.task-stepper-progress strong{
  font-size:14px;
  line-height:1.2;
}
.task-step-pagination{
  display:flex;
  align-items:center;
  gap:6px;
}
.task-step-pages{
  display:flex;
  align-items:center;
  gap:5px;
}
.task-step-page,
.task-step-nav-btn{
  height:32px;
  min-width:32px;
  padding:0 8px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border:1px solid var(--line);
  border-radius:6px;
  background:#fff;
  color:var(--muted);
  font-size:11px;
  font-weight:750;
  cursor:pointer;
}
.task-step-nav-btn{
  width:32px;
  padding:0;
}
.task-step-page:hover,
.task-step-nav-btn:hover:not(:disabled){
  border-color:#bfc6d4;
  color:var(--text);
}
.task-step-page.active{
  background:#eeeefe;
  border-color:#c7c8f5;
  color:var(--primary);
}
.task-step-nav-btn:disabled{
  opacity:.4;
  cursor:not-allowed;
}

.task-stepper-step{
  min-height:360px;
  padding:10px 2px 8px;
}
.task-stepper-step .catalog-step-head{
  gap:0;
}
.task-stepper-step .catalog-step-head h3{
  font-size:20px;
  line-height:1.25;
}
.task-stepper-step .catalog-step-head .sub{
  margin-top:4px;
  font-size:12px;
}
.task-stepper-step .catalog-step-body{
  margin-top:20px;
  padding-left:0;
  font-size:13px;
  line-height:1.7;
}
.task-stepper-step .catalog-media-placeholder{
  width:min(420px,100%);
  height:230px;
  margin-bottom:18px;
  font-size:12px;
}
.task-stepper-step .catalog-media-placeholder.wide{
  width:100%;
  height:300px;
}
.task-stepper-step .catalog-media-placeholder .dashicons{
  width:24px;
  height:24px;
  font-size:24px;
}
.task-stepper-step .catalog-code{
  font-size:12px;
  line-height:1.65;
  padding:18px;
}
.task-stepper-step .component-list{
  font-size:13px;
  line-height:1.8;
}

.task-step-actions{
  margin-top:20px;
  padding-top:16px;
  border-top:1px solid var(--line);
}
.task-step-action-buttons{
  display:flex;
  justify-content:flex-end;
  gap:8px;
}
.task-step-comment-panel{
  margin-bottom:12px;
  padding:14px;
  border:1px solid var(--line);
  border-radius:7px;
  background:#fafbfc;
}
.task-step-comment-panel label{
  display:block;
  margin-bottom:7px;
  font-size:11px;
  font-weight:750;
}
.task-step-comment-panel textarea{
  width:100%;
  min-height:96px;
  padding:10px 12px;
  border:1px solid var(--line);
  border-radius:7px;
  background:#fff;
  font:inherit;
  font-size:12px;
  resize:vertical;
}
.task-step-comment-panel-actions{
  display:flex;
  justify-content:flex-end;
  gap:7px;
  margin-top:8px;
}
.task-step-actions-readonly{
  display:flex;
  justify-content:flex-end;
}
.task-step-readonly-note{
  color:var(--muted);
  font-size:10.5px;
}

/* old v88 stepper pieces are intentionally hidden */
.task-stepper-controls,
.task-stepper-footer,
.task-step-dot{
  display:none!important;
}

@media(max-width:720px){
  .task-stepper-top{
    align-items:flex-start;
    flex-direction:column;
  }
  .task-step-pagination{
    width:100%;
  }
  .task-step-pages{
    flex:1;
    overflow-x:auto;
  }
  .task-step-action-buttons{
    flex-direction:column;
  }
  .task-step-action-buttons .btn{
    width:100%;
    justify-content:center;
  }
}


/* v90 — compact task metadata, difficulty scale, history and error reporting */
.assignment-detail-meta{
  gap:10px;
  flex-wrap:wrap;
}
.assignment-meta-author strong{
  color:var(--text);
}
.difficulty-inline{
  display:inline-flex;
  align-items:center;
  gap:7px;
}
.difficulty-inline-label{
  color:var(--muted);
}
.difficulty-meter{
  display:inline-flex;
  align-items:flex-end;
  gap:3px;
  height:16px;
}
.difficulty-meter i{
  display:block;
  width:5px;
  border-radius:2px;
  background:#d9dde7;
}
.difficulty-meter i:nth-child(1){height:6px}
.difficulty-meter i:nth-child(2){height:8px}
.difficulty-meter i:nth-child(3){height:10px}
.difficulty-meter i:nth-child(4){height:12px}
.difficulty-meter i:nth-child(5){height:14px}

.difficulty-inline strong{
  font-size:10.5px;
  color:#4e4ec7;
}

.code-actions{
  display:flex;
  align-items:center;
  gap:8px;
  margin-top:10px;
}
.code-actions .btn{
  display:inline-flex;
  align-items:center;
  gap:6px;
}
.code-actions .dashicons{
  width:15px;
  height:15px;
  font-size:15px;
}

.task-report-error-trigger{
  color:#7b5960;
}
.task-error-modal{
  width:min(620px,100%);
  text-align:left;
}
.task-error-modal h2,
.task-error-intro{
  text-align:center;
}
.confirm-modal-icon.report{
  margin-left:auto;
  margin-right:auto;
  background:#fff3dc;
  color:#9a681d;
}
.task-error-form{
  margin-top:18px;
}
.task-error-form .field{
  margin-bottom:12px;
}
.task-error-form select,
.task-error-form textarea{
  width:100%;
}
.task-error-form textarea{
  min-height:120px;
  padding:10px 12px;
  border:1px solid var(--line);
  border-radius:7px;
  font:inherit;
  font-size:12px;
  resize:vertical;
}
.task-error-feedback{
  margin:10px 0;
  padding:10px 12px;
  border-radius:6px;
  background:#eaf7ef;
  color:#177553;
  font-size:11px;
  text-align:center;
}
.task-error-modal .confirm-modal-actions{
  justify-content:center;
}

.task-history-table{
  min-width:880px;
}
.task-history-table th:nth-child(1),
.task-history-table td:nth-child(1){width:24%}
.task-history-table th:nth-child(2),
.task-history-table td:nth-child(2){width:16%}
.task-history-table th:nth-child(3),
.task-history-table td:nth-child(3){width:17%}
.task-history-table th:nth-child(4),
.task-history-table td:nth-child(4){width:31%}
.task-history-table th:nth-child(5),
.task-history-table td:nth-child(5){width:12%}
.task-history-table .actions-col{
  text-align:right;
}
.archive-status.active-history{
  color:#177553;
}


/* v91 — equal difficulty segments + bottom task actions */
.difficulty-meter{
  display:inline-flex;
  align-items:center;
  gap:4px;
  height:auto;
}
.difficulty-meter i{
  display:block;
  width:18px;
  height:8px !important;
  border-radius:999px;
  background:#d9dde7;
}
.difficulty-meter i.active{
  background:#1b93d2;
}

.current-step-comment-summary{
  margin-top:18px;
  padding:14px 16px;
  border:1px solid var(--line);
  border-radius:7px;
  background:#fafbfc;
}
.current-step-comment-head{
  margin-bottom:5px;
  font-size:11px;
}
.current-step-comment-value{
  color:#4b5568;
  font-size:12px;
  line-height:1.55;
}


.task-step-actions-v91{
  display:grid;
  grid-template-columns:1fr auto;
  align-items:end;
  gap:14px;
}
.task-step-actions-left,
.task-step-actions-right{
  display:flex;
  align-items:center;
  gap:8px;
}
.task-step-actions-right{
  justify-content:flex-end;
}
.task-step-actions-v91 .task-step-comment-panel{
  grid-column:1 / -1;
  grid-row:1;
  margin:0 0 2px;
}
.task-step-actions-v91 .task-step-actions-left,
.task-step-actions-v91 .task-step-actions-right{
  grid-row:2;
}

@media(max-width:720px){
  .task-step-actions-v91{
    grid-template-columns:1fr;
  }
  .task-step-actions-v91 .task-step-comment-panel{
    grid-column:1;
  }
  .task-step-actions-v91 .task-step-actions-left,
  .task-step-actions-v91 .task-step-actions-right{
    grid-row:auto;
    justify-content:stretch;
    flex-direction:column;
  }
  .task-step-actions-v91 .btn{
    width:100%;
    justify-content:center;
  }
}


/* v92 — catalog filtering/sorting controls */
.catalog-toolbar-v92{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:16px;
  margin-bottom:16px;
}
.catalog-toolbar-v92 .catalog-search{
  width:min(360px,100%);
  min-width:260px;
}
.catalog-controls{
  display:flex;
  align-items:flex-end;
  gap:10px;
  margin-left:auto;
}
.catalog-control{
  display:flex;
  flex-direction:column;
  gap:5px;
}
.catalog-control > span{
  color:var(--muted);
  font-size:10px;
  font-weight:700;
}
.catalog-control .select-control{
  min-width:190px;
}
.catalog-control:last-child .select-control{
  min-width:220px;
}
.task-library-card-v87[hidden]{
  display:none!important;
}
.catalog-empty-state{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:5px;
  padding:34px 20px;
  border:1px dashed #cfd5e2;
  border-radius:7px;
  color:var(--muted);
  text-align:center;
}
.catalog-empty-state[hidden]{
  display:none!important;
}
.catalog-empty-state .dashicons{
  width:22px;
  height:22px;
  font-size:22px;
  margin-bottom:3px;
}
.catalog-empty-state strong{
  color:var(--text);
  font-size:12px;
}
.catalog-empty-state span:last-child{
  font-size:10.5px;
}

/* v92 — difficulty scale has no visible verbal descriptor */
.difficulty-inline > strong{
  display:none!important;
}

@media(max-width:900px){
  .catalog-toolbar-v92{
    align-items:stretch;
    flex-direction:column;
  }
  .catalog-toolbar-v92 .catalog-search{
    width:100%;
    min-width:0;
  }
  .catalog-controls{
    margin-left:0;
    width:100%;
    flex-wrap:wrap;
  }
  .catalog-control{
    flex:1 1 220px;
  }
  .catalog-control .select-control,
  .catalog-control:last-child .select-control{
    width:100%;
    min-width:0;
  }
}


/* v93 — inline comment display/edit state */
.current-step-comment-summary-v93{
  margin-top:18px;
  padding:16px;
  border:1px solid var(--line);
  border-radius:7px;
  background:#fafbfc;
}
.current-step-comment-summary-v93 .current-step-comment-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  margin:0 0 10px;
}
.current-step-comment-summary-v93 .current-step-comment-head strong{
  font-size:12px;
}
.current-step-comment-actions{
  display:flex;
  align-items:center;
  gap:7px;
}
.current-step-comment-value{
  min-height:24px;
  color:#394154;
  font-size:12.5px;
  line-height:1.6;
}
.current-step-comment-value.empty{
  color:var(--muted);
}
.current-step-comment-edit textarea{
  width:100%;
  min-height:110px;
  padding:11px 12px;
  border:1px solid var(--line);
  border-radius:7px;
  background:#fff;
  font:inherit;
  font-size:12.5px;
  line-height:1.55;
  resize:vertical;
}
.current-step-comment-edit-actions{
  display:flex;
  justify-content:flex-end;
  gap:7px;
  margin-top:9px;
}
.current-step-comment-view[hidden],
.current-step-comment-edit[hidden]{
  display:none!important;
}
.btn.danger-outline{
  color:#a84b58;
  border-color:#e4c4ca;
  background:#fff;
}
.btn.danger-outline:hover{
  color:#923947;
  border-color:#d9aab4;
  background:#fffafb;
}

.delete-step-comment-modal{
  width:min(530px,100%);
  text-align:center;
}
.delete-step-comment-modal > p{
  max-width:430px;
  margin-left:auto;
  margin-right:auto;
}
.delete-step-comment-note{
  color:var(--muted);
  font-size:11px;
  line-height:1.5;
}
.delete-step-comment-modal .confirm-modal-actions{
  justify-content:center;
}

/* v93 — footer no longer duplicates comment editing */
.task-step-actions-v91 .task-step-comment-panel{
  display:none!important;
}
.task-step-actions-v91 .task-step-actions-left:empty{
  display:none;
}
.task-step-actions-v91:has(.task-step-actions-left:empty){
  grid-template-columns:1fr;
}
.task-step-actions-v91:has(.task-step-actions-left:empty) .task-step-actions-right{
  grid-column:1;
  justify-self:end;
}

@media(max-width:720px){
  .current-step-comment-summary-v93 .current-step-comment-head{
    align-items:flex-start;
    flex-direction:column;
  }
  .current-step-comment-actions{
    width:100%;
    flex-wrap:wrap;
  }
}


/* v94 — unified comment state + catalog controls in one line */
.current-step-comment-value,
.current-step-comment-value.empty{
  color:#394154;
  font-size:12.5px;
  line-height:1.6;
}

.catalog-toolbar-v94{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  margin-bottom:16px;
}
.catalog-toolbar-v94 .catalog-search{
  width:280px;
  min-width:220px;
  flex:0 0 280px;
}
.catalog-inline-tools{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:12px;
  margin-left:auto;
  flex-wrap:nowrap;
}
.catalog-inline-control{
  display:flex;
  align-items:center;
  gap:7px;
  color:var(--muted);
  font-size:10px;
  font-weight:650;
  white-space:nowrap;
}
.catalog-inline-control .select-control{
  width:190px;
  min-width:190px;
}
.catalog-inline-control:last-child .select-control{
  width:230px;
  min-width:230px;
}

/* v92 stacked-label catalog controls are superseded by v94 */
.catalog-toolbar-v94 .catalog-control,
.catalog-toolbar-v94 .catalog-controls{
  display:none!important;
}

@media(max-width:980px){
  .catalog-toolbar-v94{
    align-items:stretch;
    flex-direction:column;
  }
  .catalog-toolbar-v94 .catalog-search{
    width:100%;
    min-width:0;
    flex:0 0 auto;
  }
  .catalog-inline-tools{
    width:100%;
    margin-left:0;
    justify-content:flex-start;
    flex-wrap:wrap;
  }
  .catalog-inline-control{
    flex:1 1 260px;
  }
  .catalog-inline-control .select-control,
  .catalog-inline-control:last-child .select-control{
    width:100%;
    min-width:0;
  }
}


/* v95 — assign task modal */
.assign-task-modal{
  position:relative;
  width:min(720px,calc(100vw - 32px));
  max-height:calc(100vh - 40px);
  overflow:auto;
  border-radius:10px;
  background:#fff;
  box-shadow:0 24px 80px rgba(15,23,42,.28);
  padding:24px;
}
.assign-task-modal-head{padding-right:44px;margin-bottom:20px}
.assign-task-badge{
  display:inline-flex;align-items:center;min-height:24px;padding:0 8px;border-radius:6px;
  background:#eeeefe;color:#4e4ec7;font-size:9px;font-weight:800
}
.assign-task-modal-head h2{margin:10px 0 4px;font-size:21px}
.assign-task-modal-head p{margin:0;color:var(--muted);font-size:11.5px;line-height:1.5}
.assign-task-form{display:flex;flex-direction:column;gap:14px}
.assign-task-section{padding:16px;border:1px solid var(--line);border-radius:8px;background:#fff}
.assign-task-section-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:13px}
.assign-task-section-head>div{display:flex;flex-direction:column;gap:3px}
.assign-task-section-head strong{font-size:12.5px}
.assign-task-section-head span{color:var(--muted);font-size:10.5px}
.assign-group-select{display:flex;align-items:center;gap:10px}
.assign-group-select>span{color:var(--muted);font-size:10px;font-weight:700}
.assign-group-select .select-control{flex:1;min-width:0}
.assign-group-context{
  display:flex;align-items:flex-start;gap:7px;margin-top:10px;padding:9px 10px;border-radius:6px;
  background:#f7f8fb;color:#697386;font-size:10.5px;line-height:1.45
}
.assign-group-context[hidden]{display:none!important}
.assign-group-context .dashicons{width:15px;height:15px;font-size:15px;flex:0 0 15px;margin-top:1px}
.assign-recipient-options{display:grid;grid-template-columns:1fr 1fr;gap:9px}
.assign-recipient-option{
  position:relative;display:grid;grid-template-columns:18px minmax(0,1fr);gap:10px;align-items:flex-start;
  padding:12px;border:1px solid var(--line);border-radius:7px;background:#fff;cursor:pointer
}
.assign-recipient-option:hover{border-color:#c9cfdb}
.assign-recipient-option.selected{border-color:#c7c8f5;background:#f8f8ff}
.assign-recipient-option input{position:absolute;opacity:0;pointer-events:none}
.assign-recipient-radio{
  width:17px;height:17px;border:1.5px solid #b7bfcc;border-radius:50%;background:#fff;
  box-shadow:inset 0 0 0 4px #fff
}
.assign-recipient-option.selected .assign-recipient-radio{border-color:#1b93d2;background:#1b93d2}
.assign-recipient-copy{display:flex;flex-direction:column;gap:3px}
.assign-recipient-copy strong{font-size:11.5px}
.assign-recipient-copy span{color:var(--muted);font-size:10px;line-height:1.4}
.assign-recipient-copy b{color:inherit;font-weight:700}
.assign-whole-group-note{
  display:flex;align-items:flex-start;gap:7px;margin-top:10px;padding:9px 10px;border-radius:6px;
  background:#f7f9fc;color:#667085;font-size:10px;line-height:1.45
}
.assign-whole-group-note[hidden],.assign-students-picker[hidden]{display:none!important}
.assign-whole-group-note .dashicons{width:15px;height:15px;font-size:15px;color:#5875a7}
.assign-students-picker{margin-top:12px;padding-top:12px;border-top:1px solid var(--line)}
.assign-students-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:9px}
.assign-student-search{width:270px;min-width:0}
.assign-student-list{max-height:230px;overflow:auto;border:1px solid var(--line);border-radius:7px;background:#fff}
.assign-student-row{
  display:grid;grid-template-columns:18px 32px minmax(0,1fr);align-items:center;gap:9px;
  min-height:50px;padding:8px 11px;border-bottom:1px solid var(--line);cursor:pointer
}
.assign-student-row:last-child{border-bottom:0}
.assign-student-row:hover{background:#fafbfc}
.assign-student-row[hidden]{display:none!important}
.assign-student-row input{width:16px;height:16px}
.assign-student-name{font-size:11.5px;font-weight:650}
.assign-selected-summary{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-top:9px}
.assign-selected-summary strong{font-size:10.5px}
.assign-selected-summary span{color:var(--muted);font-size:9.5px;text-align:right}
.assign-task-modal-footer{
  display:flex;align-items:center;justify-content:space-between;gap:16px;margin-top:18px;
  padding-top:16px;border-top:1px solid var(--line)
}
.assign-task-summary{display:flex;flex-direction:column;gap:2px}
.assign-task-summary strong{font-size:11.5px}
.assign-task-summary span{color:var(--muted);font-size:10px}
.assign-task-modal-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px}
.assign-task-modal-actions .btn.primary:disabled{opacity:.45;cursor:not-allowed}
@media(max-width:680px){
  .assign-task-modal{padding:18px}
  .assign-recipient-options{grid-template-columns:1fr}
  .assign-students-toolbar,.assign-selected-summary,.assign-task-modal-footer{align-items:stretch;flex-direction:column}
  .assign-student-search{width:100%}
  .assign-selected-summary span{text-align:left}
  .assign-task-modal-actions{width:100%}
  .assign-task-modal-actions .btn{flex:1;justify-content:center}
}


/* v96 — group icons in assignment picker + task actions in topbar */
.assign-group-options{
  display:flex;
  flex-direction:column;
  gap:7px;
}
.assign-group-option{
  position:relative;
  display:grid;
  grid-template-columns:18px 36px minmax(0,1fr) auto;
  align-items:center;
  gap:10px;
  min-height:58px;
  padding:9px 11px;
  border:1px solid var(--line);
  border-radius:7px;
  background:#fff;
  cursor:pointer;
}
.assign-group-option:hover{
  border-color:#c9cfdb;
  background:#fcfcfd;
}
.assign-group-option.selected{
  border-color:#c7c8f5;
  background:#f8f8ff;
}
.assign-group-option.disabled{
  opacity:.62;
  cursor:not-allowed;
  background:#f7f8fa;
}
.assign-group-option > input{
  width:16px;
  height:16px;
  margin:0;
}
.assign-group-option .compact-group-icon{
  width:36px;
  height:36px;
  flex:0 0 36px;
  border-radius:7px;
  font-size:17px;
}
.assign-group-copy{
  display:flex;
  flex-direction:column;
  min-width:0;
  gap:2px;
}
.assign-group-copy strong{
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  font-size:11.5px;
}
.assign-group-copy span{
  color:var(--muted);
  font-size:10px;
}
.assign-group-state{
  justify-self:end;
  padding:4px 6px;
  border-radius:5px;
  font-size:9px;
  font-weight:750;
  white-space:nowrap;
}
.assign-group-state.history{
  background:#f1f2f5;
  color:#6d7585;
}
.assign-group-state.active{
  background:#e7f6ef;
  color:#177553;
}

/* Native group select from v95 is superseded by icon-rich options. */
.assign-group-select{
  display:none!important;
}

/* Task-level actions now live only in the standard topbar action area. */
.assignment-content-card > .task-step-actions-v91:not(.task-step-actions-readonly){
  display:none!important;
}
.task-step-actions-readonly .task-step-actions-right{
  display:none!important;
}

@media(max-width:680px){
  .assign-group-option{
    grid-template-columns:18px 36px minmax(0,1fr);
  }
  .assign-group-state{
    grid-column:3;
    justify-self:start;
  }
}


/* v97 — reviewing one student's realization of an assignment */
.review-student-header{
  padding:18px;
  margin-bottom:16px;
}
.review-student-identity{
  display:flex;
  align-items:center;
  gap:13px;
}
.review-student-copy{
  min-width:0;
}
.review-student-name-row{
  display:flex;
  align-items:center;
  gap:9px;
  flex-wrap:wrap;
}
.review-student-name-row h1{
  margin:0;
  font-size:21px;
}
.review-ready-badge{
  background:#fff0cf;
  color:#96651d;
}
.review-ready-badge.completed{
  background:#e7f6ef;
  color:#177553;
}
.review-student-task{
  display:flex;
  align-items:center;
  gap:6px;
  margin-top:3px;
  color:var(--muted);
  font-size:11px;
}
.review-student-task strong{
  color:var(--text);
}
.review-student-task a{
  color:var(--primary);
  text-decoration:none;
}
.review-progress-summary{
  display:grid;
  grid-template-columns:minmax(260px,1.4fr) repeat(3,minmax(120px,.6fr));
  gap:12px;
  align-items:center;
  margin-top:17px;
  padding-top:15px;
  border-top:1px solid var(--line);
}
.review-progress-main > div:first-child{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom:6px;
}
.review-progress-main span{
  color:var(--muted);
  font-size:10.5px;
}
.review-progress-main strong{
  font-size:12px;
}
.review-progress-track{
  max-width:none;
}
.review-summary-stat{
  display:flex;
  flex-direction:column;
  gap:2px;
  padding-left:13px;
  border-left:1px solid var(--line);
}
.review-summary-stat strong{
  font-size:12px;
}
.review-summary-stat span{
  color:var(--muted);
  font-size:9.5px;
}
.review-ready-note{
  display:flex;
  align-items:center;
  gap:7px;
  margin-top:14px;
  padding:9px 10px;
  border-radius:6px;
  background:#eef8f3;
  color:#38775f;
  font-size:10.5px;
}
.review-ready-note .dashicons{
  width:15px;
  height:15px;
  font-size:15px;
}

.review-section-head{
  margin-bottom:10px;
}
.review-step-list{
  border-top:1px solid var(--line);
}
.review-step-item{
  border-bottom:1px solid var(--line);
}
.review-step-toggle{
  width:100%;
  display:grid;
  grid-template-columns:28px minmax(220px,1fr) auto 20px;
  gap:11px;
  align-items:center;
  padding:13px 0;
  border:0;
  background:transparent;
  text-align:left;
  cursor:pointer;
}
.review-step-toggle:hover .review-step-main strong{
  color:var(--primary);
}
.review-step-state{
  width:26px;
  height:26px;
  display:grid;
  place-items:center;
  border-radius:6px;
  background:#e8f7f0;
  color:#177553;
}
.review-step-state .dashicons{
  width:15px;
  height:15px;
  font-size:15px;
}
.review-step-main{
  display:flex;
  flex-direction:column;
  gap:2px;
}
.review-step-main strong{
  font-size:12px;
}
.review-step-main span{
  color:var(--muted);
  font-size:9.5px;
}
.review-step-activity{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:6px;
  white-space:nowrap;
}
.review-step-activity.muted{
  color:var(--muted);
  font-size:10px;
}
.resolved-problem-label{
  display:inline-flex;
  align-items:center;
  padding:4px 6px;
  border-radius:5px;
  background:#eaf7ef;
  color:#26735a;
  font-size:9px;
  font-weight:750;
}
.review-step-chevron{
  width:16px;
  height:16px;
  font-size:16px;
  color:#8a93a6;
}
.review-step-detail{
  padding:0 0 14px 39px;
}
.review-step-detail[hidden]{
  display:none!important;
}
.review-empty-activity{
  padding:12px 13px;
  border-radius:7px;
  background:#fafbfc;
  color:var(--muted);
  font-size:10.5px;
}
.review-thread{
  padding:14px;
  border:1px solid var(--line);
  border-radius:8px;
  background:#fbfcfe;
}
.review-thread + .review-thread{
  margin-top:10px;
}
.review-thread-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding-bottom:11px;
  border-bottom:1px solid var(--line);
}
.review-thread-head > div{
  display:flex;
  align-items:center;
  gap:8px;
  min-width:0;
}
.review-thread-head strong{
  font-size:11.5px;
}
.review-thread-type{
  display:inline-flex;
  align-items:center;
  padding:4px 6px;
  border-radius:5px;
  font-size:9px;
  font-weight:800;
}
.review-thread-type.problem{
  background:#fff0e8;
  color:#9b5d23;
}
.review-thread-type.comment{
  background:#eef0f4;
  color:#657084;
}
.review-thread-status{
  padding:4px 6px;
  border-radius:5px;
  font-size:9px;
  font-weight:800;
  white-space:nowrap;
}
.review-thread-status.open{
  background:#fff0cf;
  color:#96651d;
}
.review-thread-status.resolved{
  background:#eaf7ef;
  color:#26735a;
}
.review-thread-messages{
  display:flex;
  flex-direction:column;
  gap:0;
}
.review-message{
  padding:11px 0;
  border-bottom:1px solid #e8ebf0;
}
.review-message:last-child{
  border-bottom:0;
}
.review-message-meta{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom:4px;
}
.review-message-meta strong{
  font-size:10.5px;
}
.review-message-meta span{
  color:var(--muted);
  font-size:9px;
}
.review-message p{
  margin:0;
  color:#4b5568;
  font-size:10.8px;
  line-height:1.55;
}
.teacher-message{
  padding-left:12px;
  border-left:2px solid #c9cbf3;
}
.review-thread-actions{
  display:flex;
  justify-content:flex-end;
  gap:7px;
  padding-top:10px;
  border-top:1px solid var(--line);
}
.review-reply-form{
  margin-top:10px;
  padding-top:10px;
  border-top:1px solid var(--line);
}
.review-reply-form[hidden]{
  display:none!important;
}
.review-reply-form textarea{
  width:100%;
  min-height:80px;
  padding:10px 11px;
  border:1px solid var(--line);
  border-radius:7px;
  background:#fff;
  font:inherit;
  font-size:11px;
  resize:vertical;
}
.review-reply-form > div{
  display:flex;
  justify-content:flex-end;
  gap:7px;
  margin-top:7px;
}

.finish-review-modal{
  position:relative;
  width:min(560px,calc(100vw - 32px));
  max-height:calc(100vh - 44px);
  overflow:auto;
  border-radius:10px;
  background:#fff;
  box-shadow:0 24px 80px rgba(15,23,42,.28);
  padding:24px;
}
.finish-review-modal-head{
  text-align:center;
  margin-bottom:18px;
}
.finish-review-badge{
  display:inline-flex;
  padding:5px 8px;
  border-radius:6px;
  background:#e7f6ef;
  color:#177553;
  font-size:9px;
  font-weight:800;
}
.finish-review-modal-head h2{
  margin:10px 0 5px;
  font-size:20px;
}
.finish-review-modal-head p{
  margin:0 auto;
  max-width:440px;
  color:var(--muted);
  font-size:11px;
  line-height:1.5;
}
.finish-review-form .field + .field{
  margin-top:12px;
}
.finish-review-form label span{
  color:var(--muted);
  font-weight:500;
}
.finish-review-form input,
.finish-review-form textarea{
  width:100%;
}
.finish-review-form textarea{
  min-height:105px;
  padding:10px 12px;
  border:1px solid var(--line);
  border-radius:7px;
  font:inherit;
  font-size:11px;
  resize:vertical;
}
.finish-review-modal-actions{
  display:flex;
  justify-content:flex-end;
  gap:8px;
  margin-top:18px;
}

@media(max-width:900px){
  .review-progress-summary{
    grid-template-columns:1fr 1fr;
  }
  .review-progress-main{
    grid-column:1 / -1;
  }
  .review-summary-stat{
    border-left:0;
    padding-left:0;
  }
}
@media(max-width:720px){
  .review-step-toggle{
    grid-template-columns:28px minmax(0,1fr) 18px;
  }
  .review-step-activity{
    grid-column:2;
    justify-content:flex-start;
  }
  .review-step-chevron{
    grid-column:3;
    grid-row:1;
  }
  .review-step-detail{
    padding-left:0;
  }
  .review-thread-head{
    align-items:flex-start;
    flex-direction:column;
  }
  .review-progress-summary{
    grid-template-columns:1fr;
  }
}


/* v98 — larger, more readable student assignment review */
.review-page-v98{
  max-width:1320px;
}

.review-page-v98 .review-student-header{
  padding:24px;
  margin-bottom:20px;
}
.review-page-v98 .review-student-identity{
  gap:16px;
}
.review-page-v98 .student-avatar-lg{
  width:62px;
  height:62px;
  flex-basis:62px;
}
.review-page-v98 .student-avatar-lg .student-avatar-icon{
  font-size:30px;
}
.review-page-v98 .review-student-name-row{
  gap:11px;
}
.review-page-v98 .review-student-name-row h1{
  font-size:26px;
  line-height:1.2;
}
.review-page-v98 .review-ready-badge{
  min-height:25px;
  padding:0 8px;
  display:inline-flex;
  align-items:center;
  font-size:10.5px;
}
.review-page-v98 .review-student-task{
  gap:7px;
  margin-top:6px;
  font-size:12.5px;
}
.review-page-v98 .review-progress-summary{
  grid-template-columns:minmax(320px,1.55fr) repeat(3,minmax(150px,.72fr));
  gap:14px;
  margin-top:22px;
  padding-top:18px;
}
.review-page-v98 .review-progress-main{
  padding-right:8px;
}
.review-page-v98 .review-progress-main > div:first-child{
  margin-bottom:9px;
}
.review-page-v98 .review-progress-main span{
  font-size:12px;
}
.review-page-v98 .review-progress-main strong{
  font-size:17px;
}
.review-page-v98 .review-progress-track{
  height:8px;
}
.review-page-v98 .review-summary-stat{
  min-height:64px;
  justify-content:center;
  gap:4px;
  padding:10px 12px 10px 16px;
  border-left:1px solid var(--line);
}
.review-page-v98 .review-summary-stat strong{
  font-size:16px;
  line-height:1.25;
}
.review-page-v98 .review-summary-stat span{
  font-size:11px;
  line-height:1.35;
}
.review-page-v98 .review-ready-note{
  gap:9px;
  margin-top:18px;
  padding:12px 14px;
  font-size:12px;
  line-height:1.5;
}
.review-page-v98 .review-ready-note .dashicons{
  width:18px;
  height:18px;
  font-size:18px;
}

.review-page-v98 .student-workflow-card{
  padding:22px 24px;
}
.review-page-v98 .review-section-head{
  margin-bottom:14px;
}
.review-page-v98 .review-section-head h2{
  font-size:19px;
}
.review-page-v98 .review-section-head p{
  margin-top:5px;
  font-size:12px;
  line-height:1.5;
}
.review-page-v98 .review-step-list{
  margin-top:4px;
}
.review-page-v98 .review-step-toggle{
  grid-template-columns:34px minmax(260px,1fr) auto 22px;
  gap:14px;
  padding:17px 4px;
}
.review-page-v98 .review-step-state{
  width:32px;
  height:32px;
}
.review-page-v98 .review-step-state .dashicons{
  width:18px;
  height:18px;
  font-size:18px;
}
.review-page-v98 .review-step-main{
  gap:4px;
}
.review-page-v98 .review-step-main strong{
  font-size:14.5px;
  line-height:1.3;
}
.review-page-v98 .review-step-main span{
  font-size:11px;
  line-height:1.35;
}
.review-page-v98 .review-step-activity{
  gap:8px;
}
.review-page-v98 .review-step-activity.muted{
  font-size:11px;
}
.review-page-v98 .problem-label,
.review-page-v98 .resolved-problem-label,
.review-page-v98 .message-count-link{
  font-size:10.5px;
}
.review-page-v98 .problem-label,
.review-page-v98 .resolved-problem-label{
  padding:5px 7px;
}
.review-page-v98 .review-step-chevron{
  width:18px;
  height:18px;
  font-size:18px;
}
.review-page-v98 .review-step-detail{
  padding:0 0 18px 48px;
}
.review-page-v98 .review-empty-activity{
  padding:14px 16px;
  font-size:11.5px;
  line-height:1.5;
}

.review-page-v98 .review-thread{
  padding:18px;
  border-radius:8px;
}
.review-page-v98 .review-thread-head{
  gap:14px;
  padding-bottom:14px;
}
.review-page-v98 .review-thread-head > div{
  gap:9px;
}
.review-page-v98 .review-thread-head strong{
  font-size:13.5px;
  line-height:1.35;
}
.review-page-v98 .review-thread-type,
.review-page-v98 .review-thread-status{
  padding:5px 7px;
  font-size:10px;
}
.review-page-v98 .review-message{
  padding:15px 0;
}
.review-page-v98 .review-message-meta{
  margin-bottom:7px;
}
.review-page-v98 .review-message-meta strong{
  font-size:12px;
}
.review-page-v98 .review-message-meta span{
  font-size:10.5px;
}
.review-page-v98 .review-message p{
  font-size:12.5px;
  line-height:1.65;
}
.review-page-v98 .teacher-message{
  padding-left:16px;
  border-left-width:3px;
}
.review-page-v98 .review-thread-actions{
  gap:8px;
  padding-top:13px;
}
.review-page-v98 .review-thread-actions .btn.small,
.review-page-v98 .review-reply-form .btn.small{
  min-height:34px;
  padding:7px 11px;
  font-size:11px;
}
.review-page-v98 .review-reply-form{
  margin-top:13px;
  padding-top:13px;
}
.review-page-v98 .review-reply-form textarea{
  min-height:104px;
  padding:12px 13px;
  font-size:12.5px;
  line-height:1.55;
}

.review-page-v98 + .modal-overlay .finish-review-modal,
.finish-review-modal{
  width:min(620px,calc(100vw - 32px));
  padding:28px;
}
.finish-review-badge{
  font-size:10px;
  padding:6px 9px;
}
.finish-review-modal-head h2{
  font-size:22px;
}
.finish-review-modal-head p{
  font-size:12px;
  line-height:1.55;
}
.finish-review-form label{
  font-size:11.5px;
}
.finish-review-form input,
.finish-review-form textarea{
  font-size:12.5px;
}
.finish-review-form textarea{
  min-height:120px;
}

@media(max-width:1050px){
  .review-page-v98 .review-progress-summary{
    grid-template-columns:1fr 1fr;
  }
  .review-page-v98 .review-progress-main{
    grid-column:1 / -1;
    padding-right:0;
  }
  .review-page-v98 .review-summary-stat{
    border-left:0;
    padding-left:0;
  }
}
@media(max-width:760px){
  .review-page-v98 .review-student-header,
  .review-page-v98 .student-workflow-card{
    padding:18px;
  }
  .review-page-v98 .review-student-name-row h1{
    font-size:23px;
  }
  .review-page-v98 .review-progress-summary{
    grid-template-columns:1fr;
  }
  .review-page-v98 .review-step-toggle{
    grid-template-columns:32px minmax(0,1fr) 20px;
    gap:11px;
    padding:15px 0;
  }
  .review-page-v98 .review-step-activity{
    grid-column:2;
    justify-content:flex-start;
    flex-wrap:wrap;
    white-space:normal;
  }
  .review-page-v98 .review-step-chevron{
    grid-column:3;
    grid-row:1;
  }
  .review-page-v98 .review-step-detail{
    padding-left:0;
  }
}


/* v99 — student step conversation: simple linear SMS-style thread */
.student-task-v99 .student-step-conversation-section{
  margin-top:22px;
  padding-top:22px;
  border-top:1px solid var(--line);
}
.student-conversation-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:16px;
  margin-bottom:14px;
}
.student-conversation-head h2{
  margin:0;
  font-size:17px;
}
.student-conversation-head p{
  margin:5px 0 0;
  color:var(--muted);
  font-size:11.5px;
  line-height:1.5;
}
.student-conversation-count{
  flex:0 0 auto;
  color:var(--muted);
  font-size:10.5px;
  font-weight:650;
  white-space:nowrap;
}

.student-conversation{
  display:flex;
  flex-direction:column;
  gap:10px;
  min-height:180px;
  max-height:430px;
  overflow:auto;
  padding:14px;
  border:1px solid var(--line);
  border-radius:9px;
  background:#f7f8fb;
}
.student-message-row{
  display:flex;
  width:100%;
}
.student-message-row.other{
  justify-content:flex-start;
}
.student-message-row.mine{
  justify-content:flex-end;
}
.student-message-bubble{
  width:fit-content;
  max-width:min(76%,620px);
  padding:10px 12px 8px;
  border-radius:13px;
  box-shadow:0 1px 2px rgba(15,23,42,.04);
}
.student-message-bubble.teacher{
  border:1px solid #dfe3ea;
  border-bottom-left-radius:5px;
  background:#fff;
}
.student-message-bubble.mine{
  border:1px solid #d9daf7;
  border-bottom-right-radius:5px;
  background:#eeeeff;
}
.student-message-bubble.mine.problem{
  border-color:#ebc991;
  background:#fff8e9;
}
.student-message-author{
  margin-bottom:4px;
  color:#596275;
  font-size:10px;
  font-weight:800;
}
.student-message-bubble p{
  margin:0;
  color:#323a4c;
  font-size:12.5px;
  line-height:1.55;
}
.student-message-time{
  margin-top:5px;
  color:#8a93a6;
  font-size:9.5px;
  text-align:right;
}
.student-message-problem-label{
  display:flex;
  align-items:center;
  gap:5px;
  margin-bottom:5px;
  color:#986018;
  font-size:9.5px;
  font-weight:800;
}
.student-message-problem-label .dashicons{
  width:13px;
  height:13px;
  font-size:13px;
}

.student-conversation-composer{
  margin-top:12px;
}
.student-conversation-composer > label{
  display:block;
  margin-bottom:6px;
  font-size:11.5px;
  font-weight:750;
}
.student-conversation-composer textarea{
  width:100%;
  min-height:92px;
  padding:11px 12px;
  border:1px solid var(--line);
  border-radius:7px;
  background:#fff;
  color:var(--text);
  font:inherit;
  font-size:12.5px;
  line-height:1.5;
  resize:vertical;
  outline:none;
}
.student-conversation-composer textarea:focus{
  border-color:#bfc2ef;
  box-shadow:0 0 0 3px rgba(91,91,214,.08);
}
.student-conversation-compose-actions{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  margin-top:9px;
}
.student-help-toggle{
  position:relative;
  display:flex;
  align-items:flex-start;
  gap:9px;
  cursor:pointer;
}
.student-help-toggle input{
  position:absolute;
  opacity:0;
  pointer-events:none;
}
.student-help-check{
  width:18px;
  height:18px;
  flex:0 0 18px;
  border:1px solid #c6ccd8;
  border-radius:5px;
  background:#fff;
  position:relative;
}
.student-help-toggle input:checked + .student-help-check{
  border-color:#d6a755;
  background:#fff5df;
}
.student-help-toggle input:checked + .student-help-check::after{
  content:"✓";
  position:absolute;
  inset:0;
  display:grid;
  place-items:center;
  color:#9a681d;
  font-size:12px;
  font-weight:900;
}
.student-help-toggle > span:last-child{
  display:flex;
  flex-direction:column;
  gap:2px;
}
.student-help-toggle strong{
  color:#4a4f5c;
  font-size:10.8px;
}
.student-help-toggle small{
  color:var(--muted);
  font-size:9.5px;
  line-height:1.35;
}
.student-step-main-actions{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin-top:20px;
  padding-top:16px;
  border-top:1px solid var(--line);
}

@media(max-width:760px){
  .student-conversation-head{
    flex-direction:column;
  }
  .student-message-bubble{
    max-width:88%;
  }
  .student-conversation-compose-actions,
  .student-step-main-actions{
    align-items:stretch;
    flex-direction:column;
  }
  .student-conversation-compose-actions .btn,
  .student-step-main-actions .btn{
    width:100%;
    justify-content:center;
  }
}


/* v100 — teacher review: one linear SMS-style conversation per step */
.review-page-v98 .help-request-count{
  display:inline-flex;
  align-items:center;
  padding:5px 7px;
  border-radius:5px;
  background:#fff3dc;
  color:#96651d;
  font-size:10.5px;
  font-weight:750;
  white-space:nowrap;
}

.review-page-v98 .teacher-step-conversation{
  padding:16px;
  border:1px solid var(--line);
  border-radius:9px;
  background:#f7f8fb;
}

.review-page-v98 .teacher-conversation-messages{
  display:flex;
  flex-direction:column;
  gap:10px;
  max-height:440px;
  overflow:auto;
}

.review-page-v98 .teacher-conversation-empty{
  padding:14px 16px;
  border:1px dashed #d6dbe4;
  border-radius:7px;
  background:#fff;
  color:var(--muted);
  font-size:11.5px;
}

.review-page-v98 .teacher-message-row{
  display:flex;
  width:100%;
}

.review-page-v98 .teacher-message-row.other{
  justify-content:flex-start;
}

.review-page-v98 .teacher-message-row.mine{
  justify-content:flex-end;
}

.review-page-v98 .teacher-message-bubble{
  width:fit-content;
  max-width:min(76%,680px);
  padding:11px 13px 9px;
  border-radius:13px;
  box-shadow:0 1px 2px rgba(15,23,42,.04);
}

.review-page-v98 .teacher-message-bubble.student{
  border:1px solid #dfe3ea;
  border-bottom-left-radius:5px;
  background:#fff;
}

.review-page-v98 .teacher-message-bubble.mine{
  border:1px solid #d9daf7;
  border-bottom-right-radius:5px;
  background:#eeeeff;
}

.review-page-v98 .teacher-message-bubble.student.help-request{
  border-color:#ebc991;
  background:#fff8e9;
}

.review-page-v98 .teacher-message-author{
  margin-bottom:5px;
  color:#596275;
  font-size:10.5px;
  font-weight:800;
}

.review-page-v98 .teacher-message-bubble p{
  margin:0;
  color:#323a4c;
  font-size:12.5px;
  line-height:1.6;
}

.review-page-v98 .teacher-message-time{
  margin-top:6px;
  color:#8a93a6;
  font-size:9.5px;
  text-align:right;
}

.review-page-v98 .teacher-message-help-label{
  display:flex;
  align-items:center;
  gap:5px;
  margin-bottom:6px;
  color:#986018;
  font-size:9.5px;
  font-weight:800;
}

.review-page-v98 .teacher-message-help-label .dashicons{
  width:13px;
  height:13px;
  font-size:13px;
}

.review-page-v98 .teacher-conversation-composer{
  margin-top:14px;
  padding-top:14px;
  border-top:1px solid var(--line);
}

.review-page-v98 .teacher-conversation-composer label{
  display:block;
  margin-bottom:6px;
  font-size:11.5px;
  font-weight:750;
}

.review-page-v98 .teacher-conversation-composer textarea{
  width:100%;
  min-height:92px;
  padding:11px 12px;
  border:1px solid var(--line);
  border-radius:7px;
  background:#fff;
  color:var(--text);
  font:inherit;
  font-size:12.5px;
  line-height:1.5;
  resize:vertical;
  outline:none;
}

.review-page-v98 .teacher-conversation-composer textarea:focus{
  border-color:#bfc2ef;
  box-shadow:0 0 0 3px rgba(91,91,214,.08);
}

.review-page-v98 .teacher-conversation-compose-actions{
  display:flex;
  justify-content:flex-end;
  margin-top:8px;
}

/* Old v97 problem/thread workflow is no longer used in the teacher review. */
.review-page-v98 .review-thread,
.review-page-v98 .review-thread-status,
.review-page-v98 .review-thread-type,
.review-page-v98 .review-thread-actions,
.review-page-v98 .review-reply-form,
.review-page-v98 .resolved-problem-label{
  display:none!important;
}

@media(max-width:760px){
  .review-page-v98 .teacher-message-bubble{
    max-width:88%;
  }
}


/* v101 — tighter message geometry + messenger-style own messages */
.review-page-v98 .teacher-step-conversation{
  border-radius:6px;
}

.review-page-v98 .teacher-conversation-empty{
  border-radius:5px;
}

.review-page-v98 .teacher-message-bubble{
  border-radius:8px;
}

.review-page-v98 .teacher-message-bubble.student{
  border-bottom-left-radius:3px;
}

.review-page-v98 .teacher-message-bubble.mine{
  border-color:#4e4ec7;
  border-bottom-right-radius:3px;
  background:#4e4ec7;
}





.review-page-v98 .teacher-message-bubble.student.help-request{
  border-color:#e7bf7d;
  background:#fff8e9;
}

.review-page-v98 .teacher-message-footer{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:10px;
  margin-top:7px;
  min-height:16px;
}

.review-page-v98 .teacher-message-bubble.help-request .teacher-message-footer{
  justify-content:space-between;
}

.review-page-v98 .teacher-message-footer .teacher-message-time{
  margin-top:0;
}

.review-page-v98 .teacher-message-help-label{
  margin:0;
  padding:0;
  font-size:9.5px;
  line-height:1;
}

.review-page-v98 .teacher-message-help-label .dashicons{
  width:12px;
  height:12px;
  font-size:12px;
}

.review-page-v98 .teacher-conversation-composer textarea{
  border-radius:5px;
}


/* v102 — review hierarchy, navigation-black chat, terminology polish */

/* Teacher's own messages use the sidebar/nav black, not the CTA color. */
.review-page-v98 .teacher-message-bubble.mine{
  border-color:#171a2b;
  background:#171a2b;
}

.review-page-v98 .teacher-message-bubble.mine .teacher-message-time{
  color:rgba(255,255,255,.72);
}

/* Student identity must remain legible on both regular and help-request bubbles. */
.review-page-v98 .teacher-message-bubble.student .teacher-message-author,
.review-page-v98 .teacher-message-bubble.student.help-request .teacher-message-author{
  color:#172033;
  font-weight:800;
}

/* Top review blocks were still too small. */
.review-page-v98 .review-student-name-row h1{
  font-size:29px;
}
.review-page-v98 .review-ready-badge{
  min-height:28px;
  padding:0 9px;
  font-size:11.5px;
}
.review-page-v98 .review-student-task{
  margin-top:7px;
  font-size:14px;
}
.review-page-v98 .review-progress-main span{
  font-size:13.5px;
}
.review-page-v98 .review-progress-main strong{
  font-size:20px;
}
.review-page-v98 .review-summary-stat strong{
  font-size:19px;
}
.review-page-v98 .review-summary-stat span{
  font-size:12.5px;
}
.review-page-v98 .review-ready-note{
  font-size:13.5px;
}
.review-page-v98 .review-section-head h2{
  font-size:20px;
}
.review-page-v98 .review-section-head p{
  font-size:13px;
}


/* v103 — simplify groups, calmer actions, membership terminology */

/* Create-group helper belongs to the center of the modal. */
.create-group-note.centered-note{
  text-align:center;
  max-width:420px;
  margin-left:auto;
  margin-right:auto;
}

/* Portal buttons: one calm neutral system + subtle hover.
   Primary remains reserved for the main CTA in a context. */
.btn{
  transition:background-color .14s ease,border-color .14s ease,color .14s ease,transform .14s ease;
}
.btn:not(.primary):not(.danger):not(.danger-outline):hover{
  background:#f5f6f8;
  border-color:#c9cfda;
  color:#252d3d;
  transform:translateY(-1px);
}

/* Student/group row actions should not become a rainbow of semantic colors. */
.students-card .student-row-actions .btn,
.pending-global-students-table .student-row-actions .btn,
.pending-group-students-table .student-row-actions .btn,
.students-card .remove-from-group-btn,
.students-card .student-reject-btn{
  background:#fff;
  border-color:var(--line);
  color:var(--text);
}
.students-card .student-row-actions .btn:hover,
.pending-global-students-table .student-row-actions .btn:hover,
.pending-group-students-table .student-row-actions .btn:hover,
.students-card .remove-from-group-btn:hover,
.students-card .student-reject-btn:hover{
  background:#f5f6f8;
  border-color:#c9cfda;
  color:#252d3d;
}

/* Only the bulk accept action stays visually emphasized. */
.pending-bulk-footer .btn.primary,
.global-pending-bulk-footer .btn.primary{
  background:var(--primary);
  border-color:var(--primary);
  color:#fff;
}

/* Group student table is intentionally simple: identity / task counter / actions. */
.simple-group-students-table{
  width:100%;
  table-layout:fixed;
}
.simple-group-students-table th:nth-child(1),
.simple-group-students-table td:nth-child(1){
  width:44%;
}
.simple-group-students-table th:nth-child(2),
.simple-group-students-table td:nth-child(2){
  width:22%;
}
.simple-group-students-table th:nth-child(3),
.simple-group-students-table td:nth-child(3){
  width:34%;
  text-align:right;
}
.group-task-counter{
  display:flex;
  flex-direction:column;
  gap:2px;
}

.group-task-counter span{
  color:var(--muted);
  font-size:9.5px;
}
.simple-group-students-table .student-row-actions{
  justify-content:flex-end;
  flex-wrap:nowrap;
}

/* Dashboard notification actions are small secondary links, not extra CTAs. */
.notification-item{
  align-items:center;
}
.notification-action{
  flex:0 0 auto;
  white-space:nowrap;
}

/* Local group task routes are retained only as compatibility redirects. */
.redirect-card{
  max-width:640px;
  margin:40px auto;
  text-align:center;
}
.redirect-card h2{
  margin:0 0 8px;
}
.redirect-card p{
  margin:0 0 16px;
  color:var(--muted);
}


/* v104 — task alerts + simplified assignment navigation */
.tasks-review-alert{
  display:flex;
  align-items:center;
  gap:10px;
  margin:2px 0 16px;
  padding:11px 13px;
  border:1px solid #dedff3;
  border-radius:6px;
  background:#f8f8ff;
}
.tasks-review-alert-icon{
  width:30px;
  height:30px;
  flex:0 0 30px;
  display:grid;
  place-items:center;
  border-radius:5px;
  background:#ececfd;
  color:#5656c7;
}
.tasks-review-alert-icon .dashicons{
  width:16px;
  height:16px;
  font-size:16px;
}
.tasks-review-alert-copy{
  display:flex;
  flex-direction:column;
  gap:2px;
}
.tasks-review-alert-copy strong{
  font-size:11.5px;
}
.tasks-review-alert-copy span{
  color:var(--muted);
  font-size:10px;
}

.assignment-detail-group{
  display:inline-flex;
  align-items:center;
  gap:8px;
  margin-top:10px;
  color:inherit;
  text-decoration:none;
}
.assignment-detail-group:hover .assignment-detail-group-copy strong{
  color:var(--primary);
}
.assignment-detail-group-copy{
  display:flex;
  flex-direction:column;
  gap:1px;
}
.assignment-detail-group-copy small{
  color:var(--muted);
  font-size:9.5px;
}
.assignment-detail-group-copy strong{
  color:var(--text);
  font-size:11.5px;
}
.assignment-detail-group .compact-group-icon{
  width:30px;
  height:30px;
  flex-basis:30px;
  border-radius:6px;
  font-size:14px;
}

/* Cancellation is an ordinary secondary action in the topbar.
   The destructive styling remains only in the confirmation modal. */
.cancel-assignment-trigger,
.cancel-assignment-trigger:hover{
  color:var(--text);
  border-color:var(--line);
  background:#fff;
}
.cancel-assignment-trigger:hover{
  background:#f5f6f8;
  border-color:#c9cfda;
  transform:translateY(-1px);
}

/* No local assignment submenu in the simplified flow. */
.assignment-detail-tabs{
  display:none!important;
}


/* v106 — student problem status in assignment listing */
.status-problem .student-status-title{
  color:#b42318;
}
.status-problem-dot{
  width:8px;
  height:8px;
  flex:0 0 8px;
  border-radius:50%;
  background:#d92d20;
}


/* v107 — group view/settings cleanup */

/* Pending-membership callout must not touch the students card. */
.content > .callout + .students-card{
  margin-top:16px;
}

/* Task-counter explanation belongs to the table header. */
.table-head-stack{
  display:flex;
  flex-direction:column;
  gap:2px;
}
.table-head-title{
  display:block;
}
.table-head-sub{
  display:block;
  color:var(--muted);
  font-size:9px;
  font-weight:500;
  line-height:1.25;
  text-transform:none;
  letter-spacing:0;
}
.group-task-counter{
  display:block;
}
.group-task-counter strong{
  font-size:13px;
}

/* Group settings: one calm vertical flow. */
.group-settings-grid.group-settings-single-column,
.group-settings-grid.archived-settings-grid.group-settings-single-column{
  display:flex;
  flex-direction:column;
  gap:16px;
  align-items:stretch;
}
.group-settings-single-column > .section-card{
  width:100%;
  align-self:stretch;
}
.group-settings-single-column .danger-zone{
  grid-column:auto;
}

/* Full-width appearance card: keep the choice cells compact and even. */
.group-settings-single-column .icon-choice-grid,
.group-settings-single-column .color-choice-grid{
  grid-template-columns:repeat(15,minmax(0,1fr));
}

/* Hover changes color only — no physical movement anywhere on buttons. */
.btn,
.icon-choice,
.color-choice{
  transition:background-color .14s ease,border-color .14s ease,color .14s ease,box-shadow .14s ease;
}
.btn:hover,
.btn:not(.primary):not(.danger):not(.danger-outline):hover,
.cancel-assignment-trigger:hover,
.icon-choice:hover,
.color-choice:hover{
  transform:none!important;
}

/* Student avatars should also remain spatially stable on hover. */
.student-identity-link:hover .student-avatar{
  transform:none!important;
}

@media(max-width:1150px){
  .group-settings-single-column .icon-choice-grid,
  .group-settings-single-column .color-choice-grid{
    grid-template-columns:repeat(10,minmax(0,1fr));
  }
}
@media(max-width:760px){
  .group-settings-single-column .icon-choice-grid,
  .group-settings-single-column .color-choice-grid{
    grid-template-columns:repeat(6,minmax(0,1fr));
  }
}


/* v108 — group labels, pending view and readable settings */

/* Table header is one typographic level, no nested micro-caption. */
.simple-group-students-table .table-head-stack{
  display:contents;
}
.simple-group-students-table .table-head-sub{
  font-size:inherit;
  font-weight:inherit;
  color:inherit;
  text-transform:inherit;
  letter-spacing:inherit;
}

/* Pending alert belongs to the "Wszyscy" view only. */
#groupPendingCallout[hidden]{
  display:none!important;
}

/* Alert action: stable, intentional hover. */
.callout-action .attention-btn{
  background:#9a681d;
  border-color:#9a681d;
  color:#fff;
  transform:none!important;
}
.callout-action .attention-btn:hover{
  background:#835817;
  border-color:#835817;
  color:#fff;
  transform:none!important;
  box-shadow:none;
}

/* Group settings are application UI, not breadcrumb-scale typography. */
.group-settings-single-column .section-head h2{
  font-size:17px;
}
.group-settings-single-column .settings-copy{
  font-size:12.5px;
  line-height:1.6;
}
.group-settings-single-column .detail-list dt{
  font-size:12px;
}
.group-settings-single-column .detail-list dd{
  font-size:13px;
}
.group-settings-single-column .field label{
  font-size:12.5px;
}
.group-settings-single-column .field input,
.group-settings-single-column .field select,
.group-settings-single-column .field textarea{
  font-size:12.5px;
}
.group-settings-single-column .group-settings-avatar-row strong,
.group-settings-single-column .student-avatar-state strong{
  font-size:13px;
}
.group-settings-single-column .group-settings-avatar-row .sub,
.group-settings-single-column .student-avatar-state .sub{
  font-size:11.5px;
}
.group-settings-single-column .appearance-picker-title > span{
  font-size:12.5px;
}
.group-settings-single-column .appearance-picker-title small{
  font-size:11px;
}
.group-settings-single-column .custom-icon-label{
  font-size:12px;
}
.group-settings-single-column .custom-icon-upload input[type=file]{
  font-size:11.5px;
}
.group-settings-single-column .custom-icon-upload .help{
  font-size:11px;
}
.group-settings-single-column .settings-link-box span{
  font-size:11px;
}
.group-settings-single-column .settings-link-box code{
  font-size:12px;
}
.group-settings-single-column .enrollment-status{
  font-size:11.5px;
}
.group-settings-single-column .btn{
  font-size:11.5px;
}


/* v109 — Moje grupy headers + cleaner group spacing */

/* Stable spacing below breadcrumbs in both group student views. */
.group-view-stack{
  display:flex;
  flex-direction:column;
  gap:16px;
}
.group-view-stack > .group-membership-callout,
.group-view-stack > .students-card{
  margin:0;
}
.group-membership-callout{
  align-items:center;
  padding-top:13px;
  padding-bottom:13px;
}
.group-membership-callout .announcement-icon,
.group-membership-callout .callout-action{
  align-self:center;
}
.group-membership-callout[hidden]{
  display:none!important;
}

/* Moje grupy: readable table headers without turning the rows into a heavy table. */
.groups-table-like{
  width:100%;
}
.groups-table-head,
.group-list-grid-row{
  display:grid;
  grid-template-columns:minmax(360px,1fr) minmax(190px,.45fr) 120px;
  gap:18px;
  align-items:center;
}
.groups-table-head{
  min-height:34px;
  padding:0 0 8px;
  border-bottom:1px solid var(--line);
  color:var(--muted);
  font-size:10px;
  font-weight:750;
  text-transform:uppercase;
  letter-spacing:.025em;
}
.groups-table-head.archived,
.group-list-grid-row.archived{
  grid-template-columns:minmax(360px,1fr) minmax(260px,auto);
}
.groups-table-head .actions-col{
  text-align:right;
}
.group-list-grid-row{
  min-height:70px;
  padding:12px 0;
  border-bottom:1px solid var(--line);
  cursor:pointer;
}
.group-list-grid-row:last-child{
  border-bottom:0;
}
.group-list-grid-row:hover{
  background:#fafbfc;
}
.group-name-cell{
  display:flex;
  align-items:center;
  gap:11px;
  min-width:0;
}
.group-name-copy{
  min-width:0;
}
.group-name-copy .list-title{
  font-size:13px;
  font-weight:700;
}
.group-name-copy .list-meta{
  margin-top:4px;
  color:var(--muted);
  font-size:10.5px;
}
.group-status-cell{
  min-width:0;
}
.group-status-empty{
  color:#a0a7b4;
  font-size:12px;
}
.group-row-actions{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:7px;
}
.group-row-actions .btn{
  white-space:nowrap;
}
.groups-table-like .attention-status{
  font-size:11px;
}

@media(max-width:800px){
  .groups-table-head{
    display:none;
  }
  .group-list-grid-row,
  .groups-table-head.archived,
  .group-list-grid-row.archived{
    grid-template-columns:1fr;
    gap:8px;
  }
  .group-status-cell,
  .group-row-actions{
    padding-left:45px;
  }
  .group-row-actions{
    justify-content:flex-start;
  }
}


/* v111 — restore student search and sorting in group view */
.students-card .students-head{
  justify-content:space-between!important;
  gap:18px;
}
.group-students-head-tools{
  display:flex;
  align-items:center;
  gap:10px;
  margin-left:auto;
}
.group-students-search{
  display:flex;
  align-items:center;
  gap:7px;
  min-width:230px;
  min-height:34px;
  padding:0 10px;
  border:1px solid var(--line);
  border-radius:6px;
  background:#fff;
}
.group-students-search .dashicons{
  width:15px;
  height:15px;
  font-size:15px;
  color:#8a93a6;
}
.group-students-search input{
  width:100%;
  min-width:0;
  border:0;
  outline:0;
  background:transparent;
  color:var(--text);
  font:inherit;
  font-size:11.5px;
}
.group-students-search input::placeholder{
  color:#9aa3b2;
}
.group-students-sort{
  display:flex;
  align-items:center;
  gap:7px;
  color:var(--muted);
  font-size:10.5px;
  white-space:nowrap;
}
.group-students-sort .select-control{
  min-width:165px;
}

@media(max-width:900px){
  .students-card .students-head{
    align-items:flex-start;
    flex-direction:column;
  }
  .group-students-head-tools{
    width:100%;
    margin-left:0;
  }
  .group-students-search{
    flex:1;
  }
}
@media(max-width:620px){
  .group-students-head-tools{
    align-items:stretch;
    flex-direction:column;
  }
  .group-students-search,
  .group-students-sort,
  .group-students-sort .select-control{
    width:100%;
  }
  .group-students-sort{
    align-items:flex-start;
    flex-direction:column;
  }
}


/* v113 — group member list without task data */
.simple-group-students-table th:nth-child(1),
.simple-group-students-table td:nth-child(1){
  width:62%;
}
.simple-group-students-table th:nth-child(2),
.simple-group-students-table td:nth-child(2){
  width:38%;
  text-align:right;
}
.simple-group-students-table th:nth-child(3),
.simple-group-students-table td:nth-child(3){
  width:auto;
}


/* v114 — group-scoped teacher student architecture */

/* Entire accepted member row opens student details. */
#groupStudentsTable tbody tr.group-member-clickable{
  cursor:pointer;
}
#groupStudentsTable tbody tr.group-member-clickable:hover{
  background:#fafbfc;
}
#groupStudentsTable tbody tr.group-member-clickable:focus-visible{
  outline:2px solid var(--primary);
  outline-offset:-2px;
}
.student-identity-static{
  display:block;
  color:inherit;
}
.group-member-clickable:hover .student-list-copy .name{
  color:var(--primary);
}
.group-member-clickable .student-row-actions{
  justify-content:flex-end;
}

/* Group-scoped student page: one vertical page, no second-level tabs. */
.student-group-detail-page{
  display:flex;
  flex-direction:column;
  gap:16px;
}
.student-group-profile{
  margin-bottom:0;
}
.student-group-summary{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:10px;
}
.student-group-summary-item{
  padding:13px 14px;
  border:1px solid var(--line);
  border-radius:7px;
  background:#fff;
}
.student-group-summary-item span{
  display:block;
  color:var(--muted);
  font-size:10.5px;
}
.student-group-summary-item strong{
  display:block;
  margin-top:5px;
  font-size:21px;
}
.student-group-summary-item.attention strong{
  color:#9a681d;
}
.student-group-summary-item .summary-text-value{
  font-size:13px;
  line-height:1.35;
}
.student-group-tasks-table{
  min-width:760px;
}
.student-group-tasks-table th:nth-child(1),
.student-group-tasks-table td:nth-child(1){width:34%}
.student-group-tasks-table th:nth-child(2),
.student-group-tasks-table td:nth-child(2){width:24%}
.student-group-tasks-table th:nth-child(3),
.student-group-tasks-table td:nth-child(3){width:26%}
.student-group-tasks-table th:nth-child(4),
.student-group-tasks-table td:nth-child(4){width:16%;text-align:right}
.context-note{
  margin:12px 0 0;
  color:var(--muted);
  font-size:10.5px;
  line-height:1.5;
}
.student-account-context-card .detail-list{
  margin-top:0;
}
.remove-from-group-detail-btn{
  color:var(--text);
  border-color:var(--line);
  background:#fff;
}
.remove-from-group-detail-btn:hover{
  color:#8f3f4c;
  border-color:#dcaeb7;
  background:#fff8f9;
  transform:none!important;
}

@media(max-width:900px){
  .student-group-summary{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}
@media(max-width:560px){
  .student-group-summary{
    grid-template-columns:1fr;
  }
}


/* v116 — Moje grupy: animated per-row quick actions */
.group-row-actions{
  position:relative;
  overflow:visible;
}

.group-quick-actions-toggle,
.group-quick-action{
  width:34px;
  height:34px;
  display:inline-grid;
  place-items:center;
  padding:0;
  border:1px solid var(--line);
  border-radius:6px;
  background:#fff;
  color:#606a7c;
  cursor:pointer;
  text-decoration:none;
  box-sizing:border-box;
  transition:background-color .14s ease,border-color .14s ease,color .14s ease,opacity .18s ease,transform .22s ease;
}
.group-quick-actions-toggle:hover,
.group-quick-action:hover{
  background:#f5f6f8;
  border-color:#c9cfda;
  color:var(--text);
  transform:none;
}
.group-quick-actions-toggle{
  margin-right:0;
}
.group-quick-actions-dots{
  display:block;
  margin-top:-4px;
  font-size:23px;
  line-height:1;
  letter-spacing:1px;
}
.group-quick-actions-panel{
  position:absolute;
  top:50%;
  right:calc(100% + 7px);
  z-index:6;
  display:flex;
  align-items:center;
  gap:6px;
  padding:0;
  opacity:0;
  visibility:hidden;
  pointer-events:none;
  transform:translateY(calc(-50% - 12px));
  transition:opacity .18s ease,transform .22s cubic-bezier(.2,.7,.2,1),visibility 0s linear .22s;
}
.group-quick-actions-panel .group-quick-action{
  opacity:0;
  transform:translateY(-8px);
}
.group-quick-actions-shell.open .group-quick-actions-panel{
  opacity:1;
  visibility:visible;
  pointer-events:auto;
  transform:translateY(-50%);
  transition-delay:0s;
}
.group-quick-actions-shell.open .group-quick-actions-panel .group-quick-action{
  opacity:1;
  transform:translateY(0);
}
.group-quick-actions-shell.open .group-quick-actions-panel .group-quick-action:nth-child(1){
  transition-delay:.02s;
}
.group-quick-actions-shell.open .group-quick-actions-panel .group-quick-action:nth-child(2){
  transition-delay:.055s;
}
.group-quick-actions-shell.open .group-quick-actions-panel .group-quick-action:nth-child(3){
  transition-delay:.09s;
}
.group-quick-actions-shell.open .group-quick-actions-toggle{
  background:#f0f1f5;
  border-color:#c9cfda;
  color:var(--text);
}
.group-quick-action .dashicons{
  width:16px;
  height:16px;
  font-size:16px;
}
.group-quick-action[hidden]{
  display:none!important;
}
.group-more-btn{
  min-width:72px;
  text-align:center;
}

/* Keep enough breathing room so the fly-out does not collide with status text. */
#activeGroupsView .group-status-cell{
  padding-right:122px;
}

@media(max-width:980px){
  #activeGroupsView .group-status-cell{
    padding-right:0;
  }
  .group-quick-actions-panel{
    position:static;
    order:-1;
    transform:translateY(-8px);
  }
  .group-quick-actions-shell.open .group-quick-actions-panel{
    transform:translateY(0);
  }
}


/* v117 — groups: no status column + textual quick actions */

/* Active groups: only name and actions. */
#activeGroupsView .groups-table-head,
#activeGroupsView .group-list-grid-row{
  grid-template-columns:minmax(420px,1fr) minmax(190px,auto);
}
#activeGroupsView .groups-table-head .actions-col{
  text-align:right;
}

/* Attention now lives by the lock, not in its own column. */
.group-name-attention{
  display:inline-flex;
  align-items:center;
  gap:6px;
  min-width:0;
  color:var(--text);
  font-size:11px;
  font-weight:650;
  white-space:nowrap;
}
.group-name-attention-dot{
  width:8px;
  height:8px;
  flex:0 0 8px;
  border-radius:50%;
  background:#d92d20;
  box-shadow:0 0 0 3px #fde9e7;
}
.group-name-attention-text{
  color:var(--text);
}

/* Main action and the ellipsis are side by side; ellipsis is on the right. */
.group-row-actions{
  gap:7px;
}
.group-main-details-btn{
  min-width:78px;
  justify-content:center;
}
.group-quick-actions-shell{
  position:relative;
  display:inline-flex;
  align-items:center;
  flex:0 0 auto;
}
.group-quick-actions-toggle.btn.small{
  min-width:42px;
  height:36px;
  padding:0 12px;
  display:inline-grid;
  place-items:center;
  border-color:var(--line);
  background:#fff;
  color:var(--text);
  box-sizing:border-box;
}
.group-quick-actions-toggle.btn.small:hover,
.group-quick-actions-shell.open .group-quick-actions-toggle.btn.small{
  background:#f5f6f8;
  border-color:#c9cfda;
  color:var(--text);
  transform:none!important;
}
.group-quick-actions-dots-vertical{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:3px;
  width:12px;
  height:18px;
}
.group-quick-actions-dots-vertical i{
  display:block;
  width:3.5px;
  height:3.5px;
  border-radius:50%;
  background:currentColor;
}

/* Textual quick actions look exactly like the neighbouring neutral button. */
.group-quick-actions-panel.group-quick-actions-panel-text{
  position:absolute;
  top:50%;
  right:calc(100% + 92px);
  z-index:8;
  display:flex;
  align-items:center;
  gap:7px;
  width:max-content;
  padding:0;
  opacity:0;
  visibility:hidden;
  pointer-events:none;
  transform:translateY(calc(-50% - 12px));
  transition:
    opacity .18s ease,
    transform .22s cubic-bezier(.2,.7,.2,1),
    visibility 0s linear .22s;
}
.group-quick-actions-panel-text .group-quick-action-text{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:6px;
  min-height:36px;
  padding:0 12px;
  border-color:var(--line);
  background:#fff;
  color:var(--text);
  white-space:nowrap;
  opacity:0;
  transform:translateY(-9px);
  transition:
    background-color .14s ease,
    border-color .14s ease,
    color .14s ease,
    opacity .18s ease,
    transform .22s cubic-bezier(.2,.7,.2,1);
}
.group-quick-actions-panel-text .group-quick-action-text:hover{
  background:#f5f6f8;
  border-color:#c9cfda;
  color:var(--text);
  transform:translateY(-9px);
}
.group-quick-actions-panel-text .group-quick-action-text .dashicons{
  width:15px;
  height:15px;
  font-size:15px;
}
.group-quick-actions-shell.open .group-quick-actions-panel-text{
  opacity:1;
  visibility:visible;
  pointer-events:auto;
  transform:translateY(-50%);
  transition-delay:0s;
}
.group-quick-actions-shell.open .group-quick-actions-panel-text .group-quick-action-text{
  opacity:1;
  transform:translateY(0);
}
.group-quick-actions-shell.open .group-quick-actions-panel-text .group-quick-action-text:hover{
  transform:translateY(0);
}
.group-quick-actions-shell.open .group-quick-actions-panel-text .group-quick-action-text:nth-child(1){
  transition-delay:.02s;
}
.group-quick-actions-shell.open .group-quick-actions-panel-text .group-quick-action-text:nth-child(2){
  transition-delay:.055s;
}
.group-quick-actions-shell.open .group-quick-actions-panel-text .group-quick-action-text:nth-child(3){
  transition-delay:.09s;
}
.group-quick-actions-panel-text .group-quick-action-text[hidden]{
  display:none!important;
}

/* v116 reserved space for the removed status column; undo it. */
#activeGroupsView .group-status-cell{
  padding-right:0;
}

/* Archived groups use the same Details + ⋮ pattern. */
#archivedGroupsView .group-row-actions{
  overflow:visible;
}

@media(max-width:980px){
  #activeGroupsView .groups-table-head,
  #activeGroupsView .group-list-grid-row,
  #archivedGroupsView .groups-table-head.archived,
  #archivedGroupsView .group-list-grid-row.archived{
    grid-template-columns:1fr;
    gap:8px;
  }
  .group-quick-actions-panel.group-quick-actions-panel-text{
    position:static;
    order:-1;
    transform:translateY(-8px);
  }
  .group-quick-actions-shell.open .group-quick-actions-panel-text{
    transform:translateY(0);
  }
}


/* v118 — cleaner Moje grupy navigation + consistent button icons */

/* Local navigation sits above the card and reads like navigation, not pills. */
.groups-local-nav{
  display:flex;
  align-items:center;
  gap:22px;
  margin:0 0 12px;
  padding:0 2px;
  border:0;
  background:transparent;
}
.groups-local-nav .view-segment{
  position:relative;
  min-height:auto;
  padding:4px 0 9px;
  border:0;
  border-radius:0;
  background:transparent;
  box-shadow:none;
  color:var(--muted);
  font-size:12px;
  font-weight:650;
}
.groups-local-nav .view-segment:hover{
  background:transparent;
  color:var(--text);
}
.groups-local-nav .view-segment.active{
  background:transparent;
  color:var(--text);
  box-shadow:none;
  font-weight:750;
}
.groups-local-nav .view-segment.active::after{
  content:"";
  position:absolute;
  left:0;
  right:0;
  bottom:0;
  height:2px;
  border-radius:2px;
  background:var(--primary);
}
.groups-local-count{
  margin-left:5px;
  color:#8d95a5;
  font-size:10px;
  font-weight:700;
}
.groups-local-nav .view-segment.active .groups-local-count{
  color:var(--primary);
}

/* Without table headers the list can start immediately and breathe more. */
#groupsModule{
  padding-top:10px;
}
#groupsModule .groups-table-like{
  margin-top:0;
}
#activeGroupsView .group-list-grid-row,
#archivedGroupsView .group-list-grid-row.archived{
  padding-top:14px;
  padding-bottom:14px;
}

/* Button icons: same rhythm everywhere on this page. */
#groupsModule .btn,
.topbar-actions .btn,
.modal-overlay .btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:6px;
}
.btn-icon,
#groupsModule .btn .dashicons,
.topbar-actions .btn .dashicons,
.modal-overlay .btn .dashicons{
  width:15px;
  height:15px;
  font-size:15px;
  line-height:15px;
  flex:0 0 15px;
}

/* Ellipsis control: just a touch smaller, aligned to Details. */
.group-main-details-btn{
  min-height:34px;
}
.group-quick-actions-toggle.btn.small{
  width:34px;
  min-width:34px;
  height:34px;
  min-height:34px;
  padding:0;
}
.group-quick-actions-dots-vertical{
  gap:2.5px;
  width:10px;
  height:16px;
}
.group-quick-actions-dots-vertical i{
  width:3px;
  height:3px;
}

/* Keep fly-out alignment correct after shrinking the dots button. */
.group-quick-actions-panel.group-quick-actions-panel-text{
  right:calc(100% + 92px);
}

/* No header row remains, so archived layout only needs row columns. */
#archivedGroupsView .group-list-grid-row.archived{
  grid-template-columns:minmax(420px,1fr) minmax(190px,auto);
}

@media(max-width:980px){
  .groups-local-nav{
    gap:18px;
  }
  #archivedGroupsView .group-list-grid-row.archived{
    grid-template-columns:1fr;
  }
}


/* v119 — fix quick-action collision: panel expands in flow to the left */
.group-row-actions{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:7px;
  overflow:visible;
}

.group-quick-actions-panel-inline{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:7px;
  width:auto;
  max-width:0;
  margin-right:-7px;
  overflow:hidden;
  opacity:0;
  visibility:hidden;
  pointer-events:none;
  transform:translateY(-9px);
  transition:
    max-width .28s cubic-bezier(.2,.7,.2,1),
    margin-right .28s cubic-bezier(.2,.7,.2,1),
    opacity .16s ease,
    transform .22s cubic-bezier(.2,.7,.2,1),
    visibility 0s linear .28s;
}

.group-quick-actions-panel-inline .group-quick-action-text{
  flex:0 0 auto;
  min-height:34px;
  padding:7px 10px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:6px;
  border-color:var(--line);
  background:#fff;
  color:var(--text);
  white-space:nowrap;
  opacity:0;
  transform:translateY(-7px);
  transition:
    background-color .14s ease,
    border-color .14s ease,
    color .14s ease,
    opacity .18s ease,
    transform .22s cubic-bezier(.2,.7,.2,1);
}

.group-quick-actions-panel-inline .group-quick-action-text:hover{
  background:#f5f6f8;
  border-color:#c9cfda;
  color:var(--text);
  transform:translateY(-7px);
}

.group-list-grid-row.quick-actions-open .group-quick-actions-panel-inline{
  max-width:560px;
  margin-right:0;
  opacity:1;
  visibility:visible;
  pointer-events:auto;
  transform:translateY(0);
  transition-delay:0s;
}

.group-list-grid-row.quick-actions-open .group-quick-actions-panel-inline .group-quick-action-text{
  opacity:1;
  transform:translateY(0);
}

.group-list-grid-row.quick-actions-open .group-quick-actions-panel-inline .group-quick-action-text:hover{
  transform:translateY(0);
}

.group-list-grid-row.quick-actions-open .group-quick-actions-panel-inline .group-quick-action-text:nth-child(1){
  transition-delay:.02s;
}
.group-list-grid-row.quick-actions-open .group-quick-actions-panel-inline .group-quick-action-text:nth-child(2){
  transition-delay:.055s;
}
.group-list-grid-row.quick-actions-open .group-quick-actions-panel-inline .group-quick-action-text:nth-child(3){
  transition-delay:.09s;
}

/* Old absolute panel rules must not affect the new inline panel. */
.group-quick-actions-panel-inline{
  position:static!important;
  top:auto!important;
  right:auto!important;
}

/* Keep Details and ⋮ perfectly separated. */
.group-main-details-btn{
  flex:0 0 auto;
}
.group-quick-actions-toggle.btn.small{
  flex:0 0 34px;
}

/* On narrower layouts, allow the action row to wrap instead of colliding. */
@media(max-width:1100px){
  .group-row-actions{
    flex-wrap:wrap;
  }
  .group-quick-actions-panel-inline{
    order:3;
    width:100%;
    justify-content:flex-end;
    margin-top:0;
  }
  .group-list-grid-row.quick-actions-open .group-quick-actions-panel-inline{
    max-width:100%;
    margin-top:7px;
  }
}


/* v120 — two-tone local nav + group member layout */

/* The second item in a two-item local submenu uses the warm gold-brown palette. */
.groups-local-nav .view-segment:nth-child(2).active{
  color:#9a681d;
}



/* Group member submenu/search row above the content block. */
.group-members-toolbar{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:24px;
  margin:0 0 12px;
  padding:0 2px;
}
.group-members-toolbar .groups-local-nav{
  margin:0;
  flex:0 0 auto;
}
.group-members-toolbar .group-students-head-tools{
  margin-left:auto;
  flex:0 1 auto;
}
.group-members-toolbar + .group-view-stack{
  margin-top:0;
}

/* Group member card no longer has a table header row. */
.students-card{
  overflow:visible;
}
.students-card table tbody tr:first-child td{
  border-top:0;
}
.students-card .table td{
  padding-top:14px;
  padding-bottom:14px;
}
.pending-time-cell{
  color:var(--muted);
  font-size:11px!important;
  white-space:nowrap;
}

/* Accepted member rows have more room for actions. */
#groupStudentsTable td:first-child{
  width:34%!important;
}
#groupStudentsTable td.actions-col{
  width:66%!important;
  text-align:right;
}

/* Details + ⋮ + animated text actions, same language as Moje grupy. */
.student-row-actions-v120{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:7px;
  overflow:visible;
}
.student-main-details-btn{
  flex:0 0 auto;
  min-height:34px;
}
.student-quick-actions-toggle.btn.small{
  flex:0 0 34px;
  width:34px;
  min-width:34px;
  height:34px;
  min-height:34px;
  padding:0;
  display:inline-grid;
  place-items:center;
  color:var(--text);
}
.student-quick-actions-panel{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:7px;
  max-width:0;
  margin-right:-7px;
  overflow:hidden;
  opacity:0;
  visibility:hidden;
  pointer-events:none;
  transform:translateY(-9px);
  transition:
    max-width .32s cubic-bezier(.2,.7,.2,1),
    margin-right .32s cubic-bezier(.2,.7,.2,1),
    opacity .16s ease,
    transform .22s cubic-bezier(.2,.7,.2,1),
    visibility 0s linear .32s;
}
.student-quick-actions-panel .student-quick-action-text{
  flex:0 0 auto;
  min-height:34px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:6px;
  padding:7px 10px;
  border-color:var(--line);
  background:#fff;
  color:var(--text);
  white-space:nowrap;
  opacity:0;
  transform:translateY(-7px);
  transition:
    background-color .14s ease,
    border-color .14s ease,
    color .14s ease,
    opacity .18s ease,
    transform .22s cubic-bezier(.2,.7,.2,1);
}
.student-quick-actions-panel .student-quick-action-text:hover{
  background:#f5f6f8;
  border-color:#c9cfda;
  color:var(--text);
  transform:translateY(-7px);
}
.student-quick-actions-panel .student-quick-action-text .dashicons{
  width:15px;
  height:15px;
  font-size:15px;
}
.group-member-clickable.student-quick-open .student-quick-actions-panel{
  max-width:760px;
  margin-right:0;
  opacity:1;
  visibility:visible;
  pointer-events:auto;
  transform:translateY(0);
}
.group-member-clickable.student-quick-open .student-quick-actions-panel .student-quick-action-text{
  opacity:1;
  transform:translateY(0);
}
.group-member-clickable.student-quick-open .student-quick-actions-panel .student-quick-action-text:hover{
  transform:translateY(0);
}
.group-member-clickable.student-quick-open .student-quick-actions-panel .student-quick-action-text:nth-child(1){transition-delay:.02s}
.group-member-clickable.student-quick-open .student-quick-actions-panel .student-quick-action-text:nth-child(2){transition-delay:.045s}
.group-member-clickable.student-quick-open .student-quick-actions-panel .student-quick-action-text:nth-child(3){transition-delay:.07s}
.group-member-clickable.student-quick-open .student-quick-actions-panel .student-quick-action-text:nth-child(4){transition-delay:.095s}
.group-member-clickable.student-quick-open .student-quick-actions-panel .student-quick-action-text:nth-child(5){transition-delay:.12s}

/* Remove keeps destructive meaning only on hover, while matching the neutral quick-action baseline. */
.student-quick-actions-panel .student-quick-remove{
  color:var(--text);
  border-color:var(--line);
  background:#fff;
}
.student-quick-actions-panel .student-quick-remove:hover{
  color:#8f3f4c;
  border-color:#dcaeb7;
  background:#fff8f9;
}

/* Icons on visible controls throughout the group page. */
.group-topbar .btn,
.group-membership-callout .btn,
.pending-row-actions .btn,
.pending-bulk-footer .btn,
.student-row-actions-v120 .btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:6px;
}
.group-topbar .btn .dashicons,
.group-membership-callout .btn .dashicons,
.pending-row-actions .btn .dashicons,
.pending-bulk-footer .btn .dashicons,
.student-row-actions-v120 .btn .dashicons{
  width:15px;
  height:15px;
  font-size:15px;
  flex:0 0 15px;
}

/* Inline edit on the context-specific student card. */
.student-context-edit{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:12px;
  margin-top:4px;
}
.student-context-edit[hidden],
.student-context-display[hidden]{
  display:none!important;
}
.student-context-edit .field{
  display:flex;
  flex-direction:column;
  gap:6px;
}
.student-context-edit .field span{
  font-size:11px;
  color:var(--muted);
}
.student-context-edit .field input{
  height:36px;
  border:1px solid var(--line);
  border-radius:6px;
  padding:0 10px;
  font:inherit;
  font-size:12px;
}
.student-context-edit .settings-save-actions{
  grid-column:1/-1;
  display:flex;
  justify-content:flex-end;
  gap:7px;
}

@media(max-width:1100px){
  .group-members-toolbar{
    align-items:stretch;
    flex-direction:column;
    gap:10px;
  }
  .group-members-toolbar .group-students-head-tools{
    width:100%;
    margin-left:0;
  }
  #groupStudentsTable td:first-child,
  #groupStudentsTable td.actions-col{
    width:auto!important;
  }
  .student-row-actions-v120{
    flex-wrap:wrap;
  }
  .student-quick-actions-panel{
    order:3;
    width:100%;
  }
  .group-member-clickable.student-quick-open .student-quick-actions-panel{
    max-width:100%;
  }
}
@media(max-width:760px){
  .student-context-edit{
    grid-template-columns:1fr;
  }
}


/* v121 — submenu tone, pending signal and row hover polish */

/* Second submenu item: same dark text logic as the first one.
   Only the underline/count carry the warm palette. */
.groups-local-nav .view-segment:nth-child(2).active{
  color:var(--text);
}
.groups-local-nav .view-segment:nth-child(2).active::after{
  background:#c18a2f;
}
.groups-local-nav .view-segment:nth-child(2).active .groups-local-count{
  color:#9a681d;
}

/* Concrete group: pending membership signal lives only in the submenu count. */
.group-members-local-nav .pending-nav-alert-dot{
  width:7px;
  height:7px;
  flex:0 0 7px;
  margin-left:6px;
  border-radius:50%;
  background:#d92d20;
  box-shadow:0 0 0 3px #fde9e7;
}
.group-members-local-nav .groups-local-count.has-alert,
.group-members-local-nav .view-segment:nth-child(2).active .groups-local-count.has-alert{
  color:#b42318;
  font-weight:800;
}

/* No acceptance callout is used on the concrete group page anymore. */
.group-view-stack > .group-membership-callout{
  display:none!important;
}

/* Light, optically matched accept/reject symbols. */
.pending-row-actions .light-action-icon{
  position:relative;
  display:inline-block;
  width:14px;
  height:14px;
  flex:0 0 14px;
}
.pending-row-actions .light-action-icon.check::before{
  content:"";
  position:absolute;
  left:3.6px;
  top:1.8px;
  width:5px;
  height:8px;
  border-right:1.4px solid currentColor;
  border-bottom:1.4px solid currentColor;
  transform:rotate(42deg);
  transform-origin:center;
}
.pending-row-actions .light-action-icon.cross::before,
.pending-row-actions .light-action-icon.cross::after{
  content:"";
  position:absolute;
  left:6.2px;
  top:2.2px;
  width:1.4px;
  height:9.6px;
  border-radius:2px;
  background:currentColor;
}
.pending-row-actions .light-action-icon.cross::before{
  transform:rotate(45deg);
}
.pending-row-actions .light-action-icon.cross::after{
  transform:rotate(-45deg);
}

/* Consistent hover for rows that are genuinely clickable. */
.group-list-grid-row,
#groupStudentsTable tbody tr.group-member-clickable{
  transition:background-color .14s ease;
}
.group-list-grid-row .list-title,
#groupStudentsTable tbody tr.group-member-clickable .student-list-copy .name{
  transition:color .14s ease;
}
.group-list-grid-row .list-meta,
#groupStudentsTable tbody tr.group-member-clickable .student-list-copy .sub{
  transition:color .14s ease;
}


.group-list-grid-row:hover .list-title,
#groupStudentsTable tbody tr.group-member-clickable:hover .student-list-copy .name{
  color:#3f4b63;
}
.group-list-grid-row:hover .list-meta,
#groupStudentsTable tbody tr.group-member-clickable:hover .student-list-copy .sub{
  color:#667085;
}

/* Override older purple hover on member names. */
.group-member-clickable:hover .student-list-copy .name{
  color:#3f4b63!important;
}


/* v122 — alert red + robust invite visibility + pending tab alert geometry */

/* Moje grupy: membership attention text is explicitly red. */
.group-name-attention.is-alert .group-name-attention-text,
.group-name-attention .group-name-attention-text{
  color:#b42318;
}

/* Closing enrollment must hide Invite even though quick actions have custom display rules. */
.group-quick-actions-panel-inline .group-invite-quick[hidden],
.group-quick-actions-panel-text .group-invite-quick[hidden],
.group-invite-quick[hidden]{
  display:none!important;
}

/* Create-group modal borrows the same light check/cross language. */
.create-group-modal-actions .light-action-icon{
  position:relative;
  display:inline-block;
  width:14px;
  height:14px;
  flex:0 0 14px;
}
.create-group-modal-actions .light-action-icon.check::before{
  content:"";
  position:absolute;
  left:3.6px;
  top:1.8px;
  width:5px;
  height:8px;
  border-right:1.4px solid currentColor;
  border-bottom:1.4px solid currentColor;
  transform:rotate(42deg);
  transform-origin:center;
}
.create-group-modal-actions .light-action-icon.cross::before,
.create-group-modal-actions .light-action-icon.cross::after{
  content:"";
  position:absolute;
  left:6.2px;
  top:2.2px;
  width:1.4px;
  height:9.6px;
  border-radius:2px;
  background:currentColor;
}
.create-group-modal-actions .light-action-icon.cross::before{
  transform:rotate(45deg);
}
.create-group-modal-actions .light-action-icon.cross::after{
  transform:rotate(-45deg);
}

/* Concrete group: red palette only when there is something pending.
   Text stays dark; underline/count/dot carry the alert. */
.group-members-local-nav .view-segment[data-target="groupPendingStudents"]{
  position:relative;
}
.group-members-local-nav .view-segment[data-target="groupPendingStudents"].has-pending-alert{
  color:var(--text);
}
.group-members-local-nav .view-segment[data-target="groupPendingStudents"].has-pending-alert.active::after{
  background:#d92d20;
}
.group-members-local-nav .view-segment[data-target="groupPendingStudents"] .groups-local-count.has-alert,
.group-members-local-nav .view-segment[data-target="groupPendingStudents"].active .groups-local-count.has-alert{
  color:#b42318;
  font-weight:800;
}

/* Dot hangs outside the tab to the right of the number and doesn't affect underline width. */
.group-members-local-nav .view-segment[data-target="groupPendingStudents"] .pending-nav-alert-dot{
  position:absolute;
  right:-10px;
  top:5px;
  width:7px;
  height:7px;
  margin:0;
  border-radius:50%;
  background:#d92d20;
  box-shadow:0 0 0 3px #fde9e7;
  pointer-events:none;
}


/* v123 — darker row hover + precisely aligned pending alert dot */

/* Hover should make content darker/more assertive, never wash it out. */
.group-list-grid-row:hover,
#groupStudentsTable tbody tr.group-member-clickable:hover{
  background:#f6f7fa;
}
.group-list-grid-row:hover .list-title,
#groupStudentsTable tbody tr.group-member-clickable:hover .student-list-copy .name{
  color:#101828!important;
}
.group-list-grid-row:hover .list-meta,
#groupStudentsTable tbody tr.group-member-clickable:hover .student-list-copy .sub{
  color:#475467!important;
}

/* Keep alert text red on group rows even when the whole row is hovered. */
.group-list-grid-row:hover .group-name-attention-text{
  color:#b42318!important;
}

/* The pending count owns the dot, but the dot does not occupy any layout width.
   Vertical centering is tied to the actual number, not the whole tab. */
.group-members-local-nav .view-segment[data-target="groupPendingStudents"] .groups-local-count.has-alert{
  position:relative;
  display:inline-block;
}
.group-members-local-nav .view-segment[data-target="groupPendingStudents"] .groups-local-count.has-alert .pending-nav-alert-dot{
  position:absolute;
  left:calc(100% + 6px);
  top:50%;
  right:auto;
  width:7px;
  height:7px;
  margin:0;
  border-radius:50%;
  background:#d92d20;
  box-shadow:0 0 0 3px #fde9e7;
  transform:translateY(-50%);
  pointer-events:none;
}

/* Override the older tab-anchored dot positioning. */
.group-members-local-nav .view-segment[data-target="groupPendingStudents"] > .pending-nav-alert-dot{
  display:none!important;
}


/* v124 — inline pending approvals; no approval modal */

/* Pending identity is now purely informational. */
.pending-student-identity{
  cursor:default;
}
.pending-waiting-since{
  margin-top:3px;
  color:var(--muted);
  font-size:10px;
  line-height:1.3;
  font-weight:500;
}

/* With time moved below the name, pending list is a simple identity/actions row. */
.pending-group-students-table td:first-child{
  width:58%;
}
.pending-group-students-table td.actions-col{
  width:42%;
  text-align:right;
}

/* One fixed-height action viewport: buttons exit upward, result enters from below. */
.pending-action-stage{
  position:relative;
  display:inline-block;
  width:176px;
  height:34px;
  overflow:hidden;
  vertical-align:middle;
}
.pending-action-buttons,
.pending-result-message{
  position:absolute;
  inset:0;
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:7px;
}
.pending-action-buttons{
  opacity:1;
  transform:translateY(0);
  transition:
    opacity .16s ease,
    transform .24s cubic-bezier(.2,.7,.2,1);
}
.pending-result-message{
  color:#475467;
  font-size:12px;
  font-weight:700;
  opacity:0;
  transform:translateY(125%);
  transition:
    opacity .16s ease .05s,
    transform .24s cubic-bezier(.2,.7,.2,1) .02s;
}
.pending-result-message.accepted{
  color:#475467;
}
.pending-result-message.rejected{
  color:#5f6879;
}

/* Resolve state: row grays out, buttons leave the viewport, status replaces them. */
.pending-student-row{
  transition:background-color .22s ease;
}
.pending-student-row > td:first-child{
  transition:opacity .22s ease;
}
.pending-student-row.pending-resolved{
  background:#f5f6f8;
}
.pending-student-row.pending-resolved > td:first-child{
  opacity:.52;
}
.pending-student-row.pending-resolved .pending-action-buttons{
  opacity:0;
  transform:translateY(-125%);
  pointer-events:none;
}
.pending-student-row.pending-resolved .pending-result-message{
  opacity:1;
  transform:translateY(0);
}

/* Result icon uses the same light check/cross geometry as the actions. */
.pending-result-message .light-action-icon{
  position:relative;
  display:inline-block;
  width:14px;
  height:14px;
  flex:0 0 14px;
}
.pending-result-message .light-action-icon.check::before{
  content:"";
  position:absolute;
  left:3.6px;
  top:1.8px;
  width:5px;
  height:8px;
  border-right:1.4px solid currentColor;
  border-bottom:1.4px solid currentColor;
  transform:rotate(42deg);
  transform-origin:center;
}
.pending-result-message .light-action-icon.cross::before,
.pending-result-message .light-action-icon.cross::after{
  content:"";
  position:absolute;
  left:6.2px;
  top:2.2px;
  width:1.4px;
  height:9.6px;
  border-radius:2px;
  background:currentColor;
}
.pending-result-message .light-action-icon.cross::before{
  transform:rotate(45deg);
}
.pending-result-message .light-action-icon.cross::after{
  transform:rotate(-45deg);
}

/* Bulk-complete button reuses the same light icon if JS swaps its label. */
#acceptAllPendingStudents .light-action-icon{
  position:relative;
  display:inline-block;
  width:14px;
  height:14px;
  flex:0 0 14px;
}
#acceptAllPendingStudents .light-action-icon.check::before{
  content:"";
  position:absolute;
  left:3.6px;
  top:1.8px;
  width:5px;
  height:8px;
  border-right:1.4px solid currentColor;
  border-bottom:1.4px solid currentColor;
  transform:rotate(42deg);
  transform-origin:center;
}

@media(max-width:760px){
  .pending-group-students-table td:first-child,
  .pending-group-students-table td.actions-col{
    width:auto;
  }
  .pending-action-stage{
    width:168px;
  }
}


/* v125 — pending identity hover off + remove-member modal polish */

/* Pending candidates are informational rows; their identity itself is not clickable. */
.pending-student-identity:hover .name{
  color:inherit!important;
  text-decoration:none!important;
}
.pending-student-identity:hover .student-avatar{
  transform:none!important;
}

/* Remove-from-group modal: buttons use the same lightweight icon language. */
.remove-student-modal .confirm-modal-actions .btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:6px;
}
.remove-student-modal .remove-modal-action-icon{
  flex:0 0 14px;
}
.remove-student-modal .light-action-icon.remove-modal-action-icon{
  position:relative;
  display:inline-block;
  width:14px;
  height:14px;
}
.remove-student-modal .light-action-icon.cross::before,
.remove-student-modal .light-action-icon.cross::after{
  content:"";
  position:absolute;
  left:6.2px;
  top:2.2px;
  width:1.4px;
  height:9.6px;
  border-radius:2px;
  background:currentColor;
}
.remove-student-modal .light-action-icon.cross::before{
  transform:rotate(45deg);
}
.remove-student-modal .light-action-icon.cross::after{
  transform:rotate(-45deg);
}
.remove-student-modal .remove-modal-trash-icon{
  width:14px;
  height:14px;
  font-size:14px;
  line-height:14px;
}

/* This confirmation modal dims through the overlay only; never blur the app behind it. */
#removeStudentFromGroupModal + *{
  filter:none;
}


/* v126 — group lifecycle management + permanent delete */
.group-lifecycle-card{padding-top:18px;padding-bottom:18px}
.group-lifecycle-action{display:flex;align-items:center;justify-content:space-between;gap:24px}
.group-lifecycle-copy{min-width:0;flex:1}
.group-lifecycle-copy>strong{display:block;margin-bottom:4px;font-size:13px;color:var(--text)}
.group-lifecycle-copy .settings-copy{margin:0;max-width:760px}
.group-lifecycle-divider{height:1px;margin:18px 0;background:var(--line)}
.group-delete-zone .group-lifecycle-copy>strong{color:#9f3f4f}
.group-delete-zone .settings-copy{color:#7b5a61}
.group-lifecycle-action .btn{flex:0 0 auto;display:inline-flex;align-items:center;justify-content:center;gap:6px}
.group-lifecycle-action .btn .dashicons{width:15px;height:15px;font-size:15px}
.btn.danger-outline{color:#9f3f4f;border-color:#dfb7bf;background:#fff}
.btn.danger-outline:hover{color:#853340;border-color:#d79ca7;background:#fff8f9;transform:none!important}

.delete-group-modal{width:min(520px,calc(100vw - 32px))}
.delete-group-modal>p{margin:0}
.delete-group-students-note{margin-top:7px!important;color:var(--muted)}
.delete-group-confirm-box{margin-top:18px;padding:14px;border:1px solid #ead7db;border-radius:8px;background:#fffafb;text-align:left}
.delete-group-confirm-box label{display:block;margin-bottom:9px;color:#5f4a4f;font-size:11px;line-height:1.5}
.delete-group-confirm-box label strong{color:var(--text);font-size:12px}
.delete-group-confirm-box input{width:100%;height:38px;padding:0 10px;border:1px solid var(--line);border-radius:6px;background:#fff;color:var(--text);font:inherit;font-size:12px;outline:none;box-sizing:border-box}
.delete-group-confirm-box input:focus{border-color:#b7bfd0;box-shadow:0 0 0 3px rgba(79,70,229,.08)}
.delete-group-modal .confirm-modal-actions .btn{display:inline-flex;align-items:center;justify-content:center;gap:6px}
.delete-group-modal .confirm-modal-actions .btn:disabled{opacity:.42;cursor:not-allowed}
.delete-group-modal .group-delete-cross{position:relative;display:inline-block;width:14px;height:14px;flex:0 0 14px}
.delete-group-modal .group-delete-cross::before,.delete-group-modal .group-delete-cross::after{content:"";position:absolute;left:6.2px;top:2.2px;width:1.4px;height:9.6px;border-radius:2px;background:currentColor}
.delete-group-modal .group-delete-cross::before{transform:rotate(45deg)}
.delete-group-modal .group-delete-cross::after{transform:rotate(-45deg)}
.group-archive-btn:hover,.group-reactivate-settings-btn:hover,.group-delete-trigger:hover{transform:none!important}
@media(max-width:760px){.group-lifecycle-action{align-items:flex-start;flex-direction:column;gap:12px}}


/* v127 — pending actions unclipped + bulk accept in topbar */

/* The old viewport was narrower than the two real buttons and clipped the left edge.
   Give the animation frame enough room for both controls and their border pixels. */
.pending-action-stage{
  width:232px!important;
  height:36px;
}
.pending-action-buttons,
.pending-result-message{
  inset:1px 0;
}

/* "Przyjmij wszystkich" lives at the far right of the group topbar and is
   the only primary/blue action in that bar. */
.group-topbar .topbar-actions .btn{
  transform:none!important;
}
.group-topbar .group-accept-all-top{
  margin-left:2px;
}
.group-topbar .group-accept-all-top[hidden]{
  display:none!important;
}

/* Lightweight check reused from row actions, rendered in current button color. */
.group-accept-all-top .topbar-light-check{
  position:relative;
  display:inline-block;
  width:14px;
  height:14px;
  flex:0 0 14px;
}
.group-accept-all-top .topbar-light-check::before{
  content:"";
  position:absolute;
  left:3.6px;
  top:1.8px;
  width:5px;
  height:8px;
  border-right:1.4px solid currentColor;
  border-bottom:1.4px solid currentColor;
  transform:rotate(42deg);
  transform-origin:center;
}

/* Keep invitation neutral now that bulk accept owns the primary emphasis. */
#inviteStudents:not(.primary){
  background:#fff;
  border-color:var(--line);
  color:var(--text);
}
#inviteStudents:not(.primary):hover{
  background:#f5f6f8;
  border-color:#c9cfda;
  color:var(--text);
  transform:none!important;
}

@media(max-width:760px){
  .pending-action-stage{
    width:224px!important;
  }
}


/* v128 — swap topbar primary CTA by group member submenu */

/* In the default members view, Invite is again the blue primary CTA. */


.group-topbar #inviteStudents[hidden]{
  display:none!important;
}

/* In pending view, Accept all takes exactly that primary slot.
   Natural width only — never inherit the old row-action width. */
.group-topbar #acceptAllPendingStudents{
  width:auto!important;
  min-width:0!important;
  padding-left:14px;
  padding-right:14px;
  white-space:nowrap;
}
.group-topbar #acceptAllPendingStudents[hidden]{
  display:none!important;
}


/* v129 — pending submenu swaps emphasis, not visibility */

/* Invite remains present in both member subviews.
   In the normal member list it is primary; in pending it becomes neutral. */
.group-topbar #inviteStudents{
  display:inline-flex;
}
.group-topbar #inviteStudents:not(.primary){
  background:#fff;
  border-color:var(--line);
  color:var(--text);
}
.group-topbar #inviteStudents:not(.primary):hover{
  background:#f5f6f8;
  border-color:#c9cfda;
  color:var(--text);
  transform:none!important;
}

/* Enrollment-closed behavior still wins over submenu behavior. */
.group-topbar #inviteStudents[style*="display: none"],
.group-topbar #inviteStudents[style*="display:none"]{
  display:none!important;
}

/* Bulk is the pending-view primary CTA only. */
.group-topbar #acceptAllPendingStudents.primary{
  background:var(--primary);
  border-color:var(--primary);
  color:#fff;
}


/* v130 — primary CTA swap without flash */

/* Programmatic priority changes should be instantaneous.
   Hover animation is untouched once this helper class is removed on the next frame. */
.group-topbar .btn.priority-swap-no-transition{
  transition:none!important;
}

/* Invite regains primary emphasis whenever bulk CTA is absent. */
.group-topbar #inviteStudents.primary{
  background:var(--primary);
  border-color:var(--primary);
  color:#fff;
}
.group-topbar #inviteStudents.primary:hover{
  color:#fff;
  transform:none!important;
}


/* v131 — global Tasks listing redesigned around row-level information */

/* All dropdowns: custom chevron with symmetric 10px edge inset. */
select{
  -webkit-appearance:none;
  appearance:none;
  padding-right:30px!important;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1.5 1.5 6 6l4.5-4.5' fill='none' stroke='%23697386' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")!important;
  background-repeat:no-repeat!important;
  background-position:right 10px center!important;
}

/* Clean local submenu + filtering/sorting above the task block. */
.assignments-local-toolbar{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:24px;
  margin:0 0 12px;
  padding:0 2px;
}
.assignments-local-toolbar .assignments-local-nav{
  margin:0;
  flex:0 0 auto;
}
.assignment-list-tools{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:12px;
  margin-left:auto;
}
.assignment-filter-control,
.assignment-sort-control{
  display:flex;
  align-items:center;
  gap:7px;
  color:var(--muted);
  font-size:10.5px;
  white-space:nowrap;
}
.assignment-filter-control .select-control,
.assignment-sort-control .select-control{
  min-width:180px;
}
.assignments-module{
  padding-top:0;
  overflow:visible;
}

/* Table behaves like a clean two-column list: task information + actions. */
.assignment-list-table{
  width:100%;
  min-width:760px;
  table-layout:fixed;
}
.assignment-list-table td{
  padding-top:15px;
  padding-bottom:15px;
  vertical-align:middle;
}
.assignment-list-table .assignment-task-main{
  width:auto;
}
.assignment-list-table .assignment-row-actions-cell{
  width:64%;
  text-align:right;
}
.assignment-list-title-row{
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
}
.assignment-list-title{
  color:var(--text);
  font-size:12px;
  font-weight:750;
  line-height:1.35;
  transition:color .14s ease;
}
.assignment-review-attention{
  display:inline-flex;
  align-items:center;
  gap:6px;
  color:#b42318;
  font-size:10.5px;
  font-weight:700;
  white-space:nowrap;
}
.assignment-review-dot{
  width:7px;
  height:7px;
  flex:0 0 7px;
  border-radius:50%;
  background:#d92d20;
  box-shadow:0 0 0 3px #fde9e7;
}
.assignment-list-meta{
  display:flex;
  align-items:center;
  gap:4px;
  flex-wrap:wrap;
  margin-top:4px;
  color:var(--muted);
  font-size:10px;
  line-height:1.4;
  transition:color .14s ease;
}
.assignment-meta-group-icon{
  width:16px!important;
  height:16px!important;
  flex:0 0 16px!important;
  display:inline-grid!important;
  place-items:center!important;
  font-size:10px!important;
  margin-left:2px;
}
.assignment-meta-group-name{
  color:#566174;
  font-weight:650;
}
.assignment-archive-inline-status{
  color:#737b8b;
  font-weight:650;
}
.assignment-archive-inline-status.cancelled{
  color:#8a6870;
}

/* Entire row is a navigation target and uses the established darkening hover. */
.task-row-clickable{
  cursor:pointer;
  transition:background-color .14s ease;
}
.task-row-clickable:hover{
  background:#f6f7fa;
}
.task-row-clickable:hover .assignment-list-title{
  color:#101828;
}
.task-row-clickable:hover .assignment-list-meta{
  color:#475467;
}
.task-row-clickable:focus-visible{
  outline:2px solid var(--primary);
  outline-offset:-2px;
}

/* Details + ⋮ + animated textual quick actions. */
.assignment-row-actions{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:7px;
  overflow:visible;
}
.task-main-details-btn{
  flex:0 0 auto;
  min-height:34px;
  display:inline-flex;
  align-items:center;
  gap:6px;
}
.task-main-details-btn .dashicons,
.task-quick-action-text .dashicons{
  width:15px;
  height:15px;
  font-size:15px;
}
.task-quick-actions-toggle.btn.small{
  flex:0 0 34px;
  width:34px;
  min-width:34px;
  height:34px;
  min-height:34px;
  padding:0;
  display:inline-grid;
  place-items:center;
  color:var(--text);
}
.task-quick-actions-panel{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:7px;
  max-width:0;
  margin-right:-7px;
  overflow:hidden;
  opacity:0;
  visibility:hidden;
  pointer-events:none;
  transform:translateY(-9px);
  transition:
    max-width .32s cubic-bezier(.2,.7,.2,1),
    margin-right .32s cubic-bezier(.2,.7,.2,1),
    opacity .16s ease,
    transform .22s cubic-bezier(.2,.7,.2,1),
    visibility 0s linear .32s;
}
.task-quick-action-text{
  flex:0 0 auto;
  min-height:34px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:6px;
  padding:7px 10px;
  border-color:var(--line);
  background:#fff;
  color:var(--text);
  white-space:nowrap;
  opacity:0;
  transform:translateY(-7px);
  transition:
    background-color .14s ease,
    border-color .14s ease,
    color .14s ease,
    opacity .18s ease,
    transform .22s cubic-bezier(.2,.7,.2,1);
}
.task-quick-action-text:hover{
  background:#f5f6f8;
  border-color:#c9cfda;
  color:var(--text);
  transform:translateY(-7px);
}
.task-row-clickable.task-quick-open .task-quick-actions-panel{
  max-width:620px;
  margin-right:0;
  opacity:1;
  visibility:visible;
  pointer-events:auto;
  transform:translateY(0);
}
.task-row-clickable.task-quick-open .task-quick-action-text{
  opacity:1;
  transform:translateY(0);
}
.task-row-clickable.task-quick-open .task-quick-action-text:hover{
  transform:translateY(0);
}
.task-row-clickable.task-quick-open .task-quick-action-text:nth-child(1){transition-delay:.02s}
.task-row-clickable.task-quick-open .task-quick-action-text:nth-child(2){transition-delay:.055s}
.task-row-clickable.task-quick-open .task-quick-action-text:nth-child(3){transition-delay:.09s}

/* Lightweight cancel icon inside quick actions. */
.task-quick-action-text .light-action-icon.cross{
  position:relative;
  display:inline-block;
  width:14px;
  height:14px;
  flex:0 0 14px;
}
.task-quick-action-text .light-action-icon.cross::before,
.task-quick-action-text .light-action-icon.cross::after{
  content:"";
  position:absolute;
  left:6.2px;
  top:2.2px;
  width:1.4px;
  height:9.6px;
  border-radius:2px;
  background:currentColor;
}
.task-quick-action-text .light-action-icon.cross::before{transform:rotate(45deg)}
.task-quick-action-text .light-action-icon.cross::after{transform:rotate(-45deg)}

/* Top CTA icon consistency. */
.topbar-actions .btn .dashicons{
  width:15px;
  height:15px;
  font-size:15px;
}

@media(max-width:1100px){
  .assignments-local-toolbar{
    align-items:stretch;
    flex-direction:column;
    gap:10px;
  }
  .assignment-list-tools{
    width:100%;
    margin-left:0;
    justify-content:flex-start;
    flex-wrap:wrap;
  }
  .assignment-list-table .assignment-row-actions-cell{
    width:60%;
  }
  .assignment-row-actions{
    flex-wrap:wrap;
  }
  .task-quick-actions-panel{
    order:3;
    width:100%;
  }
  .task-row-clickable.task-quick-open .task-quick-actions-panel{
    max-width:100%;
  }
}


/* v132 — task details aligned with group UI */

/* Global task list: two quick actions fit cleanly, no clipping. */
@media(min-width:1101px){
  .assignments-module .table-scroll{overflow:visible}
}
.assignment-list-table .assignment-task-main{width:48%}
.assignment-list-table .assignment-row-actions-cell{width:52%}
.task-row-clickable.task-quick-open .task-quick-actions-panel{max-width:390px}

/* Concrete assignment topbar mirrors the group header pattern. */
.assignment-topbar{
  gap:18px;
  min-height:72px;
}
.assignment-topbar-title{
  min-width:0;
  display:flex;
  flex-direction:column;
  gap:5px;
}
.assignment-topbar-mainline{
  display:flex;
  align-items:center;
  gap:9px;
  min-width:0;
  flex-wrap:wrap;
}
.assignment-topbar-name{
  color:var(--text);
  font-size:19px;
  font-weight:780;
  line-height:1.2;
}
.assignment-topbar-group{
  display:inline-flex;
  align-items:center;
  gap:5px;
  color:var(--muted);
  font-size:11px;
}
.assignment-topbar-group a{
  color:var(--text);
  font-weight:700;
  text-decoration:none;
}
.assignment-topbar-group a:hover{color:#101828}
.assignment-topbar-group-icon{
  width:21px!important;
  height:21px!important;
  flex:0 0 21px!important;
  font-size:11px!important;
  border-radius:5px!important;
}
.assignment-topbar-difficulty{
  display:flex;
  align-items:center;
  gap:8px;
  color:var(--muted);
  font-size:10px;
}
.assignment-topbar-difficulty .difficulty-meter i{
  width:20px;
  height:6px;
}
.assignment-topbar-actions{
  margin-left:auto;
}
.assignment-topbar-actions .btn{
  display:inline-flex;
  align-items:center;
  gap:6px;
}
.assignment-topbar-actions .btn .dashicons{width:15px;height:15px;font-size:15px}

/* Local W toku / Zamknięte submenu + sort. */
.assignment-members-toolbar{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:24px;
  margin:0 0 12px;
  padding:0 2px;
}
.assignment-members-local-nav{margin:0}
.assignment-detail-sort-control{
  margin-left:auto;
}
.assignment-members-card{
  padding-top:0;
  overflow:visible;
}

/* Student realization rows: no column labels. */
.assignment-student-view{
  display:flex;
  flex-direction:column;
}
.assignment-member-row{
  display:grid;
  grid-template-columns:minmax(270px,1.4fr) minmax(180px,.75fr) minmax(250px,1fr);
  gap:20px;
  align-items:center;
  min-height:72px;
  padding:13px 0;
  border-bottom:1px solid var(--line);
  cursor:pointer;
  transition:background-color .14s ease;
}
.assignment-member-row:last-child{border-bottom:0}
.assignment-member-row:hover{background:#f6f7fa}
.assignment-member-row:focus-visible{outline:2px solid var(--primary);outline-offset:-2px}
.assignment-member-identity{
  display:flex;
  align-items:center;
  gap:10px;
  min-width:0;
}
.assignment-member-copy{min-width:0}
.assignment-member-name-row{
  display:flex;
  align-items:center;
  gap:8px;
  flex-wrap:wrap;
}
.assignment-member-name{
  color:var(--text);
  font-size:12px;
  transition:color .14s ease;
}
.assignment-member-row:hover .assignment-member-name{color:#101828}
.assignment-member-meta{
  margin-top:4px;
  color:var(--muted);
  font-size:10px;
  line-height:1.35;
  transition:color .14s ease;
}
.assignment-member-row:hover .assignment-member-meta{color:#475467}
.assignment-member-status{
  display:inline-flex;
  align-items:center;
  gap:6px;
  font-size:10px;
  font-weight:700;
  white-space:nowrap;
}
.assignment-member-status-dot{
  width:7px;height:7px;flex:0 0 7px;border-radius:50%;
}
.assignment-member-status.problem{color:#b42318}
.assignment-member-status.problem .assignment-member-status-dot{
  background:#d92d20;box-shadow:0 0 0 3px #fde9e7;
}
.assignment-member-status.review{color:#237a57}
.assignment-member-status.review .assignment-member-status-dot{
  background:#2f9e6f;box-shadow:0 0 0 3px #e7f6ef;
}

/* Progress is deliberately obvious: thicker track + percent on the right. */
.assignment-member-progress{
  display:flex;
  align-items:center;
  gap:10px;
  min-width:0;
}
.assignment-member-progress-track{
  flex:1;
  height:9px;
  overflow:hidden;
  border-radius:5px;
  background:#e9edf3;
}
.assignment-member-progress-fill{
  display:block;
  height:100%;
  border-radius:5px;
  background:#1b93d2;
}
.assignment-member-progress-value{
  min-width:36px;
  color:#4f596c;
  font-size:11px;
  text-align:right;
}

/* Details + dots + hidden quick action, same as elsewhere. */
.assignment-member-actions{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:7px;
  min-width:0;
}
.assignment-member-quick-panel{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:7px;
  max-width:0;
  margin-right:-7px;
  overflow:hidden;
  opacity:0;
  visibility:hidden;
  pointer-events:none;
  transform:translateY(-8px);
  transition:max-width .27s cubic-bezier(.2,.7,.2,1),margin-right .27s cubic-bezier(.2,.7,.2,1),opacity .16s ease,transform .22s cubic-bezier(.2,.7,.2,1),visibility 0s linear .27s;
}
.assignment-member-quick-action{
  flex:0 0 auto;
  min-height:34px;
  display:inline-flex;
  align-items:center;
  gap:6px;
  white-space:nowrap;
  opacity:0;
  transform:translateY(-7px);
  transition:background-color .14s ease,border-color .14s ease,color .14s ease,opacity .18s ease,transform .22s cubic-bezier(.2,.7,.2,1);
}
.assignment-member-row.quick-open .assignment-member-quick-panel{
  max-width:190px;
  margin-right:0;
  opacity:1;
  visibility:visible;
  pointer-events:auto;
  transform:translateY(0);
}
.assignment-member-row.quick-open .assignment-member-quick-action{
  opacity:1;transform:translateY(0)
}
.assignment-member-quick-toggle.btn.small{
  flex:0 0 34px;width:34px;min-width:34px;height:34px;min-height:34px;padding:0;display:inline-grid;place-items:center
}
.assignment-member-details-btn{
  flex:0 0 auto;min-height:34px;display:inline-flex;align-items:center;gap:6px
}
.assignment-member-details-btn .dashicons,
.assignment-member-quick-action .dashicons{width:15px;height:15px;font-size:15px}
.assignment-member-cancelled{background:#f5f6f8!important;opacity:.62}

/* Shared lightweight icons in assignment actions/modals. */
.assignment-topbar .light-action-icon,
.assignment-member-quick-action .light-action-icon,
.finish-review-modal-actions .light-action-icon,
.assignment-performers-actions .light-action-icon,
.cancel-student-assignment-modal .light-action-icon{
  position:relative;display:inline-block;width:14px;height:14px;flex:0 0 14px
}
.assignment-topbar .light-action-icon.cross::before,.assignment-topbar .light-action-icon.cross::after,
.assignment-member-quick-action .light-action-icon.cross::before,.assignment-member-quick-action .light-action-icon.cross::after,
.finish-review-modal-actions .light-action-icon.cross::before,.finish-review-modal-actions .light-action-icon.cross::after,
.assignment-performers-actions .light-action-icon.cross::before,.assignment-performers-actions .light-action-icon.cross::after,
.cancel-student-assignment-modal .light-action-icon.cross::before,.cancel-student-assignment-modal .light-action-icon.cross::after{
  content:"";position:absolute;left:6.2px;top:2.2px;width:1.4px;height:9.6px;border-radius:2px;background:currentColor
}
.assignment-topbar .light-action-icon.cross::before,.assignment-member-quick-action .light-action-icon.cross::before,
.finish-review-modal-actions .light-action-icon.cross::before,.assignment-performers-actions .light-action-icon.cross::before,
.cancel-student-assignment-modal .light-action-icon.cross::before{transform:rotate(45deg)}
.assignment-topbar .light-action-icon.cross::after,.assignment-member-quick-action .light-action-icon.cross::after,
.finish-review-modal-actions .light-action-icon.cross::after,.assignment-performers-actions .light-action-icon.cross::after,
.cancel-student-assignment-modal .light-action-icon.cross::after{transform:rotate(-45deg)}
.finish-review-modal-actions .light-action-icon.check::before,
.assignment-performers-actions .light-action-icon.check::before{
  content:"";position:absolute;left:3.6px;top:1.8px;width:5px;height:8px;border-right:1.4px solid currentColor;border-bottom:1.4px solid currentColor;transform:rotate(42deg)
}

/* Refined grade/close modal. */
.finish-review-performer,
.assignment-grade-performer{
  display:flex;align-items:center;justify-content:center;gap:5px;flex-wrap:wrap
}
.finish-review-group-icon,
.assignment-grade-group-icon{
  width:20px!important;height:20px!important;flex:0 0 20px!important;font-size:10px!important;border-radius:5px!important
}
.assignment-grade-modal input[readonly],
.assignment-grade-modal textarea[readonly]{
  background:#f6f7f9;color:#50596a
}
.assignment-grade-modal .finish-review-modal-actions .btn{
  display:inline-flex;align-items:center;gap:6px
}

/* Performer editor proposal: one focused modal, no second-level menu. */
.assignment-performers-modal{
  position:relative;
  width:min(650px,calc(100vw - 32px));
  max-height:calc(100vh - 44px);
  overflow:auto;
  border-radius:10px;
  background:#fff;
  box-shadow:0 24px 80px rgba(15,23,42,.28);
  padding:24px;
}
.assignment-performers-modal-head{text-align:center}
.assignment-performers-modal-head h2{margin:7px 0 5px;font-size:20px}
.assignment-performers-modal-head p{display:flex;align-items:center;justify-content:center;gap:5px;margin:0;color:var(--muted);font-size:11px}
.assignment-performers-toolbar{
  display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:18px
}
.assignment-performers-toolbar .group-students-search{flex:1;max-width:320px}
.assignment-performers-count{color:var(--muted);font-size:10.5px}
.assignment-performers-count strong{color:var(--text)}
.assignment-performers-note{
  margin:10px 0;padding:10px 12px;border:1px solid #e3e6ed;border-radius:7px;background:#f8f9fb;color:#687184;font-size:10px;line-height:1.5
}
.assignment-performers-list{
  max-height:330px;overflow:auto;border-top:1px solid var(--line);border-bottom:1px solid var(--line)
}
.assignment-performer-option{
  display:grid;grid-template-columns:18px 36px 1fr;align-items:center;gap:10px;padding:10px 4px;border-bottom:1px solid var(--line);cursor:pointer
}
.assignment-performer-option:last-child{border-bottom:0}
.assignment-performer-option:hover{background:#f7f8fa}
.assignment-performer-option.locked{opacity:.62;cursor:not-allowed}
.assignment-performer-copy{display:flex;flex-direction:column;gap:3px}
.assignment-performer-copy strong{font-size:11.5px}
.assignment-performer-copy small{color:var(--muted);font-size:9.5px}
.assignment-performers-actions{
  display:flex;justify-content:flex-end;gap:7px;margin-top:16px
}
.assignment-performers-actions .btn{display:inline-flex;align-items:center;gap:6px}

/* Modal overlays in these new assignment flows use dimming, no extra app blur. */
#assignmentPerformersModal,
#assignmentGradeModal,
#cancelStudentAssignmentModal{
  backdrop-filter:none;
}

/* Archived/cancelled header badge colors. */
.assignment-status-closed{background:#e8f6ef;color:#1f7b58}
.assignment-status-cancelled{background:#f3eef0;color:#86515c}

/* Finish-review modal action icons. */
.finish-review-modal-actions .btn{display:inline-flex;align-items:center;gap:6px}

@media(max-width:1100px){
  .assignment-topbar{align-items:flex-start;flex-direction:column;height:auto;padding-top:12px;padding-bottom:12px}
  .assignment-topbar-actions{width:100%;margin-left:0;flex-wrap:wrap}
  .assignment-members-toolbar{align-items:stretch;flex-direction:column;gap:10px}
  .assignment-detail-sort-control{margin-left:0}
  .assignment-member-row{grid-template-columns:minmax(250px,1fr) minmax(180px,.7fr)}
  .assignment-member-actions{grid-column:1/-1}
}
@media(max-width:700px){
  .assignment-member-row{grid-template-columns:1fr;gap:10px}
  .assignment-member-actions{grid-column:auto}
  .assignment-performers-toolbar{align-items:stretch;flex-direction:column}
}


/* v133 — assignment realization separation + progress states + delete action */

/* Progress palette by completion percentage:
   <10 red, 10–29 orange, 30–99 blue, 100 green. */
.assignment-member-progress-fill.progress-red{background:#d92d20}
.assignment-member-progress-fill.progress-orange{background:#d98718}
.assignment-member-progress-fill.progress-blue{background:#5b7fb8}
.assignment-member-progress-fill.progress-green{background:#2f9e6f}

/* Topbar actions remain neutral; destructive meaning is deferred to modals. */
.assignment-topbar .delete-assignment-trigger,
.assignment-topbar .cancel-assignment-trigger{
  background:#fff;
  border-color:var(--line);
  color:var(--text);
}
.assignment-topbar .delete-assignment-trigger:hover,
.assignment-topbar .cancel-assignment-trigger:hover{
  background:#f5f6f8;
  border-color:#c9cfda;
  color:var(--text);
  transform:none!important;
}

/* Permanent-delete modal: explicit typed confirmation, no blur. */
#deleteAssignmentModal{backdrop-filter:none}
.delete-assignment-modal{width:min(540px,calc(100vw - 32px))}
.delete-assignment-note{margin-top:7px!important;color:var(--muted)}
.delete-assignment-confirm-box{
  margin-top:18px;
  padding:14px;
  border:1px solid #ead7db;
  border-radius:8px;
  background:#fffafb;
  text-align:left;
}
.delete-assignment-confirm-box label{
  display:block;
  margin-bottom:9px;
  color:#5f4a4f;
  font-size:11px;
  line-height:1.5;
}
.delete-assignment-confirm-box label strong{
  color:var(--text);
  font-size:12px;
}
.delete-assignment-confirm-box input{
  width:100%;
  height:38px;
  padding:0 10px;
  border:1px solid var(--line);
  border-radius:6px;
  background:#fff;
  color:var(--text);
  font:inherit;
  font-size:12px;
  outline:none;
  box-sizing:border-box;
}
.delete-assignment-confirm-box input:focus{
  border-color:#b7bfd0;
  box-shadow:0 0 0 3px rgba(79,70,229,.08);
}
.delete-assignment-modal .confirm-modal-actions .btn{
  display:inline-flex;
  align-items:center;
  gap:6px;
}
.delete-assignment-modal .confirm-modal-actions .btn:disabled{
  opacity:.42;
  cursor:not-allowed;
}

/* Lightweight cross geometry for cancel buttons in assignment confirmation modals. */
.delete-assignment-modal .light-action-icon.cross,
.cancel-assignment-modal .light-action-icon.cross{
  position:relative;
  display:inline-block;
  width:14px;
  height:14px;
  flex:0 0 14px;
}
.delete-assignment-modal .light-action-icon.cross::before,
.delete-assignment-modal .light-action-icon.cross::after,
.cancel-assignment-modal .light-action-icon.cross::before,
.cancel-assignment-modal .light-action-icon.cross::after{
  content:"";
  position:absolute;
  left:6.2px;
  top:2.2px;
  width:1.4px;
  height:9.6px;
  border-radius:2px;
  background:currentColor;
}
.delete-assignment-modal .light-action-icon.cross::before,
.cancel-assignment-modal .light-action-icon.cross::before{transform:rotate(45deg)}
.delete-assignment-modal .light-action-icon.cross::after,
.cancel-assignment-modal .light-action-icon.cross::after{transform:rotate(-45deg)}


/* v134 — assignment submenu visibility fix
   `.assignment-student-view { display:flex }` was overriding the browser's
   native `[hidden] { display:none }`, so both W toku and Zamknięte rendered
   at the same time despite JS toggling the `hidden` property correctly. */
.assignment-student-view[hidden]{
  display:none!important;
}


/* v135 — cross-section layout alignment + archived group refresh */

/* Moje grupy uses exactly the same toolbar geometry as Wszystkie zadania. */
.groups-list-toolbar{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:24px;
  margin:0 0 12px;
  padding:0 2px;
}
.groups-list-toolbar .groups-list-local-nav{
  margin:0;
  flex:0 0 auto;
}
.groups-list-tools{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:12px;
  margin-left:auto;
}
.groups-list-sort-control{
  display:flex;
  align-items:center;
  gap:7px;
  color:var(--muted);
  font-size:10.5px;
  white-space:nowrap;
}
.groups-list-sort-control .select-control{
  min-width:180px;
}

/* The card itself now starts at the same vertical position/padding as task listing. */
#groupsModule{
  padding-top:0!important;
}
.groups-list-toolbar + #groupsModule,
.assignments-local-toolbar + .assignments-module{
  margin-top:0;
}

/* Archived group: same clean local-navigation treatment, no redundant card heading. */
.archived-group-members-toolbar{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:24px;
  margin:0 0 12px;
  padding:0 2px;
}
.archived-group-local-nav{
  margin:0;
}
.archived-group-local-nav .static-segment{
  cursor:default;
}
.archived-group-local-nav .static-segment:hover{
  color:var(--text);
}
.archived-group-students-table{
  width:100%;
  table-layout:fixed;
}
.archived-group-students-table td{
  padding-top:14px;
  padding-bottom:14px;
}
.archived-group-students-table td:first-child{
  width:58%;
}
.archived-group-students-table .actions-col{
  width:42%;
  text-align:right;
}
.archived-group-student-row{
  cursor:pointer;
  transition:background-color .14s ease;
}
.archived-group-student-row .name{
  color:var(--text);
  font-weight:700;
  transition:color .14s ease;
}
.archived-group-student-row:hover{
  background:#f6f7fa;
}
.archived-group-student-row:hover .name{
  color:#101828;
}
.archived-group-student-row:focus-visible{
  outline:2px solid var(--primary);
  outline-offset:-2px;
}
.archived-student-activity-btn{
  display:inline-flex;
  align-items:center;
  gap:6px;
}
.archived-student-activity-btn .dashicons{
  width:15px;
  height:15px;
  font-size:15px;
}

/* Delete assignment modal: centered, darker confirmation box. */
.delete-assignment-modal #deleteAssignmentModalTitle{
  text-align:center;
}
.delete-assignment-confirm-box{
  margin-top:18px;
  padding:16px;
  border:1px solid #30384a;
  border-radius:8px;
  background:#2a3140;
  text-align:center;
}
.delete-assignment-confirm-box label{
  display:block;
  margin-bottom:11px;
  color:#e8ebf2;
  font-size:11px;
  line-height:1.55;
  text-align:center;
}
.delete-assignment-confirm-box label strong{
  color:#fff;
  font-size:12px;
}
.delete-assignment-confirm-box input{
  max-width:360px;
  margin:0 auto;
  display:block;
  background:#fff;
  color:#171a2b;
  text-align:center;
}
.delete-assignment-modal .confirm-modal-actions{
  justify-content:center;
}
.delete-assignment-modal .confirm-modal-actions .btn{
  align-items:center;
  justify-content:center;
}
.delete-assignment-modal #confirmDeleteAssignment .dashicons-trash{
  position:static!important;
  top:auto!important;
  transform:none!important;
  align-self:center;
  line-height:15px!important;
}

/* Grade/summary modal: footer centered; Zapisz uses the same light check. */
.assignment-grade-modal .finish-review-modal-actions{
  justify-content:center;
}
.assignment-grade-modal .finish-review-modal-actions .btn{
  justify-content:center;
}
.assignment-grade-modal .grade-save-icon{
  position:relative;
  display:inline-block;
  width:14px;
  height:14px;
  flex:0 0 14px;
}
.assignment-grade-modal .grade-save-icon[hidden],
.assignment-grade-modal .grade-edit-icon[hidden]{
  display:none!important;
}
.assignment-grade-modal .grade-save-icon::before{
  content:"";
  position:absolute;
  left:3.6px;
  top:1.8px;
  width:5px;
  height:8px;
  border-right:1.4px solid currentColor;
  border-bottom:1.4px solid currentColor;
  transform:rotate(42deg);
  transform-origin:center;
}

@media(max-width:900px){
  .groups-list-toolbar{
    align-items:stretch;
    flex-direction:column;
    gap:10px;
  }
  .groups-list-tools{
    width:100%;
    margin-left:0;
    justify-content:flex-start;
  }
}


/* v136 — destructive confirmation boxes + archived student row actions */

/* Destructive typed-confirmation box: dark red, shared by task and group deletion. */
.delete-assignment-confirm-box,
.delete-group-confirm-box{
  margin-top:18px!important;
  padding:16px!important;
  border:1px solid #7a2530!important;
  border-radius:8px!important;
  background:#7d2833!important;
  text-align:center!important;
}
.delete-assignment-confirm-box label,
.delete-group-confirm-box label{
  display:block!important;
  margin-bottom:11px!important;
  color:#fdecef!important;
  font-size:11px!important;
  line-height:1.55!important;
  text-align:center!important;
}
.delete-assignment-confirm-box label strong,
.delete-group-confirm-box label strong{
  color:#fff!important;
  font-size:12px!important;
}
.delete-assignment-confirm-box input,
.delete-group-confirm-box input{
  display:block!important;
  width:100%!important;
  max-width:360px!important;
  height:38px!important;
  margin:0 auto!important;
  padding:0 10px!important;
  border:1px solid rgba(255,255,255,.55)!important;
  border-radius:6px!important;
  background:#fff!important;
  color:#171a2b!important;
  text-align:center!important;
  box-sizing:border-box!important;
}
.delete-assignment-confirm-box input:focus,
.delete-group-confirm-box input:focus{
  border-color:#fff!important;
  box-shadow:0 0 0 3px rgba(255,255,255,.18)!important;
}

/* Keep destructive-modal action rows centered in both variants. */
.delete-assignment-modal .confirm-modal-actions,
.delete-group-modal .confirm-modal-actions{
  justify-content:center!important;
}

/* Grade modal: Save is the only emphasized action while editing. */
.assignment-grade-modal #editAssignmentGrade.primary{
  background:var(--primary);
  border-color:var(--primary);
  color:#fff;
}
.assignment-grade-modal #editAssignmentGrade.primary:hover{
  color:#fff;
  transform:none!important;
}

/* Archived group: same Details + ⋮ action language as active group. */
.archived-group-students-table td:first-child{
  width:38%!important;
}
.archived-group-students-table .actions-col{
  width:62%!important;
}
.archived-student-row-actions{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:7px;
  overflow:visible;
}
.archived-group-student-row.student-quick-open .student-quick-actions-panel{
  max-width:360px;
  margin-right:0;
  opacity:1;
  visibility:visible;
  pointer-events:auto;
  transform:translateY(0);
}
.archived-group-student-row.student-quick-open .student-quick-actions-panel .student-quick-action-text{
  opacity:1;
  transform:translateY(0);
}
.archived-group-student-row.student-quick-open .student-quick-actions-panel .student-quick-action-text:hover{
  transform:translateY(0);
}

/* Archived group topbar icons stay aligned with the active-group buttons. */
#groupTopbarActions .btn .btn-icon{
  width:15px;
  height:15px;
  font-size:15px;
  line-height:15px;
  flex:0 0 15px;
}


/* v137 — student assignment detail redesign */

/* Top actions: no movement, consistent icons. */
.review-page-v98 ~ *{}
.topbar .student-task-cancel-trigger,
.topbar #openFinishReviewModal{
  display:inline-flex;
  align-items:center;
  gap:6px;
}
.topbar .student-task-cancel-trigger:hover,
.topbar #openFinishReviewModal:hover{
  transform:none!important;
}

/* Header identity + state */
.review-student-identity-v137{
  align-items:center;
}
.student-assignment-status{
  display:inline-flex;
  align-items:center;
  gap:6px;
  font-size:11px;
  font-weight:750;
  white-space:nowrap;
}
.student-assignment-status-dot{
  width:7px;
  height:7px;
  flex:0 0 7px;
  border-radius:50%;
}
.student-assignment-status.problem{color:#b42318}
.student-assignment-status.problem .student-assignment-status-dot{
  background:#d92d20;
  box-shadow:0 0 0 3px #fde9e7;
}
.student-assignment-status.review{color:#237a57}
.student-assignment-status.review .student-assignment-status-dot{
  background:#2f9e6f;
  box-shadow:0 0 0 3px #e7f6ef;
}
.student-assignment-status.closed{color:#667085}
.student-assignment-status.closed .student-assignment-status-dot{
  background:#98a2b3;
  box-shadow:0 0 0 3px #eef0f4;
}
.review-student-task-v137{
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:5px!important;
}
.review-task-group-icon{
  width:20px!important;
  height:20px!important;
  flex:0 0 20px!important;
  font-size:10px!important;
  border-radius:5px!important;
}

/* Progress and step count stay together. */
.review-progress-summary-v137{
  grid-template-columns:minmax(360px,1fr) 180px!important;
}
.review-progress-green{
  background:#2f9e6f!important;
}

/* Secondary summary: active problem highlighted, historical counts neutral. */
.review-activity-summary{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:10px;
  margin-top:14px;
}
.review-activity-stat{
  min-height:70px;
  display:flex;
  flex-direction:column;
  justify-content:center;
  gap:4px;
  padding:12px 14px;
  border:1px solid var(--line);
  border-radius:7px;
  background:#fafbfc;
}
.review-activity-stat strong{
  color:var(--text);
  font-size:17px;
  line-height:1.2;
}
.review-activity-stat span{
  color:var(--muted);
  font-size:10.5px;
  line-height:1.35;
}
.review-activity-stat.attention{
  border-color:#e8a4aa;
  background:#fff1f2;
}
.review-activity-stat.attention strong,
.review-activity-stat.attention span{
  color:#b42318;
}

/* Local submenu above the single content box. */
.student-assignment-view-toolbar{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:24px;
  margin:0 0 12px;
  padding:0 2px;
}
.student-assignment-local-nav{
  margin:0;
}
.student-workflow-card{
  padding-top:0;
}
.student-assignment-subview[hidden]{
  display:none!important;
}

/* Problem terminology and state directly on the message. */
.problem-report-count{
  display:inline-flex;
  align-items:center;
  padding:4px 6px;
  border-radius:5px;
  background:#fdebed;
  color:#a84b58;
  font-size:9px;
  font-weight:750;
}
.review-page-v98 .teacher-message-bubble.student.problem-report{
  border-color:#e7a7ad;
  background:#fff1f2;
}
.review-page-v98 .teacher-message-bubble.student.problem-report.problem-resolved{
  border-color:var(--line);
  background:#fff;
}

.review-page-v98 .teacher-message-problem-label .dashicons{
  width:12px;
  height:12px;
  font-size:12px;
}
.problem-resolution-action{
  display:flex;
  justify-content:flex-start;
  margin:6px 0 0;
}
.resolve-problem-btn{
  display:inline-flex!important;
  align-items:center!important;
  gap:6px!important;
  min-height:29px!important;
  padding:5px 8px!important;
  font-size:9.5px!important;
}
.resolve-problem-btn:disabled{
  opacity:.72;
  cursor:default;
}
.resolve-problem-btn .resolve-problem-check{
  position:relative;
  display:inline-block;
  width:13px;
  height:13px;
  flex:0 0 13px;
}
.resolve-problem-btn .resolve-problem-check::before{
  content:"";
  position:absolute;
  left:3.3px;
  top:1.6px;
  width:4.5px;
  height:7.5px;
  border-right:1.4px solid currentColor;
  border-bottom:1.4px solid currentColor;
  transform:rotate(42deg);
}

/* Teacher's own messages: lighter navy instead of almost black. */
.review-page-v98 .teacher-message-bubble.mine{
  border-color:#4b5175!important;
  background:#4b5175!important;
}
.review-page-v98 .teacher-message-bubble.mine p{
  color:#fff;
}
.review-page-v98 .teacher-message-bubble.mine .teacher-message-time{
  color:rgba(255,255,255,.74);
}

/* Send buttons consistently carry an icon. */
.review-page-v98 .teacher-send-message{
  display:inline-flex;
  align-items:center;
  gap:6px;
}
.review-page-v98 .teacher-send-message .dashicons{
  width:15px;
  height:15px;
  font-size:15px;
}

/* Content subview reuses the catalog stepper without teacher-editing chrome. */
.student-assignment-content-view .task-stepper-top{
  margin-top:0;
}
.student-assignment-content-view .catalog-step{
  border-left:0;
  border-right:0;
  border-bottom:0;
  border-radius:0;
  padding-left:0;
  padding-right:0;
}
.student-assignment-content-view .catalog-step:first-child{
  border-top:0;
}

/* Lightweight check/cross support in this page topbar and modal. */
.topbar .light-action-icon,
.cancel-student-task-modal .light-action-icon,
.finish-review-modal .light-action-icon{
  position:relative;
  display:inline-block;
  width:14px;
  height:14px;
  flex:0 0 14px;
}
.topbar .light-action-icon.cross::before,
.topbar .light-action-icon.cross::after,
.cancel-student-task-modal .light-action-icon.cross::before,
.cancel-student-task-modal .light-action-icon.cross::after{
  content:"";
  position:absolute;
  left:6.2px;
  top:2.2px;
  width:1.4px;
  height:9.6px;
  border-radius:2px;
  background:currentColor;
}
.topbar .light-action-icon.cross::before,
.cancel-student-task-modal .light-action-icon.cross::before{transform:rotate(45deg)}
.topbar .light-action-icon.cross::after,
.cancel-student-task-modal .light-action-icon.cross::after{transform:rotate(-45deg)}
.topbar .light-action-icon.check::before,
.finish-review-modal .light-action-icon.check::before{
  content:"";
  position:absolute;
  left:3.6px;
  top:1.8px;
  width:5px;
  height:8px;
  border-right:1.4px solid currentColor;
  border-bottom:1.4px solid currentColor;
  transform:rotate(42deg);
}

#cancelStudentTaskModal{backdrop-filter:none}

@media(max-width:900px){
  .review-progress-summary-v137{
    grid-template-columns:1fr!important;
  }
  .review-activity-summary{
    grid-template-columns:1fr 1fr;
  }
}
@media(max-width:620px){
  .review-activity-summary{
    grid-template-columns:1fr;
  }
}


/* v138 — student assignment header/progress/problem lifecycle */

/* Topbar: page context + student identity + group in one line. */
.student-assignment-topbar{
  gap:18px;
}
.student-assignment-topbar-left{
  min-width:0;
  display:flex;
  align-items:center;
  gap:12px;
  flex-wrap:wrap;
}
.student-assignment-topbar-left .page-title{
  flex:0 0 auto;
}
.student-assignment-topbar-person{
  display:flex;
  align-items:center;
  gap:7px;
  min-width:0;
}
.student-assignment-topbar-avatar{
  width:32px;
  height:32px;
  flex:0 0 32px;
  border-radius:50%;
  aspect-ratio:1;
}
.student-assignment-topbar-avatar .student-avatar-icon{
  font-size:15px!important;
}
.student-assignment-topbar-name{
  color:var(--text);
  font-size:12.5px;
  white-space:nowrap;
}
.student-assignment-topbar-group{
  display:inline-flex;
  align-items:center;
  gap:5px;
  color:var(--muted);
  font-size:10.5px;
  white-space:nowrap;
}
.student-assignment-topbar-group a{
  color:var(--text);
  font-weight:700;
  text-decoration:none;
}
.student-assignment-topbar-group-icon{
  width:24px;
  height:24px;
  flex:0 0 24px;
  font-size:12px;
  border-radius:5px;
}

/* Full-width progress card. */
.student-progress-overview-card{
  padding:20px 22px;
  margin-bottom:12px;
}
.student-progress-overview-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  margin-bottom:10px;
}
.student-progress-overview-title{
  display:flex;
  align-items:baseline;
  gap:7px;
  min-width:0;
}
.student-progress-overview-title > strong{
  color:var(--text);
  font-size:13px;
}
.student-progress-overview-title > span{
  color:var(--muted);
  font-size:10.5px;
}
.student-progress-overview-value{
  color:var(--text);
  font-size:18px;
}
.student-progress-overview-track{
  height:10px!important;
}
.student-progress-overview-fill{
  background:#2f9e6f!important;
}

/* Four summary boxes directly below the progress card. */
.review-activity-summary-v138{
  margin:0 0 18px!important;
}
.review-activity-summary-v138 .review-activity-stat{
  min-height:74px;
}

/* Problem information sits next to the student name inside the bubble. */
.teacher-message-author-line{
  display:flex;
  align-items:center;
  gap:8px;
  flex-wrap:wrap;
  margin-bottom:5px;
}
.review-page-v98 .teacher-message-author-line .teacher-message-author{
  margin:0;
}
.review-page-v98 .teacher-message-problem-label{
  display:inline-flex;
  align-items:center;
  gap:4px;
  margin:0;
  color:#b42318;
  font-size:9.5px;
  font-weight:750;
  line-height:1;
}
.review-page-v98 .teacher-message-problem-label.resolved{
  color:#237a57;
}
.review-page-v98 .teacher-message-problem-label.resolved .dashicons{
  color:#237a57;
}

/* Active problem overrides the normal step state with an exclamation. */
.review-page-v98 .review-step-item.has-active-problem .review-step-state{
  background:#fdebed;
  color:#b42318;
}
.review-page-v98 .review-step-item.has-active-problem .review-step-state .dashicons{
  color:#b42318;
}

/* Resolving removes the action button; history remains as green text. */
.resolve-problem-btn{
  background:#fff!important;
  border-color:var(--line)!important;
  color:var(--text)!important;
}
.resolve-problem-btn:hover{
  background:#f5f6f8!important;
  border-color:#c9cfda!important;
  color:var(--text)!important;
  transform:none!important;
}
.resolve-problem-btn[hidden]{
  display:none!important;
}

/* Assignment-specific teacher comments shown read-only in task content. */
.student-assignment-teacher-comment{
  margin-top:14px;
  padding:11px 12px;
  border:1px solid #dfe5ef;
  border-radius:7px;
  background:#f7f9fc;
}
.student-assignment-teacher-comment[hidden]{
  display:none!important;
}
.student-assignment-teacher-comment-head{
  display:flex;
  align-items:center;
  gap:6px;
  margin-bottom:5px;
  color:#53627b;
}
.student-assignment-teacher-comment-head .dashicons{
  width:15px;
  height:15px;
  font-size:15px;
}
.student-assignment-teacher-comment-head strong{
  font-size:10.5px;
}
.student-assignment-teacher-comment-value{
  color:#4b5568;
  font-size:10.5px;
  line-height:1.55;
}

/* Difficulty meter semantic palette. */

.difficulty-meter.difficulty-level-2 i.active{
  background:#00cca8!important;
}
.difficulty-meter.difficulty-level-3 i.active{
  background:#5474ba!important;
}
.difficulty-meter.difficulty-level-4 i.active{
  background:#d98718!important;
}
.difficulty-meter.difficulty-level-5 i.active{
  background:#d92d20!important;
}

/* Inactive difficulty boxes remain neutral. */
.difficulty-meter i:not(.active){
  background:#e1e5ec!important;
}

@media(max-width:900px){
  .student-assignment-topbar{
    align-items:flex-start;
    flex-direction:column;
    height:auto;
    padding-top:12px;
    padding-bottom:12px;
  }
  .student-assignment-topbar .topbar-actions{
    width:100%;
    margin-left:0;
  }
  .student-assignment-topbar-person{
    flex-wrap:wrap;
  }
}


/* v139 — student assignment topbar, progress, stat cards, problem geometry */

/* Long task names: preserve action buttons and truncate only the title. */
.student-assignment-topbar{
  display:flex;
  align-items:center;
  gap:18px;
}
.student-assignment-topbar-context{
  min-width:0;
  flex:1 1 auto;
  display:flex;
  align-items:center;
  gap:9px;
}
.student-assignment-topbar-task-name{
  min-width:0;
  max-width:min(36vw,440px);
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  color:var(--text);
  font-size:18px;
  font-weight:780;
  line-height:1.2;
}
.student-assignment-topbar-relation{
  flex:0 0 auto;
  color:var(--muted);
  font-size:10.5px;
  white-space:nowrap;
}
.student-assignment-topbar-person{
  min-width:0;
  display:flex;
  align-items:center;
  gap:7px;
  flex:0 1 auto;
}
.student-assignment-topbar-name{
  flex:0 0 auto;
}
.student-assignment-topbar-group{
  min-width:0;
}
.student-assignment-topbar-group a{
  display:inline-block;
  max-width:190px;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  vertical-align:bottom;
}

/* Progress needs to read as the main summary element. */
.student-progress-overview-card{
  padding:22px 24px!important;
}
.student-progress-overview-title{
  align-items:center!important;
  gap:10px!important;
}
.student-progress-overview-title > strong{
  font-size:17px!important;
  font-weight:800!important;
}
.student-progress-overview-title > span{
  color:#596275!important;
  font-size:13px!important;
  font-weight:650!important;
}
.student-progress-overview-value{
  font-size:21px!important;
  font-weight:800!important;
}

/* Four stats use the same visual grammar as dashboard .stat cards. */
.student-assignment-stats-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:12px;
  margin:0 0 18px;
}
.student-assignment-stat{
  min-height:112px;
  padding:18px!important;
}
.student-assignment-stat .stat-label{
  margin-bottom:9px;
}
.student-assignment-stat .stat-value{
  line-height:1.05;
}
.student-assignment-stat .student-assignment-stat-value-date{
  padding-top:5px;
  font-size:18px;
  letter-spacing:-.015em;
  white-space:nowrap;
}
.student-assignment-stat-alert{
  border-color:#e4a2aa!important;
  background:#fff3f4!important;
}
.student-assignment-stat-alert .stat-label,
.student-assignment-stat-alert .stat-value,
.student-assignment-stat-alert .stat-note{
  color:#b42318!important;
}

/* W toku has a neutral gray state; active problem temporarily overrides it. */
.review-page-v98 .review-step-item.in-progress .review-step-state{
  background:#eef0f4;
  color:#667085;
}
.review-page-v98 .review-step-item.in-progress .review-step-state .dashicons{
  color:#667085;
}
.review-page-v98 .review-step-item.has-active-problem .review-step-state{
  background:#fdebed!important;
  color:#b42318!important;
}
.review-page-v98 .review-step-item.has-active-problem .review-step-state .dashicons{
  color:#b42318!important;
}

/* Problem action is a separate row below the whole problem bubble. */
.review-page-v98 .teacher-message-row.other .problem-message-stack{
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  max-width:min(76%,680px);
}
.review-page-v98 .problem-message-stack > .teacher-message-bubble{
  max-width:100%!important;
}
.review-page-v98 .problem-message-stack .problem-resolution-action{
  width:100%;
  justify-content:flex-start;
  margin:7px 0 0!important;
}
.review-page-v98 .problem-message-stack .resolve-problem-btn{
  margin:0;
}

/* Time remains legible in the red problem mode. */
.review-page-v98 .teacher-message-bubble.student.problem-report:not(.problem-resolved) .teacher-message-time{
  color:#323a4c!important;
}

/* After solving: neutral bubble + green history label. */
.review-page-v98 .teacher-message-bubble.student.problem-report.problem-resolved{
  border-color:#dfe3ea!important;
  background:#fff!important;
}
.review-page-v98 .teacher-message-bubble.problem-resolved .teacher-message-time{
  color:#8a93a6!important;
}

@media(max-width:1100px){
  .student-assignment-topbar-context{
    flex-wrap:wrap;
  }
  .student-assignment-topbar-task-name{
    max-width:48vw;
  }
  .student-assignment-stats-grid{
    grid-template-columns:1fr 1fr;
  }
}
@media(max-width:700px){
  .student-assignment-topbar-task-name{
    max-width:100%;
    flex:1 1 100%;
  }
  .student-assignment-topbar-relation{
    margin-left:0;
  }
  .student-assignment-stats-grid{
    grid-template-columns:1fr;
  }
}


/* v140 — student assignment compact progress + listing-like step workflow */

/* Progress summary: only steps, activity and optional problem alert. */
.student-progress-overview-title{
  min-width:0;
  flex:1;
}
.student-progress-copyline{
  display:flex;
  align-items:center;
  gap:7px;
  flex-wrap:wrap;
  min-width:0;
}
.student-progress-steps-copy{
  color:var(--text);
  font-size:15px;
  font-weight:650;
}
.student-progress-last-activity{
  color:var(--muted);
  font-size:11.5px;
  font-weight:500;
}
.student-progress-problem-alert{
  display:inline-flex;
  align-items:center;
  gap:6px;
  color:#b42318;
  font-size:10.5px;
  font-weight:700;
  white-space:nowrap;
}
.student-progress-problem-alert[hidden]{display:none!important}
.student-progress-problem-dot{
  width:7px;
  height:7px;
  flex:0 0 7px;
  border-radius:50%;
  background:#d92d20;
  box-shadow:0 0 0 3px #fde9e7;
}

.student-assignment-state-separator{
  height:1px;
  margin:17px 0 13px;
  background:var(--line);
}
.student-assignment-state-copy{
  color:#596275;
  font-size:11.5px;
  line-height:1.5;
}
.student-assignment-state-copy.state-completed{
  color:#237a57;
}
.student-assignment-state-copy.state-closed{
  color:#4f596c;
}

/* Workflow rows now use the same list language as the rest of the portal. */
.review-step-list-v100 .review-step-item{
  position:relative;
}
.review-step-row{
  display:grid;
  grid-template-columns:28px minmax(0,1fr) auto;
  align-items:center;
  gap:11px;
  min-height:62px;
  padding:12px 0;
  cursor:pointer;
  transition:background-color .14s ease;
}
.review-step-row:hover{
  background:#f6f7fa;
}
.review-step-row:focus-visible{
  outline:2px solid var(--primary);
  outline-offset:-2px;
}
.review-step-main-v140{
  min-width:0;
}
.review-step-main-v140 > strong{
  color:var(--text);
  font-size:12px;
  transition:color .14s ease;
}
.review-step-row:hover .review-step-main-v140 > strong{
  color:#101828;
}
.review-step-subline{
  display:flex;
  align-items:center;
  gap:5px;
  flex-wrap:wrap;
  margin-top:3px;
  color:var(--muted);
  font-size:9.5px;
}
.review-step-subsep{
  color:#b0b7c4;
}
.review-step-problem-count.active{
  color:#b42318;
  font-weight:700;
}
.review-step-row-actions{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:7px;
  min-width:0;
}
.review-step-details-btn,
.review-step-show-content{
  display:inline-flex!important;
  align-items:center!important;
  gap:6px!important;
}
.review-step-details-btn .dashicons,
.review-step-show-content .dashicons{
  width:15px;
  height:15px;
  font-size:15px;
}
.review-step-quick-toggle.btn.small{
  flex:0 0 34px;
  width:34px;
  min-width:34px;
  height:34px;
  min-height:34px;
  padding:0;
  display:inline-grid;
  place-items:center;
}
.review-step-quick-panel{
  display:flex;
  align-items:center;
  max-width:0;
  margin-right:-7px;
  overflow:hidden;
  opacity:0;
  visibility:hidden;
  pointer-events:none;
  transform:translateY(-8px);
  transition:max-width .25s cubic-bezier(.2,.7,.2,1),margin-right .25s cubic-bezier(.2,.7,.2,1),opacity .16s ease,transform .2s ease,visibility 0s linear .25s;
}
.review-step-item.quick-open .review-step-quick-panel{
  max-width:210px;
  margin-right:0;
  opacity:1;
  visibility:visible;
  pointer-events:auto;
  transform:translateY(0);
}
.review-step-item .review-step-detail{
  padding:0 0 14px 39px;
}

/* No chevrons in the workflow list. */
.review-step-chevron{
  display:none!important;
}

/* Problem resolution is structurally below the problem bubble. */
.problem-message-stack{
  display:flex;
  flex-direction:column;
  align-items:flex-start;
}
.problem-resolution-action{
  margin-top:7px!important;
  justify-content:flex-start!important;
}

/* Empty conversation wording. */
.teacher-conversation-empty{
  color:var(--muted);
}

/* Assignment content terminology. */
.student-assignment-teacher-comment-head strong{
  font-weight:750;
}

/* State-specific top buttons */
.student-assignment-topbar .topbar-actions .btn.primary{
  background:var(--primary);
  border-color:var(--primary);
  color:#fff;
}
.student-assignment-topbar .topbar-actions .btn[hidden]{
  display:none!important;
}

@media(max-width:820px){
  .review-step-row{
    grid-template-columns:28px minmax(0,1fr);
  }
  .review-step-row-actions{
    grid-column:2;
    justify-content:flex-start;
    flex-wrap:wrap;
  }
  .review-step-item .review-step-detail{
    padding-left:0;
  }
}


/* v141 — progress thresholds, reactions, archived assignment alignment */

/* Student assignment overview uses the same progress thresholds as assignment lists. */
.student-progress-overview-fill.progress-red{background:#d92d20!important}
.student-progress-overview-fill.progress-orange{background:#d98718!important}
.student-progress-overview-fill.progress-blue{background:#5b7fb8!important}
.student-progress-overview-fill.progress-green{background:#2f9e6f!important}

/* Message interaction wrapper + animated reaction picker. */
.review-page-v98 .message-interaction-wrap{
  position:relative;
  width:fit-content;
  max-width:100%;
}
.review-page-v98 .message-interaction-wrap > .teacher-message-bubble{
  max-width:100%!important;
}
.message-reaction-picker{
  position:absolute;
  z-index:12;
  right:8px;
  top:-20px;
  display:flex;
  align-items:center;
  gap:2px;
  padding:4px 5px;
  border:1px solid #dde2ea;
  border-radius:999px;
  background:#fff;
  box-shadow:0 8px 24px rgba(15,23,42,.12);
  opacity:0;
  visibility:hidden;
  pointer-events:none;
  transform:translateY(5px) scale(.97);
  transform-origin:right bottom;
  transition:opacity .16s ease,transform .18s cubic-bezier(.2,.7,.2,1),visibility 0s linear .18s;
}
.message-interaction-wrap:hover .message-reaction-picker,
.message-interaction-wrap:focus-within .message-reaction-picker{
  opacity:1;
  visibility:visible;
  pointer-events:auto;
  transform:translateY(0) scale(1);
  transition-delay:0s;
}
.message-reaction-option{
  width:28px;
  height:28px;
  display:grid;
  place-items:center;
  padding:0;
  border:0;
  border-radius:50%;
  background:transparent;
  font-size:16px;
  line-height:1;
  cursor:pointer;
  transition:background-color .12s ease,transform .12s ease;
}
.message-reaction-option:hover,
.message-reaction-option.selected{
  background:#f0f2f6;
  transform:scale(1.12);
}
.message-reaction-chip{
  position:absolute;
  left:8px;
  bottom:-18px;
  z-index:4;
  display:inline-flex;
  align-items:center;
  gap:4px;
  min-height:25px;
  padding:2px 7px;
  border:1px solid #dfe3ea;
  border-radius:999px;
  background:#fff;
  color:#4b5568;
  box-shadow:0 2px 8px rgba(15,23,42,.08);
  font-size:12px;
  cursor:pointer;
}
.message-reaction-chip[hidden]{display:none!important}
.message-reaction-chip-count{
  font-size:9px;
  font-weight:750;
  color:#667085;
}
.message-interaction-wrap:has(.message-reaction-chip:not([hidden])){
  margin-bottom:15px;
}

/* Own latest comment: unobtrusive delete action revealed on hover. */
.review-page-v98 .teacher-message-row.mine{
  position:relative;
}
.own-message-actions{
  align-self:center;
  margin-right:5px;
  opacity:0;
  visibility:hidden;
  transform:translateX(4px);
  transition:opacity .14s ease,transform .16s ease,visibility 0s linear .16s;
}
.teacher-message-row.mine:hover .own-message-actions,
.teacher-message-row.mine:focus-within .own-message-actions{
  opacity:1;
  visibility:visible;
  transform:translateX(0);
}
.own-message-delete{
  display:inline-flex;
  align-items:center;
  gap:4px;
  padding:4px 6px;
  border:0;
  border-radius:5px;
  background:transparent;
  color:#8a93a6;
  font-size:9px;
  cursor:pointer;
}
.own-message-delete:hover{
  background:#f3f4f6;
  color:#a84b58;
}
.own-message-delete .dashicons{
  width:13px;
  height:13px;
  font-size:13px;
}

/* Archived student detail is read-only: conversation history stays visible. */
.assignment-chat-readonly .teacher-conversation-composer,
.assignment-chat-readonly .problem-resolution-action,
.assignment-chat-readonly .own-message-actions,
.assignment-chat-readonly .message-reaction-picker{
  display:none!important;
}

/* Archived assignment uses the active assignment list geometry. */
.archived-assignment-members-toolbar{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:24px;
  margin:0 0 12px;
  padding:0 2px;
}
.archived-assignment-local-nav{
  margin:0;
}
.archived-assignment-local-nav .static-segment{
  cursor:default;
}
.archived-assignment-members-card{
  padding-top:0!important;
  overflow:visible;
}
.archived-assignment-member-row{
  cursor:pointer;
}
.archived-assignment-member-row:hover{
  background:#f6f7fa;
}
.archived-assignment-member-row:hover .assignment-member-name{
  color:#101828;
}

/* Bugfix: only one separator around task-stepper navigation; steps themselves have no borders. */
.assignment-content-card .catalog-step.task-stepper-step,
.student-assignment-content-view .catalog-step.student-task-stepper-step{
  border:0!important;
  border-top:0!important;
  border-bottom:0!important;
}
.assignment-content-card .catalog-step-list,
.student-assignment-content-view .catalog-step-list{
  gap:0!important;
}


/* v142 — safer reaction hover + global row hover polish */

/* The first message sits at the top edge of a scroll container.
   Its reaction palette must stay INSIDE that edge instead of opening upward
   and getting clipped. Later messages may still open the palette above. */
.review-page-v98 .teacher-conversation-messages > .teacher-message-row:first-child .message-reaction-picker{
  top:7px;
  right:8px;
  transform:scale(.97);
  transform-origin:right top;
}
.review-page-v98 .teacher-conversation-messages > .teacher-message-row:first-child .message-interaction-wrap:hover .message-reaction-picker,
.review-page-v98 .teacher-conversation-messages > .teacher-message-row:first-child .message-interaction-wrap:focus-within .message-reaction-picker{
  transform:scale(1);
}

/* Clickable rows across the product should not look like a hard gray slab.
   Fade from white -> established hover gray -> white. */
[data-href]:hover,
.review-step-row:hover{
  background:
    linear-gradient(
      90deg,
      #fff 0%,
      #f6f7fa 14%,
      #f6f7fa 86%,
      #fff 100%
    )!important;
  background-color:transparent!important;
}

/* Keep table cells transparent so the row gradient remains continuous. */
tr[data-href]:hover > td,
#groupStudentsTable tbody tr.group-member-clickable:hover > td{
  background:transparent!important;
}

/* Group-member rows use JS navigation but historically did not carry data-href. */
#groupStudentsTable tbody tr.group-member-clickable:hover{
  background:
    linear-gradient(
      90deg,
      #fff 0%,
      #f6f7fa 14%,
      #f6f7fa 86%,
      #fff 100%
    )!important;
}

/* Catalog cards are also whole-card navigation targets. */
.task-library-card-v87[data-href]:hover{
  background:
    linear-gradient(
      90deg,
      #fff 0%,
      #f6f7fa 14%,
      #f6f7fa 86%,
      #fff 100%
    )!important;
}


/* v143 — compact reactions + own-message delete placement */

/* Selected reaction lives in the existing message footer.
   This avoids increasing the scrollable height just because a reaction was added. */
.review-page-v98 .message-interaction-wrap .teacher-message-footer{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:8px;
}
.review-page-v98 .message-interaction-wrap .teacher-message-footer:has(.message-reaction-chip:not([hidden])){
  justify-content:space-between;
}
.review-page-v98 .message-reaction-chip{
  position:static!important;
  left:auto!important;
  right:auto!important;
  top:auto!important;
  bottom:auto!important;
  min-height:20px!important;
  height:20px!important;
  padding:0 5px!important;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border:1px solid #dfe3ea;
  border-radius:999px;
  background:#fff;
  color:#4b5568;
  box-shadow:none;
  line-height:1;
}
.review-page-v98 .message-reaction-chip[hidden]{
  display:none!important;
}
.review-page-v98 .message-reaction-chip-emoji{
  font-size:12px;
  line-height:1;
}
.review-page-v98 .message-reaction-chip-count{
  display:none!important;
}

/* Old v141 rule added extra space under reacted messages.
   With the chip inside the footer it is no longer necessary. */
.review-page-v98 .message-interaction-wrap:has(.message-reaction-chip:not([hidden])){
  margin-bottom:0!important;
}

/* Own-message delete action belongs BELOW the bubble, aligned to its right edge. */
.review-page-v98 .teacher-message-row.mine{
  flex-direction:column;
  align-items:flex-end;
  justify-content:flex-start;
}
.review-page-v98 .teacher-message-row.mine .own-message-actions{
  align-self:flex-end;
  margin:5px 0 0;
  transform:translateY(-2px);
}
.review-page-v98 .teacher-message-row.mine:hover .own-message-actions,
.review-page-v98 .teacher-message-row.mine:focus-within .own-message-actions{
  transform:translateY(0);
}


/* v144 — group student context + send icon alignment */

/* Envelope in chat send CTA: optically centered. */
.review-page-v98 .teacher-send-message .dashicons-email-alt{
  display:inline-grid!important;
  place-items:center!important;
  width:16px!important;
  height:16px!important;
  line-height:16px!important;
  font-size:15px!important;
  position:relative;
  top:1px;
}

/* Group member row: contextual membership date below the name. */
.student-group-joined{
  margin-top:3px;
  color:var(--muted);
  font-size:9.8px;
  line-height:1.35;
}

/* Student context topbar mirrors assignment/group contextual headers. */
.student-context-topbar{
  gap:18px;
}
.student-context-topbar-title{
  min-width:0;
  display:flex;
  align-items:center;
  gap:8px;
}
.student-context-topbar-avatar{
  width:32px!important;
  height:32px!important;
  flex:0 0 32px!important;
}
.student-context-topbar-avatar .student-avatar-icon{
  font-size:16px!important;
}
.student-context-topbar-name{
  color:var(--text);
  font-size:18px;
  font-weight:780;
  white-space:nowrap;
}
.student-context-topbar-group{
  display:inline-flex;
  align-items:center;
  gap:5px;
  color:var(--muted);
  font-size:10.5px;
  white-space:nowrap;
}
.student-context-topbar-group a{
  color:var(--text);
  font-weight:700;
  text-decoration:none;
}
.student-context-topbar-group-icon{
  width:20px!important;
  height:20px!important;
  flex:0 0 20px!important;
  font-size:10px!important;
  border-radius:5px!important;
}
.student-context-topbar-actions .btn{
  display:inline-flex;
  align-items:center;
  gap:6px;
}
.student-context-topbar-actions .btn .dashicons{
  width:15px;
  height:15px;
  font-size:15px;
  line-height:15px;
}

/* Task submenu and card. */
.student-context-tasks-toolbar{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  margin:0 0 12px;
  padding:0 2px;
}
.student-context-local-nav{
  margin:0;
}
.student-context-tasks-card{
  padding-top:0!important;
  overflow:visible;
}
.student-context-task-view[hidden]{
  display:none!important;
}
.student-context-task-row{
  display:grid;
  grid-template-columns:minmax(280px,1.4fr) minmax(200px,.8fr) 92px auto;
  align-items:center;
  gap:18px;
  min-height:72px;
  padding:13px 0;
  border-bottom:1px solid var(--line);
  cursor:pointer;
}
.student-context-task-row:last-child{
  border-bottom:0;
}
.student-context-task-copy{
  min-width:0;
}
.student-context-task-name{
  color:var(--text);
  font-size:12px;
  transition:color .14s ease;
}
.student-context-task-row:hover .student-context-task-name{
  color:#101828;
}
.student-context-task-meta{
  display:flex;
  align-items:center;
  gap:6px;
  flex-wrap:wrap;
  margin-top:4px;
  color:var(--muted);
  font-size:10px;
}
.student-context-task-status{
  font-weight:700;
}
.student-context-task-status.review{
  color:#237a57;
}
.student-context-task-status.progress{
  color:#5b6f92;
}
.student-context-task-progress{
  display:flex;
  align-items:center;
  gap:9px;
}
.student-context-task-grade{
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  gap:2px;
  min-width:72px;
}
.student-task-grade-label{
  color:var(--muted);
  font-size:9px;
}
.student-task-grade-value{
  color:var(--text);
  font-size:15px;
}
.student-context-task-actions{
  display:flex;
  justify-content:flex-end;
}
.student-context-task-actions .btn{
  display:inline-flex;
  align-items:center;
  gap:6px;
}

/* Student settings follows the one-column group settings language. */
.student-context-settings-grid{
  grid-template-columns:1fr!important;
}
.student-settings-avatar-current{
  display:flex;
  align-items:center;
  gap:12px;
  margin-bottom:18px;
}
.student-settings-avatar-current .sub{
  margin-top:3px;
  color:var(--muted);
  font-size:10px;
}
.student-context-color-title{
  margin-top:18px;
}
.student-avatar-save-actions{
  justify-content:flex-end;
  margin-top:16px;
}

/* Settings topbar back button. */
.student-context-topbar + .breadcrumbs{}
.student-context-topbar .topbar-actions .btn{
  display:inline-flex;
  align-items:center;
  gap:6px;
}

@media(max-width:1000px){
  .student-context-task-row{
    grid-template-columns:minmax(240px,1fr) minmax(180px,.8fr) auto;
  }
  .student-context-task-grade{
    grid-column:1;
  }
  .student-context-task-actions{
    grid-column:3;
    grid-row:1 / span 2;
  }
}
@media(max-width:760px){
  .student-context-topbar{
    align-items:flex-start;
    flex-direction:column;
    height:auto;
    padding-top:12px;
    padding-bottom:12px;
  }
  .student-context-topbar-actions{
    width:100%;
    margin-left:0;
    flex-wrap:wrap;
  }
  .student-context-task-row{
    grid-template-columns:1fr;
    gap:9px;
  }
  .student-context-task-grade,
  .student-context-task-actions{
    grid-column:auto;
    grid-row:auto;
  }
  .student-context-task-actions{
    justify-content:flex-start;
  }
}


/* v145 — stable workflow quick actions + contextual task content editing */

/* Quick actions must NOT change the width of a workflow row.
   They float to the left of Details/⋮ instead of becoming a new grid width. */
.review-step-row-actions{
  position:relative;
  flex:0 0 auto;
}
.review-step-quick-panel{
  position:absolute!important;
  right:calc(100% + 7px)!important;
  top:50%!important;
  width:max-content!important;
  max-width:none!important;
  margin-right:0!important;
  overflow:visible!important;
  transform:translateY(calc(-50% - 8px))!important;
  z-index:8;
}
.review-step-item.quick-open .review-step-quick-panel{
  max-width:none!important;
  margin-right:0!important;
  transform:translateY(-50%)!important;
}
.student-workflow-card,
.review-step-list-v100,
.review-step-item{
  overflow:visible!important;
}

/* Closed student-realization badge. */
.student-assignment-topbar-context #studentAssignmentClosedBadge[hidden]{
  display:none!important;
}

/* Assignment content page uses exactly the same contextual header as assignment detail. */
.assignment-content-topbar .assignment-topbar-title{
  min-width:260px;
}
.assignment-content-topbar-actions{
  margin-left:auto;
  flex-wrap:nowrap;
}
.assignment-content-topbar-actions .btn{
  display:inline-flex;
  align-items:center;
  gap:6px;
  white-space:nowrap;
}

/* A task step is an ordered sequence of content blocks.
   Text and images may repeat in any order and any count. */
.task-content-sequence{
  display:flex;
  flex-direction:column;
  gap:16px;
}
.task-content-block{
  margin:0!important;
}
.task-content-block-text p{
  margin:0;
}
.task-content-block-image .catalog-media-placeholder{
  margin:0!important;
}

/* Teacher assignment-specific information per current step. */
.current-step-information-summary{
  margin-top:18px;
  padding-top:16px;
  border-top:1px solid var(--line);
}
.current-step-information-summary .current-step-comment-head{
  align-items:center;
}
.current-step-information-summary .current-step-comment-head > strong{
  font-size:11.5px;
}
.current-step-information-summary .current-step-comment-value{
  margin-top:6px;
  color:var(--muted);
  font-size:11px;
  line-height:1.55;
}
.current-step-information-summary .current-step-comment-actions{
  display:flex;
  align-items:center;
  gap:7px;
}
.current-step-information-summary .current-step-comment-actions .btn,
.current-step-information-summary .current-step-comment-edit-actions .btn{
  display:inline-flex;
  align-items:center;
  gap:6px;
}
.current-step-information-summary .current-step-comment-edit textarea{
  margin-top:8px;
}
.current-step-information-summary .current-step-comment-edit-actions{
  display:flex!important;
  justify-content:flex-start!important;
  gap:7px;
  margin-top:8px;
}

/* New light X/check stay optically centered. */
.current-step-information-summary .light-action-icon{
  position:relative;
  display:inline-block;
  width:14px;
  height:14px;
  flex:0 0 14px;
}
.current-step-information-summary .light-action-icon.cross::before,
.current-step-information-summary .light-action-icon.cross::after{
  content:"";
  position:absolute;
  left:6.2px;
  top:2.2px;
  width:1.4px;
  height:9.6px;
  border-radius:2px;
  background:currentColor;
}
.current-step-information-summary .light-action-icon.cross::before{transform:rotate(45deg)}
.current-step-information-summary .light-action-icon.cross::after{transform:rotate(-45deg)}
.current-step-information-summary .light-action-icon.check::before{
  content:"";
  position:absolute;
  left:3.6px;
  top:1.8px;
  width:5px;
  height:8px;
  border-right:1.4px solid currentColor;
  border-bottom:1.4px solid currentColor;
  transform:rotate(42deg);
}

@media(max-width:1100px){
  .assignment-content-topbar{
    align-items:flex-start;
    flex-direction:column;
    height:auto;
    padding-top:12px;
    padding-bottom:12px;
  }
  .assignment-content-topbar-actions{
    width:100%;
    margin-left:0;
    flex-wrap:wrap;
  }
  .review-step-quick-panel{
    position:static!important;
    transform:none!important;
    width:auto!important;
  }
}


/* v146 — task-content step summary + split content/information views */

/* Top actions, including copy+edit and flag error report. */
.assignment-content-topbar-actions .btn{
  display:inline-flex;
  align-items:center;
  gap:6px;
}
.assignment-content-topbar-actions .dashicons{
  width:15px;
  height:15px;
  font-size:15px;
  line-height:15px;
}

/* Step navigator is a standalone summary card, visually related to student task progress. */
.task-content-progress-card{
  padding:20px 22px;
  margin-bottom:12px;
}
.task-content-progress-top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
}
.task-content-step-label{
  color:var(--text);
  font-size:15px;
  font-weight:700;
}
.task-content-step-switch{
  display:flex;
  align-items:center;
  gap:6px;
}
.task-content-step-switch-btn{
  width:34px;
  height:34px;
  display:inline-grid;
  place-items:center;
  padding:0;
  border:1px solid var(--line);
  border-radius:6px;
  background:#fff;
  color:#5d6678;
  cursor:pointer;
  transition:background-color .14s ease,border-color .14s ease,color .14s ease;
}
.task-content-step-switch-btn:hover:not(:disabled){
  background:#f5f6f8;
  border-color:#c9cfda;
  color:var(--text);
}
.task-content-step-switch-btn:disabled{
  opacity:.38;
  cursor:not-allowed;
}
.task-content-step-switch-btn .dashicons{
  width:16px;
  height:16px;
  font-size:16px;
}
.task-content-progress-percent-row{
  display:flex;
  justify-content:flex-end;
  margin-top:8px;
  margin-bottom:6px;
}
.task-content-progress-percent{
  color:var(--text);
  font-size:17px;
  font-weight:800;
}
.task-content-progress-track{
  width:100%;
  height:10px;
  overflow:hidden;
  border-radius:999px;
  background:#e9edf3;
}
.task-content-progress-fill{
  display:block;
  height:100%;
  border-radius:999px;
  transition:width .2s ease,background-color .16s ease;
}
.task-content-progress-fill.progress-red{background:#d92d20}
.task-content-progress-fill.progress-orange{background:#d98718}
.task-content-progress-fill.progress-blue{background:#5b7fb8}
.task-content-progress-fill.progress-green{background:#2f9e6f}
.task-content-full-name{
  margin-top:15px;
  color:var(--text);
  font-size:18px;
  font-weight:760;
  line-height:1.35;
}

/* Local content / teacher-information tabs. */
.task-content-local-toolbar{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  margin:0 0 12px;
  padding:0 2px;
}
.task-content-local-nav{
  margin:0;
}
.task-content-subview[hidden]{
  display:none!important;
}
.task-content-view-card{
  padding-top:0!important;
}

/* In content view the old numbered pagination no longer exists. */
.task-content-view-card .task-stepper-top{
  display:none!important;
}

/* One-row table-like teacher information view.
   Action column is stable and only the relevant controls appear. */
.task-content-information-view{
  padding:0;
}
.assignment-information-row{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:24px;
  align-items:center;
  min-height:86px;
  padding:16px 0;
  border-bottom:1px solid var(--line);
}
.assignment-information-row:last-child{
  border-bottom:0;
}
.assignment-information-copy{
  min-width:0;
}
.assignment-information-copy > strong{
  display:block;
  color:var(--text);
  font-size:12px;
  margin-bottom:5px;
}
.assignment-information-value{
  color:#4b5568;
  font-size:11px;
  line-height:1.55;
}
.assignment-information-value.empty{
  color:var(--muted);
}
.assignment-information-actions{
  min-width:220px;
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:7px;
}
.assignment-information-actions .btn{
  display:inline-flex;
  align-items:center;
  gap:6px;
  white-space:nowrap;
}
.assignment-information-row[hidden],
.assignment-information-actions .btn[hidden]{
  display:none!important;
}
.assignment-information-edit-row{
  align-items:start;
}
.assignment-information-edit-row textarea{
  width:100%;
  min-height:110px;
  box-sizing:border-box;
  padding:10px 12px;
  border:1px solid var(--line);
  border-radius:7px;
  background:#fff;
  color:var(--text);
  font:inherit;
  font-size:12px;
  resize:vertical;
}
.assignment-information-edit-row textarea:focus{
  outline:none;
  border-color:#b7bfd0;
  box-shadow:0 0 0 3px rgba(79,70,229,.08);
}

/* Lightweight edit-row icons. */
.assignment-information-actions .light-action-icon{
  position:relative;
  display:inline-block;
  width:14px;
  height:14px;
  flex:0 0 14px;
}
.assignment-information-actions .light-action-icon.cross::before,
.assignment-information-actions .light-action-icon.cross::after{
  content:"";
  position:absolute;
  left:6.2px;
  top:2.2px;
  width:1.4px;
  height:9.6px;
  border-radius:2px;
  background:currentColor;
}
.assignment-information-actions .light-action-icon.cross::before{transform:rotate(45deg)}
.assignment-information-actions .light-action-icon.cross::after{transform:rotate(-45deg)}
.assignment-information-actions .light-action-icon.check::before{
  content:"";
  position:absolute;
  left:3.6px;
  top:1.8px;
  width:5px;
  height:8px;
  border-right:1.4px solid currentColor;
  border-bottom:1.4px solid currentColor;
  transform:rotate(42deg);
}

@media(max-width:800px){
  .assignment-information-row{
    grid-template-columns:1fr;
    gap:10px;
  }
  .assignment-information-actions{
    min-width:0;
    justify-content:flex-start;
  }
  .task-content-full-name{
    font-size:16px;
  }
}


/* v147 — tighter step controls + simplified teacher-information states */

/* Krok X z X + chevrons form one compact left group.
   Percentage mirrors it on the right, both close to the progress bar. */
.task-content-progress-meta{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  margin-bottom:7px;
}
.task-content-progress-step-group{
  display:flex;
  align-items:center;
  gap:9px;
}
.task-content-progress-step-group .task-content-step-switch{
  margin-left:1px;
}
.task-content-step-label{
  font-size:14px!important;
  font-weight:700!important;
}
.task-content-step-switch-btn{
  width:30px!important;
  height:30px!important;
}
.task-content-progress-percent{
  font-size:15px!important;
  font-weight:750!important;
}
.task-content-full-name{
  margin-top:20px!important;
  font-size:17px!important;
  font-weight:600!important;
  line-height:1.42!important;
}

/* Empty teacher-information state: centered Add CTA + explanation underneath. */
.assignment-information-state{
  min-height:150px;
  padding:26px 20px;
}
.assignment-information-empty-state{
  min-height:100px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  text-align:center;
}
.assignment-information-empty-state[hidden],
.assignment-information-inline-actions[hidden],
.assignment-information-value[hidden],
.assignment-information-edit-state[hidden]{
  display:none!important;
}
.assignment-information-add{
  display:inline-flex!important;
  align-items:center;
  gap:6px;
}
.assignment-information-empty-note{
  max-width:620px;
  margin-top:10px;
  color:var(--muted);
  font-size:10.5px;
  line-height:1.5;
}

/* Existing information: no heading, larger message, controls directly below left. */
.assignment-information-filled{
  display:block;
}
.assignment-information-value{
  max-width:900px;
  color:var(--text)!important;
  font-size:14px!important;
  line-height:1.65!important;
  font-weight:450;
}
.assignment-information-inline-actions{
  display:flex;
  align-items:center;
  justify-content:flex-start;
  gap:7px;
  margin-top:12px;
}


/* Editing: textarea plus Cancel/Save underneath on the left. */
.assignment-information-edit-state{
  padding:24px 20px;
}


.assignment-information-edit-actions{
  display:flex;
  justify-content:flex-start!important;
  gap:7px;
  margin-top:9px;
}
.assignment-information-edit-actions .btn{
  display:inline-flex;
  align-items:center;
  gap:6px;
}

/* Modal actions now consistently carry X/trash icons. */


@media(max-width:700px){
  .task-content-progress-meta{
    align-items:flex-start;
  }
  .task-content-progress-step-group{
    flex-wrap:wrap;
  }
}


/* v148 — teacher information block refinement */

/* One stable block; no extra bottom padding/min-height in the empty state. */
.task-content-information-view{
  padding:0!important;
}
.assignment-information-state{
  min-height:0!important;
  padding:0!important;
}
.assignment-information-display,
.assignment-information-edit-state{
  padding:18px 18px!important;
}
.assignment-information-display[hidden],
.assignment-information-edit-state[hidden],
.assignment-information-empty-state[hidden],
.assignment-information-inline-actions[hidden],
.assignment-information-value[hidden]{
  display:none!important;
}

/* Empty state: compact, centered, without artificial empty space below. */
.assignment-information-empty-state{
  min-height:0!important;
  padding:8px 0 4px!important;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  text-align:center;
}
.assignment-information-empty-note{
  max-width:650px;
  margin-top:10px!important;
  color:var(--muted);
  font-size:10.5px;
  line-height:1.5;
}

/* Filled state: message centered and bold, actions centered underneath. */
.assignment-information-value{
  max-width:900px!important;
  margin:0 auto!important;
  color:var(--text)!important;
  font-size:15px!important;
  line-height:1.65!important;
  font-weight:700!important;
  text-align:center!important;
}
.assignment-information-inline-actions{
  display:flex;
  align-items:center;
  justify-content:flex-start!important;
  gap:7px;
  margin-top:12px!important;
}
.assignment-information-inline-actions .btn{
  display:inline-flex;
  align-items:center;
  gap:6px;
}
.assignment-information-inline-actions #taskStepCommentDelete{
  color:var(--text)!important;
  background:#fff!important;
  border-color:var(--line)!important;
}
.assignment-information-inline-actions #taskStepCommentDelete:hover{
  color:var(--text)!important;
  background:#f5f6f8!important;
  border-color:#c9cfda!important;
  transform:none!important;
}

/* Editing replaces the same content area; no second-section feeling. */
.assignment-information-edit-state{
  min-height:0!important;
}
.assignment-information-edit-state textarea{
  width:100%;
  min-height:130px;
  box-sizing:border-box;
  padding:11px 12px;
  border:1px solid var(--line);
  border-radius:7px;
  background:#fff;
  color:var(--text);
  font:inherit;
  font-size:13px;
  line-height:1.55;
  resize:vertical;
}
.assignment-information-edit-state textarea:focus{
  outline:none;
  border-color:#b7bfd0;
  box-shadow:0 0 0 3px rgba(79,70,229,.08);
}
.assignment-information-edit-actions{
  display:flex;
  justify-content:flex-start!important;
  align-items:center;
  gap:7px;
  margin-top:10px!important;
}
.assignment-information-edit-actions .btn{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:6px!important;
}

/* Restore/guarantee the lightweight X + check icons in edit mode. */
.assignment-information-edit-actions .light-action-icon{
  position:relative!important;
  display:inline-block!important;
  width:14px!important;
  height:14px!important;
  flex:0 0 14px!important;
}
.assignment-information-edit-actions .light-action-icon.cross::before,
.assignment-information-edit-actions .light-action-icon.cross::after{
  content:"";
  position:absolute;
  left:6.2px;
  top:2.2px;
  width:1.4px;
  height:9.6px;
  border-radius:2px;
  background:currentColor;
}
.assignment-information-edit-actions .light-action-icon.cross::before{
  transform:rotate(45deg);
}
.assignment-information-edit-actions .light-action-icon.cross::after{
  transform:rotate(-45deg);
}
.assignment-information-edit-actions .light-action-icon.check::before{
  content:"";
  position:absolute;
  left:3.6px;
  top:1.8px;
  width:5px;
  height:8px;
  border-right:1.4px solid currentColor;
  border-bottom:1.4px solid currentColor;
  transform:rotate(42deg);
}


/* v149 — task editor rebuilt to mirror task-content preview */

/* Delete-information modal cleanup. */
.delete-step-comment-modal .confirm-modal-actions .btn{
  display:inline-flex;
  align-items:center;
  gap:6px;
}
.delete-step-comment-modal .light-action-icon{
  position:relative;
  display:inline-block;
  width:14px;
  height:14px;
  flex:0 0 14px;
}
.delete-step-comment-modal .light-action-icon.cross::before,
.delete-step-comment-modal .light-action-icon.cross::after{
  content:"";
  position:absolute;
  left:6.2px;
  top:2.2px;
  width:1.4px;
  height:9.6px;
  border-radius:2px;
  background:currentColor;
}
.delete-step-comment-modal .light-action-icon.cross::before{transform:rotate(45deg)}
.delete-step-comment-modal .light-action-icon.cross::after{transform:rotate(-45deg)}

/* Editor topbar. */
.task-editor-topbar .topbar-actions .btn{
  display:inline-flex;
  align-items:center;
  gap:6px;
}

/* Top editor step box. */
.task-editor-step-card{
  padding:20px 22px;
  margin-bottom:12px;
}
.task-editor-step-topline{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:22px;
}
.task-editor-step-left{
  display:flex;
  align-items:center;
  gap:9px;
  min-width:0;
}
.task-editor-step-label{
  color:var(--text);
  font-size:15px;
  font-weight:700;
  white-space:nowrap;
}
.task-editor-step-nav{
  display:flex;
  align-items:center;
  gap:6px;
}
.task-editor-icon-btn,
.task-editor-block-icon-btn{
  width:30px;
  height:30px;
  display:inline-grid;
  place-items:center;
  padding:0;
  border:1px solid var(--line);
  border-radius:6px;
  background:#fff;
  color:#667085;
  cursor:pointer;
  transition:background-color .14s ease,border-color .14s ease,color .14s ease;
}
.task-editor-icon-btn:hover:not(:disabled),
.task-editor-block-icon-btn:hover:not(:disabled){
  background:#f5f6f8;
  border-color:#c9cfda;
  color:var(--text);
}
.task-editor-icon-btn:disabled,
.task-editor-block-icon-btn:disabled{
  opacity:.36;
  cursor:not-allowed;
}
.task-editor-icon-btn .dashicons,
.task-editor-block-icon-btn .dashicons{
  width:15px;
  height:15px;
  font-size:15px;
}
.task-editor-step-actions{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:7px;
  flex-wrap:wrap;
}
.task-editor-step-actions .btn{
  display:inline-flex;
  align-items:center;
  gap:6px;
  white-space:nowrap;
}
.task-editor-save.primary{
  background:var(--primary);
  border-color:var(--primary);
  color:#fff;
}
.task-editor-save:disabled{
  opacity:.48;
  cursor:not-allowed;
}
.task-editor-meta-grid{
  display:grid;
  grid-template-columns:minmax(0,1fr) 210px 180px;
  gap:14px;
  align-items:end;
  margin-top:18px;
  padding-top:17px;
  border-top:1px solid var(--line);
}
.task-editor-meta-grid .field{
  margin:0;
}
.task-editor-name-field input{
  font-size:15px;
  font-weight:600;
}

/* Editable content card. */
.task-editor-content-card{
  padding-top:18px;
}
.task-editor-content-head p{
  max-width:760px;
}
.task-editor-blocks{
  display:flex;
  flex-direction:column;
  gap:12px;
}
.task-editor-block{
  border:1px solid var(--line);
  border-radius:8px;
  background:#fff;
  padding:12px;
}
.task-editor-block-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom:9px;
}
.task-editor-block-type{
  display:flex;
  align-items:center;
  gap:7px;
  color:#5b6475;
}
.task-editor-block-type strong{
  color:var(--text);
  font-size:10.5px;
}
.task-editor-block-type .dashicons{
  width:15px;
  height:15px;
  font-size:15px;
}
.task-editor-block-actions{
  display:flex;
  gap:5px;
}
.task-editor-block-textarea{
  width:100%;
  min-height:120px;
  box-sizing:border-box;
  padding:12px 13px;
  border:1px solid var(--line);
  border-radius:7px;
  background:#fff;
  color:var(--text);
  font:inherit;
  font-size:13px;
  line-height:1.65;
  resize:vertical;
}
.task-editor-block-textarea.highlight{
  min-height:86px;
  font-size:17px;
  line-height:1.45;
  font-weight:750;
}
.task-editor-block-textarea:focus,
.task-editor-image-alt:focus{
  outline:none;
  border-color:#b7bfd0;
  box-shadow:0 0 0 3px rgba(79,70,229,.08);
}
.task-editor-image-block{
  display:flex;
  flex-direction:column;
  gap:10px;
}
.task-editor-image-placeholder{
  min-height:180px;
  display:grid;
  place-items:center;
  align-content:center;
  gap:7px;
  border:1px dashed #cfd5df;
  border-radius:7px;
  background:#fafbfc;
  color:#8a93a6;
}
.task-editor-image-placeholder .dashicons{
  width:26px;
  height:26px;
  font-size:26px;
}
.task-editor-image-placeholder strong{
  font-size:11px;
  color:#667085;
}
.task-editor-image-actions{
  display:grid;
  grid-template-columns:auto minmax(0,1fr);
  gap:9px;
  align-items:center;
}
.task-editor-image-actions .btn{
  display:inline-flex;
  align-items:center;
  gap:6px;
}
.task-editor-image-alt{
  width:100%;
  box-sizing:border-box;
  padding:8px 10px;
  border:1px solid var(--line);
  border-radius:6px;
  font:inherit;
  font-size:11px;
}
.task-editor-add-block{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:7px;
  flex-wrap:wrap;
  margin-top:16px;
  padding-top:15px;
  border-top:1px solid var(--line);
}
.task-editor-add-label{
  margin-right:3px;
  color:var(--muted);
  font-size:10.5px;
  font-weight:650;
}
.task-editor-add-block .btn{
  display:inline-flex;
  align-items:center;
  gap:6px;
}
.task-editor-empty-step{
  padding:28px 18px;
  border:1px dashed var(--line);
  border-radius:7px;
  color:var(--muted);
  font-size:11px;
  text-align:center;
}
.task-editor-structure-note{
  display:flex;
  align-items:flex-start;
  gap:8px;
  margin-top:10px;
  padding:0 2px;
  color:var(--muted);
  font-size:10px;
  line-height:1.5;
}
.task-editor-structure-note .dashicons{
  width:15px;
  height:15px;
  font-size:15px;
  flex:0 0 15px;
}
.task-editor-structure-note p{
  margin:0;
}

/* Delete-step modal. */
.task-editor-delete-step-modal .confirm-modal-actions .btn{
  display:inline-flex;
  align-items:center;
  gap:6px;
}
.task-editor-delete-step-modal .light-action-icon{
  position:relative;
  display:inline-block;
  width:14px;
  height:14px;
  flex:0 0 14px;
}
.task-editor-delete-step-modal .light-action-icon.cross::before,
.task-editor-delete-step-modal .light-action-icon.cross::after{
  content:"";
  position:absolute;
  left:6.2px;
  top:2.2px;
  width:1.4px;
  height:9.6px;
  border-radius:2px;
  background:currentColor;
}
.task-editor-delete-step-modal .light-action-icon.cross::before{transform:rotate(45deg)}
.task-editor-delete-step-modal .light-action-icon.cross::after{transform:rotate(-45deg)}

@media(max-width:1050px){
  .task-editor-step-topline{
    align-items:flex-start;
    flex-direction:column;
  }
  .task-editor-step-actions{
    justify-content:flex-start;
  }
  .task-editor-meta-grid{
    grid-template-columns:1fr 1fr;
  }
  .task-editor-name-field{
    grid-column:1/-1;
  }
}
@media(max-width:700px){
  .task-editor-meta-grid{
    grid-template-columns:1fr;
  }
  .task-editor-name-field{
    grid-column:auto;
  }
  .task-editor-image-actions{
    grid-template-columns:1fr;
  }
}


/* v150 — task editor header + inline step title */

.task-editor-topbar-v150{gap:18px}
.task-editor-header-identity{
  min-width:0;
  flex:1 1 auto;
  display:flex;
  align-items:center;
  gap:12px;
}
.task-editor-title-display{
  min-width:0;
  display:flex;
  align-items:center;
  gap:7px;
}
.task-editor-title-display > span:first-child{
  max-width:min(42vw,620px);
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  color:var(--text);
  font-size:18px;
  font-weight:700;
}
.task-editor-title-edit{
  flex:0 0 auto;
  display:inline-flex!important;
  align-items:center;
  gap:5px;
}
.task-editor-title-editor{
  min-width:260px;
  max-width:min(44vw,650px);
  flex:1 1 420px;
}
.task-editor-title-editor[hidden]{display:none!important}
.task-editor-title-input{
  width:100%;
  box-sizing:border-box;
  height:36px;
  padding:7px 10px;
  border:1px solid #cfd5df;
  border-radius:6px;
  background:#fff;
  color:var(--text);
  font:inherit;
  font-size:15px;
  font-weight:650;
}
.task-editor-title-input:focus{
  outline:none;
  border-color:#b7bfd0;
  box-shadow:0 0 0 3px rgba(79,70,229,.08);
}
.task-editor-inline-difficulty{
  flex:0 0 auto;
  display:flex;
  align-items:center;
  gap:7px;
  margin-left:2px;
  color:var(--muted);
  font-size:10px;
  white-space:nowrap;
}
.task-editor-difficulty-select{
  min-width:168px;
  height:34px;
}
.task-editor-header-actions{margin-left:auto}
.task-editor-header-actions .btn{
  display:inline-flex;
  align-items:center;
  gap:6px;
  white-space:nowrap;
}
.task-editor-header-actions > a{order:1}
.task-editor-header-actions #editorSaveTask{order:2}
.task-editor-header-actions #editorSaveTask[hidden]{display:none!important}

.task-editor-header-actions .light-action-icon{
  position:relative;
  display:inline-block;
  width:14px;
  height:14px;
  flex:0 0 14px;
}
.task-editor-header-actions .light-action-icon.check::before{
  content:"";
  position:absolute;
  left:3.6px;
  top:1.8px;
  width:5px;
  height:8px;
  border-right:1.5px solid currentColor;
  border-bottom:1.5px solid currentColor;
  transform:rotate(42deg);
}

.task-editor-step-title-row{
  display:grid;
  grid-template-columns:auto minmax(0,1fr);
  align-items:center;
  gap:10px;
  margin-top:18px;
  padding-top:17px;
  border-top:1px solid var(--line);
}
.task-editor-step-title-row label{
  color:var(--muted);
  font-size:10.5px;
  font-weight:700;
  white-space:nowrap;
}
.task-editor-step-title-row input{
  width:100%;
  box-sizing:border-box;
  height:36px;
  padding:7px 10px;
  border:1px solid var(--line);
  border-radius:6px;
  background:#fff;
  color:var(--text);
  font:inherit;
  font-size:13px;
  font-weight:600;
}
.task-editor-step-title-row input:focus{
  outline:none;
  border-color:#b7bfd0;
  box-shadow:0 0 0 3px rgba(79,70,229,.08);
}
.task-editor-meta-grid{display:none!important}

@media(max-width:1100px){
  .task-editor-topbar-v150{
    align-items:flex-start;
    flex-direction:column;
    height:auto;
    padding-top:12px;
    padding-bottom:12px;
  }
  .task-editor-header-identity{
    width:100%;
    flex-wrap:wrap;
  }
  .task-editor-header-actions{
    width:100%;
    margin-left:0;
  }
}
@media(max-width:720px){
  .task-editor-title-display > span:first-child{max-width:70vw}
  .task-editor-inline-difficulty{
    width:100%;
    justify-content:flex-start;
  }
  .task-editor-step-title-row{grid-template-columns:1fr}
}


/* v151 — unified "Wszystkie zadania" hub + simplified task editor title */

/* Top actions */
.tasks-hub-top-actions .btn{
  display:inline-flex;
  align-items:center;
  gap:6px;
}

/* Local navigation + tools */
.tasks-hub-toolbar{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:18px;
  margin:0 0 12px;
  padding:0 2px;
}
.tasks-hub-local-nav{
  margin:0;
  flex:1 1 auto;
  min-width:0;
}
.tasks-hub-tools{
  flex:0 0 auto;
  display:flex;
  align-items:center;
  gap:9px;
}
.tasks-hub-search{
  min-width:230px;
  height:34px;
  display:flex;
  align-items:center;
  gap:7px;
  padding:0 9px;
  border:1px solid var(--line);
  border-radius:6px;
  background:#fff;
}
.tasks-hub-search .dashicons{
  width:15px;
  height:15px;
  font-size:15px;
  color:#8a93a6;
}
.tasks-hub-search input{
  min-width:0;
  width:100%;
  border:0;
  outline:0;
  background:transparent;
  color:var(--text);
  font:inherit;
  font-size:11px;
}
.tasks-hub-sort{
  display:flex;
  align-items:center;
  gap:7px;
}
.tasks-hub-sort > span{
  color:var(--muted);
  font-size:10px;
  font-weight:700;
}
.tasks-hub-sort select{
  min-width:180px;
}

.tasks-hub-card{
  padding-top:0!important;
  overflow:visible;
}
.tasks-hub-view[hidden]{display:none!important}

/* Horizontal task rows */
.tasks-hub-row{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:24px;
  align-items:center;
  min-height:86px;
  padding:14px 0;
  border-bottom:1px solid var(--line);
  cursor:pointer;
}
.tasks-hub-row:last-child{border-bottom:0}
.tasks-hub-main{min-width:0}
.tasks-hub-title{
  color:var(--text);
  font-size:13px;
  font-weight:760;
  line-height:1.35;
  transition:color .14s ease;
}
.tasks-hub-row:hover .tasks-hub-title{color:#101828}

.tasks-hub-statuses{
  display:flex;
  align-items:flex-start;
  gap:7px 14px;
  flex-wrap:wrap;
  margin-top:5px;
}
.tasks-hub-status{
  display:flex;
  align-items:center;
  gap:6px;
  min-width:0;
  color:#4b5568;
  font-size:10.5px;
  line-height:1.45;
}
.tasks-hub-status > span:last-child{
  display:inline-flex;
  align-items:center;
  flex-wrap:wrap;
  gap:3px;
}
.tasks-hub-status strong{font-weight:700}
.tasks-hub-status-dot{
  width:7px;
  height:7px;
  flex:0 0 7px;
  border-radius:50%;
}
.tasks-hub-status.status-never .tasks-hub-status-dot{
  background:#2f9e6f;
  box-shadow:0 0 0 3px #e7f6ef;
}
.tasks-hub-status.status-progress .tasks-hub-status-dot{
  background:#5b7fb8;
  box-shadow:0 0 0 3px #edf2f8;
}
.tasks-hub-status.status-done .tasks-hub-status-dot{
  background:#d92d20;
  box-shadow:0 0 0 3px #fde9e7;
}
.tasks-hub-group-icon{
  width:16px!important;
  height:16px!important;
  flex:0 0 16px!important;
  display:inline-grid!important;
  place-items:center!important;
  font-size:9px!important;
  margin:0 1px 0 2px;
}
.tasks-hub-group-name{
  color:#566174;
  font-weight:650;
}

/* Difficulty · Author · Long title */
.tasks-hub-meta{
  display:flex;
  align-items:center;
  gap:6px;
  flex-wrap:wrap;
  margin-top:7px;
  color:var(--muted);
  font-size:10px;
  line-height:1.45;
}
.tasks-hub-difficulty{
  display:inline-flex;
  align-items:center;
  gap:6px;
}
.tasks-hub-difficulty .difficulty-meter i{
  width:14px;
  height:5px!important;
}
.tasks-hub-author strong{
  color:var(--text);
  font-weight:700;
}
.tasks-hub-meta-sep{color:#a1a8b5}
.tasks-hub-long-title{
  min-width:0;
  color:#737b8b;
}

.tasks-hub-row-actions{
  min-width:max-content;
}
.tasks-hub-row.task-quick-open .task-quick-actions-panel{
  max-width:720px;
}
.tasks-hub-empty{
  padding:30px 18px;
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:7px;
  color:var(--muted);
  text-align:center;
}
.tasks-hub-empty[hidden]{display:none!important}
.tasks-hub-empty .dashicons{
  width:20px;
  height:20px;
  font-size:20px;
}
.tasks-hub-footer{margin-top:0}

/* The old card-grid catalog is obsolete. */
.task-library-grid,
.catalog-summary{
  /* historical selectors retained for compatibility pages only */
}

/* Task editor title is always an input. */
.task-editor-header-identity{
  display:flex!important;
  align-items:center!important;
  gap:12px!important;
}
.task-editor-title-input-always{
  flex:1 1 520px;
  min-width:280px;
  max-width:min(48vw,720px);
  height:36px;
}
.task-editor-title-display,
.task-editor-title-editor,
.task-editor-title-edit{
  display:none!important;
}

/* Unsaved changes modal */
.task-editor-unsaved-modal .confirm-modal-actions .btn{
  display:inline-flex;
  align-items:center;
  gap:6px;
}
.task-editor-unsaved-modal .light-action-icon{
  position:relative;
  display:inline-block;
  width:14px;
  height:14px;
  flex:0 0 14px;
}
.task-editor-unsaved-modal .light-action-icon.check::before{
  content:"";
  position:absolute;
  left:3.6px;
  top:1.8px;
  width:5px;
  height:8px;
  border-right:1.5px solid currentColor;
  border-bottom:1.5px solid currentColor;
  transform:rotate(42deg);
}

/* Keep row gradient behavior when quick actions open. */
.tasks-hub-row:hover{
  background:
    linear-gradient(
      90deg,
      #fff 0%,
      #f6f7fa 14%,
      #f6f7fa 86%,
      #fff 100%
    )!important;
}

@media(max-width:1180px){
  .tasks-hub-toolbar{
    align-items:stretch;
    flex-direction:column;
  }
  .tasks-hub-tools{
    justify-content:flex-start;
    flex-wrap:wrap;
  }
}
@media(max-width:850px){
  .tasks-hub-row{
    grid-template-columns:1fr;
    gap:10px;
  }
  .tasks-hub-row-actions{
    justify-content:flex-start;
  }
  .task-editor-title-input-always{
    max-width:none;
    width:100%;
  }
}


/* v152 — global topbar breathing room + editor long title + task hub filters/alerts */

/* The platform topbar was too shallow for contextual two-line headers.
   Increase it globally by ~20px so every module uses the same geometry. */
@media(min-width:761px){
  .topbar{
    height:90px!important;
    min-height:90px!important;
    padding-top:9px!important;
    padding-bottom:9px!important;
  }
  .assignment-topbar{
    min-height:90px!important;
  }
}

/* Editor header: two compact inline-labelled rows. */
.task-editor-header-identity{
  min-width:0;
  flex:1 1 auto;
}
.task-editor-header-fields{
  width:min(100%,860px);
  display:flex;
  flex-direction:column;
  gap:6px;
}
.task-editor-header-row{
  display:grid;
  grid-template-columns:54px minmax(260px,1fr);
  align-items:center;
  gap:8px;
  min-width:0;
}
.task-editor-header-name-row{
  grid-template-columns:54px minmax(260px,1fr) auto;
}
.task-editor-header-label{
  color:var(--muted);
  font-size:10.5px;
  font-weight:700;
  white-space:nowrap;
}
.task-editor-title-input-always,
.task-editor-description-input{
  width:100%;
  max-width:none!important;
  min-width:0!important;
  height:34px!important;
  box-sizing:border-box;
  padding:6px 10px;
  border:1px solid #cfd5df;
  border-radius:6px;
  background:#fff;
  color:var(--text);
  font:inherit;
  font-size:12px;
}
.task-editor-title-input-always{
  font-weight:700;
}
.task-editor-description-input{
  font-weight:500;
}
.task-editor-title-input-always:focus,
.task-editor-description-input:focus{
  outline:none;
  border-color:#b7bfd0;
  box-shadow:0 0 0 3px rgba(79,70,229,.08);
}
.task-editor-inline-difficulty{
  margin-left:6px!important;
}
.task-editor-difficulty-select{
  height:34px!important;
}

/* Shorter task hub labels leave room for contextual filters. */
.tasks-hub-toolbar{
  gap:12px!important;
}
.tasks-hub-local-nav{
  flex:1 1 auto;
}
.tasks-hub-tools{
  gap:8px!important;
}
.tasks-hub-filter{
  display:flex;
  align-items:center;
  gap:7px;
}
.tasks-hub-filter[hidden]{
  display:none!important;
}
.tasks-hub-filter > span{
  color:var(--muted);
  font-size:10px;
  font-weight:700;
}
.tasks-hub-filter select{
  min-width:170px;
}
.tasks-hub-search{
  min-width:205px!important;
}
.tasks-hub-sort select{
  min-width:160px!important;
}

/* Active assignment alerts restored: red, compact, and independent for review/problem. */
.tasks-hub-alerts{
  display:flex;
  align-items:center;
  gap:7px 12px;
  flex-wrap:wrap;
  margin-top:5px;
}
.tasks-hub-alert{
  display:inline-flex;
  align-items:center;
  gap:6px;
  color:#b42318;
  font-size:10.5px;
  font-weight:700;
  line-height:1.35;
}
.tasks-hub-alert-dot{
  width:7px;
  height:7px;
  flex:0 0 7px;
  border-radius:50%;
  background:#d92d20;
  box-shadow:0 0 0 3px #fde9e7;
}

/* No "Pokazano X..." footer in the unified task hub. */
.tasks-hub-footer{
  display:none!important;
}

@media(max-width:1180px){
  .tasks-hub-tools{
    width:100%;
  }
}
@media(max-width:850px){
  .task-editor-header-row,
  .task-editor-header-name-row{
    grid-template-columns:1fr;
    gap:5px;
  }
  .task-editor-inline-difficulty{
    margin-left:0!important;
  }
}
@media(max-width:760px){
  .topbar{
    height:auto!important;
    min-height:64px!important;
  }
}


/* v153 — compact task hub + inline alerts + unified definition preview */

/* No search box in the task hub. */
.tasks-hub-search{
  display:none!important;
}

/* Alerts return to the same horizontal line as the short task title. */
.tasks-hub-title-line-v153{
  display:flex;
  align-items:center;
  gap:8px 12px;
  flex-wrap:wrap;
  min-width:0;
}
.tasks-hub-title-line-v153 .tasks-hub-alerts{
  margin-top:0!important;
  display:flex;
  align-items:center;
  gap:7px 12px;
  flex-wrap:wrap;
}

/* With search removed, filter + sort stay compact at the right. */
.tasks-hub-tools{
  margin-left:auto;
}
.tasks-hub-filter select{
  min-width:158px!important;
}
.tasks-hub-sort select{
  min-width:158px!important;
}

/* Definition details visually match assignment content details. */
.task-definition-preview-topbar{
  gap:18px;
}
.task-definition-preview-actions{
  margin-left:auto;
}
.task-definition-preview-actions .btn{
  display:inline-flex;
  align-items:center;
  gap:6px;
  white-space:nowrap;
}
.task-definition-preview-actions [hidden]{
  display:none!important;
}
.task-definition-source-badge{
  border-radius:6px;
}
.task-definition-preview-local-toolbar{
  margin-bottom:12px;
}
.task-definition-preview-card{
  padding-top:0!important;
}
.task-definition-preview-card .catalog-step-list{
  gap:0!important;
}
.task-definition-preview-card .task-stepper-step{
  border:0!important;
  border-top:0!important;
  border-bottom:0!important;
}

/* Clipboard icon should stay visually aligned in "Zleć zadanie". */
.tasks-hub-top-actions .dashicons-clipboard,
.task-definition-preview-actions .dashicons-clipboard{
  width:15px;
  height:15px;
  font-size:15px;
  line-height:15px;
}


/* v154 — editor configuration + refreshed difficulty palette */

/* Global difficulty scale: cool -> warm.
   1 steel blue, 2 indigo, 3 violet, 4 amber, 5 red. */
.difficulty-meter.difficulty-level-1 i.active{
  background:#6f8fb8!important;
}
.difficulty-meter.difficulty-level-2 i.active{
  background:#6672c4!important;
}
.difficulty-meter.difficulty-level-3 i.active{
  background:#9468b7!important;
}
.difficulty-meter.difficulty-level-4 i.active{
  background:#d58a2c!important;
}
.difficulty-meter.difficulty-level-5 i.active{
  background:#d94b59!important;
}
.difficulty-meter i:not(.active){
  background:#e2e6ed!important;
}

/* Editor topbar now contains only the live task name. */
.task-editor-topbar-v154 .task-editor-live-name{
  min-width:0;
  max-width:min(58vw,900px);
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.task-editor-topbar-v154 .task-editor-header-actions{
  margin-left:auto;
}

/* Local navigation directly below breadcrumbs. */
.task-editor-local-toolbar{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  margin:0 0 12px;
  padding:0 2px;
}
.task-editor-local-nav{
  margin:0;
}
.task-editor-local-view[hidden]{
  display:none!important;
}

/* Configuration */
.task-editor-configuration-view{
  display:flex;
  flex-direction:column;
  gap:12px;
}
.task-editor-config-card{
  padding:18px;
}
.task-editor-config-fields{
  display:grid;
  grid-template-columns:1fr;
  gap:14px;
}
.task-editor-config-fields .field{
  margin:0;
}
.task-editor-config-fields .field > span{
  display:block;
  margin-bottom:6px;
  color:var(--muted);
  font-size:10.5px;
  font-weight:700;
}
.task-editor-config-fields input{
  width:100%;
  height:38px;
  padding:8px 10px;
  border:1px solid var(--line);
  border-radius:6px;
  background:#fff;
  color:var(--text);
  font:inherit;
  font-size:12.5px;
}
.task-editor-config-fields input:focus{
  outline:none;
  border-color:#b7bfd0;
  box-shadow:0 0 0 3px rgba(79,70,229,.08);
}

/* Difficulty picker */
.task-editor-difficulty-picker{
  display:grid;
  grid-template-columns:repeat(5,minmax(0,1fr));
  gap:9px;
}
.task-editor-difficulty-option{
  position:relative;
  min-height:112px;
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  justify-content:flex-start;
  gap:7px;
  padding:12px;
  border:1px solid var(--line);
  border-radius:8px;
  background:#fff;
  color:var(--text);
  text-align:left;
  cursor:pointer;
  transition:background-color .14s ease,border-color .14s ease,box-shadow .14s ease;
}
.task-editor-difficulty-option:hover{
  background:#fafbfc;
  border-color:#cbd1dc;
}
.task-editor-difficulty-option.selected{
  border-color:currentColor;
  box-shadow:0 0 0 2px color-mix(in srgb,currentColor 15%,transparent);
}
.task-editor-difficulty-number{
  width:25px;
  height:25px;
  display:grid;
  place-items:center;
  border-radius:6px;
  color:#fff;
  font-size:11px;
  font-weight:800;
}
.task-editor-difficulty-label{
  font-size:11px;
  font-weight:700;
}
.task-editor-picker-meter{
  margin-top:auto;
}
.task-editor-picker-meter i{
  width:12px!important;
  height:5px!important;
  gap:3px;
}

.task-editor-difficulty-option.difficulty-option-1{color:#6f8fb8}
.task-editor-difficulty-option.difficulty-option-2{color:#6672c4}
.task-editor-difficulty-option.difficulty-option-3{color:#9468b7}
.task-editor-difficulty-option.difficulty-option-4{color:#d58a2c}
.task-editor-difficulty-option.difficulty-option-5{color:#d94b59}

.task-editor-difficulty-option.difficulty-option-1 .task-editor-difficulty-number{background:#6f8fb8}
.task-editor-difficulty-option.difficulty-option-2 .task-editor-difficulty-number{background:#6672c4}
.task-editor-difficulty-option.difficulty-option-3 .task-editor-difficulty-number{background:#9468b7}
.task-editor-difficulty-option.difficulty-option-4 .task-editor-difficulty-number{background:#d58a2c}
.task-editor-difficulty-option.difficulty-option-5 .task-editor-difficulty-number{background:#d94b59}

.task-editor-difficulty-option .task-editor-difficulty-label{
  color:var(--text);
}

/* Old header fields are obsolete. */
.task-editor-header-fields,
.task-editor-header-row,
.task-editor-inline-difficulty,
.task-editor-title-input-always,
.task-editor-description-input{
  /* retained only as harmless historical selectors */
}

@media(max-width:900px){
  .task-editor-difficulty-picker{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}
@media(max-width:560px){
  .task-editor-difficulty-picker{
    grid-template-columns:1fr;
  }
}


/* v156 — simple five-box difficulty picker */

.task-editor-difficulty-card .section-head{
  margin-bottom:14px!important;
}
.task-editor-difficulty-title-wrap{
  width:100%;
}
.task-editor-difficulty-title{
  margin:0!important;
  color:var(--text);
  font-size:14px!important;
  font-weight:700!important;
  line-height:1.4!important;
}
.task-editor-difficulty-title #editorDifficultyLabel{
  font:inherit;
  color:inherit;
}

/* Five equal boxes, no card-per-level UI. */
.task-editor-difficulty-strip{
  --difficulty-preview-color:#6672c4;
  display:grid;
  grid-template-columns:repeat(5,minmax(0,1fr));
  gap:7px;
  width:min(100%,620px);
}
.task-editor-difficulty-box{
  height:28px;
  padding:0;
  border:1px solid #d5dae3;
  border-radius:6px;
  background:#e7eaf0;
  cursor:pointer;
  transition:
    background-color .12s ease,
    border-color .12s ease,
    box-shadow .12s ease,
    transform .12s ease;
}
.task-editor-difficulty-box:hover,
.task-editor-difficulty-box:focus-visible{
  outline:none;
  transform:translateY(-1px);
}

/* Preview color is determined by the hovered / focused / selected level. */
.task-editor-difficulty-strip[data-preview-level="1"]{--difficulty-preview-color:#6f8fb8}
.task-editor-difficulty-strip[data-preview-level="2"]{--difficulty-preview-color:#6672c4}
.task-editor-difficulty-strip[data-preview-level="3"]{--difficulty-preview-color:#9468b7}
.task-editor-difficulty-strip[data-preview-level="4"]{--difficulty-preview-color:#d58a2c}
.task-editor-difficulty-strip[data-preview-level="5"]{--difficulty-preview-color:#d94b59}

.task-editor-difficulty-box.active{
  background:var(--difficulty-preview-color);
  border-color:var(--difficulty-preview-color);
}
.task-editor-difficulty-box.selected{
  box-shadow:0 0 0 2px #fff,0 0 0 4px var(--difficulty-preview-color);
}

/* Old v154 picker cards are superseded. */
.task-editor-difficulty-picker{
  display:none!important;
}

@media(max-width:560px){
  .task-editor-difficulty-strip{
    width:100%;
    gap:5px;
  }
  .task-editor-difficulty-box{
    height:32px;
  }
}


/* v157 — code as a first-class task content block */
.task-editor-code-block{
  display:flex;
  flex-direction:column;
  gap:9px;
}
.task-editor-code-meta{
  display:flex;
  align-items:flex-end;
  gap:10px;
}
.task-editor-code-filename-label{
  width:min(100%,360px);
  display:flex;
  flex-direction:column;
  gap:5px;
}
.task-editor-code-filename-label > span{
  color:var(--muted);
  font-size:10px;
  font-weight:700;
}
.task-editor-code-filename{
  width:100%;
  height:34px;
  box-sizing:border-box;
  padding:7px 10px;
  border:1px solid var(--line);
  border-radius:6px;
  background:#fff;
  color:var(--text);
  font:inherit;
  font-size:11.5px;
}
.task-editor-code-filename:focus,
.task-editor-code-textarea:focus{
  outline:none;
  border-color:#b7bfd0;
  box-shadow:0 0 0 3px rgba(79,70,229,.08);
}
.task-editor-code-textarea{
  width:100%;
  min-height:250px;
  box-sizing:border-box;
  padding:13px 14px;
  border:1px solid #cfd5df;
  border-radius:7px;
  background:#f7f8fa;
  color:#202532;
  font-family:Consolas,"SFMono-Regular","Liberation Mono",Menlo,monospace;
  font-size:12px;
  line-height:1.55;
  tab-size:2;
  resize:vertical;
  white-space:pre;
}
.task-editor-code-actions{
  display:flex;
  align-items:center;
  gap:7px;
  flex-wrap:wrap;
}
.task-editor-code-actions .btn{
  display:inline-flex;
  align-items:center;
  gap:6px;
}


/* v158 — download task package modal */
.download-task-modal{
  width:min(560px,100%);
  text-align:left;
}
.download-task-modal h2{
  margin-bottom:4px;
  text-align:center;
}
.confirm-modal-icon.download{
  margin-left:auto;
  margin-right:auto;
  background:#eef3fb;
  color:#5a6f98;
}
.download-task-name{
  margin:0 auto 18px;
  max-width:430px;
  color:var(--text);
  font-size:13px;
  font-weight:750;
  line-height:1.4;
  text-align:center;
}
.download-task-options{
  display:flex;
  flex-direction:column;
  gap:8px;
  margin:0 0 12px;
}
.download-task-option{
  position:relative;
  display:grid;
  grid-template-columns:20px minmax(0,1fr) auto;
  gap:10px;
  align-items:center;
  min-height:58px;
  padding:10px 12px;
  border:1px solid var(--line);
  border-radius:7px;
  background:#fff;
  cursor:pointer;
}
.download-task-option:hover{
  background:#fafbfc;
}
.download-task-option.is-required{
  cursor:default;
}
.download-task-option input{
  position:absolute;
  opacity:0;
  pointer-events:none;
}
.download-task-check{
  width:18px;
  height:18px;
  display:grid;
  place-items:center;
  border:1px solid #cbd1dc;
  border-radius:5px;
  background:#fff;
  color:#fff;
}
.download-task-check .dashicons{
  width:13px;
  height:13px;
  font-size:13px;
  line-height:13px;
}
.download-task-option input:checked + .download-task-check{
  border-color:#6672c4;
  background:#6672c4;
}
.download-task-option-copy{
  min-width:0;
}
.download-task-option-copy strong,
.download-task-option-copy small{
  display:block;
}
.download-task-option-copy strong{
  color:var(--text);
  font-size:11.5px;
}
.download-task-option-copy small{
  margin-top:2px;
  color:var(--muted);
  font-size:9.8px;
  line-height:1.35;
}
.download-task-required{
  color:var(--muted);
  font-size:9px;
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:.04em;
}
.download-task-hint{
  margin:8px 0 0;
  color:var(--muted);
  font-size:9.8px;
  line-height:1.45;
  text-align:center;
}
.download-task-modal .confirm-modal-actions{
  justify-content:center;
  margin-top:16px;
}
.download-task-modal .confirm-modal-actions .btn{
  display:inline-flex;
  align-items:center;
  gap:6px;
}


/* v159 — code actions belong to preview, not to the editor */
.task-editor-code-actions{
  display:none!important;
}


/* v160 — author field + download modal cleanup */
.download-task-modal .light-action-icon{
  position:relative!important;
  display:inline-block!important;
  width:14px!important;
  height:14px!important;
  flex:0 0 14px!important;
}
.download-task-modal .light-action-icon.cross::before,
.download-task-modal .light-action-icon.cross::after{
  content:"";
  position:absolute;
  left:6.2px;
  top:2.2px;
  width:1.4px;
  height:9.6px;
  border-radius:2px;
  background:currentColor;
}
.download-task-modal .light-action-icon.cross::before{transform:rotate(45deg)}
.download-task-modal .light-action-icon.cross::after{transform:rotate(-45deg)}

.task-editor-config-fields #editorTaskAuthor{
  font-weight:500;
}


/* v161 — active-task review alerts match deeper layout semantics */
.tasks-hub-alert.alert-review{
  color:#2f9e6f!important;
}


/* Problem alerts remain red. */




/* v162 — never-assigned task marker inline with title */
.tasks-hub-title-line-v162{
  display:flex;
  align-items:center;
  gap:8px 12px;
  flex-wrap:wrap;
  min-width:0;
}
.tasks-hub-never-inline{
  display:inline-flex;
  align-items:center;
  gap:6px;
  color:#2f9e6f;
  font-size:10.5px;
  font-weight:700;
  line-height:1.35;
  white-space:nowrap;
}
.tasks-hub-never-dot{
  width:7px;
  height:7px;
  flex:0 0 7px;
  border-radius:50%;
  background:#2f9e6f;
  box-shadow:0 0 0 3px #e7f6ef;
}


/* v163 — task submenu colors + listing alerts aligned with deeper task views */

/* Deeper assignment/student views use:
   review/check-needed = amber,
   reported problem = red.
   The top-level task listing now uses the same semantic colors. */
.tasks-hub-alert.alert-review{
  color:#9a681d!important;
}
.tasks-hub-alert.alert-review .tasks-hub-alert-dot{
  background:#d99a35!important;
  box-shadow:0 0 0 3px #fff0cf!important;
}
.tasks-hub-alert.alert-problem{
  color:#b42318!important;
}
.tasks-hub-alert.alert-problem .tasks-hub-alert-dot{
  background:#d92d20!important;
  box-shadow:0 0 0 3px #fde9e7!important;
}

/* Restore the changing accent logic in the "Wszystkie zadania" submenu.
   Each active view gets its own accent instead of every tab using primary purple. */
.tasks-hub-local-nav .view-segment:nth-child(1){--tasks-tab-accent:#6672c4} /* Aktywne */
.tasks-hub-local-nav .view-segment:nth-child(2){--tasks-tab-accent:#2f9e6f} /* Zrealizowane */
.tasks-hub-local-nav .view-segment:nth-child(3){--tasks-tab-accent:#9468b7} /* Katalog */
.tasks-hub-local-nav .view-segment:nth-child(4){--tasks-tab-accent:#d58a2c} /* Moje */
.tasks-hub-local-nav .view-segment:nth-child(5){--tasks-tab-accent:#6f8fb8} /* Uczniów */
.tasks-hub-local-nav .view-segment:nth-child(6){--tasks-tab-accent:#d94b59} /* Archiwalne */

.tasks-hub-local-nav .view-segment.active{
  color:var(--text)!important;
}
.tasks-hub-local-nav .view-segment.active::after{
  background:var(--tasks-tab-accent)!important;
}
.tasks-hub-local-nav .view-segment.active .groups-local-count{
  color:var(--tasks-tab-accent)!important;
}


/* v164 — assignment/student listing refinement */

/* Top-level "requires review" uses exactly the same green semantics as student rows. */
.tasks-hub-alert.alert-review{
  color:#237a57!important;
}
.tasks-hub-alert.alert-review .tasks-hub-alert-dot{
  background:#2f9e6f!important;
  box-shadow:0 0 0 3px #e7f6ef!important;
}

/* Move progress toward the identity column and reserve predictable action space. */
.assignment-member-row{
  grid-template-columns:minmax(240px,1fr) minmax(200px,.72fr) minmax(290px,auto)!important;
  gap:16px!important;
}
.assignment-member-row .assignment-member-progress{
  max-width:310px;
}
.assignment-member-row.quick-open .assignment-member-quick-panel{
  max-width:310px!important;
}

/* Closed rows replace dots with an inline grade/comment preview. */
.assignment-member-row.has-inline-grade{
  grid-template-columns:minmax(230px,1fr) minmax(170px,.62fr) minmax(170px,.7fr) auto!important;
}
.assignment-inline-grade{
  min-width:0;
  max-width:220px;
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  gap:3px;
  padding:6px 8px;
  border:0;
  border-radius:6px;
  background:transparent;
  color:var(--text);
  text-align:left;
  cursor:pointer;
}
.assignment-inline-grade:hover{
  background:#f5f6f8;
}
.assignment-inline-grade-value{
  color:var(--text);
  font-size:12px;
  font-weight:800;
  line-height:1.25;
}
.assignment-inline-grade-summary{
  max-width:100%;
  overflow:hidden;
  color:var(--muted);
  font-size:9.5px;
  font-weight:500;
  line-height:1.35;
  text-overflow:ellipsis;
  white-space:nowrap;
}

/* Student-in-group: same geometry as student rows inside an assignment. */
.student-context-assignment-list .assignment-member-row{
  grid-template-columns:minmax(250px,1fr) minmax(210px,.7fr) minmax(230px,auto)!important;
}
.student-context-assignment-list .assignment-member-row.has-inline-grade{
  grid-template-columns:minmax(230px,1fr) minmax(175px,.58fr) minmax(190px,.68fr) auto!important;
}
.student-context-task-identity{
  padding-left:0!important;
}
.student-context-tasks-card{
  padding-top:0!important;
}

/* Activity is now a third local view and follows the same row language. */
.student-activity-list-v164{
  display:flex;
  flex-direction:column;
}
.student-activity-row-v164{
  display:grid;
  grid-template-columns:32px minmax(0,1fr) 22px;
  gap:11px;
  align-items:center;
  min-height:62px;
  padding:11px 0;
  border-bottom:1px solid var(--line);
}
.student-activity-row-v164:last-child{
  border-bottom:0;
}
.student-activity-row-v164[data-href]{
  cursor:pointer;
}
.student-activity-row-v164[data-href]:hover{
  background:
    linear-gradient(
      90deg,
      #fff 0%,
      #f6f7fa 14%,
      #f6f7fa 86%,
      #fff 100%
    );
}
.student-activity-copy{
  min-width:0;
}
.student-activity-copy strong{
  display:block;
  color:var(--text);
  font-size:11.5px;
  line-height:1.35;
}
.student-activity-copy p{
  margin:3px 0 0;
  color:var(--muted);
  font-size:9.5px;
  line-height:1.35;
}
.student-activity-row-arrow{
  color:#a5adba;
}
.student-activity-row-arrow .dashicons{
  width:15px;
  height:15px;
  font-size:15px;
}
.student-activity-icon.reaction{background:#f2ecfb;color:#7a55a1}
.student-activity-icon.problem{background:#fdebed;color:#b42318}
.student-activity-icon.problem-resolved{background:#e7f6ef;color:#237a57}
.student-activity-icon.grade,
.student-activity-icon.grade-edit{background:#fff2df;color:#9a681d}
.student-activity-icon.assigned,
.student-activity-icon.started{background:#eef3fb;color:#5474ba}
.student-activity-icon.undo,
.student-activity-icon.reopen{background:#f1f2f5;color:#667085}
.student-activity-icon.cancel{background:#fdebed;color:#b42318}
.student-activity-icon.join{background:#eef3fb;color:#5474ba}

/* Inline Student action sits together with other assignment quick actions. */
.assignment-member-student-link{
  text-decoration:none;
}

/* Keep grade summary readable without making the row wider. */
@media(max-width:1050px){
  .assignment-member-row,
  .student-context-assignment-list .assignment-member-row,
  .assignment-member-row.has-inline-grade,
  .student-context-assignment-list .assignment-member-row.has-inline-grade{
    grid-template-columns:1fr!important;
  }
  .assignment-member-row .assignment-member-progress{
    max-width:none;
  }
  .assignment-inline-grade{
    max-width:none;
  }
}


/* v165 — teacher home as a readable "what's happening now" cockpit */
.teacher-dashboard-intro{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:18px;
  margin-bottom:14px;
}
.teacher-dashboard-intro h1{
  margin:0;
  font-size:20px;
  line-height:1.2;
}
.teacher-dashboard-intro p{
  margin:4px 0 0;
  color:var(--muted);
  font-size:11px;
}
.teacher-dashboard-context{
  display:flex;
  align-items:center;
  gap:6px 14px;
  flex-wrap:wrap;
  color:#687386;
  font-size:10px;
  font-weight:650;
}
.teacher-dashboard-context span+span::before{
  content:"·";
  margin-right:14px;
  color:#b2b8c3;
}

/* Four compact, actionable "now" signals. */
.teacher-dashboard-summary-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:9px;
  margin-bottom:18px;
}
.teacher-dashboard-summary-card{
  min-width:0;
  min-height:72px;
  display:grid;
  grid-template-columns:34px minmax(0,1fr) 18px;
  gap:10px;
  align-items:center;
  padding:11px 12px;
  border:1px solid var(--line);
  border-radius:8px;
  background:#fff;
  text-decoration:none;
  transition:background-color .14s ease,border-color .14s ease;
}
.teacher-dashboard-summary-card:hover{
  background:#fafbfc;
  border-color:#ccd2dd;
}
.teacher-dashboard-summary-icon{
  width:34px;
  height:34px;
  display:grid;
  place-items:center;
  border-radius:7px;
}
.teacher-dashboard-summary-icon .dashicons{
  width:17px;
  height:17px;
  font-size:17px;
}
.teacher-dashboard-summary-copy{
  min-width:0;
}
.teacher-dashboard-summary-copy strong{
  display:block;
  color:var(--text);
  font-size:19px;
  line-height:1;
}
.teacher-dashboard-summary-copy span{
  display:block;
  margin-top:4px;
  color:#5e687a;
  font-size:10px;
  line-height:1.35;
}
.teacher-dashboard-summary-arrow{
  color:#a3abba;
}
.teacher-dashboard-summary-arrow .dashicons{
  width:15px;
  height:15px;
  font-size:15px;
}
.summary-review .teacher-dashboard-summary-icon{background:#e7f6ef;color:#237a57}
.summary-problem .teacher-dashboard-summary-icon{background:#fdebed;color:#b42318}
.summary-pending .teacher-dashboard-summary-icon{background:#fff2df;color:#9a681d}
.summary-active .teacher-dashboard-summary-icon{background:#eef0fb;color:#6672c4}

/* Perspective switcher: one main surface instead of several competing boxes. */
.teacher-dashboard-perspective-toolbar{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  margin:0 0 12px;
  padding:0 2px;
}
.teacher-dashboard-local-nav{
  margin:0;
}
.teacher-dashboard-local-nav .view-segment:nth-child(1){--dashboard-tab-accent:#6672c4}
.teacher-dashboard-local-nav .view-segment:nth-child(2){--dashboard-tab-accent:#2f9e6f}
.teacher-dashboard-local-nav .view-segment:nth-child(3){--dashboard-tab-accent:#d58a2c}
.teacher-dashboard-local-nav .view-segment.active::after{
  background:var(--dashboard-tab-accent)!important;
}
.teacher-dashboard-local-nav .view-segment.active .groups-local-count{
  color:var(--dashboard-tab-accent)!important;
}
.teacher-dashboard-focus-card{
  padding-top:0!important;
  overflow:visible;
}
.teacher-dashboard-view[hidden]{
  display:none!important;
}
.teacher-dashboard-view-head{
  min-height:64px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding:14px 0 11px;
  border-bottom:1px solid var(--line);
}
.teacher-dashboard-view-head h2{
  margin:0;
  font-size:14px;
}
.teacher-dashboard-view-head p{
  margin:3px 0 0;
  color:var(--muted);
  font-size:10px;
}

/* Tasks perspective */
.teacher-dashboard-task-row{
  display:grid;
  grid-template-columns:minmax(0,1fr) 180px auto;
  gap:18px;
  align-items:center;
  min-height:76px;
  padding:12px 0;
  border-bottom:1px solid var(--line);
  cursor:pointer;
}
.teacher-dashboard-task-row:last-child{border-bottom:0}
.teacher-dashboard-task-row:hover{
  background:
    linear-gradient(90deg,#fff 0%,#f6f7fa 14%,#f6f7fa 86%,#fff 100%);
}
.teacher-dashboard-task-main{min-width:0}
.teacher-dashboard-task-title-line{
  display:flex;
  align-items:center;
  gap:7px 12px;
  flex-wrap:wrap;
}
.teacher-dashboard-task-name{
  color:var(--text);
  font-size:12.5px;
}
.teacher-dashboard-alert{
  display:inline-flex;
  align-items:center;
  gap:6px;
  font-size:10px;
  font-weight:700;
}
.teacher-dashboard-alert-dot{
  width:7px;
  height:7px;
  flex:0 0 7px;
  border-radius:50%;
}
.teacher-dashboard-alert.alert-review{color:#237a57}
.teacher-dashboard-alert.alert-review .teacher-dashboard-alert-dot{
  background:#2f9e6f;
  box-shadow:0 0 0 3px #e7f6ef;
}
.teacher-dashboard-alert.alert-problem{color:#b42318}
.teacher-dashboard-alert.alert-problem .teacher-dashboard-alert-dot{
  background:#d92d20;
  box-shadow:0 0 0 3px #fde9e7;
}
.teacher-dashboard-task-meta{
  display:flex;
  align-items:center;
  gap:6px;
  margin-top:6px;
  color:var(--muted);
  font-size:9.8px;
}
.teacher-dashboard-mini-group-icon{
  width:18px!important;
  height:18px!important;
  flex:0 0 18px!important;
  font-size:9px!important;
  border-radius:5px!important;
}
.teacher-dashboard-task-counts{
  color:#657083;
  font-size:10px;
  white-space:nowrap;
  text-align:right;
}
.teacher-dashboard-count-sep{
  margin:0 6px;
  color:#a6aebb;
}

/* Students perspective */
.teacher-dashboard-student-row{
  display:grid;
  grid-template-columns:34px minmax(0,1fr) auto;
  gap:11px;
  align-items:center;
  min-height:70px;
  padding:11px 0;
  border-bottom:1px solid var(--line);
  cursor:pointer;
}
.teacher-dashboard-student-row:hover{
  background:
    linear-gradient(90deg,#fff 0%,#f6f7fa 14%,#f6f7fa 86%,#fff 100%);
}
.teacher-dashboard-student-copy{min-width:0}
.teacher-dashboard-student-name-line{
  display:flex;
  align-items:center;
  gap:8px 12px;
  flex-wrap:wrap;
}
.teacher-dashboard-student-name-line strong{
  font-size:12px;
}
.teacher-dashboard-student-status{
  display:inline-flex;
  align-items:center;
  gap:6px;
  font-size:10px;
  font-weight:700;
}
.teacher-dashboard-student-status.review{color:#237a57}
.teacher-dashboard-student-status.problem{color:#b42318}
.teacher-dashboard-student-status.progress{color:#667085}
.teacher-dashboard-student-status.review .teacher-dashboard-alert-dot{
  background:#2f9e6f;
  box-shadow:0 0 0 3px #e7f6ef;
}
.teacher-dashboard-student-status.problem .teacher-dashboard-alert-dot{
  background:#d92d20;
  box-shadow:0 0 0 3px #fde9e7;
}
.teacher-dashboard-student-meta{
  margin-top:4px;
  color:var(--muted);
  font-size:9.8px;
}
.teacher-dashboard-pending-row{
  display:grid;
  grid-template-columns:34px minmax(0,1fr) 18px;
  gap:11px;
  align-items:center;
  min-height:64px;
  padding:11px 0;
  text-decoration:none;
}
.teacher-dashboard-pending-row:hover{
  background:
    linear-gradient(90deg,#fff 0%,#f6f7fa 14%,#f6f7fa 86%,#fff 100%);
}
.teacher-dashboard-pending-icon{
  width:32px;
  height:32px;
  display:grid;
  place-items:center;
  border-radius:7px;
  background:#fff2df;
  color:#9a681d;
}
.teacher-dashboard-pending-icon .dashicons{
  width:16px;height:16px;font-size:16px;
}
.teacher-dashboard-pending-copy strong,
.teacher-dashboard-pending-copy span{
  display:block;
}
.teacher-dashboard-pending-copy strong{
  color:var(--text);
  font-size:11.5px;
}
.teacher-dashboard-pending-copy span{
  margin-top:3px;
  color:var(--muted);
  font-size:9.5px;
}

/* Notifications perspective */
.teacher-dashboard-notification-row{
  display:grid;
  grid-template-columns:34px minmax(0,1fr) 18px;
  gap:11px;
  align-items:center;
  min-height:64px;
  padding:10px 0;
  border-bottom:1px solid var(--line);
  cursor:pointer;
}
.teacher-dashboard-notification-row:last-child{border-bottom:0}
.teacher-dashboard-notification-row:hover{
  background:
    linear-gradient(90deg,#fff 0%,#f6f7fa 14%,#f6f7fa 86%,#fff 100%);
}
.teacher-dashboard-notification-icon{
  width:32px;
  height:32px;
  display:grid;
  place-items:center;
  border-radius:7px;
}
.teacher-dashboard-notification-icon .dashicons{
  width:16px;height:16px;font-size:16px;
}
.teacher-dashboard-notification-icon.review,
.teacher-dashboard-notification-icon.done{background:#e7f6ef;color:#237a57}
.teacher-dashboard-notification-icon.problem{background:#fdebed;color:#b42318}
.teacher-dashboard-notification-icon.pending{background:#fff2df;color:#9a681d}
.teacher-dashboard-notification-icon.comment{background:#eef0fb;color:#6672c4}
.teacher-dashboard-notification-copy{
  min-width:0;
}
.teacher-dashboard-notification-copy strong{
  display:block;
  color:var(--text);
  font-size:11.5px;
}
.teacher-dashboard-notification-copy p{
  margin:3px 0 0;
  color:var(--muted);
  font-size:9.5px;
}
.teacher-dashboard-notification-arrow{
  color:#a4adba;
}
.teacher-dashboard-notification-arrow .dashicons{
  width:15px;height:15px;font-size:15px;
}

/* Administration messages stay visible without competing with operational data. */
.teacher-dashboard-announcement{
  display:grid;
  grid-template-columns:30px minmax(0,1fr) auto;
  gap:10px;
  align-items:center;
  margin-top:14px;
  padding:9px 11px;
  border:1px solid #ead7b0;
  border-radius:7px;
  background:#fffaf0;
}
.teacher-dashboard-announcement-icon{
  width:30px;
  height:30px;
  display:grid;
  place-items:center;
  color:#9a681d;
}
.teacher-dashboard-announcement-icon .dashicons{
  width:16px;height:16px;font-size:16px;
}
.teacher-dashboard-announcement-copy{
  min-width:0;
}
.teacher-dashboard-announcement-copy strong,
.teacher-dashboard-announcement-copy span{
  display:block;
}
.teacher-dashboard-announcement-copy strong{
  color:#5e4823;
  font-size:10.5px;
}
.teacher-dashboard-announcement-copy span{
  margin-top:2px;
  color:#806534;
  font-size:9.5px;
}
.teacher-dashboard-announcement-meta{
  color:#9a7634;
  font-size:9px;
  white-space:nowrap;
}

@media(max-width:1100px){
  .teacher-dashboard-summary-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
  .teacher-dashboard-task-row{
    grid-template-columns:minmax(0,1fr) auto;
  }
  .teacher-dashboard-task-counts{
    grid-column:1/2;
    grid-row:2;
    text-align:left;
  }
}
@media(max-width:760px){
  .teacher-dashboard-intro{
    align-items:flex-start;
    flex-direction:column;
  }
  .teacher-dashboard-context span+span::before{
    display:none;
  }
  .teacher-dashboard-summary-grid{
    grid-template-columns:1fr;
  }
  .teacher-dashboard-task-row,
  .teacher-dashboard-student-row{
    grid-template-columns:1fr;
    gap:8px;
  }
  .teacher-dashboard-task-counts{
    grid-column:auto;
    grid-row:auto;
  }
  .teacher-dashboard-announcement{
    grid-template-columns:30px minmax(0,1fr);
  }
  .teacher-dashboard-announcement-meta{
    grid-column:2;
  }
}


/* v166 — stable assignment row geometry */

/* Active student rows:
   progress has its own stable column and never changes position when ⋮ opens. */

#assignmentInProgressView .assignment-member-progress{
  width:100%;
  max-width:330px!important;
  justify-self:start;
}
#assignmentInProgressView .assignment-member-actions{
  width:178px;
  min-width:178px;
  position:relative;
  justify-content:flex-end;
  overflow:visible!important;
}

/* The hidden quick actions float to the left of Details/⋮ instead of entering
   the grid and pushing the progress bar around. */
#assignmentInProgressView .assignment-member-quick-panel{
  position:absolute!important;
  right:calc(100% + 8px)!important;
  top:50%!important;
  width:max-content!important;
  max-width:none!important;
  margin:0!important;
  overflow:visible!important;
  opacity:0;
  visibility:hidden;
  pointer-events:none;
  transform:translateY(calc(-50% - 7px))!important;
  z-index:12;
  transition:
    opacity .16s ease,
    transform .22s cubic-bezier(.2,.7,.2,1),
    visibility 0s linear .22s!important;
}
#assignmentInProgressView .assignment-member-row.quick-open .assignment-member-quick-panel{
  max-width:none!important;
  margin:0!important;
  opacity:1!important;
  visibility:visible!important;
  pointer-events:auto!important;
  transform:translateY(-50%)!important;
}
#assignmentInProgressView .assignment-member-row.quick-open .assignment-member-quick-action{
  opacity:1!important;
  transform:none!important;
}

/* Finished/closed realizations are intentionally compact.
   The content no longer stretches all the way across a wide screen. */
#assignmentClosedView .assignment-member-row.has-inline-grade,
.archived-assignment-members-card .assignment-member-row.has-inline-grade{
  grid-template-columns:
    minmax(310px,430px)
    minmax(230px,300px)
    minmax(210px,270px)
    118px!important;
  gap:22px!important;
  justify-content:start!important;
}
#assignmentClosedView .assignment-member-row.has-inline-grade .assignment-member-progress,
.archived-assignment-members-card .assignment-member-row.has-inline-grade .assignment-member-progress{
  width:100%;
  max-width:300px!important;
}
#assignmentClosedView .assignment-member-row.has-inline-grade .assignment-inline-grade,
.archived-assignment-members-card .assignment-member-row.has-inline-grade .assignment-inline-grade{
  width:100%;
  max-width:270px!important;
  padding-left:0;
  padding-right:6px;
}
#assignmentClosedView .assignment-member-row.has-inline-grade .assignment-member-actions,
.archived-assignment-members-card .assignment-member-row.has-inline-grade .assignment-member-actions{
  width:118px;
  min-width:118px;
  justify-content:flex-end;
}

/* Student icon in the quick action is a person, not an ID/card metaphor. */
.assignment-member-student-link .dashicons-businessperson{
  width:15px!important;
  height:15px!important;
  font-size:15px!important;
  line-height:15px!important;
}

@media(max-width:1250px){
  #assignmentInProgressView .assignment-member-row{
    grid-template-columns:minmax(300px,1fr) minmax(220px,290px) 178px!important;
  }
  #assignmentClosedView .assignment-member-row.has-inline-grade,
  .archived-assignment-members-card .assignment-member-row.has-inline-grade{
    grid-template-columns:minmax(270px,1fr) minmax(200px,260px) minmax(190px,240px) 118px!important;
  }
}

@media(max-width:1050px){
  #assignmentInProgressView .assignment-member-row,
  #assignmentClosedView .assignment-member-row.has-inline-grade,
  .archived-assignment-members-card .assignment-member-row.has-inline-grade{
    grid-template-columns:1fr!important;
  }
  #assignmentInProgressView .assignment-member-progress,
  #assignmentClosedView .assignment-member-row.has-inline-grade .assignment-member-progress,
  .archived-assignment-members-card .assignment-member-row.has-inline-grade .assignment-member-progress{
    max-width:none!important;
  }
  #assignmentInProgressView .assignment-member-actions,
  #assignmentClosedView .assignment-member-row.has-inline-grade .assignment-member-actions,
  .archived-assignment-members-card .assignment-member-row.has-inline-grade .assignment-member-actions{
    width:auto;
    min-width:0;
    justify-content:flex-start;
  }
  #assignmentInProgressView .assignment-member-quick-panel{
    position:static!important;
    width:auto!important;
    max-width:0!important;
    overflow:hidden!important;
    transform:translateY(-7px)!important;
  }
  #assignmentInProgressView .assignment-member-row.quick-open .assignment-member-quick-panel{
    max-width:360px!important;
    transform:none!important;
  }
}


/* v167 — quick actions are a real dropdown under ⋮, never over the progress bar */

/* The active row geometry stays fixed regardless of menu state. */
#assignmentInProgressView .assignment-member-row{
  grid-template-columns:minmax(360px,1fr) minmax(260px,330px) 178px!important;
  gap:22px!important;
}
#assignmentInProgressView .assignment-member-progress{
  width:100%;
  max-width:330px!important;
  justify-self:start!important;
}
#assignmentInProgressView .assignment-member-actions{
  width:178px!important;
  min-width:178px!important;
  position:relative!important;
  justify-content:flex-end!important;
  overflow:visible!important;
}

/* Override the previous horizontal fly-out.
   Menu opens BELOW the dots, like a normal contextual dropdown. */
#assignmentInProgressView .assignment-member-quick-panel{
  position:absolute!important;
  right:0!important;
  top:calc(100% + 6px)!important;
  width:176px!important;
  max-width:176px!important;
  display:flex!important;
  flex-direction:column!important;
  align-items:stretch!important;
  gap:4px!important;
  margin:0!important;
  padding:6px!important;
  border:1px solid #dfe3ea!important;
  border-radius:7px!important;
  background:#fff!important;
  box-shadow:0 10px 24px rgba(17,24,39,.12)!important;
  overflow:visible!important;
  opacity:0!important;
  visibility:hidden!important;
  pointer-events:none!important;
  transform:translateY(-5px)!important;
  z-index:30!important;
  transition:
    opacity .14s ease,
    transform .18s ease,
    visibility 0s linear .18s!important;
}
#assignmentInProgressView .assignment-member-row.quick-open .assignment-member-quick-panel{
  opacity:1!important;
  visibility:visible!important;
  pointer-events:auto!important;
  transform:translateY(0)!important;
}
#assignmentInProgressView .assignment-member-quick-action{
  width:100%!important;
  min-height:32px!important;
  justify-content:flex-start!important;
  padding:6px 8px!important;
  border-color:transparent!important;
  background:#fff!important;
  opacity:1!important;
  transform:none!important;
}
#assignmentInProgressView .assignment-member-quick-action:hover{
  background:#f5f6f8!important;
  border-color:transparent!important;
}
#assignmentInProgressView .assignment-member-quick-action.cancel-student-assignment-trigger:hover{
  background:#fff1f2!important;
  color:#b42318!important;
}

/* Make sure the popover can visibly escape the card/row. */
.assignment-members-card,
#assignmentInProgressView,
#assignmentInProgressView .assignment-member-row{
  overflow:visible!important;
}

@media(max-width:1050px){
  #assignmentInProgressView .assignment-member-quick-panel{
    position:absolute!important;
    right:0!important;
    top:calc(100% + 6px)!important;
    width:176px!important;
    max-width:176px!important;
    overflow:visible!important;
    transform:translateY(-5px)!important;
  }
  #assignmentInProgressView .assignment-member-row.quick-open .assignment-member-quick-panel{
    max-width:176px!important;
    transform:translateY(0)!important;
  }
}


/* v168 — student settings rebuilt */

/* Main student view: topbar keeps only Settings action. */
.student-context-topbar-actions > *:not([href="teacher-group-student-settings.html"]){
  display:none!important;
}

/* Settings page topbar */
.student-settings-topbar-actions{
  margin-left:auto;
}
.student-settings-save{
  display:inline-flex;
  align-items:center;
  gap:6px;
}
.student-settings-save[hidden]{
  display:none!important;
}
.student-settings-save:disabled{
  opacity:.58;
  cursor:default;
}
.student-settings-save.primary:disabled{
  background:#fff!important;
  border-color:var(--line)!important;
  color:var(--muted)!important;
}
.student-settings-topbar .light-action-icon{
  position:relative;
  display:inline-block;
  width:14px;
  height:14px;
  flex:0 0 14px;
}
.student-settings-topbar .light-action-icon.check::before{
  content:"";
  position:absolute;
  left:3.4px;
  top:1.6px;
  width:5px;
  height:8px;
  border-right:1.5px solid currentColor;
  border-bottom:1.5px solid currentColor;
  transform:rotate(42deg);
}

/* Local submenu */
.student-settings-local-toolbar{
  display:flex;
  align-items:flex-end;
  margin:0 0 12px;
  padding:0 2px;
}
.student-settings-local-nav{
  margin:0;
}
.student-settings-view[hidden]{
  display:none!important;
}

/* Basic data: one untitled block with full-width rows. */
.student-basic-settings-card{
  padding-top:0!important;
  padding-bottom:0!important;
}
.student-setting-row{
  display:grid;
  grid-template-columns:140px minmax(0,1fr) auto;
  gap:18px;
  align-items:center;
  min-height:68px;
  padding:12px 0;
  border-bottom:1px solid var(--line);
}
.student-setting-row:last-child{
  border-bottom:0;
}
.student-setting-label{
  color:var(--muted);
  font-size:10.5px;
  font-weight:700;
}
.student-setting-value-wrap{
  min-width:0;
}
.student-setting-value{
  color:var(--text);
  font-size:12px;
  font-weight:650;
}
.student-setting-value[hidden],
.student-setting-inline-input[hidden]{
  display:none!important;
}
.student-setting-inline-input{
  width:min(100%,520px);
  height:36px;
  box-sizing:border-box;
  padding:7px 10px;
  border:1px solid #cfd5df;
  border-radius:6px;
  background:#fff;
  color:var(--text);
  font:inherit;
  font-size:12px;
}
.student-setting-inline-input:focus{
  outline:none;
  border-color:#b7bfd0;
  box-shadow:0 0 0 3px rgba(79,70,229,.08);
}
.student-setting-action{
  display:flex;
  justify-content:flex-end;
}
.student-setting-action .btn{
  display:inline-flex;
  align-items:center;
  gap:6px;
  min-width:92px;
  justify-content:center;
}
.student-setting-edit.is-cancel{
  color:#6b7280;
}

/* Avatar tab: full picker + current/new comparison. */
.student-avatar-settings-card-v168{
  padding-top:18px;
}
.student-avatar-comparison-v168{
  margin-bottom:22px;
  padding-bottom:18px;
  border-bottom:1px solid var(--line);
}
.student-avatar-xl{
  width:58px!important;
  height:58px!important;
  flex:0 0 58px!important;
}
.student-avatar-xl .student-avatar-icon{
  font-size:28px!important;
}
.student-avatar-full-icon-grid{
  grid-template-columns:repeat(10,minmax(0,1fr))!important;
}
.student-avatar-full-color-grid{
  grid-template-columns:repeat(15,minmax(0,1fr))!important;
}
.student-avatar-full-color-grid .color-choice[data-color="#FFFFFF"] span{
  border:1px solid #cfd5df;
  box-sizing:border-box;
}

/* Known modal buttons remain consistent inside settings. */
.student-settings-page-v168 + .modal-overlay .light-action-icon,
.student-settings-page-v168 ~ .modal-overlay .light-action-icon{
  position:relative;
  display:inline-block;
  width:14px;
  height:14px;
  flex:0 0 14px;
}
.student-settings-page-v168 ~ .modal-overlay .light-action-icon.cross::before,
.student-settings-page-v168 ~ .modal-overlay .light-action-icon.cross::after{
  content:"";
  position:absolute;
  left:6.2px;
  top:2.2px;
  width:1.4px;
  height:9.6px;
  border-radius:2px;
  background:currentColor;
}
.student-settings-page-v168 ~ .modal-overlay .light-action-icon.cross::before{transform:rotate(45deg)}
.student-settings-page-v168 ~ .modal-overlay .light-action-icon.cross::after{transform:rotate(-45deg)}

@media(max-width:1050px){
  .student-avatar-full-icon-grid{
    grid-template-columns:repeat(6,minmax(0,1fr))!important;
  }
  .student-avatar-full-color-grid{
    grid-template-columns:repeat(10,minmax(0,1fr))!important;
  }
}
@media(max-width:760px){
  .student-setting-row{
    grid-template-columns:1fr;
    gap:7px;
  }
  .student-setting-action{
    justify-content:flex-start;
  }
  .student-avatar-full-icon-grid{
    grid-template-columns:repeat(5,minmax(0,1fr))!important;
  }
  .student-avatar-full-color-grid{
    grid-template-columns:repeat(6,minmax(0,1fr))!important;
  }
}


/* v169 — student/group settings interaction parity */

/* Save stays at the absolute right edge. */
.student-settings-topbar-actions,
.group-settings-topbar-actions{
  margin-left:auto;
}
.student-settings-topbar-actions .student-settings-save,
.group-settings-topbar-actions .group-settings-save{
  margin-left:0;
}
.student-settings-topbar-v169 .student-settings-save,
.group-settings-topbar-v169 .group-settings-save{
  order:2;
}
.student-settings-topbar-v169 .topbar-actions > a,
.group-settings-topbar-v169 .topbar-actions > a{
  order:1;
}

/* Shared lightweight save check in topbars. */
.group-settings-topbar .light-action-icon,
.student-settings-topbar-v169 .light-action-icon{
  position:relative;
  display:inline-block;
  width:14px;
  height:14px;
  flex:0 0 14px;
}
.group-settings-topbar .light-action-icon.check::before,
.student-settings-topbar-v169 .light-action-icon.check::before{
  content:"";
  position:absolute;
  left:3.4px;
  top:1.6px;
  width:5px;
  height:8px;
  border-right:1.5px solid currentColor;
  border-bottom:1.5px solid currentColor;
  transform:rotate(42deg);
}
.group-settings-save[hidden],
.student-settings-save[hidden]{
  display:none!important;
}
.group-settings-save:disabled,
.student-settings-save:disabled{
  opacity:.58;
  cursor:default;
}

/* Group settings submenu */
.group-settings-local-toolbar{
  display:flex;
  align-items:flex-end;
  margin:0 0 12px;
  padding:0 2px;
}
.group-settings-local-nav{
  margin:0;
}
.group-settings-view[hidden]{
  display:none!important;
}

/* One untitled block, same mechanics as student basic settings. */
.group-basic-settings-card{
  padding-top:0!important;
  padding-bottom:0!important;
}
.group-setting-row{
  display:grid;
  grid-template-columns:150px minmax(0,1fr) auto;
  gap:18px;
  align-items:center;
  min-height:68px;
  padding:12px 0;
  border-bottom:1px solid var(--line);
}
.group-setting-row:last-child{
  border-bottom:0;
}
.group-setting-label{
  color:var(--muted);
  font-size:10.5px;
  font-weight:700;
}
.group-setting-value-wrap{
  min-width:0;
}
.group-setting-value{
  color:var(--text);
  font-size:12px;
  font-weight:650;
}
.group-setting-value[hidden],
.group-setting-inline-input[hidden]{
  display:none!important;
}
.group-setting-inline-input{
  width:min(100%,520px);
  height:36px;
  box-sizing:border-box;
  padding:7px 10px;
  border:1px solid #cfd5df;
  border-radius:6px;
  background:#fff;
  color:var(--text);
  font:inherit;
  font-size:12px;
}
.group-setting-inline-input:focus{
  outline:none;
  border-color:#b7bfd0;
  box-shadow:0 0 0 3px rgba(79,70,229,.08);
}
.group-setting-action{
  display:flex;
  justify-content:flex-end;
}
.group-setting-action-cluster{
  align-items:center;
  gap:7px;
}
.group-setting-action .btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:6px;
}
.group-setting-status-value,
.group-setting-enrollment-value{
  font-weight:750;
}

/* ⋮ menus in group settings */
.settings-row-menu{
  position:relative;
  flex:0 0 auto;
}
.settings-row-menu-toggle.btn.small{
  width:34px;
  min-width:34px;
  height:34px;
  min-height:34px;
  padding:0;
  display:grid;
  place-items:center;
}
.settings-row-menu-panel{
  position:absolute;
  right:0;
  top:calc(100% + 6px);
  width:190px;
  display:flex;
  flex-direction:column;
  gap:3px;
  padding:6px;
  border:1px solid #dfe3ea;
  border-radius:7px;
  background:#fff;
  box-shadow:0 10px 24px rgba(17,24,39,.12);
  opacity:0;
  visibility:hidden;
  pointer-events:none;
  transform:translateY(-5px);
  z-index:40;
  transition:opacity .14s ease,transform .18s ease,visibility 0s linear .18s;
}
.settings-row-menu.open .settings-row-menu-panel{
  opacity:1;
  visibility:visible;
  pointer-events:auto;
  transform:translateY(0);
}
.settings-row-menu-action{
  width:100%;
  justify-content:flex-start!important;
  border-color:transparent!important;
  background:#fff!important;
}
.settings-row-menu-action:hover{
  background:#f5f6f8!important;
  border-color:transparent!important;
}
.settings-row-menu-action.danger-text{
  color:#b42318!important;
}
.settings-row-menu-action.danger-text:hover{
  background:#fff1f2!important;
}

/* Full group avatar picker */
.group-avatar-settings-card-v169{
  padding-top:18px;
}
.group-avatar-comparison-v169{
  margin-bottom:22px;
  padding-bottom:18px;
  border-bottom:1px solid var(--line);
}
.settings-full-icon-grid{
  grid-template-columns:repeat(10,minmax(0,1fr))!important;
}
.settings-full-color-grid{
  grid-template-columns:repeat(15,minmax(0,1fr))!important;
}
.settings-full-color-grid .color-choice[data-color="#FFFFFF"] span{
  border:1px solid #cfd5df;
  box-sizing:border-box;
}

/* Contextual student/group headers can update live without shifting layout. */
.student-settings-topbar-v169 .student-context-topbar-name,
.group-settings-topbar-v169 .group-topbar-name{
  max-width:min(42vw,620px);
  overflow:hidden;
  text-overflow:ellipsis;
}

/* Deleted explanatory lines are gone; compact destructive modals. */
#removeStudentFromGroupModal .remove-student-note,
#deleteGroupModal .delete-group-students-note{
  display:none!important;
}

@media(max-width:1050px){
  .settings-full-icon-grid{grid-template-columns:repeat(6,minmax(0,1fr))!important}
  .settings-full-color-grid{grid-template-columns:repeat(10,minmax(0,1fr))!important}
}
@media(max-width:760px){
  .group-setting-row{
    grid-template-columns:1fr;
    gap:7px;
  }
  .group-setting-action{
    justify-content:flex-start;
  }
  .settings-full-icon-grid{grid-template-columns:repeat(5,minmax(0,1fr))!important}
  .settings-full-color-grid{grid-template-columns:repeat(6,minmax(0,1fr))!important}
}


/* v170 — settings ⋮ follows the established horizontal fly-out pattern */

/* The dots stay fixed. Hidden textual actions animate in horizontally to the left
   without changing the width of the row. */
.group-settings-page-v169 .settings-row-menu{
  position:relative;
  flex:0 0 auto;
}

.group-settings-page-v169 .settings-row-menu-panel{
  position:absolute!important;
  top:50%!important;
  right:calc(100% + 100px)!important;
  width:max-content!important;
  display:flex!important;
  flex-direction:row!important;
  align-items:center!important;
  gap:7px!important;
  padding:0!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  box-shadow:none!important;
  opacity:0!important;
  visibility:hidden!important;
  pointer-events:none!important;
  transform:translateY(calc(-50% - 10px))!important;
  z-index:40!important;
  transition:
    opacity .18s ease,
    transform .22s cubic-bezier(.2,.7,.2,1),
    visibility 0s linear .22s!important;
}

/* Slightly different offsets because the permanent action button has
   a different width in the Status and Enrollment rows. */
.group-settings-page-v169 .group-status-settings-row .settings-row-menu-panel{
  right:calc(100% + 112px)!important;
}
.group-settings-page-v169 .group-enrollment-settings-row .settings-row-menu-panel{
  right:calc(100% + 100px)!important;
}

.group-settings-page-v169 .settings-row-menu.open .settings-row-menu-panel{
  opacity:1!important;
  visibility:visible!important;
  pointer-events:auto!important;
  transform:translateY(-50%)!important;
  transition-delay:0s!important;
}

.group-settings-page-v169 .settings-row-menu-action{
  width:auto!important;
  min-height:34px!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:6px!important;
  padding:0 11px!important;
  border:1px solid var(--line)!important;
  border-radius:6px!important;
  background:#fff!important;
  color:var(--text)!important;
  white-space:nowrap!important;
  opacity:0!important;
  transform:translateY(-8px)!important;
  transition:
    background-color .14s ease,
    border-color .14s ease,
    color .14s ease,
    opacity .18s ease,
    transform .22s cubic-bezier(.2,.7,.2,1)!important;
}
.group-settings-page-v169 .settings-row-menu-action:hover{
  background:#f5f6f8!important;
  border-color:#c9cfda!important;
  color:var(--text)!important;
  transform:translateY(-8px)!important;
}
.group-settings-page-v169 .settings-row-menu.open .settings-row-menu-action{
  opacity:1!important;
  transform:translateY(0)!important;
}
.group-settings-page-v169 .settings-row-menu.open .settings-row-menu-action:hover{
  transform:translateY(0)!important;
}
.group-settings-page-v169 .settings-row-menu.open .settings-row-menu-action:nth-child(1){
  transition-delay:.02s!important;
}
.group-settings-page-v169 .settings-row-menu.open .settings-row-menu-action:nth-child(2){
  transition-delay:.055s!important;
}
.group-settings-page-v169 .settings-row-menu.open .settings-row-menu-action:nth-child(3){
  transition-delay:.09s!important;
}
.group-settings-page-v169 .settings-row-menu-action.danger-text{
  color:#b42318!important;
}
.group-settings-page-v169 .settings-row-menu-action.danger-text:hover{
  background:#fff1f2!important;
  border-color:#efc7cc!important;
  color:#b42318!important;
}

/* Active dots use the same subtle pressed state as elsewhere. */
.group-settings-page-v169 .settings-row-menu.open .settings-row-menu-toggle{
  background:#f0f1f5!important;
  border-color:#c9cfda!important;
  color:var(--text)!important;
}

@media(max-width:980px){
  /* On narrower layouts keep the same interaction, but let the fly-out sit
     directly above the action cluster so it doesn't escape the viewport. */
  .group-settings-page-v169 .settings-row-menu-panel,
  .group-settings-page-v169 .group-status-settings-row .settings-row-menu-panel,
  .group-settings-page-v169 .group-enrollment-settings-row .settings-row-menu-panel{
    right:0!important;
    top:auto!important;
    bottom:calc(100% + 7px)!important;
    transform:translateY(8px)!important;
  }
  .group-settings-page-v169 .settings-row-menu.open .settings-row-menu-panel{
    transform:translateY(0)!important;
  }
}


/* v171 — enrollment actions exist only while enrollment is open */
.group-enrollment-settings-row .settings-row-menu[hidden]{
  display:none!important;
}


/* v172 — group/student navigation + stable student task grids + universal pagination */

/* Back buttons are leftmost in each page's button cluster. */
.group-topbar-back-btn,
.student-context-back-btn{
  order:-20;
}
/* v168 hid every student action except Settings; explicitly keep Back too. */
.student-context-topbar-actions .student-context-back-btn{
  display:inline-flex!important;
}

/* Student > Praca w toku.
   Reserve a generous fixed action zone so opening the extra action never shifts progress.
   The progress column sits around the visual centre of the row. */
#studentActiveTasksView .assignment-member-row{
  grid-template-columns:minmax(300px,370px) minmax(260px,310px) 330px!important;
  justify-content:start!important;
  gap:26px!important;
}

#studentActiveTasksView .assignment-member-actions{
  width:330px!important;
  min-width:330px!important;
  position:relative!important;
  justify-content:flex-end!important;
  overflow:visible!important;
}
/* Established EUREKA logic: textual action slides horizontally to the left of Details/⋮.
   It is absolutely positioned inside the pre-reserved action zone, so the grid never reflows. */
#studentActiveTasksView .assignment-member-quick-panel{
  position:absolute!important;
  top:50%!important;
  right:184px!important;
  width:max-content!important;
  max-width:none!important;
  display:flex!important;
  flex-direction:row!important;
  align-items:center!important;
  gap:7px!important;
  margin:0!important;
  padding:0!important;
  border:0!important;
  background:transparent!important;
  box-shadow:none!important;
  opacity:0!important;
  visibility:hidden!important;
  pointer-events:none!important;
  transform:translateY(calc(-50% - 9px))!important;
  transition:opacity .18s ease,transform .22s cubic-bezier(.2,.7,.2,1),visibility 0s linear .22s!important;
  z-index:12!important;
}
#studentActiveTasksView .assignment-member-row.quick-open .assignment-member-quick-panel{
  opacity:1!important;
  visibility:visible!important;
  pointer-events:auto!important;
  transform:translateY(-50%)!important;
}
#studentActiveTasksView .assignment-member-quick-action{
  width:auto!important;
  min-height:34px!important;
  padding:0 11px!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:6px!important;
  border:1px solid var(--line)!important;
  border-radius:6px!important;
  background:#fff!important;
  color:var(--text)!important;
  white-space:nowrap!important;
  opacity:0!important;
  transform:translateY(-7px)!important;
  transition:background-color .14s ease,border-color .14s ease,color .14s ease,opacity .18s ease,transform .22s cubic-bezier(.2,.7,.2,1)!important;
}
#studentActiveTasksView .assignment-member-row.quick-open .assignment-member-quick-action{
  opacity:1!important;
  transform:translateY(0)!important;
}
#studentActiveTasksView .assignment-member-quick-action:hover{
  background:#f5f6f8!important;
  border-color:#c9cfda!important;
  transform:translateY(0)!important;
}

/* Student > Ukończone zadania: keep progress and grade around the centre instead of dragging right. */
#studentClosedTasksView .assignment-member-row.has-inline-grade{
  grid-template-columns:minmax(300px,370px) minmax(240px,285px) minmax(220px,260px) 118px!important;
  justify-content:start!important;
  gap:24px!important;
}


#studentClosedTasksView .assignment-member-actions{
  width:118px!important;
  min-width:118px!important;
}

/* Zdarzenia */
#studentActivityView .student-activity-row-v164{
  grid-template-columns:34px minmax(0,1fr) 108px!important;
  gap:13px!important;
  min-height:68px!important;
  padding:12px 0!important;
}
#studentActivityView .student-activity-copy strong{
  font-size:12.5px!important;
  line-height:1.38!important;
}
#studentActivityView .student-activity-copy p{
  margin-top:4px!important;
  font-size:10px!important;
}
.student-activity-details-btn{
  width:108px;
  justify-content:center;
  justify-self:end;
  text-decoration:none;
}

/* Universal EUREKA pagination pattern.
   Direct page links: max 5; first and last are always directly addressable. */
.portal-pagination{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:5px;
  padding:18px 0 4px;
  border-top:1px solid var(--line);
}
.portal-page-btn{
  min-width:32px;
  height:32px;
  display:inline-grid;
  place-items:center;
  padding:0 8px;
  border:1px solid var(--line);
  border-radius:6px;
  background:#fff;
  color:#5f6878;
  font:inherit;
  font-size:10.5px;
  font-weight:700;
  cursor:pointer;
  box-sizing:border-box;
}
.portal-page-btn:hover:not(:disabled):not(.active){
  background:#f5f6f8;
  border-color:#c9cfda;
  color:var(--text);
}
.portal-page-btn.active{
  background:var(--primary);
  border-color:var(--primary);
  color:#fff;
}
.portal-page-btn:disabled{
  opacity:.38;
  cursor:default;
}
.portal-page-chevron{
  width:32px;
  padding:0;
}
.portal-page-chevron .dashicons{
  width:15px;
  height:15px;
  font-size:15px;
  line-height:15px;
}
.portal-page-ellipsis{
  min-width:22px;
  display:inline-grid;
  place-items:center;
  color:#8a93a3;
  font-size:12px;
  font-weight:700;
}

@media(max-width:1120px){
  #studentActiveTasksView .assignment-member-row{
    grid-template-columns:minmax(260px,330px) minmax(220px,270px) 300px!important;
    gap:20px!important;
  }
  #studentActiveTasksView .assignment-member-actions{
    width:300px!important;
    min-width:300px!important;
  }
  #studentActiveTasksView .assignment-member-quick-panel{
    right:184px!important;
  }
  #studentClosedTasksView .assignment-member-row.has-inline-grade{
    grid-template-columns:minmax(260px,330px) minmax(210px,250px) minmax(190px,230px) 118px!important;
    gap:18px!important;
  }
}
@media(max-width:900px){
  #studentActiveTasksView .assignment-member-row,
  #studentClosedTasksView .assignment-member-row.has-inline-grade{
    grid-template-columns:1fr!important;
  }
  #studentActiveTasksView .assignment-member-actions,
  #studentClosedTasksView .assignment-member-actions{
    width:auto!important;
    min-width:0!important;
    justify-content:flex-start!important;
  }
  #studentActiveTasksView .assignment-member-quick-panel{
    position:static!important;
    order:-1;
    transform:translateY(-7px)!important;
  }
  #studentActiveTasksView .assignment-member-row.quick-open .assignment-member-quick-panel{
    transform:translateY(0)!important;
  }
}


/* v173 — student task rows: central work columns, permanent actions pinned right */

/* Praca w toku:
   identity + progress stay left/centre; Details + ⋮ always hug the right edge.
   Opening the extra action does not change the grid at all. */
#studentActiveTasksView .assignment-member-row{
  grid-template-columns:
    minmax(300px,370px)
    minmax(260px,310px)
    minmax(0,1fr)!important;
  justify-content:stretch!important;
  gap:26px!important;
}
#studentActiveTasksView .assignment-member-progress{
  width:100%!important;
  max-width:310px!important;
  justify-self:start!important;
}
#studentActiveTasksView .assignment-member-actions{
  width:auto!important;
  min-width:0!important;
  justify-self:end!important;
  justify-content:flex-end!important;
  position:relative!important;
  overflow:visible!important;
}
#studentActiveTasksView .assignment-member-quick-panel{
  right:184px!important;
}

/* Ukończone:
   progress and grade stay around the middle, Details remains pinned to the far right. */
#studentClosedTasksView .assignment-member-row.has-inline-grade{
  grid-template-columns:
    minmax(300px,370px)
    minmax(240px,285px)
    minmax(220px,260px)
    minmax(0,1fr)!important;
  justify-content:stretch!important;
  gap:24px!important;
}
#studentClosedTasksView .assignment-member-progress{
  width:100%!important;
  max-width:285px!important;
  justify-self:start!important;
}
#studentClosedTasksView .assignment-inline-grade{
  width:100%!important;
  max-width:260px!important;
  justify-self:start!important;
}
#studentClosedTasksView .assignment-member-actions{
  width:auto!important;
  min-width:0!important;
  justify-self:end!important;
  justify-content:flex-end!important;
}

/* Zdarzenia: Details uses the same icon/text spacing as the rest of the portal. */
#studentActivityView .student-activity-details-btn{
  width:108px;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:7px!important;
  justify-self:end;
  text-decoration:none;
}
#studentActivityView .student-activity-details-btn .dashicons{
  width:15px!important;
  height:15px!important;
  font-size:15px!important;
  line-height:15px!important;
  flex:0 0 15px!important;
}

/* Universal portal pagination:
   navigation chevrons at the far left, page numbers at the far right. */
.portal-pagination{
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:18px!important;
  width:100%!important;
  padding:18px 0 4px!important;
  border-top:1px solid var(--line)!important;
}
.portal-pagination-navigation,
.portal-pagination-pages{
  display:flex;
  align-items:center;
  gap:5px;
}
.portal-pagination-navigation{
  justify-content:flex-start;
}
.portal-pagination-pages{
  justify-content:flex-end;
  margin-left:auto;
}

@media(max-width:1120px){
  #studentActiveTasksView .assignment-member-row{
    grid-template-columns:
      minmax(260px,330px)
      minmax(220px,270px)
      minmax(0,1fr)!important;
    gap:20px!important;
  }
  #studentActiveTasksView .assignment-member-actions{
    width:auto!important;
    min-width:0!important;
  }

  #studentClosedTasksView .assignment-member-row.has-inline-grade{
    grid-template-columns:
      minmax(260px,330px)
      minmax(210px,250px)
      minmax(190px,230px)
      minmax(0,1fr)!important;
    gap:18px!important;
  }
  #studentClosedTasksView .assignment-member-actions{
    width:auto!important;
    min-width:0!important;
  }
}

@media(max-width:900px){
  .portal-pagination{
    gap:12px!important;
  }
  .portal-pagination-pages{
    flex-wrap:wrap;
  }
}


/* v174 — student active-task quick action sits directly beside the permanent actions */
#studentActiveTasksView .assignment-member-quick-panel{
  right:calc(100% + 7px)!important;
}

@media(max-width:1120px){
  #studentActiveTasksView .assignment-member-quick-panel{
    right:calc(100% + 7px)!important;
  }
}


/* v175 — smaller scoped batch */
.tasks-hub-pagination{margin-top:12px}

/* Active assignment: longest student identity sets the common progress start line. */
#assignmentInProgressView .assignment-member-row{
  grid-template-columns:var(--assignment-identity-col,390px) 300px minmax(0,1fr)!important;
  gap:24px!important;
  justify-content:stretch!important;
}
#assignmentInProgressView .assignment-member-progress{
  width:100%!important;max-width:300px!important;justify-self:start!important;
}
#assignmentInProgressView .assignment-member-actions{
  width:auto!important;min-width:0!important;justify-self:end!important;justify-content:flex-end!important;position:relative!important;overflow:visible!important;
}
/* Horizontal quick actions, never dropdown. */
#assignmentInProgressView .assignment-member-quick-panel,
#assignmentClosedView .assignment-member-quick-panel{
  position:absolute!important;top:50%!important;right:calc(100% + 7px)!important;
  width:max-content!important;max-width:none!important;display:flex!important;flex-direction:row!important;align-items:center!important;gap:7px!important;
  margin:0!important;padding:0!important;border:0!important;background:transparent!important;box-shadow:none!important;overflow:visible!important;
  opacity:0!important;visibility:hidden!important;pointer-events:none!important;transform:translateY(calc(-50% - 10px))!important;z-index:30!important;
  transition:opacity .18s ease,transform .22s cubic-bezier(.2,.7,.2,1),visibility 0s linear .22s!important;
}
#assignmentInProgressView .assignment-member-row.quick-open .assignment-member-quick-panel,
#assignmentClosedView .assignment-member-row.quick-open .assignment-member-quick-panel{
  opacity:1!important;visibility:visible!important;pointer-events:auto!important;transform:translateY(-50%)!important;
}
#assignmentInProgressView .assignment-member-quick-action,
#assignmentClosedView .assignment-member-quick-action{
  width:auto!important;min-height:36px!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:6px!important;
  padding:0 11px!important;border:1px solid var(--line)!important;border-radius:6px!important;background:#fff!important;color:var(--text)!important;
  white-space:nowrap!important;opacity:0!important;transform:translateY(-8px)!important;
}
#assignmentInProgressView .assignment-member-row.quick-open .assignment-member-quick-action,
#assignmentClosedView .assignment-member-row.quick-open .assignment-member-quick-action{
  opacity:1!important;transform:translateY(0)!important;
}

/* Closed: progress and grade move left; details + dots remain pinned right. */
#assignmentClosedView .assignment-member-row.has-inline-grade{
  grid-template-columns:var(--assignment-identity-col,390px) 260px 250px minmax(0,1fr)!important;
  gap:24px!important;justify-content:stretch!important;
}


#assignmentClosedView .assignment-member-actions{
  width:auto!important;min-width:0!important;justify-self:end!important;justify-content:flex-end!important;position:relative!important;overflow:visible!important;
}


/* v176 — active assignment cleanup */
#assignmentClosedView .assignment-member-actions{
  gap:0!important;
}
#assignmentClosedView .assignment-member-quick-panel,
#assignmentClosedView .assignment-member-quick-toggle{
  display:none!important;
}


/* v177 — task pagination is always below the content card */
.tasks-hub-card + .tasks-hub-pagination{
  margin-top:12px!important;
}
.tasks-hub-pagination[hidden]{
  display:none!important;
}


/* v178 — finish-assignment modal action icons */
#cancelAssignmentModal .light-action-icon{
  position:relative;
  display:inline-block;
  width:14px;
  height:14px;
  flex:0 0 14px;
}
#cancelAssignmentModal .light-action-icon.check::before{
  content:"";
  position:absolute;
  left:3.4px;
  top:1.6px;
  width:5px;
  height:8px;
  border-right:1.5px solid currentColor;
  border-bottom:1.5px solid currentColor;
  transform:rotate(42deg);
}


/* v179 — finish modal cancel + reopen action for completed students */
#cancelAssignmentModal .light-action-icon.cross::before,
#cancelAssignmentModal .light-action-icon.cross::after{
  content:"";
  position:absolute;
  left:6.2px;
  top:2.2px;
  width:1.4px;
  height:9.6px;
  border-radius:2px;
  background:currentColor;
}
#cancelAssignmentModal .light-action-icon.cross::before{transform:rotate(45deg)}
#cancelAssignmentModal .light-action-icon.cross::after{transform:rotate(-45deg)}

#assignmentClosedView .assignment-member-quick-panel{
  display:flex!important;
  position:absolute!important;
  top:50%!important;
  right:calc(100% + 7px)!important;
  width:max-content!important;
  max-width:none!important;
  flex-direction:row!important;
  align-items:center!important;
  gap:7px!important;
  padding:0!important;
  border:0!important;
  background:transparent!important;
  box-shadow:none!important;
  opacity:0!important;
  visibility:hidden!important;
  pointer-events:none!important;
  transform:translateY(calc(-50% - 9px))!important;
  transition:opacity .18s ease, transform .22s ease, visibility 0s linear .22s!important;
  z-index:30!important;
}

#assignmentClosedView .assignment-member-quick-toggle{
  display:inline-flex!important;
}
#assignmentClosedView .assignment-member-quick-action{
  min-height:36px!important;
  padding:0 12px!important;
  display:inline-flex!important;
  align-items:center!important;
  gap:6px!important;
  border:1px solid var(--line)!important;
  border-radius:6px!important;
  background:#fff!important;
  color:var(--text)!important;
  white-space:nowrap!important;
}


/* v180 — completed-student quick action corrected */

/* Restore standard spacing between Details and the dots button. */


/* Same dots button geometry as elsewhere in the interface. */
#assignmentClosedView .assignment-member-quick-toggle{
  width:36px!important;
  min-width:36px!important;
  height:36px!important;
  padding:0!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  border:1px solid var(--line)!important;
  border-radius:6px!important;
  background:#fff!important;
}

/* Give the fly-out action breathing room:
   progress and grade move left, Details + dots remain pinned right. */
#assignmentClosedView .assignment-member-row.has-inline-grade{
  grid-template-columns:
    330px
    260px
    250px
    minmax(210px,1fr)!important;
  gap:20px!important;
}
#assignmentClosedView .assignment-member-progress{
  width:100%!important;
  max-width:260px!important;
  justify-self:start!important;
}
#assignmentClosedView .assignment-inline-grade{
  width:100%!important;
  max-width:250px!important;
  justify-self:start!important;
}

/* Established horizontal fly-out button, matching the rest of the portal. */
#assignmentClosedView .assignment-member-quick-panel{
  top:50%!important;
  right:calc(100% + 7px)!important;
  display:flex!important;
  flex-direction:row!important;
  align-items:center!important;
  gap:7px!important;
  padding:0!important;
  border:0!important;
  background:transparent!important;
  box-shadow:none!important;
  opacity:0!important;
  visibility:hidden!important;
  pointer-events:none!important;
  transform:translateY(calc(-50% - 9px))!important;
}
#assignmentClosedView .assignment-member-row.quick-open .assignment-member-quick-panel{
  opacity:1!important;
  visibility:visible!important;
  pointer-events:auto!important;
  transform:translateY(-50%)!important;
}
#assignmentClosedView .assignment-member-quick-action{
  min-height:36px!important;
  padding:0 12px!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:6px!important;
  border:1px solid var(--line)!important;
  border-radius:6px!important;
  background:#fff!important;
  color:var(--text)!important;
  font:inherit!important;
  white-space:nowrap!important;
}

@media(max-width:1180px){
  #assignmentClosedView .assignment-member-row.has-inline-grade{
    grid-template-columns:
      300px
      230px
      220px
      minmax(190px,1fr)!important;
    gap:18px!important;
  }
}


/* v181 — completed assignment rows:
   keep progress/grade geometry, shorten only the comment preview */
#assignmentClosedView .assignment-member-row.has-inline-grade{
  grid-template-columns:
    390px
    minmax(240px,285px)
    minmax(220px,260px)
    minmax(0,1fr)!important;
  gap:24px!important;
}

#assignmentClosedView .assignment-member-progress{
  width:100%!important;
  max-width:285px!important;
  justify-self:start!important;
}

#assignmentClosedView .assignment-inline-grade{
  width:100%!important;
  max-width:260px!important;
  min-width:0!important;
  justify-self:start!important;
}

/* Shorter preview leaves visual room for Details + ⋮ + reopened-action flyout. */
#assignmentClosedView .assignment-inline-grade-summary{
  display:block!important;
  max-width:150px!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  white-space:nowrap!important;
}

@media(max-width:1180px){
  #assignmentClosedView .assignment-member-row.has-inline-grade{
    grid-template-columns:
      340px
      minmax(220px,260px)
      minmax(200px,240px)
      minmax(0,1fr)!important;
    gap:18px!important;
  }
  #assignmentClosedView .assignment-inline-grade-summary{
    max-width:125px!important;
  }
}


/* v182 — completed-row actions visually identical to "Praca w toku" */

/* Dots button: exact geometry used by assignment rows in progress. */
#assignmentClosedView .assignment-member-quick-toggle.btn.small{
  flex:0 0 34px!important;
  width:34px!important;
  min-width:34px!important;
  height:34px!important;
  min-height:34px!important;
  padding:0!important;
  display:inline-grid!important;
  place-items:center!important;
}

/* Keep the dots themselves identical as well. */
#assignmentClosedView .assignment-member-quick-toggle .group-quick-actions-dots-vertical{
  gap:2.5px!important;
  width:10px!important;
  height:16px!important;
}
#assignmentClosedView .assignment-member-quick-toggle .group-quick-actions-dots-vertical i{
  width:3px!important;
  height:3px!important;
}

/* "Otwórz ponownie": same typography, size and button chrome
   as the quick actions in the active-students card. */
#assignmentClosedView .assignment-member-quick-action{
  width:auto!important;
  min-height:36px!important;
  padding:0 11px!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:6px!important;
  border:1px solid var(--line)!important;
  border-radius:6px!important;
  background:#fff!important;
  color:var(--text)!important;
  font-family:inherit!important;
  font-size:12px!important;
  font-weight:670!important;
  line-height:1!important;
  box-shadow:0 1px 0 rgba(0,0,0,.02)!important;
  white-space:nowrap!important;
}
#assignmentClosedView .assignment-member-quick-action:hover{
  background:#f5f6f8!important;
  border-color:#c9cfda!important;
  color:var(--text)!important;
}

/* Details + dots keep the same spacing as in the active card. */
#assignmentClosedView .assignment-member-actions{
  gap:7px!important;
}


/* v183 — student assignment states */

/* Animated barber-pole stripes only on the colored ACTIVE portion of open work. */
@keyframes eureka-active-progress-stripes{
  from{background-position:0 0}
  to{background-position:28px 0}
}
.student-assignment-work-open .student-progress-overview-fill{
  background-image:
    repeating-linear-gradient(
      135deg,
      rgba(0,0,0,.10) 0,
      rgba(0,0,0,.10) 7px,
      rgba(0,0,0,0) 7px,
      rgba(0,0,0,0) 14px
    )!important;
  background-size:28px 28px!important;
  animation:eureka-active-progress-stripes .9s linear infinite!important;
}
.student-assignment-work-closed .student-progress-overview-fill{
  background-image:none!important;
  animation:none!important;
}

/* State captions */
.student-assignment-state-copy.state-in-progress,
.student-assignment-state-copy.state-completed{
  display:flex;
  align-items:center;
  gap:8px;
  color:#566174;
  font-size:14px!important;
  font-weight:760;
  line-height:1.45!important;
}
.student-assignment-state-copy .student-assignment-state-icon{
  width:18px!important;
  height:18px!important;
  flex:0 0 18px!important;
  font-size:18px!important;
  line-height:18px!important;
}

.student-assignment-state-copy.state-closed{
  color:var(--text)!important;
  font-size:14px!important;
  line-height:1.5!important;
}
.student-closed-state-title{
  display:flex;
  align-items:center;
  gap:8px;
  color:#26735a;
  font-size:15px;
  font-weight:800;
}
.student-closed-state-title .light-action-icon.check{
  position:relative;
  display:inline-block;
  width:16px!important;
  height:16px!important;
  flex:0 0 16px!important;
}
.student-closed-state-title .light-action-icon.check::before{
  content:"";
  position:absolute;
  left:4px;
  top:1.5px;
  width:5.5px;
  height:9px;
  border-right:1.6px solid currentColor;
  border-bottom:1.6px solid currentColor;
  transform:rotate(42deg);
}
.student-closed-grade-line{
  margin-top:10px;
  font-size:14px;
  color:var(--text);
}
.student-closed-grade-comment{
  margin-top:5px;
  max-width:760px;
  color:#5b6577;
  font-size:13.5px;
  font-style:italic;
  line-height:1.55;
}

/* A closed realization remains readable, but discussion is frozen. */
.assignment-discussion-readonly .teacher-conversation-composer,
.assignment-discussion-readonly .resolve-problem-btn,
.assignment-discussion-readonly .own-message-actions,
.assignment-discussion-readonly .message-reaction-picker{
  display:none!important;
}


/* v184 — student assignment status polish + CSS-Tricks-style barber-pole progress */

/* Hidden state variants must stay hidden even though visible variants use flex. */
.student-assignment-state-copy[hidden]{
  display:none!important;
}

/* Open work: moving diagonal stripes live on a pseudo-element over the colored fill.
   The base fill keeps its normal progress color. */
@keyframes eureka-student-progress-barberpole{
  from{background-position:0 0}
  to{background-position:28px 0}
}
.student-assignment-work-open .student-progress-overview-fill{
  position:relative!important;
  overflow:hidden!important;
  animation:none!important;
  background-image:none!important;
}
.student-assignment-work-open .student-progress-overview-fill::after{
  content:"";
  position:absolute;
  inset:0;
  border-radius:inherit;
  pointer-events:none;
  background-image:
    linear-gradient(
      135deg,
      transparent 0,
      transparent 25%,
      rgba(0,0,0,.11) 25%,
      rgba(0,0,0,.11) 50%,
      transparent 50%,
      transparent 75%,
      rgba(0,0,0,.11) 75%,
      rgba(0,0,0,.11) 100%
    );
  background-size:28px 28px;
  animation:eureka-student-progress-barberpole .85s linear infinite;
}
.student-assignment-work-closed .student-progress-overview-fill::after{
  content:none!important;
}
.student-assignment-work-closed .student-progress-overview-fill{
  animation:none!important;
  background-image:none!important;
}

/* One centered state line for open / waiting-for-review work. */
.student-assignment-state-copy.state-in-progress,
.student-assignment-state-copy.state-completed{
  width:100%;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  color:var(--text)!important;
  font-size:14px!important;
  font-weight:400!important;
  line-height:1.45!important;
  text-align:center;
}

/* Closed state: one completion message, centered and neutral. */
.student-assignment-state-copy.state-closed{
  width:100%;
  text-align:center;
  color:var(--text)!important;
  font-size:14px!important;
  line-height:1.5!important;
}
.student-closed-state-title{
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:8px!important;
  color:var(--text)!important;
  font-size:14px!important;
  font-weight:400!important;
  text-align:center!important;
}
.student-closed-star{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:17px;
  height:17px;
  flex:0 0 17px;
  color:#D6A514;
  font-size:17px;
  line-height:1;
}
.student-closed-grade-line{
  margin-top:10px!important;
  color:var(--text)!important;
  font-size:14px!important;
  text-align:center!important;
}
.student-closed-grade-line strong{
  font-weight:700;
}
.student-closed-grade-comment{
  margin:7px auto 0!important;
  max-width:760px!important;
  color:var(--text)!important;
  font-size:13.5px!important;
  font-style:italic!important;
  font-weight:400!important;
  line-height:1.55!important;
  text-align:center!important;
}

@media (prefers-reduced-motion: reduce){
  .student-assignment-work-open .student-progress-overview-fill::after{
    animation:none!important;
  }
}


/* v185 — refined student-assignment status badges */

/* Open / waiting-for-review: centered compact label with a white icon
   in the system-primary rounded tile. */
.student-assignment-state-copy.state-in-progress,
.student-assignment-state-copy.state-completed{
  width:100%;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  color:var(--text)!important;
  font-size:12.5px!important;
  font-weight:700!important;
  line-height:1.35!important;
  text-align:center;
}

.student-assignment-state-copy.state-in-progress .student-assignment-state-icon,
.student-assignment-state-copy.state-completed .student-assignment-state-icon{
  width:26px!important;
  height:26px!important;
  flex:0 0 26px!important;
  display:inline-grid!important;
  place-items:center!important;
  border-radius:6px!important;
  background:var(--primary)!important;
  color:#fff!important;
  font-size:15px!important;
  line-height:26px!important;
  box-shadow:0 1px 2px rgba(20,25,40,.08);
}

/* Closed: compact bold label, white star in a flat gold tile. */
.student-closed-state-title{
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:8px!important;
  color:var(--text)!important;
  font-size:12.5px!important;
  font-weight:700!important;
  line-height:1.35!important;
  text-align:center!important;
}

.student-closed-star{
  width:26px!important;
  height:26px!important;
  flex:0 0 26px!important;
  display:inline-grid!important;
  place-items:center!important;
  border-radius:6px!important;
  background:#D6A514!important;
  color:#fff!important;
  font-size:14px!important;
  line-height:1!important;
  box-shadow:0 1px 2px rgba(20,25,40,.08);
}

/* Gentle visual separation between completion state and grading summary. */
.student-closed-grade-line{
  width:min(520px,72%)!important;
  margin:12px auto 0!important;
  padding-top:10px!important;
  border-top:1px solid var(--line)!important;
  color:var(--text)!important;
  font-size:13px!important;
  text-align:center!important;
}

.student-closed-grade-line strong{
  font-size:14px!important;
  font-weight:750!important;
}

.student-closed-grade-comment{
  margin:7px auto 0!important;
  max-width:760px!important;
  color:#5b6577!important;
  font-size:13.5px!important;
  font-style:italic!important;
  font-weight:400!important;
  line-height:1.55!important;
  text-align:center!important;
}


/* v187 — task-content topbar action sets */
.task-definition-preview-actions,
.assignment-content-topbar-actions{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:8px;
  flex-wrap:wrap;
}
.task-definition-preview-actions .btn,
.assignment-content-topbar-actions .btn{
  white-space:nowrap;
}


/* v188 — task-content actions and modal consistency */
.assignment-content-topbar-actions{
  flex-wrap:nowrap!important;
  gap:6px!important;
}
.assignment-content-topbar-actions .btn{
  flex:0 0 auto!important;
  padding-left:10px;
  padding-right:10px;
}
.assignment-content-topbar .assignment-topbar-title{
  min-width:0;
}
@media(max-width:1180px){
  .assignment-content-topbar-actions{
    flex-wrap:wrap!important;
  }
}


/* v190 — notifications redesigned as an event inbox */
.notifications-local-toolbar{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  margin:0 0 12px;
  padding:0 2px;
}
.notifications-local-nav{
  margin:0!important;
}
.notifications-view[hidden]{
  display:none!important;
}
.notifications-list-card{
  overflow:hidden;
}
.notifications-event-list{
  display:flex;
  flex-direction:column;
}
.notification-event-row{
  display:grid;
  grid-template-columns:36px minmax(0,1fr) auto;
  gap:12px;
  align-items:center;
  min-height:66px;
  padding:11px 14px;
  border-bottom:1px solid var(--line);
}
.notification-event-row:last-child{
  border-bottom:0;
}
.notification-event-row[data-href]{
  cursor:pointer;
}
.notification-event-row[data-href]:hover{
  background:
    linear-gradient(
      90deg,
      #fff 0%,
      #f6f7fa 14%,
      #f6f7fa 86%,
      #fff 100%
    )!important;
}
.notification-event-row.is-unread .notification-event-copy strong{
  font-weight:760;
}
.notification-event-copy{
  min-width:0;
}
.notification-event-copy strong{
  display:block;
  color:var(--text);
  font-size:11.5px;
  line-height:1.38;
  font-weight:650;
}
.notification-event-copy p{
  margin:3px 0 0;
  color:var(--muted);
  font-size:9.5px;
  line-height:1.4;
}
.notification-event-actions{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:7px;
  min-width:max-content;
}
.notification-event-actions:empty{
  display:none;
}
.notification-details-btn,
.notification-read-btn{
  min-height:34px!important;
}
.notifications-pagination{
  margin-top:12px!important;
}

/* Keep event icon language consistent with Student > Zdarzenia. */
.notification-event-row .student-activity-icon{
  width:32px;
  height:32px;
  display:grid;
  place-items:center;
  border-radius:7px;
}
.notification-event-row .student-activity-icon .dashicons{
  width:16px;
  height:16px;
  font-size:16px;
  line-height:16px;
}
.notification-event-row .student-activity-icon.comment{background:#eef3fb;color:#5474ba}
.notification-event-row .student-activity-icon.done{background:#e7f6ef;color:#237a57}
.notification-event-row .student-activity-icon.progress{background:#eef3fb;color:#5474ba}
.notification-event-row .student-activity-icon.reaction{background:#f2ecfb;color:#7a55a1}
.notification-event-row .student-activity-icon.problem{background:#fdebed;color:#b42318}
.notification-event-row .student-activity-icon.problem-resolved{background:#e7f6ef;color:#237a57}
.notification-event-row .student-activity-icon.grade,
.notification-event-row .student-activity-icon.grade-edit{background:#fff2df;color:#9a681d}
.notification-event-row .student-activity-icon.assigned,
.notification-event-row .student-activity-icon.started{background:#eef3fb;color:#5474ba}
.notification-event-row .student-activity-icon.undo,
.notification-event-row .student-activity-icon.reopen{background:#f1f2f5;color:#667085}
.notification-event-row .student-activity-icon.cancel{background:#fdebed;color:#b42318}
.notification-event-row .student-activity-icon.join{background:#eef3fb;color:#5474ba}

@media(max-width:900px){
  .notification-event-row{
    grid-template-columns:32px minmax(0,1fr);
  }
  .notification-event-actions{
    grid-column:2;
    justify-content:flex-start;
  }
}


/* v191 — notification buttons use the established EUREKA icon language */
.notification-event-actions .btn,
#markAllNotificationsRead{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:6px!important;
}

/* Reuse exactly the same lightweight check geometry used by the portal's
   standard save/confirm actions. */
.notification-event-actions .light-action-icon,
#markAllNotificationsRead .light-action-icon{
  position:relative!important;
  display:inline-block!important;
  width:14px!important;
  height:14px!important;
  flex:0 0 14px!important;
}
.notification-event-actions .light-action-icon.check::before,
#markAllNotificationsRead .light-action-icon.check::before{
  content:"";
  position:absolute;
  left:3.4px;
  top:1.6px;
  width:5px;
  height:8px;
  border-right:1.5px solid currentColor;
  border-bottom:1.5px solid currentColor;
  transform:rotate(42deg);
}

/* Standard icon/text spacing for Details as well. */
.notification-event-actions .btn .btn-icon,
#markAllNotificationsRead .btn-icon{
  margin:0!important;
}


/* v193 — teacher home rebuilt around active work */

/* Breadcrumbs live immediately below the topbar like elsewhere. */
.teacher-dashboard-topbar + .content > .breadcrumbs{
  margin-bottom:14px;
}

/* Larger platform administrator announcement. */
.teacher-dashboard-system-announcement{
  display:grid;
  grid-template-columns:42px minmax(0,1fr) auto;
  gap:14px;
  align-items:center;
  min-height:82px;
  margin-bottom:18px;
  padding:15px 17px;
  border:1px solid #d9dfef;
  border-radius:8px;
  background:#f8f9fd;
}
.teacher-dashboard-system-announcement-icon{
  width:42px;
  height:42px;
  display:grid;
  place-items:center;
  border-radius:8px;
  background:#eef0fb;
  color:var(--primary);
}
.teacher-dashboard-system-announcement-icon .dashicons{
  width:20px;
  height:20px;
  font-size:20px;
  line-height:20px;
}
.teacher-dashboard-system-announcement-copy{
  min-width:0;
}
.teacher-dashboard-system-announcement-eyebrow{
  display:block;
  margin-bottom:3px;
  color:var(--primary);
  font-size:9.5px;
  font-weight:800;
  text-transform:uppercase;
  letter-spacing:.04em;
}
.teacher-dashboard-system-announcement-copy strong{
  display:block;
  color:var(--text);
  font-size:13.5px;
  line-height:1.35;
}
.teacher-dashboard-system-announcement-copy p{
  margin:4px 0 0;
  color:#5f697a;
  font-size:10.5px;
  line-height:1.5;
}
.teacher-dashboard-system-announcement-date{
  align-self:start;
  padding-top:2px;
  color:var(--muted);
  font-size:9.5px;
  white-space:nowrap;
}

/* Main information architecture: work on the left, latest notifications on the right. */
.teacher-dashboard-home-grid{
  display:grid;
  grid-template-columns:minmax(0,1.85fr) minmax(300px,.8fr);
  gap:16px;
  align-items:start;
}
.teacher-dashboard-home-main{
  min-width:0;
  display:grid;
  gap:16px;
}
.teacher-dashboard-home-side{
  min-width:0;
}
.teacher-dashboard-home-card,
.teacher-dashboard-notifications-card{
  padding-top:0!important;
  padding-bottom:0!important;
  overflow:visible;
}
.teacher-dashboard-home-card-head{
  min-height:58px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  padding:10px 0;
  border-bottom:1px solid var(--line);
}
.teacher-dashboard-home-card-head h2{
  margin:0;
  color:var(--text);
  font-size:14px;
  line-height:1.3;
}

/* Preserve the exact row language from the canonical Active cards. */
#dashboardActiveTasks .tasks-hub-row:first-child,
#dashboardActiveGroups .group-list-row:first-child{
  border-top:0!important;
}
#dashboardActiveTasks .tasks-hub-row:last-child,
#dashboardActiveGroups .group-list-row:last-child{
  border-bottom:0!important;
}

/* Notification side rail */
.teacher-dashboard-notifications-list{
  display:flex;
  flex-direction:column;
}
.teacher-dashboard-notification-item{
  position:relative;
  display:grid;
  grid-template-columns:30px minmax(0,1fr) 14px;
  gap:9px;
  align-items:center;
  min-height:62px;
  padding:9px 0;
  border-bottom:1px solid var(--line);
}
.teacher-dashboard-notification-item:last-child{
  border-bottom:0;
}
.teacher-dashboard-notification-item[data-href]{
  cursor:pointer;
}
.teacher-dashboard-notification-item[data-href]:hover{
  background:
    linear-gradient(
      90deg,
      #fff 0%,
      #f6f7fa 14%,
      #f6f7fa 86%,
      #fff 100%
    )!important;
}
.teacher-dashboard-notification-item.is-unread{
  background:#fbfcff;
}
.teacher-dashboard-notification-item.is-unread::before{
  content:"";
  position:absolute;
  left:-10px;
  top:50%;
  width:4px;
  height:22px;
  border-radius:3px;
  background:var(--primary);
  transform:translateY(-50%);
}
.teacher-dashboard-notification-item .student-activity-icon{
  width:30px;
  height:30px;
  flex:0 0 30px;
}
.teacher-dashboard-notification-item-copy{
  min-width:0;
}
.teacher-dashboard-notification-item-top{
  display:flex;
  align-items:center;
  gap:6px;
  margin-bottom:4px;
}
.teacher-dashboard-notification-tag{
  display:inline-flex;
  align-items:center;
  min-height:18px;
  padding:0 6px;
  border:1px solid #e1e4eb;
  border-radius:5px;
  background:#f7f8fa;
  color:#697386;
  font-size:8.5px;
  font-weight:750;
  line-height:1;
}
.teacher-dashboard-notification-new{
  display:inline-flex;
  align-items:center;
  gap:4px;
  color:var(--primary);
  font-size:8.5px;
  font-weight:750;
}
.teacher-dashboard-notification-new i{
  width:5px;
  height:5px;
  border-radius:50%;
  background:var(--primary);
}
.teacher-dashboard-notification-item-copy strong{
  display:block;
  color:var(--text);
  font-size:10.5px;
  line-height:1.35;
  font-weight:650;
}
.teacher-dashboard-notification-item.is-unread .teacher-dashboard-notification-item-copy strong{
  font-weight:760;
}
.teacher-dashboard-notification-item-copy p{
  margin:3px 0 0;
  color:var(--muted);
  font-size:8.8px;
  line-height:1.35;
}
.teacher-dashboard-notification-arrow{
  color:#a6adba;
}
.teacher-dashboard-notification-arrow .dashicons{
  width:14px;
  height:14px;
  font-size:14px;
  line-height:14px;
}

/* Bottom curiosity area; backend can later replace the prototype array. */
.teacher-dashboard-curiosity{
  display:grid;
  grid-template-columns:38px minmax(0,1fr);
  gap:12px;
  align-items:center;
  margin-top:16px;
  padding:14px 16px;
}
.teacher-dashboard-curiosity-icon{
  width:38px;
  height:38px;
  display:grid;
  place-items:center;
  border-radius:8px;
  background:#fff3d6;
  color:#9a681d;
}
.teacher-dashboard-curiosity-icon .dashicons{
  width:18px;
  height:18px;
  font-size:18px;
  line-height:18px;
}
.teacher-dashboard-curiosity-eyebrow{
  display:block;
  margin-bottom:3px;
  color:#9a681d;
  font-size:9px;
  font-weight:800;
  text-transform:uppercase;
  letter-spacing:.04em;
}
.teacher-dashboard-curiosity-copy p{
  margin:0;
  color:var(--text);
  font-size:11px;
  line-height:1.5;
}

@media(max-width:1180px){
  .teacher-dashboard-home-grid{
    grid-template-columns:minmax(0,1fr);
  }
  .teacher-dashboard-system-announcement{
    grid-template-columns:42px minmax(0,1fr);
  }
  .teacher-dashboard-system-announcement-date{
    grid-column:2;
    padding-top:0;
  }
}


/* v194 — teacher dashboard: one-column overview, simple row navigation */

/* The page shell already provides the breadcrumb below the topbar.
   Dashboard content must not create a second one. */
.teacher-dashboard-home-stack{
  display:grid;
  grid-template-columns:minmax(0,1fr)!important;
  gap:16px;
  width:100%;
}
.teacher-dashboard-home-stack > *{
  width:100%;
  min-width:0;
}

/* Dashboard cards are all full width. */
.teacher-dashboard-home-card,
.teacher-dashboard-notifications-card{
  width:100%;
  max-width:none!important;
}

/* Dashboard-specific row action: only a discreet chevron that opens Details.
   No quick-action dots/panels on the home screen. */
.teacher-dashboard-row-chevron{
  width:30px;
  height:30px;
  display:grid;
  place-items:center;
  justify-self:end;
  align-self:center;
  border-radius:6px;
  color:#98a2b3;
  text-decoration:none;
  transition:background-color .14s ease,color .14s ease;
}
.teacher-dashboard-row-chevron:hover{
  background:#f2f4f7;
  color:#475467;
}
.teacher-dashboard-row-chevron .dashicons{
  width:16px;
  height:16px;
  font-size:16px;
  line-height:16px;
}

/* The copied canonical rows keep their exact left-side content, with a
   lightweight navigation affordance in the former action column. */
#dashboardActiveTasks .tasks-hub-row{
  grid-template-columns:minmax(0,1fr) 30px!important;
}
#dashboardActiveGroups .group-list-row{
  grid-template-columns:minmax(0,1fr) 30px!important;
}

/* Full-width notification section now behaves like the other main cards. */
.teacher-dashboard-notifications-card{
  min-width:0;
}
.teacher-dashboard-notifications-list{
  width:100%;
}
.teacher-dashboard-notification-item{
  grid-template-columns:30px minmax(0,1fr) 20px!important;
  padding-left:0;
  padding-right:0;
}

/* Curiosity was intentionally removed in v194. */
.teacher-dashboard-curiosity{
  display:none!important;
}


/* v195 — dashboard readability + established announcement style */

/* Reuse the old, clearly separated announcement/alert language instead of
   making the administrator message look like another neutral content card. */
.teacher-dashboard-admin-alert{
  grid-template-columns:38px minmax(0,1fr)!important;
  gap:14px!important;
  align-items:start!important;
  margin-bottom:18px!important;
  padding:16px 18px!important;
  border:1px solid #ecd7aa!important;
  border-radius:8px!important;
  background:#fffaf0!important;
}
.teacher-dashboard-admin-alert .announcement-icon{
  width:38px!important;
  height:38px!important;
  border-radius:7px!important;
  background:#fff0ca!important;
  color:#99651d!important;
}
.teacher-dashboard-admin-alert .announcement-icon .dashicons{
  width:19px!important;
  height:19px!important;
  font-size:19px!important;
  line-height:19px!important;
}
.teacher-dashboard-admin-alert-copy{
  min-width:0;
}
.teacher-dashboard-admin-alert-label{
  display:block;
  margin:0 0 4px;
  color:#a17f42;
  font-size:10px;
  font-weight:800;
  line-height:1.25;
  text-transform:uppercase;
  letter-spacing:.04em;
}
.teacher-dashboard-admin-alert strong{
  display:block;
  margin:0 0 4px!important;
  color:#5f491f;
  font-size:14px!important;
  line-height:1.35;
}
.teacher-dashboard-admin-alert p{
  margin:0!important;
  color:#806534!important;
  font-size:12px!important;
  line-height:1.55!important;
}
.teacher-dashboard-admin-alert .announcement-meta{
  margin-top:6px!important;
  color:#a17f42!important;
  font-size:10px!important;
}

/* Dashboard rows have only a chevron now, so use the available width
   for stronger, more readable typography. */
#dashboardActiveTasks .tasks-hub-row{
  min-height:88px;
  padding-top:14px!important;
  padding-bottom:14px!important;
}
#dashboardActiveTasks .tasks-hub-title{
  font-size:15px!important;
  line-height:1.35!important;
}
#dashboardActiveTasks .tasks-hub-status{
  font-size:11.5px!important;
  line-height:1.45!important;
}
#dashboardActiveTasks .tasks-hub-meta{
  margin-top:8px!important;
  font-size:11px!important;
  line-height:1.45!important;
}
#dashboardActiveTasks .tasks-hub-alert{
  font-size:10.5px!important;
}

#dashboardActiveGroups .group-list-row{
  min-height:76px;
  padding-top:13px!important;
  padding-bottom:13px!important;
}
#dashboardActiveGroups .group-name-copy .list-title{
  font-size:15px!important;
  line-height:1.35!important;
  font-weight:730!important;
}
#dashboardActiveGroups .group-name-copy .list-meta{
  margin-top:5px!important;
  font-size:11.5px!important;
}
#dashboardActiveGroups .group-name-attention-text{
  font-size:10.5px!important;
}

/* Notifications also gain readable scale now that the section is full width. */
.teacher-dashboard-notification-item{
  min-height:70px!important;
  padding-top:11px!important;
  padding-bottom:11px!important;
}
.teacher-dashboard-notification-item .student-activity-icon{
  width:34px!important;
  height:34px!important;
  flex:0 0 34px!important;
}
.teacher-dashboard-notification-item .student-activity-icon .dashicons{
  width:17px!important;
  height:17px!important;
  font-size:17px!important;
  line-height:17px!important;
}
.teacher-dashboard-notification-item-copy strong{
  font-size:12.5px!important;
  line-height:1.4!important;
}
.teacher-dashboard-notification-item-copy p{
  margin-top:4px!important;
  font-size:10.5px!important;
  line-height:1.4!important;
}
.teacher-dashboard-notification-tag,
.teacher-dashboard-notification-new{
  font-size:9.5px!important;
}
.teacher-dashboard-row-chevron{
  width:34px!important;
  height:34px!important;
}
.teacher-dashboard-row-chevron .dashicons{
  width:17px!important;
  height:17px!important;
  font-size:17px!important;
  line-height:17px!important;
}


/* v196 — Informacje dydaktyczne + Pomoc */

/* Didactic content uses the same local submenu language as settings/groups. */
.didactic-local-toolbar{
  display:flex;
  align-items:flex-end;
  margin:0 0 12px;
  padding:0 2px;
}
.didactic-local-nav{
  margin:0;
}
.didactic-view[hidden]{
  display:none!important;
}
.didactic-content-card{
  padding:22px 24px!important;
}
.didactic-editor-content{
  max-width:980px;
}
.didactic-editor-content h2{
  margin:0 0 14px;
  color:var(--text);
  font-size:18px;
  line-height:1.3;
}
.didactic-editor-content h3{
  margin:22px 0 9px;
  color:var(--text);
  font-size:14px;
}
.didactic-editor-content p,
.didactic-editor-content li{
  color:#4f596b;
  font-size:12.5px;
  line-height:1.72;
}
.didactic-editor-content p{
  margin:0 0 12px;
}
.didactic-editor-content ul{
  margin:0;
  padding-left:20px;
}
.didactic-editor-content li+li{
  margin-top:5px;
}

/* FAQ */
.faq-card{
  padding-top:0!important;
  padding-bottom:0!important;
}
.faq-list{
  display:flex;
  flex-direction:column;
}
.faq-item{
  border-bottom:1px solid var(--line);
}
.faq-item:last-child{
  border-bottom:0;
}
.faq-question{
  width:100%;
  display:grid;
  grid-template-columns:minmax(0,1fr) 24px;
  gap:14px;
  align-items:start;
  padding:15px 0;
  border:0;
  background:transparent;
  color:var(--text);
  text-align:left;
  cursor:pointer;
}
.faq-question:hover{
  color:#3f4b63;
}
.faq-question-copy{
  font-size:15px;
  font-weight:700;
  line-height:1.4;
}
.faq-chevron{
  width:18px;
  height:18px;
  font-size:18px;
  line-height:18px;
  color:#8c95a5;
  margin-top:2px;
  align-self:start;
  transition:transform .18s ease;
}
.faq-question[aria-expanded="true"] .faq-chevron{
  transform:rotate(180deg);
}
.faq-answer{
  width:100%;
  max-width:none;
  box-sizing:border-box;
  padding:0 0 16px;
}
.faq-answer[hidden]{
  display:none!important;
}
.faq-answer p{
  margin:0;
  max-width:none;
  color:#596375;
  font-size:12px;
  line-height:1.65;
}


/* v197 — dashboard administrator notice simplified */
.teacher-dashboard-admin-alert-copy > strong:first-child{
  margin-top:1px!important;
}
.teacher-dashboard-admin-alert-action{
  width:max-content;
  margin-top:10px;
}
.teacher-dashboard-admin-alert-action[hidden]{
  display:none!important;
}


/* v198 — dashboard notifications: icon + title + meta only */
.teacher-dashboard-notification-item-copy{
  align-self:center;
}
.teacher-dashboard-notification-item-copy strong{
  margin:0!important;
}
.teacher-dashboard-notification-item-copy p{
  margin-top:4px!important;
}

/* Unread state is communicated only by the slim primary marker on the left. */
.teacher-dashboard-notification-item-top,
.teacher-dashboard-notification-tag,
.teacher-dashboard-notification-new{
  display:none!important;
}


/* v199 — teacher avatar, profile/settings, teacher registration */

/* Teacher avatar in every teacher sidebar. */
.teacher-sidebar-avatar{
  width:38px!important;
  height:38px!important;
  flex:0 0 38px!important;
  border-radius:8px!important;
  display:grid!important;
  place-items:center!important;
  background:var(--avatar-bg)!important;
  color:#fff!important;
}
.teacher-sidebar-avatar .student-avatar-icon{
  font-size:18px!important;
  line-height:1!important;
}

/* Profile & settings */
.teacher-profile-local-toolbar{
  display:flex;
  align-items:flex-end;
  margin:0 0 12px;
  padding:0 2px;
}
.teacher-profile-view[hidden]{
  display:none!important;
}
.teacher-profile-basic-card,
.teacher-profile-security-card{
  padding-top:0!important;
  padding-bottom:0!important;
}
.teacher-profile-setting-row{
  display:grid;
  grid-template-columns:220px minmax(0,1fr) auto;
  gap:18px;
  align-items:center;
  min-height:62px;
  border-bottom:1px solid var(--line);
}
.teacher-profile-setting-row:last-child{
  border-bottom:0;
}
.teacher-profile-setting-label{
  color:#687386;
  font-size:11px;
  font-weight:650;
}
.teacher-profile-setting-value-wrap{
  min-width:0;
}
.teacher-profile-setting-value{
  color:var(--text);
  font-size:13px;
  font-weight:650;
}
.teacher-profile-setting-input{
  width:min(460px,100%);
  min-height:36px;
  padding:0 10px;
  border:1px solid var(--line);
  border-radius:6px;
  background:#fff;
  color:var(--text);
  font:inherit;
  font-size:13px;
}
.teacher-profile-setting-input[hidden]{
  display:none!important;
}
.teacher-profile-setting-action{
  display:flex;
  justify-content:flex-end;
}
.teacher-profile-avatar-card{
  padding:20px!important;
}
.teacher-avatar-comparison{
  margin-bottom:18px;
}
.teacher-password-fields{
  display:grid;
  gap:10px;
  margin:16px 0 4px;
  text-align:left;
}
.teacher-password-fields label{
  display:grid;
  gap:5px;
  color:#616b7d;
  font-size:10.5px;
  font-weight:650;
}
.teacher-password-fields input{
  min-height:38px;
  padding:0 10px;
  border:1px solid var(--line);
  border-radius:6px;
  font:inherit;
}

/* Prototype splash link for registration. */
.role-link-register{
  border-style:dashed!important;
  background:#fafbfc!important;
}

/* Two-step teacher registration */
.teacher-register-card{
  width:min(520px,100%)!important;
}
.registration-steps{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:8px;
  margin:18px 0 20px;
}
.registration-step{
  display:flex;
  align-items:center;
  gap:8px;
  min-height:38px;
  padding:8px 10px;
  border:1px solid var(--line);
  border-radius:7px;
  color:#8b93a1;
  font-size:11px;
  font-weight:700;
}
.registration-step.active{
  border-color:#c9c9f2;
  background:#f4f4ff;
  color:var(--primary);
}
.registration-step.done{
  border-color:#cfe8dc;
  background:#f3fbf7;
  color:#237a57;
}
.registration-step-number{
  width:22px;
  height:22px;
  display:grid;
  place-items:center;
  border-radius:50%;
  background:#eef0f4;
  font-size:10px;
}
.registration-step.active .registration-step-number{
  background:var(--primary);
  color:#fff;
}
.registration-step.done .registration-step-number{
  background:#237a57;
  color:#fff;
}
.teacher-register-view[hidden]{
  display:none!important;
}
.register-field{
  display:grid;
  gap:6px;
  margin-bottom:12px;
  color:#586274;
  font-size:11px;
  font-weight:650;
}
.register-field input{
  min-height:42px;
  width:100%;
  padding:0 11px;
  border:1px solid var(--line);
  border-radius:7px;
  background:#fff;
  color:var(--text);
  font:inherit;
  font-size:13px;
}
.teacher-register-form{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:0 12px;
}
.teacher-register-form .register-field:nth-child(3),
.teacher-register-form .register-field:nth-child(4),
.teacher-register-form .register-field:nth-child(5){
  grid-column:1/-1;
}
.register-main-action{
  width:100%;
  min-height:42px;
  margin-top:4px;
}
.register-secondary-action{
  width:100%;
  margin-top:8px;
}
.register-back-link{
  display:inline-flex;
  align-items:center;
  gap:5px;
  margin-top:14px;
  color:#697386;
  font-size:11px;
  text-decoration:none;
}
.register-back-link .dashicons{
  width:15px;
  height:15px;
  font-size:15px;
  line-height:15px;
}
.register-error{
  margin:0 0 10px;
  color:#b42318;
  font-size:10.5px;
  line-height:1.4;
}
.register-error[hidden]{
  display:none!important;
}
.register-code-success{
  display:flex;
  align-items:center;
  gap:7px;
  margin-bottom:14px;
  padding:10px 11px;
  border:1px solid #cfe8dc;
  border-radius:7px;
  background:#f3fbf7;
  color:#237a57;
  font-size:11px;
  font-weight:650;
}
.register-code-success .light-action-icon{
  position:relative;
  display:inline-block;
  width:14px;
  height:14px;
  flex:0 0 14px;
}
.register-avatar-note{
  display:flex;
  align-items:center;
  gap:11px;
  margin:3px 0 13px;
  padding:10px 11px;
  border:1px solid var(--line);
  border-radius:7px;
  background:#fafbfc;
}
.teacher-register-avatar{
  width:38px!important;
  height:38px!important;
  flex:0 0 38px!important;
}
.register-avatar-note strong{
  display:block;
  color:var(--text);
  font-size:11px;
}
.register-avatar-note span{
  display:block;
  margin-top:2px;
  color:var(--muted);
  font-size:9.5px;
  line-height:1.4;
}
@media(max-width:720px){
  .teacher-profile-setting-row{
    grid-template-columns:1fr;
    gap:7px;
    padding:12px 0;
  }
  .teacher-profile-setting-action{
    justify-content:flex-start;
  }
  .teacher-register-form{
    grid-template-columns:1fr;
  }
  .teacher-register-form .register-field{
    grid-column:1!important;
  }
}


/* v200 — settings label, clickable teacher identity, round avatar */

/* The teacher's lower-left identity is a real navigation target. */
.teacher-profile-mini-link{
  display:flex!important;
  align-items:center;
  gap:10px;
  width:100%;
  color:inherit;
  text-decoration:none;
  border-radius:8px;
  cursor:pointer;
  transition:background-color .14s ease;
}
.teacher-profile-mini-link:hover{
  background:rgba(255,255,255,.055);
}
.teacher-profile-mini-link strong,
.teacher-profile-mini-link small{
  text-decoration:none!important;
}

/* Teacher avatar follows the same circular profile convention everywhere
   in the lower-left sidebar. */
.teacher-sidebar-avatar{
  width:38px!important;
  height:38px!important;
  flex:0 0 38px!important;
  aspect-ratio:1/1!important;
  border-radius:50%!important;
  overflow:hidden!important;
}

/* Password modal: use the established lightweight cross/check icons. */
.teacher-password-modal .confirm-modal-actions .btn{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:6px!important;
}
.teacher-password-modal .light-action-icon{
  position:relative!important;
  display:inline-block!important;
  width:14px!important;
  height:14px!important;
  flex:0 0 14px!important;
}
.teacher-password-modal .light-action-icon.cross::before,
.teacher-password-modal .light-action-icon.cross::after{
  content:"";
  position:absolute;
  left:6.2px;
  top:2.2px;
  width:1.4px;
  height:9.6px;
  border-radius:2px;
  background:currentColor;
}
.teacher-password-modal .light-action-icon.cross::before{
  transform:rotate(45deg);
}
.teacher-password-modal .light-action-icon.cross::after{
  transform:rotate(-45deg);
}
.teacher-password-modal .light-action-icon.check::before{
  content:"";
  position:absolute;
  left:3.6px;
  top:1.8px;
  width:5px;
  height:8px;
  border-right:1.4px solid currentColor;
  border-bottom:1.4px solid currentColor;
  transform:rotate(42deg);
  transform-origin:center;
}


/* v201 — experimental adaptive teacher sidebar, dashboard only */
@media(min-width:761px){
  .dashboard-adaptive-shell{
    --dashboard-sidebar-full:226px;
    --dashboard-sidebar-mini:68px;
    grid-template-columns:var(--dashboard-sidebar-full) minmax(0,1fr)!important;
    transition:grid-template-columns .28s cubic-bezier(.2,.72,.2,1);
  }
  .dashboard-adaptive-shell.sidebar-is-collapsed{
    grid-template-columns:var(--dashboard-sidebar-mini) minmax(0,1fr)!important;
  }

  .dashboard-adaptive-sidebar{
    position:sticky!important;
    top:0;
    z-index:35;
    width:var(--dashboard-sidebar-full);
    height:100vh;
    padding:0 12px 12px!important;
    gap:14px!important;
    overflow:visible;
    transition:
      width .28s cubic-bezier(.2,.72,.2,1),
      box-shadow .2s ease;
  }

  /* 90px to match the desktop topbar introduced globally in v152. */
  .dashboard-sidebar-brand{
    position:relative;
    flex:0 0 90px;
    height:90px;
    min-height:90px;
    display:flex!important;
    align-items:center!important;
    justify-content:space-between;
    gap:8px!important;
    padding:0 5px!important;
    border-bottom:1px solid rgba(255,255,255,.09);
  }
  .dashboard-sidebar-logo-wrap{
    position:relative;
    width:158px;
    height:48px;
    flex:0 0 158px;
    display:flex;
    align-items:center;
  }
  .dashboard-sidebar-logo{
    position:absolute;
    left:0;
    top:50%;
    display:block;
    transform:translateY(-50%);
    transition:
      opacity .18s ease,
      transform .28s cubic-bezier(.2,.72,.2,1);
  }
  .dashboard-sidebar-logo-full{
    width:154px!important;
    height:auto!important;
    max-width:154px!important;
    opacity:1;
    transform:translateY(-50%) scale(1);
  }
  .dashboard-sidebar-logo-mark{
    width:38px!important;
    height:38px!important;
    max-width:38px!important;
    opacity:0;
    transform:translateY(-50%) scale(.88);
  }

  .dashboard-sidebar-toggle{
    width:27px;
    height:27px;
    flex:0 0 27px;
    display:grid;
    place-items:center;
    padding:0;
    border:1px solid rgba(255,255,255,.13);
    border-radius:6px;
    background:rgba(255,255,255,.055);
    color:#b8bfd8;
    cursor:pointer;
    transition:
      background-color .14s ease,
      color .14s ease,
      border-color .14s ease,
      transform .28s cubic-bezier(.2,.72,.2,1);
  }
  .dashboard-sidebar-toggle:hover{
    background:#262a42;
    border-color:rgba(255,255,255,.2);
    color:#fff;
  }
  .dashboard-sidebar-toggle .dashicons{
    width:16px;
    height:16px;
    font-size:16px;
    line-height:16px;
  }

  .dashboard-adaptive-sidebar .nav-link{
    min-height:40px;
    overflow:hidden;
    white-space:nowrap;
    transition:
      padding .28s cubic-bezier(.2,.72,.2,1),
      gap .28s cubic-bezier(.2,.72,.2,1),
      background-color .14s ease,
      color .14s ease;
  }
  .dashboard-adaptive-sidebar .nav-label{
    display:block;
    max-width:170px;
    opacity:1;
    transform:translateX(0);
    overflow:hidden;
    white-space:nowrap;
    transition:
      max-width .28s cubic-bezier(.2,.72,.2,1),
      opacity .16s ease,
      transform .28s cubic-bezier(.2,.72,.2,1);
  }

  .dashboard-adaptive-sidebar .teacher-profile-mini-link{
    min-height:48px;
    overflow:hidden;
    white-space:nowrap;
    transition:
      padding .28s cubic-bezier(.2,.72,.2,1),
      gap .28s cubic-bezier(.2,.72,.2,1),
      background-color .14s ease;
  }
  .dashboard-adaptive-sidebar .teacher-profile-copy{
    max-width:150px;
    opacity:1;
    overflow:hidden;
    white-space:nowrap;
    transform:translateX(0);
    transition:
      max-width .28s cubic-bezier(.2,.72,.2,1),
      opacity .16s ease,
      transform .28s cubic-bezier(.2,.72,.2,1);
  }
  .dashboard-adaptive-sidebar .teacher-sidebar-avatar{
    transition:
      width .28s cubic-bezier(.2,.72,.2,1),
      height .28s cubic-bezier(.2,.72,.2,1),
      flex-basis .28s cubic-bezier(.2,.72,.2,1),
      font-size .28s cubic-bezier(.2,.72,.2,1);
  }

  /* Persistently collapsed state: only icons and the EUREKA symbol remain. */
  .dashboard-adaptive-shell.sidebar-is-collapsed .dashboard-adaptive-sidebar{
    width:var(--dashboard-sidebar-mini);
  }
  .dashboard-adaptive-shell.sidebar-is-collapsed .dashboard-sidebar-brand{
    padding-left:3px!important;
    padding-right:3px!important;
  }
  .dashboard-adaptive-shell.sidebar-is-collapsed .dashboard-sidebar-logo-wrap{
    width:38px;
    flex-basis:38px;
  }
  .dashboard-adaptive-shell.sidebar-is-collapsed .dashboard-sidebar-logo-full{
    opacity:0;
    transform:translateY(-50%) scale(.9);
    pointer-events:none;
  }
  .dashboard-adaptive-shell.sidebar-is-collapsed .dashboard-sidebar-logo-mark{
    opacity:1;
    transform:translateY(-50%) scale(1);
  }
  .dashboard-adaptive-shell.sidebar-is-collapsed .dashboard-sidebar-toggle{
    position:absolute;
    right:-1px;
    top:31px;
    transform:translateX(50%);
    z-index:3;
  }
  .dashboard-adaptive-shell.sidebar-is-collapsed .dashboard-adaptive-sidebar .nav-link{
    justify-content:center;
    gap:0;
    padding-left:10px;
    padding-right:10px;
  }
  .dashboard-adaptive-shell.sidebar-is-collapsed .dashboard-adaptive-sidebar .nav-label{
    max-width:0;
    opacity:0;
    transform:translateX(-5px);
  }
  .dashboard-adaptive-shell.sidebar-is-collapsed .dashboard-adaptive-sidebar .teacher-profile-mini-link{
    justify-content:center;
    gap:0;
    padding-left:0;
    padding-right:0;
  }
  .dashboard-adaptive-shell.sidebar-is-collapsed .dashboard-adaptive-sidebar .teacher-profile-copy{
    max-width:0;
    opacity:0;
    transform:translateX(-5px);
  }
  .dashboard-adaptive-shell.sidebar-is-collapsed .dashboard-adaptive-sidebar .teacher-sidebar-avatar{
    width:30px!important;
    height:30px!important;
    flex:0 0 30px!important;
  }
  .dashboard-adaptive-shell.sidebar-is-collapsed .dashboard-adaptive-sidebar .teacher-sidebar-avatar .student-avatar-icon{
    font-size:15px!important;
  }

  /* Hover preview: expand over the page, but keep the grid column compact. */
  .dashboard-adaptive-shell.sidebar-is-collapsed .dashboard-adaptive-sidebar:hover{
    width:var(--dashboard-sidebar-full);
    box-shadow:14px 0 34px rgba(10,13,28,.22);
  }
  .dashboard-adaptive-shell.sidebar-is-collapsed .dashboard-adaptive-sidebar:hover .dashboard-sidebar-brand{
    padding-left:5px!important;
    padding-right:5px!important;
  }
  .dashboard-adaptive-shell.sidebar-is-collapsed .dashboard-adaptive-sidebar:hover .dashboard-sidebar-logo-wrap{
    width:158px;
    flex-basis:158px;
  }
  .dashboard-adaptive-shell.sidebar-is-collapsed .dashboard-adaptive-sidebar:hover .dashboard-sidebar-logo-full{
    opacity:1;
    transform:translateY(-50%) scale(1);
    pointer-events:auto;
  }
  .dashboard-adaptive-shell.sidebar-is-collapsed .dashboard-adaptive-sidebar:hover .dashboard-sidebar-logo-mark{
    opacity:0;
    transform:translateY(-50%) scale(.88);
  }
  .dashboard-adaptive-shell.sidebar-is-collapsed .dashboard-adaptive-sidebar:hover .dashboard-sidebar-toggle{
    position:static;
    transform:none;
  }
  .dashboard-adaptive-shell.sidebar-is-collapsed .dashboard-adaptive-sidebar:hover .nav-link{
    justify-content:flex-start;
    gap:10px;
    padding-left:11px;
    padding-right:11px;
  }
  .dashboard-adaptive-shell.sidebar-is-collapsed .dashboard-adaptive-sidebar:hover .nav-label{
    max-width:170px;
    opacity:1;
    transform:translateX(0);
  }
  .dashboard-adaptive-shell.sidebar-is-collapsed .dashboard-adaptive-sidebar:hover .teacher-profile-mini-link{
    justify-content:flex-start;
    gap:10px;
    padding-left:8px;
    padding-right:8px;
  }
  .dashboard-adaptive-shell.sidebar-is-collapsed .dashboard-adaptive-sidebar:hover .teacher-profile-copy{
    max-width:150px;
    opacity:1;
    transform:translateX(0);
  }
  .dashboard-adaptive-shell.sidebar-is-collapsed .dashboard-adaptive-sidebar:hover .teacher-sidebar-avatar{
    width:38px!important;
    height:38px!important;
    flex:0 0 38px!important;
  }
  .dashboard-adaptive-shell.sidebar-is-collapsed .dashboard-adaptive-sidebar:hover .teacher-sidebar-avatar .student-avatar-icon{
    font-size:18px!important;
  }

  /* Keep icons geometrically stable between all three states. */
  .dashboard-adaptive-sidebar .nav-link > .dashicons,
  .dashboard-adaptive-sidebar .nav-link > .power-icon{
    flex:0 0 20px!important;
  }
}

@media(prefers-reduced-motion:reduce){
  .dashboard-adaptive-shell,
  .dashboard-adaptive-sidebar,
  .dashboard-adaptive-sidebar .nav-label,
  .dashboard-adaptive-sidebar .teacher-profile-copy,
  .dashboard-adaptive-sidebar .teacher-sidebar-avatar,
  .dashboard-sidebar-logo,
  .dashboard-sidebar-toggle{
    transition:none!important;
  }
}


/* v202 — adaptive sidebar interaction polish, dashboard only */
@media(min-width:761px){

  /* Chevron: visually lightweight by default. */
  .dashboard-sidebar-toggle{
    position:relative;
    width:25px!important;
    height:25px!important;
    flex:0 0 25px!important;
    padding:0!important;
    border:0!important;
    border-radius:6px!important;
    background:transparent!important;
    color:#9fa8c6!important;
    box-shadow:none!important;
    outline:none;
    transition:
      background-color .14s ease,
      color .14s ease,
      opacity .14s ease,
      transform .28s cubic-bezier(.2,.72,.2,1)!important;
  }
  .dashboard-sidebar-toggle:hover,
  .dashboard-sidebar-toggle:focus-visible{
    border:0!important;
    background:rgba(255,255,255,.07)!important;
    color:#fff!important;
  }
  .dashboard-sidebar-toggle .dashicons{
    width:14px!important;
    height:14px!important;
    font-size:14px!important;
    line-height:14px!important;
  }

  /* Compact custom tooltip. */
  .dashboard-sidebar-toggle::after{
    content:attr(data-tooltip);
    position:absolute;
    top:calc(100% + 7px);
    right:0;
    z-index:60;
    display:block;
    width:max-content;
    max-width:120px;
    padding:5px 7px;
    border-radius:5px;
    background:#171a29;
    color:#fff;
    font-size:9px;
    font-weight:650;
    line-height:1;
    letter-spacing:0;
    white-space:nowrap;
    opacity:0;
    visibility:hidden;
    pointer-events:none;
    transform:translateY(-2px);
    transition:
      opacity .12s ease,
      transform .12s ease,
      visibility 0s linear .12s;
  }
  .dashboard-sidebar-toggle:hover::after,
  .dashboard-sidebar-toggle:focus-visible::after{
    opacity:1;
    visibility:visible;
    transform:translateY(0);
    transition-delay:0s;
  }

  /* Fix the old global .brand img rule overriding the mark dimensions.
     This also removes the "giant mark" flash during collapse. */
  .dashboard-adaptive-sidebar .dashboard-sidebar-brand img.dashboard-sidebar-logo-full{
    width:154px!important;
    max-width:154px!important;
    height:auto!important;
    object-fit:contain!important;
  }
  .dashboard-adaptive-sidebar .dashboard-sidebar-brand img.dashboard-sidebar-logo-mark{
    width:38px!important;
    min-width:38px!important;
    max-width:38px!important;
    height:38px!important;
    object-fit:contain!important;
  }
  .dashboard-sidebar-logo-wrap{
    overflow:hidden;
  }

  /* Let the full logo disappear first; reveal the fixed-size mark only once
     the collapse is underway so there is no intermediate visual pop. */
  .dashboard-adaptive-shell.sidebar-is-collapsed .dashboard-sidebar-logo-full{
    opacity:0!important;
    pointer-events:none!important;
    transition-delay:0s!important;
  }
  .dashboard-adaptive-shell.sidebar-is-collapsed .dashboard-sidebar-logo-mark{
    opacity:1!important;
    transform:translateY(-50%) scale(1)!important;
    transition:
      opacity .12s ease .11s,
      transform .18s ease .08s!important;
  }

  /* In the genuinely collapsed state there is no chevron at all. */
  .dashboard-adaptive-shell.sidebar-is-collapsed .dashboard-sidebar-toggle{
    opacity:0!important;
    visibility:hidden!important;
    pointer-events:none!important;
    position:static!important;
    transform:none!important;
  }

  /* Hover preview is disabled immediately after clicking "collapse".
     It becomes available again only after the pointer leaves the sidebar. */
  .dashboard-adaptive-shell.sidebar-is-collapsed:not(.sidebar-hover-suppressed)
  .dashboard-adaptive-sidebar:hover{
    width:var(--dashboard-sidebar-full);
    box-shadow:14px 0 34px rgba(10,13,28,.22);
  }

  .dashboard-adaptive-shell.sidebar-is-collapsed:not(.sidebar-hover-suppressed)
  .dashboard-adaptive-sidebar:hover .dashboard-sidebar-brand{
    padding-left:5px!important;
    padding-right:5px!important;
  }
  .dashboard-adaptive-shell.sidebar-is-collapsed:not(.sidebar-hover-suppressed)
  .dashboard-adaptive-sidebar:hover .dashboard-sidebar-logo-wrap{
    width:158px;
    flex-basis:158px;
  }
  .dashboard-adaptive-shell.sidebar-is-collapsed:not(.sidebar-hover-suppressed)
  .dashboard-adaptive-sidebar:hover .dashboard-sidebar-logo-full{
    opacity:1!important;
    transform:translateY(-50%) scale(1)!important;
    pointer-events:auto!important;
    transition-delay:.07s!important;
  }
  .dashboard-adaptive-shell.sidebar-is-collapsed:not(.sidebar-hover-suppressed)
  .dashboard-adaptive-sidebar:hover .dashboard-sidebar-logo-mark{
    opacity:0!important;
    transform:translateY(-50%) scale(.92)!important;
    transition-delay:0s!important;
  }

  /* Only in the temporary full-width hover preview does the right chevron
     reappear next to the full logo. */
  .dashboard-adaptive-shell.sidebar-is-collapsed:not(.sidebar-hover-suppressed)
  .dashboard-adaptive-sidebar:hover .dashboard-sidebar-toggle{
    position:relative!important;
    right:auto!important;
    top:auto!important;
    opacity:1!important;
    visibility:visible!important;
    pointer-events:auto!important;
    transform:none!important;
  }

  .dashboard-adaptive-shell.sidebar-is-collapsed:not(.sidebar-hover-suppressed)
  .dashboard-adaptive-sidebar:hover .nav-link{
    justify-content:flex-start;
    gap:10px;
    padding-left:11px;
    padding-right:11px;
  }
  .dashboard-adaptive-shell.sidebar-is-collapsed:not(.sidebar-hover-suppressed)
  .dashboard-adaptive-sidebar:hover .nav-label{
    max-width:170px;
    opacity:1;
    transform:translateX(0);
  }
  .dashboard-adaptive-shell.sidebar-is-collapsed:not(.sidebar-hover-suppressed)
  .dashboard-adaptive-sidebar:hover .teacher-profile-mini-link{
    justify-content:flex-start;
    gap:10px;
    padding-left:8px;
    padding-right:8px;
  }
  .dashboard-adaptive-shell.sidebar-is-collapsed:not(.sidebar-hover-suppressed)
  .dashboard-adaptive-sidebar:hover .teacher-profile-copy{
    max-width:150px;
    opacity:1;
    transform:translateX(0);
  }
  .dashboard-adaptive-shell.sidebar-is-collapsed:not(.sidebar-hover-suppressed)
  .dashboard-adaptive-sidebar:hover .teacher-sidebar-avatar{
    width:38px!important;
    height:38px!important;
    flex:0 0 38px!important;
  }
  .dashboard-adaptive-shell.sidebar-is-collapsed:not(.sidebar-hover-suppressed)
  .dashboard-adaptive-sidebar:hover .teacher-sidebar-avatar .student-avatar-icon{
    font-size:18px!important;
  }

  /* Override v201 hover rules while suppression is active. */
  .dashboard-adaptive-shell.sidebar-is-collapsed.sidebar-hover-suppressed
  .dashboard-adaptive-sidebar:hover{
    width:var(--dashboard-sidebar-mini)!important;
    box-shadow:none!important;
  }
  .dashboard-adaptive-shell.sidebar-is-collapsed.sidebar-hover-suppressed
  .dashboard-adaptive-sidebar:hover .dashboard-sidebar-logo-wrap{
    width:38px!important;
    flex-basis:38px!important;
  }
  .dashboard-adaptive-shell.sidebar-is-collapsed.sidebar-hover-suppressed
  .dashboard-adaptive-sidebar:hover .dashboard-sidebar-logo-full{
    opacity:0!important;
    pointer-events:none!important;
    transform:translateY(-50%) scale(.9)!important;
  }
  .dashboard-adaptive-shell.sidebar-is-collapsed.sidebar-hover-suppressed
  .dashboard-adaptive-sidebar:hover .dashboard-sidebar-logo-mark{
    opacity:1!important;
    transform:translateY(-50%) scale(1)!important;
  }
  .dashboard-adaptive-shell.sidebar-is-collapsed.sidebar-hover-suppressed
  .dashboard-adaptive-sidebar:hover .dashboard-sidebar-toggle{
    opacity:0!important;
    visibility:hidden!important;
    pointer-events:none!important;
  }
  .dashboard-adaptive-shell.sidebar-is-collapsed.sidebar-hover-suppressed
  .dashboard-adaptive-sidebar:hover .nav-link{
    justify-content:center!important;
    gap:0!important;
    padding-left:10px!important;
    padding-right:10px!important;
  }
  .dashboard-adaptive-shell.sidebar-is-collapsed.sidebar-hover-suppressed
  .dashboard-adaptive-sidebar:hover .nav-label,
  .dashboard-adaptive-shell.sidebar-is-collapsed.sidebar-hover-suppressed
  .dashboard-adaptive-sidebar:hover .teacher-profile-copy{
    max-width:0!important;
    opacity:0!important;
    transform:translateX(-5px)!important;
  }
  .dashboard-adaptive-shell.sidebar-is-collapsed.sidebar-hover-suppressed
  .dashboard-adaptive-sidebar:hover .teacher-profile-mini-link{
    justify-content:center!important;
    gap:0!important;
    padding-left:0!important;
    padding-right:0!important;
  }
  .dashboard-adaptive-shell.sidebar-is-collapsed.sidebar-hover-suppressed
  .dashboard-adaptive-sidebar:hover .teacher-sidebar-avatar{
    width:30px!important;
    height:30px!important;
    flex:0 0 30px!important;
  }
  .dashboard-adaptive-shell.sidebar-is-collapsed.sidebar-hover-suppressed
  .dashboard-adaptive-sidebar:hover .teacher-sidebar-avatar .student-avatar-icon{
    font-size:15px!important;
  }
}


/* v203 — classic mobile navigation, dashboard only */

.dashboard-mobile-menu-toggle{
  display:none;
}

@media(max-width:760px){
  .dashboard-adaptive-shell{
    display:block!important;
    min-height:100vh;
  }

  /* Mobile topbar: title + hamburger on the first row, actions below. */
  .teacher-dashboard-topbar{
    position:sticky!important;
    top:0;
    z-index:70!important;
    display:flex!important;
    flex-wrap:wrap!important;
    align-items:center!important;
    gap:10px 12px!important;
    min-height:64px!important;
    height:auto!important;
    padding:10px 16px!important;
    transition:
      background-color .2s ease,
      border-color .2s ease;
  }
  .teacher-dashboard-topbar .page-title{
    order:1;
    flex:1 1 auto;
    min-width:0;
    font-size:17px;
  }
  .teacher-dashboard-topbar .dashboard-mobile-menu-toggle{
    order:2;
  }
  .teacher-dashboard-topbar .topbar-actions{
    order:3;
    width:100%!important;
    margin-left:0!important;
    display:flex!important;
    gap:8px!important;
  }
  .teacher-dashboard-topbar .topbar-actions .btn{
    flex:1 1 0;
    justify-content:center;
    white-space:nowrap;
  }

  /* Hamburger button. */
  .dashboard-mobile-menu-toggle{
    width:38px;
    height:38px;
    flex:0 0 38px;
    display:grid!important;
    place-items:center;
    padding:0;
    border:0;
    border-radius:7px;
    background:transparent;
    color:#353a4d;
    cursor:pointer;
    -webkit-tap-highlight-color:transparent;
    transition:
      background-color .15s ease,
      color .15s ease;
  }
  .dashboard-mobile-menu-toggle:hover,
  .dashboard-mobile-menu-toggle:focus-visible{
    background:#f1f2f5;
    outline:none;
  }
  .dashboard-mobile-menu-icon{
    position:relative;
    width:20px;
    height:16px;
    display:block;
  }
  .dashboard-mobile-menu-icon i{
    position:absolute;
    left:0;
    width:20px;
    height:1.7px;
    border-radius:2px;
    background:currentColor;
    transform-origin:center;
    transition:
      top .2s ease,
      transform .22s cubic-bezier(.2,.72,.2,1),
      opacity .12s ease;
  }
  .dashboard-mobile-menu-icon i:nth-child(1){top:1px;}
  .dashboard-mobile-menu-icon i:nth-child(2){top:7px;}
  .dashboard-mobile-menu-icon i:nth-child(3){top:13px;}

  /* Full-screen menu itself. */
  .dashboard-adaptive-sidebar{
    position:fixed!important;
    inset:0!important;
    z-index:80!important;
    width:100%!important;
    max-width:none!important;
    height:100dvh!important;
    min-height:100vh!important;
    padding:0 18px 18px!important;
    gap:10px!important;
    overflow-x:hidden!important;
    overflow-y:auto!important;
    background:#171a2b!important;
    opacity:0;
    visibility:hidden;
    pointer-events:none;
    transform:translateX(-100%);
    transition:
      transform .28s cubic-bezier(.2,.72,.2,1),
      opacity .18s ease,
      visibility 0s linear .28s!important;
  }

  .mobile-menu-is-open .dashboard-adaptive-sidebar{
    opacity:1;
    visibility:visible;
    pointer-events:auto;
    transform:translateX(0);
    transition:
      transform .28s cubic-bezier(.2,.72,.2,1),
      opacity .18s ease,
      visibility 0s!important;
  }

  /* Mobile menu has its own simple logo header; desktop collapse chevron is absent. */
  .dashboard-adaptive-sidebar .dashboard-sidebar-brand{
    flex:0 0 64px!important;
    min-height:64px!important;
    height:64px!important;
    display:flex!important;
    align-items:center!important;
    padding:0 2px!important;
    margin:0 46px 6px 0!important;
    border-bottom:1px solid rgba(255,255,255,.09)!important;
  }
  .dashboard-adaptive-sidebar .dashboard-sidebar-logo-wrap{
    width:138px!important;
    height:42px!important;
    flex:0 0 138px!important;
    overflow:hidden!important;
  }
  .dashboard-adaptive-sidebar .dashboard-sidebar-logo-full{
    position:static!important;
    display:block!important;
    width:138px!important;
    max-width:138px!important;
    height:auto!important;
    opacity:1!important;
    transform:none!important;
  }
  .dashboard-adaptive-sidebar .dashboard-sidebar-logo-mark{
    display:none!important;
  }
  .dashboard-adaptive-sidebar .dashboard-sidebar-toggle{
    display:none!important;
  }

  /* Menu goes back to one classic vertical list. */
  .dashboard-adaptive-sidebar .nav-main,
  .dashboard-adaptive-sidebar .nav-bottom,
  .dashboard-adaptive-sidebar .nav-bottom-links{
    display:flex!important;
    flex-direction:column!important;
    grid-template-columns:none!important;
    gap:4px!important;
  }
  .dashboard-adaptive-sidebar .nav{
    flex:0 0 auto;
  }
  .dashboard-adaptive-sidebar .nav-link{
    min-height:44px!important;
    display:flex!important;
    align-items:center!important;
    justify-content:flex-start!important;
    gap:12px!important;
    padding:11px 12px!important;
    border-radius:7px!important;
    font-size:14px!important;
    white-space:nowrap!important;
    overflow:visible!important;
  }
  .dashboard-adaptive-sidebar .nav-link > .dashicons,
  .dashboard-adaptive-sidebar .nav-link > .power-icon{
    flex:0 0 20px!important;
  }
  .dashboard-adaptive-sidebar .nav-label{
    display:block!important;
    max-width:none!important;
    opacity:1!important;
    transform:none!important;
    overflow:visible!important;
  }

  /* Bottom utilities and full teacher identity remain visible in the fullscreen menu. */
  .dashboard-adaptive-sidebar .nav-bottom{
    margin-top:auto!important;
    border-top:0!important;
    padding-top:0!important;
  }
  .dashboard-adaptive-sidebar .profile-separator{
    margin:13px 0!important;
  }
  .dashboard-adaptive-sidebar .teacher-profile-mini-link{
    min-height:48px!important;
    display:flex!important;
    align-items:center!important;
    justify-content:flex-start!important;
    gap:10px!important;
    padding:7px 8px!important;
  }
  .dashboard-adaptive-sidebar .teacher-profile-copy{
    display:block!important;
    max-width:none!important;
    opacity:1!important;
    transform:none!important;
    overflow:visible!important;
  }
  .dashboard-adaptive-sidebar .teacher-sidebar-avatar{
    width:38px!important;
    height:38px!important;
    flex:0 0 38px!important;
  }
  .dashboard-adaptive-sidebar .teacher-sidebar-avatar .student-avatar-icon{
    font-size:18px!important;
  }

  /* While open, the existing topbar becomes transparent so only the X sits
     above the fullscreen sidebar. The sidebar's own logo stays visible left. */
  .mobile-menu-is-open .teacher-dashboard-topbar{
    z-index:90!important;
    background:transparent!important;
    border-color:transparent!important;
    backdrop-filter:none!important;
    pointer-events:none;
  }
  .mobile-menu-is-open .teacher-dashboard-topbar .page-title,
  .mobile-menu-is-open .teacher-dashboard-topbar .topbar-actions{
    opacity:0;
    visibility:hidden;
    pointer-events:none;
  }
  .mobile-menu-is-open .dashboard-mobile-menu-toggle{
    position:fixed;
    top:13px;
    right:16px;
    z-index:95;
    color:#fff;
    pointer-events:auto;
    background:transparent;
  }
  .mobile-menu-is-open .dashboard-mobile-menu-toggle:hover,
  .mobile-menu-is-open .dashboard-mobile-menu-toggle:focus-visible{
    background:rgba(255,255,255,.08);
  }

  /* Hamburger -> X. */
  .mobile-menu-is-open .dashboard-mobile-menu-icon i:nth-child(1){
    top:7px;
    transform:rotate(45deg);
  }
  .mobile-menu-is-open .dashboard-mobile-menu-icon i:nth-child(2){
    opacity:0;
  }
  .mobile-menu-is-open .dashboard-mobile-menu-icon i:nth-child(3){
    top:7px;
    transform:rotate(-45deg);
  }

  body.eureka-mobile-menu-open{
    overflow:hidden!important;
  }

  /* Breadcrumb stays under the sticky mobile header when menu is closed. */
  .dashboard-adaptive-shell > .main > .breadcrumbs{
    position:relative;
    z-index:1;
  }
}

@media(max-width:430px){
  .teacher-dashboard-topbar .topbar-actions{
    flex-direction:column;
  }
  .teacher-dashboard-topbar .topbar-actions .btn{
    width:100%;
  }
}

@media(prefers-reduced-motion:reduce){
  .dashboard-adaptive-sidebar,
  .dashboard-mobile-menu-icon i{
    transition:none!important;
  }
}


/* v204 — mobile menu logo alignment */
@media(max-width:760px){
  .dashboard-adaptive-sidebar .dashboard-sidebar-logo-wrap{
    width:148px!important;
    height:44px!important;
    flex:0 0 148px!important;
  }
  .dashboard-adaptive-sidebar .dashboard-sidebar-logo-full{
    width:148px!important;
    max-width:148px!important;
    transform:translateY(2px)!important;
  }
}


/* v205 — mobile logo visual alignment fix */
@media(max-width:760px){
  .dashboard-adaptive-sidebar .dashboard-sidebar-logo-wrap{
    width:165px!important;
    height:48px!important;
    flex:0 0 165px!important;
  }
  .dashboard-adaptive-sidebar .dashboard-sidebar-logo-full{
    width:165px!important;
    max-width:165px!important;
    transform:translateY(7px)!important;
  }
}


/* v206 — mobile logo alignment via flex + teacher identity visibility */

/* User identity stays clickable, but never gets a background hover state. */
.teacher-profile-mini-link:hover,
.teacher-profile-mini-link:focus-visible{
  background:transparent!important;
}

/* Dashboard desktop identity follows the same no-apla rule. */
.dashboard-adaptive-sidebar .teacher-profile-mini-link:hover,
.dashboard-adaptive-sidebar .teacher-profile-mini-link:focus-visible{
  background:transparent!important;
}

@media(max-width:760px){

  /* Mobile logo header: use real flex alignment instead of positional nudges. */
  .dashboard-adaptive-sidebar .dashboard-sidebar-brand{
    display:flex!important;
    align-items:center!important;
    justify-content:flex-start!important;
    height:64px!important;
    min-height:64px!important;
    padding:0 2px!important;
    margin:0 46px 6px 0!important;
  }

  .dashboard-adaptive-sidebar .dashboard-sidebar-logo-wrap{
    display:flex!important;
    align-items:center!important;
    justify-content:flex-start!important;
    width:158px!important;
    height:64px!important;
    flex:0 0 158px!important;
    overflow:visible!important;
  }

  .dashboard-adaptive-sidebar .dashboard-sidebar-logo-full{
    position:static!important;
    display:block!important;
    width:158px!important;
    max-width:158px!important;
    height:auto!important;
    margin:0!important;
    opacity:1!important;
    transform:none!important;
  }

  /* Ensure the lower profile block is always present in fullscreen mobile menu. */
  .dashboard-adaptive-sidebar .teacher-profile-mini-link{
    display:flex!important;
    align-items:center!important;
    justify-content:flex-start!important;
    gap:10px!important;
    min-height:48px!important;
    padding:7px 8px!important;
    margin:0!important;
    color:inherit!important;
    text-decoration:none!important;
    background:transparent!important;
    opacity:1!important;
    visibility:visible!important;
  }

  .dashboard-adaptive-sidebar .teacher-profile-copy{
    display:block!important;
    max-width:none!important;
    opacity:1!important;
    visibility:visible!important;
    transform:none!important;
    overflow:visible!important;
  }

  .dashboard-adaptive-sidebar .teacher-profile-copy strong{
    display:block!important;
  }

  .dashboard-adaptive-sidebar .teacher-profile-copy small{
    display:block!important;
  }

  .dashboard-adaptive-sidebar .teacher-sidebar-avatar{
    display:grid!important;
    width:38px!important;
    height:38px!important;
    flex:0 0 38px!important;
    opacity:1!important;
    visibility:visible!important;
  }

  /* Bottom section must remain at the bottom when the fullscreen menu has spare height. */
  .dashboard-adaptive-sidebar .nav-bottom{
    display:flex!important;
    flex-direction:column!important;
    margin-top:auto!important;
  }

  /* No hover/focus background on the identity block on mobile either. */
  .dashboard-adaptive-sidebar .teacher-profile-mini-link:hover,
  .dashboard-adaptive-sidebar .teacher-profile-mini-link:focus-visible{
    background:transparent!important;
  }
}


/* v208 — dashboard CTA + quick-action close state + group topbar action overlay */

/* Dashboard administrator notice may carry a promotional CTA. */
.teacher-dashboard-admin-alert-action{
  display:inline-flex!important;
  align-items:center;
  justify-content:center;
  width:max-content;
  margin-top:11px!important;
  border-color:#80611d!important;
  background:#80611d!important;
  color:#fff8e7!important;
  box-shadow:none!important;
}
.teacher-dashboard-admin-alert-action:hover{
  border-color:#6f5318!important;
  background:#6f5318!important;
  color:#fff!important;
}

/* Reusable reddish X replacing vertical dots while quick actions are open. */
.quick-toggle-close-icon{
  position:relative;
  display:none;
  width:14px;
  height:14px;
  flex:0 0 14px;
}
.quick-toggle-close-icon::before,
.quick-toggle-close-icon::after{
  content:"";
  position:absolute;
  left:6.2px;
  top:2.2px;
  width:1.4px;
  height:9.6px;
  border-radius:2px;
  background:currentColor;
}
.quick-toggle-close-icon::before{transform:rotate(45deg)}
.quick-toggle-close-icon::after{transform:rotate(-45deg)}

.quick-actions-open .group-quick-actions-toggle,
.student-quick-open .student-quick-actions-toggle,
.student-quick-open .archived-student-quick-toggle{
  color:#a84d5c!important;
  border-color:#e8cdd2!important;
  background:#fff8f9!important;
}
.quick-actions-open .group-quick-actions-toggle:hover,
.student-quick-open .student-quick-actions-toggle:hover,
.student-quick-open .archived-student-quick-toggle:hover{
  color:#8f3f4c!important;
  border-color:#dcaeb7!important;
  background:#fff3f5!important;
}
.quick-actions-open .group-quick-actions-toggle .group-quick-actions-dots-vertical,
.student-quick-open .student-quick-actions-toggle .group-quick-actions-dots-vertical,
.student-quick-open .archived-student-quick-toggle .group-quick-actions-dots-vertical{
  display:none!important;
}
.quick-actions-open .group-quick-actions-toggle .quick-toggle-close-icon,
.student-quick-open .student-quick-actions-toggle .quick-toggle-close-icon,
.student-quick-open .archived-student-quick-toggle .quick-toggle-close-icon{
  display:inline-block!important;
}

/* Active group topbar: contextual core actions + overlay for the rest. */
.group-topbar-v208{
  position:sticky!important;
  overflow:hidden;
  isolation:isolate;
}
.group-topbar-v208 .group-topbar-title{
  position:relative;
  z-index:0;
}
.group-topbar-v208 .group-topbar-action-wash{
  position:absolute;
  inset:0;
  z-index:1;
  background:rgba(255,255,255,.975);
  opacity:0;
  visibility:hidden;
  pointer-events:none;
  transition:
    opacity .14s ease,
    visibility 0s linear .14s;
}
.group-topbar-v208.group-actions-open .group-topbar-action-wash{
  opacity:1;
  visibility:visible;
  transition-delay:0s;
}
.group-topbar-v208 #groupTopbarActions{
  position:relative;
  z-index:2;
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:9px;
  margin-left:auto;
}
.group-topbar-v208 .group-topbar-extra-action{
  display:none!important;
}
.group-topbar-v208.group-actions-open .group-topbar-extra-action:not([hidden]){
  display:inline-flex!important;
  animation:groupTopbarActionIn .16s ease both;
}
.group-topbar-v208.group-actions-open .group-topbar-core-action:not([hidden]){
  display:inline-flex!important;
}

/* Explicit contextual state outside expanded menu. */
.group-topbar-v208[data-enrollment-state="open"] #inviteStudents:not([hidden]){
  display:inline-flex!important;
}
.group-topbar-v208[data-enrollment-state="open"] #toggleEnrollment{
  display:none!important;
}
.group-topbar-v208[data-enrollment-state="closed"] #inviteStudents{
  display:none!important;
}
.group-topbar-v208[data-enrollment-state="closed"] #toggleEnrollment{
  display:inline-flex!important;
}

/* Once the menu is expanded, all currently relevant actions may appear. */
.group-topbar-v208.group-actions-open[data-enrollment-state="open"] #toggleEnrollment{
  display:inline-flex!important;
}
.group-topbar-v208.group-actions-open[data-enrollment-state="closed"] #inviteStudents{
  display:none!important;
}

.group-topbar-more-toggle{
  width:36px;
  min-width:36px;
  height:36px;
  min-height:36px;
  padding:0!important;
  display:inline-grid!important;
  place-items:center;
}
.group-topbar-more-toggle .quick-toggle-close-icon{
  display:none;
}
.group-topbar-v208.group-actions-open .group-topbar-more-toggle{
  color:#a84d5c!important;
  border-color:#e8cdd2!important;
  background:#fff8f9!important;
}
.group-topbar-v208.group-actions-open .group-topbar-more-toggle:hover{
  color:#8f3f4c!important;
  border-color:#dcaeb7!important;
  background:#fff3f5!important;
}
.group-topbar-v208.group-actions-open .group-topbar-more-toggle .group-quick-actions-dots-vertical{
  display:none!important;
}
.group-topbar-v208.group-actions-open .group-topbar-more-toggle .quick-toggle-close-icon{
  display:inline-block!important;
}

@keyframes groupTopbarActionIn{
  from{opacity:0;transform:translateY(-3px)}
  to{opacity:1;transform:translateY(0)}
}

@media(max-width:980px){
  .group-topbar-v208 #groupTopbarActions{
    gap:6px;
  }
  .group-topbar-v208 #groupTopbarActions .btn{
    padding-left:9px;
    padding-right:9px;
  }
}


/* v209 — dashboard administrator notice CTA on the right */
.teacher-dashboard-admin-alert-copy{
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:18px!important;
}
.teacher-dashboard-admin-alert-text{
  flex:1 1 auto;
  min-width:0;
}
.teacher-dashboard-admin-alert-action{
  flex:0 0 auto;
  margin-top:0!important;
  white-space:nowrap;
}

@media(max-width:720px){
  .teacher-dashboard-admin-alert-copy{
    align-items:flex-start!important;
    flex-direction:column!important;
    gap:10px!important;
  }
}


/* v210 — row quick actions: pure fast fade, no vertical entrance or stagger */

/* "Moje grupy" — active and archived rows. */
.group-quick-actions-panel-inline{
  transform:none!important;
  transition:
    opacity .11s ease,
    visibility 0s linear .11s!important;
}
.group-list-grid-row.quick-actions-open .group-quick-actions-panel-inline{
  transform:none!important;
  transition:
    opacity .11s ease,
    visibility 0s!important;
}
.group-quick-actions-panel-inline .group-quick-action-text,
.group-list-grid-row.quick-actions-open .group-quick-actions-panel-inline .group-quick-action-text,
.group-list-grid-row.quick-actions-open .group-quick-actions-panel-inline .group-quick-action-text:hover{
  transform:none!important;
  transition:
    background-color .14s ease,
    border-color .14s ease,
    color .14s ease,
    opacity .11s ease!important;
  transition-delay:0s!important;
}
.group-list-grid-row.quick-actions-open .group-quick-actions-panel-inline .group-quick-action-text:nth-child(1),
.group-list-grid-row.quick-actions-open .group-quick-actions-panel-inline .group-quick-action-text:nth-child(2),
.group-list-grid-row.quick-actions-open .group-quick-actions-panel-inline .group-quick-action-text:nth-child(3){
  transition-delay:0s!important;
}

/* Students in active/archived group rows. */
.student-quick-actions-panel{
  transform:none!important;
  transition:
    opacity .11s ease,
    visibility 0s linear .11s!important;
}
.group-member-clickable.student-quick-open .student-quick-actions-panel,
.archived-group-student-row.student-quick-open .student-quick-actions-panel{
  transform:none!important;
  transition:
    opacity .11s ease,
    visibility 0s!important;
}
.student-quick-actions-panel .student-quick-action-text,
.group-member-clickable.student-quick-open .student-quick-actions-panel .student-quick-action-text,
.archived-group-student-row.student-quick-open .student-quick-actions-panel .student-quick-action-text,
.group-member-clickable.student-quick-open .student-quick-actions-panel .student-quick-action-text:hover,
.archived-group-student-row.student-quick-open .student-quick-actions-panel .student-quick-action-text:hover{
  transform:none!important;
  transition:
    background-color .14s ease,
    border-color .14s ease,
    color .14s ease,
    opacity .11s ease!important;
  transition-delay:0s!important;
}
.group-member-clickable.student-quick-open .student-quick-actions-panel .student-quick-action-text:nth-child(1),
.group-member-clickable.student-quick-open .student-quick-actions-panel .student-quick-action-text:nth-child(2),
.group-member-clickable.student-quick-open .student-quick-actions-panel .student-quick-action-text:nth-child(3),
.group-member-clickable.student-quick-open .student-quick-actions-panel .student-quick-action-text:nth-child(4),
.group-member-clickable.student-quick-open .student-quick-actions-panel .student-quick-action-text:nth-child(5),
.archived-group-student-row.student-quick-open .student-quick-actions-panel .student-quick-action-text{
  transition-delay:0s!important;
}


/* v211 — unified header action menu + row close state + modal polish */

/* Generic topbar overflow menu: same interaction language as the active-group header. */
.v211-action-topbar{
  position:sticky!important;
  overflow:hidden;
  isolation:isolate;
}
.v211-action-topbar > :not(.topbar-actions):not(.v211-topbar-action-wash){
  position:relative;
  z-index:0;
}
.v211-topbar-action-wash{
  position:absolute;
  inset:0;
  z-index:1;
  background:rgba(255,255,255,.975);
  opacity:0;
  visibility:hidden;
  pointer-events:none;
  transition:opacity .12s ease, visibility 0s linear .12s;
}
.v211-action-topbar.v211-actions-open .v211-topbar-action-wash{
  opacity:1;
  visibility:visible;
  transition-delay:0s;
}
.v211-action-topbar .topbar-actions{
  position:relative;
  z-index:2;
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:9px;
  margin-left:auto;
}
.v211-action-topbar .v211-topbar-extra{
  display:none!important;
}
.v211-action-topbar.v211-actions-open .v211-topbar-extra:not([hidden]){
  display:inline-flex!important;
  opacity:1;
  animation:v211TopbarFade .11s ease both;
}
.v211-action-topbar .v211-topbar-core[hidden]{
  display:none!important;
}
.v211-action-topbar .v211-topbar-core:not([hidden]){
  display:inline-flex!important;
}
.v211-topbar-more-toggle{
  width:36px;
  min-width:36px;
  height:36px;
  min-height:36px;
  padding:0!important;
  display:inline-grid!important;
  place-items:center;
}
.v211-action-topbar.v211-actions-open .v211-topbar-more-toggle{
  color:#a84d5c!important;
  border-color:#e8cdd2!important;
  background:#fff8f9!important;
}
.v211-action-topbar.v211-actions-open .v211-topbar-more-toggle:hover{
  color:#8f3f4c!important;
  border-color:#dcaeb7!important;
  background:#fff3f5!important;
}
.v211-action-topbar.v211-actions-open .v211-topbar-more-toggle .group-quick-actions-dots-vertical{
  display:none!important;
}
.v211-action-topbar.v211-actions-open .v211-topbar-more-toggle .quick-toggle-close-icon{
  display:inline-block!important;
}
@keyframes v211TopbarFade{
  from{opacity:0}
  to{opacity:1}
}

/* Active group: pending students become a separate contextual topbar state. */
.group-topbar-v208[data-group-view="pending"] #acceptAllPendingStudents:not([hidden]){
  display:inline-flex!important;
}
.group-topbar-v208[data-group-view="pending"] #inviteStudents,
.group-topbar-v208[data-group-view="pending"] #toggleEnrollment{
  display:none!important;
}
.group-topbar-v208.group-actions-open[data-group-view="pending"] #toggleEnrollment{
  display:inline-flex!important;
}
.group-topbar-v208.group-actions-open[data-group-view="pending"][data-enrollment-state="open"] #inviteStudents{
  display:inline-flex!important;
}
.group-members-local-nav .view-segment[hidden]{
  display:none!important;
}

/* Reusable row ellipsis -> reddish X. Uses aria-expanded so every list can share it. */
.task-quick-actions-toggle[aria-expanded="true"],
.assignment-member-quick-toggle[aria-expanded="true"],
.student-quick-actions-toggle[aria-expanded="true"],
.archived-student-quick-toggle[aria-expanded="true"],
.group-quick-actions-toggle[aria-expanded="true"]{
  color:#a84d5c!important;
  border-color:#e8cdd2!important;
  background:#fff8f9!important;
}
.task-quick-actions-toggle[aria-expanded="true"]:hover,
.assignment-member-quick-toggle[aria-expanded="true"]:hover,
.student-quick-actions-toggle[aria-expanded="true"]:hover,
.archived-student-quick-toggle[aria-expanded="true"]:hover,
.group-quick-actions-toggle[aria-expanded="true"]:hover{
  color:#8f3f4c!important;
  border-color:#dcaeb7!important;
  background:#fff3f5!important;
}
.task-quick-actions-toggle[aria-expanded="true"] .group-quick-actions-dots-vertical,
.assignment-member-quick-toggle[aria-expanded="true"] .group-quick-actions-dots-vertical,
.student-quick-actions-toggle[aria-expanded="true"] .group-quick-actions-dots-vertical,
.archived-student-quick-toggle[aria-expanded="true"] .group-quick-actions-dots-vertical,
.group-quick-actions-toggle[aria-expanded="true"] .group-quick-actions-dots-vertical{
  display:none!important;
}
.task-quick-actions-toggle[aria-expanded="true"] .quick-toggle-close-icon,
.assignment-member-quick-toggle[aria-expanded="true"] .quick-toggle-close-icon,
.student-quick-actions-toggle[aria-expanded="true"] .quick-toggle-close-icon,
.archived-student-quick-toggle[aria-expanded="true"] .quick-toggle-close-icon,
.group-quick-actions-toggle[aria-expanded="true"] .quick-toggle-close-icon{
  display:inline-block!important;
}

/* All row quick-action panels: immediate geometry, pure short fade, no slide/stagger. */
.task-quick-actions-panel,
.assignment-member-quick-panel,
.student-quick-actions-panel,
.group-quick-actions-panel-inline{
  transform:none!important;
  transition:
    opacity .11s ease,
    visibility 0s linear .11s!important;
}
.task-row-clickable.quick-actions-open .task-quick-actions-panel,
.assignment-member-row.quick-actions-open .assignment-member-quick-panel,
.assignment-member-row.quick-open .assignment-member-quick-panel,
.assignment-member-row.actions-open .assignment-member-quick-panel,
.student-quick-open .assignment-member-quick-panel,
.student-quick-open .student-quick-actions-panel,
.group-list-grid-row.quick-actions-open .group-quick-actions-panel-inline{
  transform:none!important;
  transition:
    opacity .11s ease,
    visibility 0s!important;
}
.task-quick-actions-panel .task-quick-action-text,
.assignment-member-quick-panel .assignment-member-quick-action,
.student-quick-actions-panel .student-quick-action-text,
.group-quick-actions-panel-inline .group-quick-action-text{
  transform:none!important;
  transition:
    background-color .14s ease,
    border-color .14s ease,
    color .14s ease,
    opacity .11s ease!important;
  transition-delay:0s!important;
}

/* Confirmation modal icons should render consistently everywhere, not only password modal. */
.confirm-modal .light-action-icon{
  position:relative;
  display:inline-block;
  width:14px;
  height:14px;
  flex:0 0 14px;
}
.confirm-modal .light-action-icon.cross::before,
.confirm-modal .light-action-icon.cross::after{
  content:"";
  position:absolute;
  left:6.2px;
  top:2.2px;
  width:1.4px;
  height:9.6px;
  border-radius:2px;
  background:currentColor;
}
.confirm-modal .light-action-icon.cross::before{transform:rotate(45deg)}
.confirm-modal .light-action-icon.cross::after{transform:rotate(-45deg)}

/* Report-error modal: second state after successful submission. */
.task-error-feedback{
  text-align:center;
}
.task-error-feedback p{
  margin:0 0 16px;
  color:var(--muted);
  font-size:12px;
  line-height:1.55;
}
.task-error-feedback .btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:6px;
}
.task-error-modal .confirm-modal-actions .btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:6px;
}

/* Editor Save stays in place; dirty state is communicated only by primary color. */
#editorSaveTask{
  display:inline-flex!important;
}
#editorSaveTask[hidden]{
  display:inline-flex!important;
}

@media(max-width:980px){
  .v211-action-topbar .topbar-actions{
    gap:6px;
  }
  .v211-action-topbar .topbar-actions .btn{
    padding-left:9px;
    padding-right:9px;
  }
}


/* v212 — student-level assignment action hierarchy */
.finish-review-modal-actions{
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:8px!important;
}
.reopen-student-assignment-modal .confirm-modal-actions{
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:8px!important;
}
.reopen-student-assignment-note{
  margin-top:8px!important;
}
.student-assignment-action-topbar .v211-topbar-extra{
  display:none!important;
}
.student-assignment-action-topbar.v211-actions-open .v211-topbar-extra:not([hidden]){
  display:inline-flex!important;
  animation:v211TopbarFade .11s ease both;
}
.student-assignment-action-topbar .v211-topbar-core:not([hidden]){
  display:inline-flex!important;
}
.student-assignment-action-topbar .v211-topbar-more-toggle[hidden]{
  display:none!important;
}


/* v213 — fix pending-group topbar, row quick-action timing, completed/editor ordering */

/* Pending students default topbar:
   Powrót / Przyjmij wszystkich / […] */
.group-topbar-v208[data-group-view="pending"]:not(.group-actions-open) #inviteStudents,
.group-topbar-v208[data-group-view="pending"]:not(.group-actions-open) #toggleEnrollment,
.group-topbar-v208[data-group-view="pending"]:not(.group-actions-open) a[href="teacher-group-settings.html"]{
  display:none!important;
}
.group-topbar-v208[data-group-view="pending"]:not(.group-actions-open) #acceptAllPendingStudents:not([hidden]){
  display:inline-flex!important;
}
.group-topbar-v208[data-group-view="pending"] #acceptAllPendingStudents{
  order:2!important;
}
.group-topbar-v208[data-group-view="pending"] #groupTopbarMoreToggle{
  order:99!important;
}

/* Assignment-style row actions: no old slide/width animation.
   Geometry switches immediately; only opacity fades very briefly. */
.assignment-member-quick-panel{
  transform:none!important;
  transition-property:opacity,visibility!important;
  transition-duration:.08s,0s!important;
  transition-timing-function:ease,linear!important;
  transition-delay:0s,.08s!important;
}
.assignment-member-row.quick-open .assignment-member-quick-panel{
  max-width:760px!important;
  margin-right:0!important;
  opacity:1!important;
  visibility:visible!important;
  pointer-events:auto!important;
  transform:none!important;
  transition-delay:0s,0s!important;
}
.assignment-member-quick-panel .assignment-member-quick-action,
.assignment-member-row.quick-open .assignment-member-quick-panel .assignment-member-quick-action,
.assignment-member-row.quick-open .assignment-member-quick-panel .assignment-member-quick-action:hover{
  opacity:1!important;
  transform:none!important;
  transition:
    background-color .14s ease,
    border-color .14s ease,
    color .14s ease,
    opacity .08s ease!important;
  transition-delay:0s!important;
}

/* Explicitly cover the two reported locations. */
#studentActiveTasksView .assignment-member-quick-panel,
#assignmentInProgressView .assignment-member-quick-panel{
  transition-property:opacity,visibility!important;
  transition-duration:.08s,0s!important;
  transition-delay:0s,.08s!important;
}
#studentActiveTasksView .assignment-member-row.quick-open .assignment-member-quick-panel,
#assignmentInProgressView .assignment-member-row.quick-open .assignment-member-quick-panel{
  transition-delay:0s,0s!important;
}

/* Completed assignment:
   Powrót / Treść zadania / […] ; Zleć ponownie only in overflow. */
.assignment-topbar.v211-action-topbar #completedAssignmentTopbarMore{
  order:99!important;
}
.assignment-topbar.v211-action-topbar:not(.v211-actions-open) .assignment-topbar-actions > .v211-topbar-extra{
  display:none!important;
}
.assignment-topbar.v211-action-topbar.v211-actions-open .assignment-topbar-actions > .v211-topbar-extra:not([hidden]){
  display:inline-flex!important;
}

/* Editor:
   collapsed = Powrót / Zapisz / […]
   expanded  = Powrót / Zapisz / Pobierz do pliku / X */
.task-editor-header-actions #taskEditorBackBtn{order:1!important}
.task-editor-header-actions #editorSaveTask{order:2!important}
.task-editor-header-actions #openDownloadTaskModal{order:3!important}
.task-editor-header-actions #taskEditorTopbarMore{order:99!important}


/* v214 — adaptive teacher sidebar on all developed teacher views */

/* Logo + compact mark form one click target leading to Strona główna.
   No background/apla on hover or focus. */
.teacher-sidebar-home-link,
.teacher-sidebar-home-link:hover,
.teacher-sidebar-home-link:focus,
.teacher-sidebar-home-link:focus-visible{
  background:transparent!important;
  box-shadow:none!important;
  text-decoration:none!important;
}
.teacher-sidebar-home-link:focus-visible{
  outline:1px solid rgba(255,255,255,.28);
  outline-offset:2px;
  border-radius:4px;
}

/* The adaptive sidebar is no longer dashboard-only. */
.dashboard-adaptive-shell{
  --dashboard-sidebar-full:226px;
  --dashboard-sidebar-mini:68px;
}

/* Generic mobile topbar behavior for every teacher application view. */
@media(max-width:760px){
  .teacher-global-topbar{
    position:sticky!important;
    top:0;
    z-index:70!important;
    display:flex!important;
    flex-wrap:wrap!important;
    align-items:center!important;
    gap:10px 12px!important;
    min-height:64px!important;
    height:auto!important;
    padding:10px 16px!important;
    transition:
      background-color .2s ease,
      border-color .2s ease;
  }

  .teacher-global-topbar > .dashboard-mobile-menu-toggle{
    order:2!important;
    margin-left:auto!important;
  }

  /* Every direct title/context block stays left of hamburger. */
  .teacher-global-topbar > :not(.topbar-actions):not(.dashboard-mobile-menu-toggle):not(.v211-topbar-action-wash):not(.group-topbar-action-wash){
    order:1;
    min-width:0;
  }

  .teacher-global-topbar > .topbar-actions{
    order:3!important;
    width:100%!important;
    margin-left:0!important;
    display:flex!important;
    gap:8px!important;
  }

  /* Keep compact action sets usable; do not force equal widths on every specialized view. */
  .teacher-global-topbar > .topbar-actions .btn{
    justify-content:center;
    white-space:nowrap;
  }

  /* When fullscreen navigation is open, only the X remains above it. */
  .mobile-menu-is-open .teacher-global-topbar{
    z-index:90!important;
    background:transparent!important;
    border-color:transparent!important;
    backdrop-filter:none!important;
    pointer-events:none;
  }
  .mobile-menu-is-open .teacher-global-topbar > :not(.dashboard-mobile-menu-toggle){
    opacity:0!important;
    visibility:hidden!important;
    pointer-events:none!important;
  }
  .mobile-menu-is-open .teacher-global-topbar > .dashboard-mobile-menu-toggle{
    position:fixed!important;
    top:13px!important;
    right:16px!important;
    z-index:95!important;
    color:#fff!important;
    pointer-events:auto!important;
    background:transparent!important;
    opacity:1!important;
    visibility:visible!important;
  }
  .mobile-menu-is-open .teacher-global-topbar > .dashboard-mobile-menu-toggle:hover,
  .mobile-menu-is-open .teacher-global-topbar > .dashboard-mobile-menu-toggle:focus-visible{
    background:rgba(255,255,255,.08)!important;
  }
}

/* User identity remains clickable but never receives a hover/focus fill. */
.dashboard-adaptive-sidebar .teacher-profile-mini-link:hover,
.dashboard-adaptive-sidebar .teacher-profile-mini-link:focus,
.dashboard-adaptive-sidebar .teacher-profile-mini-link:focus-visible{
  background:transparent!important;
}


/* v216 — no-flash persisted compact sidebar
   The persisted state is read in <head>, before the page is painted.
   These rules visually match `.sidebar-is-collapsed` until teacher-sidebar.js
   takes over. */
@media(min-width:761px){
  html.eureka-sidebar-collapsed-preload .dashboard-adaptive-shell{
    grid-template-columns:var(--dashboard-sidebar-mini,68px) minmax(0,1fr)!important;
  }

  html.eureka-sidebar-collapsed-preload .dashboard-adaptive-sidebar{
    width:var(--dashboard-sidebar-mini,68px)!important;
    transition:none!important;
  }

  html.eureka-sidebar-collapsed-preload .dashboard-sidebar-brand{
    padding-left:3px!important;
    padding-right:3px!important;
  }

  html.eureka-sidebar-collapsed-preload .dashboard-sidebar-logo-wrap{
    width:38px!important;
    flex:0 0 38px!important;
    transition:none!important;
  }

  html.eureka-sidebar-collapsed-preload .dashboard-sidebar-logo,
  html.eureka-sidebar-collapsed-preload .dashboard-adaptive-sidebar .nav-link,
  html.eureka-sidebar-collapsed-preload .dashboard-adaptive-sidebar .nav-label,
  html.eureka-sidebar-collapsed-preload .dashboard-adaptive-sidebar .teacher-profile-mini-link,
  html.eureka-sidebar-collapsed-preload .dashboard-adaptive-sidebar .teacher-profile-copy,
  html.eureka-sidebar-collapsed-preload .dashboard-adaptive-sidebar .teacher-sidebar-avatar,
  html.eureka-sidebar-collapsed-preload .dashboard-sidebar-toggle{
    transition:none!important;
  }

  html.eureka-sidebar-collapsed-preload .dashboard-sidebar-logo-full{
    opacity:0!important;
    transform:translateY(-50%) scale(.9)!important;
    pointer-events:none!important;
  }

  html.eureka-sidebar-collapsed-preload .dashboard-sidebar-logo-mark{
    opacity:1!important;
    transform:translateY(-50%) scale(1)!important;
  }

  html.eureka-sidebar-collapsed-preload .dashboard-sidebar-toggle{
    opacity:0!important;
    visibility:hidden!important;
    pointer-events:none!important;
    position:static!important;
    transform:none!important;
  }

  html.eureka-sidebar-collapsed-preload .dashboard-adaptive-sidebar .nav-link{
    justify-content:center!important;
    gap:0!important;
    padding-left:10px!important;
    padding-right:10px!important;
  }

  html.eureka-sidebar-collapsed-preload .dashboard-adaptive-sidebar .nav-label{
    max-width:0!important;
    opacity:0!important;
    transform:translateX(-5px)!important;
  }

  html.eureka-sidebar-collapsed-preload .dashboard-adaptive-sidebar .teacher-profile-mini-link{
    justify-content:center!important;
    gap:0!important;
    padding-left:0!important;
    padding-right:0!important;
  }

  html.eureka-sidebar-collapsed-preload .dashboard-adaptive-sidebar .teacher-profile-copy{
    max-width:0!important;
    opacity:0!important;
    transform:translateX(-5px)!important;
  }

  html.eureka-sidebar-collapsed-preload .dashboard-adaptive-sidebar .teacher-sidebar-avatar{
    width:30px!important;
    height:30px!important;
    flex:0 0 30px!important;
  }

  html.eureka-sidebar-collapsed-preload .dashboard-adaptive-sidebar .teacher-sidebar-avatar .student-avatar-icon{
    font-size:15px!important;
  }
}


/* v217 — teacher settings header mirrors student settings */
.teacher-settings-topbar-title{
  min-width:0;
}
.teacher-settings-topbar-avatar{
  flex:0 0 auto;
}
.teacher-settings-topbar-name{
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}

@media(max-width:760px){
  .teacher-settings-topbar-title{
    max-width:calc(100% - 54px);
  }
}


/* v218 — new student panel, mechanically aligned with teacher panel */

/* Sidebar logo is clickable but never gets an apla. */
.student-sidebar-home-link,
.student-sidebar-home-link:hover,
.student-sidebar-home-link:focus,
.student-sidebar-home-link:focus-visible{
  background:transparent!important;
  box-shadow:none!important;
  text-decoration:none!important;
}
.student-sidebar-home-link:focus-visible{
  outline:1px solid rgba(255,255,255,.28);
  outline-offset:2px;
  border-radius:4px;
}
.student-profile-mini-link:hover,
.student-profile-mini-link:focus,
.student-profile-mini-link:focus-visible{
  background:transparent!important;
}

/* Prepaint collapsed state — no expanded flash when changing student pages. */
@media(min-width:761px){
  html.eureka-student-sidebar-collapsed-preload .student-adaptive-shell{
    grid-template-columns:var(--dashboard-sidebar-mini,68px) minmax(0,1fr)!important;
  }
  html.eureka-student-sidebar-collapsed-preload .student-adaptive-sidebar{
    width:var(--dashboard-sidebar-mini,68px)!important;
    transition:none!important;
  }
  html.eureka-student-sidebar-collapsed-preload .dashboard-sidebar-brand{
    padding-left:3px!important;padding-right:3px!important;
  }
  html.eureka-student-sidebar-collapsed-preload .dashboard-sidebar-logo-wrap{
    width:38px!important;flex:0 0 38px!important;transition:none!important;
  }
  html.eureka-student-sidebar-collapsed-preload .dashboard-sidebar-logo-full{
    opacity:0!important;transform:translateY(-50%) scale(.9)!important;pointer-events:none!important;
  }
  html.eureka-student-sidebar-collapsed-preload .dashboard-sidebar-logo-mark{
    opacity:1!important;transform:translateY(-50%) scale(1)!important;
  }
  html.eureka-student-sidebar-collapsed-preload .dashboard-sidebar-toggle{
    opacity:0!important;visibility:hidden!important;pointer-events:none!important;position:static!important;transform:none!important;
  }
  html.eureka-student-sidebar-collapsed-preload .student-adaptive-sidebar .nav-link{
    justify-content:center!important;gap:0!important;padding-left:10px!important;padding-right:10px!important;transition:none!important;
  }
  html.eureka-student-sidebar-collapsed-preload .student-adaptive-sidebar .nav-label,
  html.eureka-student-sidebar-collapsed-preload .student-adaptive-sidebar .teacher-profile-copy{
    max-width:0!important;opacity:0!important;transform:translateX(-5px)!important;transition:none!important;
  }
  html.eureka-student-sidebar-collapsed-preload .student-adaptive-sidebar .teacher-profile-mini-link{
    justify-content:center!important;gap:0!important;padding-left:0!important;padding-right:0!important;transition:none!important;
  }
  html.eureka-student-sidebar-collapsed-preload .student-adaptive-sidebar .teacher-sidebar-avatar{
    width:30px!important;height:30px!important;flex:0 0 30px!important;transition:none!important;
  }
}

/* Generic student topbar + full-screen mobile navigation. */
@media(max-width:760px){
  .student-global-topbar{
    position:sticky!important;
    top:0;
    z-index:70!important;
    display:flex!important;
    flex-wrap:wrap!important;
    align-items:center!important;
    gap:10px 12px!important;
    min-height:64px!important;
    height:auto!important;
    padding:10px 16px!important;
  }
  .student-global-topbar > .dashboard-mobile-menu-toggle{
    order:2!important;
    margin-left:auto!important;
  }
  .student-global-topbar > :not(.topbar-actions):not(.dashboard-mobile-menu-toggle){
    order:1;
    min-width:0;
  }
  .student-global-topbar > .topbar-actions{
    order:3!important;
    width:100%!important;
    margin-left:0!important;
    display:flex!important;
    gap:8px!important;
  }
  .mobile-menu-is-open .student-global-topbar{
    z-index:90!important;
    background:transparent!important;
    border-color:transparent!important;
    pointer-events:none;
  }
  .mobile-menu-is-open .student-global-topbar > :not(.dashboard-mobile-menu-toggle){
    opacity:0!important;visibility:hidden!important;pointer-events:none!important;
  }
  .mobile-menu-is-open .student-global-topbar > .dashboard-mobile-menu-toggle{
    position:fixed!important;top:13px!important;right:16px!important;z-index:95!important;
    color:#fff!important;pointer-events:auto!important;background:transparent!important;
    opacity:1!important;visibility:visible!important;
  }
}

/* Student home */
.student-dashboard-home-card{
  margin-bottom:14px;
}
.student-home-list{
  display:flex;
  flex-direction:column;
}
.student-home-row{
  display:flex;
  align-items:center;
  gap:12px;
  min-height:58px;
  padding:10px 4px;
  border-top:1px solid var(--line);
  color:inherit;
  text-decoration:none;
  background:linear-gradient(90deg,#fff 0%,#fff 18%,#fff 82%,#fff 100%);
  transition:background .14s ease;
}
.student-home-row:first-child{border-top:0}
.student-home-row:hover{
  background:linear-gradient(90deg,#fff 0%,#f6f7fa 50%,#fff 100%);
}
.student-home-row-main{
  min-width:0;
  flex:1 1 auto;
  display:flex;
  flex-direction:column;
  gap:3px;
}
.student-home-row-main strong{
  font-size:13px;
}
.student-home-row-main span{
  color:var(--muted);
  font-size:11px;
}
.student-home-row-icon{
  width:32px;height:32px;flex:0 0 32px;
  display:grid;place-items:center;
  border-radius:8px;background:#f3f5f8;
}
.student-home-row-chevron{
  color:#a0a7b5;
}

/* Groups */
.student-groups-page,
.student-tasks-view,
.student-message-list{
  min-width:0;
}
.student-group-row,
.student-task-hub-row{
  min-height:64px;
  display:flex;
  align-items:center;
  gap:12px;
  padding:11px 4px;
  border-top:1px solid var(--line);
  color:inherit;
  text-decoration:none;
  transition:background .14s ease;
}
.student-group-row:first-child,
.student-task-hub-row:first-child{border-top:0}
.student-group-row:hover,
.student-task-hub-row:hover{
  background:linear-gradient(90deg,#fff 0%,#f6f7fa 50%,#fff 100%);
}
.student-group-row-copy,
.student-task-hub-main{
  flex:1 1 auto;
  min-width:0;
  display:flex;
  flex-direction:column;
  gap:3px;
}
.student-group-row-copy small,
.student-task-hub-main span{
  color:var(--muted);
  font-size:11px;
}
.student-group-row.archived{opacity:.72}
.student-group-view[hidden],
.student-groups-view[hidden],
.student-tasks-view[hidden],
.student-message-list[hidden],
.student-own-settings-view[hidden]{
  display:none!important;
}
.student-task-list-row{
  min-height:58px;
  display:flex;
  align-items:center;
  gap:12px;
  padding:10px 4px;
  border-top:1px solid var(--line);
  cursor:pointer;
}
.student-task-list-row:first-child{border-top:0}
.student-task-list-row:hover{
  background:linear-gradient(90deg,#fff 0%,#f6f7fa 50%,#fff 100%);
}
.student-task-list-row > div{
  flex:1 1 auto;
  min-width:0;
  display:flex;
  flex-direction:column;
  gap:3px;
}
.student-task-list-row small{
  color:var(--muted);
}
.student-group-info-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:18px 24px;
}
.student-group-info-grid > div{
  display:flex;
  flex-direction:column;
  gap:4px;
}
.student-group-info-label{
  color:var(--muted);
  font-size:10.5px;
  font-weight:700;
}

/* Messages */
.student-message-row-v218{
  position:relative;
  min-height:68px;
  display:flex;
  align-items:center;
  gap:12px;
  padding:11px 5px 11px 11px;
  border-top:1px solid var(--line);
  color:inherit;
  text-decoration:none;
}
.student-message-row-v218:first-child{border-top:0}
.student-message-row-v218.unread::before{
  content:"";
  position:absolute;
  left:0;
  top:10px;
  bottom:10px;
  width:3px;
  border-radius:3px;
  background:var(--primary);
}
.student-message-row-v218:hover{
  background:linear-gradient(90deg,#fff 0%,#f6f7fa 50%,#fff 100%);
}
.student-message-category-icon{
  width:34px;height:34px;flex:0 0 34px;display:grid;place-items:center;
  border-radius:8px;background:#f3f5f8;
}
.student-message-copy{
  flex:1 1 auto;
  min-width:0;
  display:flex;
  flex-direction:column;
  gap:3px;
}
.student-message-copy small{
  color:#4e5666;
  font-size:11.5px;
}
.student-message-copy em{
  color:var(--muted);
  font-size:10px;
  font-style:normal;
}

/* Student settings */
.student-own-avatar-choices,
.student-own-color-choices{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-top:18px;
}
.student-own-avatar-choices .icon-choice{
  width:42px;height:42px;
}
.student-own-color-choices .color-choice{
  width:34px;height:34px;
}

/* Smaller screens */
@media(max-width:680px){
  .student-group-info-grid{grid-template-columns:1fr}
  .student-home-row,
  .student-group-row,
  .student-task-hub-row,
  .student-message-row-v218{
    align-items:flex-start;
  }
}


/* v219 — student assignment workflow step quick-actions consistency */

/* Dots turn into the same reddish X as every other row menu. */
.review-step-quick-toggle[aria-expanded="true"]{
  color:#a84d5c!important;
  border-color:#e8cdd2!important;
  background:#fff8f9!important;
}
.review-step-quick-toggle[aria-expanded="true"]:hover,
.review-step-quick-toggle[aria-expanded="true"]:focus-visible{
  color:#8f3f4c!important;
  border-color:#dcaeb7!important;
  background:#fff3f5!important;
}
.review-step-quick-toggle[aria-expanded="true"] .group-quick-actions-dots-vertical{
  display:none!important;
}
.review-step-quick-toggle[aria-expanded="true"] .quick-toggle-close-icon{
  display:inline-block!important;
}

/* Remove the historical slide-from-top / width animation.
   Panel geometry is immediate; only a very short fade remains. */
.review-step-quick-panel{
  max-width:none!important;
  margin-right:0!important;
  overflow:visible!important;
  opacity:0!important;
  visibility:hidden!important;
  pointer-events:none!important;
  transform:translateY(-50%)!important;
  transition:
    opacity .08s ease,
    visibility 0s linear .08s!important;
}
.review-step-item.quick-open .review-step-quick-panel{
  max-width:none!important;
  margin-right:0!important;
  opacity:1!important;
  visibility:visible!important;
  pointer-events:auto!important;
  transform:translateY(-50%)!important;
  transition-delay:0s!important;
}
.review-step-quick-panel .btn,
.review-step-item.quick-open .review-step-quick-panel .btn{
  transform:none!important;
  opacity:1!important;
  transition:
    background-color .14s ease,
    border-color .14s ease,
    color .14s ease,
    opacity .08s ease!important;
  transition-delay:0s!important;
}

/* On narrower layouts the historical rule moves the panel back into flow;
   keep the same pure fade there as well. */
@media(max-width:1100px){
  .review-step-quick-panel,
  .review-step-item.quick-open .review-step-quick-panel{
    transform:none!important;
  }
}


/* Alpha 7: icon masks from v220 retired. One canonical inline SVG renderer
   lives in the sidebar PHP view and scoped sidebar controls below. */
.dashboard-adaptive-sidebar .nav-link{position:relative}
.nav-count-badge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  flex:0 0 auto;
  min-width:21px;
  height:18px;
  padding:0 6px;
  margin-left:auto;
  border-radius:6px;
  background:#c94f5e;
  color:#fff;
  font-size:10px;
  line-height:1;
  font-weight:800;
  letter-spacing:.01em;
  box-shadow:none;
}
@media(min-width:761px){
  .dashboard-adaptive-shell.sidebar-is-collapsed .dashboard-adaptive-sidebar .nav-count-badge{
    position:absolute;top:4px;right:5px;min-width:15px;height:15px;padding:0 4px;margin-left:0;border-radius:5px;font-size:8px;
  }
  .dashboard-adaptive-shell.sidebar-is-collapsed:not(.sidebar-hover-suppressed) .dashboard-adaptive-sidebar:hover .nav-count-badge{
    position:static;min-width:21px;height:18px;padding:0 6px;margin-left:auto;border-radius:6px;font-size:10px;
  }
}
@media(max-width:760px){
  .dashboard-adaptive-sidebar .nav-count-badge{
    position:static!important;min-width:21px!important;height:18px!important;padding:0 6px!important;margin-left:auto!important;border-radius:6px!important;font-size:10px!important;
  }
}


/* v428/Alpha 7: sidebar toggles share ONE inline SVG contract. */
.dashboard-sidebar-toggle .sidebar-toggle-icon{
  display:block;width:16px;height:16px;flex:0 0 16px;
  fill:currentColor;pointer-events:none;
}
.dashboard-sidebar-toggle[aria-expanded="true"] .sidebar-toggle-icon-show,
.dashboard-sidebar-toggle[aria-expanded="false"] .sidebar-toggle-icon-hide{display:none!important}

/* v222 — student dashboard rebuilt around every open assignment */

/* Full-width open assignment cards */
.student-dashboard-open-tasks{
  display:grid;
  grid-template-columns:minmax(0,1fr);
  gap:14px;
}
.student-open-assignment-card{
  padding:20px 22px!important;
  overflow:hidden;
}
.student-open-task-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
}
.student-open-task-title-line{
  min-width:0;
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
}
.student-open-task-title-line h2{
  margin:0;
  color:var(--text);
  font-size:16px;
  font-weight:800;
  line-height:1.35;
}
.student-open-task-new{
  display:inline-flex;
  align-items:center;
  gap:5px;
  color:#b42318;
  font-size:9.5px;
  font-weight:850;
  letter-spacing:.035em;
}
.student-open-task-new-dot{
  width:7px;
  height:7px;
  flex:0 0 7px;
  border-radius:50%;
  background:#d92d20;
}
.student-open-task-progress-head{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:16px;
  margin-top:17px;
  margin-bottom:8px;
}
.student-open-task-progress-copy{
  color:#596275;
  font-size:13px;
  font-weight:400;
  line-height:1.4;
}
.student-open-task-progress-value{
  flex:0 0 auto;
  color:var(--text);
  font-size:21px;
  font-weight:800;
  line-height:1;
}
.student-open-task-progress-track{
  width:100%;
  height:10px;
  overflow:hidden;
  border-radius:999px;
  background:#e9edf3;
}
.student-open-task-progress-fill{
  position:relative;
  display:block;
  height:100%;
  min-width:0;
  overflow:hidden;
  border-radius:inherit;
}
.student-open-task-progress-fill.progress-orange{background:#d98718}
.student-open-task-progress-fill.progress-blue{background:#5b7fb8}
.student-open-task-progress-fill.progress-green{background:#2f9e6f}

/* Every started open assignment is visibly "alive", including 100%. */
.student-open-task-progress-fill.is-animated::after{
  content:"";
  position:absolute;
  inset:0;
  border-radius:inherit;
  pointer-events:none;
  background-image:
    linear-gradient(
      135deg,
      transparent 0,
      transparent 25%,
      rgba(0,0,0,.11) 25%,
      rgba(0,0,0,.11) 50%,
      transparent 50%,
      transparent 75%,
      rgba(0,0,0,.11) 75%,
      rgba(0,0,0,.11) 100%
    );
  background-size:28px 28px;
  animation:eureka-student-progress-barberpole .85s linear infinite;
}

.student-open-task-footer{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  margin-top:17px;
  padding-top:15px;
  border-top:1px solid var(--line);
}
.student-open-task-footer-copy{
  min-width:0;
  display:flex;
  align-items:center;
  gap:6px;
  flex-wrap:wrap;
  color:var(--muted);
  font-size:10.5px;
  line-height:1.45;
}
.student-open-task-meta strong{
  color:#596275;
  font-weight:650;
}
.student-open-task-meta-sep{
  color:#a8afbb;
}
.student-open-task-review-state{
  display:inline-flex;
  align-items:center;
  gap:6px;
  color:#237a57;
  font-size:10.5px;
  font-weight:750;
}
.student-open-task-review-dot{
  width:7px;
  height:7px;
  flex:0 0 7px;
  border-radius:50%;
  background:#2f9e6f;
}
.student-open-task-footer > .btn{
  flex:0 0 auto;
  white-space:nowrap;
}

/* Lower dashboard: notifications left, closed tasks + groups right */
.student-dashboard-lower-grid{
  display:grid;
  grid-template-columns:minmax(0,1.08fr) minmax(0,.92fr);
  gap:16px;
  align-items:start;
  margin-top:18px;
}
.student-dashboard-right-stack{
  min-width:0;
  display:grid;
  gap:16px;
}
.student-dashboard-notifications-card,
.student-dashboard-side-card{
  padding-top:0!important;
  padding-bottom:0!important;
  min-width:0;
}

/* Notifications use exactly the teacher dashboard list language. */
.student-dashboard-notifications-card .teacher-dashboard-notification-item{
  min-height:66px!important;
}
.student-dashboard-notifications-card .student-activity-icon.assigned{background:#eef3fb;color:#5474ba}
.student-dashboard-notifications-card .student-activity-icon.comment{background:#eef0fb;color:#6672c4}
.student-dashboard-notifications-card .student-activity-icon.grade{background:#fff2df;color:#9a681d}
.student-dashboard-notifications-card .student-activity-icon.reopen{background:#f1f2f5;color:#667085}

/* Closed tasks */
.student-dashboard-closed-list{
  display:flex;
  flex-direction:column;
}
.student-dashboard-closed-row{
  display:grid;
  grid-template-columns:minmax(0,1fr) 34px;
  gap:10px;
  align-items:center;
  min-height:90px;
  padding:11px 0;
  border-bottom:1px solid var(--line);
}
.student-dashboard-closed-row:last-child{
  border-bottom:0;
}
.student-dashboard-closed-copy{
  min-width:0;
}
.student-dashboard-closed-title-line{
  display:flex;
  align-items:baseline;
  gap:8px;
  min-width:0;
}
.student-dashboard-closed-title-line strong{
  min-width:0;
  color:var(--text);
  font-size:12.5px;
  line-height:1.4;
}
.student-dashboard-closed-percent{
  flex:0 0 auto;
  color:#667085;
  font-size:10px;
  font-weight:750;
}
.student-dashboard-closed-grade{
  margin-top:5px;
  color:#596275;
  font-size:10.5px;
}
.student-dashboard-closed-grade strong{
  color:var(--text);
}
.student-dashboard-closed-comment{
  margin-top:3px;
  color:#697386;
  font-size:10px;
  line-height:1.4;
}
.student-dashboard-closed-comment span{
  color:#596275;
}

/* Groups in right column reuse teacher geometry but at the right-column scale. */
.student-dashboard-groups-list .group-list-row{
  min-height:68px;
  padding-top:10px!important;
  padding-bottom:10px!important;
}
.student-dashboard-groups-list .group-name-copy .list-title{
  font-size:13px!important;
}
.student-dashboard-groups-list .group-name-copy .list-meta{
  margin-top:4px!important;
  font-size:10.5px!important;
}

/* Make "Powiadomienia" fit comfortably in compact/full nav states. */
.student-adaptive-sidebar .nav-link[href="student-messages.html"] .nav-label{
  min-width:0;
}

@media(max-width:1050px){
  .student-dashboard-lower-grid{
    grid-template-columns:minmax(0,1fr);
  }
}
@media(max-width:720px){
  .student-open-assignment-card{
    padding:17px 16px!important;
  }
  .student-open-task-progress-head{
    align-items:flex-start;
  }
  .student-open-task-footer{
    align-items:flex-start;
    flex-direction:column;
  }
  .student-open-task-footer > .btn{
    width:100%;
    justify-content:center;
  }
}
@media(prefers-reduced-motion:reduce){
  .student-open-task-progress-fill.is-animated::after{
    animation:none!important;
  }
}


/* v223 — student dashboard follow-up */

/* Progress copy is intentionally regular; numeric percentage stays bold. */
.student-open-task-progress-copy{
  font-weight:400!important;
}
.student-open-task-progress-value{
  font-weight:800!important;
}

/* NEW marker: larger label + proportional dot for better baseline with task title. */
.student-open-task-new{
  gap:6px!important;
  font-size:11.5px!important;
  font-weight:850!important;
  line-height:1!important;
  letter-spacing:.04em!important;
}
.student-open-task-new-dot{
  width:9px!important;
  height:9px!important;
  flex:0 0 9px!important;
}

/* Waiting-for-review stays the final information in the footer sequence. */
.student-open-task-review-state{
  order:99;
}

/* Closed task rows: entire row is clickable and uses the portal's row hover language. */
a.student-dashboard-closed-row{
  width:100%;
  box-sizing:border-box;
  color:inherit;
  text-decoration:none;
  cursor:pointer;
  transition:background .14s ease;
}
a.student-dashboard-closed-row:hover,
a.student-dashboard-closed-row:focus-visible{
  background:
    linear-gradient(
      90deg,
      #fff 0%,
      #f6f7fa 14%,
      #f6f7fa 86%,
      #fff 100%
    );
  color:inherit;
}
a.student-dashboard-closed-row:focus-visible{
  outline:2px solid rgba(84,116,186,.28);
  outline-offset:-2px;
  border-radius:5px;
}

/* Groups: whole row clickable + hard grid bounds so chevron cannot escape the card. */
.student-dashboard-groups-list{
  min-width:0;
  overflow:hidden;
}
.student-dashboard-groups-list a.group-list-row{
  width:100%!important;
  max-width:100%!important;
  min-width:0!important;
  box-sizing:border-box!important;
  display:grid!important;
  grid-template-columns:minmax(0,1fr) 34px!important;
  gap:10px!important;
  align-items:center!important;
  color:inherit!important;
  text-decoration:none!important;
  cursor:pointer!important;
  overflow:hidden!important;
  transition:background .14s ease!important;
}
.student-dashboard-groups-list a.group-list-row:hover,
.student-dashboard-groups-list a.group-list-row:focus-visible{
  background:
    linear-gradient(
      90deg,
      #fff 0%,
      #f6f7fa 14%,
      #f6f7fa 86%,
      #fff 100%
    )!important;
}
.student-dashboard-groups-list a.group-list-row:focus-visible{
  outline:2px solid rgba(84,116,186,.28);
  outline-offset:-2px;
  border-radius:5px;
}
.student-dashboard-groups-list .group-name-cell{
  min-width:0!important;
  width:auto!important;
}
.student-dashboard-groups-list .group-name-copy,
.student-dashboard-groups-list .list-title-row,
.student-dashboard-groups-list .list-title{
  min-width:0!important;
}
.student-dashboard-groups-list .student-dashboard-row-chevron{
  width:34px!important;
  height:34px!important;
  flex:0 0 34px!important;
  justify-self:end!important;
  margin:0!important;
}

/* Visual chevron is now a span inside a fully clickable row. */
.student-dashboard-row-chevron{
  display:inline-grid!important;
  place-items:center!important;
  color:#a4adba!important;
  text-decoration:none!important;
}


/* v224 — one clean row above student-dashboard progress bars */

/* Title + progress summary share one line. */
.student-open-task-head{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) auto!important;
  align-items:center!important;
  gap:20px!important;
  margin-bottom:15px!important;
}
.student-open-task-title-line{
  min-width:0!important;
  display:flex!important;
  align-items:center!important;
  gap:10px!important;
  flex-wrap:nowrap!important;
}
.student-open-task-title-line h2{
  min-width:0!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  white-space:nowrap!important;
}
.student-open-task-inline-progress{
  min-width:max-content;
  display:flex!important;
  align-items:baseline!important;
  justify-content:flex-end!important;
  gap:10px!important;
  margin:0!important;
}
.student-open-task-inline-progress .student-open-task-progress-copy{
  color:#596275!important;
  font-size:13px!important;
  font-weight:400!important;
  line-height:1.35!important;
  white-space:nowrap!important;
}
.student-open-task-inline-progress .student-open-task-progress-value{
  color:var(--text)!important;
  font-size:21px!important;
  font-weight:800!important;
  line-height:1!important;
  white-space:nowrap!important;
}

/* The old two-row progress heading no longer participates in layout. */
.student-open-task-progress-head{
  margin:0!important;
}

/* On narrower layouts preserve readability by allowing the single desktop row
   to stack only when there is genuinely not enough horizontal space. */
@media(max-width:820px){
  .student-open-task-head{
    grid-template-columns:minmax(0,1fr)!important;
    gap:8px!important;
  }
  .student-open-task-inline-progress{
    justify-content:space-between!important;
    min-width:0!important;
  }
  .student-open-task-inline-progress .student-open-task-progress-copy{
    white-space:normal!important;
  }
}


/* v225 — preserve sidebar hover-preview across page navigation */

/* Runtime restored state: same geometry as real :hover preview while the
   persisted sidebar itself remains compact in the page grid. */
@media(min-width:761px){
  .dashboard-adaptive-shell.sidebar-is-collapsed.sidebar-hover-preview-restored
  .dashboard-adaptive-sidebar{
    width:var(--dashboard-sidebar-full)!important;
    box-shadow:14px 0 34px rgba(10,13,28,.22)!important;
  }
  .dashboard-adaptive-shell.sidebar-is-collapsed.sidebar-hover-preview-restored
  .dashboard-sidebar-brand{
    padding-left:5px!important;
    padding-right:5px!important;
  }
  .dashboard-adaptive-shell.sidebar-is-collapsed.sidebar-hover-preview-restored
  .dashboard-sidebar-logo-wrap{
    width:158px!important;
    flex-basis:158px!important;
  }
  .dashboard-adaptive-shell.sidebar-is-collapsed.sidebar-hover-preview-restored
  .dashboard-sidebar-logo-full{
    opacity:1!important;
    transform:translateY(-50%) scale(1)!important;
    pointer-events:auto!important;
    transition-delay:0s!important;
  }
  .dashboard-adaptive-shell.sidebar-is-collapsed.sidebar-hover-preview-restored
  .dashboard-sidebar-logo-mark{
    opacity:0!important;
    transform:translateY(-50%) scale(.92)!important;
    transition-delay:0s!important;
  }
  .dashboard-adaptive-shell.sidebar-is-collapsed.sidebar-hover-preview-restored
  .dashboard-sidebar-toggle{
    position:relative!important;
    right:auto!important;
    top:auto!important;
    opacity:1!important;
    visibility:visible!important;
    pointer-events:auto!important;
    transform:none!important;
  }
  .dashboard-adaptive-shell.sidebar-is-collapsed.sidebar-hover-preview-restored
  .dashboard-adaptive-sidebar .nav-link{
    justify-content:flex-start!important;
    gap:10px!important;
    padding-left:11px!important;
    padding-right:11px!important;
  }
  .dashboard-adaptive-shell.sidebar-is-collapsed.sidebar-hover-preview-restored
  .dashboard-adaptive-sidebar .nav-label{
    max-width:170px!important;
    opacity:1!important;
    transform:translateX(0)!important;
  }
  .dashboard-adaptive-shell.sidebar-is-collapsed.sidebar-hover-preview-restored
  .dashboard-adaptive-sidebar .teacher-profile-mini-link{
    justify-content:flex-start!important;
    gap:10px!important;
    padding-left:8px!important;
    padding-right:8px!important;
  }
  .dashboard-adaptive-shell.sidebar-is-collapsed.sidebar-hover-preview-restored
  .dashboard-adaptive-sidebar .teacher-profile-copy{
    max-width:150px!important;
    opacity:1!important;
    transform:translateX(0)!important;
  }
  .dashboard-adaptive-shell.sidebar-is-collapsed.sidebar-hover-preview-restored
  .dashboard-adaptive-sidebar .teacher-sidebar-avatar{
    width:38px!important;
    height:38px!important;
    flex:0 0 38px!important;
  }
  .dashboard-adaptive-shell.sidebar-is-collapsed.sidebar-hover-preview-restored
  .dashboard-adaptive-sidebar .teacher-sidebar-avatar .student-avatar-icon{
    font-size:18px!important;
  }

  /* Prepaint equivalent — prevents a one-frame return to compact state
     on the destination page when navigation was initiated from hover preview. */
  html.eureka-sidebar-collapsed-preload.eureka-sidebar-hover-preload
  .dashboard-adaptive-sidebar,
  html.eureka-student-sidebar-collapsed-preload.eureka-student-sidebar-hover-preload
  .dashboard-adaptive-sidebar{
    width:var(--dashboard-sidebar-full,226px)!important;
    box-shadow:14px 0 34px rgba(10,13,28,.22)!important;
    transition:none!important;
  }
  html.eureka-sidebar-collapsed-preload.eureka-sidebar-hover-preload
  .dashboard-sidebar-brand,
  html.eureka-student-sidebar-collapsed-preload.eureka-student-sidebar-hover-preload
  .dashboard-sidebar-brand{
    padding-left:5px!important;
    padding-right:5px!important;
  }
  html.eureka-sidebar-collapsed-preload.eureka-sidebar-hover-preload
  .dashboard-sidebar-logo-wrap,
  html.eureka-student-sidebar-collapsed-preload.eureka-student-sidebar-hover-preload
  .dashboard-sidebar-logo-wrap{
    width:158px!important;
    flex:0 0 158px!important;
  }
  html.eureka-sidebar-collapsed-preload.eureka-sidebar-hover-preload
  .dashboard-sidebar-logo-full,
  html.eureka-student-sidebar-collapsed-preload.eureka-student-sidebar-hover-preload
  .dashboard-sidebar-logo-full{
    opacity:1!important;
    transform:translateY(-50%) scale(1)!important;
    pointer-events:auto!important;
  }
  html.eureka-sidebar-collapsed-preload.eureka-sidebar-hover-preload
  .dashboard-sidebar-logo-mark,
  html.eureka-student-sidebar-collapsed-preload.eureka-student-sidebar-hover-preload
  .dashboard-sidebar-logo-mark{
    opacity:0!important;
    transform:translateY(-50%) scale(.92)!important;
  }
  html.eureka-sidebar-collapsed-preload.eureka-sidebar-hover-preload
  .dashboard-sidebar-toggle,
  html.eureka-student-sidebar-collapsed-preload.eureka-student-sidebar-hover-preload
  .dashboard-sidebar-toggle{
    position:relative!important;
    right:auto!important;
    top:auto!important;
    opacity:1!important;
    visibility:visible!important;
    pointer-events:auto!important;
    transform:none!important;
  }
  html.eureka-sidebar-collapsed-preload.eureka-sidebar-hover-preload
  .dashboard-adaptive-sidebar .nav-link,
  html.eureka-student-sidebar-collapsed-preload.eureka-student-sidebar-hover-preload
  .dashboard-adaptive-sidebar .nav-link{
    justify-content:flex-start!important;
    gap:10px!important;
    padding-left:11px!important;
    padding-right:11px!important;
  }
  html.eureka-sidebar-collapsed-preload.eureka-sidebar-hover-preload
  .dashboard-adaptive-sidebar .nav-label,
  html.eureka-student-sidebar-collapsed-preload.eureka-student-sidebar-hover-preload
  .dashboard-adaptive-sidebar .nav-label{
    max-width:170px!important;
    opacity:1!important;
    transform:translateX(0)!important;
  }
  html.eureka-sidebar-collapsed-preload.eureka-sidebar-hover-preload
  .dashboard-adaptive-sidebar .teacher-profile-mini-link,
  html.eureka-student-sidebar-collapsed-preload.eureka-student-sidebar-hover-preload
  .dashboard-adaptive-sidebar .teacher-profile-mini-link{
    justify-content:flex-start!important;
    gap:10px!important;
    padding-left:8px!important;
    padding-right:8px!important;
  }
  html.eureka-sidebar-collapsed-preload.eureka-sidebar-hover-preload
  .dashboard-adaptive-sidebar .teacher-profile-copy,
  html.eureka-student-sidebar-collapsed-preload.eureka-student-sidebar-hover-preload
  .dashboard-adaptive-sidebar .teacher-profile-copy{
    max-width:150px!important;
    opacity:1!important;
    transform:translateX(0)!important;
  }
  html.eureka-sidebar-collapsed-preload.eureka-sidebar-hover-preload
  .dashboard-adaptive-sidebar .teacher-sidebar-avatar,
  html.eureka-student-sidebar-collapsed-preload.eureka-student-sidebar-hover-preload
  .dashboard-adaptive-sidebar .teacher-sidebar-avatar{
    width:38px!important;
    height:38px!important;
    flex:0 0 38px!important;
  }
}

/* v225 — message threads grow naturally with new messages.
   No nested vertical scroll inside a task conversation. */
.review-page-v98 .teacher-conversation-messages{
  max-height:none!important;
  overflow:visible!important;
}
.student-task-v99 .student-conversation,
.student-conversation{
  max-height:none!important;
  overflow:visible!important;
  height:auto!important;
}


/* v226 — homepage CTA iconography, school context, notification scale */

/* Student open-task title weight. */
.student-open-task-title-line h2{
  font-weight:760!important;
}

/* Homepage action buttons use the same icon-before-label language everywhere. */
.student-dashboard-open-tasks .btn,
.student-dashboard-lower-grid .teacher-dashboard-home-card-head .btn,
.teacher-dashboard-home-stack .teacher-dashboard-home-card-head .btn{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:6px!important;
}
.student-dashboard-open-tasks .btn .btn-icon,
.student-dashboard-lower-grid .teacher-dashboard-home-card-head .btn .btn-icon,
.teacher-dashboard-home-stack .teacher-dashboard-home-card-head .btn .btn-icon{
  width:15px!important;
  height:15px!important;
  font-size:15px!important;
  line-height:15px!important;
  margin:0!important;
}

/* Notification count should sit next to the label when the sidebar is expanded. */
@media(min-width:761px){
  .dashboard-adaptive-shell:not(.sidebar-is-collapsed)
  .dashboard-adaptive-sidebar .nav-count-badge{
    margin-left:0!important;
  }
  .dashboard-adaptive-shell.sidebar-is-collapsed:not(.sidebar-hover-suppressed)
  .dashboard-adaptive-sidebar:hover .nav-count-badge,
  .dashboard-adaptive-shell.sidebar-is-collapsed.sidebar-hover-preview-restored
  .dashboard-adaptive-sidebar .nav-count-badge{
    margin-left:0!important;
  }
}
@media(max-width:760px){
  .dashboard-adaptive-sidebar .nav-count-badge{
    margin-left:0!important;
  }
}

/* Slightly larger notification title and neighboring category icon on both homepages. */
.teacher-dashboard-notification-item-copy strong{
  font-size:13.5px!important;
}
.teacher-dashboard-notification-item .student-activity-icon{
  width:36px!important;
  height:36px!important;
  flex:0 0 36px!important;
}
.teacher-dashboard-notification-item .student-activity-icon .dashicons{
  width:18px!important;
  height:18px!important;
  font-size:18px!important;
  line-height:18px!important;
}

/* Student dashboard school context — informative only, not a control. */
.student-dashboard-school-context{
  margin-left:auto!important;
  display:flex!important;
  align-items:center!important;
  min-width:0;
  color:#8a93a6;
  pointer-events:none;
}
.student-dashboard-school-item{
  display:inline-flex;
  align-items:center;
  gap:6px;
  min-width:0;
  max-width:420px;
  font-size:10.5px;
  font-weight:550;
  line-height:1.3;
  white-space:nowrap;
}
.student-dashboard-school-item .dashicons{
  width:14px;
  height:14px;
  flex:0 0 14px;
  font-size:14px;
  line-height:14px;
  color:#a3aab7;
}
.student-dashboard-school-name{
  overflow:hidden;
  text-overflow:ellipsis;
}

@media(max-width:760px){
  .student-dashboard-school-context{
    order:3!important;
    width:100%!important;
    margin-left:0!important;
  }
  .student-dashboard-school-item{
    max-width:100%;
    white-space:normal;
  }
}


/* v227 — student dashboard: work CTA optical alignment + stronger progress copy */

/* The descriptive progress line should be visually strong but still lighter
   than the numeric percentage. */
.student-open-task-inline-progress .student-open-task-progress-copy{
  font-weight:760!important;
}

/* Align the icon and text on the exact same flex axis.
   Dashicons normally inherit WordPress font metrics, which made these two
   glyphs sit a few pixels too high. */
.student-open-task-footer > .btn.student-work-action-btn{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:7px!important;
  line-height:1.2!important;
}
.student-open-task-footer > .btn.student-work-action-btn .dashicons,
.student-open-task-footer > .btn.student-work-action-btn .student-work-action-icon{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  width:16px!important;
  height:16px!important;
  flex:0 0 16px!important;
  margin:0!important;
  padding:0!important;
  font-size:16px!important;
  line-height:16px!important;
  vertical-align:middle!important;
  position:relative!important;
  top:0!important;
  transform:none!important;
}
.student-open-task-footer > .btn.student-work-action-btn .dashicons::before,
.student-open-task-footer > .btn.student-work-action-btn .student-work-action-icon::before{
  display:block!important;
  width:16px!important;
  height:16px!important;
  margin:0!important;
  line-height:16px!important;
}


/* v228 — correct student dashboard progress typography */
.student-open-task-inline-progress .student-open-task-progress-copy{
  font-weight:400!important;
}
.student-open-task-inline-progress .student-open-task-progress-value{
  font-weight:760!important;
}


/* v229 — key student task execution view */

/* Give the main page room for the always-visible fixed progress dock. */
/* The fixed dock needs space only in the legacy prototype view.
   Live EUREKA realization defines its own compact bottom spacing in hub.css. */
.student-task-v229:not(.eureka-realization-v428){
  padding-bottom:118px;
}

/* =========================
   Header / task context
   ========================= */
.student-task-action-topbar{
  min-height:90px!important;
  height:auto!important;
  position:sticky!important;
  top:0;
  z-index:72!important;
  isolation:isolate;
  overflow:hidden;
}
.student-task-topbar-wash{
  position:absolute;
  inset:0;
  z-index:1;
  background:rgba(255,255,255,.98);
  opacity:0;
  visibility:hidden;
  pointer-events:none;
  transition:opacity .11s ease,visibility 0s linear .11s;
}
.student-task-action-topbar.student-task-actions-open .student-task-topbar-wash{
  opacity:1;
  visibility:visible;
  transition-delay:0s;
}
.student-task-topbar-context{
  min-width:0;
  flex:1 1 auto;
  display:flex;
  flex-direction:column;
  justify-content:center;
  gap:7px;
}
.student-task-topbar-title-line{
  min-width:0;
  display:flex;
  align-items:baseline;
  gap:12px;
  flex-wrap:wrap;
}
.student-task-topbar-title{
  color:var(--text);
  font-size:18px;
  font-weight:780;
  line-height:1.25;
}
.student-task-topbar-assignment-meta{
  min-width:0;
  display:inline-flex;
  align-items:center;
  gap:4px;
  flex-wrap:wrap;
  color:#7b8495;
  font-size:10.5px;
  line-height:1.4;
}
.student-task-topbar-assignment-meta strong{
  color:#596275;
  font-weight:700;
}
.student-task-topbar-group-icon{
  width:20px!important;
  height:20px!important;
  flex:0 0 20px!important;
  border-radius:5px!important;
  font-size:10px!important;
}
.student-task-topbar-group-name{
  color:#596275;
  font-weight:700;
}
.student-task-topbar-difficulty{
  display:flex;
  align-items:center;
  gap:8px;
  color:#7b8495;
  font-size:10px;
}
.student-task-topbar-actions{
  position:relative;
  z-index:3;
  margin-left:auto;
  display:flex!important;
  align-items:center!important;
  justify-content:flex-end!important;
  gap:7px!important;
  flex:0 0 auto;
}
.student-task-extra-action{
  display:none!important;
}
.student-task-action-topbar.student-task-actions-open .student-task-extra-action:not([hidden]){
  display:inline-flex!important;
  animation:v211TopbarFade .11s ease both;
}
.student-task-action-topbar.student-task-actions-open .student-task-back-action{
  order:1!important;
}
.student-task-core-action{
  order:2!important;
}
.student-task-action-topbar.student-task-actions-open .student-task-problem-action{
  order:3!important;
}
.student-task-more-toggle{
  order:99!important;
}
.student-task-action-topbar.student-task-actions-open .student-task-more-toggle{
  color:#a84d5c!important;
  border-color:#e8cdd2!important;
  background:#fff8f9!important;
}
.student-task-action-topbar.student-task-actions-open .student-task-more-toggle .group-quick-actions-dots-vertical{
  display:none!important;
}
.student-task-action-topbar.student-task-actions-open .student-task-more-toggle .quick-toggle-close-icon{
  display:inline-block!important;
}
.student-task-core-action,
.student-task-problem-action,
.student-task-back-action{
  white-space:nowrap;
}
.student-task-locked-action,
.student-task-done-action{
  border-color:#e1e5ec!important;
  background:#f5f6f8!important;
  color:#8a93a6!important;
  cursor:not-allowed!important;
  box-shadow:none!important;
}
.student-task-locked-action .dashicons{
  color:#b98624!important;
}

/* =========================
   Main content cards
   ========================= */
.student-task-v229{
  display:grid;
  gap:16px;
}
.student-task-content-card,
.student-task-communication-card{
  padding:0 24px 22px!important;
}
.student-task-step-card-head,
.student-task-communication-head{
  min-height:68px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  border-bottom:1px solid var(--line);
}
.student-task-step-card-head{
  flex-direction:column;
  align-items:flex-start;
  justify-content:center;
  gap:3px;
}
.student-task-step-card-head h1,
.student-task-communication-head h2{
  margin:0;
  color:var(--text);
  font-size:17px;
  line-height:1.35;
}
.student-task-step-subtitle,
.student-task-communication-head p{
  margin:0;
  color:var(--muted);
  font-size:10.5px;
  line-height:1.45;
}
.student-task-step-content{
  padding:20px 0;
}
.student-task-step-content p,
.student-task-step-content li{
  color:#4e586a;
  font-size:12.5px;
  line-height:1.7;
}
.student-task-step-content p{
  margin:0;
}
.student-task-step-content .catalog-media-placeholder{
  min-height:210px;
}
.student-task-teacher-note{
  padding:16px 0 0;
  border-top:1px solid var(--line);
}
.student-task-teacher-note[hidden]{
  display:none!important;
}
.student-task-teacher-note-label{
  display:flex;
  align-items:center;
  gap:6px;
  color:#53627b;
  font-size:10.5px;
  font-weight:750;
}
.student-task-teacher-note-label .dashicons{
  width:15px;
  height:15px;
  font-size:15px;
}
.student-task-teacher-note-text{
  margin-top:6px;
  color:#596275;
  font-size:11.5px;
  line-height:1.6;
}

/* =========================
   Conversation
   ========================= */
.student-task-communication-head{
  padding:0;
}
.student-task-message-list{
  display:flex;
  flex-direction:column;
  gap:11px;
  padding:18px 0;
}
.student-task-message-row{
  display:flex;
  width:100%;
}
.student-task-message-row.teacher-side{
  justify-content:flex-start;
}
.student-task-message-row.student-side{
  justify-content:flex-end;
}
.student-task-message-interaction,
.student-task-own-message-stack{
  width:fit-content;
  max-width:min(78%,680px);
}
.student-task-message-bubble{
  position:relative;
  width:fit-content;
  max-width:100%;
  min-width:180px;
  padding:11px 13px 9px;
  border-radius:13px;
  box-shadow:0 1px 2px rgba(15,23,42,.05);
}
.student-task-message-bubble.teacher{
  border:1px solid #dfe3ea;
  border-bottom-left-radius:5px;
  background:#f7f8fa;
}
.student-task-message-bubble.student{
  border:1px solid #4b5175;
  border-bottom-right-radius:5px;
  background:#4b5175;
}
.student-task-message-bubble.student p,
.student-task-message-bubble.student .student-task-message-time{
  color:#fff;
}
.student-task-message-author{
  margin-bottom:5px;
  color:#596275;
  font-size:10px;
  font-weight:800;
}
.student-task-message-bubble p{
  margin:0;
  color:#323a4c;
  font-size:12px;
  line-height:1.58;
}
.student-task-message-time{
  margin-top:6px;
  color:#8a93a6;
  font-size:9px;
  text-align:right;
}
.student-task-message-bubble.student .student-task-message-time{
  color:rgba(255,255,255,.72);
}

/* Problems reported by the student. */
.student-task-message-bubble.student.problem{
  border-color:#c94959!important;
  background:#c94959!important;
}
.student-task-message-bubble.student.problem-resolved{
  border-color:#2f8f68!important;
  background:#2f8f68!important;
}
.student-task-problem-label{
  display:flex;
  align-items:center;
  gap:7px;
  margin-bottom:6px;
  color:#fff;
  font-size:10px;
  font-weight:800;
}
.student-task-problem-label-icon{
  width:20px;
  height:20px;
  flex:0 0 20px;
  display:grid;
  place-items:center;
  border-radius:50%;
  background:#fff;
  color:#c94959;
}
.student-task-message-bubble.problem-resolved .student-task-problem-label-icon{
  color:#2f8f68;
}
.student-task-problem-label-icon .dashicons{
  width:13px;
  height:13px;
  font-size:13px;
  line-height:13px;
}
.student-task-resolve-problem{
  margin-top:7px;
  margin-left:auto;
  display:inline-flex!important;
  align-items:center!important;
  gap:6px!important;
}

/* Reactions to teacher messages. */
.student-task-message-interaction{
  position:relative;
}
.student-task-message-footer{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:7px;
}
.student-task-reaction-chip{
  min-width:24px;
  height:20px;
  padding:0 5px;
  border:1px solid #dce1e9;
  border-radius:999px;
  background:#fff;
  font-size:12px;
  cursor:pointer;
}
.student-task-reaction-picker{
  display:flex;
  align-items:center;
  gap:4px;
  margin-top:5px;
  opacity:0;
  visibility:hidden;
  transform:translateY(-2px);
  transition:opacity .12s ease,transform .12s ease,visibility 0s linear .12s;
}
.student-task-message-interaction:hover .student-task-reaction-picker,
.student-task-message-interaction:focus-within .student-task-reaction-picker{
  opacity:1;
  visibility:visible;
  transform:none;
  transition-delay:0s;
}
.student-task-reaction-option{
  width:27px;
  height:27px;
  display:grid;
  place-items:center;
  padding:0;
  border:1px solid #e0e4eb;
  border-radius:6px;
  background:#fff;
  cursor:pointer;
  font-size:14px;
}
.student-task-reaction-option:hover,
.student-task-reaction-option.selected{
  background:#f1f3f7;
  border-color:#cdd3de;
}

/* Composer */
.student-task-composer{
  padding-top:16px;
  border-top:1px solid var(--line);
}
.student-task-composer > label{
  display:block;
  margin-bottom:7px;
  color:var(--text);
  font-size:11.5px;
  font-weight:750;
}
.student-task-composer textarea{
  width:100%;
  min-height:96px;
  box-sizing:border-box;
  padding:11px 12px;
  border:1px solid var(--line);
  border-radius:7px;
  background:#fff;
  color:var(--text);
  font:inherit;
  font-size:12.5px;
  line-height:1.5;
  resize:vertical;
  outline:none;
}
.student-task-composer textarea:focus{
  border-color:#aeb8ca;
  box-shadow:0 0 0 2px rgba(84,116,186,.08);
}
.student-task-composer-actions{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-top:9px;
}
.student-task-problem-toggle{
  display:inline-flex;
  align-items:center;
  gap:7px;
  color:#596275;
  font-size:11px;
  font-weight:700;
  cursor:pointer;
}
.student-task-problem-toggle input{
  position:absolute;
  opacity:0;
  pointer-events:none;
}
.student-task-problem-check{
  position:relative;
  width:17px;
  height:17px;
  flex:0 0 17px;
  border:1px solid #bfc6d2;
  border-radius:4px;
  background:#fff;
}
.student-task-problem-toggle input:checked + .student-task-problem-check{
  border-color:#c94959;
  background:#c94959;
}
.student-task-problem-toggle input:checked + .student-task-problem-check::after{
  content:"";
  position:absolute;
  left:5px;
  top:2px;
  width:4px;
  height:8px;
  border-right:1.6px solid #fff;
  border-bottom:1.6px solid #fff;
  transform:rotate(42deg);
}

/* =========================
   Fixed bottom progress dock
   ========================= */
.student-task-progress-dock{
  position:fixed;
  left:var(--dashboard-sidebar-full,226px);
  right:0;
  bottom:0;
  z-index:65;
  background:rgba(255,255,255,.985);
  border-top:1px solid #dde2ea;
  box-shadow:0 -5px 18px rgba(20,25,40,.035);
  backdrop-filter:blur(8px);
  transition:left .22s cubic-bezier(.2,.72,.2,1);
}
.sidebar-is-collapsed ~ .main + .student-task-progress-dock,
.dashboard-adaptive-shell.sidebar-is-collapsed + .student-task-progress-dock{
  left:var(--dashboard-sidebar-mini,68px);
}
.student-task-progress-dock-inner{
  padding:13px 38px 14px;
}
.student-task-progress-meta{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  margin-bottom:8px;
}
.student-task-progress-summary{
  display:flex;
  align-items:baseline;
  justify-content:flex-end;
  gap:10px;
  color:#596275;
  font-size:12px;
  font-weight:400;
}
.student-task-progress-summary strong{
  color:var(--text);
  font-size:18px;
  font-weight:760;
}
.student-task-progress-track{
  height:9px!important;
  margin:0!important;
}
.student-task-progress-fill{
  position:relative!important;
  overflow:hidden!important;
  transition:width .38s cubic-bezier(.2,.72,.2,1),background-color .24s ease!important;
}
.student-task-progress-fill.is-animated::after{
  content:"";
  position:absolute;
  inset:0;
  border-radius:inherit;
  pointer-events:none;
  background-image:
    linear-gradient(
      135deg,
      transparent 0,
      transparent 25%,
      rgba(0,0,0,.11) 25%,
      rgba(0,0,0,.11) 50%,
      transparent 50%,
      transparent 75%,
      rgba(0,0,0,.11) 75%,
      rgba(0,0,0,.11) 100%
    );
  background-size:28px 28px;
  animation:eureka-student-progress-barberpole .85s linear infinite;
}

/* Correct dock offset for compact sidebars. The dock remains in the content
   column; hover preview still overlays it, just like the main page. */
.dashboard-adaptive-shell.sidebar-is-collapsed ~ .student-task-progress-dock{
  left:var(--dashboard-sidebar-mini,68px);
}

/* =========================
   Tablet / mobile
   ========================= */
@media(max-width:1050px){
  .student-task-topbar-title-line{
    align-items:flex-start;
    flex-direction:column;
    gap:4px;
  }
  .student-task-topbar-assignment-meta{
    font-size:10px;
  }
  .student-task-topbar-actions .btn{
    padding-left:9px;
    padding-right:9px;
  }
}
@media(max-width:760px){
  .student-task-v229:not(.eureka-realization-v428){
    padding:14px 14px 132px;
  }

  .student-task-action-topbar{
    min-height:64px!important;
  }
  .student-task-topbar-context{
    max-width:calc(100% - 48px);
    gap:5px;
  }
  .student-task-topbar-title{
    font-size:16px;
  }
  .student-task-topbar-assignment-meta{
    display:none;
  }
  .student-task-topbar-difficulty{
    font-size:9.5px;
  }
  .student-task-action-topbar > .dashboard-mobile-menu-toggle{
    align-self:center;
  }
  .student-task-action-topbar > .topbar-actions{
    width:100%!important;
    flex-wrap:wrap!important;
  }
  .student-task-action-topbar .student-task-core-action{
    flex:1 1 auto!important;
    min-width:0;
  }
  .student-task-action-topbar.student-task-actions-open .student-task-extra-action{
    flex:0 1 auto!important;
  }

  .student-task-content-card,
  .student-task-communication-card{
    padding:0 16px 18px!important;
  }
  .student-task-step-card-head,
  .student-task-communication-head{
    min-height:62px;
  }
  .student-task-step-content{
    padding:16px 0;
  }
  .student-task-step-content .catalog-media-placeholder{
    min-height:160px;
  }

  .student-task-message-interaction,
  .student-task-own-message-stack{
    max-width:90%;
  }
  .student-task-message-bubble{
    min-width:0;
  }
  .student-task-reaction-picker{
    opacity:1;
    visibility:visible;
    transform:none;
  }
  .student-task-composer-actions{
    align-items:flex-start;
  }

  .student-task-progress-dock{
    left:0!important;
    right:0!important;
    z-index:69;
  }
  .student-task-progress-dock-inner{
    padding:10px 14px calc(11px + env(safe-area-inset-bottom));
  }
  .student-task-progress-meta{
    gap:10px;
    margin-bottom:7px;
  }
  .student-task-progress-summary{
    gap:7px;
    font-size:10px;
  }
  .student-task-progress-summary strong{
    font-size:16px;
  }
  .task-content-progress-step-group{
    gap:7px!important;
  }
  .task-content-step-label{
    font-size:10px!important;
  }
  .task-content-step-switch-btn{
    width:30px!important;
    height:30px!important;
    min-height:30px!important;
  }
}
@media(max-width:520px){
  .student-task-action-topbar .student-task-core-action{
    font-size:10.5px!important;
  }
  .student-task-progress-meta{
    align-items:flex-start;
  }
  .student-task-progress-summary{
    flex-direction:column;
    align-items:flex-end;
    gap:1px;
    text-align:right;
  }
  .student-task-composer-actions{
    flex-direction:column;
    align-items:stretch;
  }
  .student-task-composer-actions .btn{
    width:100%;
    justify-content:center;
  }
}
@media(prefers-reduced-motion:reduce){
  .student-task-progress-fill.is-animated::after{
    animation:none!important;
  }
  .student-task-progress-fill{
    transition:none!important;
  }
}


/* v230 — student task detail polish */

/* Desktop sidebar hover must sit ABOVE the sticky task header. */
@media(min-width:761px){
  .dashboard-adaptive-sidebar{
    z-index:82!important;
  }
  .student-task-action-topbar{
    z-index:72!important;
  }
}

/* Topbar buttons: one geometry, one optical baseline. */
.student-task-topbar-actions .student-task-topbar-btn{
  min-height:42px!important;
  height:42px!important;
  box-sizing:border-box!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:7px!important;
  padding-top:0!important;
  padding-bottom:0!important;
  line-height:1.2!important;
}
.student-task-topbar-actions .student-task-more-toggle{
  width:44px!important;
  min-width:44px!important;
  padding-left:0!important;
  padding-right:0!important;
}

/* Lightweight custom icons for state actions. */
.student-task-step-action-icon,
.student-task-alert-icon{
  position:relative!important;
  width:16px!important;
  height:16px!important;
  flex:0 0 16px!important;
  display:inline-grid!important;
  place-items:center!important;
  margin:0!important;
  top:0!important;
  transform:none!important;
  line-height:16px!important;
}
.student-task-action-check::before{
  content:"";
  width:6px;
  height:10px;
  border-right:1.6px solid currentColor;
  border-bottom:1.6px solid currentColor;
  transform:rotate(42deg) translate(-1px,-1px);
}
.student-task-action-reopen::before{
  content:"";
  width:10px;
  height:10px;
  border:1.5px solid currentColor;
  border-right-color:transparent;
  border-radius:50%;
  transform:rotate(-28deg);
}
.student-task-action-reopen::after{
  content:"";
  position:absolute;
  left:1px;
  top:2px;
  width:0;
  height:0;
  border-top:3px solid transparent;
  border-bottom:3px solid transparent;
  border-right:4px solid currentColor;
}
.student-task-action-warning,
.student-task-alert-icon{
  border:1.2px solid currentColor;
  border-radius:50%;
  font-size:10px!important;
  font-weight:800!important;
}
.student-task-action-star{
  font-size:14px!important;
  line-height:16px!important;
}
.student-task-topbar-actions .btn-icon{
  margin-right:0!important;
}

/* No step subtitle in the student view. */
.student-task-step-card-head{
  min-height:62px!important;
}
.student-task-step-card-head h1{
  font-size:18px!important;
  font-weight:760!important;
}

/* Main instructional content needs a larger reading size. */

.student-task-step-content .catalog-code,
.student-task-step-content pre,
.student-task-step-content code{
  font-size:13px!important;
  line-height:1.6!important;
}

/* Optional teacher-authored note under the step content. */
.student-task-teacher-note{
  margin-top:2px!important;
  padding-top:17px!important;
}
.student-task-teacher-note-label{
  color:#596275!important;
  font-size:11px!important;
  font-weight:760!important;
}
.student-task-teacher-note-text{
  margin-top:7px!important;
  font-size:12.5px!important;
  line-height:1.65!important;
}

/* Consultation terminology and readability. */
.student-task-communication-head h2{
  font-size:17px!important;
}
.student-task-communication-head p{
  font-size:11px!important;
}
.student-task-message-author{
  font-size:10.5px!important;
}
.student-task-message-bubble p{
  font-size:13px!important;
}

/* Student problem message: true negative of teacher-side label, no double circle. */
.student-task-problem-label{
  gap:7px!important;
  color:#fff!important;
  font-size:10.5px!important;
}
.student-task-problem-label-icon{
  width:18px!important;
  height:18px!important;
  flex:0 0 18px!important;
  display:grid!important;
  place-items:center!important;
  border-radius:50%!important;
  background:#fff!important;
  color:#c94959!important;
  font-size:11px!important;
  line-height:18px!important;
  font-weight:900!important;
}
.student-task-message-bubble.problem-resolved .student-task-problem-label-icon{
  color:#2f8f68!important;
  font-size:11px!important;
}

/* Resolve button identical in language to teacher view. */
.student-task-resolve-problem.resolve-problem-btn{
  margin-top:7px!important;
  margin-left:auto!important;
  display:inline-flex!important;
  align-items:center!important;
  gap:6px!important;
}

/* Composer problem check is explicitly red. */
.student-task-problem-toggle{
  color:#b42318!important;
}
.student-task-problem-check{
  border-color:#d65f6b!important;
}
.student-task-problem-toggle:hover .student-task-problem-check{
  border-color:#b42318!important;
}
.student-task-problem-toggle input:focus-visible + .student-task-problem-check{
  outline:2px solid rgba(180,35,24,.18);
  outline-offset:2px;
}

/* Send button icon: custom tiny envelope, centered with breathing room. */
#studentTaskSendMessage{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:7px!important;
}
.student-task-send-icon{
  position:relative!important;
  width:15px!important;
  height:11px!important;
  flex:0 0 15px!important;
  display:block!important;
  margin:0!important;
  top:0!important;
  border:1.35px solid currentColor;
  border-radius:2px;
}
.student-task-send-icon::before,
.student-task-send-icon::after{
  content:"";
  position:absolute;
  top:1px;
  width:8px;
  height:1.2px;
  background:currentColor;
}
.student-task-send-icon::before{
  left:0;
  transform:rotate(32deg);
  transform-origin:left center;
}
.student-task-send-icon::after{
  right:0;
  transform:rotate(-32deg);
  transform-origin:right center;
}

/* Delete own latest student message only; same unobtrusive language as teacher. */
.student-task-own-message-stack{
  position:relative;
}
.student-task-own-delete{
  margin:5px 5px 0 auto;
  display:inline-flex;
  align-items:center;
  gap:4px;
  padding:4px 6px;
  border:0;
  border-radius:5px;
  background:transparent;
  color:#8a93a6;
  font:inherit;
  font-size:9.5px;
  cursor:pointer;
  opacity:0;
  visibility:hidden;
  transition:opacity .12s ease,background-color .12s ease,color .12s ease;
}
.student-task-message-row.student-side:hover .student-task-own-delete,
.student-task-message-row.student-side:focus-within .student-task-own-delete{
  opacity:1;
  visibility:visible;
}
.student-task-own-delete:hover,
.student-task-own-delete:focus-visible{
  background:#f5f6f8;
  color:#b42318;
  outline:none;
}
.student-task-own-delete .dashicons{
  width:13px;
  height:13px;
  font-size:13px;
}

/* Fixed progress dock: slightly taller, more air below bar. */
.student-task-progress-dock-inner{
  padding-top:15px!important;
  padding-bottom:20px!important;
}
.student-task-progress-meta{
  margin-bottom:9px!important;
}
.student-task-progress-track{
  margin-bottom:0!important;
}

/* No continuous barberpole animation in this screen. Width can still update smoothly. */
.student-task-progress-fill::after{
  display:none!important;
  animation:none!important;
}

/* Keep dock separator aligned and safely below the navigation overlay. */
.student-task-progress-dock{
  min-height:83px;
}

/* Tablet */
@media(max-width:1050px){
  .student-task-topbar-actions .student-task-topbar-btn{
    min-height:40px!important;
    height:40px!important;
  }
  .student-task-step-content p,
  .student-task-step-content li{
    font-size:13.5px!important;
  }
}

/* Mobile */
@media(max-width:760px){
  .dashboard-adaptive-sidebar{
    z-index:100!important;
  }
  .student-task-action-topbar{
    z-index:72!important;
  }

  .student-task-step-card-head{
    min-height:58px!important;
  }
  .student-task-step-card-head h1{
    font-size:17px!important;
  }
  .student-task-step-content p,
  .student-task-step-content li{
    font-size:14px!important;
  }

  .student-task-own-delete{
    opacity:1;
    visibility:visible;
  }

  .student-task-progress-dock-inner{
    padding-top:12px!important;
    padding-bottom:calc(15px + env(safe-area-inset-bottom))!important;
  }
}

/* Very narrow phones: keep topbar actions tidy and equal. */
@media(max-width:520px){
  .student-task-topbar-actions{
    gap:6px!important;
  }
  .student-task-topbar-actions .student-task-topbar-btn{
    min-height:40px!important;
    height:40px!important;
  }
  .student-task-topbar-actions .student-task-more-toggle{
    width:40px!important;
    min-width:40px!important;
  }
}


/* v231 — student task action / consultation polish */

/* Overflow semantics:
   collapsed = [...] + current step action,
   expanded = Exit / Report / X / current step action.
   The step action is ALWAYS the final control. */


.student-task-topbar-actions .student-task-more-toggle{
  order:3!important;
}
.student-task-topbar-actions .student-task-core-action{
  order:99!important;
}

/* Keep Exit + Report hidden until overflow opens. */
.student-task-action-topbar:not(.student-task-actions-open) .student-task-extra-action{
  display:none!important;
}

/* Requested WP Dashicon for "Zgłoś problem", deliberately compact. */
.student-task-report-dashicon{
  display:inline-grid!important;
  place-items:center!important;
  width:14px!important;
  height:14px!important;
  flex:0 0 14px!important;
  margin:0!important;
  font-size:14px!important;
  line-height:14px!important;
  top:0!important;
}

/* Correct update/reopen icon: same dashicons-update language as "Aktywuj grupę". */
.student-task-action-update{
  display:inline-grid!important;
  place-items:center!important;
  width:15px!important;
  height:15px!important;
  flex:0 0 15px!important;
  margin:0!important;
  font-size:15px!important;
  line-height:15px!important;
  position:relative!important;
  top:0!important;
}

/* Waiting for teacher review is a status-shaped disabled button.
   Once reached, the final step cannot be reopened and Report problem disappears. */
.student-task-waiting-review-action{
  border-color:#b9decf!important;
  background:#edf8f3!important;
  color:#237a57!important;
  cursor:default!important;
  opacity:1!important;
  box-shadow:none!important;
}
.student-task-waiting-review-action:disabled{
  opacity:1!important;
}
.student-task-waiting-icon{
  display:inline-grid!important;
  place-items:center!important;
  width:15px!important;
  height:15px!important;
  flex:0 0 15px!important;
  font-size:15px!important;
  line-height:15px!important;
  margin:0!important;
}

/* Problem status marker inside the bubble: smaller, cleaner negative marker. */
.student-task-problem-label-icon{
  width:15px!important;
  height:15px!important;
  flex:0 0 15px!important;
  font-size:9px!important;
  line-height:15px!important;
  font-weight:900!important;
}
.student-task-message-bubble.problem-resolved .student-task-problem-label-icon{
  font-size:9px!important;
}

/* Resolution button: more readable in BOTH teacher and student panels. */
.resolve-problem-btn{
  min-height:38px!important;
  padding:0 12px!important;
  gap:7px!important;
  font-size:11.5px!important;
  font-weight:700!important;
}
.resolve-problem-btn .resolve-problem-check{
  width:13px!important;
  height:13px!important;
  flex:0 0 13px!important;
}
.resolve-problem-btn .resolve-problem-check::before{
  left:3.2px!important;
  top:1.3px!important;
  width:4.5px!important;
  height:7.5px!important;
}

/* Student send button = exact teacher-side envelope language and optical baseline. */
#studentTaskSendMessage{
  gap:6px!important;
}
#studentTaskSendMessage .dashicons-email-alt{
  display:inline-grid!important;
  place-items:center!important;
  width:16px!important;
  height:16px!important;
  flex:0 0 16px!important;
  margin:0!important;
  font-size:15px!important;
  line-height:16px!important;
  position:relative!important;
  top:1px!important;
}

/* Reactions: same positioning model as teacher view.
   Palette floats above/right of the teacher bubble; selected reaction sits INSIDE footer. */
.student-task-message-interaction{
  position:relative!important;
  width:fit-content!important;
  max-width:100%!important;
}
.student-task-reaction-picker{
  position:absolute!important;
  z-index:12!important;
  right:8px!important;
  top:-20px!important;
  display:flex!important;
  align-items:center!important;
  gap:2px!important;
  margin:0!important;
  padding:4px 5px!important;
  border:1px solid #dde2ea!important;
  border-radius:999px!important;
  background:#fff!important;
  box-shadow:0 8px 24px rgba(15,23,42,.12)!important;
  opacity:0;
  visibility:hidden;
  pointer-events:none;
  transform:translateY(5px) scale(.97)!important;
  transform-origin:right bottom!important;
  transition:opacity .16s ease,transform .18s cubic-bezier(.2,.7,.2,1),visibility 0s linear .18s!important;
}
.student-task-message-interaction:hover .student-task-reaction-picker,
.student-task-message-interaction:focus-within .student-task-reaction-picker{
  opacity:1!important;
  visibility:visible!important;
  pointer-events:auto!important;
  transform:translateY(0) scale(1)!important;
  transition-delay:0s!important;
}
.student-task-reaction-option{
  width:28px!important;
  height:28px!important;
  display:grid!important;
  place-items:center!important;
  padding:0!important;
  border:0!important;
  border-radius:50%!important;
  background:transparent!important;
  font-size:16px!important;
  line-height:1!important;
}
.student-task-reaction-option:hover,
.student-task-reaction-option.selected{
  background:#f0f2f6!important;
  transform:scale(1.12)!important;
}

.student-task-message-footer{
  display:flex!important;
  align-items:center!important;
  justify-content:flex-end!important;
  gap:8px!important;
  min-height:20px!important;
}
.student-task-message-footer:has(.student-task-reaction-chip:not([hidden])){
  justify-content:space-between!important;
}
.student-task-reaction-chip{
  position:static!important;
  left:auto!important;
  right:auto!important;
  top:auto!important;
  bottom:auto!important;
  min-height:20px!important;
  height:20px!important;
  padding:0 5px!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  border:1px solid #dfe3ea!important;
  border-radius:999px!important;
  background:#fff!important;
  color:#4b5568!important;
  box-shadow:none!important;
  font-size:12px!important;
  line-height:1!important;
}

/* Dodatkowe informacje — larger than before, because this is student-facing content. */
.student-task-teacher-note-label{
  font-size:12px!important;
}
.student-task-teacher-note-text{
  font-size:14px!important;
  line-height:1.7!important;
}

/* Open assignment = animated progress, including 100% waiting-for-review.
   Only future closed-task view will disable it. */
.student-task-progress-fill.is-animated::after{
  display:block!important;
  content:""!important;
  position:absolute!important;
  inset:0!important;
  border-radius:inherit!important;
  pointer-events:none!important;
  background-image:
    linear-gradient(
      135deg,
      transparent 0,
      transparent 25%,
      rgba(0,0,0,.11) 25%,
      rgba(0,0,0,.11) 50%,
      transparent 50%,
      transparent 75%,
      rgba(0,0,0,.11) 75%,
      rgba(0,0,0,.11) 100%
    )!important;
  background-size:28px 28px!important;
  animation:eureka-student-progress-barberpole .85s linear infinite!important;
}

/* Touch screens need reactions discoverable without hover. */
@media(max-width:760px){
  .student-task-reaction-picker{
    opacity:1!important;
    visibility:visible!important;
    pointer-events:auto!important;
    transform:none!important;
  }
}

/* Respect accessibility preference even though the open state normally animates. */
@media(prefers-reduced-motion:reduce){
  .student-task-progress-fill.is-animated::after{
    animation:none!important;
  }
}


/* v232 — finish flow + clean reactions + overflow ordering */

/* [...] is ALWAYS the final topbar control. */
.student-task-topbar-actions .student-task-back-action{
  order:1!important;
}
.student-task-topbar-actions .student-task-problem-action{
  order:2!important;
}
.student-task-topbar-actions .student-task-core-action{
  order:3!important;
}
.student-task-topbar-actions .student-task-more-toggle{
  order:99!important;
}

/* Closed-for-review conversation becomes read-only by removing composer. */


/* Fix empty reaction artifact: hidden chip must never be forced visible by
   the generic inline-flex reaction style. */
.student-task-reaction-chip[hidden]{
  display:none!important;
}

/* Finish task modal */
.student-finish-task-modal{
  width:min(560px,calc(100vw - 32px));
  text-align:center;
}
.student-finish-task-modal .student-finish-task-modal-icon{
  margin-left:auto;
  margin-right:auto;
  background:#eef3fb;
  color:#5a6f98;
}
.student-finish-task-modal .student-finish-task-modal-icon .dashicons{
  width:22px;
  height:22px;
  font-size:22px;
  line-height:22px;
}
.student-finish-task-modal h2{
  margin-bottom:9px;
}
.student-finish-task-modal p{
  margin:0 auto;
  max-width:460px;
  color:#596275;
  font-size:12px;
  line-height:1.6;
}
.student-finish-task-modal .student-finish-task-modal-note{
  margin-top:9px;
  color:#4b5568;
  font-weight:650;
}
.student-finish-task-modal .confirm-modal-actions{
  margin-top:20px;
  justify-content:center!important;
}
.student-finish-task-modal .confirm-modal-actions .btn{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:6px!important;
  min-height:40px;
}
.student-finish-task-modal .light-action-icon{
  position:relative!important;
  display:inline-block!important;
  width:14px!important;
  height:14px!important;
  flex:0 0 14px!important;
}
.student-finish-task-modal .light-action-icon.cross::before,
.student-finish-task-modal .light-action-icon.cross::after{
  content:"";
  position:absolute;
  left:6.2px;
  top:2.2px;
  width:1.4px;
  height:9.6px;
  border-radius:2px;
  background:currentColor;
}
.student-finish-task-modal .light-action-icon.cross::before{transform:rotate(45deg)}
.student-finish-task-modal .light-action-icon.cross::after{transform:rotate(-45deg)}
.student-finish-task-modal .dashicons-lock{
  display:inline-grid!important;
  place-items:center!important;
  width:15px!important;
  height:15px!important;
  flex:0 0 15px!important;
  margin:0!important;
  font-size:15px!important;
  line-height:15px!important;
  top:0!important;
}

/* Waiting for assessment: this remains a review-only state.
   Progress animation intentionally stays active until teacher closes the task. */
.student-task-waiting-review-action{
  pointer-events:none!important;
}

@media(max-width:760px){
  .student-finish-task-modal{
    width:min(520px,calc(100vw - 24px));
    padding:22px 18px!important;
  }
  .student-finish-task-modal .confirm-modal-actions{
    flex-wrap:wrap;
  }
}


/* v233 — finish modal visibility + non-animated waiting-for-review progress */

/* Portal modals are opened with `.visible`; keep finish-task modal explicit. */
#studentFinishTaskModal.visible{
  display:flex!important;
}

/* Waiting for teacher assessment is no longer an "active work" animation state. */
.student-task-waiting-review-action ~ *{
  /* no visual side effects; state marker only */
}
#studentTaskProgressDock .student-task-progress-fill:not(.is-animated)::after{
  display:none!important;
  animation:none!important;
}
.student-open-assignment-card[data-state="waiting"] .student-open-task-progress-fill::after{
  display:none!important;
  animation:none!important;
}

/* This card is still open in workflow terms, but visually communicates waiting,
   not ongoing student work. */
.student-open-assignment-card[data-state="waiting"] .student-open-task-progress-fill{
  background-image:none!important;
}


/* v234 — consultation availability follows the viewed step state */

/* A completed step is read-only: history stays visible, but composing a new
   message / reporting a problem is unavailable until that step is reopened. */
.student-task-composer[hidden]{
  display:none!important;
}

/* `Zgłoś problem` must remain absent from the overflow menu whenever JS marks
   it unavailable — including completed steps and waiting-for-review state. */
#studentTaskReportProblem[hidden]{
  display:none!important;
}


/* v235 — mobile task UX refinement */

/* =========================================================
   GLOBAL MOBILE MENU: reliable hamburger -> X on every view
   ========================================================= */
@media(max-width:760px){
  .dashboard-mobile-menu-toggle{
    position:relative;
  }

  /* Do not rely only on transforming the three hamburger bars:
     draw a dedicated close icon so every teacher/student topbar behaves alike. */
  .mobile-menu-is-open .dashboard-mobile-menu-toggle{
    position:fixed!important;
    top:13px!important;
    right:16px!important;
    z-index:120!important;
    display:grid!important;
    place-items:center!important;
    opacity:1!important;
    visibility:visible!important;
    pointer-events:auto!important;
    color:#fff!important;
    background:transparent!important;
  }
  .mobile-menu-is-open .dashboard-mobile-menu-toggle .dashboard-mobile-menu-icon{
    opacity:0!important;
    visibility:hidden!important;
  }
  .mobile-menu-is-open .dashboard-mobile-menu-toggle::before,
  .mobile-menu-is-open .dashboard-mobile-menu-toggle::after{
    content:"";
    position:absolute;
    left:9px;
    top:18px;
    width:20px;
    height:1.8px;
    border-radius:2px;
    background:currentColor;
    transform-origin:center;
  }
  .mobile-menu-is-open .dashboard-mobile-menu-toggle::before{
    transform:rotate(45deg);
  }
  .mobile-menu-is-open .dashboard-mobile-menu-toggle::after{
    transform:rotate(-45deg);
  }
}

/* =========================================================
   Breadcrumbs: allow natural wrapping on phones
   ========================================================= */
@media(max-width:760px){
  .breadcrumbs{
    min-height:38px!important;
    height:auto!important;
    display:flex!important;
    flex-wrap:wrap!important;
    align-items:center!important;
    gap:4px 7px!important;
    padding:8px 16px!important;
    overflow:visible!important;
    white-space:normal!important;
  }
  .breadcrumbs > *{
    flex:0 0 auto;
    max-width:100%;
  }
  .breadcrumbs-current{
    min-width:0;
    overflow-wrap:anywhere;
  }
}

/* =========================================================
   Student task overflow
   ========================================================= */

/* Desktop/tablet keeps the established inline topbar mechanics. */
.student-task-mobile-overflow-panel{
  display:contents;
}

/* Because the extra buttons are now wrapped, expose them when desktop overflow opens. */
.student-task-action-topbar.student-task-actions-open
.student-task-mobile-overflow-panel .student-task-extra-action:not([hidden]){
  display:inline-flex!important;
  animation:v211TopbarFade .11s ease both;
}

@media(max-width:760px){
  /* The task topbar needs to allow the dropdown to extend below it. */
  .student-task-action-topbar{
    overflow:visible!important;
  }
  .student-task-topbar-wash{
    display:none!important;
  }

  /* Primary/context action + [...] stay compact in the header row. */
  .student-task-action-topbar > .topbar-actions{
    position:relative!important;
    display:flex!important;
    flex-wrap:nowrap!important;
    align-items:center!important;
    justify-content:flex-end!important;
    gap:7px!important;
    width:100%!important;
    overflow:visible!important;
  }
  .student-task-action-topbar .student-task-core-action{
    flex:1 1 auto!important;
    width:auto!important;
    min-width:0!important;
    max-width:none!important;
  }
  .student-task-action-topbar .student-task-more-toggle{
    flex:0 0 42px!important;
    width:42px!important;
    min-width:42px!important;
    height:42px!important;
  }

  /* Separate dropdown panel: large touch-friendly rows. */
  .student-task-mobile-overflow-panel{
    position:absolute!important;
    right:0!important;
    top:calc(100% + 8px)!important;
    z-index:110!important;
    width:min(330px,calc(100vw - 28px))!important;
    box-sizing:border-box!important;
    display:none!important;
    flex-direction:column!important;
    gap:6px!important;
    padding:8px!important;
    border:1px solid #dde2ea!important;
    border-radius:10px!important;
    background:#fff!important;
    box-shadow:0 16px 38px rgba(15,23,42,.18)!important;
  }
  .student-task-action-topbar.student-task-actions-open
  .student-task-mobile-overflow-panel{
    display:flex!important;
    animation:v211TopbarFade .11s ease both;
  }

  .student-task-mobile-overflow-panel .student-task-extra-action:not([hidden]){
    width:100%!important;
    min-height:48px!important;
    height:48px!important;
    display:flex!important;
    align-items:center!important;
    justify-content:flex-start!important;
    gap:10px!important;
    padding:0 13px!important;
    margin:0!important;
    border-radius:7px!important;
    font-size:13px!important;
    text-align:left!important;
  }
  .student-task-mobile-overflow-panel .student-task-extra-action[hidden]{
    display:none!important;
  }
  .student-task-mobile-overflow-panel .btn-icon{
    flex:0 0 17px!important;
    width:17px!important;
    height:17px!important;
    margin:0!important;
  }

  /* Keep X / dots as the last control in the task topbar. */
  .student-task-topbar-actions .student-task-core-action{
    order:1!important;
  }
  .student-task-topbar-actions .student-task-more-toggle{
    order:99!important;
  }
}

/* =========================================================
   Mobile fixed progress dock: bigger, finger-friendly controls
   ========================================================= */
@media(max-width:760px){
  .student-task-v229:not(.eureka-realization-v428){
    padding-bottom:154px;
  }

  .student-task-progress-dock{
    min-height:100px!important;
  }
  .student-task-progress-dock-inner{
    padding:
      13px 14px
      calc(16px + env(safe-area-inset-bottom))
      !important;
  }
  .student-task-progress-meta{
    align-items:center!important;
    gap:12px!important;
    margin-bottom:10px!important;
  }

  .student-task-progress-dock .task-content-progress-step-group{
    display:flex!important;
    align-items:center!important;
    flex-wrap:nowrap!important;
    gap:10px!important;
  }
  .student-task-progress-dock .task-content-step-label{
    font-size:13px!important;
    font-weight:780!important;
    line-height:1.2!important;
    white-space:nowrap!important;
  }
  .student-task-progress-dock .task-content-step-switch{
    display:flex!important;
    gap:7px!important;
  }

  /* 44px = sensible minimum touch target. */
  .student-task-progress-dock .task-content-step-switch-btn{
    width:44px!important;
    height:44px!important;
    min-width:44px!important;
    min-height:44px!important;
    display:grid!important;
    place-items:center!important;
    padding:0!important;
    border-radius:8px!important;
  }
  .student-task-progress-dock .task-content-step-switch-btn .dashicons{
    width:21px!important;
    height:21px!important;
    font-size:21px!important;
    line-height:21px!important;
  }

  .student-task-progress-summary{
    flex-direction:row!important;
    align-items:baseline!important;
    justify-content:flex-end!important;
    gap:8px!important;
    font-size:11.5px!important;
    line-height:1.25!important;
    text-align:right!important;
  }
  .student-task-progress-summary strong{
    font-size:18px!important;
    font-weight:760!important;
  }

  .student-task-progress-track{
    height:10px!important;
  }
}

@media(max-width:430px){
  /* Preserve touch controls first; compact only the secondary progress copy. */
  .student-task-progress-meta{
    gap:8px!important;
  }
  .student-task-progress-summary{
    gap:5px!important;
    font-size:10.5px!important;
  }
  .student-task-progress-summary strong{
    font-size:17px!important;
  }
}

@media(max-width:370px){
  .student-task-progress-summary > span{
    max-width:88px;
    line-height:1.15;
  }
}


/* v236 — global mobile topbar overflow + reliable fullscreen-menu close control */

.mobile-topbar-dropdown{
  display:contents;
}

@media(max-width:760px){
  /* Fullscreen menu: topbar stacking context must stay above the drawer. */
  .mobile-menu-is-open .teacher-global-topbar,
  .mobile-menu-is-open .student-global-topbar{
    position:fixed!important;
    inset:0 0 auto 0!important;
    width:100%!important;
    min-height:64px!important;
    height:64px!important;
    z-index:10020!important;
    background:transparent!important;
    border-color:transparent!important;
    box-shadow:none!important;
    pointer-events:none!important;
  }

  .mobile-menu-is-open .dashboard-adaptive-sidebar{
    z-index:10000!important;
  }

  .mobile-menu-is-open .dashboard-mobile-menu-toggle{
    position:fixed!important;
    top:12px!important;
    right:14px!important;
    z-index:10030!important;
    width:42px!important;
    height:42px!important;
    display:grid!important;
    place-items:center!important;
    opacity:1!important;
    visibility:visible!important;
    pointer-events:auto!important;
    color:#fff!important;
    background:rgba(255,255,255,.04)!important;
    border-radius:7px!important;
  }
  .mobile-menu-is-open .dashboard-mobile-menu-toggle:hover,
  .mobile-menu-is-open .dashboard-mobile-menu-toggle:focus-visible{
    background:rgba(255,255,255,.10)!important;
  }
  .mobile-menu-is-open .dashboard-mobile-menu-toggle .dashboard-mobile-menu-icon{
    opacity:0!important;
    visibility:hidden!important;
  }
  .mobile-menu-is-open .dashboard-mobile-menu-toggle::before,
  .mobile-menu-is-open .dashboard-mobile-menu-toggle::after{
    content:"";
    position:absolute;
    left:11px!important;
    top:20px!important;
    width:20px!important;
    height:1.8px!important;
    border-radius:2px;
    background:currentColor!important;
    transform-origin:center;
  }
  .mobile-menu-is-open .dashboard-mobile-menu-toggle::before{transform:rotate(45deg)!important}
  .mobile-menu-is-open .dashboard-mobile-menu-toggle::after{transform:rotate(-45deg)!important}

  /* Unified topbar action row on all teacher/student pages. */
  .topbar > .topbar-actions.mobile-topbar-managed{
    position:relative!important;
    width:100%!important;
    min-width:0!important;
    display:flex!important;
    flex-wrap:nowrap!important;
    align-items:center!important;
    justify-content:flex-end!important;
    gap:8px!important;
    overflow:visible!important;
  }

  .topbar:has(> .topbar-actions.mobile-topbar-managed){
    overflow:visible!important;
  }

  .topbar:has(> .topbar-actions.mobile-topbar-managed) .v211-topbar-action-wash,
  .topbar:has(> .topbar-actions.mobile-topbar-managed) .group-topbar-action-wash,
  .topbar:has(> .topbar-actions.mobile-topbar-managed) .student-task-topbar-wash{
    display:none!important;
  }

  .mobile-topbar-managed > .mobile-topbar-core:not([hidden]){
    min-width:0!important;
    max-width:none!important;
    display:inline-flex!important;
    align-items:center!important;
    justify-content:center!important;
    white-space:nowrap!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
  }

  /* Exactly two visible actions share the available width equally. */
  .mobile-topbar-managed[data-mobile-core-count="2"] > .mobile-topbar-core:not([hidden]){
    flex:1 1 0!important;
    width:0!important;
  }

  /* One action plus [...] fills all space except the fixed overflow button. */
  .mobile-topbar-managed[data-mobile-core-count="1"].mobile-has-more
  > .mobile-topbar-core:not([hidden]){
    flex:1 1 auto!important;
    width:auto!important;
  }

  .mobile-topbar-managed > .mobile-topbar-more:not([hidden]){
    order:99!important;
    flex:0 0 44px!important;
    width:44px!important;
    min-width:44px!important;
    max-width:44px!important;
    height:44px!important;
    min-height:44px!important;
    padding:0!important;
    display:grid!important;
    place-items:center!important;
  }

  .mobile-topbar-managed.mobile-topbar-open > .mobile-topbar-more{
    color:#a84d5c!important;
    border-color:#e8cdd2!important;
    background:#fff8f9!important;
  }
  .mobile-topbar-managed.mobile-topbar-open
  > .mobile-topbar-more .group-quick-actions-dots-vertical{
    display:none!important;
  }
  .mobile-topbar-managed.mobile-topbar-open
  > .mobile-topbar-more .quick-toggle-close-icon{
    display:inline-block!important;
  }

  /* Full viewport width minus 16 px side margins. */
  .mobile-topbar-managed > .mobile-topbar-dropdown{
    position:absolute!important;
    left:50%!important;
    top:calc(100% + 8px)!important;
    z-index:115!important;
    width:calc(100vw - 32px)!important;
    max-width:none!important;
    box-sizing:border-box!important;
    display:none!important;
    flex-direction:column!important;
    gap:6px!important;
    padding:8px!important;
    border:1px solid #dde2ea!important;
    border-radius:10px!important;
    background:#fff!important;
    box-shadow:0 16px 38px rgba(15,23,42,.18)!important;
    transform:translateX(-50%)!important;
  }
  .mobile-topbar-managed.mobile-topbar-open > .mobile-topbar-dropdown{
    display:flex!important;
    animation:v211TopbarFade .11s ease both;
  }

  .mobile-topbar-dropdown > .mobile-topbar-extra:not([hidden]){
    order:initial!important;
    width:100%!important;
    max-width:none!important;
    min-height:50px!important;
    height:50px!important;
    flex:0 0 50px!important;
    box-sizing:border-box!important;
    display:flex!important;
    align-items:center!important;
    justify-content:flex-start!important;
    gap:10px!important;
    margin:0!important;
    padding:0 14px!important;
    border-radius:7px!important;
    white-space:nowrap!important;
    text-align:left!important;
  }
  .mobile-topbar-dropdown > .mobile-topbar-extra[hidden]{
    display:none!important;
  }
  .mobile-topbar-dropdown > .mobile-topbar-extra .btn-icon,
  .mobile-topbar-dropdown > .mobile-topbar-extra .dashicons{
    flex:0 0 17px!important;
    width:17px!important;
    height:17px!important;
    margin:0!important;
    font-size:17px!important;
    line-height:17px!important;
    top:0!important;
  }

  /* Historical desktop open classes cannot pull dropdown actions into the header row. */
  .v211-action-topbar.v211-actions-open
  .mobile-topbar-dropdown > .mobile-topbar-extra:not([hidden]),
  .group-topbar-v208.group-actions-open
  .mobile-topbar-dropdown > .mobile-topbar-extra:not([hidden]),
  .student-task-action-topbar.student-task-actions-open
  .mobile-topbar-dropdown > .mobile-topbar-extra:not([hidden]){
    display:flex!important;
  }
}


/* v237 — fullscreen mobile menu must not blur the sidebar logo.
   The close-button topbar sits above the drawer; therefore any inherited
   backdrop-filter would blur the logo underneath it. */
@media(max-width:760px){
  .mobile-menu-is-open .teacher-global-topbar,
  .mobile-menu-is-open .student-global-topbar{
    backdrop-filter:none!important;
    -webkit-backdrop-filter:none!important;
  }
}


/* v238 — mobile comment actions are click-to-toggle, not permanently visible */

@media(max-width:760px){
  /* Student view: reaction palette hidden by default. */
  .student-task-reaction-picker{
    opacity:0!important;
    visibility:hidden!important;
    pointer-events:none!important;
    transform:translateY(5px) scale(.97)!important;
  }
  .student-task-message-interaction:hover .student-task-reaction-picker,
  .student-task-message-interaction:focus-within .student-task-reaction-picker{
    opacity:0!important;
    visibility:hidden!important;
    pointer-events:none!important;
    transform:translateY(5px) scale(.97)!important;
  }
  .student-task-message-interaction.mobile-comment-actions-open .student-task-reaction-picker{
    opacity:1!important;
    visibility:visible!important;
    pointer-events:auto!important;
    transform:translateY(0) scale(1)!important;
  }

  /* Teacher view: same click-only rule. */
  .message-reaction-picker{
    opacity:0!important;
    visibility:hidden!important;
    pointer-events:none!important;
    transform:translateY(5px) scale(.97)!important;
  }
  .message-interaction-wrap:hover .message-reaction-picker,
  .message-interaction-wrap:focus-within .message-reaction-picker{
    opacity:0!important;
    visibility:hidden!important;
    pointer-events:none!important;
    transform:translateY(5px) scale(.97)!important;
  }
  .message-interaction-wrap.mobile-comment-actions-open .message-reaction-picker{
    opacity:1!important;
    visibility:visible!important;
    pointer-events:auto!important;
    transform:translateY(0) scale(1)!important;
  }

  /* Own latest comment: delete action also follows the same tap-to-show pattern. */
  .student-task-own-delete{
    opacity:0!important;
    visibility:hidden!important;
    pointer-events:none!important;
  }
  .student-task-own-message-stack.mobile-comment-actions-open .student-task-own-delete{
    opacity:1!important;
    visibility:visible!important;
    pointer-events:auto!important;
  }

  .own-message-actions{
    opacity:0!important;
    visibility:hidden!important;
    pointer-events:none!important;
    transform:none!important;
  }
  .teacher-message-row.mine:hover .own-message-actions,
  .teacher-message-row.mine:focus-within .own-message-actions{
    opacity:0!important;
    visibility:hidden!important;
    pointer-events:none!important;
  }
  .teacher-message-row.mine.mobile-comment-actions-open .own-message-actions{
    opacity:1!important;
    visibility:visible!important;
    pointer-events:auto!important;
  }

  /* Tapping an existing reaction chip does not accidentally open the palette. */
  .student-task-reaction-chip,
  .message-reaction-chip{
    touch-action:manipulation;
  }
}


/* v239 — mobile-first composer ergonomics for student task */
@media(max-width:760px){
  .student-task-composer-actions{
    gap:16px!important;
    margin-top:12px!important;
  }

  .student-task-problem-toggle{
    min-height:34px!important;
    gap:10px!important;
    font-size:12.5px!important;
    line-height:1.35!important;
  }

  .student-task-problem-check{
    width:22px!important;
    height:22px!important;
    flex:0 0 22px!important;
    border-width:1.5px!important;
    border-radius:5px!important;
  }

  .student-task-problem-toggle input:checked + .student-task-problem-check::after{
    left:7px!important;
    top:3px!important;
    width:5px!important;
    height:10px!important;
    border-right-width:1.8px!important;
    border-bottom-width:1.8px!important;
  }

  #studentTaskSendMessage{
    min-height:48px!important;
    height:48px!important;
    padding:0 18px!important;
    gap:8px!important;
    font-size:13px!important;
  }

  #studentTaskSendMessage .dashicons-email-alt{
    width:17px!important;
    height:17px!important;
    flex:0 0 17px!important;
    font-size:16px!important;
    line-height:17px!important;
  }
}

@media(max-width:520px){
  .student-task-composer-actions{
    gap:14px!important;
  }

  .student-task-problem-toggle{
    width:100%;
  }

  #studentTaskSendMessage{
    width:100%!important;
    min-height:50px!important;
    height:50px!important;
  }
}


/* v240 — mobile-only larger task actions + richer student avatar picker */

@media(max-width:760px){
  /* Student task topbar: larger touch targets ONLY on mobile. */
  .student-task-action-topbar .student-task-topbar-actions
  > .mobile-topbar-core:not([hidden]),
  .student-task-action-topbar #studentTaskStepAction{
    min-height:52px!important;
    height:52px!important;
    padding-left:16px!important;
    padding-right:16px!important;
    font-size:12.5px!important;
    border-radius:8px!important;
  }

  .student-task-action-topbar .student-task-topbar-actions
  > .mobile-topbar-more:not([hidden]),
  .student-task-action-topbar #studentTaskMoreToggle{
    flex-basis:52px!important;
    width:52px!important;
    min-width:52px!important;
    max-width:52px!important;
    height:52px!important;
    min-height:52px!important;
    border-radius:8px!important;
  }

  .student-task-action-topbar .student-task-topbar-actions{
    gap:9px!important;
  }

  /* Student avatar editor — mobile-first touch geometry. */
  #studentOwnAvatar.student-own-avatar-card{
    padding:18px 16px 20px!important;
  }

  #studentOwnAvatar .student-own-avatar-comparison{
    display:grid!important;
    grid-template-columns:1fr 1fr!important;
    gap:10px!important;
    margin-bottom:20px!important;
  }

  #studentOwnAvatar .student-avatar-state{
    min-width:0!important;
    padding:12px!important;
    gap:9px!important;
    border:1px solid var(--line)!important;
    border-radius:9px!important;
    background:#fafbfc!important;
  }

  #studentOwnAvatar .student-avatar-state .student-avatar-xl{
    width:54px!important;
    height:54px!important;
    flex:0 0 54px!important;
  }

  #studentOwnAvatar .student-avatar-state strong{
    font-size:12px!important;
  }

  #studentOwnAvatar .student-avatar-state .sub{
    margin-top:3px!important;
    font-size:10px!important;
    line-height:1.35!important;
    overflow-wrap:anywhere;
  }

  #studentOwnAvatar .avatar-picker-block{
    margin-top:18px!important;
  }

  #studentOwnAvatar .appearance-picker-title{
    margin-bottom:10px!important;
  }

  #studentOwnAvatar .appearance-picker-title > span{
    font-size:13px!important;
    font-weight:760!important;
  }

  #studentOwnAvatar .appearance-picker-title small{
    font-size:11px!important;
  }

  /* Four roomy icon choices per row. */
  #studentOwnAvatar .student-own-avatar-icon-grid{
    grid-template-columns:repeat(4,minmax(0,1fr))!important;
    gap:9px!important;
  }

  #studentOwnAvatar .student-own-avatar-icon-grid .icon-choice{
    width:100%!important;
    min-width:0!important;
    height:58px!important;
    min-height:58px!important;
    border-radius:9px!important;
  }

  #studentOwnAvatar .student-own-avatar-icon-grid .icon-choice span{
    font-size:25px!important;
    line-height:1!important;
  }

  /* Five large color targets per row. */
  #studentOwnAvatar .student-own-avatar-color-grid{
    grid-template-columns:repeat(5,minmax(0,1fr))!important;
    gap:10px!important;
  }

  #studentOwnAvatar .student-own-avatar-color-grid .color-choice{
    width:100%!important;
    min-width:0!important;
    height:48px!important;
    min-height:48px!important;
    border-radius:8px!important;
    padding:6px!important;
  }

  #studentOwnAvatar .student-own-avatar-color-grid .color-choice span{
    width:100%!important;
    height:100%!important;
    min-width:0!important;
    min-height:0!important;
    border-radius:5px!important;
  }
}

@media(max-width:390px){
  #studentOwnAvatar .student-own-avatar-comparison{
    grid-template-columns:1fr!important;
  }

  #studentOwnAvatar .student-own-avatar-icon-grid{
    grid-template-columns:repeat(4,minmax(0,1fr))!important;
  }

  #studentOwnAvatar .student-own-avatar-color-grid{
    grid-template-columns:repeat(5,minmax(0,1fr))!important;
  }
}


/* v241 — media attachments in consultation messages */

.message-media-toolbar{
  display:flex;
  align-items:center;
  gap:10px;
  margin-top:8px;
  min-width:0;
}
.message-photo-trigger{
  flex:0 0 auto;
  display:inline-flex!important;
  align-items:center!important;
  gap:6px!important;
}
.message-photo-trigger .dashicons{
  width:16px!important;
  height:16px!important;
  font-size:16px!important;
  line-height:16px!important;
  margin:0!important;
}
.message-media-helper{
  min-width:0;
  color:#8a93a6;
  font-size:10px;
  line-height:1.4;
}

.message-attachment-preview{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-top:9px;
}
.message-attachment-preview[hidden]{
  display:none!important;
}
.message-attachment-preview-item{
  position:relative;
  width:74px;
  height:74px;
  flex:0 0 74px;
  overflow:hidden;
  border:1px solid #dfe3ea;
  border-radius:8px;
  background:#f6f7fa;
}
.message-attachment-preview-item img{
  width:100%;
  height:100%;
  display:block;
  object-fit:cover;
}
.message-attachment-remove{
  position:absolute;
  top:4px;
  right:4px;
  width:24px;
  height:24px;
  display:grid;
  place-items:center;
  padding:0;
  border:0;
  border-radius:50%;
  background:rgba(20,25,40,.72);
  color:#fff;
  cursor:pointer;
}
.message-attachment-remove .dashicons{
  width:15px;
  height:15px;
  font-size:15px;
  line-height:15px;
}

.message-image-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:6px;
  margin-top:8px;
}
.message-image-grid.single{
  grid-template-columns:minmax(0,1fr);
}
.message-image-link{
  display:block;
  overflow:hidden;
  border-radius:8px;
  background:#eceff3;
}
.message-image-link img{
  width:100%;
  max-height:280px;
  display:block;
  object-fit:cover;
}

.message-youtube-embed{
  position:relative;
  width:min(100%,560px);
  aspect-ratio:16/9;
  margin-top:8px;
  overflow:hidden;
  border-radius:9px;
  background:#111;
}
.message-youtube-embed iframe{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  border:0;
}
.message-media-caption{
  margin-top:8px!important;
}

.student-task-message-bubble:has(.message-youtube-embed),
.teacher-message-bubble:has(.message-youtube-embed){
  max-width:min(100%,620px)!important;
}

@media(max-width:760px){
  .message-media-toolbar{
    gap:9px;
    margin-top:10px;
  }
  .message-photo-trigger{
    min-height:44px!important;
    padding:0 12px!important;
    border-radius:8px!important;
    font-size:12px!important;
  }
  .message-media-helper{
    font-size:10.5px;
  }
  .message-attachment-preview-item{
    width:82px;
    height:82px;
    flex-basis:82px;
  }
  .message-attachment-remove{
    width:28px;
    height:28px;
  }
  .message-youtube-embed{
    width:100%;
    border-radius:8px;
  }
  .student-task-message-interaction,
  .student-task-own-message-stack{
    max-width:94%!important;
  }
}

@media(max-width:520px){
  .message-media-toolbar{
    align-items:stretch;
    flex-direction:column;
  }
  .message-photo-trigger{
    width:100%!important;
    min-height:48px!important;
    justify-content:center!important;
  }
  .message-media-helper{
    text-align:center;
  }
}


/* v242 — dedicated YouTube field + mobile gallery/camera actions */

.message-media-block{
  margin-top:9px;
}
.message-media-actions{
  display:flex;
  align-items:center;
  gap:8px;
}
.message-camera-trigger{
  display:none!important;
}
.message-youtube-input{
  width:100%;
  min-height:40px;
  box-sizing:border-box;
  margin-top:8px;
  padding:0 11px;
  border:1px solid var(--line);
  border-radius:7px;
  background:#fff;
  color:var(--text);
  font:inherit;
  font-size:11.5px;
  outline:none;
}
.message-youtube-input:focus{
  border-color:#aeb8ca;
  box-shadow:0 0 0 2px rgba(84,116,186,.08);
}
.message-youtube-input.is-invalid{
  border-color:#c94959!important;
  box-shadow:0 0 0 2px rgba(201,73,89,.08)!important;
}
.message-youtube-error{
  margin-top:5px;
  color:#b42318;
  font-size:10px;
  line-height:1.4;
}
.message-youtube-error[hidden]{
  display:none!important;
}

/* Adaptive YouTube media:
   iframe when hosted over HTTP(S), thumbnail-link fallback for file:// prototype. */
.message-youtube-media{
  position:relative;
  width:min(100%,560px);
  aspect-ratio:16/9;
  margin-top:8px;
  overflow:hidden;
  border-radius:9px;
  background:#111;
}
.message-youtube-media iframe{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  border:0;
}
.message-youtube-fallback{
  position:absolute;
  inset:0;
  display:block;
  overflow:hidden;
  color:#fff!important;
  text-decoration:none!important;
  background:#111;
}
.message-youtube-fallback img{
  width:100%;
  height:100%;
  display:block;
  object-fit:cover;
  opacity:.88;
}
.message-youtube-fallback::after{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(180deg,transparent 42%,rgba(0,0,0,.58) 100%);
}
.message-youtube-play{
  position:absolute;
  left:50%;
  top:50%;
  z-index:2;
  width:52px;
  height:36px;
  border-radius:9px;
  background:#ff0033;
  transform:translate(-50%,-50%);
  box-shadow:0 4px 16px rgba(0,0,0,.28);
}
.message-youtube-play::after{
  content:"";
  position:absolute;
  left:21px;
  top:10px;
  border-top:8px solid transparent;
  border-bottom:8px solid transparent;
  border-left:13px solid #fff;
}
.message-youtube-fallback-label{
  position:absolute;
  left:12px;
  right:12px;
  bottom:10px;
  z-index:2;
  color:#fff;
  font-size:10.5px;
  font-weight:700;
}

@media(max-width:760px){
  /* Gallery + direct camera link share the row exactly 50/50. */
  .message-media-actions{
    width:100%;
    gap:10px;
  }
  .message-media-actions .message-photo-trigger,
  .message-media-actions .message-camera-trigger{
    display:inline-flex!important;
    flex:1 1 0!important;
    width:0!important;
    min-width:0!important;
    min-height:50px!important;
    height:50px!important;
    align-items:center!important;
    justify-content:center!important;
    gap:8px!important;
    padding:0 10px!important;
    border-radius:8px!important;
    font-size:12px!important;
    white-space:nowrap!important;
  }
  .message-media-actions .dashicons{
    width:18px!important;
    height:18px!important;
    flex:0 0 18px!important;
    margin:0!important;
    font-size:18px!important;
    line-height:18px!important;
  }

  .message-youtube-input{
    min-height:50px!important;
    height:50px!important;
    margin-top:10px!important;
    padding:0 13px!important;
    border-radius:8px!important;
    font-size:12.5px!important;
  }

  .message-attachment-preview{
    margin-top:10px!important;
  }

  /* Student composer: problem option, then a full-width Send CTA. */
  .student-task-composer-actions{
    flex-direction:column!important;
    align-items:stretch!important;
    gap:12px!important;
    margin-top:12px!important;
  }
  .student-task-problem-toggle{
    width:100%!important;
  }
  #studentTaskSendMessage{
    width:100%!important;
    min-height:52px!important;
    height:52px!important;
    justify-content:center!important;
  }

  /* Teacher composer gets the same mobile-first send target. */
  .teacher-conversation-compose-actions{
    margin-top:12px!important;
  }
  .teacher-conversation-compose-actions .teacher-send-message{
    width:100%!important;
    min-height:52px!important;
    height:52px!important;
    justify-content:center!important;
  }

  .message-youtube-media{
    width:100%!important;
    border-radius:8px!important;
  }
}

@media(max-width:370px){
  .message-media-actions{
    gap:7px;
  }
  .message-media-actions .message-photo-trigger,
  .message-media-actions .message-camera-trigger{
    font-size:11px!important;
    padding-left:7px!important;
    padding-right:7px!important;
  }
}


/* v243 — compact desktop media composer; mobile flow from v242 stays intact */

@media(min-width:761px){
  /* Desktop: attachment action + YouTube field are one compact row.
     Camera remains mobile-only. */
  .message-media-block{
    width:fit-content!important;
    max-width:100%!important;
    display:grid!important;
    grid-template-columns:max-content minmax(240px,300px)!important;
    column-gap:10px!important;
    row-gap:6px!important;
    align-items:center!important;
    margin-top:9px!important;
  }

  .message-media-actions{
    grid-column:1!important;
    grid-row:1!important;
    display:flex!important;
    align-items:center!important;
    gap:8px!important;
    margin:0!important;
  }

  .message-media-actions .message-photo-trigger{
    min-height:40px!important;
    height:40px!important;
    margin:0!important;
    white-space:nowrap!important;
  }

  .message-media-actions .message-camera-trigger{
    display:none!important;
  }

  .message-youtube-input{
    grid-column:2!important;
    grid-row:1!important;
    width:300px!important;
    max-width:300px!important;
    min-width:240px!important;
    min-height:40px!important;
    height:40px!important;
    margin:0!important;
  }

  .message-youtube-error{
    grid-column:2!important;
    grid-row:2!important;
    margin:0!important;
  }

  .message-attachment-preview{
    grid-column:1 / -1!important;
    width:100%!important;
    max-width:420px!important;
    margin-top:2px!important;
  }

  /* Sending is a second row directly under the attachment controls,
     aligned to the left instead of floating to the far right. */
  .student-task-composer-actions{
    justify-content:flex-start!important;
    align-items:center!important;
    gap:14px!important;
    margin-top:10px!important;
  }

  #studentTaskSendMessage{
    width:auto!important;
    min-width:92px!important;
    margin:0!important;
  }

  .teacher-conversation-compose-actions{
    display:flex!important;
    align-items:center!important;
    justify-content:flex-start!important;
    gap:10px!important;
    margin-top:10px!important;
  }

  .teacher-conversation-compose-actions .teacher-send-message{
    width:auto!important;
    min-width:92px!important;
    margin:0!important;
  }
}


/* v244 — student consultation action wording/order */

/* Desktop: primary send action first, secondary problem flag second.
   Mobile keeps the existing mobile-first sequence: problem flag above Send. */
@media(min-width:761px){
  .student-task-composer-actions{
    display:flex!important;
    align-items:center!important;
    justify-content:flex-start!important;
    gap:14px!important;
  }

  #studentTaskSendMessage{
    order:1!important;
  }

  .student-task-problem-toggle{
    order:2!important;
  }
}

@media(max-width:760px){
  .student-task-problem-toggle{
    order:1!important;
  }

  #studentTaskSendMessage{
    order:2!important;
  }
}


/* v245 — video as a first-class step content block */

.task-content-block-video,
.task-video-step-block{
  width:100%;
}
.task-video-embed{
  position:relative;
  width:min(100%,780px);
  aspect-ratio:16/9;
  overflow:hidden;
  border-radius:9px;
  background:#111;
  box-shadow:0 1px 2px rgba(15,23,42,.08);
}
.task-video-embed iframe{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  border:0;
}
.task-video-fallback{
  position:absolute;
  inset:0;
  display:block;
  overflow:hidden;
  color:#fff!important;
  text-decoration:none!important;
  background:#111;
}
.task-video-fallback img{
  width:100%;
  height:100%;
  display:block;
  object-fit:cover;
  opacity:.9;
}
.task-video-fallback::after{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(180deg,transparent 42%,rgba(0,0,0,.58) 100%);
}
.task-video-play{
  position:absolute;
  left:50%;
  top:50%;
  z-index:2;
  width:58px;
  height:40px;
  border-radius:10px;
  background:#ff0033;
  transform:translate(-50%,-50%);
  box-shadow:0 5px 18px rgba(0,0,0,.28);
}
.task-video-play::after{
  content:"";
  position:absolute;
  left:24px;
  top:11px;
  border-top:9px solid transparent;
  border-bottom:9px solid transparent;
  border-left:14px solid #fff;
}
.task-video-fallback-label{
  position:absolute;
  left:14px;
  right:14px;
  bottom:12px;
  z-index:2;
  color:#fff;
  font-size:11px;
  font-weight:750;
}

.task-editor-video-block{
  display:grid;
  gap:10px;
}
.task-editor-video-field{
  display:grid;
  gap:6px;
}
.task-editor-video-field > span{
  color:#596275;
  font-size:10.5px;
  font-weight:750;
}
.task-editor-video-url{
  width:min(100%,560px);
  min-height:42px;
  box-sizing:border-box;
  padding:0 11px;
  border:1px solid var(--line);
  border-radius:7px;
  background:#fff;
  color:var(--text);
  font:inherit;
  font-size:12px;
  outline:none;
}
.task-editor-video-url:focus{
  border-color:#aeb8ca;
  box-shadow:0 0 0 2px rgba(84,116,186,.08);
}
.task-editor-video-url.is-invalid{
  border-color:#c94959!important;
  box-shadow:0 0 0 2px rgba(201,73,89,.08)!important;
}
.task-editor-video-error{
  color:#b42318;
  font-size:10px;
  line-height:1.4;
}
.task-editor-video-error[hidden]{
  display:none!important;
}
.task-editor-video-preview{
  width:min(100%,780px);
}
.task-editor-video-empty{
  min-height:150px;
  display:grid;
  place-items:center;
  align-content:center;
  gap:8px;
  border:1px dashed #ccd3df;
  border-radius:8px;
  background:#fafbfc;
  color:#8a93a6;
  font-size:11px;
  text-align:center;
}
.task-editor-video-empty .dashicons{
  width:28px;
  height:28px;
  font-size:28px;
  line-height:28px;
}

.student-task-step-content .task-video-embed{
  width:100%;
  max-width:780px;
}

@media(max-width:760px){
  .task-video-embed{
    width:100%;
    border-radius:8px;
  }
  .task-editor-video-url{
    width:100%;
    min-height:50px;
    height:50px;
    padding:0 13px;
    border-radius:8px;
    font-size:13px;
  }
  .task-editor-video-empty{
    min-height:130px;
  }
  .task-editor-add-block .editor-add-block-btn{
    min-height:44px!important;
  }
}


/* v246 — Student / Moje zadania / Moje */
.student-own-tasks-view[hidden]{display:none!important}
.student-own-tasks-view .tasks-hub-row{
  background:#fff;
  border:1px solid var(--line);
  border-radius:9px;
  margin-bottom:10px;
}
.student-own-task-inline-status{
  display:inline-flex;
  align-items:center;
  gap:6px;
  color:#697386;
  font-size:10px;
  line-height:1.35;
}
.student-own-task-status-dot{
  width:7px;height:7px;flex:0 0 7px;border-radius:50%;background:#98a2b3;
}
.student-own-task-inline-status.status-pending{color:#8b6221}
.student-own-task-inline-status.status-pending .student-own-task-status-dot{background:#e8a23a}
.student-own-task-inline-status.status-accepted{color:#237a57}
.student-own-task-inline-status.status-accepted .student-own-task-status-dot{background:#2f8f68}

.student-share-teacher-list{
  display:grid;gap:8px;width:100%;margin:16px 0 4px;text-align:left;
}
.student-share-teacher-option{
  position:relative;display:flex;align-items:center;gap:10px;padding:11px 12px;
  border:1px solid #dfe3ea;border-radius:8px;background:#fff;cursor:pointer;
}
.student-share-teacher-option:hover{background:#f7f8fa}
.student-share-teacher-option input{position:absolute;opacity:0;pointer-events:none}
.student-share-teacher-radio{
  width:18px;height:18px;flex:0 0 18px;border:1.5px solid #b9c1ce;border-radius:50%;background:#fff;box-sizing:border-box;
}
.student-share-teacher-option input:checked + .student-share-teacher-radio{border:5px solid #5d5bd7}
.student-share-teacher-copy{min-width:0;display:flex;flex-direction:column;gap:2px}
.student-share-teacher-copy strong{color:var(--text);font-size:11.5px}
.student-share-teacher-copy small{color:#7b8495;font-size:9.5px;line-height:1.35}
.student-share-task-modal{width:min(560px,calc(100vw - 32px))}
#editorTaskAuthor[readonly]{background:#f6f7f9!important;color:#697386!important;cursor:default}

@media(max-width:760px){
  .student-own-task-row{padding:14px!important}
  .student-own-task-row .tasks-hub-title-line-v162{
    align-items:flex-start!important;flex-direction:column!important;gap:5px!important;
  }
  .student-own-task-row .tasks-hub-meta{flex-wrap:wrap!important}
  .student-share-task-modal{width:calc(100vw - 24px)}
  .student-share-teacher-option{min-height:56px;padding:10px 12px}
  .student-share-teacher-radio{width:22px;height:22px;flex-basis:22px}
  .student-share-teacher-option input:checked + .student-share-teacher-radio{border-width:6px}
}


/* v247 — student groups: pending requests + richer group detail */

.student-pending-groups-view{
  padding:0!important;
  overflow:visible!important;
}
.student-pending-group-row{
  position:relative;
  display:flex;
  align-items:center;
  gap:14px;
  min-height:82px;
  padding:13px 14px;
  border-bottom:1px solid var(--line);
  background:#fff;
}
.student-pending-group-row:last-of-type{
  border-bottom:0;
}
.student-pending-group-identity{
  min-width:0;
  flex:1 1 auto;
  display:flex;
  align-items:center;
  gap:12px;
}
.student-pending-group-copy{
  min-width:0;
  display:grid;
  gap:7px;
}
.student-pending-group-copy > strong{
  color:var(--text);
  font-size:12.5px;
  font-weight:760;
}
.student-pending-group-meta{
  display:flex;
  flex-wrap:wrap;
  gap:7px 18px;
  color:#687386;
}
.student-pending-group-meta-item{
  display:flex;
  align-items:baseline;
  gap:5px;
  min-width:0;
  font-size:10px;
}
.student-pending-group-meta-item small{
  color:#929bad;
  font-size:9px;
}
.student-pending-group-actions{
  position:relative;
  flex:0 0 auto;
  display:flex;
  align-items:center;
}
.student-pending-group-toggle{
  width:38px!important;
  min-width:38px!important;
  height:38px!important;
  padding:0!important;
  display:grid!important;
  place-items:center!important;
}
.student-pending-group-quick-panel{
  position:absolute;
  right:46px;
  top:50%;
  z-index:12;
  display:flex;
  align-items:center;
  opacity:0;
  visibility:hidden;
  pointer-events:none;
  transform:translateY(-50%);
  transition:opacity .08s ease,visibility 0s linear .08s;
}
.student-pending-group-row.quick-open .student-pending-group-quick-panel{
  opacity:1;
  visibility:visible;
  pointer-events:auto;
  transition-delay:0s;
}
.student-pending-group-row.quick-open .student-pending-group-toggle .group-quick-actions-dots-vertical{
  display:none!important;
}
.student-pending-group-row.quick-open .student-pending-group-toggle .quick-toggle-close-icon{
  display:inline-block!important;
}
.student-pending-group-cancel{
  white-space:nowrap;
}
.student-pending-groups-empty{
  padding:26px 18px;
  color:#7b8495;
  font-size:11px;
  text-align:center;
}
.student-pending-groups-empty[hidden]{display:none!important}

/* Group detail */
.student-group-topbar-teacher{
  color:#788295;
  font-size:10px;
  font-weight:500;
}
.student-group-topbar-teacher strong{
  color:#566177;
  font-weight:760;
}
.student-group-tasks-card[hidden]{display:none!important}
.student-group-info-card[hidden]{display:none!important}
.student-group-info-intro{
  margin-bottom:16px;
}
.student-group-info-intro h2{
  margin:0 0 4px;
  font-size:14px;
}
.student-group-info-intro p{
  margin:0;
  color:#7a8496;
  font-size:10.5px;
}
.student-group-teacher-note{
  margin-top:18px;
  padding:14px 15px;
  border:1px solid #e0e4eb;
  border-radius:8px;
  background:#fafbfc;
}
.student-group-teacher-note strong{
  display:block;
  margin-bottom:5px;
  font-size:11px;
}
.student-group-teacher-note p{
  margin:0;
  color:#5f6a7d;
  font-size:10.5px;
  line-height:1.55;
}
.student-group-grade-summary{
  cursor:default!important;
}

/* Mobile: pending groups use a full-width drop-down row under the request.
   There is intentionally NO second always-visible action button. */
@media(max-width:760px){
  .student-pending-groups-view{
    border-radius:9px!important;
  }
  .student-pending-group-row{
    align-items:flex-start;
    gap:10px;
    padding:14px 12px;
  }
  .student-pending-group-identity{
    align-items:flex-start;
  }
  .student-pending-group-row .group-icon{
    width:40px!important;
    height:40px!important;
    flex:0 0 40px!important;
  }
  .student-pending-group-copy{
    gap:8px;
  }
  .student-pending-group-copy > strong{
    font-size:13px;
  }
  .student-pending-group-meta{
    display:grid;
    grid-template-columns:1fr;
    gap:5px;
  }
  .student-pending-group-meta-item{
    display:grid;
    grid-template-columns:112px minmax(0,1fr);
    gap:7px;
    font-size:10.5px;
  }
  .student-pending-group-meta-item small{
    font-size:9.5px;
  }
  .student-pending-group-toggle{
    width:46px!important;
    min-width:46px!important;
    height:46px!important;
    border-radius:8px!important;
  }
  .student-pending-group-quick-panel{
    position:absolute!important;
    left:12px!important;
    right:12px!important;
    top:calc(100% - 4px)!important;
    z-index:30!important;
    display:none!important;
    width:auto!important;
    box-sizing:border-box!important;
    padding:8px!important;
    border:1px solid #dde2ea!important;
    border-radius:9px!important;
    background:#fff!important;
    box-shadow:0 12px 30px rgba(15,23,42,.16)!important;
    transform:none!important;
    opacity:1!important;
    visibility:visible!important;
    pointer-events:auto!important;
  }
  .student-pending-group-row.quick-open{
    z-index:31;
  }
  .student-pending-group-row.quick-open .student-pending-group-quick-panel{
    display:block!important;
  }
  .student-pending-group-cancel{
    width:100%!important;
    min-height:50px!important;
    justify-content:flex-start!important;
    padding:0 14px!important;
    border-radius:7px!important;
  }

  .student-group-topbar-teacher{
    width:100%;
    margin-top:2px;
    white-space:normal;
    line-height:1.35;
  }
  .student-context-topbar-title{
    flex-wrap:wrap;
  }
  .student-group-info-grid{
    grid-template-columns:1fr!important;
  }
}


/* v248 — student task listings and star grading */

/* Fixed spacing in Student > Moje zadania > Moje */
#studentOwnTasks.student-own-tasks-view{padding:0!important}
#studentOwnTasks .student-own-task-row{
  min-height:96px!important;
  padding:16px 18px!important;
  margin:0 0 10px!important;
  box-sizing:border-box!important;
}
#studentOwnTasks .student-own-task-row:last-child{margin-bottom:0!important}
#studentOwnTasks .tasks-hub-main{padding-right:8px}

/* Student Active/Closed listings */
.student-task-listing-view{
  padding:0!important;
  border:0!important;
  background:transparent!important;
  box-shadow:none!important;
}
.student-global-task-row{
  grid-template-columns:minmax(320px,1fr) minmax(230px,285px) auto!important;
  gap:22px!important;
  min-height:94px!important;
  padding:14px 16px!important;
  margin-bottom:10px!important;
  border:1px solid var(--line)!important;
  border-radius:9px!important;
  background:#fff!important;
  transition:background-color .14s ease,border-color .14s ease!important;
}
.student-global-task-row.has-inline-grade{
  grid-template-columns:minmax(300px,1fr) minmax(210px,260px) minmax(230px,280px) auto!important;
  gap:18px!important;
}
.student-global-task-row:hover{background:#f7f8fa!important}
.student-global-task-context{
  display:flex!important;
  align-items:center!important;
  flex-wrap:wrap!important;
  gap:4px!important;
  margin-top:5px!important;
}
.student-global-task-group-icon{
  width:18px!important;height:18px!important;flex:0 0 18px!important;
  display:inline-grid!important;place-items:center!important;font-size:10px!important;
}
.student-global-task-row .assignment-member-progress{width:100%!important;max-width:285px!important}
.student-global-task-row .assignment-member-progress-track{height:8px!important}
.student-global-task-actions{justify-self:end!important}
.student-global-task-row .assignment-inline-grade{max-width:280px!important;min-width:0!important}
.student-global-task-row .assignment-inline-grade-summary{
  max-width:160px!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;
}

/* Stars */
.grade-stars-display{
  display:inline-flex;align-items:center;gap:2px;min-width:0;color:#e3a008;white-space:nowrap;
}
.grade-stars-display .grade-star-icon{
  width:18px;height:18px;font-size:18px;line-height:18px;color:#e3a008;
}
.grade-stars-display.compact .grade-star-icon,
.assignment-inline-grade .grade-star-icon{
  width:15px;height:15px;font-size:15px;line-height:15px;
}
.grade-reaction-inline{
  display:inline-flex;align-items:center;justify-content:center;min-width:24px;height:22px;
  padding:0 5px;margin-left:5px;border:1px solid #e0e4eb;border-radius:999px;background:#fff;
  font-size:13px;line-height:1;vertical-align:middle;
}
.grade-reaction-inline[hidden]{display:none!important}

/* 1–6 selector, half-star by left/right click on a star */
.grade-star-selector{
  display:flex;align-items:center;flex-wrap:wrap;gap:10px;min-height:40px;
}
.grade-star-selector-stars{display:inline-flex;align-items:center;gap:4px}
.grade-star-select{
  width:34px;height:34px;display:grid;place-items:center;padding:0;border:1px solid transparent;
  border-radius:6px;background:transparent;color:#c7ced9;cursor:pointer;
}
.grade-star-select:hover:not(:disabled),
.grade-star-select:focus-visible:not(:disabled){
  background:#fff8dd;border-color:#f0d77f;outline:0;
}
.grade-star-select .grade-star-icon{
  width:23px;height:23px;font-size:23px;line-height:23px;color:#d6dce5;
}
.grade-star-select.selected .grade-star-icon,
.grade-star-selector .dashicons-star-filled,
.grade-star-selector .dashicons-star-half{color:#e3a008!important}
.grade-star-selector.is-readonly .grade-star-select{cursor:default}
.grade-star-selector.is-readonly .grade-star-select:hover{background:transparent;border-color:transparent}
.grade-selector-meta{display:flex;align-items:center;gap:8px}
.grade-selector-value{min-width:44px;color:#6c7688;font-size:10.5px;font-weight:700}
.grade-selector-clear{
  padding:0;border:0;background:transparent;color:#7c8595;font:inherit;font-size:10px;
  text-decoration:underline;text-underline-offset:2px;cursor:pointer;
}
.grade-selector-clear:disabled{display:none}

/* Student read-only grade modal */
.student-grade-preview-modal{width:min(560px,calc(100vw - 32px))}
.student-grade-preview-body{display:grid;gap:12px}
.student-grade-preview-rating{
  width:max-content;max-width:100%;display:flex;align-items:center;gap:8px;padding:8px 10px;
  border:1px solid transparent;border-radius:8px;background:transparent;cursor:pointer;text-align:left;
}
.student-grade-preview-rating:hover,
.student-grade-preview-rating:focus-visible{border-color:#efe0a3;background:#fffaf0;outline:0}
.student-grade-secret-hint{color:#7b8495;font-size:10px}
.grade-evaluation-reaction-picker{
  width:max-content;display:flex;align-items:center;gap:6px;padding:6px;border:1px solid #dfe3ea;
  border-radius:999px;background:#fff;box-shadow:0 8px 22px rgba(15,23,42,.12);
}
.grade-evaluation-reaction-picker[hidden]{display:none!important}
.grade-evaluation-reaction-option{
  width:36px;height:36px;display:grid;place-items:center;padding:0;border:0;border-radius:50%;
  background:transparent;font-size:19px;cursor:pointer;
}
.grade-evaluation-reaction-option:hover{background:#f1f3f6}
.student-grade-comment-label{color:#7d8696;font-size:10px;font-weight:700}
.student-grade-preview-comment{
  padding:12px 13px;border:1px solid #e0e4eb;border-radius:8px;background:#fafbfc;
  color:#4f596a;font-size:11.5px;line-height:1.55;
}
.student-grade-reaction-feedback{color:#2d7a57;font-size:10.5px}

/* Closed student task evaluation */
.student-closed-evaluation-card{
  margin-bottom:16px;padding:16px 18px!important;border-color:#eadfb2!important;background:#fffdf7!important;
}
.student-closed-evaluation-card[hidden]{display:none!important}
.student-closed-evaluation-head{
  display:flex;align-items:flex-start;justify-content:space-between;gap:16px;padding-bottom:12px;border-bottom:1px solid #eee7cb;
}
.student-closed-evaluation-label{
  display:block;margin-bottom:4px;color:#977121;font-size:9.5px;font-weight:760;text-transform:uppercase;letter-spacing:.035em;
}
.student-closed-evaluation-head h2{margin:0;font-size:14px}
.student-closed-evaluation-date{color:#8a93a3;font-size:10px}
.student-closed-evaluation-body{display:grid;gap:12px;padding-top:13px}
.student-closed-evaluation-rating{
  width:max-content;max-width:100%;display:flex;align-items:center;gap:8px;padding:6px 8px;
  border:1px solid transparent;border-radius:7px;background:transparent;cursor:pointer;
}
.student-closed-evaluation-rating:hover{background:#fff8df;border-color:#efdda2}
.student-closed-evaluation-comment > span{display:block;margin-bottom:4px;color:#8a93a3;font-size:9.5px;font-weight:700}
.student-closed-evaluation-comment p{margin:0;color:#4e5869;font-size:11.5px;line-height:1.55}

/* Teacher grade modal/selectors */
.finish-review-form .grade-star-selector{margin-top:1px}
.assignment-inline-grade{display:flex!important;align-items:center!important;gap:7px!important}
.assignment-inline-grade-value.grade-stars-display{flex:0 0 auto}
#studentClosedGradeValue.grade-stars-display{display:inline-flex!important;margin-left:5px}

@media(max-width:900px){
  .student-global-task-row,
  .student-global-task-row.has-inline-grade{grid-template-columns:minmax(0,1fr)!important;gap:11px!important}
  .student-global-task-row .assignment-member-progress,
  .student-global-task-row .assignment-inline-grade{max-width:none!important;width:100%!important}
  .student-global-task-actions{justify-self:stretch!important}
  .student-global-task-actions .assignment-member-details-btn{
    width:100%!important;min-height:44px!important;justify-content:center!important;
  }
}
@media(max-width:760px){
  #studentOwnTasks .student-own-task-row{padding:15px 14px!important}
  .student-global-task-row,
  .student-global-task-row.has-inline-grade{padding:14px!important;min-height:0!important}
  .student-global-task-row .assignment-member-progress{
    display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;align-items:center!important;gap:10px!important;
  }
  .student-global-task-row .assignment-member-progress-value{min-width:38px;text-align:right}
  .grade-stars-display .grade-star-icon{width:20px;height:20px;font-size:20px;line-height:20px}
  .assignment-inline-grade .grade-star-icon{width:17px;height:17px;font-size:17px;line-height:17px}
  .grade-star-selector{align-items:flex-start;flex-direction:column;gap:8px}
  .grade-star-selector-stars{width:100%;justify-content:space-between;gap:3px}
  .grade-star-select{width:44px;height:44px;flex:1 1 0}
  .grade-star-select .grade-star-icon{width:26px;height:26px;font-size:26px;line-height:26px}
  .grade-evaluation-reaction-option{width:44px;height:44px;font-size:21px}
  .student-grade-preview-modal{width:calc(100vw - 24px)}
  .student-closed-evaluation-head{flex-direction:column;gap:7px}
}


/* v249 — student group polish */

/* "Nowe" is an alert-like state: red label + red dot. */
#studentGroupActiveTasksView .assignment-member-status.new{
  color:#b42318!important;
  font-weight:700!important;
}
#studentGroupActiveTasksView .assignment-member-status.new .assignment-member-status-dot{
  background:#d92d20!important;
  box-shadow:0 0 0 3px #fde9e7!important;
}

/* Keep work/progress information visually close to the task identity.
   The old inherited 1fr identity column created an excessive empty gulf. */
@media(min-width:1051px){
  #studentGroupActiveTasksView .student-context-assignment-row{
    grid-template-columns:
      minmax(330px,430px)
      minmax(250px,310px)
      minmax(0,1fr)!important;
    gap:22px!important;
    justify-content:stretch!important;
  }

  #studentGroupActiveTasksView .assignment-member-progress{
    width:100%!important;
    max-width:310px!important;
    justify-self:start!important;
  }

  #studentGroupActiveTasksView .assignment-member-actions{
    justify-self:end!important;
  }

  #studentGroupClosedTasksView .student-context-assignment-row.has-inline-grade{
    grid-template-columns:
      minmax(300px,390px)
      minmax(235px,285px)
      minmax(250px,315px)
      minmax(0,1fr)!important;
    gap:18px!important;
    justify-content:stretch!important;
  }

  #studentGroupClosedTasksView .assignment-member-progress{
    width:100%!important;
    max-width:285px!important;
    justify-self:start!important;
  }

  #studentGroupClosedTasksView .assignment-inline-grade{
    width:100%!important;
    max-width:315px!important;
    min-width:0!important;
    justify-self:start!important;
  }

  #studentGroupClosedTasksView .assignment-member-actions{
    justify-self:end!important;
  }
}

/* Information tab starts directly with the useful data grid. */
#studentGroupInfoView{
  padding-top:18px!important;
}
#studentGroupInfoView .student-group-info-grid{
  margin-top:0!important;
}

/* Make destructive pending-request modal visually consistent with portal modals. */
#studentPendingGroupCancelModal .confirm-modal-icon.danger{
  margin-bottom:12px;
}
#studentPendingGroupCancelModal #confirmStudentPendingGroupCancel{
  background:#c94352!important;
  border-color:#c94352!important;
  color:#fff!important;
}
#studentPendingGroupCancelModal #confirmStudentPendingGroupCancel:hover{
  background:#b53645!important;
  border-color:#b53645!important;
}
#studentPendingGroupCancelModal #confirmStudentPendingGroupCancel .dashicons,
#studentPendingGroupCancelModal #dismissStudentPendingGroupCancel .dashicons{
  width:15px!important;
  height:15px!important;
  flex:0 0 15px!important;
  font-size:15px!important;
  line-height:15px!important;
  margin:0!important;
}

@media(max-width:1050px){
  #studentGroupActiveTasksView .student-context-assignment-row,
  #studentGroupClosedTasksView .student-context-assignment-row.has-inline-grade{
    grid-template-columns:1fr!important;
    gap:11px!important;
  }

  #studentGroupActiveTasksView .assignment-member-progress,
  #studentGroupClosedTasksView .assignment-member-progress,
  #studentGroupClosedTasksView .assignment-inline-grade{
    width:100%!important;
    max-width:none!important;
  }

  #studentGroupActiveTasksView .assignment-member-actions,
  #studentGroupClosedTasksView .assignment-member-actions{
    justify-self:start!important;
  }
}


/* v250 — grading interaction polish */

/* Gwiazdki mają reagować WYŁĄCZNIE wypełnieniem.
   Bez ramek, apli, boxów ani innych hoverowych ozdobników. */
.grade-star-select,
.grade-star-select:hover:not(:disabled),
.grade-star-select:focus:not(:disabled),
.grade-star-select:focus-visible:not(:disabled){
  border-color:transparent!important;
  background:transparent!important;
  box-shadow:none!important;
}
.grade-star-select:hover:not(:disabled){
  transform:none!important;
}
.grade-star-select:focus-visible:not(:disabled){
  outline:none!important;
}
.grade-star-selector-stars{
  cursor:pointer;
}

/* Reakcja ucznia na listingach zawsze bezpośrednio po zestawie gwiazdek. */
.assignment-inline-grade .assignment-inline-grade-value,
.assignment-inline-grade .student-grade-listing-value{
  order:1!important;
  flex:0 0 auto!important;
}
.assignment-inline-grade .grade-reaction-inline{
  order:2!important;
  flex:0 0 auto!important;
  margin-left:2px!important;
  margin-right:1px!important;
}
.assignment-inline-grade .assignment-inline-grade-summary{
  order:3!important;
  min-width:0!important;
}

/* Podczas live-preview nie dokładamy żadnej dodatkowej grafiki —
   jedyną zmianą jest stan pełnych/połówkowych/pustych gwiazdek. */
.grade-star-selector.is-previewing{
  background:transparent!important;
  box-shadow:none!important;
}


/* v251 — closed task evaluation card polish */

.student-closed-evaluation-date{
  color:#667085!important;
  font-weight:650!important;
}

.student-closed-evaluation-summary{
  max-width:980px;
  margin:0!important;
  color:var(--text)!important;
  font-size:14px!important;
  line-height:1.5!important;
  font-weight:760!important;
}

.student-closed-evaluation-body{
  gap:0!important;
  padding-top:0!important;
}

.student-closed-evaluation-divider{
  height:1px;
  margin:12px 0 13px;
  background:#eee7cb;
}
.student-closed-evaluation-divider[hidden]{
  display:none!important;
}

.student-closed-evaluation-reaction-row{
  display:flex;
  align-items:center;
  gap:14px;
  min-height:46px;
}

.student-closed-evaluation-rating{
  width:auto!important;
  min-width:0!important;
  max-width:100%!important;
  display:inline-flex!important;
  align-items:center!important;
  gap:7px!important;
  padding:4px 0!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  box-shadow:none!important;
  cursor:pointer!important;
}

.student-closed-evaluation-rating:hover,
.student-closed-evaluation-rating:focus,
.student-closed-evaluation-rating:focus-visible{
  border:0!important;
  background:transparent!important;
  box-shadow:none!important;
  outline:none!important;
}

.student-closed-evaluation-rating .student-closed-evaluation-stars{
  cursor:pointer!important;
}

.student-closed-evaluation-rating .grade-star-icon{
  transition:
    transform .12s ease,
    filter .12s ease,
    opacity .12s ease!important;
}

.student-closed-evaluation-rating:hover .grade-star-icon,
.student-closed-evaluation-rating:focus-visible .grade-star-icon{
  transform:translateY(-1px) scale(1.045);
  filter:saturate(1.18) brightness(1.04);
}

/* Zawsze rezerwujemy miejsce na aktualną reakcję, aby po otwarciu menu
   układ gwiazdek nie przeskakiwał. */
.student-closed-evaluation-reaction-slot{
  width:34px;
  min-width:34px;
  height:28px;
  display:inline-flex;
  align-items:center;
  justify-content:flex-start;
}

.student-closed-evaluation-reaction-slot .grade-reaction-inline{
  margin:0!important;
}

/* Desktop: dostępne reakcje wysuwają się w tym samym wierszu,
   po zarezerwowanym miejscu na aktualnie przybitą reakcję. */
#studentClosedEvaluationReactionPicker{
  flex:0 0 auto;
  margin:0!important;
}

@media(max-width:760px){
  .student-closed-evaluation-head{
    gap:6px!important;
  }

  .student-closed-evaluation-summary{
    font-size:13.5px!important;
    line-height:1.45!important;
  }

  .student-closed-evaluation-reaction-row{
    display:grid!important;
    grid-template-columns:1fr!important;
    gap:8px!important;
  }

  /* Na mobile gwiazdki + miejsce na przybitą reakcję pozostają w jednym wierszu. */
  .student-closed-evaluation-rating{
    width:max-content!important;
    max-width:100%!important;
    display:inline-flex!important;
    flex-wrap:nowrap!important;
  }

  .student-closed-evaluation-reaction-slot{
    width:38px;
    min-width:38px;
  }

  /* Dostępne reakcje pojawiają się niżej, jako osobny wygodny rząd. */
  #studentClosedEvaluationReactionPicker{
    width:max-content!important;
    max-width:100%!important;
    margin-top:2px!important;
  }
}


/* v252 — teacher view of a student's assignment: lock is the state control */

.student-assignment-state-lock{
  width:30px;
  height:30px;
  flex:0 0 30px;
  display:inline-grid;
  place-items:center;
  margin-left:5px;
  padding:0;
  border:1px solid transparent;
  border-radius:6px;
  background:transparent;
  color:#7a8497;
  cursor:pointer;
  transition:
    background-color .14s ease,
    border-color .14s ease,
    color .14s ease;
}
.student-assignment-state-lock .dashicons{
  width:17px;
  height:17px;
  font-size:17px;
  line-height:17px;
  margin:0;
}
.student-assignment-state-lock:hover:not(:disabled),
.student-assignment-state-lock:focus-visible:not(:disabled){
  background:#f5f6f8;
  border-color:#e0e4eb;
  color:#3f4b61;
  outline:0;
}
.student-assignment-state-lock.is-closed{
  color:#337c5d;
}
.student-assignment-state-lock.is-closed:hover:not(:disabled),
.student-assignment-state-lock.is-closed:focus-visible:not(:disabled){
  background:#eef8f3;
  border-color:#cce7d9;
  color:#23734f;
}
.student-assignment-state-lock:disabled{
  opacity:.72;
  cursor:default;
}

/* Old textual Active/Closed state badge is intentionally gone. */
.student-assignment-topbar-context .assignment-status-badge{
  display:none!important;
}

@media(max-width:760px){
  .student-assignment-state-lock{
    width:38px;
    height:38px;
    flex-basis:38px;
    margin-left:2px;
    border-color:#e1e5eb;
  }
  .student-assignment-state-lock .dashicons{
    width:19px;
    height:19px;
    font-size:19px;
    line-height:19px;
  }
}


/* v253 — closed-task evaluation card: one separator, calmer rhythm */

/* Header no longer draws its own separator. The only separator is the one
   between the teacher comment and the stars. */
.student-closed-evaluation-head{
  padding-bottom:0!important;
  border-bottom:0!important;
  align-items:flex-start!important;
}

/* Brown timestamp, but not bold/heavy. */
.student-closed-evaluation-date{
  color:#8a6a27!important;
  font-weight:500!important;
  font-size:10px!important;
  line-height:1.45!important;
}

/* Even vertical rhythm:
   label -> comment -> separator -> rating */
.student-closed-evaluation-label{
  margin-bottom:7px!important;
}

.student-closed-evaluation-summary{
  margin:0!important;
  font-weight:760!important;
  line-height:1.45!important;
}

.student-closed-evaluation-body{
  padding-top:0!important;
}

.student-closed-evaluation-divider{
  height:1px!important;
  margin:14px 0!important;
  background:#eadfb2!important;
}

.student-closed-evaluation-reaction-row{
  min-height:32px!important;
  gap:14px!important;
}

/* Stars are intentionally visually neutral:
   no hover animation, no pointer cursor, no hover/focus background. */
.student-closed-evaluation-rating,
.student-closed-evaluation-rating:hover,
.student-closed-evaluation-rating:focus,
.student-closed-evaluation-rating:focus-visible{
  padding:0!important;
  border:0!important;
  background:transparent!important;
  box-shadow:none!important;
  outline:none!important;
  cursor:default!important;
}

.student-closed-evaluation-rating .student-closed-evaluation-stars,
.student-closed-evaluation-rating .grade-star-icon{
  cursor:default!important;
}

.student-closed-evaluation-rating .grade-star-icon,
.student-closed-evaluation-rating:hover .grade-star-icon,
.student-closed-evaluation-rating:focus-visible .grade-star-icon{
  transform:none!important;
  filter:none!important;
  opacity:1!important;
  transition:none!important;
}

/* Preserve reserved room for the current reaction without creating extra space. */
.student-closed-evaluation-reaction-slot{
  width:34px!important;
  min-width:34px!important;
  height:24px!important;
}

@media(max-width:760px){
  .student-closed-evaluation-head{
    gap:8px!important;
  }

  .student-closed-evaluation-divider{
    margin:13px 0!important;
  }

  .student-closed-evaluation-reaction-row{
    gap:9px!important;
  }
}


/* v254 — teacher closed assignment evaluation + group state locks */

/* Teacher closed evaluation uses the same visual language as the student's card. */
.teacher-closed-evaluation-card{
  margin-bottom:12px!important;
}
.teacher-closed-evaluation-card[hidden]{
  display:none!important;
}
.teacher-closed-evaluation-rating-row{
  min-height:30px!important;
}
.teacher-closed-evaluation-rating{
  width:max-content;
  max-width:100%;
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:0;
  border:0;
  background:transparent;
  box-shadow:none;
  cursor:pointer;
}
.teacher-closed-evaluation-rating:hover,
.teacher-closed-evaluation-rating:focus,
.teacher-closed-evaluation-rating:focus-visible{
  border:0;
  background:transparent;
  box-shadow:none;
  outline:0;
}
.teacher-closed-evaluation-stars{
  cursor:pointer;
}
.teacher-closed-evaluation-reaction-slot{
  width:34px;
  min-width:34px;
  min-height:24px;
  display:inline-flex;
  align-items:center;
}
.teacher-closed-evaluation-reaction-slot .grade-reaction-inline{
  margin:0!important;
}

/* Closed state: evaluation card first, compact progress card second.
   Nothing is shown below the progress bar in this block. */
.student-assignment-work-closed .student-progress-overview-card{
  padding:14px 16px!important;
  margin-bottom:16px!important;
}
.student-assignment-work-closed .student-progress-overview-card .student-assignment-state-panel{
  display:none!important;
}


/* Group active/archived status is represented by the same small lock mechanism. */
.group-state-lock{
  width:30px;
  height:30px;
  flex:0 0 30px;
  display:inline-grid;
  place-items:center;
  margin-left:4px;
  padding:0;
  border:1px solid transparent;
  border-radius:6px;
  background:transparent;
  color:#7a8497;
  cursor:pointer;
  transition:
    background-color .14s ease,
    border-color .14s ease,
    color .14s ease;
}
.group-state-lock .dashicons{
  width:17px;
  height:17px;
  font-size:17px;
  line-height:17px;
  margin:0;
}
.group-state-lock:hover,
.group-state-lock:focus-visible{
  background:#f5f6f8;
  border-color:#e0e4eb;
  color:#3f4b61;
  outline:0;
}
.group-state-lock.is-closed{
  color:#337c5d;
}
.group-state-lock.is-closed:hover,
.group-state-lock.is-closed:focus-visible{
  background:#eef8f3;
  border-color:#cce7d9;
  color:#23734f;
}

/* The text state tag is intentionally gone; enrollment badge remains separate. */
.group-topbar-title > .group-status{
  display:none!important;
}

#archiveGroupFromLockModal #confirmArchiveGroupFromLock{
  background:#c94352!important;
  border-color:#c94352!important;
  color:#fff!important;
}
#archiveGroupFromLockModal #confirmArchiveGroupFromLock:hover{
  background:#b53645!important;
  border-color:#b53645!important;
}

@media(max-width:760px){
  .teacher-closed-evaluation-rating{
    flex-wrap:nowrap;
  }
  .teacher-closed-evaluation-reaction-slot{
    width:38px;
    min-width:38px;
  }

  .group-state-lock{
    width:38px;
    height:38px;
    flex-basis:38px;
    border-color:#e1e5eb;
  }
  .group-state-lock .dashicons{
    width:19px;
    height:19px;
    font-size:19px;
    line-height:19px;
  }
}


/* v256 — closed evaluation/progress refinements */

/* Unified evaluation card title. */
.student-closed-evaluation-label{
  color:#977121!important;
}

/* Stars begin exactly on the left content edge in both student and teacher cards. */
.student-closed-evaluation-reaction-row,
.teacher-closed-evaluation-rating-row{
  justify-content:flex-start!important;
  justify-items:start!important;
  text-align:left!important;
}

.student-closed-evaluation-rating,
.teacher-closed-evaluation-rating{
  margin-left:0!important;
  justify-content:flex-start!important;
}

.student-closed-evaluation-stars,
.teacher-closed-evaluation-stars,
#studentClosedGradeValue.grade-stars-display{
  margin-left:0!important;
  padding-left:0!important;
}

/* Separator stays part of the card even when the teacher left no comment. */
.student-closed-evaluation-divider,
.student-closed-evaluation-divider[hidden]{
  display:block!important;
}

/* Closed teacher progress card:
   progress -> separator -> end of card. */
.student-assignment-work-closed .student-progress-overview-card{
  padding:14px 16px 13px!important;
}

.student-assignment-work-closed .student-progress-overview-card .student-assignment-state-panel{
  display:block!important;
  margin-top:14px!important;
  padding:0!important;
}

.student-assignment-work-closed .student-progress-overview-card .student-assignment-state-separator{
  display:block!important;
  height:1px!important;
  margin:0!important;
  background:var(--line)!important;
}

.student-assignment-work-closed .student-progress-overview-card .student-assignment-state-copy{
  display:none!important;
}

.student-assignment-work-closed .student-progress-overview-card .student-progress-overview-track{
  margin-bottom:0!important;
}

/* Closed assignment remains read-only for new chat messages,
   but the teacher may still resolve an already reported problem. */
.student-assignment-work-closed.assignment-discussion-readonly
.resolve-problem-btn[data-resolved="false"]:not([hidden]){
  display:inline-flex!important;
}

.student-assignment-work-closed
.resolve-problem-btn[data-resolved="true"]{
  display:none!important;
}

@media(max-width:760px){
  .student-assignment-work-closed .student-progress-overview-card{
    padding-bottom:12px!important;
  }

  .student-assignment-work-closed .student-progress-overview-card .student-assignment-state-panel{
    margin-top:12px!important;
  }
}


/* v257 — shared reference geometry for local submenus and task listings */

/* ------------------------------------------------------------
   A. Local submenu + first box
   Reference: teacher closed-assignment listing.
   ------------------------------------------------------------ */

/* The underline navigation always sits directly above the first module/card
   with the same horizontal origin and a 16px breathing gap. */
.groups-local-nav{
  margin:0 0 16px!important;
  padding-left:4px!important;
  padding-right:4px!important;
}

/* When the nav is already wrapped in a toolbar, the toolbar owns the gap. */
.student-context-tasks-toolbar,
.group-members-toolbar,
.task-content-local-toolbar{
  margin-bottom:16px!important;
}
.student-context-tasks-toolbar .groups-local-nav,
.group-members-toolbar .groups-local-nav,
.task-content-local-toolbar .groups-local-nav{
  margin:0!important;
  padding-left:0!important;
  padding-right:0!important;
}

/* First box starts immediately after the canonical submenu gap. */
.groups-local-nav + .card,
.student-context-tasks-toolbar + .card,
.group-members-toolbar + .card,
.task-content-local-toolbar + .card{
  margin-top:0!important;
}

/* ------------------------------------------------------------
   B. Canonical task-list row geometry
   Every listing with an assignment progress bar uses the same X-position
   for the beginning of the progress column.
   ------------------------------------------------------------ */

@media(min-width:1051px){
  /* Active rows: identity / progress / actions. */
  .assignment-member-row:not(.has-inline-grade){
    grid-template-columns:
      minmax(330px,36%)
      minmax(260px,24%)
      minmax(160px,1fr)!important;
    gap:22px!important;
    align-items:center!important;
  }

  /* Closed/graded rows: identity / progress / grade / actions. */
  .assignment-member-row.has-inline-grade{
    grid-template-columns:
      minmax(330px,36%)
      minmax(260px,24%)
      minmax(270px,25%)
      minmax(120px,1fr)!important;
    gap:18px!important;
    align-items:center!important;
  }

  /* Progress starts at the same horizontal coordinate everywhere. */
  .assignment-member-row .assignment-member-progress{
    width:100%!important;
    max-width:none!important;
    min-width:0!important;
    display:grid!important;
    grid-template-columns:minmax(0,1fr) 48px!important;
    align-items:center!important;
    gap:12px!important;
    justify-self:stretch!important;
  }

  .assignment-member-row .assignment-member-progress-track{
    width:100%!important;
    min-width:0!important;
    margin:0!important;
  }

  .assignment-member-row .assignment-member-progress-value{
    width:48px!important;
    min-width:48px!important;
    margin:0!important;
    text-align:right!important;
    justify-self:end!important;
  }

  /* Row actions are pinned to the right edge of the card. */
  .assignment-member-row .assignment-member-actions,
  .assignment-member-row .student-global-task-actions{
    width:auto!important;
    min-width:0!important;
    justify-self:end!important;
    justify-content:flex-end!important;
    margin-left:auto!important;
  }
}

/* ------------------------------------------------------------
   C. Canonical grade/comment format on every closed-task listing
   Line 1: stars + student's reaction.
   Line 2: beginning of teacher comment.
   ------------------------------------------------------------ */

.assignment-inline-grade{
  display:grid!important;
  grid-template-columns:max-content max-content!important;
  grid-template-rows:auto auto!important;
  align-items:center!important;
  justify-content:start!important;
  column-gap:6px!important;
  row-gap:4px!important;
  min-width:0!important;
  padding:4px 0!important;
  text-align:left!important;
}

.assignment-inline-grade .assignment-inline-grade-value,
.assignment-inline-grade .student-grade-listing-value{
  grid-column:1!important;
  grid-row:1!important;
  order:initial!important;
  margin:0!important;
  justify-self:start!important;
}

.assignment-inline-grade .grade-reaction-inline{
  grid-column:2!important;
  grid-row:1!important;
  order:initial!important;
  margin:0!important;
  justify-self:start!important;
  align-self:center!important;
}

.assignment-inline-grade .assignment-inline-grade-summary{
  grid-column:1 / -1!important;
  grid-row:2!important;
  order:initial!important;
  display:block!important;
  width:100%!important;
  max-width:100%!important;
  min-width:0!important;
  margin:0!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  white-space:nowrap!important;
  text-align:left!important;
  color:var(--muted)!important;
  font-size:10px!important;
  line-height:1.35!important;
}

/* Keep the grade block visually aligned with the progress column. */
.assignment-member-row.has-inline-grade .assignment-inline-grade{
  justify-self:start!important;
  align-self:center!important;
}

/* ------------------------------------------------------------
   D. Closed student assignment viewed by teacher
   Default topbar: Back / Reopen / [...]
   Edit grade lives under the dots.
   ------------------------------------------------------------ */

.student-assignment-work-closed .student-assignment-action-topbar #reopenStudentAssignment{
  display:inline-flex!important;
  order:2!important;
}

.student-assignment-work-closed .student-assignment-action-topbar #editClosedStudentGrade{
  order:3!important;
}

.student-assignment-work-closed .student-assignment-action-topbar #studentAssignmentTopbarMore{
  order:99!important;
}

/* Closed lock remains interactive, including when opened from the completed
   assignment listing (#archived). */
.student-assignment-work-closed #studentAssignmentStateLock{
  pointer-events:auto!important;
  opacity:1!important;
}

/* ------------------------------------------------------------
   E. Responsive stacking keeps the same semantic order.
   ------------------------------------------------------------ */

@media(max-width:1050px){
  .assignment-member-row,
  .assignment-member-row.has-inline-grade{
    grid-template-columns:1fr!important;
    gap:11px!important;
  }

  .assignment-member-row .assignment-member-progress{
    width:100%!important;
    max-width:none!important;
    grid-template-columns:minmax(0,1fr) 48px!important;
  }

  .assignment-member-row .assignment-inline-grade{
    width:100%!important;
    max-width:none!important;
  }

  .assignment-member-row .assignment-member-actions,
  .assignment-member-row .student-global-task-actions{
    width:100%!important;
    justify-self:stretch!important;
    justify-content:flex-end!important;
    margin-left:0!important;
  }
}

@media(max-width:760px){
  .groups-local-nav{
    gap:18px!important;
    margin-bottom:14px!important;
    padding-left:0!important;
    padding-right:0!important;
  }

  .assignment-inline-grade{
    row-gap:5px!important;
  }

  .assignment-inline-grade .assignment-inline-grade-summary{
    font-size:10.5px!important;
  }
}


/* v258 — archived grade geometry + task-content typography */

/* Rating is a deterministic two-line component:
   line 1 = stars + reaction, line 2 = teacher comment preview. */
.assignment-inline-grade{
  display:flex!important;
  flex-direction:column!important;
  align-items:flex-start!important;
  justify-content:center!important;
  gap:4px!important;
  min-width:0!important;
  text-align:left!important;
}

.assignment-inline-grade-topline{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:flex-start!important;
  gap:5px!important;
  width:max-content!important;
  max-width:100%!important;
  min-width:0!important;
  white-space:nowrap!important;
}

.assignment-inline-grade-topline .assignment-inline-grade-value,
.assignment-inline-grade-topline .student-grade-listing-value{
  display:inline-flex!important;
  width:auto!important;
  min-width:0!important;
  margin:0!important;
  padding:0!important;
  flex:0 0 auto!important;
}

.assignment-inline-grade-topline .grade-reaction-inline{
  position:static!important;
  display:inline-flex!important;
  flex:0 0 auto!important;
  margin:0!important;
  transform:none!important;
  justify-self:auto!important;
  align-self:center!important;
}

.assignment-inline-grade .assignment-inline-grade-summary{
  display:block!important;
  width:100%!important;
  max-width:100%!important;
  min-width:0!important;
  margin:0!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  white-space:nowrap!important;
  text-align:left!important;
}

/* Zrealizowane zadania: button Szczegóły przy prawym brzegu boxa. */
#archivedAssignmentStudentsView .assignment-member-row.has-inline-grade{
  width:100%!important;
}

#archivedAssignmentStudentsView .assignment-member-actions{
  width:100%!important;
  min-width:0!important;
  display:flex!important;
  align-items:center!important;
  justify-content:flex-end!important;
  justify-self:stretch!important;
  margin-left:0!important;
  padding-right:0!important;
}

#archivedAssignmentStudentsView .assignment-member-details-btn{
  margin-left:auto!important;
}

/* Task previews use only fields that exist in the editor:
   step title + content, no artificial subtitle. */
.task-stepper-step .catalog-step-head h3{
  font-size:21px!important;
  line-height:1.3!important;
  font-weight:760!important;
}

.task-stepper-step .catalog-step-body{
  margin-top:18px!important;
  font-size:14.5px!important;
  line-height:1.72!important;
}

.task-stepper-step .task-content-block-text p,
.task-stepper-step .catalog-step-body > p{
  font-size:14.5px!important;
  line-height:1.72!important;
}

.task-stepper-step .component-list{
  font-size:14px!important;
  line-height:1.8!important;
}

.task-stepper-step .catalog-code{
  font-size:12.5px!important;
  line-height:1.65!important;
}

/* Teacher-added information in previews. */
.task-stepper-step .step-teacher-note,
.task-stepper-step .step-note-display{
  font-size:13px!important;
}

.task-stepper-step .step-note-display strong{
  font-size:12px!important;
}

.task-stepper-step .step-note-value{
  font-size:13px!important;
  line-height:1.6!important;
}

/* Student execution view uses the same more readable scale. */
.student-task-step-card-head h1{
  font-size:19px!important;
  line-height:1.35!important;
}



.student-task-teacher-note-label{
  font-size:11.5px!important;
}

.student-task-teacher-note-label .dashicons{
  width:17px!important;
  height:17px!important;
  font-size:17px!important;
  line-height:17px!important;
}

.student-task-teacher-note-text{
  margin-top:7px!important;
  font-size:13.5px!important;
  line-height:1.65!important;
}

.student-assignment-content-view .step-note-value{
  font-size:13px!important;
  line-height:1.6!important;
}

@media(max-width:760px){
  .task-stepper-step .catalog-step-head h3{
    font-size:19px!important;
  }

  .task-stepper-step .catalog-step-body,
  .task-stepper-step .task-content-block-text p,
  .task-stepper-step .catalog-step-body > p{
    font-size:14px!important;
  }

  .student-task-step-content p,
  .student-task-step-content li{
    font-size:13.5px!important;
  }

  .student-task-teacher-note-text{
    font-size:13px!important;
  }

  #archivedAssignmentStudentsView .assignment-member-actions{
    justify-content:flex-end!important;
  }
}


/* v259 — student list consistency + notification unification */

/* ------------------------------------------------------------
   Student tasks: one portal card per tab, rows inside the card.
   ------------------------------------------------------------ */
.student-task-list-card{
  padding:0!important;
  overflow:visible!important;
}

.student-task-list-card > .student-global-task-row,
.student-task-list-card > .student-own-task-row{
  margin:0!important;
  border:0!important;
  border-bottom:1px solid var(--line)!important;
  border-radius:0!important;
  box-shadow:none!important;
  background:#fff!important;
}

.student-task-list-card > .student-global-task-row:last-child,
.student-task-list-card > .student-own-task-row:last-child{
  border-bottom:0!important;
}

.student-task-list-card > .student-global-task-row:hover,
.student-task-list-card > .student-own-task-row:hover{
  background:
    linear-gradient(
      90deg,
      #fff 0%,
      #f6f7fa 14%,
      #f6f7fa 86%,
      #fff 100%
    )!important;
}

/* ------------------------------------------------------------
   Student groups reuse the teacher group's row geometry.
   ------------------------------------------------------------ */
.student-groups-module{
  padding:0!important;
  overflow:visible!important;
}

.student-groups-module .student-groups-portal-row{
  min-height:76px!important;
  padding:13px 14px!important;
}

.student-groups-module .student-groups-portal-row .group-icon{
  width:39px!important;
  height:39px!important;
  flex:0 0 39px!important;
  font-size:18px!important;
}

.student-groups-module .student-groups-portal-row .list-title{
  font-size:13px!important;
  line-height:1.35!important;
  font-weight:700!important;
}

.student-groups-module .student-groups-portal-row .list-meta{
  margin-top:5px!important;
  font-size:10.5px!important;
  line-height:1.4!important;
}

.student-groups-module .student-groups-row-actions{
  justify-self:end!important;
  justify-content:flex-end!important;
}

.student-groups-module .student-pending-group-row{
  min-height:76px!important;
  padding:13px 14px!important;
}

.student-groups-module .student-pending-group-row .group-icon{
  width:39px!important;
  height:39px!important;
  flex:0 0 39px!important;
  font-size:18px!important;
}

.student-groups-module .student-pending-group-copy > strong{
  font-size:13px!important;
  line-height:1.35!important;
}

.student-groups-module .student-pending-group-meta{
  margin-top:1px!important;
}

/* ------------------------------------------------------------
   Notifications: teacher size raised to group-list readability,
   student now uses exactly the same component.
   ------------------------------------------------------------ */
.notification-event-row{
  min-height:76px!important;
  grid-template-columns:39px minmax(0,1fr) auto!important;
  gap:13px!important;
  padding:13px 14px!important;
}

.notification-event-row .student-activity-icon{
  width:39px!important;
  height:39px!important;
  flex:0 0 39px!important;
  border-radius:7px!important;
}

.notification-event-row .student-activity-icon .dashicons{
  width:18px!important;
  height:18px!important;
  font-size:18px!important;
  line-height:18px!important;
}

.notification-event-copy strong{
  font-size:13px!important;
  line-height:1.4!important;
  font-weight:700!important;
}

.notification-event-row.is-unread .notification-event-copy strong{
  font-weight:760!important;
}

.notification-event-copy p{
  margin-top:5px!important;
  font-size:10.5px!important;
  line-height:1.4!important;
}

.student-notification-event-list{
  padding:0!important;
}

.notifications-empty-state{
  min-height:128px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:12px;
  padding:24px;
  color:#7b8495;
  text-align:left;
}

.notifications-empty-state[hidden]{
  display:none!important;
}

.notifications-empty-state > .dashicons{
  width:30px;
  height:30px;
  font-size:30px;
  line-height:30px;
  color:#a6afbd;
}

.notifications-empty-state > div{
  display:grid;
  gap:3px;
}

.notifications-empty-state strong{
  color:#566177;
  font-size:12.5px;
}

.notifications-empty-state span{
  font-size:10.5px;
}

/* Count in the main sidebar disappears completely at zero. */
.nav-count-badge[hidden]{
  display:none!important;
}

/* ------------------------------------------------------------
   Student dashboard closed tasks: new star rating.
   ------------------------------------------------------------ */
.student-dashboard-closed-grade{
  display:flex!important;
  align-items:center!important;
  min-height:18px;
  margin-top:5px!important;
}

.student-dashboard-closed-stars{
  margin:0!important;
}

.student-dashboard-closed-stars .grade-star-icon{
  width:14px!important;
  height:14px!important;
  font-size:14px!important;
  line-height:14px!important;
}

@media(max-width:760px){
  .student-task-list-card > .student-global-task-row,
  .student-task-list-card > .student-own-task-row{
    padding:14px!important;
  }

  .student-groups-module .student-groups-portal-row,
  .student-groups-module .student-pending-group-row{
    padding:12px!important;
  }

  .notification-event-row{
    grid-template-columns:39px minmax(0,1fr)!important;
    gap:11px!important;
  }

  .notification-event-actions{
    grid-column:2!important;
    width:100%!important;
    justify-content:flex-start!important;
    flex-wrap:wrap!important;
  }

  .notification-event-actions .btn{
    min-height:44px!important;
  }
}


/* v260 — exact fixes from screenshots */

/* ------------------------------------------------------------
   Completed assignment listing:
   the details button is pinned to the right inner edge of each row.
   ------------------------------------------------------------ */
@media(min-width:1051px){
  .reference-completed-assignment-list .archived-assignment-member-row{
    position:relative!important;
    padding-right:170px!important;
  }

  .reference-completed-assignment-list .archived-assignment-member-row .assignment-member-actions{
    position:absolute!important;
    right:14px!important;
    top:50%!important;
    width:auto!important;
    min-width:0!important;
    margin:0!important;
    padding:0!important;
    display:flex!important;
    align-items:center!important;
    justify-content:flex-end!important;
    transform:translateY(-50%)!important;
  }

  .reference-completed-assignment-list .archived-assignment-member-row .assignment-member-details-btn{
    margin:0!important;
  }
}

/* ------------------------------------------------------------
   Task-content preview typography.
   Actual DOM uses .catalog-step / .student-task-stepper-step,
   not .task-stepper-step.
   ------------------------------------------------------------ */

/* Step title — no subtitle exists in the product model. */
.catalog-step .catalog-step-head h3,
.student-task-stepper-step .catalog-step-head h3,
.student-assignment-content-view .catalog-step-head h3{
  margin:0!important;
  font-size:21px!important;
  line-height:1.32!important;
  font-weight:760!important;
}

/* Main step content. */
.catalog-step .catalog-step-body,
.student-task-stepper-step .catalog-step-body,
.student-assignment-content-view .catalog-step-body{
  margin-top:19px!important;
  font-size:14.5px!important;
  line-height:1.72!important;
}

.catalog-step .catalog-step-body p,
.catalog-step .catalog-step-body li,
.student-task-stepper-step .catalog-step-body p,
.student-task-stepper-step .catalog-step-body li,
.student-assignment-content-view .catalog-step-body p,
.student-assignment-content-view .catalog-step-body li{
  font-size:14.5px!important;
  line-height:1.72!important;
}

.catalog-step .component-list,
.student-task-stepper-step .component-list,
.student-assignment-content-view .component-list{
  font-size:14px!important;
  line-height:1.8!important;
}

.catalog-step .catalog-code,
.student-task-stepper-step .catalog-code,
.student-assignment-content-view .catalog-code{
  font-size:12.5px!important;
  line-height:1.65!important;
}

/* Teacher information attached to a step. */
.student-assignment-teacher-comment{
  margin-top:20px!important;
  padding-top:16px!important;
}

.student-assignment-teacher-comment-head{
  gap:7px!important;
  font-size:12.5px!important;
  line-height:1.4!important;
}

.student-assignment-teacher-comment-head strong{
  font-size:12.5px!important;
  font-weight:760!important;
}

.student-assignment-teacher-comment-head .dashicons{
  width:17px!important;
  height:17px!important;
  font-size:17px!important;
  line-height:17px!important;
}

.student-assignment-teacher-comment-value{
  margin-top:8px!important;
  font-size:13.5px!important;
  line-height:1.65!important;
}

/* Student execution view uses the same readable content scale. */
.student-task-step-content p,
.student-task-step-content li{
  font-size:14px!important;
  line-height:1.72!important;
}

.student-task-teacher-note-text{
  font-size:13.5px!important;
  line-height:1.65!important;
}

/* Safety net: subtitles must never reappear in any task preview. */
.catalog-step-head .sub{
  display:none!important;
}

@media(max-width:1050px){
  .reference-completed-assignment-list .archived-assignment-member-row{
    padding-right:14px!important;
  }

  .reference-completed-assignment-list .archived-assignment-member-row .assignment-member-actions{
    position:static!important;
    width:100%!important;
    transform:none!important;
    justify-content:flex-end!important;
  }
}

@media(max-width:760px){
  .catalog-step .catalog-step-head h3,
  .student-task-stepper-step .catalog-step-head h3,
  .student-assignment-content-view .catalog-step-head h3{
    font-size:19px!important;
  }

  .catalog-step .catalog-step-body,
  .catalog-step .catalog-step-body p,
  .catalog-step .catalog-step-body li,
  .student-task-stepper-step .catalog-step-body,
  .student-task-stepper-step .catalog-step-body p,
  .student-task-stepper-step .catalog-step-body li,
  .student-assignment-content-view .catalog-step-body,
  .student-assignment-content-view .catalog-step-body p,
  .student-assignment-content-view .catalog-step-body li{
    font-size:14px!important;
  }

  .student-assignment-teacher-comment-value,
  .student-task-teacher-note-text{
    font-size:13px!important;
  }
}


/* v261 — final polish: groups, grade modal, row actions, composer */

/* ------------------------------------------------------------
   Student groups: Details icon spacing + right-edge alignment.
   ------------------------------------------------------------ */
@media(min-width:761px){
  .student-groups-module .student-groups-portal-row{
    position:relative!important;
    padding-right:158px!important;
  }

  .student-groups-module .student-groups-portal-row .student-groups-row-actions{
    position:absolute!important;
    right:14px!important;
    top:50%!important;
    width:auto!important;
    min-width:0!important;
    margin:0!important;
    padding:0!important;
    display:flex!important;
    align-items:center!important;
    justify-content:flex-end!important;
    transform:translateY(-50%)!important;
  }
}

.student-groups-module .group-main-details-btn{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:6px!important;
  white-space:nowrap!important;
}

.student-groups-module .group-main-details-btn .btn-icon,
.student-groups-module .group-main-details-btn .dashicons{
  margin:0!important;
  flex:0 0 auto!important;
}

/* ------------------------------------------------------------
   Student grade modal hierarchy.
   ------------------------------------------------------------ */
.student-grade-preview-modal{
  width:min(610px,calc(100vw - 32px))!important;
  padding:28px!important;
}

.student-grade-preview-icon.confirm-modal-icon.success{
  width:46px!important;
  height:46px!important;
  margin:0 auto 12px!important;
  border-radius:9px!important;
  background:#eaf7f0!important;
  color:#2b7a57!important;
}

.student-grade-preview-icon .dashicons{
  width:23px!important;
  height:23px!important;
  font-size:23px!important;
  line-height:23px!important;
}

.student-grade-preview-kicker{
  margin:0 0 8px!important;
  color:#2d7a57!important;
  font-size:11px!important;
  line-height:1.25!important;
  font-weight:780!important;
  letter-spacing:.025em!important;
  text-align:center!important;
}

.student-grade-preview-title{
  margin:0!important;
  color:var(--text)!important;
  font-size:22px!important;
  line-height:1.3!important;
  font-weight:790!important;
  text-align:center!important;
}

.student-grade-preview-body{
  display:grid!important;
  gap:0!important;
  margin-top:18px!important;
}

.student-grade-preview-rating-row{
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  flex-wrap:nowrap!important;
  gap:10px!important;
  min-height:38px!important;
}

.student-grade-preview-rating-label{
  color:#9a681d!important;
  font-size:12px!important;
  line-height:1.3!important;
  font-weight:760!important;
  white-space:nowrap!important;
}

.student-grade-preview-rating{
  display:inline-flex!important;
  align-items:center!important;
  gap:5px!important;
  width:auto!important;
  max-width:none!important;
  margin:0!important;
  padding:0!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  box-shadow:none!important;
}

.student-grade-preview-rating:hover,
.student-grade-preview-rating:focus,
.student-grade-preview-rating:focus-visible{
  border:0!important;
  background:transparent!important;
  box-shadow:none!important;
  outline:0!important;
}

#studentGradePreviewStars .grade-star-icon{
  width:20px!important;
  height:20px!important;
  font-size:20px!important;
  line-height:20px!important;
}

.student-grade-preview-current-reaction{
  margin:0 0 0 2px!important;
}

.student-grade-preview-reaction-picker{
  flex:0 0 auto!important;
  margin-left:4px!important;
}

.student-grade-preview-separator{
  height:1px!important;
  margin:14px 0!important;
  background:var(--line)!important;
}

.student-grade-preview-comment{
  padding:14px 15px!important;
  border:1px solid #e0e4eb!important;
  border-radius:8px!important;
  background:#fafbfc!important;
  color:#465164!important;
  font-size:12.5px!important;
  line-height:1.6!important;
  text-align:left!important;
}

.student-grade-reaction-feedback{
  margin-top:8px!important;
  text-align:center!important;
}

/* ------------------------------------------------------------
   Row quick actions: no legacy top-slide / stagger anywhere.
   Geometry changes immediately; only a very short fade remains.
   ------------------------------------------------------------ */
.group-quick-actions-panel-inline,
.assignment-member-quick-panel,
.task-quick-actions-panel,
.review-step-quick-panel{
  transform:none!important;
  transition-property:opacity,visibility!important;
  transition-duration:.08s,0s!important;
  transition-timing-function:ease,linear!important;
  transition-delay:0s,.08s!important;
}

.group-list-grid-row.quick-actions-open .group-quick-actions-panel-inline,
.assignment-member-row.quick-open .assignment-member-quick-panel,
.student-own-task-row.task-quick-open .task-quick-actions-panel,
.review-step-item.quick-open .review-step-quick-panel{
  transform:none!important;
  transition-delay:0s,0s!important;
}

.group-quick-actions-panel-inline .group-quick-action-text,
.assignment-member-quick-panel .assignment-member-quick-action,
.task-quick-actions-panel .task-quick-action-text,
.review-step-quick-panel .btn{
  transform:none!important;
  transition:
    background-color .14s ease,
    border-color .14s ease,
    color .14s ease,
    opacity .08s ease!important;
  transition-delay:0s!important;
}

.group-quick-actions-panel-inline .group-quick-action-text:nth-child(n),
.assignment-member-quick-panel .assignment-member-quick-action:nth-child(n),
.task-quick-actions-panel .task-quick-action-text:nth-child(n),
.review-step-quick-panel .btn:nth-child(n){
  transition-delay:0s!important;
}

/* ------------------------------------------------------------
   Student task composer — desktop columns line up:
   Send under Add photo; problem check under YouTube input.
   ------------------------------------------------------------ */
@media(min-width:761px){
  .student-task-composer .message-media-block{
    grid-template-columns:max-content minmax(240px,300px)!important;
    column-gap:10px!important;
  }

  .student-task-composer .student-task-composer-actions{
    width:fit-content!important;
    max-width:100%!important;
    display:grid!important;
    grid-template-columns:max-content minmax(240px,300px)!important;
    column-gap:10px!important;
    row-gap:0!important;
    align-items:center!important;
    justify-content:start!important;
    margin-top:10px!important;
  }

  .student-task-composer #studentTaskSendMessage{
    grid-column:1!important;
    grid-row:1!important;
    justify-self:start!important;
    order:initial!important;
    margin:0!important;
  }

  .student-task-composer .student-task-problem-toggle{
    grid-column:2!important;
    grid-row:1!important;
    justify-self:start!important;
    order:initial!important;
    width:auto!important;
    margin:0!important;
    min-height:40px!important;
  }

  .student-task-composer .student-task-problem-check{
    margin-left:0!important;
  }
}

@media(max-width:760px){
  .student-groups-module .student-groups-portal-row{
    padding-right:12px!important;
  }

  .student-groups-module .student-groups-portal-row .student-groups-row-actions{
    position:static!important;
    width:100%!important;
    transform:none!important;
    justify-content:flex-end!important;
  }

  .student-grade-preview-modal{
    width:calc(100vw - 24px)!important;
    padding:22px 16px!important;
  }

  .student-grade-preview-rating-row{
    display:grid!important;
    grid-template-columns:max-content minmax(0,1fr)!important;
    gap:8px 10px!important;
    justify-content:start!important;
  }

  .student-grade-preview-rating-label{
    grid-column:1!important;
    grid-row:1!important;
    align-self:center!important;
  }

  .student-grade-preview-rating{
    grid-column:2!important;
    grid-row:1!important;
    justify-self:start!important;
  }

  .student-grade-preview-reaction-picker{
    grid-column:1 / -1!important;
    grid-row:2!important;
    margin:2px 0 0!important;
    justify-self:start!important;
  }

  .student-grade-preview-title{
    font-size:19px!important;
  }

  .student-grade-preview-comment{
    font-size:12px!important;
  }
}


/* v262 — corrections after visual QA */

#studentGradePreviewModal .student-grade-preview-separator{display:none!important}
#studentGradePreviewModal .student-grade-preview-comment{margin-top:14px!important}

/* Teacher grade/finish modal */
#finishReviewModal .finish-review-modal{
  width:min(660px,calc(100vw - 32px))!important;
  padding:28px!important;
  text-align:center!important;
}
.finish-review-medal-icon{
  width:48px!important;height:48px!important;margin:0 auto 12px!important;
  display:grid!important;place-items:center!important;border-radius:9px!important;
  background:#eaf7f0!important;color:#2b7a57!important;
}
.finish-review-medal-icon .dashicons{
  width:24px!important;height:24px!important;font-size:24px!important;line-height:24px!important;
}
.finish-review-kicker{
  color:#2d7a57!important;font-size:11px!important;line-height:1.25!important;
  font-weight:800!important;letter-spacing:.025em!important;margin-bottom:14px!important;
}
.finish-review-identity-row{
  display:flex!important;align-items:center!important;justify-content:center!important;
  gap:9px!important;flex-wrap:wrap!important;
}
.finish-review-student-avatar{
  width:38px!important;height:38px!important;flex:0 0 38px!important;
  background:var(--avatar-bg,#7C3AED)!important;
}
.finish-review-student-avatar .student-avatar-icon{font-size:19px!important}
.finish-review-student-name{
  color:var(--text)!important;font-size:15px!important;font-weight:760!important;
}
.finish-review-x-separator{
  color:#9aa3b1!important;font-size:18px!important;font-weight:500!important;line-height:1!important;
}
.finish-review-task-name{
  margin:0!important;color:var(--text)!important;font-size:21px!important;
  line-height:1.3!important;font-weight:790!important;
}
.finish-review-group-row{
  display:flex!important;align-items:center!important;justify-content:center!important;
  gap:8px!important;margin-top:10px!important;color:#596579!important;font-size:11.5px!important;
}
.finish-review-group-row .group-icon{
  width:26px!important;height:26px!important;flex:0 0 26px!important;font-size:12px!important;
}
.finish-review-rating-row{
  display:flex!important;align-items:center!important;justify-content:flex-start!important;
  gap:12px!important;margin-top:24px!important;text-align:left!important;
}
.finish-review-rating-label{
  flex:0 0 auto!important;color:#9a681d!important;font-size:12px!important;
  line-height:1.3!important;font-weight:760!important;white-space:nowrap!important;
}
.finish-review-rating-row .grade-star-selector{flex:1 1 auto!important;min-width:0!important}
.finish-review-rating-row .grade-star-selector-stars{gap:2px!important}
.finish-review-rating-row .grade-selector-meta{gap:9px!important}
.finish-review-rating-row .grade-selector-value{
  color:#6d7789!important;font-size:10.5px!important;font-weight:700!important;
}
.finish-review-rating-row .grade-selector-clear{
  color:#6f7784!important;font-size:10.5px!important;font-weight:650!important;
  text-decoration-color:#c39125!important;text-decoration-thickness:1px!important;
  text-underline-offset:3px!important;
}
.finish-review-rating-separator{
  height:1px!important;margin:14px 0!important;background:var(--line)!important;
}
.finish-review-comment{
  width:100%!important;min-height:116px!important;padding:12px 13px!important;
  border:1px solid var(--line)!important;border-radius:8px!important;background:#fff!important;
  color:var(--text)!important;font:inherit!important;font-size:12px!important;
  line-height:1.55!important;resize:vertical!important;
}
#finishReviewModal .finish-review-modal-actions{
  justify-content:center!important;margin-top:18px!important;
}
#finishReviewModal #confirmFinishReview{
  display:inline-flex!important;align-items:center!important;gap:7px!important;
}
#finishReviewModal #confirmFinishReview .dashicons{
  width:16px!important;height:16px!important;font-size:16px!important;
  line-height:16px!important;margin:0!important;
}

/* Student task chat composer desktop alignment */
@media(min-width:761px){
  .student-task-composer .message-media-block{
    display:grid!important;
    grid-template-columns:145px 320px!important;
    column-gap:12px!important;
    align-items:center!important;
    justify-content:start!important;
    width:max-content!important;
    max-width:100%!important;
  }
  .student-task-composer .message-photo-trigger{
    width:145px!important;min-width:145px!important;justify-content:center!important;margin:0!important;
  }
  .student-task-composer .message-youtube-input{
    width:320px!important;max-width:320px!important;margin:0!important;
  }
  .student-task-composer .student-task-composer-actions{
    display:grid!important;
    grid-template-columns:145px 320px!important;
    column-gap:12px!important;
    align-items:center!important;
    justify-content:start!important;
    width:max-content!important;
    max-width:100%!important;
    margin-top:10px!important;
  }
  .student-task-composer #studentTaskSendMessage{
    grid-column:1!important;grid-row:1!important;
    width:145px!important;min-width:145px!important;
    margin:0!important;justify-content:center!important;align-self:center!important;
  }
  .student-task-composer .student-task-problem-toggle{
    grid-column:2!important;grid-row:1!important;
    margin:0!important;padding:0!important;
    justify-self:start!important;align-self:center!important;
    min-height:40px!important;
  }
}

@media(max-width:760px){
  #finishReviewModal .finish-review-modal{
    width:calc(100vw - 24px)!important;padding:22px 16px!important;
  }
  .finish-review-identity-row{gap:7px!important}
  .finish-review-task-name{
    width:100%!important;margin-top:3px!important;font-size:19px!important;
  }
  .finish-review-rating-row{
    display:grid!important;grid-template-columns:1fr!important;gap:8px!important;margin-top:20px!important;
  }
  .finish-review-rating-row .grade-star-selector-stars{
    width:100%!important;justify-content:space-between!important;
  }
  .finish-review-rating-separator{margin:12px 0!important}
  .finish-review-comment{min-height:128px!important;font-size:12.5px!important}
}


/* v263 — centered grade controls + single "Bez oceny" */

/* Numeric output is hidden when no grade is selected, so the only visible
   no-grade action is the single "Bez oceny" control. */
.grade-selector-value[hidden]{
  display:none!important;
}

/* New finish/edit modal: center the whole grade block as one unit. */
#finishReviewModal .finish-review-rating-row{
  justify-content:center!important;
}

#finishReviewModal .finish-review-rating-row .grade-star-selector{
  flex:0 1 auto!important;
  width:auto!important;
  justify-content:center!important;
}

#finishReviewModal .finish-review-rating-row .grade-star-selector-stars{
  justify-content:center!important;
}

#finishReviewModal .finish-review-rating-row .grade-selector-meta{
  justify-content:center!important;
}

/* Older assignment-grade modals: same visual rule.
   Label + selector are centered instead of hanging to the left. */
.assignment-grade-modal .finish-review-form .field:first-child{
  display:flex!important;
  flex-direction:column!important;
  align-items:center!important;
  text-align:center!important;
}

.assignment-grade-modal .finish-review-form .field:first-child > label{
  width:100%!important;
  text-align:center!important;
}

.assignment-grade-modal .finish-review-form .field:first-child .grade-star-selector{
  width:auto!important;
  max-width:100%!important;
  align-items:center!important;
  justify-content:center!important;
}

.assignment-grade-modal .finish-review-form .field:first-child .grade-star-selector-stars,
.assignment-grade-modal .finish-review-form .field:first-child .grade-selector-meta{
  justify-content:center!important;
}

/* Keep mobile touch targets large while maintaining centered composition. */
@media(max-width:760px){
  #finishReviewModal .finish-review-rating-row{
    justify-items:center!important;
    text-align:center!important;
  }

  #finishReviewModal .finish-review-rating-label{
    text-align:center!important;
  }

  #finishReviewModal .finish-review-rating-row .grade-star-selector{
    width:100%!important;
  }

  .assignment-grade-modal .finish-review-form .field:first-child .grade-star-selector{
    width:100%!important;
  }
}


/* v265 — new task workflow, tranche 1:
   row list + statuses + expand/collapse + role actions.
   Timeline/help merge intentionally deferred. */

.task-step-list-card,
#studentAssignmentWorkflowView .review-step-list{
  padding:0!important;
  overflow:visible!important;
  border:1px solid var(--line)!important;
  border-radius:9px!important;
  background:#fff!important;
}

.task-step-list-item,
#studentAssignmentWorkflowView .review-step-item{
  position:relative;
  border-bottom:1px solid var(--line)!important;
  background:#fff!important;
}

.task-step-list-item:last-child,
#studentAssignmentWorkflowView .review-step-item:last-child{
  border-bottom:0!important;
}

.task-step-list-row,
#studentAssignmentWorkflowView .review-step-row{
  min-height:72px!important;
  display:grid!important;
  grid-template-columns:40px minmax(0,1fr) auto!important;
  align-items:center!important;
  gap:12px!important;
  padding:12px 14px!important;
  background:#fff!important;
}

.task-step-list-item:hover > .task-step-list-row,
#studentAssignmentWorkflowView .review-step-row:hover{
  background:#f7f8fa!important;
}

.task-step-list-state,
#studentAssignmentWorkflowView .review-step-state{
  width:36px!important;
  height:36px!important;
  flex:0 0 36px!important;
  display:grid!important;
  place-items:center!important;
  border-radius:8px!important;
}

.task-step-list-state .dashicons,
#studentAssignmentWorkflowView .review-step-state .dashicons{
  width:18px!important;
  height:18px!important;
  font-size:18px!important;
  line-height:18px!important;
}

.task-step-list-state.is-done,
#studentAssignmentWorkflowView .review-step-state.is-done{
  color:#1f7a57!important;
  background:#e9f7f0!important;
}

.task-step-list-state.is-current,
#studentAssignmentWorkflowView .review-step-state.is-current{
  color:#3f67b2!important;
  background:#eaf1ff!important;
}

.task-step-list-state.is-problem,
#studentAssignmentWorkflowView .review-step-state.is-problem{
  color:#c43745!important;
  background:#fdecee!important;
}

.task-step-list-state.is-future,
#studentAssignmentWorkflowView .review-step-state.is-future{
  color:#9ba5b5!important;
  background:#f2f4f7!important;
}

.task-step-list-main strong,
#studentAssignmentWorkflowView .review-step-main strong{
  font-size:13.5px!important;
  line-height:1.35!important;
  font-weight:760!important;
  color:var(--text)!important;
}

.task-step-list-actions,
#studentAssignmentWorkflowView .review-step-row-actions{
  position:relative!important;
  display:flex!important;
  align-items:center!important;
  justify-content:flex-end!important;
  gap:8px!important;
}

.task-step-expand,
#studentAssignmentWorkflowView .review-step-details-btn{
  min-width:92px!important;
  justify-content:center!important;
  gap:6px!important;
}

.task-step-expand .dashicons,
#studentAssignmentWorkflowView .review-step-details-btn .dashicons{
  margin:0!important;
}

.task-step-row-more[hidden],
#studentAssignmentWorkflowView .review-step-quick-toggle[hidden]{
  display:none!important;
}

.task-step-row-quick-panel,
#studentAssignmentWorkflowView .review-step-quick-panel{
  display:none!important;
  align-items:center!important;
  gap:7px!important;
  opacity:0;
  visibility:hidden;
}

.task-step-list-item.quick-open .task-step-row-quick-panel,
#studentAssignmentWorkflowView .review-step-item.quick-open .review-step-quick-panel{
  display:flex!important;
  opacity:1!important;
  visibility:visible!important;
  animation:v265QuickFade .08s ease both;
}

@keyframes v265QuickFade{
  from{opacity:0}
  to{opacity:1}
}

.task-step-row-action,
#studentAssignmentWorkflowView .review-step-quick-panel .btn{
  transform:none!important;
  transition:
    background-color .14s ease,
    border-color .14s ease,
    color .14s ease,
    opacity .08s ease!important;
  transition-delay:0s!important;
}

.task-step-inline-detail,
#studentAssignmentWorkflowView .review-step-detail{
  border-top:1px solid var(--line)!important;
  padding:18px 20px 20px!important;
  background:#fff!important;
}

.task-step-inline-detail[hidden],
#studentAssignmentWorkflowView .review-step-detail[hidden]{
  display:none!important;
}

/* Reusable student content card becomes the inline detail body.
   No nested "card inside card" effect. */
#studentTaskStepList .student-task-content-card{
  margin:0!important;
  padding:0!important;
  border:0!important;
  border-radius:0!important;
  box-shadow:none!important;
  background:transparent!important;
}

#studentTaskStepList .student-task-step-card-head h1{
  margin-top:0!important;
  font-size:20px!important;
}

/* Teacher collapsed rows: timestamps/counters are intentionally removed in tranche 1. */
#studentAssignmentWorkflowView .review-step-subline{
  display:none!important;
}

/* Mobile: large tap targets, actions wrap without overflowing. */
@media(max-width:760px){
  .task-step-list-row,
  #studentAssignmentWorkflowView .review-step-row{
    grid-template-columns:40px minmax(0,1fr)!important;
    gap:10px!important;
    padding:12px!important;
  }

  .task-step-list-actions,
  #studentAssignmentWorkflowView .review-step-row-actions{
    grid-column:1 / -1!important;
    width:100%!important;
    justify-content:flex-end!important;
    flex-wrap:wrap!important;
    padding-left:50px!important;
  }

  .task-step-expand,
  #studentAssignmentWorkflowView .review-step-details-btn{
    min-height:44px!important;
    min-width:112px!important;
  }

  .task-step-row-more,
  #studentAssignmentWorkflowView .review-step-quick-toggle{
    width:44px!important;
    height:44px!important;
    flex:0 0 44px!important;
  }

  .task-step-row-quick-panel,
  #studentAssignmentWorkflowView .review-step-quick-panel{
    order:3!important;
    width:100%!important;
    flex-direction:column!important;
    align-items:stretch!important;
  }

  .task-step-row-quick-panel .btn,
  #studentAssignmentWorkflowView .review-step-quick-panel .btn{
    width:100%!important;
    min-height:44px!important;
    justify-content:center!important;
  }

  .task-step-inline-detail,
  #studentAssignmentWorkflowView .review-step-detail{
    padding:16px 14px 18px!important;
  }
}


/* v266 — task timeline, tranche 2 */

/* Hide the obsolete separate content tab on teacher view. */
.student-assignment-local-nav[hidden],
.v266-content-source-only{
  display:none!important;
}

/* ------------------------------------------------------------
   Step-to-step dashed connectors.
   ------------------------------------------------------------ */
.task-step-list-item,
#studentAssignmentWorkflowView .review-step-item{
  --step-connector:#d7dde6;
}

.task-step-list-item.connector-green,
#studentAssignmentWorkflowView .review-step-item.connector-green{
  --step-connector:#35a374;
}
.task-step-list-item.connector-blue,
#studentAssignmentWorkflowView .review-step-item.connector-blue{
  --step-connector:#5b82c3;
}
.task-step-list-item.connector-red,
#studentAssignmentWorkflowView .review-step-item.connector-red{
  --step-connector:#d34b59;
}
.task-step-list-item.connector-muted,
#studentAssignmentWorkflowView .review-step-item.connector-muted{
  --step-connector:#d8dee8;
}

.task-step-list-item:not(:last-child)::after,
#studentAssignmentWorkflowView .review-step-item:not(:last-child)::after{
  content:"";
  position:absolute;
  z-index:1;
  left:31px;
  top:48px;
  bottom:-25px;
  border-left:2px dashed var(--step-connector);
  pointer-events:none;
}

.task-step-list-row,
#studentAssignmentWorkflowView .review-step-row{
  position:relative;
  z-index:2;
}

/* ------------------------------------------------------------
   Expanded content timeline.
   ------------------------------------------------------------ */
.task-step-expanded-detail{
  padding:0!important;
  overflow:visible!important;
  background:#fff!important;
}

.task-expanded-content-node,
.task-step-help-header-row,
.task-timeline-message-event,
.task-timeline-composer-event{
  --timeline-color:#5b82c3;
}

.task-expanded-content-node{
  position:relative;
  display:grid;
  grid-template-columns:40px minmax(0,1fr);
  gap:12px;
  padding:20px 14px 18px;
}

.task-expanded-content-node::after{
  content:"";
  position:absolute;
  left:31px;
  top:44px;
  bottom:-8px;
  border-left:2px dashed var(--step-connector,#5b82c3);
  pointer-events:none;
}

.task-timeline-anchor,
.task-timeline-event-icon{
  position:relative;
  z-index:3;
  width:34px;
  height:34px;
  display:grid;
  place-items:center;
  border-radius:50%;
  border:1px solid color-mix(in srgb,var(--timeline-color) 35%,#fff);
  background:#fff;
  color:var(--timeline-color);
}

.task-timeline-anchor .dashicons,
.task-timeline-event-icon .dashicons{
  width:17px;
  height:17px;
  font-size:17px;
  line-height:17px;
}

.task-timeline-anchor-content{
  --timeline-color:var(--step-connector,#5b82c3);
}

.task-step-expanded-content-host{
  min-width:0;
}

.task-step-expanded-title,
#studentTaskStepList .student-task-step-card-head h1{
  margin:0 0 17px!important;
  color:var(--text)!important;
  font-size:21px!important;
  line-height:1.3!important;
  font-weight:790!important;
}

.task-step-expanded-body,
#studentTaskStepList .student-task-step-content{
  font-size:14.5px!important;
  line-height:1.72!important;
}

.task-step-expanded-body p,
.task-step-expanded-body li,
#studentTaskStepList .student-task-step-content p,
#studentTaskStepList .student-task-step-content li{
  font-size:14.5px!important;
  line-height:1.72!important;
}

/* Teacher information announcement — last content element. */
.task-teacher-info-announcement{
  margin-top:20px!important;
  padding:15px 16px!important;
  border:1px solid #ead8a3!important;
  border-radius:9px!important;
  background:#fffbef!important;
  color:#4c5567!important;
}

.task-teacher-info-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom:8px;
}

.task-teacher-info-title,
.student-task-teacher-note-label{
  display:flex!important;
  align-items:center!important;
  gap:7px!important;
  color:#7d5b16!important;
  font-size:12px!important;
  line-height:1.35!important;
  font-weight:780!important;
}

.task-teacher-info-title .dashicons,
.student-task-teacher-note-label .dashicons{
  width:17px!important;
  height:17px!important;
  font-size:17px!important;
  line-height:17px!important;
}

.task-teacher-info-display,
.student-task-teacher-note-text{
  color:#505a6c!important;
  font-size:13.5px!important;
  line-height:1.65!important;
}

.task-teacher-info-editor textarea{
  width:100%;
  min-height:88px;
  margin-top:3px;
  padding:10px 11px;
  border:1px solid #ded8c7;
  border-radius:7px;
  background:#fff;
  color:var(--text);
  font:inherit;
  font-size:12.5px;
  line-height:1.55;
  resize:vertical;
}

.task-teacher-info-editor-actions{
  display:flex;
  justify-content:flex-end;
  gap:8px;
  margin-top:9px;
}

.student-task-teacher-note.task-teacher-info-announcement{
  display:block;
}
.student-task-teacher-note.task-teacher-info-announcement[hidden]{
  display:none!important;
}

/* ------------------------------------------------------------
   Help section.
   ------------------------------------------------------------ */
.task-step-help-shell{
  border-top:1px solid var(--line);
  background:#fbfcfe;
}

.task-step-help-header-row{
  position:relative;
  display:grid;
  grid-template-columns:40px minmax(0,1fr);
  gap:12px;
  padding:14px 14px 13px;
}

.task-step-help-header-row::after{
  content:"";
  position:absolute;
  left:31px;
  top:43px;
  bottom:-6px;
  border-left:2px dashed var(--step-connector,#5b82c3);
}

.task-timeline-anchor-help{
  --timeline-color:var(--step-connector,#5b82c3);
}

.task-step-help-toggle{
  width:100%;
  min-height:42px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:0;
  border:0;
  background:transparent;
  color:var(--text);
  text-align:left;
  cursor:pointer;
}

.task-step-help-toggle-copy{
  display:grid;
  gap:2px;
}

.task-step-help-toggle-copy strong{
  font-size:14px;
  line-height:1.35;
  font-weight:780;
}

.task-step-help-toggle-copy span{
  color:#7d8798;
  font-size:10.5px;
  line-height:1.35;
}

.task-step-help-chevron{
  flex:0 0 auto;
  color:#758095;
}

.task-step-help-body{
  padding:0 14px 18px;
}
.task-step-help-body[hidden]{
  display:none!important;
}

/* Strip the old card framing: help itself is already inside the step. */
.task-step-help-body .student-task-communication-card,
.task-step-help-body .teacher-step-conversation{
  margin:0!important;
  padding:0!important;
  border:0!important;
  border-radius:0!important;
  box-shadow:none!important;
  background:transparent!important;
}

.task-step-help-body .student-task-communication-head{
  padding:0 0 12px 52px!important;
  border:0!important;
}
.task-step-help-body .student-task-communication-head > div > h2{
  display:none!important;
}
.task-step-help-body .student-task-communication-head p{
  margin:0!important;
  font-size:11px!important;
}

/* ------------------------------------------------------------
   Timeline events inside help.
   ------------------------------------------------------------ */
.task-timeline-message-event,
.task-timeline-composer-event{
  position:relative!important;
  display:grid!important;
  grid-template-columns:40px minmax(0,1fr)!important;
  gap:12px!important;
  align-items:start!important;
  padding:7px 0!important;
}

.task-timeline-message-event.timeline-green,
.task-timeline-composer-event.timeline-green{
  --timeline-color:#35a374;
}
.task-timeline-message-event.timeline-blue,
.task-timeline-composer-event.timeline-blue{
  --timeline-color:#5b82c3;
}
.task-timeline-message-event.timeline-red,
.task-timeline-composer-event.timeline-red{
  --timeline-color:#d34b59;
}

.task-timeline-message-event::after{
  content:"";
  position:absolute;
  left:17px;
  top:40px;
  bottom:-13px;
  border-left:2px dashed var(--timeline-color);
  pointer-events:none;
}

.task-timeline-message-event:last-of-type::after{
  bottom:-18px;
}

.task-timeline-event-icon{
  --timeline-color:inherit;
  color:var(--timeline-color);
  border-color:color-mix(in srgb,var(--timeline-color) 35%,#fff);
}

.task-timeline-resolution-event{
  min-height:42px;
}

.task-timeline-resolution-copy{
  align-self:center;
  color:#657086;
  font-size:11.5px;
  font-weight:700;
}

/* Original conversation content occupies column 2. */
.task-timeline-message-event > :not(.task-timeline-event-icon),
.task-timeline-composer-event > :not(.task-timeline-event-icon){
  grid-column:2!important;
  min-width:0;
}

.task-timeline-message-event .student-task-message-time,
.task-timeline-message-event .teacher-message-time{
  display:none!important;
}

/* Student message list old spacing reset. */
.task-step-help-body .student-task-message-list{
  display:block!important;
  padding:0!important;
}
.task-step-help-body .student-task-message-row{
  margin:0!important;
}

/* Teacher conversation list old spacing reset. */
.task-step-help-body .teacher-conversation-messages{
  display:block!important;
  margin:0!important;
}
.task-step-help-body .teacher-message-row{
  margin:0!important;
}

/* Empty conversation gets the same timeline feel. */
.task-step-help-body .teacher-conversation-empty{
  margin:4px 0 10px 52px!important;
  padding:12px!important;
  border:1px dashed #d9dfe8!important;
  border-radius:7px!important;
  color:#7f899a!important;
  font-size:11.5px!important;
}

/* Composer is the final timeline node. */
.task-timeline-composer-event{
  margin-top:7px!important;
  padding-top:12px!important;
  border-top:1px solid var(--line)!important;
}
.task-timeline-composer-event::before{
  content:"";
  position:absolute;
  left:17px;
  top:-18px;
  height:30px;
  border-left:2px dashed var(--timeline-color);
}

/* ------------------------------------------------------------
   Teacher fixed dock = same component as student.
   ------------------------------------------------------------ */
.teacher-step-dock-active .main{
  padding-bottom:104px!important;
}

.teacher-task-progress-dock{
  z-index:75!important;
}

@media(min-width:761px){
  .teacher-task-progress-dock{
    left:var(--dashboard-sidebar-full,226px)!important;
  }
  .dashboard-adaptive-shell.sidebar-is-collapsed ~ .teacher-task-progress-dock{
    left:var(--dashboard-sidebar-mini,68px)!important;
  }
}

@media(max-width:760px){
  .task-expanded-content-node,
  .task-step-help-header-row,
  .task-timeline-message-event,
  .task-timeline-composer-event{
    grid-template-columns:36px minmax(0,1fr)!important;
    gap:9px!important;
  }

  .task-expanded-content-node,
  .task-step-help-header-row{
    padding-left:10px!important;
    padding-right:10px!important;
  }

  .task-expanded-content-node::after,
  .task-step-help-header-row::after{
    left:27px!important;
  }

  .task-timeline-anchor,
  .task-timeline-event-icon{
    width:32px!important;
    height:32px!important;
  }

  .task-timeline-message-event::after,
  .task-timeline-composer-event::before{
    left:15px!important;
  }

  .task-step-expanded-title,
  #studentTaskStepList .student-task-step-card-head h1{
    font-size:19px!important;
  }

  .task-step-expanded-body,
  .task-step-expanded-body p,
  .task-step-expanded-body li,
  #studentTaskStepList .student-task-step-content,
  #studentTaskStepList .student-task-step-content p,
  #studentTaskStepList .student-task-step-content li{
    font-size:14px!important;
  }

  .task-teacher-info-head{
    align-items:flex-start;
  }

  .task-step-help-body{
    padding-left:10px!important;
    padding-right:10px!important;
  }

  .teacher-task-progress-dock{
    left:0!important;
  }
}


/* v267 — timeline correction:
   ONE dashed line through the expanded step.
   Content itself has no event/problem icon. */

/* The outer step connector is the single backbone.
   It runs from the step status icon through expanded content/help.
   The last step also gets a backbone while expanded. */
.task-step-list-item.is-expanded:last-child::after,
#studentAssignmentWorkflowView .review-step-item.expanded:last-child::after{
  content:"";
  position:absolute;
  z-index:1;
  left:31px;
  top:48px;
  bottom:0;
  border-left:2px dashed var(--step-connector);
  pointer-events:none;
}

/* Remove the extra parallel line segments introduced in v266. */
.task-expanded-content-node::after,
.task-step-help-header-row::after{
  display:none!important;
  content:none!important;
}

/* Content has NO icon beside it. The only thing in the left column is the
   continuous dashed backbone from the step status icon. */
.task-expanded-content-node{
  display:block!important;
  position:relative!important;
  padding:20px 20px 18px 66px!important;
}

.task-step-expanded-content-host{
  display:block!important;
  min-width:0!important;
}

/* Help header also has no separate timeline icon.
   The same dashed backbone simply passes next to it. */
.task-step-help-header-row{
  display:block!important;
  position:relative!important;
  padding:14px 20px 13px 66px!important;
}

.task-step-help-toggle{
  min-height:42px!important;
}

/* The event icons only start INSIDE the opened help section:
   comments, problem reports, problem resolution and composer. */
.task-step-help-body{
  position:relative!important;
  padding:0 20px 18px 14px!important;
}

/* Message event segments sit exactly over the single backbone.
   Their color overlays the base line, creating red/blue/green stretches
   without drawing a second parallel line. */
.task-timeline-message-event::after,
.task-timeline-composer-event::before{
  z-index:2!important;
}

.task-timeline-event-icon{
  z-index:4!important;
  background:#fff!important;
}

/* Keep the content/help areas above the backbone while the line remains visible. */
.task-step-expanded-content-host,
.task-step-help-toggle,
.task-step-help-body > *{
  position:relative;
  z-index:3;
}

/* Content title/body stay aligned to the same text column. */
.task-step-expanded-title,
#studentTaskStepList .student-task-step-card-head h1{
  margin-left:0!important;
}

#studentTaskStepList .student-task-content-card,
#studentAssignmentWorkflowView .task-step-expanded-content-host{
  overflow:visible!important;
}

/* Student: old content card no longer needs its own left padding/visual timeline. */
#studentTaskStepList .student-task-content-card{
  padding-left:0!important;
}

/* Help toggle copy starts where the step content starts. */
.task-step-help-toggle-copy{
  padding-left:0!important;
}

/* On mobile the one backbone remains aligned with the status icon column. */
@media(max-width:760px){
  .task-step-list-item:not(:last-child)::after,
  #studentAssignmentWorkflowView .review-step-item:not(:last-child)::after,
  .task-step-list-item.is-expanded:last-child::after,
  #studentAssignmentWorkflowView .review-step-item.expanded:last-child::after{
    left:27px!important;
  }

  .task-expanded-content-node{
    padding:18px 14px 16px 54px!important;
  }

  .task-step-help-header-row{
    padding:13px 14px 12px 54px!important;
  }

  .task-step-help-body{
    padding-left:10px!important;
    padding-right:14px!important;
  }

  .task-timeline-message-event,
  .task-timeline-composer-event{
    grid-template-columns:36px minmax(0,1fr)!important;
    gap:8px!important;
  }

  .task-timeline-message-event::after,
  .task-timeline-composer-event::before{
    left:15px!important;
  }
}


/* v268 — chat affordance + timeline backbone alignment */

/* "Pomoc nauczyciela" now has an explicit, button-like action on the right.
   The whole row remains one accessible toggle; the CTA is its visual action area. */
.task-step-help-cta{
  flex:0 0 auto;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:7px;
  min-height:34px;
  padding:7px 10px 7px 12px;
  border:1px solid #c9d6ee;
  border-radius:7px;
  background:#fff;
  color:#3f67b2;
  font-size:11.5px;
  line-height:1.2;
  font-weight:760;
  white-space:nowrap;
  transition:background-color .14s ease,border-color .14s ease,color .14s ease;
}
.task-step-help-toggle:hover .task-step-help-cta,
.task-step-help-toggle:focus-visible .task-step-help-cta{
  border-color:#aebfdf;
  background:#f3f7ff;
  color:#31589e;
}
.task-step-help-toggle[aria-expanded="true"] .task-step-help-cta{
  background:#edf3ff;
  border-color:#b8c8e5;
}
.task-step-help-cta .task-step-help-chevron{
  width:16px!important;
  height:16px!important;
  font-size:16px!important;
  line-height:16px!important;
  color:currentColor!important;
}

/* Main dashed backbone is painted above the white step-row background and below
   the status tile. This makes the connector actually run icon-to-icon. */
.task-step-list-item:not(:last-child)::after,
#studentAssignmentWorkflowView .review-step-item:not(:last-child)::after{
  z-index:3!important;
  top:36px!important;
  bottom:-36px!important;
}
.task-step-list-item.is-expanded:last-child::after,
#studentAssignmentWorkflowView .review-step-item.expanded:last-child::after{
  z-index:3!important;
  top:36px!important;
  bottom:0!important;
}
.task-step-list-state,
#studentAssignmentWorkflowView .review-step-state{
  position:relative!important;
  z-index:4!important;
}

/* The detailed conversation timeline is not a parallel timeline. Its coloured
   segments sit on the very same x-axis and cover the main backbone locally. */
.task-timeline-message-event::after,
.task-timeline-composer-event::before{
  z-index:5!important;
}
.task-timeline-event-icon{
  z-index:6!important;
}

@media(max-width:760px){
  .task-step-help-toggle{
    align-items:flex-start!important;
  }
  .task-step-help-cta{
    min-height:36px;
    padding:8px 9px 8px 10px;
    font-size:11px;
  }

  .task-step-list-item:not(:last-child)::after,
  #studentAssignmentWorkflowView .review-step-item:not(:last-child)::after{
    top:36px!important;
    bottom:-36px!important;
  }
  .task-step-list-item.is-expanded:last-child::after,
  #studentAssignmentWorkflowView .review-step-item.expanded:last-child::after{
    top:36px!important;
    bottom:0!important;
  }
}

/* v269 — student timeline refinement */

/* Student step separators start at the text column, so the vertical timeline
   never cuts through a horizontal divider. */
#studentTaskStepList .student-task-step-list-item{
  border-bottom:0!important;
}
#studentTaskStepList .student-task-step-list-item:not(:last-child)::before{
  content:"";
  position:absolute;
  z-index:8;
  left:66px;
  right:0;
  bottom:0;
  border-bottom:1px solid var(--line);
  pointer-events:none;
}
#studentTaskStepList .task-step-inline-detail{
  position:relative!important;
  border-top:0!important;
}
#studentTaskStepList .task-step-inline-detail::before{
  content:"";
  position:absolute;
  z-index:8;
  left:66px;
  right:0;
  top:0;
  border-top:1px solid var(--line);
  pointer-events:none;
}

/* One solid timeline. Done/future links connect icon centre to icon centre. */
#studentTaskStepList .student-task-step-list-item:not(:last-child)::after,
#studentTaskStepList .student-task-step-list-item.is-expanded:last-child::after,
#studentTaskStepList .task-timeline-message-event::after,
#studentTaskStepList .task-timeline-composer-event::before{
  border-left-style:solid!important;
}
#studentTaskStepList .student-task-step-list-item:not(:last-child)::after{
  top:30px!important;
  bottom:-30px!important;
  z-index:4!important;
}

/* The current step must never lead visually into a future step.
   When expanded, JS sets the endpoint to help / last chat event / draft pencil. */
#studentTaskStepList .student-task-step-list-item.is-current:not(.is-expanded)::after{
  display:none!important;
}
#studentTaskStepList .student-task-step-list-item.is-current.is-expanded::after{
  display:block!important;
  content:""!important;
  top:30px!important;
  bottom:auto!important;
  height:max(0px,calc(var(--student-current-timeline-end,30px) - 30px))!important;
  border-left:2px solid var(--step-connector)!important;
  z-index:4!important;
}

/* All timeline/status icons use one shared tile language. */
#studentTaskStepList .task-step-list-state,
#studentTaskStepList .task-timeline-event-icon{
  width:36px!important;
  height:36px!important;
  border-radius:8px!important;
  border:0!important;
  box-shadow:none!important;
  position:relative!important;
  z-index:20!important;
}
#studentTaskStepList .task-timeline-event-icon{
  background:color-mix(in srgb,var(--timeline-color,#5b82c3) 12%,#fff)!important;
  color:var(--timeline-color,#5b82c3)!important;
}
#studentTaskStepList .task-timeline-help-icon{
  --timeline-color:var(--step-connector,#5b82c3);
  grid-column:1;
  align-self:center;
}
#studentTaskStepList .task-step-list-state .dashicons,
#studentTaskStepList .task-timeline-event-icon .dashicons{
  width:18px!important;
  height:18px!important;
  font-size:18px!important;
  line-height:18px!important;
}

/* The line is always below event tiles. */
#studentTaskStepList .task-timeline-message-event::after,
#studentTaskStepList .task-timeline-composer-event::before{
  z-index:5!important;
}
#studentTaskStepList .task-timeline-event-icon{
  z-index:20!important;
}

/* Help header has its own chat event tile on the main axis. */
#studentTaskStepList .task-step-help-header-row{
  display:grid!important;
  grid-template-columns:40px minmax(0,1fr)!important;
  align-items:center!important;
  gap:12px!important;
  padding:14px 14px 13px!important;
}
#studentTaskStepList .task-step-help-toggle{
  grid-column:2;
  min-width:0;
}
#studentTaskStepList .task-step-help-toggle-copy{
  gap:0!important;
}
#studentTaskStepList .task-step-help-toggle-copy > span{
  display:none!important;
}
#studentTaskStepList .task-step-help-toggle-copy strong{
  font-size:14px!important;
  line-height:1.35!important;
}

/* The visible CTA mirrors the standard small EUREKA button. */
#studentTaskStepList .task-step-help-cta{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:6px!important;
  min-height:34px!important;
  padding:6px 10px!important;
  border:1px solid #d7dce5!important;
  border-radius:6px!important;
  background:#fff!important;
  color:#465268!important;
  font-size:11.5px!important;
  line-height:1.2!important;
  font-weight:700!important;
  box-shadow:none!important;
}
#studentTaskStepList .task-step-help-toggle:hover .task-step-help-cta,
#studentTaskStepList .task-step-help-toggle:focus-visible .task-step-help-cta{
  border-color:#bfc8d6!important;
  background:#f7f8fa!important;
  color:#2f3c52!important;
}
#studentTaskStepList .task-step-help-cta .btn-icon{
  width:16px!important;
  height:16px!important;
  margin:0!important;
  font-size:16px!important;
  line-height:16px!important;
}

/* The step name exists only in the row; no second heading inside expanded body. */
#studentTaskStepList .student-task-step-card-head{
  display:none!important;
}

/* The help title already carries the step number — no duplicated explanatory note. */
#studentTaskStepList .student-task-communication-head p{
  display:none!important;
}
#studentTaskStepList .student-task-communication-head{
  min-height:0!important;
  padding:0 0 10px 52px!important;
  justify-content:flex-end!important;
}

/* Last visible chat event is the normal endpoint. No segment runs beyond it.
   The draft pencil becomes the endpoint only while there is text in textarea. */
#studentTaskStepList .task-timeline-message-event.is-timeline-last-event::after{
  display:none!important;
}
#studentTaskStepList .task-timeline-composer-event::before{
  display:none!important;
}
#studentTaskStepList .task-timeline-composer-event.has-draft::before{
  display:block!important;
}

/* Read-only historical/future steps keep their chat visible, but interaction controls
   are removed by JS. Hidden composer must stay fully out of layout. */
#studentTaskStepList .student-task-composer[hidden],
#studentTaskStepList .student-task-resolve-problem[hidden]{
  display:none!important;
}

@media(max-width:760px){
  #studentTaskStepList .student-task-step-list-item:not(:last-child)::before,
  #studentTaskStepList .task-step-inline-detail::before{
    left:62px;
  }

  #studentTaskStepList .student-task-step-list-item:not(:last-child)::after{
    left:29px!important;
    top:30px!important;
    bottom:-30px!important;
  }
  #studentTaskStepList .student-task-step-list-item.is-current.is-expanded::after{
    left:29px!important;
    top:30px!important;
  }

  #studentTaskStepList .task-step-help-header-row{
    grid-template-columns:40px minmax(0,1fr)!important;
    gap:10px!important;
    padding:13px 12px 12px!important;
  }
  #studentTaskStepList .task-step-help-toggle{
    align-items:center!important;
  }
  #studentTaskStepList .task-step-help-cta{
    min-height:36px!important;
    padding:7px 9px!important;
    font-size:11px!important;
  }
}

/* v269.1 — active step may also be in problem state, so its endpoint cannot
   rely on the visual .is-current class. Future steps have no progress line. */
#studentTaskStepList .student-task-step-list-item.is-future::after{
  display:none!important;
}
#studentTaskStepList .student-task-step-list-item.is-active-step:not(.is-expanded)::after{
  display:none!important;
}
#studentTaskStepList .student-task-step-list-item.is-active-step.is-expanded::after,
#studentTaskStepList .student-task-step-list-item.student-current-timeline.is-expanded::after{
  display:block!important;
  content:""!important;
  top:30px!important;
  bottom:auto!important;
  height:max(0px,calc(var(--student-current-timeline-end,30px) - 30px))!important;
  border-left:2px solid var(--step-connector)!important;
  z-index:4!important;
}


/* v270 — student task timeline polish */
#studentTaskStepList{
  --student-step-line:#5b82c3;
  --student-help-gold:#caa548;
  --student-help-gold-dark:#86641a;
  --student-help-bg:#fff9ea;
  --student-help-bg-strong:#fff4cf;
}

#studentTaskStepList .student-task-step-list-item{
  --step-connector:var(--student-step-line)!important;
}
#studentTaskStepList .student-task-step-list-item.connector-green,
#studentTaskStepList .student-task-step-list-item.connector-blue,
#studentTaskStepList .student-task-step-list-item.connector-red,
#studentTaskStepList .student-task-step-list-item.connector-muted{
  --step-connector:var(--student-step-line)!important;
}

#studentTaskStepList .student-task-step-list-item:not(:last-child)::after,
#studentTaskStepList .student-task-step-list-item.is-active-step.is-expanded::after,
#studentTaskStepList .student-task-step-list-item.student-current-timeline.is-expanded::after{
  border-left-color:var(--student-step-line)!important;
  z-index:1!important;
}

#studentTaskStepList .student-task-step-list-item:not(:last-child)::before,
#studentTaskStepList .task-step-inline-detail::before{
  z-index:6!important;
}

#studentTaskStepList .task-step-list-row,
#studentTaskStepList .task-step-help-header-row,
#studentTaskStepList .task-timeline-message-event,
#studentTaskStepList .task-timeline-composer-event{
  position:relative!important;
  z-index:8!important;
}

#studentTaskStepList .task-step-list-state,
#studentTaskStepList .task-timeline-event-icon{
  z-index:15!important;
  isolation:isolate;
}

#studentTaskStepList .task-step-help-shell{
  position:relative!important;
  margin-top:6px!important;
  border-top:0!important;
  background:var(--student-help-bg)!important;
  border-radius:10px!important;
}
#studentTaskStepList .task-step-help-shell::before{
  content:"";
  position:absolute;
  left:66px;
  right:0;
  top:0;
  border-top:1px solid #e2c76a;
  z-index:6;
  pointer-events:none;
}
#studentTaskStepList .task-step-help-header-row{
  align-items:stretch!important;
  padding:14px 14px 10px!important;
  background:transparent!important;
}
#studentTaskStepList .task-step-help-icon,
#studentTaskStepList .task-step-help-header-row .task-timeline-event-icon{
  --timeline-color:var(--student-help-gold)!important;
  background:linear-gradient(180deg,#fff3cf 0%,#ffe6a0 100%)!important;
  border:1px solid #efcc6f!important;
  color:var(--student-help-gold-dark)!important;
  box-shadow:0 1px 0 rgba(255,255,255,.75) inset!important;
}
#studentTaskStepList .task-step-help-toggle{
  min-height:42px!important;
  padding:10px 12px!important;
  border:1px solid #ebd288!important;
  border-radius:10px!important;
  background:linear-gradient(180deg,var(--student-help-bg) 0%,var(--student-help-bg-strong) 100%)!important;
  color:var(--text)!important;
  transition:background-color .18s ease,border-color .18s ease,box-shadow .18s ease,transform .18s ease!important;
}
#studentTaskStepList .task-step-help-toggle:hover,
#studentTaskStepList .task-step-help-toggle:focus-visible,
#studentTaskStepList .task-step-help-shell.is-open .task-step-help-toggle{
  border-color:#dfbe66!important;
  background:#fff2c8!important;
  box-shadow:0 4px 14px rgba(202,165,72,.14)!important;
}
#studentTaskStepList .task-step-help-toggle-copy strong{
  color:#2f3c52!important;
}
#studentTaskStepList .task-step-help-cta{
  min-height:34px!important;
  padding:7px 11px!important;
  border:1px solid #d7dce5!important;
  border-radius:8px!important;
  background:#fff!important;
  color:#2f3c52!important;
  font-size:12.5px!important;
  line-height:1.2!important;
  font-weight:700!important;
}
#studentTaskStepList .task-step-help-cta .btn-icon,
#studentTaskStepList .task-step-help-chevron{
  color:#465268!important;
}
#studentTaskStepList .task-step-help-body{
  padding:4px 14px 18px!important;
  background:transparent!important;
}
#studentTaskStepList .task-step-help-body .student-task-communication-card,
#studentTaskStepList .task-step-help-body .teacher-step-conversation{
  background:transparent!important;
}

#studentTaskStepList .student-task-message-row.student-side.task-timeline-message-event > .student-task-own-message-stack{
  justify-self:end!important;
  width:min(78%,680px)!important;
}
#studentTaskStepList .student-task-message-row.teacher-side.task-timeline-message-event > .student-task-message-interaction,
#studentTaskStepList .student-task-message-row.teacher-side.task-timeline-message-event > .teacher-message-stack{
  justify-self:start!important;
}

#studentTaskStepList .task-step-inline-detail{
  transform-origin:top center;
}
#studentTaskStepList .student-task-step-list-item.is-expanded .task-step-inline-detail{
  animation:eurekaStudentStepOpen .24s ease both;
}
#studentTaskStepList .task-step-help-body:not([hidden]){
  animation:eurekaStudentHelpOpen .22s ease both;
}
@keyframes eurekaStudentStepOpen{
  from{opacity:0;transform:translateY(-4px)}
  to{opacity:1;transform:translateY(0)}
}
@keyframes eurekaStudentHelpOpen{
  from{opacity:0;transform:translateY(-3px)}
  to{opacity:1;transform:translateY(0)}
}

@media(max-width:760px){
  #studentTaskStepList .task-step-help-shell::before{
    left:62px;
  }
  #studentTaskStepList .task-step-help-header-row,
  #studentTaskStepList .task-step-help-body{
    padding-left:12px!important;
    padding-right:12px!important;
  }
  #studentTaskStepList .task-step-help-toggle{
    padding:10px!important;
  }
  #studentTaskStepList .task-step-help-cta{
    font-size:12px!important;
  }
}

/* v271 — student consultation UX; timeline backbone temporarily disabled */

/* The timeline line is intentionally disabled for this iteration. */
#studentTaskStepList .student-task-step-list-item::after,
#studentTaskStepList .task-expanded-content-node::after,
#studentTaskStepList .task-step-help-header-row::after,
#studentTaskStepList .task-timeline-message-event::after,
#studentTaskStepList .task-timeline-composer-event::before{
  display:none!important;
  content:none!important;
}

/* Step rows are informational only. Navigation is handled exclusively
   by the fixed progress dock chevrons. */
#studentTaskStepList .task-step-list-row{
  grid-template-columns:40px minmax(0,1fr)!important;
  cursor:default!important;
}
#studentTaskStepList .task-step-list-row:hover{
  background:#fff!important;
}
#studentTaskStepList .task-step-list-actions{
  display:none!important;
}

/* Consultation section: neutral white extension of the step, separated
   from educational content by a simple divider. */
#studentTaskStepList .student-step-consultation{
  position:relative;
  padding:18px 20px 20px 14px;
  background:#fff;
  border:0;
}
#studentTaskStepList .student-step-consultation[hidden]{
  display:none!important;
}
#studentTaskStepList .student-step-consultation::before{
  content:"";
  position:absolute;
  left:66px;
  right:0;
  top:0;
  border-top:1px solid var(--line);
}
#studentTaskStepList .student-step-consultation-empty{
  padding:2px 0 2px 52px;
}
#studentTaskStepList .student-step-consultation-empty[hidden],
#studentTaskStepList .student-step-consultation-thread[hidden]{
  display:none!important;
}
#studentTaskStepList .student-consultation-start-btn{
  min-height:38px;
}
#studentTaskStepList .student-step-consultation-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding:0 0 14px 52px;
}
#studentTaskStepList .student-step-consultation-head h3{
  margin:0;
  color:var(--text);
  font-size:15px;
  line-height:1.35;
  font-weight:800;
}
#studentTaskStepList .student-step-consultation-head .student-conversation-count{
  flex:0 0 auto;
}
#studentTaskStepList .student-task-message-list{
  display:block!important;
  padding:0!important;
}
#studentTaskStepList .student-task-message-row{
  margin:0!important;
}
#studentTaskStepList .task-timeline-message-event{
  display:grid!important;
  grid-template-columns:40px minmax(0,1fr)!important;
  gap:12px!important;
  align-items:start!important;
  padding:8px 0!important;
}
#studentTaskStepList .task-timeline-event-icon{
  width:36px!important;
  height:36px!important;
  border-radius:8px!important;
  display:grid!important;
  place-items:center!important;
  background:#eef3ff!important;
  color:#4f72b5!important;
  border:0!important;
  position:relative!important;
  z-index:4!important;
}


#studentTaskStepList .task-timeline-event-icon .dashicons{
  width:18px!important;
  height:18px!important;
  font-size:18px!important;
  line-height:18px!important;
}
#studentTaskStepList .task-timeline-message-event > :not(.task-timeline-event-icon){
  grid-column:2!important;
  min-width:0;
}
#studentTaskStepList .student-task-message-row.student-side.task-timeline-message-event > .student-task-own-message-stack{
  justify-self:end!important;
  width:fit-content!important;
  max-width:min(78%,680px)!important;
}
#studentTaskStepList .student-task-message-row.teacher-side.task-timeline-message-event > .student-task-message-interaction{
  justify-self:start!important;
}
#studentTaskStepList .task-timeline-resolution-event{
  min-height:42px;
}
#studentTaskStepList .task-timeline-resolution-copy{
  align-self:center;
  color:#697386;
  font-size:11.5px;
  line-height:1.45;
  font-weight:500;
}
#studentTaskStepList .task-timeline-resolution-copy strong{
  color:#3f4859;
  font-weight:800;
}
#studentTaskStepList .student-step-consultation-actions{
  display:flex;
  align-items:center;
  justify-content:flex-start;
  flex-wrap:wrap;
  gap:8px;
  padding:14px 0 0 52px;
}
#studentTaskStepList .student-step-consultation-actions .btn[hidden]{
  display:none!important;
}

/* Overflow action is now a neutral consultation action, not a red problem CTA. */
.student-task-topbar-actions .student-task-consultation-action{
  color:var(--text)!important;
  border-color:#d7dce5!important;
  background:#fff!important;
}
.student-task-topbar-actions .student-task-consultation-action:hover{
  background:#f7f8fa!important;
  border-color:#c6ceda!important;
}

/* New consultation composer modal. */
.student-consultation-modal-overlay.visible{
  display:flex!important;
}
.student-consultation-modal{
  position:relative;
  width:min(660px,calc(100vw - 32px));
  max-height:calc(100vh - 48px);
  overflow:auto;
  box-sizing:border-box;
  padding:26px;
  border:1px solid #dfe3ea;
  border-radius:12px;
  background:#fff;
  box-shadow:0 24px 70px rgba(15,23,42,.24);
}
.student-consultation-modal-hero{
  display:flex;
  flex-direction:column;
  align-items:center;
  text-align:center;
  padding:0 36px 20px;
}
.student-consultation-modal-icon{
  width:52px;
  height:52px;
  display:grid;
  place-items:center;
  margin-bottom:12px;
  border-radius:12px;
  background:#eef3ff;
  color:#4f72b5;
}
.student-consultation-modal-icon .dashicons{
  width:24px;
  height:24px;
  font-size:24px;
  line-height:24px;
}
.student-consultation-modal-eyebrow{
  color:#596275;
  font-size:10.5px;
  line-height:1.35;
  font-weight:850;
  letter-spacing:.055em;
}
.student-consultation-modal-step{
  margin-top:5px;
  color:var(--text);
  font-size:19px;
  line-height:1.3;
  font-weight:820;
}
.student-consultation-modal-task{
  margin-top:3px;
  color:#7b8495;
  font-size:11.5px;
  line-height:1.45;
  font-weight:600;
}
.student-consultation-modal-composer{
  padding-top:0!important;
  border-top:0!important;
}
.student-consultation-modal-composer textarea{
  min-height:128px;
}
.student-consultation-modal-composer .message-media-block{
  margin-top:10px!important;
}
.student-consultation-problem-row{
  display:flex;
  align-items:center;
  justify-content:flex-start;
  margin-top:12px;
}
.student-consultation-modal-actions{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:8px;
  margin-top:18px;
  padding-top:16px;
  border-top:1px solid var(--line);
}
.student-consultation-modal-actions .btn{
  min-width:96px;
  justify-content:center;
}

@media(max-width:760px){
  #studentTaskStepList .student-step-consultation{
    padding:16px 12px 18px 10px;
  }
  #studentTaskStepList .student-step-consultation::before{
    left:62px;
  }
  #studentTaskStepList .student-step-consultation-empty,
  #studentTaskStepList .student-step-consultation-head,
  #studentTaskStepList .student-step-consultation-actions{
    padding-left:52px;
  }
  #studentTaskStepList .task-timeline-message-event{
    grid-template-columns:36px minmax(0,1fr)!important;
    gap:9px!important;
  }
  #studentTaskStepList .task-timeline-event-icon{
    width:32px!important;
    height:32px!important;
  }
  .student-consultation-modal{
    width:min(100% - 20px,660px);
    max-height:calc(100vh - 20px);
    padding:20px 16px 16px;
    border-radius:10px;
  }
  .student-consultation-modal-hero{
    padding-left:28px;
    padding-right:28px;
  }
  .student-consultation-modal-actions{
    position:sticky;
    bottom:0;
    margin-left:-16px;
    margin-right:-16px;
    margin-bottom:-16px;
    padding:12px 16px 16px;
    background:#fff;
  }
}

/* Camera is a first-class attachment action in the consultation modal. */
.student-consultation-modal .message-media-actions .message-camera-trigger{
  display:inline-flex!important;
}

/* v271.1 — exact overflow order requested: Exit -> Consultation -> Step action -> X. */
.student-task-action-topbar.student-task-actions-open .student-task-topbar-actions .student-task-back-action{
  order:1!important;
}
.student-task-action-topbar.student-task-actions-open .student-task-topbar-actions .student-task-consultation-action{
  order:2!important;
}
.student-task-action-topbar .student-task-topbar-actions .student-task-core-action{
  order:3!important;
}
.student-task-action-topbar .student-task-topbar-actions .student-task-more-toggle{
  order:99!important;
}

/* Modal attachment row: gallery + camera are both visible, YouTube stays alongside
   when space permits and wraps cleanly on narrower widths. */
@media(min-width:761px){
  .student-consultation-modal .message-media-block{
    width:100%!important;
    max-width:none!important;
    display:flex!important;
    flex-wrap:wrap!important;
    align-items:center!important;
    gap:8px 10px!important;
  }
  .student-consultation-modal .message-media-actions{
    width:auto!important;
    display:flex!important;
    align-items:center!important;
    flex:0 0 auto!important;
    gap:8px!important;
  }
  .student-consultation-modal .message-media-actions .message-photo-trigger,
  .student-consultation-modal .message-media-actions .message-camera-trigger{
    display:inline-flex!important;
    width:auto!important;
    min-width:0!important;
    min-height:40px!important;
    height:40px!important;
    margin:0!important;
    white-space:nowrap!important;
  }
  .student-consultation-modal .message-youtube-input{
    flex:1 1 240px!important;
    width:auto!important;
    max-width:none!important;
    min-width:220px!important;
    margin:0!important;
  }
  .student-consultation-modal .message-youtube-error,
  .student-consultation-modal .message-attachment-preview{
    flex:1 0 100%!important;
    width:100%!important;
    max-width:none!important;
  }
}

/* v272 — consultation problem state + composer polish */

/* Timeline line stays intentionally disabled; only event tiles are refined. */
#studentTaskStepList .task-timeline-event-icon.is-problem{
  background:#fdecee!important;
  color:#c43745!important;
}
#studentTaskStepList .task-timeline-event-icon.is-resolution{
  background:#e9f7f0!important;
  color:#1f7a57!important;
}

/* Consultation footer actions: icon and text share one optical baseline. */
#studentTaskStepList .student-step-consultation-actions .btn{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:8px!important;
}
#studentTaskStepList .student-step-consultation-actions .btn .btn-icon{
  width:17px!important;
  height:17px!important;
  margin:0!important;
  flex:0 0 17px!important;
  font-size:17px!important;
  line-height:17px!important;
}
#studentTaskStepList .student-task-resolve-current-problem .btn-icon{
  width:16px!important;
  height:16px!important;
  flex-basis:16px!important;
  font-size:16px!important;
  line-height:16px!important;
  opacity:.78;
}
#studentTaskStepList #studentTaskConsultationWrite .btn-icon{
  margin-right:2px!important;
}

/* Same optical alignment in the top overflow consultation action. */
.student-task-topbar-actions .student-task-consultation-action{
  gap:8px!important;
  align-items:center!important;
}
.student-task-topbar-actions .student-task-consultation-action .btn-icon{
  width:17px!important;
  height:17px!important;
  margin:0 2px 0 0!important;
  flex:0 0 17px!important;
  font-size:17px!important;
  line-height:17px!important;
}

/* Problem mode is a thread state, so the modal conversation tile follows it. */
.student-consultation-modal.has-active-problem .student-consultation-modal-icon{
  background:#fdecee!important;
  color:#c43745!important;
}

.student-consultation-problem-row[hidden],
.student-consultation-problem-row > [hidden]{
  display:none!important;
}
.student-consultation-resolve-inline{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:7px!important;
  min-height:40px!important;
  padding:7px 11px!important;
  border-color:#b9decf!important;
  background:#f1faf6!important;
  color:#1f7655!important;
  white-space:nowrap!important;
}
.student-consultation-resolve-inline[hidden]{
  display:none!important;
}
.student-consultation-resolve-inline .btn-icon{
  width:16px!important;
  height:16px!important;
  margin:0!important;
  flex:0 0 16px!important;
  font-size:16px!important;
  line-height:16px!important;
  opacity:.8;
}
.student-consultation-resolve-inline:hover,
.student-consultation-resolve-inline:focus-visible{
  border-color:#8fc9b1!important;
  background:#e8f7f0!important;
  color:#176344!important;
}

/* Camera is mobile-only. */
.student-consultation-modal .message-media-actions .message-camera-trigger{
  display:none!important;
}

/* Modal footer actions sit centrally below the composer. */
.student-consultation-modal-actions{
  justify-content:center!important;
  gap:10px!important;
}
.student-consultation-modal-actions .btn{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:7px!important;
}
.student-consultation-modal-actions .btn .btn-icon{
  margin:0!important;
}

@media(min-width:761px){
  /* One desktop utility row: image, YouTube, problem state. */
  .student-consultation-modal-composer{
    display:grid!important;
    grid-template-columns:auto minmax(220px,1fr) auto!important;
    align-items:center!important;
    column-gap:10px!important;
    row-gap:10px!important;
  }
  .student-consultation-modal-composer > textarea{
    grid-column:1 / -1!important;
    width:100%!important;
  }
  .student-consultation-modal-composer .message-media-block{
    display:contents!important;
  }
  .student-consultation-modal-composer .message-media-actions{
    grid-column:1!important;
    display:flex!important;
    width:auto!important;
    align-items:center!important;
    gap:8px!important;
    margin:0!important;
  }
  .student-consultation-modal-composer .message-media-actions .message-photo-trigger{
    display:inline-flex!important;
    width:auto!important;
    min-width:0!important;
    min-height:40px!important;
    height:40px!important;
    margin:0!important;
    white-space:nowrap!important;
  }
  .student-consultation-modal-composer .message-media-actions .message-camera-trigger{
    display:none!important;
  }
  .student-consultation-modal-composer .message-youtube-input{
    grid-column:2!important;
    width:100%!important;
    min-width:0!important;
    height:40px!important;
    margin:0!important;
  }
  .student-consultation-modal-composer .student-consultation-problem-row{
    grid-column:3!important;
    display:flex!important;
    align-items:center!important;
    justify-content:flex-end!important;
    margin:0!important;
    min-height:40px!important;
  }
  .student-consultation-modal-composer .student-task-problem-toggle{
    min-height:40px!important;
    display:flex!important;
    align-items:center!important;
    white-space:nowrap!important;
  }
  .student-consultation-modal-composer .message-youtube-error,
  .student-consultation-modal-composer .message-attachment-preview{
    grid-column:1 / -1!important;
    width:100%!important;
    max-width:none!important;
  }
}

@media(max-width:760px){
  .student-consultation-modal .message-media-actions .message-camera-trigger{
    display:inline-flex!important;
  }
  .student-consultation-modal-composer{
    display:block!important;
  }
  .student-consultation-modal-composer .message-media-block{
    display:block!important;
    margin-top:10px!important;
  }
  .student-consultation-modal-composer .message-media-actions{
    display:flex!important;
    flex-wrap:wrap!important;
    gap:8px!important;
    margin-bottom:8px!important;
  }
  .student-consultation-modal-composer .message-youtube-input{
    width:100%!important;
  }
  .student-consultation-modal-composer .student-consultation-problem-row{
    margin-top:12px!important;
  }
  .student-consultation-resolve-inline{
    width:100%!important;
  }
  .student-consultation-modal-actions{
    justify-content:center!important;
  }
}

/* v272.1 — deterministic modal grid rows + hidden-state guard */
#studentConsultationProblemToggleWrap[hidden],
#studentConsultationResolveProblem[hidden]{
  display:none!important;
}

@media(min-width:761px){
  .student-consultation-modal-composer > textarea{
    grid-row:1!important;
  }
  .student-consultation-modal-composer .message-media-actions{
    grid-row:2!important;
  }
  .student-consultation-modal-composer .message-youtube-input{
    grid-row:2!important;
  }
  .student-consultation-modal-composer .student-consultation-problem-row{
    grid-row:2!important;
  }
  .student-consultation-modal-composer .message-youtube-error{
    grid-row:3!important;
  }
  .student-consultation-modal-composer .message-attachment-preview{
    grid-row:4!important;
  }
}
.student-consultation-modal-overlay.has-active-problem .student-consultation-modal-icon{
  background:#fdecee!important;
  color:#c43745!important;
}

/* v273 — consultation chronology, resolution checkbox and time tooltips */
#studentTaskStepList .task-timeline-event-icon.is-resolution-message,
#studentTaskStepList .task-timeline-event-icon.is-resolution{
  background:#e9f7f0!important;
  color:#1f7a57!important;
}

/* Timestamp is carried by the timeline icon and appears directly below it. */
#studentTaskStepList .task-timeline-event-icon[data-time-tooltip]{
  cursor:default;
  outline:none;
}
#studentTaskStepList .task-timeline-event-icon[data-time-tooltip]::after{
  content:attr(data-time-tooltip);
  position:absolute;
  z-index:80;
  left:50%;
  top:calc(100% + 7px);
  transform:translate(-50%,-2px);
  min-width:max-content;
  max-width:160px;
  padding:5px 7px;
  border-radius:6px;
  background:#273247;
  color:#fff;
  font-size:10px;
  line-height:1.2;
  font-weight:650;
  letter-spacing:0;
  box-shadow:0 5px 15px rgba(26,35,52,.16);
  opacity:0;
  visibility:hidden;
  pointer-events:none;
  transition:opacity .14s ease,transform .14s ease,visibility .14s ease;
  white-space:nowrap;
}
#studentTaskStepList .task-timeline-event-icon[data-time-tooltip]::before{
  content:"";
  position:absolute;
  z-index:81;
  left:50%;
  top:calc(100% + 3px);
  width:7px;
  height:7px;
  background:#273247;
  transform:translateX(-50%) rotate(45deg);
  opacity:0;
  visibility:hidden;
  transition:opacity .14s ease,visibility .14s ease;
}
#studentTaskStepList .task-timeline-event-icon[data-time-tooltip]:hover::after,
#studentTaskStepList .task-timeline-event-icon[data-time-tooltip]:focus-visible::after,
#studentTaskStepList .task-timeline-event-icon[data-time-tooltip]:hover::before,
#studentTaskStepList .task-timeline-event-icon[data-time-tooltip]:focus-visible::before{
  opacity:1;
  visibility:visible;
}
#studentTaskStepList .task-timeline-event-icon[data-time-tooltip]:hover::after,
#studentTaskStepList .task-timeline-event-icon[data-time-tooltip]:focus-visible::after{
  transform:translate(-50%,0);
}

/* Footer order is conversation first, resolution second. Use the same slim custom
   check as the main step-completion button. */
#studentTaskStepList .student-step-consultation-actions{
  display:flex;
  align-items:center!important;
  gap:9px!important;
}
#studentTaskStepList .student-task-resolve-current-problem .student-task-action-check{
  width:16px!important;
  height:16px!important;
  flex:0 0 16px!important;
  opacity:.9!important;
}
#studentTaskStepList .student-task-resolve-current-problem .student-task-action-check::before{
  width:6px!important;
  height:10px!important;
  border-right-width:1.6px!important;
  border-bottom-width:1.6px!important;
}

/* Active-problem alternative in the composer is a green checkbox, not an action button. */
#studentConsultationResolveProblemWrap[hidden]{
  display:none!important;
}
.student-consultation-resolve-toggle{
  color:#39745c!important;
}
.student-consultation-resolve-toggle .student-task-problem-check{
  border-color:#9dcab7!important;
  background:#fff!important;
}
.student-consultation-resolve-toggle:hover .student-task-problem-check{
  border-color:#66ad8e!important;
}
.student-consultation-resolve-toggle input:focus-visible + .student-task-problem-check{
  box-shadow:0 0 0 3px rgba(47,143,104,.12)!important;
}
.student-consultation-resolve-toggle input:checked + .student-task-problem-check{
  border-color:#2f8f68!important;
  background:#2f8f68!important;
}
.student-consultation-resolve-toggle input:checked + .student-task-problem-check::after{
  border-color:#fff!important;
}

/* Explicit X in consultation modal cancel action. */
.student-consultation-cancel-x{
  position:relative!important;
  display:inline-block!important;
  width:14px!important;
  height:14px!important;
  flex:0 0 14px!important;
  margin-right:1px!important;
}
.student-consultation-cancel-x::before,
.student-consultation-cancel-x::after{
  content:"";
  position:absolute;
  left:6.2px;
  top:1.5px;
  width:1.4px;
  height:11px;
  border-radius:1px;
  background:currentColor;
}
.student-consultation-cancel-x::before{transform:rotate(45deg)}
.student-consultation-cancel-x::after{transform:rotate(-45deg)}

/* old v272 button variant is retired */
.student-consultation-resolve-inline{display:none!important}

@media(max-width:760px){
  #studentTaskStepList .student-step-consultation-actions{
    flex-wrap:wrap!important;
  }
  #studentTaskStepList .task-timeline-event-icon[data-time-tooltip]::after{
    max-width:130px;
  }
}

/* v274 — single task timeline + resolved-problem history */

/* Structural guide between step status tiles. It stays neutral for the current/future
   step and turns blue only after a step is actually completed. */
#studentTaskStepList .student-task-step-list-item:not(:last-child)::after{
  display:block!important;
  content:""!important;
  position:absolute!important;
  left:31px!important;
  top:36px!important;
  bottom:-36px!important;
  z-index:1!important;
  border-left:2px solid #e2e7ef!important;
  pointer-events:none!important;
}
#studentTaskStepList .student-task-step-list-item.is-done:not(:last-child)::after{
  border-left-color:#6688c5!important;
}

/* Dynamic line inside the currently expanded step is drawn by SVG so we can
   measure exact event positions and colour only the problem interval. */
#studentTaskStepList .student-step-timeline-svg{
  position:absolute;
  z-index:11;
  inset:0 auto auto 0;
  width:100%;
  height:100%;
  overflow:visible;
  pointer-events:none;
}
#studentTaskStepList .student-step-timeline-svg line{
  vector-effect:non-scaling-stroke;
}
#studentTaskStepList .student-step-timeline-guide{
  opacity:.95;
}
#studentTaskStepList .student-step-timeline-segment{
  transition:stroke-dashoffset .16s linear,stroke .18s ease;
}

/* All tiles sit safely above the line. */

#studentTaskStepList .task-step-list-row{
  position:relative!important;
  z-index:10!important;
}
#studentTaskStepList .task-step-list-main{
  position:relative!important;
  z-index:21!important;
}

/* Horizontal dividers start at the text column, so they never cross the axis. */
#studentTaskStepList .student-task-step-list-item:not(:last-child)::before,
#studentTaskStepList .task-step-inline-detail::before,
#studentTaskStepList .student-step-consultation::before{
  left:66px!important;
  z-index:12!important;
}

/* A resolved problem keeps its historic red event tile, but the original
   problem bubble itself changes to the resolved (green) state. */
#studentTaskStepList .student-task-message-bubble.student.problem.problem-resolved{
  border-color:#2f8f68!important;
  background:#2f8f68!important;
}
#studentTaskStepList .student-task-message-bubble.student.problem.problem-resolved .student-task-problem-label-icon{
  background:rgba(255,255,255,.16)!important;
}

@media(max-width:760px){
  #studentTaskStepList .student-task-step-list-item:not(:last-child)::after{
    left:29px!important;
    top:36px!important;
    bottom:-36px!important;
  }
  #studentTaskStepList .student-step-consultation{
    padding-left:12px!important;
  }
  #studentTaskStepList .task-timeline-message-event{
    grid-template-columns:36px minmax(0,1fr)!important;
  }
  #studentTaskStepList .task-timeline-event-icon{
    width:36px!important;
    height:36px!important;
  }
  #studentTaskStepList .student-task-step-list-item:not(:last-child)::before,
  #studentTaskStepList .task-step-inline-detail::before,
  #studentTaskStepList .student-step-consultation::before{
    left:62px!important;
  }
}

/* v275 — definitive stacking for student timeline */

#studentTaskStepList .task-expanded-content-node,
#studentTaskStepList .task-timeline-message-event,
#studentTaskStepList .task-timeline-resolution-event,
#studentTaskStepList .student-step-consultation-actions,
#studentTaskStepList .student-step-empty-consultation{
  position:relative!important;
  z-index:6!important;
}
#studentTaskStepList .student-task-step-list-item:not(:last-child)::before,
#studentTaskStepList .task-step-inline-detail::before,
#studentTaskStepList .student-step-consultation::before{
  z-index:8!important;
}
#studentTaskStepList .task-step-list-state,
#studentTaskStepList .task-timeline-event-icon{
  position:relative!important;
  z-index:30!important;
  isolation:isolate!important;
}
#studentTaskStepList .task-step-list-state::before,
#studentTaskStepList .task-step-list-state::after,
#studentTaskStepList .task-timeline-event-icon::before,
#studentTaskStepList .task-timeline-event-icon::after{
  z-index:31;
}
#studentTaskStepList .task-step-list-state > *,
#studentTaskStepList .task-timeline-event-icon > *{
  position:relative;
  z-index:32;
}

/* v276 — timeline stacking fix: expanded detail must not trap its icons below the SVG. */
#studentTaskStepList .task-step-inline-detail{
  transform:none!important;
  isolation:auto!important;
}
#studentTaskStepList .student-task-step-list-item.is-expanded .task-step-inline-detail{
  animation:eurekaStudentStepOpenNoTransform .18s ease both!important;
}
@keyframes eurekaStudentStepOpenNoTransform{
  from{opacity:0}
  to{opacity:1}
}

#studentTaskStepList .task-step-list-row,
#studentTaskStepList .task-expanded-content-node,
#studentTaskStepList .student-step-consultation,
#studentTaskStepList .task-timeline-message-event,
#studentTaskStepList .task-timeline-resolution-event{
  position:relative!important;
  z-index:3!important;
}
#studentTaskStepList .task-step-list-state,
#studentTaskStepList .task-timeline-event-icon{
  z-index:20!important;
}

/* v276 — line geometry no longer relies on icon stacking. */
#studentTaskStepList .student-task-step-list-item.is-expanded .task-step-inline-detail{
  animation:none!important;
  transform:none!important;
  opacity:1!important;
}

#studentTaskStepList .task-timeline-event-icon,
#studentTaskStepList .task-step-list-state{
  z-index:30!important;
}

/* v277 — one axis only: collapsed connector OR expanded dynamic timeline. */
#studentTaskStepList .student-task-step-list-item.is-expanded::after{
  display:none!important;
  content:none!important;
}

/* The dynamic SVG is the only line inside an expanded step.  Keep it above
   the white card background but below every event tile. */
#studentTaskStepList .student-task-step-list-item{
  isolation:isolate!important;
}
#studentTaskStepList .student-step-timeline-svg{
  z-index:1!important;
}
#studentTaskStepList .task-step-list-row,
#studentTaskStepList .task-step-inline-detail,
#studentTaskStepList .task-expanded-content-node,
#studentTaskStepList .student-step-consultation,
#studentTaskStepList .task-timeline-message-event,
#studentTaskStepList .task-timeline-resolution-event{
  transform:none!important;
}
#studentTaskStepList .task-step-list-state,
#studentTaskStepList .task-timeline-event-icon{
  position:relative!important;
  z-index:20!important;
  opacity:1!important;
}

/* Explicit opaque tile fills. The axis runs geometrically through the centre,
   but is hidden by the tile itself. */
#studentTaskStepList .task-timeline-event-icon{
  background:#edf3ff!important;
}
#studentTaskStepList .task-timeline-event-icon.is-problem{
  background:#fdecee!important;
}
#studentTaskStepList .task-timeline-event-icon.is-resolution,
#studentTaskStepList .task-timeline-event-icon.is-resolution-message{
  background:#eaf7f0!important;
}

/* Do not let the detail's own white background cover the dynamic axis. */
#studentTaskStepList .task-step-inline-detail,
#studentTaskStepList .task-expanded-content-node,
#studentTaskStepList .student-step-consultation{
  background:transparent!important;
}

/* v278 — connect expanded axis directly to the main step status tile.
   The row must not create a stacking context above the SVG; otherwise its
   opaque white background hides the short bridge below the status tile. */
#studentTaskStepList .task-step-list-row{
  z-index:auto!important;
}
#studentTaskStepList .task-step-list-state{
  position:relative!important;
  z-index:30!important;
}
#studentTaskStepList .task-step-list-main{
  position:relative!important;
  z-index:4!important;
}
#studentTaskStepList .student-step-timeline-svg{
  z-index:2!important;
}

/* v279 — finish each worked step at the next tile, but never draw an
   outgoing stub from an untouched/future step. */
#studentTaskStepList .student-task-step-list-item.is-future::after{
  display:none!important;
  content:none!important;
}

/* The previous (worked/active) step owns the incoming connection. In an
   expanded step the SVG reaches the top edge of the next status tile. */
#studentTaskStepList .student-step-timeline-to-next{
  stroke-linecap:butt!important;
}

/* v280 — one canonical X axis for the whole student step list. */
#studentTaskStepList{
  position:relative!important;
  isolation:isolate!important;
}
#studentTaskStepList .student-task-global-timeline-svg{
  position:absolute!important;
  inset:0 auto auto 0!important;
  width:100%!important;
  height:100%!important;
  overflow:visible!important;
  pointer-events:none!important;
  z-index:2!important;
}
#studentTaskStepList .student-task-global-timeline-svg line{
  vector-effect:non-scaling-stroke;
}
/* Disable every legacy connector. v280 draws all vertical geometry in one SVG. */
#studentTaskStepList .student-task-step-list-item::after,
#studentTaskStepList .student-task-step-list-item:not(:last-child)::after,
#studentTaskStepList .student-task-step-list-item.is-expanded::after{
  display:none!important;
  content:none!important;
}
#studentTaskStepList .student-step-timeline-svg{
  display:none!important;
}
/* The row itself must not mask the global axis; its status tile still does. */
#studentTaskStepList .task-step-list-row{
  background:transparent!important;
  z-index:auto!important;
}
#studentTaskStepList .student-task-step-list-item{
  background:#fff!important;
}
#studentTaskStepList .task-step-list-main,
#studentTaskStepList .task-expanded-content-node,
#studentTaskStepList .student-step-consultation,
#studentTaskStepList .task-timeline-message-event,
#studentTaskStepList .task-timeline-resolution-event{
  position:relative!important;
  z-index:4!important;
}
#studentTaskStepList .task-step-list-state,
#studentTaskStepList .task-timeline-event-icon{
  position:relative!important;
  z-index:20!important;
}

/* v281 — canonical timeline stacking + active/completed colour semantics */

/* Every step is a transparent stacking layer above the global SVG. This keeps
   the line visible in the gutter, while every status/event tile is guaranteed
   to paint above it. */
#studentTaskStepList .student-task-step-list-item{
  position:relative!important;
  z-index:1!important;
  background:transparent!important;
}
#studentTaskStepList .task-step-list-row,
#studentTaskStepList .task-step-inline-detail,
#studentTaskStepList .task-step-expanded-detail,
#studentTaskStepList .task-expanded-content-node,
#studentTaskStepList .student-step-consultation,
#studentTaskStepList .task-timeline-message-event,
#studentTaskStepList .task-timeline-resolution-event{
  background:transparent!important;
}
#studentTaskStepList .task-step-list-state,
#studentTaskStepList .task-timeline-event-icon{
  position:relative!important;
  z-index:50!important;
  isolation:isolate!important;
}
/* No grey guide is visible in an unfinished step: the timeline is strictly
   blue/red while active and green/red after the step is completed. */
#studentTaskStepList .student-step-timeline-guide{
  display:none!important;
}


/* v283 — active resolution is blue; hover must never mask the timeline gutter. */
#studentTaskStepList .student-task-step-list-item:not(.is-done) .task-timeline-event-icon.is-resolution-message,
#studentTaskStepList .student-task-step-list-item:not(.is-done) .task-timeline-event-icon.is-resolution{
  background:#eef3ff!important;
  color:#4f72b5!important;
}
/* Once the step is completed, every non-problem event that was blue becomes green.
   Historical problem events stay red. */
#studentTaskStepList .student-task-step-list-item.is-done .task-timeline-event-icon:not(.is-problem){
  background:#e9f7f0!important;
  color:#1f7a57!important;
}
/* Keep the timeline gutter transparent even on row hover. The hover fill begins
   only in the text column, so the short bridge into the main status tile stays visible. */
#studentTaskStepList .student-task-step-list-item:hover > .task-step-list-row,
#studentTaskStepList .task-step-list-row:hover{
  background:linear-gradient(to right,transparent 0 74px,#f7f8fa 74px 100%)!important;
}
#studentTaskStepList .task-step-list-state,
#studentTaskStepList .task-timeline-event-icon{
  z-index:60!important;
}
#studentTaskStepList .student-task-global-timeline-svg{
  z-index:0!important;
}

/* v284 — consultation action order + bulletproof global time tooltip */

/* Time tooltip is rendered at <body> level so no step/event stacking context can
   ever cover it. Disable the legacy per-icon pseudo tooltip. */
#studentTaskStepList .task-timeline-event-icon[data-time-tooltip]::before,
#studentTaskStepList .task-timeline-event-icon[data-time-tooltip]::after{
  display:none!important;
  content:none!important;
}
.student-global-timeline-tooltip{
  position:fixed!important;
  z-index:2147483000!important;
  transform:translateX(-50%)!important;
  min-width:max-content;
  max-width:min(220px,calc(100vw - 24px));
  padding:6px 8px;
  border-radius:6px;
  background:#273247;
  color:#fff;
  font-size:10px;
  line-height:1.2;
  font-weight:650;
  white-space:nowrap;
  pointer-events:none;
  box-shadow:0 6px 18px rgba(26,35,52,.22);
}
.student-global-timeline-tooltip::before{
  content:"";
  position:absolute;
  left:50%;
  top:-4px;
  width:8px;
  height:8px;
  background:#273247;
  transform:translateX(-50%) rotate(45deg);
}


/* Consultation footer actions are peers: no primary/highlighted CTA here. */
#studentTaskStepList .student-step-consultation-actions{
  display:flex;
  align-items:center!important;
  justify-content:flex-start!important;
  flex-wrap:wrap!important;
  gap:8px!important;
}
#studentTaskStepList .student-step-consultation-actions .btn{
  min-height:38px!important;
  background:#fff!important;
  border-color:#d7dce5!important;
  color:#2f3c52!important;
  box-shadow:none!important;
  font-weight:700!important;
}
#studentTaskStepList .student-step-consultation-actions .btn:hover,
#studentTaskStepList .student-step-consultation-actions .btn:focus-visible{
  background:#f7f8fa!important;
  border-color:#c6ceda!important;
  color:#263248!important;
}
#studentTaskStepList .student-step-consultation-actions .btn .btn-icon{
  margin:0 2px 0 0!important;
}
#studentTaskStepList #studentTaskConsultationWrite .btn-icon{
  margin-right:4px!important;
}
#studentTaskStepList .student-task-consultation-step-action .student-task-step-action-icon,
#studentTaskStepList .student-task-resolve-current-problem .student-task-step-action-icon{
  opacity:.9!important;
}

@media(max-width:760px){
  #studentTaskStepList .student-step-consultation-actions{
    align-items:stretch!important;
  }
  #studentTaskStepList .student-step-consultation-actions .btn{
    width:100%!important;
    justify-content:flex-start!important;
    min-height:54px!important;
    padding-left:16px!important;
    text-align:left!important;
  }
}

/* v285 — step close/reopen events in the student timeline */
#studentTaskStepList .task-timeline-step-event{
  position:relative!important;
  display:grid!important;
  grid-template-columns:40px minmax(0,1fr)!important;
  gap:12px!important;
  align-items:center!important;
  padding:7px 0!important;
}
#studentTaskStepList .task-timeline-step-event > :not(.task-timeline-event-icon){
  grid-column:2!important;
  min-width:0;
}
#studentTaskStepList .task-timeline-event-icon.is-step-event{
  background:#eef3ff!important;
  color:#4f72b5!important;
}
#studentTaskStepList .student-task-step-list-item.is-done .task-timeline-event-icon.is-step-event{
  background:#e9f7f0!important;
  color:#1f7a57!important;
}
#studentTaskStepList .student-task-action-unlock{
  margin-right:4px!important;
}
@media(max-width:760px){
  #studentTaskStepList .task-timeline-step-event{
    grid-template-columns:36px minmax(0,1fr)!important;
    gap:9px!important;
  }
}

/* v287 — restore breathing room between timeline gutter and consultation content */
#studentTaskStepList .task-timeline-message-event,
#studentTaskStepList .task-timeline-step-event{
  grid-template-columns:40px minmax(0,1fr)!important;
  column-gap:20px!important;
}
#studentTaskStepList .student-step-consultation-head,
#studentTaskStepList .student-step-consultation-empty,
#studentTaskStepList .student-step-consultation-actions{
  padding-left:60px!important;
}
#studentTaskStepList .task-timeline-resolution-event .task-timeline-resolution-copy,
#studentTaskStepList .task-timeline-step-event > :not(.task-timeline-event-icon){
  min-width:0;
}

@media(max-width:760px){
  #studentTaskStepList .task-timeline-message-event,
  #studentTaskStepList .task-timeline-step-event{
    grid-template-columns:36px minmax(0,1fr)!important;
    column-gap:14px!important;
  }
  #studentTaskStepList .student-step-consultation-head,
  #studentTaskStepList .student-step-consultation-empty,
  #studentTaskStepList .student-step-consultation-actions{
    padding-left:50px!important;
  }
}


/* v289 — hard isolation of consultation events per step.
   Timeline display:grid rules must never override the semantic hidden state. */
#studentTaskStepList .student-task-message-row[hidden],
#studentTaskStepList .task-timeline-message-event[hidden],
#studentTaskStepList .task-timeline-resolution-event[hidden],
#studentTaskStepList .task-timeline-step-event[hidden]{
  display:none!important;
}


/* v290 — resolved problem marker + clickable collapsed step rows */
#studentTaskStepList .student-task-message-bubble.problem-resolved .student-task-problem-label-icon{
  width:15px!important;
  height:15px!important;
  flex:0 0 15px!important;
  display:grid!important;
  place-items:center!important;
  border-radius:50%!important;
  background:#fff!important;
  color:#2f8f68!important;
  opacity:1!important;
}
#studentTaskStepList .student-task-message-bubble.problem-resolved .student-task-problem-label-icon .dashicons{
  width:11px!important;
  height:11px!important;
  font-size:11px!important;
  line-height:11px!important;
  color:#2f8f68!important;
}
#studentTaskStepList .student-task-step-list-item:not(.is-expanded) > .task-step-list-row{
  cursor:pointer!important;
}
#studentTaskStepList .student-task-step-list-item.is-expanded > .task-step-list-row{
  cursor:default!important;
}
#studentTaskStepList .task-step-list-row:focus-visible{
  outline:2px solid rgba(79,114,181,.42)!important;
  outline-offset:-2px!important;
}

/* v291 — task summary timeline + neutral teacher information */
#studentTaskStepList .student-task-teacher-note.task-teacher-info-announcement{
  margin-top:20px!important;
  padding:15px 16px!important;
  border:1px solid #dfe3ea!important;
  border-radius:9px!important;
  background:#f5f6f8!important;
  color:#323a4c!important;
}
#studentTaskStepList .student-task-teacher-note-label{
  display:block!important;
  margin-bottom:7px!important;
  color:#4a5568!important;
  font-size:11px!important;
  line-height:1.35!important;
  font-weight:800!important;
}
#studentTaskStepList .student-task-teacher-note-text{
  color:#323a4c!important;
  opacity:1!important;
  font-size:13.5px!important;
  line-height:1.62!important;
}

#studentTaskStepList .student-task-summary{
  position:relative;
  padding:18px 20px 20px 14px;
  background:#fff;
  border:0;
}
#studentTaskStepList .student-task-summary[hidden]{
  display:none!important;
}
#studentTaskStepList .student-task-summary::before{
  content:"";
  position:absolute;
  left:66px;
  right:0;
  top:0;
  border-top:1px solid var(--line);
}
#studentTaskStepList .student-task-summary-head{
  padding:0 0 14px 60px;
}
#studentTaskStepList .student-task-summary-head h3{
  margin:0;
  color:var(--text);
  font-size:15px;
  line-height:1.35;
  font-weight:800;
}
#studentTaskStepList .student-task-summary-events{
  display:block;
}
#studentTaskStepList .student-task-summary-event{
  position:relative!important;
  display:grid!important;
  grid-template-columns:40px minmax(0,1fr)!important;
  column-gap:20px!important;
  align-items:center!important;
  padding:8px 0!important;
}
#studentTaskStepList .student-task-summary-event[hidden]{
  display:none!important;
}
#studentTaskStepList .student-task-summary-event > :not(.task-timeline-event-icon){
  grid-column:2!important;
  min-width:0;
}
#studentTaskStepList .task-timeline-event-icon.is-summary-event{
  background:#fff2c8!important;
  color:#9a7119!important;
  border:0!important;
}
#studentTaskStepList .student-task-summary-copy{
  align-self:center;
  color:#4d5668;
  font-size:11.5px;
  line-height:1.5;
  font-weight:650;
}

@media(max-width:760px){
  #studentTaskStepList .student-task-summary{
    padding:16px 14px 18px 10px;
  }
  #studentTaskStepList .student-task-summary::before{
    left:62px;
  }
  #studentTaskStepList .student-task-summary-head{
    padding-left:50px;
  }
  #studentTaskStepList .student-task-summary-event{
    grid-template-columns:36px minmax(0,1fr)!important;
    column-gap:14px!important;
  }
}

/* v292 — resolved problem label + summary timeline continuity */
#studentTaskStepList .student-task-message-bubble.student.problem.problem-resolved .student-task-problem-label-icon,
#studentTaskStepList .student-task-message-bubble.problem-resolved .student-task-problem-label-icon{
  width:20px!important;
  height:20px!important;
  flex:0 0 20px!important;
  display:grid!important;
  place-items:center!important;
  border-radius:50%!important;
  background:#fff!important;
  color:#2f8f68!important;
  opacity:1!important;
}
#studentTaskStepList .student-task-message-bubble.problem-resolved .student-task-problem-label-icon .dashicons{
  width:13px!important;
  height:13px!important;
  font-size:13px!important;
  line-height:13px!important;
  color:#2f8f68!important;
  opacity:1!important;
}
#studentTaskStepList .student-task-message-bubble.problem-resolved .student-task-problem-label{
  opacity:1!important;
}

/* v293 — summary must not mask the canonical global timeline.
   The step/card below already provides the white surface; keeping this section
   transparent lets the single SVG axis continue from the last step event into
   the summary clock/star nodes. */
#studentTaskStepList .student-task-summary{
  background:transparent!important;
}
#studentTaskStepList .student-task-summary-head,
#studentTaskStepList .student-task-summary-events,
#studentTaskStepList .student-task-summary-event,
#studentTaskStepList .student-task-summary-copy{
  position:relative!important;
  z-index:4!important;
  background:transparent!important;
}
#studentTaskStepList .student-task-summary::before{
  z-index:6!important;
}
#studentTaskStepList .student-task-summary-event .task-timeline-event-icon{
  z-index:60!important;
}

/* v294 — closed/graded task overview navigator */
.student-task-progress-dock .task-content-step-switch-btn.is-overview-hidden{
  display:none!important;
}

/* v295 — reactions are interactive only in the currently open step */
#studentTaskStepList .student-task-message-interaction.is-reaction-readonly .student-task-reaction-picker{
  display:none!important;
}
#studentTaskStepList .student-task-message-interaction.is-reaction-readonly .student-task-reaction-chip{
  cursor:default!important;
  pointer-events:none!important;
}

/* v295 — teacher perspective aligned with the current student task workflow */

#studentAssignmentWorkflowView .review-step-row{
  grid-template-columns:40px minmax(0,1fr)!important;
  cursor:pointer!important;
}
#studentAssignmentWorkflowView .review-step-item.expanded > .review-step-row{
  cursor:default!important;
}

#studentAssignmentWorkflowView .review-step-detail{
  padding:0!important;
  border-top:1px solid var(--line)!important;
  background:#fff!important;
}
#studentAssignmentWorkflowView .task-expanded-content-node{
  display:block!important;
  padding:22px 22px 18px 76px!important;
}
#studentAssignmentWorkflowView .task-teacher-info-announcement{
  margin:22px 0 0!important;
  padding:15px 17px!important;
  border:1px solid #d9dee7!important;
  border-radius:9px!important;
  background:#f6f7f9!important;
  color:#4d586b!important;
}
#studentAssignmentWorkflowView .task-teacher-info-title{
  color:#4f5a6d!important;
}
#studentAssignmentWorkflowView .task-teacher-info-title > .dashicons{
  display:none!important;
}
#studentAssignmentWorkflowView .task-teacher-info-display{
  color:#4d586b!important;
  opacity:1!important;
}

#studentAssignmentWorkflowView .task-step-help-shell.teacher-consultation-v295{
  border:0!important;
  border-top:1px solid var(--line)!important;
  border-radius:0!important;
  background:transparent!important;
  margin:4px 22px 0 76px!important;
  padding:20px 0 0!important;
}

#studentAssignmentWorkflowView .teacher-v295-consultation-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  margin:0 0 16px;
}
#studentAssignmentWorkflowView .teacher-v295-consultation-head h3{
  margin:0;
  color:var(--text);
  font-size:17px;
  line-height:1.35;
  font-weight:800;
}
#studentAssignmentWorkflowView .teacher-v295-consultation-count{
  color:#6f7a8e;
  font-size:11px;
  font-weight:700;
}
#studentAssignmentWorkflowView .teacher-conversation-empty{
  display:none!important;
}

#studentAssignmentWorkflowView .teacher-message-row{
  position:relative!important;
  display:grid!important;
  grid-template-columns:44px minmax(0,1fr)!important;
  gap:18px!important;
  align-items:start!important;
  margin:0 0 16px!important;
  padding:0!important;
}
#studentAssignmentWorkflowView .teacher-message-row::before{
  content:"";
  width:36px;
  height:36px;
  grid-column:1;
  grid-row:1;
  align-self:start;
  justify-self:center;
  border-radius:8px;
  background:#edf3ff;
  color:#5279bb;
  box-shadow:inset 0 0 0 1px rgba(82,121,187,.04);
}
#studentAssignmentWorkflowView .teacher-message-row.other:has(.problem-report:not(.problem-resolved))::before{
  background:#fdecee;
}
#studentAssignmentWorkflowView .teacher-message-row > *{
  grid-column:2!important;
}
#studentAssignmentWorkflowView .teacher-message-row.mine > .teacher-message-bubble,
#studentAssignmentWorkflowView .teacher-message-row.mine > .own-message-actions{
  justify-self:end!important;
}
#studentAssignmentWorkflowView .teacher-message-bubble{
  max-width:min(78%,720px)!important;
}
#studentAssignmentWorkflowView .teacher-v295-actions{
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:10px;
  margin:18px 22px 22px 76px;
  padding-top:16px;
  border-top:1px solid var(--line);
}
#studentAssignmentWorkflowView .teacher-v295-actions .btn{
  min-height:38px!important;
  background:#fff!important;
  color:#344158!important;
  border-color:#d5dbe5!important;
  box-shadow:none!important;
  font-weight:700!important;
}
#studentAssignmentWorkflowView .teacher-v295-actions .btn:hover{
  background:#f7f8fa!important;
  border-color:#bcc6d5!important;
}
#studentAssignmentWorkflowView .teacher-v295-actions .btn-icon{
  margin-right:5px!important;
}
#studentAssignmentWorkflowView .teacher-v295-actions .teacher-v295-resolve .student-task-step-action-icon{
  margin-right:6px!important;
}
#studentAssignmentWorkflowView .message-interaction-wrap.is-reaction-readonly .message-reaction-picker{
  display:none!important;
}
#studentAssignmentWorkflowView .message-interaction-wrap.is-reaction-readonly .message-reaction-chip{
  cursor:default!important;
  pointer-events:none!important;
}

.teacher-v295-message-modal{
  width:min(720px,calc(100vw - 32px))!important;
  max-height:min(84vh,760px)!important;
  overflow:auto!important;
}
.teacher-v295-message-modal-head{
  display:grid;
  justify-items:center;
  text-align:center;
  gap:5px;
  margin-bottom:18px;
}
.teacher-v295-message-modal-icon{
  width:48px;
  height:48px;
  display:grid;
  place-items:center;
  border-radius:12px;
  background:#edf3ff;
  color:#5279bb;
  margin-bottom:3px;
}
.teacher-v295-message-modal-icon .dashicons{
  width:22px;
  height:22px;
  font-size:22px;
  line-height:22px;
}
.teacher-v295-message-modal-kicker{
  color:#344158;
  font-size:11px;
  font-weight:850;
  letter-spacing:.045em;
}
.teacher-v295-message-modal-step{
  color:var(--text);
  font-size:16px;
  font-weight:800;
}
.teacher-v295-message-modal-task{
  color:#7a8496;
  font-size:11px;
}
#teacherV295ComposerHost .teacher-conversation-composer{
  display:block!important;
  margin:0!important;
  padding:0!important;
  border:0!important;
}
#teacherV295ComposerHost .teacher-conversation-composer > label{
  display:none!important;
}
#teacherV295ComposerHost .teacher-conversation-composer textarea{
  min-height:116px!important;
}
#teacherV295ComposerHost .teacher-conversation-compose-actions{
  justify-content:center!important;
  gap:10px!important;
  margin-top:18px!important;
}
#teacherV295ComposerHost .teacher-send-message{
  min-width:112px;
}
#teacherV295ModalCancel{
  min-width:102px;
}

/* Teacher timeline is solid, matching the student's visual language. */
#studentAssignmentWorkflowView .review-step-item:not(:last-child)::after,
#studentAssignmentWorkflowView .review-step-item.expanded:last-child::after,
#studentAssignmentWorkflowView .task-timeline-message-event::after,
#studentAssignmentWorkflowView .task-timeline-composer-event::before{
  border-left-style:solid!important;
}

@media(max-width:760px){
  #studentAssignmentWorkflowView .task-expanded-content-node{
    padding:18px 14px 16px 62px!important;
  }
  #studentAssignmentWorkflowView .task-step-help-shell.teacher-consultation-v295,
  #studentAssignmentWorkflowView .teacher-v295-actions{
    margin-left:62px!important;
    margin-right:14px!important;
  }
  #studentAssignmentWorkflowView .teacher-message-row{
    grid-template-columns:38px minmax(0,1fr)!important;
    gap:12px!important;
  }
  #studentAssignmentWorkflowView .teacher-v295-actions{
    align-items:stretch;
    flex-direction:column;
  }
  #studentAssignmentWorkflowView .teacher-v295-actions .btn{
    width:100%;
    justify-content:center;
  }
  #teacherV295ComposerHost .message-camera-trigger{
    display:inline-flex!important;
  }
}
@media(min-width:761px){
  #teacherV295ComposerHost .message-camera-trigger{
    display:none!important;
  }
}

/* v296 — teacher task view uses the same visual system as student-task */
#studentAssignmentWorkflowView{
  position:relative!important;
  isolation:isolate!important;
  padding:0!important;
  overflow:visible!important;
  border:1px solid var(--line)!important;
  border-radius:9px!important;
  background:#fff!important;
}
#studentAssignmentWorkflowView .review-step-item{
  position:relative!important;
  z-index:1!important;
  border-bottom:0!important;
  background:transparent!important;
}
#studentAssignmentWorkflowView .review-step-item:not(:last-child)::before{
  content:"";
  position:absolute;
  z-index:6;
  left:66px;
  right:0;
  bottom:0;
  border-bottom:1px solid var(--line);
  pointer-events:none;
}
#studentAssignmentWorkflowView .review-step-item::after,
#studentAssignmentWorkflowView .review-step-item:not(:last-child)::after,
#studentAssignmentWorkflowView .review-step-item.expanded::after{
  display:none!important;
  content:none!important;
}
#studentAssignmentWorkflowView .review-step-row{
  min-height:72px!important;
  display:grid!important;
  grid-template-columns:40px minmax(0,1fr)!important;
  align-items:center!important;
  gap:12px!important;
  padding:12px 14px!important;
  background:transparent!important;
  cursor:pointer!important;
  position:relative!important;
  z-index:3!important;
}
#studentAssignmentWorkflowView .review-step-item.expanded>.review-step-row{
  cursor:default!important;
}
#studentAssignmentWorkflowView .review-step-row:hover{
  background:linear-gradient(to right,transparent 0 74px,#f7f8fa 74px 100%)!important;
}
#studentAssignmentWorkflowView .review-step-state{
  width:36px!important;
  height:36px!important;
  display:grid!important;
  place-items:center!important;
  border-radius:8px!important;
  position:relative!important;
  z-index:60!important;
  isolation:isolate!important;
}
#studentAssignmentWorkflowView .review-step-main strong{
  font-size:13.5px!important;
  line-height:1.35!important;
  font-weight:780!important;
  color:var(--text)!important;
}
#studentAssignmentWorkflowView .review-step-row-actions{
  display:none!important;
}
#studentAssignmentWorkflowView .review-step-detail{
  padding:0!important;
  border-top:0!important;
  background:transparent!important;
  position:relative!important;
  z-index:3!important;
}
#studentAssignmentWorkflowView .review-step-detail[hidden]{display:none!important;}
#studentAssignmentWorkflowView .review-step-detail::before{
  content:"";
  position:absolute;
  z-index:6;
  left:66px;
  right:0;
  top:0;
  border-top:1px solid var(--line);
  pointer-events:none;
}
#studentAssignmentWorkflowView .task-expanded-content-node{
  display:block!important;
  padding:20px 20px 18px 66px!important;
  background:transparent!important;
  position:relative!important;
  z-index:4!important;
}
#studentAssignmentWorkflowView .task-step-expanded-title{display:none!important;}
#studentAssignmentWorkflowView .task-step-expanded-body,
#studentAssignmentWorkflowView .task-step-expanded-body p,
#studentAssignmentWorkflowView .task-step-expanded-body li{
  font-size:14.5px!important;
  line-height:1.72!important;
}

/* Teacher information: same neutral box used in student view, with teacher edit action. */
#studentAssignmentWorkflowView .task-teacher-info-announcement{
  margin:20px 0 0!important;
  padding:15px 16px!important;
  border:1px solid #d9dee7!important;
  border-radius:9px!important;
  background:#f5f6f8!important;
  color:#4d586b!important;
}
#studentAssignmentWorkflowView .task-teacher-info-title{
  color:#4f5a6d!important;
  font-size:12px!important;
}
#studentAssignmentWorkflowView .task-teacher-info-title>.dashicons{display:none!important;}
#studentAssignmentWorkflowView .task-teacher-info-display{
  color:#4d586b!important;
  opacity:1!important;
  font-size:13.5px!important;
  line-height:1.65!important;
}

/* Consultation = exact student layout language. */
#studentAssignmentWorkflowView .task-step-help-header-row{display:none!important;}
#studentAssignmentWorkflowView .task-step-help-shell.teacher-consultation-v295{
  position:relative!important;
  margin:0!important;
  padding:18px 20px 20px 14px!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
}
#studentAssignmentWorkflowView .task-step-help-shell.teacher-consultation-v295::before{
  content:"";
  position:absolute;
  left:66px;
  right:0;
  top:0;
  border-top:1px solid var(--line);
  z-index:6;
  pointer-events:none;
}
#studentAssignmentWorkflowView .task-step-help-shell.teacher-consultation-v295 .task-step-help-body{
  display:block!important;
  padding:0!important;
  background:transparent!important;
}
#studentAssignmentWorkflowView .teacher-v295-consultation-head{
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:16px!important;
  margin:0!important;
  padding:0 0 14px 52px!important;
}
#studentAssignmentWorkflowView .teacher-v295-consultation-head h3{
  margin:0!important;
  color:var(--text)!important;
  font-size:15px!important;
  line-height:1.35!important;
  font-weight:800!important;
}
#studentAssignmentWorkflowView .teacher-v295-consultation-count{
  flex:0 0 auto;
  color:#6f7a8e!important;
  font-size:11px!important;
  font-weight:700!important;
}
#studentAssignmentWorkflowView .teacher-conversation-empty,
#studentAssignmentWorkflowView .teacher-conversation-composer{display:none!important;}
#studentAssignmentWorkflowView .teacher-conversation-messages{
  display:block!important;
  margin:0!important;
  padding:0!important;
}
#studentAssignmentWorkflowView .teacher-message-row{
  position:relative!important;
  display:grid!important;
  grid-template-columns:40px minmax(0,1fr)!important;
  gap:12px!important;
  align-items:start!important;
  margin:0!important;
  padding:8px 0!important;
  background:transparent!important;
}
#studentAssignmentWorkflowView .teacher-message-row::before{
  display:none!important;
  content:none!important;
}
#studentAssignmentWorkflowView .teacher-message-row>.task-timeline-event-icon{
  grid-column:1!important;
  width:36px!important;
  height:36px!important;
  display:grid!important;
  place-items:center!important;
  border:0!important;
  border-radius:8px!important;
  background:#eef3ff!important;
  color:#4f72b5!important;
  position:relative!important;
  z-index:60!important;
  isolation:isolate!important;
}
#studentAssignmentWorkflowView .teacher-message-row>.task-timeline-event-icon.is-problem{
  background:#fdecee!important;
  color:#c43745!important;
}
#studentAssignmentWorkflowView .teacher-message-row>.task-timeline-event-icon .dashicons{
  width:18px!important;
  height:18px!important;
  font-size:18px!important;
  line-height:18px!important;
}
#studentAssignmentWorkflowView .teacher-message-row>:not(.task-timeline-event-icon){
  grid-column:2!important;
  min-width:0!important;
}



#studentAssignmentWorkflowView .teacher-message-bubble{
  min-width:180px!important;
  max-width:100%!important;
}
#studentAssignmentWorkflowView .teacher-message-time{display:none!important;}

#studentAssignmentWorkflowView .teacher-v295-actions{
  display:flex!important;
  align-items:center!important;
  justify-content:flex-start!important;
  flex-wrap:wrap!important;
  gap:8px!important;
  margin:0!important;
  padding:14px 20px 20px 66px!important;
  border-top:0!important;
  background:transparent!important;
}
#studentAssignmentWorkflowView .teacher-v295-actions .btn{
  min-height:38px!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:8px!important;
  background:#fff!important;
  color:#344158!important;
  border-color:#d5dbe5!important;
  box-shadow:none!important;
  font-weight:700!important;
}
#studentAssignmentWorkflowView .teacher-v295-actions .btn:hover,
#studentAssignmentWorkflowView .teacher-v295-actions .btn:focus-visible{
  background:#f7f8fa!important;
  border-color:#bcc6d5!important;
}
#studentAssignmentWorkflowView .teacher-v295-actions .btn-icon{
  width:17px!important;
  height:17px!important;
  margin:0 2px 0 0!important;
  flex:0 0 17px!important;
  font-size:17px!important;
  line-height:17px!important;
}

/* One canonical line, same axis as student. */
#studentAssignmentWorkflowView .teacher-v296-global-timeline-svg{
  position:absolute!important;
  inset:0 auto auto 0!important;
  width:100%!important;
  height:100%!important;
  overflow:visible!important;
  pointer-events:none!important;
  z-index:0!important;
}
#studentAssignmentWorkflowView .teacher-v296-global-timeline-svg line{vector-effect:non-scaling-stroke;}
#studentAssignmentWorkflowView .task-timeline-message-event::after,
#studentAssignmentWorkflowView .task-timeline-composer-event::before{
  display:none!important;
  content:none!important;
}

/* Teacher composer modal mirrors the student modal. */
.teacher-v295-message-modal{
  width:min(660px,calc(100vw - 32px))!important;
  max-height:calc(100vh - 48px)!important;
  overflow:auto!important;
  box-sizing:border-box!important;
  padding:26px!important;
  border:1px solid #dfe3ea!important;
  border-radius:12px!important;
  background:#fff!important;
}
.teacher-v295-message-modal-head{
  display:flex!important;
  flex-direction:column!important;
  align-items:center!important;
  text-align:center!important;
  gap:5px!important;
  margin-bottom:18px!important;
}
.teacher-v295-message-modal-icon{
  width:52px!important;
  height:52px!important;
  border-radius:12px!important;
  background:#eef3ff!important;
  color:#4f72b5!important;
  margin-bottom:7px!important;
}
.teacher-v295-message-modal-kicker{
  color:#596275!important;
  font-size:10.5px!important;
  font-weight:850!important;
  letter-spacing:.055em!important;
}
.teacher-v295-message-modal-step{font-size:19px!important;font-weight:820!important;}
.teacher-v295-message-modal-task{font-size:11.5px!important;color:#7b8495!important;}
#teacherV295ComposerHost .teacher-conversation-composer textarea{min-height:128px!important;}
#teacherV295ComposerHost .teacher-conversation-compose-actions{
  justify-content:center!important;
  gap:8px!important;
  margin-top:18px!important;
  padding-top:16px!important;
  border-top:1px solid var(--line)!important;
}

@media(max-width:760px){
  #studentAssignmentWorkflowView .review-step-item:not(:last-child)::before,
  #studentAssignmentWorkflowView .review-step-detail::before,
  #studentAssignmentWorkflowView .task-step-help-shell.teacher-consultation-v295::before{left:62px!important;}
  #studentAssignmentWorkflowView .task-expanded-content-node{padding:18px 14px 16px 54px!important;}
  #studentAssignmentWorkflowView .task-step-help-shell.teacher-consultation-v295{padding:16px 12px 18px 10px!important;}
  #studentAssignmentWorkflowView .teacher-v295-consultation-head{padding-left:52px!important;}
  #studentAssignmentWorkflowView .teacher-message-row{grid-template-columns:36px minmax(0,1fr)!important;gap:9px!important;}
  #studentAssignmentWorkflowView .teacher-message-row>.task-timeline-event-icon{width:32px!important;height:32px!important;}
  #studentAssignmentWorkflowView .teacher-v295-actions{padding:14px 12px 18px 62px!important;flex-direction:column!important;align-items:stretch!important;}
  #studentAssignmentWorkflowView .teacher-v295-actions .btn{width:100%!important;}
}
#studentAssignmentWorkflowView .teacher-message-row > .task-timeline-event-icon:not(.teacher-v296-event-icon){display:none!important;}
#studentAssignmentWorkflowView .task-teacher-info-announcement.is-empty-teacher-info .task-teacher-info-display{color:#6f7a8e!important;}
#studentAssignmentWorkflowView>.review-step-list,
#studentAssignmentWorkflowView .review-step-list{
  padding:0!important;
  margin:0!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  overflow:visible!important;
}

/* v297 — teacher task view uses the exact student consultation component */
.teacher-consultation-modal-overlay.visible{display:flex!important;}
.teacher-consultation-modal{
  width:min(660px,calc(100vw - 32px))!important;
  max-height:calc(100vh - 48px)!important;
  overflow:auto!important;
  padding:26px!important;
  border:1px solid #dfe3ea!important;
  border-radius:12px!important;
  background:#fff!important;
  box-shadow:0 24px 70px rgba(15,23,42,.24)!important;
}
.teacher-consultation-modal .student-consultation-modal-hero{padding:0 36px 20px!important;}
.teacher-consultation-modal .student-consultation-modal-icon{
  width:52px!important;height:52px!important;display:grid!important;place-items:center!important;
  margin-bottom:12px!important;border-radius:12px!important;background:#eef3ff!important;color:#4f72b5!important;
}
.teacher-consultation-modal .student-consultation-modal-icon .dashicons{width:24px!important;height:24px!important;font-size:24px!important;line-height:24px!important;}
.teacher-consultation-modal .student-consultation-modal-eyebrow{font-size:10.5px!important;line-height:1.35!important;font-weight:850!important;letter-spacing:.055em!important;color:#596275!important;}
.teacher-consultation-modal .student-consultation-modal-step{margin-top:5px!important;font-size:19px!important;line-height:1.3!important;font-weight:820!important;color:var(--text)!important;}
.teacher-consultation-modal .student-consultation-modal-task{margin-top:3px!important;font-size:11.5px!important;line-height:1.45!important;font-weight:600!important;color:#7b8495!important;}
.teacher-consultation-composer{padding:0!important;border:0!important;}
.teacher-consultation-composer>textarea{
  display:block!important;width:100%!important;max-width:none!important;min-height:128px!important;
  box-sizing:border-box!important;margin:0!important;padding:11px 12px!important;border:1px solid #d7dce5!important;
  border-radius:7px!important;background:#fff!important;color:var(--text)!important;font:inherit!important;font-size:13px!important;
  line-height:1.55!important;resize:vertical!important;
}
.teacher-consultation-composer .message-media-block{margin-top:10px!important;}
.teacher-consultation-modal .student-consultation-modal-actions{display:flex!important;justify-content:center!important;align-items:center!important;gap:10px!important;margin-top:18px!important;padding-top:16px!important;border-top:1px solid var(--line)!important;}
.teacher-consultation-modal .student-consultation-modal-actions .btn{min-width:96px!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:7px!important;}

@media(min-width:761px){
  .teacher-consultation-composer{
    display:grid!important;grid-template-columns:auto minmax(220px,1fr)!important;
    align-items:center!important;column-gap:10px!important;row-gap:10px!important;
  }
  .teacher-consultation-composer>textarea{grid-column:1/-1!important;grid-row:1!important;}
  .teacher-consultation-composer .message-media-block{display:contents!important;}
  .teacher-consultation-composer .message-media-actions{grid-column:1!important;grid-row:2!important;display:flex!important;width:auto!important;align-items:center!important;gap:8px!important;margin:0!important;}
  .teacher-consultation-composer .message-media-actions .message-photo-trigger{display:inline-flex!important;width:auto!important;min-width:0!important;min-height:40px!important;height:40px!important;margin:0!important;white-space:nowrap!important;}
  .teacher-consultation-composer .message-media-actions .message-camera-trigger{display:none!important;}
  .teacher-consultation-composer .message-youtube-input{grid-column:2!important;grid-row:2!important;width:100%!important;min-width:0!important;height:40px!important;margin:0!important;}
  .teacher-consultation-composer .message-youtube-error{grid-column:1/-1!important;grid-row:3!important;width:100%!important;}
  .teacher-consultation-composer .message-attachment-preview{grid-column:1/-1!important;grid-row:4!important;width:100%!important;max-width:none!important;}
}
@media(max-width:760px){
  .teacher-consultation-modal{width:min(100% - 20px,660px)!important;max-height:calc(100vh - 20px)!important;padding:20px 16px 16px!important;border-radius:10px!important;}
  .teacher-consultation-modal .student-consultation-modal-hero{padding-left:28px!important;padding-right:28px!important;}
  .teacher-consultation-composer{display:block!important;}
  .teacher-consultation-composer .message-media-block{display:block!important;margin-top:10px!important;}
  .teacher-consultation-composer .message-media-actions{display:flex!important;flex-wrap:wrap!important;gap:8px!important;margin-bottom:8px!important;}
  .teacher-consultation-composer .message-media-actions .message-camera-trigger{display:inline-flex!important;}
  .teacher-consultation-composer .message-youtube-input{width:100%!important;}
  .teacher-consultation-modal .student-consultation-modal-actions{position:sticky!important;bottom:0!important;margin-left:-16px!important;margin-right:-16px!important;margin-bottom:-16px!important;padding:12px 16px 16px!important;background:#fff!important;}
}

/* Teacher consultation body: same geometry as the student view. */
#studentAssignmentWorkflowView .task-step-help-shell.teacher-consultation-v295{
  padding:18px 20px 20px 14px!important;background:#fff!important;
}
#studentAssignmentWorkflowView .teacher-v295-consultation-head{padding:0 0 14px 52px!important;}
#studentAssignmentWorkflowView .teacher-message-row{
  display:grid!important;grid-template-columns:40px minmax(0,1fr)!important;gap:12px!important;
  align-items:start!important;margin:0!important;padding:8px 0!important;background:transparent!important;
}
#studentAssignmentWorkflowView .teacher-message-row::before,
#studentAssignmentWorkflowView .teacher-message-row::after{display:none!important;content:none!important;}
#studentAssignmentWorkflowView .teacher-message-row>.teacher-v296-event-icon{
  grid-column:1!important;grid-row:1!important;width:36px!important;height:36px!important;border-radius:8px!important;
  display:grid!important;place-items:center!important;border:0!important;background:#eef3ff!important;color:#4f72b5!important;
  position:relative!important;z-index:80!important;isolation:isolate!important;
}
#studentAssignmentWorkflowView .teacher-message-row>.teacher-v296-event-icon.is-problem{background:#fdecee!important;color:#c43745!important;}
#studentAssignmentWorkflowView .teacher-message-row>.teacher-v296-event-icon .dashicons{width:18px!important;height:18px!important;font-size:18px!important;line-height:18px!important;}
#studentAssignmentWorkflowView .teacher-message-row>:not(.teacher-v296-event-icon){grid-column:2!important;min-width:0!important;}
#studentAssignmentWorkflowView .teacher-message-row.mine>.teacher-message-bubble,
#studentAssignmentWorkflowView .teacher-message-row.mine>.own-message-actions{justify-self:end!important;}
#studentAssignmentWorkflowView .teacher-message-row.mine>.teacher-message-bubble{width:fit-content!important;max-width:min(78%,680px)!important;}
#studentAssignmentWorkflowView .teacher-message-row.other>.message-interaction-wrap,
#studentAssignmentWorkflowView .teacher-message-row.other>.teacher-message-bubble{justify-self:start!important;width:fit-content!important;max-width:min(78%,680px)!important;}
#studentAssignmentWorkflowView .teacher-v295-actions{padding:14px 20px 20px 66px!important;gap:8px!important;}

/* No obsolete icon/composer artifacts from the previous teacher implementation. */
#studentAssignmentWorkflowView .teacher-message-row>.task-timeline-event-icon:not(.teacher-v296-event-icon){display:none!important;}
#studentAssignmentWorkflowView .teacher-conversation-composer{display:none!important;}
.teacher-consultation-modal #teacherV295ComposerHost{display:grid!important;}


/* v298 — unified task body replacement below breadcrumbs */
.unified-task-view{padding:34px 32px 120px!important;}
.unified-task-view .unified-task-step-list{position:relative;overflow:visible!important;}
.unified-task-view .unified-task-step{position:relative;z-index:2;}
.unified-task-view .unified-task-step-row{cursor:pointer;}
.unified-task-view .unified-task-step-row:hover{background:#f7f8fa!important;}
.unified-task-view .unified-task-step-detail{padding:0!important;background:#fff!important;}
.unified-task-step-content{padding:26px 28px 22px 66px;font-size:14.5px;line-height:1.72;}
.unified-task-step-content p{font-size:14.5px;line-height:1.72;margin:0 0 16px;}
.unified-task-step-content .catalog-media-placeholder{margin:18px 0;}
.unified-task-step-content .task-video-embed{margin:18px 0;}
.unified-teacher-note{margin:4px 28px 22px 66px!important;background:#f4f6f8!important;border:1px solid #dfe4eb!important;color:#394358!important;}
.unified-teacher-note-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:8px;}
.unified-teacher-note-head strong{font-size:12px;font-weight:800;color:#505a6d;}
.unified-teacher-note-text{font-size:13.5px;line-height:1.6;color:#3d4658;}
.unified-consultation,.unified-task-summary{margin:0 28px 0 66px!important;border-top:1px solid var(--line)!important;padding:20px 0 0!important;background:transparent!important;}
.unified-consultation .student-step-consultation-head,.unified-task-summary .student-task-summary-head{padding:0 0 14px!important;}
.unified-consultation .student-task-message-list{padding:0!important;}
.unified-consultation .task-timeline-message-event{grid-template-columns:40px minmax(0,1fr)!important;gap:18px!important;}
.unified-consultation .student-task-message-row.student-side>.student-task-own-message-stack{justify-self:end!important;}
.unified-step-actions{margin:18px 28px 26px 66px!important;padding-top:16px;border-top:1px solid var(--line);display:flex;gap:10px;flex-wrap:wrap;}
.unified-step-actions .btn{font-size:12.5px!important;font-weight:700!important;}
.unified-global-timeline{position:absolute;inset:0;z-index:1;pointer-events:none;overflow:visible;}
.unified-task-view .task-step-list-state,.unified-task-view .task-timeline-event-icon{position:relative;z-index:5!important;background-clip:padding-box;}
.unified-task-dock{z-index:80!important;}
.unified-preview-view .unified-teacher-note{margin-bottom:28px!important;}
.unified-preview-view .unified-consultation,.unified-preview-view .unified-task-summary,.unified-preview-view .unified-step-actions{display:none!important;}
.teacher-unified-task-view .student-task-message-bubble.teacher{background:#4b5175!important;border-color:#4b5175!important;color:#fff!important;}
.teacher-unified-task-view .student-task-message-bubble.teacher p,.teacher-unified-task-view .student-task-message-bubble.teacher .student-task-message-author{color:#fff!important;}
.teacher-unified-task-view .student-task-message-bubble.student{background:#f7f8fa!important;border-color:#dfe3ea!important;color:#323a4c!important;}
.teacher-unified-task-view .student-task-message-bubble.student p{color:#323a4c!important;}
.teacher-unified-task-view .student-task-message-row.teacher-side{justify-content:flex-end!important;}
.teacher-unified-task-view .student-task-message-row.student-side{justify-content:flex-start!important;}
@media(max-width:760px){.unified-task-view{padding:18px 10px 120px!important}.unified-task-step-content{padding:20px 14px 18px 54px}.unified-teacher-note,.unified-consultation,.unified-task-summary,.unified-step-actions{margin-left:54px!important;margin-right:14px!important}.unified-consultation .task-timeline-message-event{grid-template-columns:36px minmax(0,1fr)!important;gap:10px!important}}


/* v299 — teacher task uses the SAME step/list/consultation geometry as student-task.
   The source of truth is the studentTaskStepList shared styling; the rules here
   adjust teacher-specific note editing, own/other messages and top-level mode. */
.teacher-unified-task-view{min-width:0!important;max-width:100%!important;}
.teacher-unified-task-view .teacher-shared-task-step-list{position:relative!important;overflow:visible!important;isolation:isolate!important;background:#fff!important;}
.teacher-unified-task-view .teacher-shared-task-step-list .unified-task-step{position:relative!important;z-index:1!important;isolation:auto!important;background:transparent!important;}
.teacher-unified-task-view .teacher-shared-task-step-list .unified-task-step-detail{padding:0!important;border:0!important;background:transparent!important;}
.teacher-unified-task-view .teacher-shared-task-step-list .task-expanded-content-node{
  padding:20px 20px 18px 66px!important;
  display:block!important;background:transparent!important;
}
.teacher-unified-task-view .teacher-shared-task-step-list .unified-task-step-content{
  padding:0!important;margin:0!important;min-width:0!important;font-size:14.5px!important;line-height:1.72!important;
}
.teacher-unified-task-view .teacher-shared-task-step-list .unified-task-step-content p{font-size:14.5px!important;line-height:1.72!important;}
.teacher-unified-task-view .teacher-shared-task-step-list .unified-teacher-note{
  margin:22px 0 0!important;padding:17px 18px!important;background:#f4f6f8!important;
  border:1px solid #dfe4eb!important;border-radius:9px!important;color:#394358!important;
}
.teacher-unified-task-view .teacher-shared-task-step-list .unified-teacher-note-text{font-size:13.5px!important;line-height:1.65!important;color:#3d4658!important;}
.teacher-unified-task-view .teacher-shared-task-step-list .unified-consultation{
  position:relative!important;margin:0!important;padding:18px 20px 20px 14px!important;
  border:0!important;background:transparent!important;min-width:0!important;
}
.teacher-unified-task-view .teacher-shared-task-step-list .unified-consultation::before{
  content:"";position:absolute;top:0;left:66px;right:0;border-top:1px solid #e2e7ef;
  pointer-events:none;
}
.teacher-unified-task-view .teacher-shared-task-step-list .unified-consultation .student-step-consultation-head{
  padding:0 0 14px 60px!important;display:flex!important;justify-content:space-between!important;align-items:center!important;
}
.teacher-unified-task-view .teacher-shared-task-step-list .unified-consultation .student-step-consultation-head h3{
  font-size:15px!important;font-weight:800!important;margin:0!important;
}
.teacher-unified-task-view .teacher-shared-task-step-list .unified-consultation .student-conversation-count{flex:0 0 auto!important;}
.teacher-unified-task-view .teacher-shared-task-step-list .unified-consultation .unified-message-list{
  padding:0!important;display:block!important;min-width:0!important;
}
.teacher-unified-task-view .teacher-shared-task-step-list .unified-consultation .task-timeline-message-event{
  display:grid!important;grid-template-columns:40px minmax(0,1fr)!important;column-gap:20px!important;
  align-items:start!important;margin:0!important;padding:8px 0!important;max-width:100%!important;
}
.teacher-unified-task-view .teacher-shared-task-step-list .unified-consultation .task-timeline-event-icon{
  position:relative!important;width:36px!important;height:36px!important;min-width:36px!important;
  display:grid!important;place-items:center!important;border:0!important;border-radius:8px!important;
  background:#edf3ff!important;color:#4f72b5!important;z-index:60!important;isolation:isolate!important;
}
.teacher-unified-task-view .teacher-shared-task-step-list .unified-consultation .task-timeline-event-icon .dashicons{
  width:18px!important;height:18px!important;font-size:18px!important;line-height:18px!important;
}
.teacher-unified-task-view .teacher-shared-task-step-list .unified-consultation .task-timeline-message-event > :not(.task-timeline-event-icon){
  grid-column:2!important;min-width:0!important;
}
/* Teacher's own message is on the RIGHT, student message on the LEFT. */
.teacher-unified-task-view .teacher-shared-task-step-list .unified-consultation .teacher-side.task-timeline-message-event > .student-task-message-interaction{
  grid-column:2!important;justify-self:end!important;width:fit-content!important;max-width:min(78%,680px)!important;
}
.teacher-unified-task-view .teacher-shared-task-step-list .unified-consultation .student-side.task-timeline-message-event > .student-task-own-message-stack{
  grid-column:2!important;justify-self:start!important;width:fit-content!important;max-width:min(78%,680px)!important;
}
.teacher-unified-task-view .teacher-shared-task-step-list .unified-consultation .student-task-message-bubble{
  box-sizing:border-box;max-width:100%!important;min-width:0!important;padding:11px 13px 9px!important;
  border-radius:13px!important;word-break:break-word!important;
}
.teacher-unified-task-view .teacher-shared-task-step-list .unified-consultation .student-task-message-bubble.teacher{
  border-bottom-right-radius:5px!important;border-bottom-left-radius:13px!important;
}
.teacher-unified-task-view .teacher-shared-task-step-list .unified-consultation .student-task-message-bubble.student{
  border-bottom-left-radius:5px!important;border-bottom-right-radius:13px!important;
}
.teacher-unified-task-view .teacher-shared-task-step-list .unified-step-actions{
  position:relative!important;margin:0!important;padding:14px 20px 22px 74px!important;
  border-top:0!important;display:flex!important;gap:8px!important;flex-wrap:wrap!important;
  background:transparent!important;
}
.teacher-unified-task-view .teacher-shared-task-step-list .unified-step-actions .btn{
  display:inline-flex!important;align-items:center!important;justify-content:center!important;
  gap:8px!important;font-size:12.5px!important;font-weight:700!important;
}
.teacher-unified-task-view .teacher-shared-task-step-list .unified-step-actions .btn .btn-icon{margin:0!important;}
.teacher-unified-task-view .teacher-shared-task-step-list .unified-task-summary{
  margin:0!important;padding:18px 20px 20px 14px!important;border:0!important;background:transparent!important;
}
.teacher-unified-task-view .teacher-shared-task-step-list .unified-task-summary::before{
  content:"";position:absolute;top:0;left:66px;right:0;border-top:1px solid #e2e7ef;
}
.teacher-unified-task-view .teacher-shared-task-step-list .unified-task-summary .student-task-summary-head{padding-left:60px!important;}
.teacher-unified-task-view .teacher-shared-task-step-list .unified-global-timeline{
  position:absolute!important;inset:0 auto auto 0!important;z-index:0!important;
  width:100%!important;height:100%!important;pointer-events:none!important;overflow:visible!important;
}
.teacher-unified-task-view .teacher-shared-task-step-list .unified-task-step-row{
  background:transparent!important;position:relative!important;z-index:auto!important;cursor:pointer!important;
}
.teacher-unified-task-view .teacher-shared-task-step-list .unified-task-step-row:hover{
  background:linear-gradient(to right,transparent 0 74px,#f7f8fa 74px 100%)!important;
}
.teacher-unified-task-view .teacher-shared-task-step-list .task-step-list-state{
  position:relative!important;z-index:70!important;isolation:isolate!important;
}
.teacher-unified-task-view .teacher-shared-task-step-list .unified-task-step::before,
.teacher-unified-task-view .teacher-shared-task-step-list .unified-task-step::after{
  display:none!important;content:none!important;
}
.teacher-unified-task-view .teacher-shared-task-step-list .unified-task-step-detail[hidden],
.teacher-unified-task-view .teacher-shared-task-step-list .unified-consultation[hidden],
.teacher-unified-task-view .teacher-shared-task-step-list .unified-task-summary[hidden]{display:none!important;}
@media(max-width:760px){
 .teacher-unified-task-view .teacher-shared-task-step-list .task-expanded-content-node{padding:18px 14px 16px 54px!important;}
 .teacher-unified-task-view .teacher-shared-task-step-list .unified-consultation{padding:16px 14px 18px 10px!important;}
 .teacher-unified-task-view .teacher-shared-task-step-list .unified-consultation::before,
 .teacher-unified-task-view .teacher-shared-task-step-list .unified-task-summary::before{left:62px!important;}
 .teacher-unified-task-view .teacher-shared-task-step-list .unified-consultation .student-step-consultation-head{padding-left:50px!important;}
 .teacher-unified-task-view .teacher-shared-task-step-list .unified-consultation .task-timeline-message-event{grid-template-columns:36px minmax(0,1fr)!important;column-gap:14px!important;}
 .teacher-unified-task-view .teacher-shared-task-step-list .unified-step-actions{padding:14px 14px 20px 60px!important;}
 .teacher-unified-task-view .teacher-shared-task-step-list .unified-step-actions .btn{width:100%!important;}
}

/* v299.1 — student rules address roles from the student's perspective.
   In the teacher view those roles are inverted, and these ID-specific rules
   intentionally override the inherited student selectors. */
#studentTaskStepList.teacher-shared-task-step-list .student-task-message-row.teacher-side.task-timeline-message-event > .student-task-message-interaction{
  grid-column:2!important;
  justify-self:end!important;
  width:fit-content!important;
  max-width:min(78%,680px)!important;
  margin-left:auto!important;
  margin-right:0!important;
}
#studentTaskStepList.teacher-shared-task-step-list .student-task-message-row.student-side.task-timeline-message-event > .student-task-own-message-stack{
  grid-column:2!important;
  justify-self:start!important;
  width:fit-content!important;
  max-width:min(78%,680px)!important;
  margin-left:0!important;
  margin-right:auto!important;
}
#studentTaskStepList.teacher-shared-task-step-list .student-task-message-row.teacher-side.task-timeline-message-event,
#studentTaskStepList.teacher-shared-task-step-list .student-task-message-row.student-side.task-timeline-message-event{
  justify-content:stretch!important;
  width:100%!important;
}
/* Do not let default teacher-side message styles stretch outside the cell. */
#studentTaskStepList.teacher-shared-task-step-list .student-task-message-interaction,
#studentTaskStepList.teacher-shared-task-step-list .student-task-own-message-stack{
  box-sizing:border-box!important;
}
#studentTaskStepList.teacher-shared-task-step-list .student-task-message-bubble.teacher .student-task-message-time{
  color:rgba(255,255,255,.72)!important;
}
#studentTaskStepList.teacher-shared-task-step-list .unified-task-step:not(:last-child){
  border-bottom:1px solid #e5e9ef!important;
}
#studentTaskStepList.teacher-shared-task-step-list .unified-task-step-row{
  position:relative!important;
}
#studentTaskStepList.teacher-shared-task-step-list .unified-task-step.is-expanded > .unified-task-step-row::after{
  content:"";position:absolute;bottom:0;left:66px;right:0;border-bottom:1px solid #e2e7ef;
  pointer-events:none;
}
@media(max-width:760px){
 #studentTaskStepList.teacher-shared-task-step-list .student-task-message-row.teacher-side.task-timeline-message-event > .student-task-message-interaction,
 #studentTaskStepList.teacher-shared-task-step-list .student-task-message-row.student-side.task-timeline-message-event > .student-task-own-message-stack{
   max-width:100%!important;
 }
 #studentTaskStepList.teacher-shared-task-step-list .unified-task-step.is-expanded > .unified-task-step-row::after{left:62px;}
}
/* Teacher global event tooltip. */
.student-global-timeline-tooltip[hidden]{display:none!important;}
.teacher-unified-task-view .task-timeline-event-icon[data-time-tooltip]{cursor:help;}


/* v300 — student mobile consultation touch targets + consistent resolved check.
   Only the student modal is affected; teacher and desktop layouts stay intact. */
#studentTaskStepList .student-task-message-bubble.problem-resolved .student-task-problem-label-icon > .student-task-action-check{
  width:14px!important;
  height:14px!important;
  flex:0 0 14px!important;
  display:inline-grid!important;
  place-items:center!important;
  color:#2f8f68!important;
}
#studentTaskStepList .student-task-message-bubble.problem-resolved .student-task-problem-label-icon > .student-task-action-check::before{
  width:5px!important;
  height:8px!important;
  border-right:1.65px solid currentColor!important;
  border-bottom:1.65px solid currentColor!important;
}

@media(max-width:760px){
  /* Keep the checkbox comfortably above the footer separator, without margin collapse. */
  #studentConsultationModal .student-consultation-modal-composer{
    padding-bottom:12px!important;
  }
  /* Align the problem toggle with the attachment fields, just above the divider. */
  #studentConsultationModal .student-consultation-modal-composer .student-consultation-problem-row{
    display:flex!important;
    width:100%!important;
    box-sizing:border-box!important;
    min-height:48px!important;
    margin:10px 0 0!important;
    padding:0!important;
    align-items:center!important;
    justify-content:flex-start!important;
  }
  #studentConsultationModal .student-consultation-problem-row .student-task-problem-toggle:not([hidden]){
    display:flex!important;
    align-items:center!important;
    justify-content:flex-start!important;
    width:100%!important;
    min-height:48px!important;
    box-sizing:border-box!important;
    padding:8px 0!important;
    margin:0!important;
    gap:10px!important;
    line-height:1.4!important;
    font-size:12.5px!important;
  }
  #studentConsultationModal .student-consultation-problem-row .student-task-problem-toggle[hidden]{
    display:none!important;
  }
  /* One equal-width, thumb-friendly row rather than two differently sized buttons. */
  #studentConsultationModal .student-consultation-modal-actions{
    display:grid!important;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    align-items:stretch!important;
    justify-content:stretch!important;
    column-gap:10px!important;
    width:auto!important;
    box-sizing:border-box!important;
    margin-top:12px!important;
    padding:14px 16px max(16px,env(safe-area-inset-bottom))!important;
  }
  #studentConsultationModal .student-consultation-modal-actions > .btn,
  #studentConsultationModal .student-consultation-modal-actions > #studentTaskSendMessage{
    display:inline-flex!important;
    width:100%!important;
    min-width:0!important;
    height:52px!important;
    min-height:52px!important;
    box-sizing:border-box!important;
    padding:0 10px!important;
    margin:0!important;
    align-items:center!important;
    justify-content:center!important;
    gap:8px!important;
    font-size:14px!important;
    line-height:1.2!important;
    white-space:nowrap!important;
  }
}

/* v309 — closed step with an unresolved problem keeps the problem history
   local to that step: pre-problem events are green, post-problem events red. */
#studentTaskStepList .student-task-step-list-item.is-done .task-timeline-event-icon.is-step-event.is-problem,
#studentTaskStepList .student-task-step-list-item.is-done .task-timeline-event-icon.is-problem{
  background:#fdecee!important;
  color:#c43745!important;
}

/* v312 — historical problem state wins over generic lock/unlock event styling.
   A close/reopen event created while a problem was unresolved must remain red
   even after the step is reopened and therefore no longer has .is-done. */
#studentTaskStepList .task-timeline-event-icon.is-step-event.is-problem,
#studentTaskStepList .student-task-step-list-item.is-done .task-timeline-event-icon.is-step-event.is-problem{
  background:#fdecee!important;
  color:#c43745!important;
}

/* v313 — consultation heading, final-step lock icon, graded-summary star */
#studentTaskStepList .student-step-consultation-head{
  justify-content:flex-start!important;
}
#studentTaskStepList .student-step-consultation-head h3{
  font-size:13.5px!important;
  line-height:1.35!important;
  font-weight:760!important;
}
#studentTaskStepList .student-step-consultation-head .student-conversation-count{
  display:none!important;
}
#studentTaskView .student-task-action-lock,
#studentTaskStepList .student-task-action-lock{
  width:18px!important;
  height:18px!important;
  font-size:18px!important;
  line-height:18px!important;
}
#studentTaskStepList .student-task-summary-event.is-summary-teacher-rated .task-timeline-event-icon{
  background:#fffdf7!important;
  color:#e3a008!important;
  border:1px solid #eadfb2!important;
}
#studentTaskStepList .student-task-summary-event.is-summary-teacher-rated .task-timeline-event-icon .dashicons{
  color:#e3a008!important;
}


/* v314 — grade summary icon is a color-locked semantic event.
   It must NEVER inherit blue/green/red timeline state from the containing step. */
#studentTaskStepList .student-task-step-list-item .student-task-summary-event.is-summary-teacher-rated
  .task-timeline-event-icon.is-summary-event.is-grade-summary-locked[data-timeline-color-lock="grade"],
#studentTaskStepList .student-task-step-list-item.is-done .student-task-summary-event.is-summary-teacher-rated
  .task-timeline-event-icon.is-summary-event.is-grade-summary-locked[data-timeline-color-lock="grade"],
#studentTaskStepList .student-task-step-list-item:not(.is-done) .student-task-summary-event.is-summary-teacher-rated
  .task-timeline-event-icon.is-summary-event.is-grade-summary-locked[data-timeline-color-lock="grade"]{
  background:#fff8df!important;
  color:#e3a008!important;
  border:1px solid #efdda2!important;
  box-shadow:none!important;
}
#studentTaskStepList .student-task-summary-event.is-summary-teacher-rated
  .task-timeline-event-icon.is-grade-summary-locked[data-timeline-color-lock="grade"] .dashicons{
  color:#e3a008!important;
  opacity:1!important;
}

/* v315 — student own-task preview: visual parity with task view, without execution state */
.student-own-task-preview-v315{
  padding-bottom:110px!important;
}
.student-own-task-step-list-card{
  overflow:hidden;
  padding:0!important;
  border:1px solid var(--line)!important;
  background:#fff!important;
}
.student-own-task-step-item{
  position:relative;
  background:#fff;
}
.student-own-task-step-item + .student-own-task-step-item{
  border-top:1px solid var(--line);
}
.student-own-task-step-row{
  min-height:72px;
  display:flex;
  align-items:center;
  padding:0 22px;
  background:#fff;
  cursor:pointer;
  transition:background-color .14s ease;
}
.student-own-task-step-item:not(.is-expanded) > .student-own-task-step-row:hover{
  background:#f8f9fb;
}
.student-own-task-step-row:focus-visible{
  outline:2px solid rgba(79,114,181,.42);
  outline-offset:-2px;
}
.student-own-task-step-main{
  min-width:0;
  flex:1 1 auto;
}
.student-own-task-step-main strong{
  display:block;
  color:var(--text);
  font-size:15px;
  line-height:1.35;
  font-weight:800;
}
.student-own-task-step-detail{
  border-top:1px solid var(--line);
  padding:28px 24px 34px;
  background:#fff;
}
.student-own-task-step-detail[hidden]{display:none!important;}
.student-own-task-step-detail .student-own-task-step-source{
  margin:0!important;
  padding:0!important;
  border:0!important;
  background:transparent!important;
  box-shadow:none!important;
}
.student-own-task-step-detail .catalog-step-body{
  padding:0!important;
  margin:0!important;
}
.student-own-task-step-detail .task-content-sequence{
  max-width:none!important;
}
.student-own-task-step-detail::before,
.student-own-task-step-item::before,
.student-own-task-step-item::after,
.student-own-task-step-row::before,
.student-own-task-step-row::after{
  display:none!important;
  content:none!important;
}
.student-own-task-progress-dock .student-task-progress-summary{
  justify-content:flex-end!important;
}
.student-own-task-progress-dock #taskContentProgressFill,
.student-own-task-progress-dock .task-content-progress-fill{
  transition:width .38s cubic-bezier(.2,.72,.2,1), background-color .32s ease!important;
  animation:none!important;
}
.student-own-task-progress-dock .task-content-progress-fill::after{
  display:none!important;
  content:none!important;
  animation:none!important;
}
.student-own-task-progress-dock .student-task-progress-meta{
  align-items:center;
}

@media(max-width:760px){
  .student-own-task-preview-v315{padding-bottom:104px!important;}
  .student-own-task-step-row{
    min-height:64px;
    padding:0 16px;
  }
  .student-own-task-step-main strong{font-size:14px;}
  .student-own-task-step-detail{padding:22px 16px 28px;}
}


/* v316 — own-task preview uses the exact step-row geometry of the execution view,
   but remains a neutral, non-execution preview: no timeline and no state colours. */
.student-own-task-preview-v315 .student-own-task-step-row{
  min-height:72px!important;
  display:grid!important;
  grid-template-columns:40px minmax(0,1fr)!important;
  align-items:center!important;
  gap:12px!important;
  padding:12px 14px!important;
  background:#fff!important;
}
.student-own-task-preview-v315 .student-own-task-step-main strong{
  font-size:13.5px!important;
  line-height:1.35!important;
  font-weight:760!important;
  color:var(--text)!important;
}
.student-own-task-preview-v315 .student-own-task-step-state{
  width:36px!important;
  height:36px!important;
  display:grid!important;
  place-items:center!important;
  border-radius:8px!important;
  color:#9ba5b5!important;
  background:#f2f4f7!important;
  position:relative!important;
  z-index:2!important;
}
.student-own-task-preview-v315 .student-own-task-step-state .dashicons{
  width:18px!important;
  height:18px!important;
  font-size:18px!important;
  line-height:18px!important;
  color:#9ba5b5!important;
}
/* Expanded content keeps the same empty status/timeline gutter as an executable task,
   even though no timeline is drawn in this preview mode. */
.student-own-task-preview-v315 .student-own-task-step-detail{
  border-top:1px solid var(--line)!important;
  padding:20px 14px 24px 66px!important;
  background:#fff!important;
}
.student-own-task-preview-v315 .student-own-task-step-item + .student-own-task-step-item{
  border-top:0!important;
}
.student-own-task-preview-v315 .student-own-task-step-item:not(:last-child)::before{
  content:""!important;
  display:block!important;
  position:absolute!important;
  left:66px!important;
  right:0!important;
  bottom:0!important;
  border-bottom:1px solid var(--line)!important;
  pointer-events:none!important;
}
.student-own-task-preview-v315 .student-own-task-step-detail::before{
  content:none!important;
  display:none!important;
}
.student-own-task-preview-v315 .student-own-task-step-item::after,
.student-own-task-preview-v315 .student-own-task-step-row::before,
.student-own-task-preview-v315 .student-own-task-step-row::after{
  content:none!important;
  display:none!important;
}
@media(max-width:760px){
  .student-own-task-preview-v315 .student-own-task-step-row{
    min-height:64px!important;
    grid-template-columns:40px minmax(0,1fr)!important;
    gap:10px!important;
    padding:12px!important;
  }
  .student-own-task-preview-v315 .student-own-task-step-main strong{
    font-size:13.5px!important;
  }
  .student-own-task-preview-v315 .student-own-task-step-detail{
    padding:18px 12px 24px 62px!important;
  }
  .student-own-task-preview-v315 .student-own-task-step-item:not(:last-child)::before{
    left:62px!important;
  }
}


/* v317 — own-task preview card finish + exact student sidebar alignment */
.student-own-task-preview-v315{
  padding-bottom:136px!important;
}
.student-own-task-preview-v315 .student-own-task-step-list-card{
  border-radius:9px!important;
  overflow:hidden!important;
  margin-bottom:18px!important;
}
@media(max-width:760px){
  .student-own-task-preview-v315{
    padding-bottom:170px!important;
  }
  .student-own-task-preview-v315 .student-own-task-step-list-card{
    border-radius:9px!important;
    margin-bottom:16px!important;
  }
}

/* v318 — student-task uses the shared student sidebar geometry with no page-specific vertical offset. */


/* v319 — deterministic bottom breathing room for the non-execution own-task preview.
   Use a real flow spacer so the fixed dock cannot cover the card's lower edge. */
.student-own-task-preview-v315{
  padding-bottom:0!important;
}
.student-own-task-preview-v315 .student-own-task-step-list-card{
  margin-bottom:18px!important;
}
.student-own-task-bottom-spacer{
  display:block!important;
  width:100%!important;
  height:108px!important;
  flex:0 0 108px!important;
  pointer-events:none!important;
}
@media(max-width:760px){
  .student-own-task-preview-v315{
    padding-bottom:0!important;
  }
  .student-own-task-preview-v315 .student-own-task-step-list-card{
    margin-bottom:16px!important;
  }
  .student-own-task-bottom-spacer{
    height:108px!important;
    flex-basis:108px!important;
  }
}

/* v320 — closed-task grade reaction: inline emoji + floating picker */
.student-closed-evaluation-reaction-row{
  position:relative!important;
  display:flex!important;
  align-items:center!important;
  overflow:visible!important;
}
.student-closed-evaluation-rating,
.student-closed-evaluation-rating:hover,
.student-closed-evaluation-rating:focus,
.student-closed-evaluation-rating:focus-visible{
  cursor:pointer!important;
}
.student-closed-evaluation-rating .student-closed-evaluation-stars,
.student-closed-evaluation-rating .grade-star-icon{
  cursor:pointer!important;
}
.student-closed-evaluation-reaction-slot{
  width:auto!important;
  min-width:0!important;
  height:22px!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  flex:0 0 auto!important;
}
.student-closed-evaluation-reaction-slot .grade-reaction-inline{
  width:20px!important;
  min-width:20px!important;
  height:20px!important;
  padding:0!important;
  margin:0!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  box-shadow:none!important;
  font-size:19px!important;
  line-height:20px!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
}
#studentClosedEvaluationReactionPicker{
  position:absolute!important;
  left:0!important;
  right:auto!important;
  top:auto!important;
  bottom:calc(100% + 8px)!important;
  z-index:80!important;
  width:max-content!important;
  max-width:calc(100vw - 48px)!important;
  margin:0!important;
  padding:5px 6px!important;
  display:flex!important;
  align-items:center!important;
  gap:3px!important;
  border:1px solid #dfe3ea!important;
  border-radius:999px!important;
  background:#fff!important;
  box-shadow:0 10px 28px rgba(15,23,42,.16)!important;
}
#studentClosedEvaluationReactionPicker[hidden]{display:none!important}
@media(max-width:760px){
  .student-closed-evaluation-reaction-row{
    display:flex!important;
    grid-template-columns:none!important;
    gap:0!important;
  }
  .student-closed-evaluation-rating{
    width:max-content!important;
    max-width:100%!important;
  }
  .student-closed-evaluation-reaction-slot{
    width:auto!important;
    min-width:0!important;
  }
  #studentClosedEvaluationReactionPicker{
    margin:0!important;
    bottom:calc(100% + 7px)!important;
  }
}


/* v324 — explicit active-work status in the student task progress dock */
.student-task-work-status{
  display:inline-flex;
  align-items:center;
  gap:7px;
  margin-left:2px;
  color:var(--text,#202633);
  font-size:12px;
  font-weight:650;
  line-height:1;
  white-space:nowrap;
}
.student-task-work-status[hidden]{display:none!important;}
.student-task-work-status-dot{
  width:7px;
  height:7px;
  flex:0 0 7px;
  border-radius:50%;
  background:#dc2626;
}
@media(max-width:760px){
  .student-task-progress-dock .student-task-progress-meta{
    flex-wrap:wrap!important;
  }
  .student-task-progress-dock .task-content-progress-step-group{
    min-width:0;
  }
  .student-task-work-status{
    font-size:11.5px;
    gap:6px;
  }
  .student-task-progress-summary{
    margin-left:auto;
  }
}
@media(max-width:430px){
  .student-task-progress-dock .task-content-progress-step-group{
    width:100%;
  }
  .student-task-progress-summary{
    width:100%;
  }
}


/* v325 — closed-task grade reaction removal + summary typography consistency */
#studentTaskStepList .student-task-summary-head h3{
  margin:0!important;
  color:var(--text)!important;
  font-size:13.5px!important;
  line-height:1.35!important;
  font-weight:760!important;
}
/* Defensive rule: if a reaction node ever uses [hidden], no later inline-flex
   declaration may make it visible again. */
.student-closed-evaluation-reaction-slot .grade-reaction-inline[hidden]{
  display:none!important;
}


/* v326 — work-in-progress status: activity-gated, compact, red halo dot */
.student-task-work-status{
  gap:6px!important;
  color:var(--text,#202633)!important;
  font-size:10.75px!important;
  font-weight:620!important;
  line-height:1!important;
}
.student-task-work-status-dot{
  width:7px!important;
  height:7px!important;
  flex:0 0 7px!important;
  border-radius:50%!important;
  background:#d92d20;
  box-shadow:0 0 0 3px #fde9e7;
}
@media(max-width:760px){
  .student-task-work-status{
    font-size:10.5px!important;
  }
}

/* v327 — one canonical typography for task-row titles, consultation and summary headings */
#studentTaskView .task-step-list-main strong,
#studentTaskView .student-task-summary-head h3{
  margin:0!important;
  color:var(--text)!important;
  font-family:inherit!important;
  font-size:16px!important;
  font-style:normal!important;
  font-weight:760!important;
  line-height:1.35!important;
  letter-spacing:0!important;
  text-transform:none!important;
}

/* v328 — compact active-work marker in the student task dock.
   Keep the marker visually identical to the established red status-dot pattern. */
#studentTaskProgressDock .student-task-work-status{
  display:inline-flex!important;
  align-items:center!important;
  gap:6px!important;
  margin-left:1px!important;
  color:var(--text,#202633)!important;
  font-size:11px!important;
  font-weight:680!important;
  line-height:1!important;
  white-space:nowrap!important;
}
#studentTaskProgressDock .student-task-work-status[hidden]{
  display:none!important;
}
#studentTaskProgressDock .student-task-work-status-dot{
  display:block!important;
  width:7px!important;
  height:7px!important;
  min-width:7px!important;
  flex:0 0 7px!important;
  border-radius:50%!important;
  background:#d92d20;
  box-shadow:0 0 0 3px #fde9e7;
}
@media(max-width:760px){
  #studentTaskProgressDock .student-task-work-status{
    font-size:10.5px!important;
    font-weight:680!important;
  }
}

/* v330 — teacher open student task mirrors the active student task while keeping teacher controls. */
.teacher-unified-task-view .student-conversation-count{
  display:none!important;
}
.teacher-unified-task-view .teacher-shared-task-step-list .unified-consultation .student-step-consultation-head h3,
.teacher-unified-task-view .teacher-shared-task-step-list .unified-task-summary .student-task-summary-head h3,
.teacher-unified-task-view .teacher-shared-task-step-list .task-step-list-main > strong{
  font-family:inherit!important;
  font-size:13.5px!important;
  font-weight:760!important;
  line-height:1.35!important;
  letter-spacing:0!important;
  text-transform:none!important;
  color:var(--ink)!important;
}
.teacher-current-step-top-action{
  white-space:nowrap;
}
#openFinishReviewModal.primary{
  box-shadow:none!important;
}
.teacher-inline-resolve-problem{
  margin-top:7px!important;
  width:max-content!important;
  align-self:flex-start!important;
  border-color:#d8e4dc!important;
  background:#f8fcfa!important;
  color:#2f7659!important;
}
.teacher-resolve-step-problem{
  border-color:#d8e4dc!important;
  background:#f8fcfa!important;
  color:#2f7659!important;
}
.teacher-unified-task-view .teacher-problem-demo .task-timeline-event-icon.is-problem,
.teacher-unified-task-view .student-task-message-row:has(.student-task-message-bubble.problem:not(.problem-resolved)) .task-timeline-event-icon{
  background:#fdecee!important;
  color:#c43745!important;
}
.teacher-unified-task-view .student-task-message-bubble.problem{
  border-color:#edc9ce!important;
}
.teacher-unified-task-view .student-task-message-bubble.problem-resolved{
  background:#eef8f3!important;
  border-color:#cfe7da!important;
  color:#315b49!important;
}
.teacher-unified-task-view .student-task-message-bubble.problem-resolved p{
  color:#315b49!important;
}
.teacher-unified-task-view .student-task-problem-label{
  display:flex!important;
  align-items:center!important;
  gap:7px!important;
  margin-bottom:6px!important;
  font-size:11.5px!important;
  font-weight:800!important;
  color:#bd3948!important;
}
.teacher-unified-task-view .student-task-message-bubble.problem-resolved .student-task-problem-label{
  color:#2f8f68!important;
}
.teacher-unified-task-view .student-task-problem-label-icon{
  width:18px!important;height:18px!important;min-width:18px!important;border-radius:50%!important;
  display:inline-grid!important;place-items:center!important;background:#c43745!important;color:#fff!important;
  font-size:11px!important;font-weight:900!important;line-height:1!important;
}
.teacher-unified-task-view .student-task-message-bubble.problem-resolved .student-task-problem-label-icon{
  background:#fff!important;color:#2f8f68!important;border:1px solid #cfe7da!important;
}
.teacher-unified-task-view .student-task-message-bubble.problem-resolved .student-task-problem-label-icon .student-task-action-check{
  width:10px!important;height:10px!important;min-width:10px!important;
}
.teacher-unified-task-view .teacher-problem-resolution-event .task-timeline-event-icon{
  background:#edf3ff!important;color:#4f72b5!important;
}
@media(max-width:760px){
  .teacher-inline-resolve-problem{width:100%!important;}
}

/* v331 — optical alignment of task-row titles + mask-safe hover shared by
   student execution view, student own-task preview and teacher student-task view. */
#studentTaskView #studentTaskStepList .task-step-list-main > strong,
.student-own-task-preview-v315 .student-own-task-step-main > strong,
.teacher-unified-task-view .teacher-shared-task-step-list .task-step-list-main > strong{
  position:relative!important;
  top:-1px!important;
}

/* Use real white (not transparent) over the left/status gutter. This keeps the
   white timeline mask invisible while still giving the text area a soft hover. */
#studentTaskView #studentTaskStepList .student-task-step-list-item:hover > .task-step-list-row,
#studentTaskView #studentTaskStepList .task-step-list-row:hover,
.student-own-task-preview-v315 .student-own-task-step-item:not(.is-expanded) > .student-own-task-step-row:hover,
.teacher-unified-task-view .teacher-shared-task-step-list .unified-task-step-row:hover{
  background:linear-gradient(90deg,
    #fff 0%,
    #fff 20%,
    #f7f8fa 60%,
    #fff 100%
  )!important;
}

/* v333 — teacher student-task polish: timeline-safe row hover, problem bubble,
   editable teacher note and action layout. */

/* The v331 hover was painted on the whole row and therefore covered the global
   timeline SVG in the status gutter. Keep the row transparent and paint the
   agreed white/soft-grey/white gradient only inside the text column. */
#studentTaskView #studentTaskStepList .student-task-step-list-item:hover > .task-step-list-row,
#studentTaskView #studentTaskStepList .task-step-list-row:hover{
  background:transparent!important;
}
#studentTaskView #studentTaskStepList .student-task-step-list-item:hover > .task-step-list-row .task-step-list-main,
#studentTaskView #studentTaskStepList .task-step-list-row:hover .task-step-list-main{
  background:linear-gradient(90deg,
    #fff 0%,
    #fff 20%,
    #f7f8fa 60%,
    #fff 100%
  )!important;
}
/* Passive previews have no timeline to mask: highlight the ENTIRE clickable row,
   including the status icon gutter and the full width past the title. */
.student-own-task-preview-v315 .student-own-task-step-item:not(.is-expanded) > .student-own-task-step-row:hover{
  background:#f7f8fa!important;
}
.student-own-task-preview-v315 .student-own-task-step-item:not(.is-expanded) > .student-own-task-step-row:hover .student-own-task-step-main{
  background:transparent!important;
}

/* In teacher view the pupil sits on the left and therefore uses the neutral
   `.teacher` bubble shell. Problem semantics must still use the exact red/green
   styling from the student's own problem bubble. */
.teacher-task-student-clone #studentTaskStepList .student-task-message-row.teacher-side .student-task-message-bubble.teacher.problem{
  border-color:#c94959!important;
  background:#c94959!important;
  color:#fff!important;
}
.teacher-task-student-clone #studentTaskStepList .student-task-message-row.teacher-side .student-task-message-bubble.teacher.problem p,
.teacher-task-student-clone #studentTaskStepList .student-task-message-row.teacher-side .student-task-message-bubble.teacher.problem .student-task-message-author{
  color:#fff!important;
}
.teacher-task-student-clone #studentTaskStepList .student-task-message-row.teacher-side .student-task-message-bubble.teacher.problem .student-task-message-time{
  color:rgba(255,255,255,.74)!important;
}
.teacher-task-student-clone #studentTaskStepList .student-task-message-row.teacher-side .student-task-message-bubble.teacher.problem .student-task-problem-label{
  color:#fff!important;
}
.teacher-task-student-clone #studentTaskStepList .student-task-message-row.teacher-side .student-task-message-bubble.teacher.problem .student-task-problem-label-icon{
  background:#fff!important;
  color:#c94959!important;
  border:0!important;
}
.teacher-task-student-clone #studentTaskStepList .student-task-message-row.teacher-side .student-task-message-bubble.teacher.problem.problem-resolved{
  border-color:#2f8f68!important;
  background:#2f8f68!important;
}
.teacher-task-student-clone #studentTaskStepList .student-task-message-row.teacher-side .student-task-message-bubble.teacher.problem.problem-resolved .student-task-problem-label-icon{
  background:#fff!important;
  color:#2f8f68!important;
}

/* Teacher note editing lives inside the same neutral information block. */
.teacher-task-student-clone .teacher-task-note-editor-shell{
  display:block!important;
}
.teacher-task-student-clone .teacher-task-note-head{
  display:block!important;
  margin-bottom:8px!important;
}
.teacher-task-student-clone .teacher-task-note-actions{
  display:flex;
  align-items:center;
  justify-content:flex-start;
  gap:8px;
  margin-top:12px;
}
.teacher-task-student-clone .teacher-task-note-actions .btn{
  min-height:34px;
}
.teacher-task-student-clone .teacher-task-note-textarea{
  display:block;
  width:100%;
  min-height:104px;
  box-sizing:border-box;
  resize:vertical;
  padding:11px 12px;
  border:1px solid #cfd6e2;
  border-radius:8px;
  background:#fff;
  color:var(--text,#182033);
  font:inherit;
  font-size:13px;
  line-height:1.55;
  outline:none;
}
.teacher-task-student-clone .teacher-task-note-textarea:focus{
  border-color:#7d8fc4;
  box-shadow:0 0 0 3px rgba(91,111,177,.11);
}
.teacher-task-student-clone .teacher-task-note-textarea[hidden],
.teacher-task-student-clone .student-task-teacher-note-text[hidden]{
  display:none!important;
}
.teacher-task-student-clone .teacher-task-note-actions .teacher-task-note-delete.primary{
  background:var(--primary,#5864e8)!important;
  border-color:var(--primary,#5864e8)!important;
  color:#fff!important;
}
.teacher-task-student-clone .teacher-task-note-actions .teacher-task-note-delete:disabled{
  opacity:.5;
  cursor:default;
}

/* Bottom actions are the single canonical place for problem resolution,
   messaging and step close/reopen controls. No per-bubble action is used. */
.teacher-task-student-clone #studentTaskStepList .student-step-consultation-actions{
  display:flex;
  visibility:visible!important;
}
.teacher-task-student-clone .student-task-resolve-problem,
.teacher-task-student-clone .teacher-inline-resolve-problem{
  display:none!important;
}

@media(max-width:760px){
  .teacher-task-student-clone .teacher-task-note-actions{
    display:grid!important;
    grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;
    gap:8px!important;
  }
  .teacher-task-student-clone .teacher-task-note-actions .btn{
    width:100%!important;
    justify-content:center!important;
  }
}

/* v334 — mobile active-work marker + stronger optical alignment of step titles */
/* On mobile keep only the red activity dot so the dock row retains space for
   the step label, chevrons and progress summary. */
@media(max-width:760px){
  #studentTaskProgressDock .student-task-work-status{
    gap:0!important;
    margin-left:3px!important;
    width:7px!important;
    min-width:7px!important;
    flex:0 0 7px!important;
    overflow:visible!important;
  }
  #studentTaskProgressDock .student-task-work-status > span:not(.student-task-work-status-dot){
    display:none!important;
  }
}

/* The task-row title still sat optically a touch low against the circular
   status tile. Move only the text, never the icon or row geometry. */
#studentTaskView #studentTaskStepList .task-step-list-main > strong,
.student-own-task-preview-v315 .student-own-task-step-main > strong,
.teacher-unified-task-view .teacher-shared-task-step-list .task-step-list-main > strong,
.teacher-task-student-clone #studentTaskStepList .task-step-list-main > strong{
  position:relative!important;
  top:-2px!important;
}


/* v335 — teacher conversation roles, bright problem bubble, active work status,
   reopened historical steps and centered grading modal. */

/* Teacher perspective uses the same conversation rule as every other view:
   the current author's own message is dark, the interlocutor is bright.
   In this view: teacher = own/right/dark, pupil = interlocutor/left/bright. */
.teacher-task-student-clone #studentTaskStepList .student-task-message-row.student-side .student-task-message-bubble.student{
  background:#4b5175!important;
  border-color:#4b5175!important;
  color:#fff!important;
}
.teacher-task-student-clone #studentTaskStepList .student-task-message-row.student-side .student-task-message-bubble.student p{
  color:#fff!important;
}
.teacher-task-student-clone #studentTaskStepList .student-task-message-row.student-side .student-task-message-bubble.student .student-task-message-time{
  color:rgba(255,255,255,.72)!important;
}
.teacher-task-student-clone #studentTaskStepList .student-task-message-row.teacher-side .student-task-message-bubble.teacher{
  background:#f7f8fa!important;
  border-color:#dfe3ea!important;
  color:#323a4c!important;
}
.teacher-task-student-clone #studentTaskStepList .student-task-message-row.teacher-side .student-task-message-bubble.teacher p{
  color:#323a4c!important;
}
.teacher-task-student-clone #studentTaskStepList .student-task-message-row.teacher-side .student-task-message-bubble.teacher .student-task-message-author{
  color:#596275!important;
}
.teacher-task-student-clone #studentTaskStepList .student-task-message-row.teacher-side .student-task-message-bubble.teacher .student-task-message-time{
  color:#8a93a6!important;
}

/* Problem reported by the pupil: use the previously established BRIGHT red
   treatment instead of a heavy solid-red messenger bubble. */
.teacher-task-student-clone #studentTaskStepList .student-task-message-row.teacher-side .student-task-message-bubble.teacher.problem{
  background:#fff1f2!important;
  border-color:#e7a7ad!important;
  color:#7f2733!important;
}
.teacher-task-student-clone #studentTaskStepList .student-task-message-row.teacher-side .student-task-message-bubble.teacher.problem p{
  color:#7f2733!important;
}
.teacher-task-student-clone #studentTaskStepList .student-task-message-row.teacher-side .student-task-message-bubble.teacher.problem .student-task-message-author,
.teacher-task-student-clone #studentTaskStepList .student-task-message-row.teacher-side .student-task-message-bubble.teacher.problem .student-task-problem-label{
  color:#b42335!important;
}
.teacher-task-student-clone #studentTaskStepList .student-task-message-row.teacher-side .student-task-message-bubble.teacher.problem .student-task-message-time{
  color:#9b6670!important;
}
.teacher-task-student-clone #studentTaskStepList .student-task-message-row.teacher-side .student-task-message-bubble.teacher.problem .student-task-problem-label-icon{
  background:#c43745!important;
  color:#fff!important;
  border:0!important;
}
.teacher-task-student-clone #studentTaskStepList .student-task-message-row.teacher-side .student-task-message-bubble.teacher.problem.problem-resolved{
  background:#eef8f3!important;
  border-color:#cfe7da!important;
  color:#315b49!important;
}
.teacher-task-student-clone #studentTaskStepList .student-task-message-row.teacher-side .student-task-message-bubble.teacher.problem.problem-resolved p,
.teacher-task-student-clone #studentTaskStepList .student-task-message-row.teacher-side .student-task-message-bubble.teacher.problem.problem-resolved .student-task-message-author{
  color:#315b49!important;
}
.teacher-task-student-clone #studentTaskStepList .student-task-message-row.teacher-side .student-task-message-bubble.teacher.problem.problem-resolved .student-task-problem-label{
  color:#2f8f68!important;
}
.teacher-task-student-clone #studentTaskStepList .student-task-message-row.teacher-side .student-task-message-bubble.teacher.problem.problem-resolved .student-task-problem-label-icon{
  background:#fff!important;
  color:#2f8f68!important;
  border:1px solid #cfe7da!important;
}

/* Teacher grading modal: the title/kicker and the entire grade selector are a
   centered composition. There is no ornamental separator below the grade. */
.teacher-task-student-clone #studentFinishTaskModal .teacher-cloned-grade-modal{
  text-align:center!important;
}
.teacher-task-student-clone #studentFinishTaskModal .finish-review-kicker,
.teacher-task-student-clone #studentFinishTaskModal .finish-review-identity-row,
.teacher-task-student-clone #studentFinishTaskModal .finish-review-group-row{
  text-align:center!important;
  justify-content:center!important;
}
.teacher-task-student-clone #studentFinishTaskModal .finish-review-rating-row{
  display:flex!important;
  flex-direction:column!important;
  align-items:center!important;
  justify-content:center!important;
  gap:8px!important;
  text-align:center!important;
}
.teacher-task-student-clone #studentFinishTaskModal .finish-review-rating-label{
  width:100%!important;
  text-align:center!important;
}
.teacher-task-student-clone #studentFinishTaskModal .finish-review-rating-row .grade-star-selector,
.teacher-task-student-clone #studentFinishTaskModal .finish-review-rating-row .grade-star-selector-stars,
.teacher-task-student-clone #studentFinishTaskModal .finish-review-rating-row .grade-selector-meta{
  width:auto!important;
  justify-content:center!important;
  align-items:center!important;
}
.teacher-task-student-clone #studentFinishTaskModal .finish-review-rating-separator{
  display:none!important;
}
.teacher-task-student-clone #studentFinishTaskModal .finish-review-comment{
  margin-top:16px!important;
}

/* v339 — teacher consultation action row + tagless problem state */
.student-task-page .student-task-problem-label{
  display:none!important;
}

.teacher-task-student-clone #studentTaskHelpShell .student-step-consultation-actions{
  display:flex!important;
  visibility:visible!important;
  align-items:center!important;
  justify-content:flex-start!important;
  flex-wrap:wrap!important;
  gap:8px!important;
  margin-top:14px!important;
  padding:14px 0 0 60px!important;
  border-top:1px solid #edf0f4!important;
}
.teacher-task-student-clone #studentTaskHelpShell .student-step-consultation-actions .btn[hidden]{
  display:none!important;
}
.teacher-task-student-clone #studentTaskHelpShell .student-step-consultation-actions .btn:not([hidden]){
  display:inline-flex!important;
}
.teacher-task-student-clone #studentTaskHelpShell #studentTaskConsultationWrite{order:1!important;}
.teacher-task-student-clone #studentTaskHelpShell #studentTaskResolveProblem{order:2!important;}
.teacher-task-student-clone #studentTaskHelpShell #studentTaskConsultationStepAction{order:3!important;}

@media(max-width:760px){
  .teacher-task-student-clone #studentTaskHelpShell .student-step-consultation-actions{
    display:grid!important;
    grid-template-columns:1fr!important;
    padding-left:50px!important;
  }
  .teacher-task-student-clone #studentTaskHelpShell .student-step-consultation-actions .btn:not([hidden]){
    width:100%!important;
    justify-content:center!important;
  }
}


/* v341 — step-state events live under step content when there is no consultation.
   The consultation section is reserved exclusively for a real teacher/student thread. */
#studentTaskStepList .student-step-state-events{
  position:relative!important;
  padding:10px 20px 16px 14px!important;
  /* Keep the global SVG axis visible through standalone step-state rows. */
  background:transparent!important;
}
#studentTaskStepList .student-step-state-events[hidden]{
  display:none!important;
}
#studentTaskStepList .student-step-state-events::before{
  content:"";
  position:absolute;
  left:66px;
  right:0;
  top:0;
  border-top:1px solid var(--line);
}
#studentTaskStepList .student-step-state-events .student-step-state-standalone-event{
  position:relative!important;
  z-index:6!important;
  display:grid!important;
  grid-template-columns:40px minmax(0,1fr)!important;
  column-gap:20px!important;
  align-items:center!important;
  padding:8px 0!important;
}
#studentTaskStepList .student-step-state-events .student-step-state-standalone-event > :not(.task-timeline-event-icon){
  grid-column:2!important;
  min-width:0!important;
}
#studentTaskStepList .student-step-state-events .task-timeline-event-icon{
  position:relative!important;
  z-index:20!important;
}
@media(max-width:760px){
  #studentTaskStepList .student-step-state-events{
    padding:10px 14px 14px 12px!important;
  }
  #studentTaskStepList .student-step-state-events::before{
    left:62px;
  }
  #studentTaskStepList .student-step-state-events .student-step-state-standalone-event{
    grid-template-columns:36px minmax(0,1fr)!important;
    column-gap:14px!important;
  }
}

/* v342 — closed teacher evaluation edit action + no empty consultation action separator */
.teacher-task-student-clone #studentTaskHelpShell .student-step-consultation-actions[hidden]{
  display:none!important;
}
.teacher-task-student-clone .teacher-closed-evaluation-rating-row{
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:14px!important;
  width:100%!important;
}
.teacher-task-student-clone .teacher-closed-evaluation-edit{
  margin-left:auto!important;
  flex:0 0 auto!important;
  min-height:32px!important;
}
@media(max-width:760px){
  .teacher-task-student-clone .teacher-closed-evaluation-rating-row{
    gap:10px!important;
  }
  .teacher-task-student-clone .teacher-closed-evaluation-edit{
    min-height:30px!important;
  }
}

/* v344 — teacher evaluation actions and closed-assignment reopen flow */
.teacher-task-student-clone .teacher-closed-evaluation-edit{
  display:inline-flex!important;
  align-items:center!important;
  gap:9px!important;
  border-color:#80611d!important;
  background:#80611d!important;
  color:#fff8e7!important;
  box-shadow:none!important;
}
.teacher-task-student-clone .teacher-closed-evaluation-edit:hover,
.teacher-task-student-clone .teacher-closed-evaluation-edit:focus-visible{
  border-color:#6f5318!important;
  background:#6f5318!important;
  color:#fff!important;
}
.teacher-task-student-clone .teacher-closed-evaluation-edit .btn-icon{
  margin:0!important;
}
.teacher-task-student-clone .teacher-closed-evaluation-stars-editable{
  cursor:pointer!important;
  border-radius:8px;
  outline:none;
}
.teacher-task-student-clone .teacher-closed-evaluation-stars-editable:focus-visible{
  box-shadow:0 0 0 3px rgba(128,97,29,.18);
}
.teacher-task-student-clone .student-task-topbar-actions .teacher-edit-grade-action{
  order:3!important;
}
.teacher-task-student-clone .student-task-topbar-actions .teacher-grade-close-action{
  order:4!important;
}
.teacher-task-student-clone .student-task-topbar-actions .student-task-consultation-action{
  order:5!important;
}
@media (min-width:901px){
  .teacher-task-student-clone .student-task-topbar-actions:not(.student-task-actions-open) .teacher-edit-grade-action{
    display:none!important;
  }
}


/* v346 — teacher additional-information controls stay on the left; reopened
   graded history is rendered inline with the step timeline. */
.assignment-information-inline-actions,
.assignment-information-edit-actions{
  justify-content:flex-start!important;
}
.teacher-task-student-clone .teacher-task-note-actions{
  justify-content:flex-start!important;
}
#studentTaskStepList .student-task-summary-event.is-summary-history{
  position:relative!important;
}


/* v347 — compact interlocutor bubbles + canonical left-aligned teacher info controls.
   Timeline hides timestamps; when a message has no visible reaction the footer must
   collapse completely instead of reserving an empty 20px row. */
.assignment-information-inline-actions,
.assignment-information-edit-actions{
  justify-content:flex-start!important;
  margin-left:0!important;
  margin-right:auto!important;
  width:100%!important;
}
.teacher-task-student-clone .teacher-task-note-actions{
  justify-content:flex-start!important;
  margin-left:0!important;
  margin-right:auto!important;
  width:100%!important;
}
#studentTaskStepList .task-timeline-message-event .student-task-message-footer:has(.student-task-reaction-chip[hidden]){
  display:none!important;
  min-height:0!important;
  height:0!important;
  margin:0!important;
  padding:0!important;
}
#studentTaskStepList .task-timeline-message-event .student-task-message-bubble{
  padding-bottom:9px!important;
}


/* v349 — controls for “Informacja dla ucznia” always start from the left.
   In view mode the pair is Edit/Delete; in edit mode JS changes the same buttons to Cancel/Save. */
.teacher-task-student-clone .teacher-task-note-actions{
  justify-content:flex-start!important;
  margin-left:0!important;
  margin-right:0!important;
  width:100%!important;
}
.teacher-task-student-clone .teacher-task-note-actions .teacher-task-note-edit,
.teacher-task-student-clone .teacher-task-note-actions .teacher-task-note-delete{
  margin-left:0!important;
  margin-right:0!important;
}
.teacher-task-student-clone .teacher-task-note-actions.is-editing{
  justify-content:flex-start!important;
}


/* v350 — explicit view/edit action states for “Informacja dla ucznia”.
   View: Edytuj / Usuń. Edit: Anuluj / Zapisz. Save highlights only after JS detects a textarea change. */
.teacher-task-student-clone .teacher-task-note-actions > [hidden]{display:none!important;}
.teacher-task-student-clone .teacher-task-note-actions .teacher-task-note-save.primary{
  background:var(--primary,#5864e8)!important;
  border-color:var(--primary,#5864e8)!important;
  color:#fff!important;
}
.teacher-task-student-clone .teacher-task-note-actions .teacher-task-note-save:disabled{
  opacity:.55;
  cursor:default;
}


/* v352 — teacher note edit controls: subtle cross + consistent icon-to-label spacing.
   Scoped to the additional-information editor; other buttons stay untouched. */
.teacher-task-student-clone .teacher-task-note-actions .teacher-task-note-cancel,
.teacher-task-student-clone .teacher-task-note-actions .teacher-task-note-save{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px!important;
}
.teacher-task-student-clone .teacher-task-note-actions .teacher-task-note-cancel .light-action-icon.cross{
  position:relative;
  display:inline-block;
  width:14px;
  height:14px;
  flex:0 0 14px;
  margin:0!important;
}
.teacher-task-student-clone .teacher-task-note-actions .teacher-task-note-cancel .light-action-icon.cross::before,
.teacher-task-student-clone .teacher-task-note-actions .teacher-task-note-cancel .light-action-icon.cross::after{
  content:"";
  position:absolute;
  left:6.2px;
  top:2.2px;
  width:1.4px;
  height:9.6px;
  background:currentColor;
  border-radius:2px;
}
.teacher-task-student-clone .teacher-task-note-actions .teacher-task-note-cancel .light-action-icon.cross::before{transform:rotate(45deg)}
.teacher-task-student-clone .teacher-task-note-actions .teacher-task-note-cancel .light-action-icon.cross::after{transform:rotate(-45deg)}
.teacher-task-student-clone .teacher-task-note-actions .teacher-task-note-save .student-task-step-action-icon{
  margin:0!important;
  flex:0 0 16px!important;
}

/* v353: completed tasks show teacher notes read-only; hide the entire action row.
   Explicit hidden override is needed because the desktop and mobile rules set
   display:flex/grid (sometimes with !important). */
.teacher-task-student-clone .teacher-task-note-actions[hidden]{display:none!important;}


/* v354 — nauczyciel: pasywny podgląd zadania zgodny z "Moje" ucznia.
   Brak osi czasu; archiwum bez edycji informacji. */
.teacher-passive-task-view .student-own-task-step-source{min-width:0;}
.teacher-passive-task-view .student-own-task-step-list-card .student-own-task-step-item .student-own-task-step-detail .task-content-sequence{margin-bottom:0!important;}
@media(max-width:760px){
  .teacher-passive-task-view .teacher-passive-note{margin-top:20px!important;padding:13px!important;}
}

/* v355: nauczyciel moze dodac informacje dla uczniow takze do pustego kroku.
   Zamkniety krok/zadanie zachowuje wczesniejsze ograniczenia. */
.teacher-task-student-clone .teacher-task-note-editor-shell[hidden]{display:none!important;}
.teacher-task-student-clone .teacher-task-note-editor-shell .student-task-teacher-note-text.is-empty{
  color:#8792a4!important;font-style:italic;
}
.teacher-task-student-clone .teacher-task-note-actions .teacher-task-note-edit{
  display:inline-flex;align-items:center;gap:7px;
}
.teacher-task-student-clone .teacher-task-note-actions .teacher-task-note-edit[hidden],
.teacher-task-student-clone .teacher-task-note-actions .teacher-task-note-delete[hidden]{display:none!important;}
/* v356 — nauczycielskie akcje topbara w zależności od kontekstu. */
.task-definition-preview-topbar .task-definition-preview-actions [data-action][hidden]{display:none!important}
.task-definition-preview-topbar .task-definition-preview-actions [data-action="back"]{order:1}
.task-definition-preview-topbar .task-definition-preview-actions [data-action="assign"],
.task-definition-preview-topbar .task-definition-preview-actions [data-action="activate"]{order:2}
.task-definition-preview-topbar .task-definition-preview-actions [data-action="report"]{order:3}
.task-definition-preview-topbar .task-definition-preview-actions [data-action="edit"]{order:4}
.task-definition-preview-topbar .task-definition-preview-actions [data-action="copy"]{order:5}
.task-definition-preview-topbar .task-definition-preview-actions [data-action="delete"]{order:6}
.task-definition-preview-topbar .task-definition-preview-actions [data-action="download"]{order:7}
.task-definition-preview-topbar .task-definition-preview-actions [data-action="archive"]{order:8}
.task-definition-preview-topbar .task-definition-preview-actions .v211-topbar-more-toggle{order:99}


/* v359 — jedno liniowe okrążenie obwiedni katalogu po „Zleć nowe zadanie”.
   Animacja jest jednorazowa, nienachalna i nie ingeruje w układ ani kliknięcia. */
@property --eureka-catalog-angle {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}
.tasks-hub-card { position:relative; isolation:isolate; }
.tasks-hub-card.catalog-attention-running::before {
  content:"";
  position:absolute;
  inset:-2px;
  z-index:2;
  pointer-events:none;
  border-radius:10px;
  padding:2px;
  background:conic-gradient(from var(--eureka-catalog-angle),
    transparent 0deg, transparent 282deg,
    rgba(76,143,253,.10) 292deg,
    #4e9bff 327deg,
    #2263d6 346deg,
    transparent 360deg);
  -webkit-mask:linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite:xor;
  mask:linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite:exclude;
  animation:eureka-catalog-outline-run 0.8s linear both;
}
.tasks-hub-card.catalog-attention-running {animation:eureka-catalog-outline-glow 0.8s linear both;}
@keyframes eureka-catalog-outline-run {
  0% { --eureka-catalog-angle:0deg; opacity:0; }
  7% { opacity:1; }
  89% { opacity:1; }
  100% { --eureka-catalog-angle:360deg; opacity:0; }
}
@keyframes eureka-catalog-outline-glow {
  0%,100% {box-shadow:none;}
  28% {box-shadow:0 0 0 2px rgba(63,135,240,.08),0 3px 18px rgba(63,135,240,.06);}
}
@media (prefers-reduced-motion: reduce) {
  .tasks-hub-card.catalog-attention-running::before {animation:none;opacity:0;}
  .tasks-hub-card.catalog-attention-running {animation:none;}
}
/* Ensure original report modal success content and all modal actions are properly separated. */
.task-definition-preview-topbar ~ .modal-overlay .task-error-feedback[hidden],
#reportTaskErrorModal .task-error-form[hidden],
#reportTaskErrorModal .task-error-feedback[hidden],
#reportTaskErrorModal .confirm-modal-actions[hidden],
#reportTaskErrorModal .task-error-intro[hidden] {display:none!important;}
#reportTaskErrorModal .task-error-feedback:not([hidden]) p{margin:0 0 13px;color:#177553;}
#reportTaskErrorModal .task-error-feedback:not([hidden]) .btn{display:inline-flex;align-items:center;gap:7px;}
#teacherPreviewDeleteModal .confirm-modal-actions .btn,
#teacherPreviewArchiveModal .confirm-modal-actions .btn {
  display:inline-flex;align-items:center;justify-content:center;gap:8px;
}

/* v358 — consultations belong to each step, including steps without history.
   No artificial consultation heading is displayed before the first message. */
#studentTaskStepList .student-step-no-thread-actions[hidden],
#studentTaskStepList .student-step-no-thread-actions .student-step-consultation-actions[hidden]{display:none!important}
#studentTaskStepList .student-step-no-thread-actions{
  position:relative;
  background:transparent;
  /* Internal steps finish compactly; a large dock clearance here pushed the next step down. */
  padding:14px 20px 16px 88px;
}
#studentTaskStepList .student-step-no-thread-actions .student-step-consultation-actions,
.teacher-task-student-clone #studentTaskStepList .student-step-no-thread-actions .student-step-consultation-actions{
  display:flex!important;
  align-items:center!important;
  justify-content:flex-start!important;
  flex-wrap:wrap!important;
  gap:8px!important;
  padding:0!important;
  margin:0!important;
  border:0!important;
  background:transparent!important;
}
/* The threaded action separator must begin beyond the timeline's icon rail.
   A full-width border would visibly cut through the vertical axis. */
#studentTaskStepList #studentTaskHelpShell .student-step-consultation-actions,
.teacher-task-student-clone #studentTaskStepList #studentTaskHelpShell .student-step-consultation-actions{
  position:relative!important;
  border-top:0!important;
}
#studentTaskStepList #studentTaskHelpShell .student-step-consultation-actions:not([hidden])::before{
  content:"";
  position:absolute;
  top:0;
  left:75px;
  right:0;
  height:1px;
  background:#edf0f4;
  pointer-events:none;
}
/* Controls are not the history: never draw the separator across the axis. */
#studentTaskStepList .student-step-no-thread-actions .student-step-consultation-actions::before{content:none!important}
#studentTaskStepList .task-step-list-state[data-time-tooltip]{cursor:help;outline-offset:3px}
#studentTaskStepList .task-step-list-state[data-time-tooltip]:focus-visible{
  outline:2px solid #8199ca;
  border-radius:12px;
}
@media(max-width:760px){
  #studentTaskStepList .student-step-no-thread-actions{padding:12px 14px 16px 74px}
  #studentTaskStepList .student-step-no-thread-actions .student-step-consultation-actions{display:grid!important;grid-template-columns:1fr!important}
  #studentTaskStepList .student-step-no-thread-actions .student-step-consultation-actions .btn:not([hidden]){justify-content:flex-start!important;width:100%!important}
  #studentTaskStepList #studentTaskHelpShell .student-step-consultation-actions:not([hidden])::before{left:65px}
}

/* v360: provide clearance from the fixed dock only at the end of the task,
   never inside an intermediate step before the next timeline tile. */
#studentTaskStepList .student-task-step-list-item:last-child.is-expanded .student-step-no-thread-actions{
  padding-bottom:108px;
}


/* v366 — teacher grading boundary in an unfinished assignment */
.teacher-task-student-clone .task-step-list-state.is-grade-anchor{
  color:#d79a00!important;
  background:#fff8df!important;
  border:1px solid #efdda2!important;
}
.teacher-task-student-clone .task-step-list-state.is-teacher-cancelled{
  color:#9ba5b5!important;
  background:#f2f4f7!important;
  border:1px solid #e1e5eb!important;
}
.teacher-task-student-clone .student-task-step-list-item.is-teacher-cancelled{
  --student-step-line-color:transparent;
}

/* v367 — 3-etapowy modal zlecania zadania */
.assign-flow-modal{
  width:min(620px,calc(100vw - 28px));
  max-height:min(760px,calc(100dvh - 32px));
  overflow:hidden;
  padding:22px;
  display:flex;
  flex-direction:column;
}
.assign-flow-modal .modal-close{top:18px;right:18px}
.assign-flow-head{flex:0 0 auto;padding:0 46px;text-align:center}
.assign-flow-app-icon{
  width:42px;height:42px;border-radius:8px;background:#e8efff;color:#315fce;
  display:grid;place-items:center;margin:0 auto 12px;box-shadow:none
}
.assign-flow-app-icon .dashicons{width:22px;height:22px;font-size:22px}
.assign-flow-kicker{color:#315fce;font-size:10.5px;line-height:1.2;font-weight:850;letter-spacing:.055em;margin-bottom:5px;text-align:center}
.assign-flow-head h2{margin:0;font-size:22px;line-height:1.22;color:#1f2937;text-align:center}
.assign-flow-author{margin-top:5px;color:#7b8494;font-size:11px;line-height:1.4;text-align:center}
.assign-flow-author strong{color:#4b5563;font-weight:700}
.assign-flow-separator{height:1px;background:#e8ebf0;margin:17px 0 16px;flex:0 0 auto}
.assign-flow-body{display:flex;flex:1 1 auto;min-height:0}
.assign-flow-stage{width:100%;min-height:0;display:flex;flex-direction:column}
.assign-flow-stage[hidden]{display:none!important}
.assign-flow-stage h3{margin:0 0 13px;font-size:15px;line-height:1.3;color:#273244;font-weight:800}
.assign-flow-scroll{overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#c8ced8 transparent}
.assign-flow-scroll::-webkit-scrollbar{width:6px}
.assign-flow-scroll::-webkit-scrollbar-track{background:transparent}
.assign-flow-scroll::-webkit-scrollbar-thumb{background:#c8ced8;border-radius:999px}
.assign-flow-groups{display:flex;flex-direction:column;gap:7px;min-height:74px;max-height:min(296px,32dvh);padding-right:5px}
.assign-flow-group-card{
  display:grid;grid-template-columns:18px 38px minmax(0,1fr);align-items:center;gap:10px;
  min-height:58px;padding:9px 11px;border:1px solid #e1e5eb;border-radius:8px;background:#fff;cursor:pointer;
  transition:border-color .15s linear,background .15s linear
}
.assign-flow-group-card:hover{border-color:#c8d3e7;background:#fbfcff}
.assign-flow-group-card.selected{border-color:#9db5ec;background:#f6f8ff}
.assign-flow-group-card>input{
  appearance:none;width:16px;height:16px;margin:0;border:1.5px solid #b5bdca;border-radius:50%;background:#fff;
  box-shadow:inset 0 0 0 4px #fff
}
.assign-flow-group-card>input:checked{border-color:#315fce;background:#315fce}
.assign-flow-group-card .compact-group-icon{width:38px;height:38px;flex:0 0 38px;border-radius:8px;font-size:17px}
.assign-flow-card-copy{display:flex;flex-direction:column;min-width:0;gap:2px}
.assign-flow-card-copy strong{font-size:11.7px;line-height:1.3;color:#263244;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.assign-flow-card-copy small{font-size:10px;line-height:1.35;color:#818a99}
.assign-flow-recipient-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.assign-flow-recipient-card{
  position:relative;display:grid;grid-template-columns:18px 34px minmax(0,1fr);gap:9px;align-items:center;
  min-height:82px;padding:12px;border:1px solid #e1e5eb;border-radius:8px;background:#fff;cursor:pointer;
  transition:border-color .15s linear,background .15s linear
}
.assign-flow-recipient-card:hover{border-color:#c8d3e7;background:#fbfcff}
.assign-flow-recipient-card.selected{border-color:#9db5ec;background:#f6f8ff}
.assign-flow-recipient-card>input{position:absolute;opacity:0;pointer-events:none}
.assign-flow-radio{width:16px;height:16px;border:1.5px solid #b5bdca;border-radius:50%;background:#fff;box-shadow:inset 0 0 0 4px #fff}
.assign-flow-recipient-card.selected .assign-flow-radio{border-color:#315fce;background:#315fce}
.assign-flow-recipient-icon{width:34px;height:34px;border-radius:8px;background:#f0f3f8;color:#60718d;display:flex;align-items:center;justify-content:center}
.assign-flow-recipient-card.selected .assign-flow-recipient-icon{background:#e8efff;color:#315fce}
.assign-flow-recipient-icon .dashicons{width:18px;height:18px;font-size:18px}
.assign-flow-student-tools{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:-7px 0 9px;color:#596578;font-size:11.5px;line-height:1.35;flex:0 0 auto}
.assign-flow-student-tools .text-action{font-size:11px}
.assign-flow-students{display:flex;flex-direction:column;gap:6px;min-height:74px;max-height:min(310px,34dvh);padding-right:5px}
.assign-flow-student-row{
  position:relative;display:grid;grid-template-columns:18px 32px minmax(0,1fr);align-items:center;gap:9px;
  min-height:48px;padding:7px 10px;border:1px solid #e3e6eb;border-radius:8px;background:#fff;cursor:pointer
}
.assign-flow-student-row:hover{border-color:#cbd4e2;background:#fbfcff}
.assign-flow-student-row.selected{border-color:#9db5ec;background:#f6f8ff}
.assign-flow-student-row>input{position:absolute;opacity:0;pointer-events:none}
.assign-flow-check{width:16px;height:16px;border:1.5px solid #b8c0cd;border-radius:4px;background:#fff;color:#fff;display:flex;align-items:center;justify-content:center}
.assign-flow-check .dashicons{width:13px;height:13px;font-size:13px;opacity:0}
.assign-flow-student-row.selected .assign-flow-check{border-color:#315fce;background:#315fce}
.assign-flow-student-row.selected .assign-flow-check .dashicons{opacity:1}
.assign-flow-student-name{font-size:13px;font-weight:680;color:#263244}
.assign-flow-bottom{flex:0 0 auto;margin-top:16px;padding-top:14px;border-top:1px solid #e8ebf0}
.assign-flow-steps{display:flex;gap:7px;width:100%;margin:0 0 9px;padding:8px 0 9px}
.assign-flow-step{
  flex:1 1 0;height:5px;min-width:0;padding:0;border:0;border-radius:999px;background:#e5e8ed;cursor:default;
  transition:background .14s linear,opacity .14s linear
}
.assign-flow-step:not(:disabled){cursor:pointer}
.assign-flow-step.is-complete{background:#a9bee9}
.assign-flow-step.is-current{background:#315fce}
.assign-flow-step:not(:disabled):not(.is-current):hover{background:#bdcae6}
.assign-flow-step[hidden]{display:none!important}
.assign-flow-actions{display:grid;grid-template-columns:1fr 1fr;gap:9px}
.assign-flow-actions .btn{width:100%;justify-content:center;min-height:36px}
.assign-flow-actions .btn:disabled{opacity:1;cursor:not-allowed;background:#f0f2f5;border-color:#e3e6eb;color:#9aa2ae;box-shadow:none}
.assign-flow-actions .btn:disabled .btn-icon{opacity:.7}
.assign-flow-actions .light-action-icon{position:relative;display:inline-block;width:14px;height:14px;flex:0 0 14px}
.assign-flow-actions .light-action-icon.cross::before,
.assign-flow-actions .light-action-icon.cross::after{content:"";position:absolute;left:6.2px;top:2.2px;width:1.4px;height:9.6px;border-radius:2px;background:currentColor}
.assign-flow-actions .light-action-icon.cross::before{transform:rotate(45deg)}
.assign-flow-actions .light-action-icon.cross::after{transform:rotate(-45deg)}
.assign-flow-actions .light-action-icon.check::before{content:"";position:absolute;left:3.6px;top:1.8px;width:5px;height:8px;border-right:1.4px solid currentColor;border-bottom:1.4px solid currentColor;transform:rotate(42deg);transform-origin:center}
.assign-flow-next-label{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
/* v368 — polish modala zlecania: wycentrowany nagłówek, czytelniejsze kroki i lekkie ikony CTA. */
@media(max-width:640px){
  .assign-flow-modal{width:min(100vw - 18px,620px);max-height:calc(100dvh - 18px);padding:18px}
  .assign-flow-recipient-grid{grid-template-columns:1fr}
  .assign-flow-groups{max-height:30dvh}
  .assign-flow-students{max-height:31dvh}
  .assign-flow-actions{grid-template-columns:1fr}
  .assign-flow-head h2{font-size:19px}
}


/* v369 — modal: zielone etapy + dashboard ucznia: równe kolumny i nowe powiadomienia */
.assign-flow-step.is-complete{background:#8bcfb3!important}
.assign-flow-step.is-current{background:#2f9e6f!important}
.assign-flow-step:not(:disabled):not(.is-current):hover{background:#a7d9c4!important}

.student-dashboard-lower-grid{
  grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;
}
.student-dashboard-notifications-card .teacher-dashboard-notification-item{
  grid-template-columns:40px minmax(0,1fr) 14px!important;
  gap:12px!important;
  min-height:70px!important;
}
.student-dashboard-notifications-card .teacher-dashboard-notification-item .student-activity-icon{
  width:40px!important;
  height:40px!important;
  flex:0 0 40px!important;
}
.student-dashboard-notifications-card .teacher-dashboard-notification-item .student-activity-icon .dashicons{
  width:19px!important;
  height:19px!important;
  font-size:19px!important;
  line-height:19px!important;
}
.student-dashboard-notifications-card .teacher-dashboard-notification-item.is-unread::before{
  display:none!important;
  content:none!important;
}
.student-dashboard-notification-new{
  display:inline-flex;
  align-items:center;
  gap:4px;
  margin-left:6px;
  color:#d92d20;
  font-size:10px;
  line-height:1;
  font-weight:800;
  white-space:nowrap;
  vertical-align:baseline;
}
.student-dashboard-notification-new i{
  width:6px;
  height:6px;
  flex:0 0 6px;
  border-radius:50%;
  background:#d92d20;
}
.student-open-task-new{
  font-size:10px!important;
  letter-spacing:.02em!important;
  text-transform:none!important;
}
.student-open-task-new-dot{
  width:7px!important;
  height:7px!important;
  flex:0 0 7px!important;
}


/* v370 — Student "Moje zadania" uses the canonical teacher task-hub geometry. */

/* Teacher + student: filters/sorting visually share one baseline with the local submenu. */
.tasks-hub-toolbar{
  align-items:center!important;
  margin-bottom:16px!important;
}
.tasks-hub-toolbar .tasks-hub-local-nav{
  margin:0!important;
  padding:0 4px!important;
  align-self:center!important;
}
.tasks-hub-toolbar .tasks-hub-tools{
  align-items:center!important;
  position:relative;
  top:-2px;
}
.student-tasks-hub-toolbar .tasks-hub-tools{margin-left:auto!important}

/* Student task hub: the card, radius, padding and row separators are exactly the teacher hub pattern. */
.student-tasks-hub-card{padding-top:0!important;overflow:visible!important}
.student-tasks-hub-card .tasks-hub-view[hidden],
.student-tasks-hub-card .student-task-hub-row[hidden]{display:none!important}
.student-task-hub-row{min-height:86px!important;padding:14px 0!important;margin:0!important;border-left:0!important;border-right:0!important;border-top:0!important;border-radius:0!important;background:#fff!important}
.student-task-hub-row:hover{background:linear-gradient(90deg,#fff 0%,#f6f7fa 14%,#f6f7fa 86%,#fff 100%)!important}
.student-task-hub-row .tasks-hub-main{min-width:0}

/* Active: fixed minimum identity/action columns, progress owns the elastic middle. */
.student-task-active-row{
  grid-template-columns:minmax(350px,420px) minmax(220px,1fr) auto!important;
  gap:24px!important;
}
.student-task-list-progress{
  min-width:220px;
  width:100%;
  display:grid;
  grid-template-columns:minmax(120px,1fr) 42px;
  align-items:center;
  gap:10px;
}
.student-task-list-progress-track{height:8px;border-radius:999px;background:#e8ebf0;overflow:hidden}
.student-task-list-progress-fill{position:relative;display:block;height:100%;border-radius:inherit;overflow:hidden}
.student-task-list-progress-fill.progress-blue{background:#5b7fb8}
.student-task-list-progress-fill.progress-orange{background:#d58a2c}
.student-task-list-progress-fill.progress-green{background:#2f9e6f}
.student-task-list-progress strong{min-width:38px;color:#465164;font-size:11px;text-align:right}
.student-task-list-progress-fill.is-animated::after{
  content:"";position:absolute;inset:0;border-radius:inherit;pointer-events:none;
  background-image:linear-gradient(135deg,transparent 0,transparent 25%,rgba(0,0,0,.11) 25%,rgba(0,0,0,.11) 50%,transparent 50%,transparent 75%,rgba(0,0,0,.11) 75%,rgba(0,0,0,.11) 100%);
  background-size:28px 28px;animation:eureka-student-progress-barberpole .85s linear infinite;
}

/* First-line flags for active work. */
.student-task-title-line{display:flex;align-items:center;gap:8px 12px;flex-wrap:wrap;min-width:0}
.student-task-title-alert{display:inline-flex;align-items:center;gap:6px;font-size:10.5px;font-weight:720;line-height:1.35}
.student-task-title-alert-dot{width:7px;height:7px;flex:0 0 7px;border-radius:50%}
.student-task-title-alert.alert-review-green{color:#2f8f65}.student-task-title-alert.alert-review-green .student-task-title-alert-dot{background:#2f9e6f;box-shadow:0 0 0 3px #e7f6ef}
.student-task-title-alert.alert-review-blue{color:#426b9e}.student-task-title-alert.alert-review-blue .student-task-title-alert-dot{background:#5b7fb8;box-shadow:0 0 0 3px #edf2f8}
.student-task-title-alert.alert-new,.student-task-title-alert.alert-reopened{color:#b42318}.student-task-title-alert.alert-new .student-task-title-alert-dot,.student-task-title-alert.alert-reopened .student-task-title-alert-dot{background:#d92d20;box-shadow:0 0 0 3px #fde9e7}

/* Closed: no progress bar; grade/comment is the elastic centre column. */
.student-task-closed-row{
  grid-template-columns:minmax(350px,420px) minmax(280px,1fr) auto!important;
  gap:24px!important;
}
.student-task-closed-grade{
  min-width:0;width:100%;display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:6px;
  padding:0;border:0;background:transparent;color:inherit;font:inherit;text-align:left;cursor:pointer;
}
.student-task-closed-grade:hover .student-task-closed-grade-comment{color:#303b4d}
.student-task-closed-grade .assignment-inline-grade-topline{display:flex;align-items:center;gap:4px;min-height:18px}
.student-task-closed-grade-stars{display:inline-flex;align-items:center}
.student-task-closed-grade-comment{width:100%;color:#626d7e;font-size:10.5px;line-height:1.5;white-space:normal;text-align:left}
#studentTasksView-closed .grade-reaction-inline{
  min-width:15px!important;width:auto!important;height:15px!important;margin:0 0 0 3px!important;padding:0!important;border:0!important;border-radius:0!important;background:transparent!important;font-size:15px!important;line-height:15px!important;
}

/* My: three-line identity; no teacher-approval state. */
.student-task-own-row{grid-template-columns:minmax(0,1fr) auto!important;gap:24px!important}
.student-own-status{display:inline-flex;align-items:center;gap:6px;font-size:10.5px;line-height:1.45}
.student-own-status strong{font-weight:720}
.student-own-status-dot{width:7px;height:7px;flex:0 0 7px;border-radius:50%}
.student-own-status-private{color:#9a681d}.student-own-status-private .student-own-status-dot{background:#b77a24;box-shadow:0 0 0 3px #fbf2df}
.student-own-status-shared{color:#2f8f65}.student-own-status-shared .student-own-status-dot{background:#2f9e6f;box-shadow:0 0 0 3px #e7f6ef}
.student-task-own-row.task-quick-open .task-quick-actions-panel{max-width:720px}

/* Grade modal: reaction sits naked on the stars baseline; picker is less pill-like. */




/* Difficulty level 1 is green everywhere: listings, task pages, topbars and editors. */
.difficulty-meter.difficulty-level-1 i.active{background:#2f9e6f!important}
.task-editor-difficulty-option.difficulty-option-1{color:#2f9e6f!important}
.task-editor-difficulty-option.difficulty-option-1 .task-editor-difficulty-number{background:#2f9e6f!important}
.task-editor-difficulty-strip[data-preview-level="1"]{--difficulty-preview-color:#2f9e6f!important}

/* Top action is contextual, but intentionally neutral. */
#studentCreateOwnTask{background:#fff!important;color:var(--text)!important;border-color:var(--line)!important;box-shadow:none!important}
#studentCreateOwnTask:hover{background:#f5f6f8!important;border-color:#c9cfda!important}

@media(max-width:1180px){
  .tasks-hub-toolbar .tasks-hub-tools{top:0}
}
@media(max-width:900px){
  .student-task-active-row,.student-task-closed-row,.student-task-own-row{grid-template-columns:1fr!important;gap:10px!important}
  .student-task-list-progress{min-width:0;width:100%;grid-template-columns:minmax(0,1fr) 42px}
  .student-task-hub-row .tasks-hub-row-actions{justify-self:start!important}
  .student-task-closed-grade{padding:2px 0 4px}
}

/* v370 QA corrections */
.student-task-hub-row{display:grid!important}
#studentCreateOwnTask[hidden]{display:none!important}
.tasks-hub-toolbar .tasks-hub-tools{top:0!important}
@media(min-width:901px){
  .tasks-hub-toolbar{flex-direction:row!important;align-items:center!important}
  .tasks-hub-toolbar .tasks-hub-tools{width:auto!important;margin-left:auto!important;flex-wrap:nowrap!important}
}


/* v371 — uczeń: grupy + widok grupy zgodne z task-hubem. */
.student-groups-toolbar-v371,
.student-group-tasks-toolbar-v371{
  display:flex!important;align-items:center!important;gap:18px!important;margin-bottom:16px!important;
}
.student-groups-toolbar-v371 .student-groups-local-nav,
.student-group-tasks-toolbar-v371 .student-group-local-nav{
  margin:0!important;padding:0 4px!important;align-self:center!important;
}
.student-groups-tools-v371,
.student-group-task-tools-v371{
  margin-left:auto;display:flex;align-items:center;gap:12px;flex-wrap:nowrap;
}
.student-groups-pagination-v371,
.student-group-task-pagination{margin-top:16px!important}
.student-groups-pagination-v371:empty,
.student-group-task-pagination:empty{display:none}

.student-group-tasks-card-v371{padding-top:0!important;overflow:visible!important}
.student-group-tasks-card-v371 .student-group-task-row[hidden],
.student-group-tasks-card-v371 .tasks-hub-view[hidden]{display:none!important}
.student-group-task-row{
  display:grid!important;min-height:86px!important;padding:14px 0!important;margin:0!important;
  border-left:0!important;border-right:0!important;border-top:0!important;border-radius:0!important;background:#fff!important;
}
.student-group-task-row:hover{background:linear-gradient(90deg,#fff 0%,#f6f7fa 14%,#f6f7fa 86%,#fff 100%)!important}
.student-group-task-row .tasks-hub-main{min-width:0}
.student-group-task-active-row{grid-template-columns:minmax(350px,420px) minmax(260px,1fr) auto!important;gap:24px!important}
.student-group-task-closed-row{grid-template-columns:minmax(350px,420px) minmax(320px,1fr) auto!important;gap:24px!important}
.student-group-task-row .student-task-list-progress{min-width:260px;width:100%!important}
.student-group-task-row .tasks-hub-row-actions{justify-self:end!important}
.student-group-status-sep{margin:0 4px;color:#a0a7b3}
.student-group-task-row .tasks-hub-statuses{margin-top:5px!important}
.student-group-task-row .tasks-hub-meta{margin-top:5px!important}
.student-group-task-row .tasks-hub-status.status-review-v371 .tasks-hub-status-dot{background:#2f9e6f;box-shadow:0 0 0 3px #e7f6ef}
.student-group-task-row .tasks-hub-status.status-new-v371 .tasks-hub-status-dot{background:#d92d20;box-shadow:0 0 0 3px #fde9e7}
.student-group-task-row .student-group-grade-summary-v371{min-width:0;width:100%;justify-self:stretch!important;align-self:center!important}
#studentGroupClosedTasksView .grade-reaction-inline{
  min-width:15px!important;width:auto!important;height:15px!important;margin:0 0 0 3px!important;padding:0!important;
  border:0!important;border-radius:0!important;background:transparent!important;font-size:15px!important;line-height:15px!important;
}
#studentGradePreviewModal .student-grade-preview-current-reaction{
  min-width:20px!important;width:auto!important;height:20px!important;margin:0 0 0 4px!important;padding:0!important;
  border:0!important;border-radius:0!important;background:transparent!important;font-size:20px!important;line-height:20px!important;
}
#studentGradePreviewModal .student-grade-preview-reaction-picker{border-radius:10px!important}
#studentGradePreviewModal .grade-evaluation-reaction-option{border-radius:7px!important}
.student-group-local-nav .view-segment[hidden]{display:none!important}
#studentGroupTaskTools[hidden]{display:none!important}

@media(max-width:980px){
  .student-groups-toolbar-v371,.student-group-tasks-toolbar-v371{align-items:flex-start!important;flex-wrap:wrap!important}
  .student-groups-tools-v371,.student-group-task-tools-v371{width:100%;margin-left:0;justify-content:flex-start;flex-wrap:wrap}
}
@media(max-width:900px){
  .student-group-task-active-row,.student-group-task-closed-row{grid-template-columns:1fr!important;gap:10px!important}
  .student-group-task-row .student-task-list-progress{min-width:0;width:100%!important}
  .student-group-task-row .tasks-hub-row-actions{justify-self:start!important}
  .student-group-task-row .student-task-closed-grade{padding:2px 0 4px!important}
}


/* v372 — editor overflow action + stable notification badge during sidebar navigation */
@media(min-width:761px){
  html.eureka-sidebar-collapsed-preload.eureka-sidebar-hover-preload
  .dashboard-adaptive-sidebar .nav-count-badge,
  html.eureka-student-sidebar-collapsed-preload.eureka-student-sidebar-hover-preload
  .dashboard-adaptive-sidebar .nav-count-badge,
  .dashboard-adaptive-shell.sidebar-is-collapsed.sidebar-hover-preview-restored
  .dashboard-adaptive-sidebar .nav-count-badge{
    position:static!important;
    top:auto!important;
    right:auto!important;
    min-width:21px!important;
    height:18px!important;
    padding:0 6px!important;
    margin-left:0!important;
    border-radius:6px!important;
    font-size:10px!important;
    transition:none!important;
    transform:none!important;
  }
}

/* The editor always exposes download as its single overflow action. */
.task-editor-topbar.v211-action-topbar.v211-actions-open
.task-editor-header-actions #openDownloadTaskModal:not([hidden]){
  display:inline-flex!important;
}


/* v373 — uczeń: oczekujące grupy + stabilny layout zakładki Informacje. */
.student-pending-group-toggle{
  width:34px!important;
  min-width:34px!important;
  height:34px!important;
  min-height:34px!important;
}
.student-pending-group-quick-panel{
  right:41px!important;
}
.student-pending-group-cancel{
  display:inline-flex!important;
  align-items:center!important;
  gap:7px!important;
}
.student-pending-group-cancel .light-action-icon.cross{
  position:relative;
  display:inline-block;
  width:14px;
  height:14px;
  flex:0 0 14px;
}
.student-pending-group-cancel .light-action-icon.cross::before,
.student-pending-group-cancel .light-action-icon.cross::after{
  content:"";
  position:absolute;
  left:6.25px;
  top:2px;
  width:1.5px;
  height:10px;
  border-radius:1px;
  background:currentColor;
}
.student-pending-group-cancel .light-action-icon.cross::before{transform:rotate(45deg)}
.student-pending-group-cancel .light-action-icon.cross::after{transform:rotate(-45deg)}



/* v374 — kanoniczna geometria lokalnych zakładek w całej aplikacji.
   Zakładka nie zmienia wysokości po aktywacji; miejsce na podkreślenie jest
   stałe, a toolbar nie kurczy się, gdy prawa część (filtry/sortowanie) znika. */
.groups-local-nav{
  min-height:36px!important;
  align-items:stretch!important;
}
.groups-local-nav .view-segment{
  height:36px!important;
  min-height:36px!important;
  padding:0 0 8px!important;
  display:inline-flex!important;
  align-items:center!important;
  line-height:1.2!important;
}
.groups-local-nav .view-segment::after{
  content:"";
  position:absolute;
  left:0;
  right:0;
  bottom:0;
  height:2px!important;
  border-radius:2px!important;
  background:transparent;
}
.groups-local-nav .view-segment.active::after{
  height:2px!important;
}

/* Starszy wariant .tabs również trzyma stałe 2 px podkreślenia. */
.tabs .tab{
  border-bottom-width:2px!important;
}
\n\n/* v379 — dashboard ucznia: reakcja emoji przy ocenie bez apli. */
.student-dashboard-closed-grade .student-dashboard-closed-reaction{
  min-width:15px!important;
  width:auto!important;
  height:15px!important;
  margin:0 0 0 4px!important;
  padding:0!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  font-size:15px!important;
  line-height:15px!important;
  flex:0 0 auto;
}


/* v380 — student breadcrumbs + one separator before group pagination */
.student-group-task-row.is-page-last{border-bottom:0!important}


/* v381 — shared password-change control for student and teacher settings */
.password-change-trigger{
  display:inline-flex!important;
  align-items:center!important;
  gap:6px!important;
}
.password-action-icon{
  position:relative;
  display:inline-block;
  width:16px;
  height:16px;
  flex:0 0 16px;
  color:currentColor;
}
.password-action-icon::before{
  content:"";
  position:absolute;
  left:1px;
  top:4px;
  width:6px;
  height:6px;
  border:1.5px solid currentColor;
  border-radius:50%;
  box-sizing:border-box;
}
.password-action-icon::after{
  content:"";
  position:absolute;
  left:6.4px;
  top:7px;
  width:8px;
  height:1.5px;
  border-radius:2px;
  background:currentColor;
  box-shadow:4px 2.6px 0 -0.1px currentColor;
  transform:rotate(-36deg);
  transform-origin:left center;
}
.password-change-modal{
  width:min(440px,calc(100vw - 32px))!important;
}
.password-change-modal .confirm-modal-icon{
  margin-bottom:12px;
}
.password-change-modal-icon .password-action-icon-large{
  width:25px;
  height:25px;
  flex-basis:25px;
}
.password-change-modal-icon .password-action-icon-large::before{
  left:2px;
  top:6px;
  width:9px;
  height:9px;
  border-width:1.8px;
}
.password-change-modal-icon .password-action-icon-large::after{
  left:10px;
  top:10px;
  width:12px;
  height:1.8px;
  box-shadow:5px 3.4px 0 -0.1px currentColor;
}
.password-change-fields{
  display:grid;
  gap:13px;
  margin:18px 0 4px;
  text-align:left;
}
.password-change-fields label{
  display:grid;
  gap:6px;
  color:#566173;
  font-size:11px;
  font-weight:700;
}
.password-input-wrap{
  position:relative;
}
.password-input-wrap input{
  width:100%;
  min-height:40px;
  padding:0 42px 0 11px;
  border:1px solid var(--line);
  border-radius:7px;
  background:#fff;
  color:var(--text);
  font:inherit;
  font-size:13px;
  outline:none;
  transition:border-color .14s ease,box-shadow .14s ease;
}
.password-input-wrap input:focus{
  border-color:#aaaaf0;
  box-shadow:0 0 0 3px rgba(88,86,214,.09);
}
.password-input-wrap input[aria-invalid="true"]{
  border-color:#e2a19d;
  box-shadow:0 0 0 3px rgba(217,45,32,.06);
}
.password-visibility-toggle{
  position:absolute;
  right:5px;
  top:50%;
  width:32px;
  height:32px;
  padding:0;
  border:0;
  border-radius:6px;
  background:transparent;
  color:#8791a2;
  cursor:pointer;
  transform:translateY(-50%);
  display:grid;
  place-items:center;
}
.password-visibility-toggle:hover{
  background:#f5f6f8;
  color:#596477;
}
.password-eye-icon{
  position:relative;
  width:16px;
  height:10px;
  border:1.4px solid currentColor;
  border-radius:60% 60% 60% 60% / 85% 85% 85% 85%;
  box-sizing:border-box;
}
.password-eye-icon::before{
  content:"";
  position:absolute;
  left:50%;
  top:50%;
  width:4px;
  height:4px;
  border-radius:50%;
  background:currentColor;
  transform:translate(-50%,-50%);
}
.password-visibility-toggle.is-visible .password-eye-icon::after{
  content:"";
  position:absolute;
  left:-2px;
  top:4px;
  width:20px;
  height:1.3px;
  border-radius:2px;
  background:currentColor;
  transform:rotate(-37deg);
  transform-origin:center;
}
.password-field-error{
  margin-top:-1px;
  color:#c43228;
  font-size:9.5px;
  font-weight:600;
  line-height:1.35;
}
.password-change-modal .confirm-modal-actions{
  margin-top:18px;
}
.password-change-modal .confirm-modal-actions .btn{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:6px!important;
}
.password-change-modal .password-change-confirm:disabled{
  cursor:not-allowed!important;
  opacity:.42!important;
  box-shadow:none!important;
}


/* v382 — dashboard ucznia: ocena i reakcja jako jeden czysty rząd. */
.student-dashboard-closed-grade{
  display:inline-flex!important;
  align-items:center!important;
  gap:7px!important;
}
.student-dashboard-closed-grade .student-dashboard-closed-reaction{
  display:inline-block!important;
  min-width:0!important;
  width:auto!important;
  height:auto!important;
  margin:0!important;
  padding:0!important;
  border:0!important;
  outline:0!important;
  box-shadow:none!important;
  border-radius:0!important;
  background:none!important;
  font-size:15px!important;
  line-height:1!important;
  vertical-align:middle!important;
  flex:0 0 auto!important;
}
.student-dashboard-closed-grade .student-dashboard-closed-reaction[hidden]{
  display:none!important;
}

/* v383 — password change: standard Dashicons + clear disabled/enabled CTA states. */
.password-change-trigger .password-shortcode-icon{
  width:18px!important;
  height:18px!important;
  font-size:18px!important;
  line-height:18px!important;
  flex:0 0 18px!important;
}
.password-change-modal-icon .password-shortcode-modal-icon{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  width:28px!important;
  height:28px!important;
  font-size:28px!important;
  line-height:28px!important;
}
.password-visibility-toggle .password-visibility-icon{
  width:18px!important;
  height:18px!important;
  font-size:18px!important;
  line-height:18px!important;
  color:currentColor;
}
/* remove old handmade eye/key artwork from this component */
.password-change-trigger .password-action-icon,
.password-change-modal-icon .password-action-icon,
.password-visibility-toggle .password-eye-icon{
  display:none!important;
}
.password-change-modal .password-change-confirm .light-action-icon.check{
  position:relative!important;
  display:inline-block!important;
  width:14px!important;
  height:14px!important;
  flex:0 0 14px!important;
}
.password-change-modal .password-change-confirm .light-action-icon.check::before{
  content:"";
  position:absolute;
  left:3.6px;
  top:1.8px;
  width:5px;
  height:8px;
  border-right:1.4px solid currentColor;
  border-bottom:1.4px solid currentColor;
  transform:rotate(42deg);
  transform-origin:center;
}
.password-change-modal .password-change-confirm:disabled{
  opacity:1!important;
  cursor:not-allowed!important;
  background:#f0f2f5!important;
  border-color:#e1e5ea!important;
  color:#9aa2ae!important;
  box-shadow:none!important;
}
.password-change-modal .password-change-confirm:not(:disabled){
  opacity:1!important;
  cursor:pointer!important;
}

/* v384 — student dashboard: narrow-screen layout polish */
@media (max-width:760px){
  /* School context sits directly under the greeting and stays purely textual. */
  .student-dashboard-school-context{
    margin-top:-7px!important;
    padding:0!important;
  }
  .student-dashboard-school-item{
    gap:0!important;
  }
  .student-dashboard-school-item .dashicons{
    display:none!important;
  }

  /* Notifications, completed tasks and groups use the full mobile width. */
  .student-dashboard-lower-grid{
    grid-template-columns:minmax(0,1fr)!important;
    gap:16px!important;
  }
  .student-dashboard-right-stack{
    grid-template-columns:minmax(0,1fr)!important;
    width:100%!important;
  }
  .student-dashboard-notifications-card,
  .student-dashboard-side-card{
    width:100%!important;
    min-width:0!important;
  }
}


/* v385 — compact one-row mobile task progress dock */
@media(max-width:760px){
  .student-task-progress-dock .student-task-progress-meta{
    flex-wrap:nowrap!important;
    align-items:center!important;
  }
  .student-task-progress-dock .task-content-progress-step-group{
    width:auto!important;
    min-width:0!important;
    flex:0 1 auto!important;
    flex-wrap:nowrap!important;
  }
  .student-task-progress-dock .student-task-progress-summary{
    width:auto!important;
    flex:0 0 auto!important;
    margin-left:auto!important;
    flex-direction:row!important;
    align-items:baseline!important;
    white-space:nowrap!important;
  }
  .student-task-progress-dock .task-content-step-label[data-mobile-copy],
  .student-task-progress-dock .student-task-progress-summary > span[data-mobile-copy]{
    font-size:0!important;
    white-space:nowrap!important;
  }
  .student-task-progress-dock .task-content-step-label[data-mobile-copy]::after{
    content:attr(data-mobile-copy);
    font-size:13px;
    font-weight:780;
    line-height:1.2;
  }
  .student-task-progress-dock .student-task-progress-summary > span[data-mobile-copy]::after{
    content:attr(data-mobile-copy);
    font-size:11.5px;
    font-weight:400;
    line-height:1.25;
  }
}
@media(max-width:430px){
  .student-task-progress-dock .task-content-progress-step-group,
  .student-task-progress-dock .student-task-progress-summary{
    width:auto!important;
  }
  .student-task-progress-dock .student-task-progress-meta{
    gap:7px!important;
  }
  .student-task-progress-dock .task-content-progress-step-group{
    gap:6px!important;
  }
  .student-task-progress-dock .student-task-progress-summary{
    gap:4px!important;
  }
  .student-task-progress-dock .student-task-progress-summary > span[data-mobile-copy]::after{
    font-size:10.5px;
  }
}


/* v386 — student mobile usability pass: task/group listings, notifications, settings and code blocks */
@media(max-width:760px){
  /* Moje zadania: local tabs always start from the left edge. */
  .student-tasks-hub-toolbar{
    align-items:stretch!important;
  }
  .student-tasks-hub-toolbar .student-tasks-local-nav{
    width:100%!important;
    align-self:stretch!important;
    justify-content:flex-start!important;
    padding-left:0!important;
    padding-right:0!important;
  }

  /* On phones rows themselves are the navigation target; redundant row action buttons disappear. */
  .student-tasks-hub-card .student-task-hub-row > .tasks-hub-row-actions{
    display:none!important;
  }
  .student-groups-module .student-groups-portal-row > .student-groups-row-actions{
    display:none!important;
  }

  /* "Moje" contextual create action becomes a proper full-width mobile CTA. */
  #studentCreateOwnTask:not([hidden]){
    width:100%!important;
    max-width:none!important;
    min-height:50px!important;
    height:50px!important;
    justify-content:center!important;
    flex:1 1 100%!important;
  }

  /* Oczekujące grupy: simple metadata rows, label normal + value bold. */
  .student-pending-group-meta{
    gap:6px!important;
  }
  .student-pending-group-meta-item{
    display:flex!important;
    align-items:baseline!important;
    flex-wrap:wrap!important;
    gap:4px 8px!important;
    min-width:0!important;
    font-size:10.5px!important;
  }
  .student-pending-group-meta-item small{
    flex:0 0 auto!important;
    color:#697386!important;
    font-size:10.5px!important;
    font-weight:400!important;
    line-height:1.45!important;
  }
  .student-pending-group-meta-item > span{
    min-width:0!important;
    color:#465164!important;
    font-size:10.5px!important;
    font-weight:720!important;
    line-height:1.45!important;
  }

  /* The overflow button stays in the top-right; its dropdown spans the row beneath it. */
  .student-pending-group-actions{
    position:static!important;
    align-self:flex-start!important;
  }
  .student-pending-group-toggle{
    position:relative!important;
    z-index:34!important;
  }
  .student-pending-group-quick-panel{
    left:0!important;
    right:0!important;
    top:66px!important;
    width:auto!important;
    max-width:none!important;
  }
  .student-pending-group-row.quick-open .student-pending-group-toggle{
    color:#d92d20!important;
  }
  .student-pending-group-row.quick-open .student-pending-group-toggle .quick-toggle-close-icon{
    color:#d92d20!important;
  }

  /* Powiadomienia: the row is clickable, so only the state-changing action remains. */
  .notification-event-actions .notification-details-btn{
    display:none!important;
  }
  .notification-event-actions:not(:has(.notification-read-btn)){
    display:none!important;
  }
  #studentMarkMessagesRead:not([hidden]){
    width:100%!important;
    max-width:none!important;
    min-height:50px!important;
    height:50px!important;
    justify-content:center!important;
    flex:1 1 100%!important;
  }

  /* Ustawienia: when both actions are visible, Powrót and Zapisz divide the row exactly 50/50. */
  .student-settings-own-topbar > .topbar-actions.mobile-topbar-managed[data-mobile-core-count="2"]{
    display:grid!important;
    grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;
    gap:8px!important;
  }
  .student-settings-own-topbar > .topbar-actions.mobile-topbar-managed[data-mobile-core-count="2"]
  > .mobile-topbar-core:not([hidden]){
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    min-height:48px!important;
    height:48px!important;
    flex:none!important;
    margin:0!important;
  }

  /* Task code must never establish a viewport-wider min-content size. */
  .student-task-v229,
  .student-task-v229 .student-task-content-card,
  .student-task-v229 .student-task-step-content,
  .student-task-v229 .task-content-sequence,
  .student-task-v229 .task-content-block,
  .student-own-task-step-detail,
  .student-own-task-step-detail .task-content-sequence,
  .student-own-task-step-detail .task-content-block{
    min-width:0!important;
    max-width:100%!important;
    box-sizing:border-box!important;
  }
  #studentTaskStepList .task-step-inline-detail,
  #studentTaskStepList .task-expanded-content-node,
  #studentTaskStepList .task-step-expanded-content-host{
    min-width:0!important;
    max-width:100%!important;
    box-sizing:border-box!important;
  }
  .student-task-v229 .student-task-step-content .catalog-code,
  .student-own-task-step-detail .catalog-code{
    display:block!important;
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    box-sizing:border-box!important;
    overflow-x:auto!important;
    overflow-y:hidden!important;
    white-space:pre!important;
    -webkit-overflow-scrolling:touch;
    overscroll-behavior-inline:contain;
  }
  .student-task-v229 .student-task-step-content .catalog-code code,
  .student-own-task-step-detail .catalog-code code{
    display:block!important;
    width:max-content!important;
    min-width:100%!important;
    max-width:none!important;
    white-space:pre!important;
  }

  /* Code actions stack, stay inside the same content column and use mobile-height targets. */
  .student-task-v229 .student-task-step-content .code-actions,
  .student-own-task-step-detail .code-actions{
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    display:flex!important;
    flex-direction:column!important;
    align-items:stretch!important;
    gap:8px!important;
    box-sizing:border-box!important;
  }
  .student-task-v229 .student-task-step-content .code-actions .btn,
  .student-own-task-step-detail .code-actions .btn{
    width:100%!important;
    max-width:100%!important;
    min-height:48px!important;
    height:48px!important;
    justify-content:center!important;
    box-sizing:border-box!important;
  }
}


/* v387.1 — mobile step action buttons inside the expanded step should fill the available content column and use the shared mobile tap-target height. */
@media(max-width:760px){
  #studentTaskStepList .student-step-no-thread-actions,
  #studentTaskStepList #studentTaskHelpShell .student-step-consultation-actions,
  #studentTaskStepList .student-step-no-thread-actions .student-step-consultation-actions,
  #studentTaskStepList .student-step-consultation-actions{
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    box-sizing:border-box!important;
  }

  /* Use a single-column grid on mobile so every visible action spans the whole content block. */
  #studentTaskStepList #studentTaskHelpShell .student-step-consultation-actions,
  #studentTaskStepList .student-step-no-thread-actions .student-step-consultation-actions,
  #studentTaskStepList .student-step-consultation-actions{
    display:grid;
    grid-template-columns:minmax(0,1fr)!important;
    align-items:stretch!important;
    justify-items:stretch!important;
    gap:10px!important;
  }

  #studentTaskStepList #studentTaskHelpShell .student-step-consultation-actions .btn:not([hidden]),
  #studentTaskStepList .student-step-no-thread-actions .student-step-consultation-actions .btn:not([hidden]),
  #studentTaskStepList .student-step-consultation-actions .btn:not([hidden]){
    display:flex!important;
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    min-height:54px!important;
    height:54px!important;
    justify-content:flex-start!important;
    text-align:left!important;
    padding-left:16px!important;
    padding-right:14px!important;
    box-sizing:border-box!important;
  }
}

/* v388 — pending group mobile quick action must overlay the following row. */
.student-pending-group-row{
  z-index:0;
}
.student-pending-group-row.quick-open{
  z-index:60!important;
}
.student-pending-group-row.quick-open .student-pending-group-actions{
  z-index:61!important;
}
.student-pending-group-row.quick-open .student-pending-group-quick-panel{
  z-index:62!important;
}



/* v389 — student-group mobile cleanup */
.student-group-task-active-row{grid-template-columns:minmax(350px,460px) minmax(260px,1fr)!important;}
.student-group-task-closed-row{grid-template-columns:minmax(350px,460px) minmax(320px,1fr)!important;}
.student-group-task-row .tasks-hub-row-actions{display:none!important;}

@media(max-width:760px){
  .student-group-topbar .student-context-topbar-actions{
    display:none!important;
  }
  .student-group-topbar .student-context-topbar-title{
    min-width:0!important;
    flex:1 1 auto!important;
    padding-right:10px!important;
  }
  .student-group-topbar .student-context-topbar-group{
    display:block!important;
    width:100%!important;
    margin-top:4px!important;
  }
  .student-group-topbar .dashboard-mobile-menu-toggle{
    align-self:flex-start!important;
    margin-left:auto!important;
  }
  .student-group-task-tools-v371{
    width:100%!important;
    display:flex!important;
    flex-direction:column!important;
    align-items:stretch!important;
    gap:12px!important;
  }
  .student-group-task-tools-v371 > label{
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    display:grid!important;
    grid-template-columns:minmax(0,1fr)!important;
    gap:6px!important;
  }
  .student-group-task-tools-v371 > label > span{
    display:block!important;
  }
  .student-group-task-tools-v371 > label .select-control,
  .student-group-task-tools-v371 > label select{
    width:100%!important;
    max-width:100%!important;
  }
}


/* v390 — mobile polishing for student-own-task-editor */
@media(max-width:760px){
  /* Topbar actions: same mobile height as the overflow button. */
  .task-editor-header-actions.mobile-topbar-managed{
    align-items:stretch!important;
  }
  .task-editor-header-actions.mobile-topbar-managed > .mobile-topbar-core:not([hidden]),
  .task-editor-header-actions.mobile-topbar-managed > .btn.v211-topbar-core:not([hidden]),
  .task-editor-header-actions.mobile-topbar-managed > .btn.task-editor-save:not([hidden]){
    min-height:48px!important;
    height:48px!important;
    display:inline-flex!important;
    align-items:center!important;
    justify-content:center!important;
    box-sizing:border-box!important;
  }
  .task-editor-header-actions.mobile-topbar-managed > .v211-topbar-more-toggle,
  .task-editor-header-actions.mobile-topbar-managed > .mobile-topbar-more,
  .task-editor-header-actions.mobile-topbar-managed > .btn[aria-label*="Więcej" i]{
    width:48px!important;
    min-width:48px!important;
    max-width:48px!important;
    height:48px!important;
    min-height:48px!important;
    flex:0 0 48px!important;
    box-sizing:border-box!important;
  }

  /* Step management buttons: 2 x 2 equal mobile grid. */
  .task-editor-step-actions{
    width:100%!important;
    display:grid!important;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:8px!important;
    justify-content:stretch!important;
    align-items:stretch!important;
  }
  .task-editor-step-actions #editorMoveEarlier{order:1!important;}
  .task-editor-step-actions #editorMoveLater{order:2!important;}
  .task-editor-step-actions #editorAddStep{order:3!important;}
  .task-editor-step-actions #editorDeleteStep{order:4!important;}
  .task-editor-step-actions .btn{
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    min-height:48px!important;
    height:48px!important;
    justify-content:center!important;
    box-sizing:border-box!important;
  }

  /* Block-level controls: make the up/down/trash buttons slightly larger. */
  .task-editor-block-actions{
    gap:7px!important;
  }
  .task-editor-block-actions .task-editor-block-icon-btn,
  .task-editor-block-actions > .task-editor-icon-btn,
  .task-editor-block-actions > button{
    width:40px!important;
    min-width:40px!important;
    height:40px!important;
    min-height:40px!important;
    border-radius:8px!important;
    display:inline-flex!important;
    align-items:center!important;
    justify-content:center!important;
    box-sizing:border-box!important;
  }
  .task-editor-block-actions .task-editor-block-icon-btn .dashicons,
  .task-editor-block-actions > .task-editor-icon-btn .dashicons,
  .task-editor-block-actions > button .dashicons{
    width:18px!important;
    height:18px!important;
    font-size:18px!important;
    line-height:18px!important;
  }

  /* Add-block area: centered label row, then 2-up row, then 3-up row. */
  .task-editor-add-block{
    display:grid!important;
    grid-template-columns:repeat(6,minmax(0,1fr))!important;
    gap:8px!important;
    align-items:stretch!important;
    justify-items:stretch!important;
  }
  .task-editor-add-label{
    grid-column:1 / -1!important;
    justify-self:center!important;
    text-align:center!important;
    margin:0!important;
  }
  .task-editor-add-block .editor-add-block-btn{
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    min-height:48px!important;
    height:48px!important;
    justify-content:center!important;
    box-sizing:border-box!important;
  }
  .task-editor-add-block .editor-add-block-btn[data-block-type="text"],
  .task-editor-add-block .editor-add-block-btn[data-block-type="highlight"]{
    grid-column:span 3!important;
  }
  .task-editor-add-block .editor-add-block-btn[data-block-type="image"],
  .task-editor-add-block .editor-add-block-btn[data-block-type="video"],
  .task-editor-add-block .editor-add-block-btn[data-block-type="code"]{
    grid-column:span 2!important;
  }
}

/* v391 — repair student-group mobile header + filter/sort rows */
@media(max-width:760px){
  /* Keep the group identity in the header while pinning hamburger to the real top-right corner. */
  .student-group-topbar{
    position:sticky!important;
    top:0!important;
    display:block!important;
    min-height:92px!important;
    height:auto!important;
    padding:14px 66px 14px 16px!important;
    box-sizing:border-box!important;
  }
  .student-group-topbar .student-context-topbar-title{
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    display:flex!important;
    flex:0 1 auto!important;
    flex-wrap:wrap!important;
    align-items:center!important;
    gap:5px 8px!important;
    padding:0!important;
  }
  .student-group-topbar .student-context-topbar-name{
    min-width:0!important;
    max-width:calc(100% - 34px)!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
    white-space:nowrap!important;
  }
  .student-group-topbar .student-context-topbar-group{
    flex:0 0 100%!important;
    width:100%!important;
    margin:2px 0 0!important;
    display:block!important;
    line-height:1.35!important;
    white-space:normal!important;
  }
  .student-group-topbar .student-context-topbar-actions{
    display:none!important;
  }
  .student-group-topbar > .dashboard-mobile-menu-toggle{
    position:absolute!important;
    top:14px!important;
    right:16px!important;
    width:42px!important;
    height:42px!important;
    margin:0!important;
    align-self:auto!important;
    z-index:4!important;
  }

  /* Filter and sort remain stacked as two rows, but each row is label + full-width select. */
  .student-group-task-tools-v371{
    width:100%!important;
    display:flex!important;
    flex-direction:column!important;
    align-items:stretch!important;
    gap:10px!important;
    margin-left:0!important;
  }
  .student-group-task-tools-v371 > label{
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    flex:0 0 auto!important;
    display:grid!important;
    grid-template-columns:38px minmax(0,1fr)!important;
    align-items:center!important;
    gap:9px!important;
    margin:0!important;
    box-sizing:border-box!important;
  }
  .student-group-task-tools-v371 > label > span{
    display:block!important;
    width:auto!important;
    margin:0!important;
    white-space:nowrap!important;
  }
  .student-group-task-tools-v371 > label .select-control,
  .student-group-task-tools-v371 > label select{
    width:100%!important;
    min-width:0!important;
    max-width:none!important;
    margin:0!important;
  }
}



/* v392 — student settings mobile polish */
@media(max-width:760px){
  /* Topbar actions in true mobile mode: equal 50/50 width when both are visible. */
  .student-settings-own-topbar > .topbar-actions,
  .student-settings-own-topbar > .topbar-actions.mobile-topbar-managed{
    width:100%!important;
    min-width:0!important;
    display:grid!important;
    grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;
    gap:8px!important;
    align-items:stretch!important;
  }
  .student-settings-own-topbar > .topbar-actions > .btn:not([hidden]),
  .student-settings-own-topbar > .topbar-actions.mobile-topbar-managed > .btn:not([hidden]),
  .student-settings-own-topbar > .topbar-actions.mobile-topbar-managed > .mobile-topbar-core:not([hidden]){
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    min-height:48px!important;
    height:48px!important;
    flex:none!important;
    margin:0!important;
    display:inline-flex!important;
    align-items:center!important;
    justify-content:center!important;
    box-sizing:border-box!important;
  }

  /* Shorter local-tab labels are injected by JS only on mobile. */
  .student-own-settings-nav{
    gap:6px!important;
  }
  .student-own-settings-nav .view-segment{
    min-width:0!important;
  }

  /* Settings rows stack cleanly on mobile. */
  .student-own-settings-view .teacher-profile-setting-row{
    grid-template-columns:1fr!important;
    gap:8px!important;
    align-items:start!important;
    padding-top:14px!important;
    padding-bottom:14px!important;
  }
  .student-own-settings-view .teacher-profile-setting-action{
    width:100%!important;
    justify-content:stretch!important;
  }

  /* Displayed values get more visual weight. */
  .student-own-settings-view .teacher-profile-setting-value{
    font-size:15px!important;
    line-height:1.45!important;
    font-weight:700!important;
  }

  /* Editable inputs stay proportional to the larger value text. */
  .student-own-settings-view .teacher-profile-setting-input{
    width:100%!important;
    min-height:44px!important;
    font-size:15px!important;
  }

  /* Full-width mobile CTAs in Basic and Security cards. */
  .student-own-settings-view .student-own-edit,
  .student-own-settings-view .password-change-trigger{
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    min-height:48px!important;
    height:48px!important;
    display:inline-flex!important;
    align-items:center!important;
    justify-content:center!important;
    box-sizing:border-box!important;
  }
}


/* v393 — definitive mobile inline-size containment for student-task, including #waiting. */
@media(max-width:760px){
  html,
  body.student-task-page{
    max-width:100%!important;
    overflow-x:clip!important;
  }

  body.student-task-page .shell,
  body.student-task-page .main,
  body.student-task-page .student-task-v229,
  body.student-task-page #studentTaskView,
  body.student-task-page #studentTaskStepList,
  body.student-task-page #studentTaskStepList .student-task-step-list-item,
  body.student-task-page #studentTaskStepList .task-step-list-row,
  body.student-task-page #studentTaskStepList .task-step-inline-detail,
  body.student-task-page #studentTaskStepList .task-step-expanded-detail,
  body.student-task-page #studentTaskStepList .task-expanded-content-node,
  body.student-task-page #studentTaskStepList .task-step-expanded-content-host,
  body.student-task-page #studentTaskStepList .student-task-content-card,
  body.student-task-page #studentTaskStepList .student-task-step-content,
  body.student-task-page #studentTaskStepList .task-content-sequence,
  body.student-task-page #studentTaskStepList .task-content-block,
  body.student-task-page #studentTaskStepList .student-step-consultation,
  body.student-task-page #studentTaskStepList .student-step-no-thread-actions{
    min-width:0!important;
    max-width:100%!important;
    box-sizing:border-box!important;
  }

  /* Never let an expanded step establish a page-wide min-content width. */
  body.student-task-page #studentTaskStepList,
  body.student-task-page #studentTaskStepList .student-task-step-list-item,
  body.student-task-page #studentTaskStepList .task-step-inline-detail,
  body.student-task-page #studentTaskStepList .task-step-expanded-detail,
  body.student-task-page #studentTaskStepList .task-expanded-content-node,
  body.student-task-page #studentTaskStepList .task-step-expanded-content-host{
    overflow-x:clip!important;
  }

  /* Code is the one place where horizontal overflow is intentional — locally. */
  body.student-task-page #studentTaskStepList pre.catalog-code,
  body.student-task-page #studentTaskStepList .catalog-code{
    display:block!important;
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    box-sizing:border-box!important;
    overflow-x:auto!important;
    overflow-y:hidden!important;
    white-space:pre!important;
    -webkit-overflow-scrolling:touch;
    overscroll-behavior-x:contain;
  }
  body.student-task-page #studentTaskStepList pre.catalog-code > code,
  body.student-task-page #studentTaskStepList .catalog-code > code{
    display:block!important;
    width:max-content!important;
    min-width:100%!important;
    max-width:none!important;
    white-space:pre!important;
  }

  /* Other rich content must shrink with the text column. */
  body.student-task-page #studentTaskStepList img,
  body.student-task-page #studentTaskStepList video,
  body.student-task-page #studentTaskStepList iframe,
  body.student-task-page #studentTaskStepList canvas,
  body.student-task-page #studentTaskStepList .catalog-media-placeholder,
  body.student-task-page #studentTaskStepList .task-video-embed{
    max-width:100%!important;
    box-sizing:border-box!important;
  }

  /* The fixed dock is always viewport-sized, never content-sized. */
  body.student-task-page .student-task-progress-dock{
    left:0!important;
    right:auto!important;
    width:100vw!important;
    max-width:100vw!important;
    min-width:0!important;
    box-sizing:border-box!important;
    overflow-x:clip!important;
  }
  body.student-task-page .student-task-progress-dock-inner,
  body.student-task-page .student-task-progress-meta,
  body.student-task-page .task-content-progress-track{
    min-width:0!important;
    max-width:100%!important;
    box-sizing:border-box!important;
  }
}


/* v394 — student settings mobile submenu spacing */
@media(max-width:760px){
  .student-own-settings-nav{
    gap:14px!important;
  }
}


/* v395 — dashboard mobile task CTA height + password requirements */
.password-change-requirements{
  margin:6px auto 2px!important;
  max-width:360px;
  color:#697386;
  font-size:10.5px;
  line-height:1.5;
  text-align:center;
}

@media(max-width:720px){
  .student-open-task-footer > .btn.student-work-action-btn{
    width:100%!important;
    min-height:48px!important;
    height:48px!important;
    justify-content:center!important;
    box-sizing:border-box!important;
  }
}

/* v398 — mobile task editor: "Później" is the intentional exception: label first, chevron second. */
@media(max-width:760px){
  #editorMoveLater{
    flex-direction:row-reverse!important;
  }
}


/* v399 — teacher dashboard/task-hub model refresh (all breakpoints, with responsive fallbacks). */

/* Dashboard topbar CTAs exist only as empty-state helpers. */
.teacher-dashboard-context-actions[hidden],
.teacher-dashboard-context-actions .btn[hidden]{
  display:none!important;
}

/* Teacher task hub uses the same nav/tools geometry as the student task hub. */
.teacher-tasks-hub-toolbar{
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:18px!important;
  margin-bottom:16px!important;
}
.teacher-tasks-hub-toolbar .tasks-hub-local-nav{
  margin:0!important;
  padding:0 4px!important;
  align-self:center!important;
  flex:1 1 auto!important;
  min-width:0!important;
}
.teacher-tasks-hub-toolbar .tasks-hub-tools{
  width:auto!important;
  margin-left:auto!important;
  flex:0 0 auto!important;
  display:flex!important;
  align-items:center!important;
  align-self:center!important;
  justify-content:flex-end!important;
  gap:8px!important;
  position:relative!important;
  top:0!important;
  flex-wrap:nowrap!important;
}

/* "Jeszcze nie zlecałeś" is a dedicated second line below the task title.
   Difficulty/author/long title remain the third line, keeping identity blocks regular. */
#tasksView-catalog .tasks-hub-title-line-v162,
#tasksView-mine .tasks-hub-title-line-v162,
#tasksView-student .tasks-hub-title-line-v162,
#tasksView-archive .tasks-hub-title-line-v162{
  display:flex!important;
  flex-direction:column!important;
  align-items:flex-start!important;
  justify-content:flex-start!important;
  gap:4px!important;
  flex-wrap:nowrap!important;
}
#tasksView-catalog .tasks-hub-never-inline,
#tasksView-mine .tasks-hub-never-inline,
#tasksView-student .tasks-hub-never-inline,
#tasksView-archive .tasks-hub-never-inline{
  margin-top:1px!important;
}

@media(max-width:900px){
  .teacher-tasks-hub-toolbar{
    flex-direction:column!important;
    align-items:stretch!important;
  }
  .teacher-tasks-hub-toolbar .tasks-hub-local-nav{
    width:100%!important;
    align-self:stretch!important;
  }
  .teacher-tasks-hub-toolbar .tasks-hub-tools{
    width:100%!important;
    margin-left:0!important;
    justify-content:flex-start!important;
    flex-wrap:wrap!important;
  }
}


/* v401 — pagination consistency + teacher groups aligned with the task hub. */

/* Student > Moje grupy: pagination is part of the card, not a detached block below it. */
.student-groups-module > .student-groups-pagination-v371{
  width:auto!important;
  margin:0 14px 10px!important;
  box-sizing:border-box!important;
}

/* Teacher > Moje grupy uses exactly the same submenu/tools geometry as Wszystkie zadania. */
.teacher-groups-hub-toolbar{
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:18px!important;
  margin-bottom:16px!important;
}
.teacher-groups-hub-toolbar .tasks-hub-local-nav{
  margin:0!important;
  padding:0 4px!important;
  align-self:center!important;
  flex:1 1 auto!important;
  min-width:0!important;
}
.teacher-groups-hub-toolbar .teacher-groups-tools{
  width:auto!important;
  margin-left:auto!important;
  flex:0 0 auto!important;
  display:flex!important;
  align-items:center!important;
  align-self:center!important;
  justify-content:flex-end!important;
  gap:8px!important;
  position:relative!important;
  top:0!important;
  flex-wrap:nowrap!important;
}
.teacher-groups-hub-toolbar .groups-list-sort-control{
  display:flex!important;
  align-items:center!important;
  gap:7px!important;
  color:var(--muted)!important;
  font-size:10px!important;
  font-weight:700!important;
  white-space:nowrap!important;
}
.teacher-groups-hub-toolbar .groups-list-sort-control .select-control{
  min-width:180px!important;
}

/* Each teacher group view owns its pagination inside the content card. */
#groupsModule .teacher-groups-pagination{
  width:100%!important;
  margin-top:0!important;
  box-sizing:border-box!important;
}
#groupsModule .teacher-groups-pagination[hidden]{display:none!important;}

@media(max-width:900px){
  .teacher-groups-hub-toolbar{
    flex-direction:column!important;
    align-items:stretch!important;
  }
  .teacher-groups-hub-toolbar .tasks-hub-local-nav{
    width:100%!important;
    align-self:stretch!important;
  }
  .teacher-groups-hub-toolbar .teacher-groups-tools{
    width:100%!important;
    margin-left:0!important;
    justify-content:flex-start!important;
    flex-wrap:wrap!important;
  }
}



/* v402 — Teacher > assignment student listing */
.assignment-members-toolbar-v402{
  display:flex!important;
  align-items:center!important;
  gap:18px!important;
  margin-bottom:16px!important;
  padding:0!important;
}
.assignment-members-toolbar-v402 .assignment-members-local-nav{
  margin:0!important;
  padding:0 4px!important;
  align-self:center!important;
}
.assignment-members-toolbar-v402 .assignment-detail-sort-control{
  margin-left:auto!important;
  display:flex!important;
  align-items:center!important;
  gap:8px!important;
}
.assignment-members-toolbar-v402 .assignment-detail-sort-control > span{
  flex:0 0 auto!important;
}
.assignment-members-toolbar-v402 .assignment-detail-sort-control .select-control{
  min-width:210px!important;
}

/* In-progress progressbar follows the student listing pattern: wider, 8px track,
   animated only while the student is genuinely working. */
#assignmentInProgressView .assignment-member-progress{
  width:100%!important;
  max-width:none!important;
  min-width:240px!important;
  display:grid!important;
  grid-template-columns:minmax(150px,1fr) 42px!important;
  align-items:center!important;
  gap:10px!important;
}
#assignmentInProgressView .assignment-member-progress-track{
  width:100%!important;
  height:8px!important;
  border-radius:999px!important;
  background:#e8ebf0!important;
  overflow:hidden!important;
}
#assignmentInProgressView .assignment-member-progress-fill{
  position:relative!important;
  display:block!important;
  height:100%!important;
  border-radius:inherit!important;
  overflow:hidden!important;
}
#assignmentInProgressView .assignment-member-progress-fill.is-animated::after{
  content:"";
  position:absolute;
  inset:0;
  border-radius:inherit;
  pointer-events:none;
  background-image:linear-gradient(135deg,transparent 0,transparent 25%,rgba(0,0,0,.11) 25%,rgba(0,0,0,.11) 50%,transparent 50%,transparent 75%,rgba(0,0,0,.11) 75%,rgba(0,0,0,.11) 100%);
  background-size:28px 28px;
  animation:eureka-student-progress-barberpole .85s linear infinite;
}
#assignmentInProgressView .assignment-member-progress-value{
  min-width:38px!important;
  text-align:right!important;
}

/* Completed students: no progressbar. Grade + optional reaction are the middle column. */
#assignmentClosedView .assignment-member-progress{
  display:none!important;
}
#assignmentClosedView .assignment-member-row.has-inline-grade{
  grid-template-columns:minmax(300px,1.2fr) minmax(280px,1fr) auto!important;
  gap:24px!important;
}
#assignmentClosedView .assignment-inline-grade{
  justify-self:stretch!important;
  width:100%!important;
  min-width:0!important;
  padding:0!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  box-shadow:none!important;
  text-align:left!important;
}
#assignmentClosedView .assignment-inline-grade:hover,
#assignmentClosedView .assignment-inline-grade:focus,
#assignmentClosedView .assignment-inline-grade:focus-visible{
  border:0!important;
  background:transparent!important;
  box-shadow:none!important;
  outline:0!important;
}
#assignmentClosedView .assignment-inline-grade-topline{
  display:flex!important;
  align-items:center!important;
  gap:5px!important;
  width:100%!important;
}
#assignmentClosedView .assignment-inline-grade .grade-reaction-inline{
  display:inline-block!important;
  min-width:0!important;
  width:auto!important;
  height:auto!important;
  margin:0 0 0 3px!important;
  padding:0!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  box-shadow:none!important;
  font-size:16px!important;
  line-height:1!important;
}
#assignmentClosedView .assignment-inline-grade-summary{
  display:block!important;
  margin-top:4px!important;
}

/* Quick row actions: geometry appears immediately, visual change is fade-only. */
.assignment-members-card .assignment-member-quick-panel{
  transform:none!important;
  transition:opacity .09s ease,visibility 0s linear .09s!important;
  transition-delay:0s!important;
}
.assignment-members-card .assignment-member-row.quick-open .assignment-member-quick-panel{
  transform:none!important;
  transition:opacity .09s ease,visibility 0s linear 0s!important;
}
.assignment-members-card .assignment-member-quick-action{
  transform:none!important;
  transition:background-color .14s ease,border-color .14s ease,color .14s ease,opacity .09s ease!important;
  transition-delay:0s!important;
}

/* Pagination belongs to the card, with the same separator/spacing as other list modules. */
.assignment-members-pagination{
  margin-top:0!important;
}
.assignment-student-view + .assignment-members-pagination{
  border-top:1px solid var(--line)!important;
}
.assignment-members-pagination[hidden]{
  display:none!important;
}

/* Grade modal in this listing is the same composition as the task-view grading modal. */
#assignmentGradeModal .assignment-grade-modal{
  width:min(620px,calc(100vw - 32px))!important;
}
#assignmentGradeModal .finish-review-comment{
  width:100%!important;
  box-sizing:border-box!important;
}
#assignmentGradeModal .finish-review-modal-actions{
  justify-content:center!important;
}

@media(max-width:980px){
  .assignment-members-toolbar-v402{
    align-items:flex-start!important;
    flex-wrap:wrap!important;
  }
  .assignment-members-toolbar-v402 .assignment-detail-sort-control{
    width:100%!important;
    margin-left:0!important;
  }
  .assignment-members-toolbar-v402 .assignment-detail-sort-control .select-control{
    min-width:0!important;
    flex:1 1 auto!important;
  }
}

@media(max-width:760px){
  .assignment-members-toolbar-v402 .assignment-detail-sort-control{
    display:grid!important;
    grid-template-columns:auto minmax(0,1fr)!important;
    gap:8px!important;
    align-items:center!important;
  }
  #assignmentInProgressView .assignment-member-progress{
    min-width:0!important;
    width:100%!important;
    grid-template-columns:minmax(0,1fr) 42px!important;
  }
  #assignmentClosedView .assignment-member-row.has-inline-grade{
    grid-template-columns:1fr!important;
    gap:10px!important;
  }
}


/* v403 — assignment performers modal aligned with the EUREKA modal language */
.assignment-performers-modal-head{
  text-align:center!important;
}
.assignment-performers-hero-icon{
  width:48px!important;
  height:48px!important;
  margin:0 auto 12px!important;
  display:grid!important;
  place-items:center!important;
  border-radius:9px!important;
  background:#eef3ff!important;
  color:#4f72b5!important;
}
.assignment-performers-hero-icon .dashicons{
  width:24px!important;
  height:24px!important;
  font-size:24px!important;
  line-height:24px!important;
}
.assignment-performers-kicker{
  margin:0 0 10px!important;
  color:#4f72b5!important;
  font-size:11px!important;
  line-height:1.25!important;
  font-weight:800!important;
  letter-spacing:.035em!important;
}
.assignment-performers-modal-head h2{
  margin:0 0 5px!important;
}
.assignment-performers-note{
  display:none!important;
}
.assignment-performers-actions{
  justify-content:center!important;
}

/* v404 — teacher assignment listing uses the same three-column geometry as the
   student's Active / Completed task lists. The right action lane reserves room
   for the contextual button(s) revealed from the ellipsis, so opening them does
   not collide with the progress / grade column or move its starting point. */
@media(min-width:1051px){
  #assignmentInProgressView .assignment-member-row{
    grid-template-columns:minmax(350px,420px) minmax(220px,1fr) auto!important;
    gap:24px!important;
    align-items:center!important;
  }
  #assignmentInProgressView .assignment-member-progress{
    min-width:220px!important;
    width:100%!important;
    max-width:none!important;
    justify-self:stretch!important;
  }
  #assignmentInProgressView .assignment-member-actions{
    position:relative!important;
    min-width:0!important;
    width:auto!important;
    padding-left:215px!important;
    justify-self:end!important;
    justify-content:flex-end!important;
  }
  #assignmentInProgressView .assignment-member-quick-panel{
    left:0!important;
    right:auto!important;
    top:50%!important;
    width:208px!important;
    max-width:208px!important;
    justify-content:flex-end!important;
  }

  #assignmentClosedView .assignment-member-row.has-inline-grade{
    grid-template-columns:minmax(350px,420px) minmax(280px,1fr) auto!important;
    gap:24px!important;
    align-items:center!important;
  }
  #assignmentClosedView .assignment-inline-grade{
    min-width:280px!important;
    width:100%!important;
    max-width:none!important;
    justify-self:stretch!important;
  }
  #assignmentClosedView .assignment-member-actions{
    position:relative!important;
    min-width:0!important;
    width:auto!important;
    padding-left:142px!important;
    justify-self:end!important;
    justify-content:flex-end!important;
  }
  #assignmentClosedView .assignment-member-quick-panel{
    left:0!important;
    right:auto!important;
    top:50%!important;
    width:135px!important;
    max-width:135px!important;
    justify-content:flex-end!important;
  }
}

/* Grade modal opened from the completed-students listing mirrors the grading
   modal used inside a student's task: centered kicker and centered grade block. */
#assignmentGradeModal .assignment-grade-modal{
  text-align:center!important;
}
#assignmentGradeModal .finish-review-kicker,
#assignmentGradeModal .finish-review-identity-row,
#assignmentGradeModal .finish-review-group-row{
  text-align:center!important;
  justify-content:center!important;
}
#assignmentGradeModal .finish-review-rating-row{
  display:flex!important;
  flex-direction:column!important;
  align-items:center!important;
  justify-content:center!important;
  gap:8px!important;
  text-align:center!important;
}
#assignmentGradeModal .finish-review-rating-label{
  width:100%!important;
  text-align:center!important;
}
#assignmentGradeModal .finish-review-rating-row .grade-star-selector,
#assignmentGradeModal .finish-review-rating-row .grade-star-selector-stars,
#assignmentGradeModal .finish-review-rating-row .grade-selector-meta{
  width:auto!important;
  justify-content:center!important;
  align-items:center!important;
}
#assignmentGradeModal .finish-review-rating-separator{
  display:none!important;
}
#assignmentGradeModal .finish-review-comment{
  margin-top:16px!important;
}


/* v405 — teacher assignment listing refinements */

/* Context actions only fade. Their resting geometry is identical before and
   after opening, so there is no vertical "drop-in" motion. */
@media(min-width:1051px){
  #assignmentInProgressView .assignment-member-quick-panel,
  #assignmentClosedView .assignment-member-quick-panel{
    transform:translateY(-50%)!important;
    transition:opacity .12s ease,visibility 0s linear .12s!important;
  }
  #assignmentInProgressView .assignment-member-row.quick-open .assignment-member-quick-panel,
  #assignmentClosedView .assignment-member-row.quick-open .assignment-member-quick-panel{
    transform:translateY(-50%)!important;
    transition:opacity .12s ease,visibility 0s linear 0s!important;
  }
  #assignmentInProgressView .assignment-member-quick-action,
  #assignmentClosedView .assignment-member-quick-action,
  #assignmentInProgressView .assignment-member-row.quick-open .assignment-member-quick-action,
  #assignmentClosedView .assignment-member-row.quick-open .assignment-member-quick-action{
    transform:none!important;
    transition:background-color .14s ease,border-color .14s ease,color .14s ease,opacity .12s ease!important;
  }
}
@media(max-width:1050px){
  #assignmentInProgressView .assignment-member-quick-panel,
  #assignmentClosedView .assignment-member-quick-panel,
  #assignmentInProgressView .assignment-member-row.quick-open .assignment-member-quick-panel,
  #assignmentClosedView .assignment-member-row.quick-open .assignment-member-quick-panel,
  #assignmentInProgressView .assignment-member-quick-action,
  #assignmentClosedView .assignment-member-quick-action,
  #assignmentInProgressView .assignment-member-row.quick-open .assignment-member-quick-action,
  #assignmentClosedView .assignment-member-row.quick-open .assignment-member-quick-action{
    transform:none!important;
  }
  #assignmentInProgressView .assignment-member-quick-panel,
  #assignmentClosedView .assignment-member-quick-panel{
    transition:opacity .12s ease,visibility 0s linear .12s!important;
  }
  #assignmentInProgressView .assignment-member-row.quick-open .assignment-member-quick-panel,
  #assignmentClosedView .assignment-member-row.quick-open .assignment-member-quick-panel{
    transition:opacity .12s ease,visibility 0s linear 0s!important;
  }
}

/* Completed-task comment preview uses all space of the grade column, just like
   the student-side completed-task listing. */
#assignmentClosedView .assignment-inline-grade{
  overflow:hidden!important;
}
#assignmentClosedView .assignment-inline-grade-summary{
  width:100%!important;
  max-width:100%!important;
  min-width:0!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  white-space:nowrap!important;
}

/* The added local-stage crumb behaves like a normal breadcrumb segment. */
.assignment-tab-breadcrumb{
  min-width:0;
  color:inherit;
  white-space:nowrap;
}


/* v406 — completed assignment: same listing model as Active > Ukończyli zadanie */

/* The single-item pseudo-submenu is gone. Keep the toolbar slot and put sorting
   on the right, so the list still aligns with the rest of the teacher module. */
.archived-assignment-members-toolbar-v406{
  display:flex!important;
  align-items:center!important;
  justify-content:flex-end!important;
  gap:18px!important;
  margin-bottom:16px!important;
  padding:0!important;
}
.archived-assignment-members-toolbar-v406 .assignment-detail-sort-control{
  margin-left:auto!important;
  display:flex!important;
  align-items:center!important;
  gap:8px!important;
}
.archived-assignment-members-toolbar-v406 .assignment-detail-sort-control .select-control{
  min-width:210px!important;
}

/* Identical completed-row geometry: student | grade + summary | actions. */
.archived-assignment-members-card .archived-assignment-member-row.has-inline-grade{
  grid-template-columns:minmax(350px,420px) minmax(280px,1fr) auto!important;
  gap:24px!important;
  align-items:center!important;
  justify-content:stretch!important;
  padding-right:14px!important;
}
.archived-assignment-members-card .archived-assignment-member-row .assignment-member-progress{
  display:none!important;
}
.archived-assignment-members-card .archived-assignment-member-row .assignment-inline-grade{
  min-width:280px!important;
  width:100%!important;
  max-width:none!important;
  justify-self:stretch!important;
  padding:0!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  box-shadow:none!important;
  overflow:hidden!important;
  text-align:left!important;
}
.archived-assignment-members-card .archived-assignment-member-row .assignment-inline-grade:hover,
.archived-assignment-members-card .archived-assignment-member-row .assignment-inline-grade:focus,
.archived-assignment-members-card .archived-assignment-member-row .assignment-inline-grade:focus-visible{
  border:0!important;
  background:transparent!important;
  box-shadow:none!important;
  outline:0!important;
}
.archived-assignment-members-card .archived-assignment-member-row .assignment-inline-grade-topline{
  display:flex!important;
  align-items:center!important;
  gap:5px!important;
  width:100%!important;
}
.archived-assignment-members-card .archived-assignment-member-row .grade-reaction-inline{
  display:inline-block!important;
  width:auto!important;
  min-width:0!important;
  height:auto!important;
  margin:0 0 0 3px!important;
  padding:0!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  box-shadow:none!important;
  font-size:16px!important;
  line-height:1!important;
}
.archived-assignment-members-card .archived-assignment-member-row .assignment-inline-grade-summary{
  display:block!important;
  width:100%!important;
  max-width:100%!important;
  min-width:0!important;
  margin-top:4px!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  white-space:nowrap!important;
}
.archived-assignment-members-card .archived-assignment-member-row .assignment-member-actions{
  position:static!important;
  right:auto!important;
  top:auto!important;
  width:auto!important;
  min-width:0!important;
  margin:0!important;
  padding:0!important;
  display:flex!important;
  align-items:center!important;
  justify-self:end!important;
  justify-content:flex-end!important;
  transform:none!important;
}

/* Same in-card pagination treatment as the active assignment's completed tab. */
.archived-assignment-pagination{
  margin-top:0!important;
  border-top:1px solid var(--line)!important;
}

/* Same grading modal presentation/centering as the active completed listing. */
#assignmentGradeModal .assignment-grade-modal{
  width:min(620px,calc(100vw - 32px))!important;
  text-align:center!important;
}
#assignmentGradeModal .finish-review-kicker,
#assignmentGradeModal .finish-review-identity-row,
#assignmentGradeModal .finish-review-group-row{
  text-align:center!important;
  justify-content:center!important;
}
#assignmentGradeModal .finish-review-rating-row{
  display:flex!important;
  flex-direction:column!important;
  align-items:center!important;
  justify-content:center!important;
  gap:8px!important;
  text-align:center!important;
}
#assignmentGradeModal .finish-review-rating-label{
  width:100%!important;
  text-align:center!important;
}
#assignmentGradeModal .finish-review-rating-row .grade-star-selector,
#assignmentGradeModal .finish-review-rating-row .grade-star-selector-stars,
#assignmentGradeModal .finish-review-rating-row .grade-selector-meta{
  width:auto!important;
  justify-content:center!important;
  align-items:center!important;
}
#assignmentGradeModal .finish-review-rating-separator{
  display:none!important;
}
#assignmentGradeModal .finish-review-comment{
  width:100%!important;
  box-sizing:border-box!important;
  margin-top:16px!important;
}
#assignmentGradeModal .finish-review-modal-actions{
  justify-content:center!important;
}

@media(max-width:1050px){
  .archived-assignment-members-card .archived-assignment-member-row.has-inline-grade{
    grid-template-columns:1fr!important;
    gap:10px!important;
  }
  .archived-assignment-members-card .archived-assignment-member-row .assignment-inline-grade{
    min-width:0!important;
  }
  .archived-assignment-members-card .archived-assignment-member-row .assignment-member-actions{
    width:100%!important;
    justify-self:stretch!important;
    justify-content:flex-end!important;
  }
}
@media(max-width:760px){
  .archived-assignment-members-toolbar-v406 .assignment-detail-sort-control{
    width:100%!important;
    display:grid!important;
    grid-template-columns:auto minmax(0,1fr)!important;
    gap:8px!important;
    align-items:center!important;
  }
  .archived-assignment-members-toolbar-v406 .assignment-detail-sort-control .select-control{
    min-width:0!important;
    width:100%!important;
  }
}


/* v407 — completed-assignment pagination + reaction tooltip */
.archived-assignment-pagination{
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  width:100%!important;
  box-sizing:border-box!important;
}

/* A proper EUREKA tooltip for the student's reaction to a grade. */
.grade-reaction-inline[data-tooltip]{
  position:relative!important;
  cursor:help!important;
  overflow:visible!important;
  outline-offset:3px!important;
}
.grade-reaction-inline[data-tooltip]::after{
  content:attr(data-tooltip);
  position:absolute;
  left:50%;
  bottom:calc(100% + 9px);
  z-index:250;
  width:max-content;
  max-width:220px;
  padding:7px 9px;
  border-radius:6px;
  background:#171a29;
  color:#fff;
  font-size:11px;
  font-weight:650;
  line-height:1.25;
  white-space:nowrap;
  box-shadow:0 6px 18px rgba(15,23,42,.18);
  opacity:0;
  visibility:hidden;
  pointer-events:none;
  transform:translate(-50%,3px);
  transition:opacity .12s ease,transform .12s ease,visibility 0s linear .12s;
}
.grade-reaction-inline[data-tooltip]::before{
  content:"";
  position:absolute;
  left:50%;
  /* Triangle joins the bubble at +9px, ending 3px above the emoji. */
  bottom:calc(100% + 3px);
  z-index:251;
  width:0;
  height:0;
  border-left:5px solid transparent;
  border-right:5px solid transparent;
  border-top:6px solid #171a29;
  background:transparent;
  opacity:0;
  visibility:hidden;
  pointer-events:none;
  transform:translateX(-50%);
  transition:opacity .12s ease,visibility 0s linear .12s;
}
.grade-reaction-inline[data-tooltip]:hover::after,
.grade-reaction-inline[data-tooltip]:focus-visible::after{
  opacity:1;
  visibility:visible;
  transform:translate(-50%,0);
  transition-delay:0s;
}
.grade-reaction-inline[data-tooltip]:hover::before,
.grade-reaction-inline[data-tooltip]:focus-visible::before{
  opacity:1;
  visibility:visible;
  transition-delay:0s;
}
/* Tooltip must not be clipped by the grade trigger; summary text clips itself. */
.assignment-inline-grade:has(.grade-reaction-inline[data-tooltip]){
  overflow:visible!important;
}


/* v408 — active teacher group: enrollment state, breadcrumbs, list pagination, reset modal */

/* Enrollment tag is text-only. The adjacent interactive lock carries the state icon. */
.group-topbar-v208 .enrollment-status .dashicons{
  display:none!important;
}
.group-topbar-v208 .group-state-lock.is-open{
  color:#23734f!important;
}
.group-topbar-v208 .group-state-lock.is-open:hover,
.group-topbar-v208 .group-state-lock.is-open:focus-visible{
  background:#eef8f3!important;
  border-color:#cce7d9!important;
  color:#23734f!important;
}
.group-topbar-v208 .group-state-lock.is-closed{
  color:#6b7280!important;
}
.group-topbar-v208 .group-state-lock.is-closed:hover,
.group-topbar-v208 .group-state-lock.is-closed:focus-visible{
  background:#f5f6f8!important;
  border-color:#e0e4eb!important;
  color:#3f4b61!important;
}

/* The list begins flush with the top edge of its card. */
.group-view-stack > .students-card{
  padding-top:0!important;
}
.group-view-stack > .students-card > .group-students-status-view{
  margin-top:0!important;
}
.group-view-stack > .students-card .table-scroll{
  margin-top:0!important;
}

/* Pagination uses the same in-card pattern as assignment listings. */
.group-members-pagination{
  margin-top:0!important;
}
.group-members-pagination[hidden]{
  display:none!important;
}

/* Reset-link modal — canonical EUREKA modal composition. */
.password-reset-modal-v408{
  width:min(560px,calc(100vw - 32px))!important;
  text-align:center!important;
}
.password-reset-v408-head{
  display:flex;
  flex-direction:column;
  align-items:center;
  text-align:center;
  margin-bottom:14px;
}
.password-reset-v408-icon{
  width:48px;
  height:48px;
  margin:0 auto 12px;
  display:grid;
  place-items:center;
  border-radius:9px;
  background:#eef3ff;
  color:#4f72b5;
}
.password-reset-v408-icon .dashicons{
  width:24px;
  height:24px;
  font-size:24px;
  line-height:24px;
}
.password-reset-v408-kicker{
  margin:0 0 11px;
  color:#4f72b5;
  font-size:11px;
  line-height:1.25;
  font-weight:800;
  letter-spacing:.035em;
}
.password-reset-v408-student{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  margin:0 0 10px;
  font-size:15px;
}
.password-reset-v408-avatar{
  width:34px!important;
  height:34px!important;
  flex:0 0 34px!important;
  font-size:17px!important;
}
.password-reset-v408-description{
  margin:0!important;
  color:var(--muted)!important;
  font-size:11px!important;
  line-height:1.55!important;
}
.student-password-reset-overlay{
  background:rgba(18,22,36,.38)!important;
}

@media(max-width:760px){
  .password-reset-modal-v408{
    width:min(560px,calc(100vw - 20px))!important;
    padding:22px 16px!important;
  }
}


/* v409 — Teacher > student view, aligned with active-assignment task cards */

/* Remove the legacy flex gap that doubled the spacing between local submenu
   and the principal card. This page now follows the canonical task/group rhythm. */
.student-context-page-v409{
  gap:0!important;
}
.student-context-tasks-toolbar-v409{
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  margin:0 0 16px!important;
  padding:0!important;
}
.student-context-tasks-toolbar-v409 .student-context-local-nav{
  margin:0!important;
  padding:0!important;
}
.student-context-tasks-toolbar-v409 + .student-context-tasks-card{
  margin-top:0!important;
}
.student-context-tasks-card{
  padding-top:0!important;
}

/* PRACA W TOKU — same progress treatment as Active assignment > Praca w toku. */
#studentActiveTasksView .assignment-member-progress{
  width:100%!important;
  max-width:none!important;
  min-width:240px!important;
  display:grid!important;
  grid-template-columns:minmax(150px,1fr) 42px!important;
  align-items:center!important;
  gap:10px!important;
  justify-self:stretch!important;
}
#studentActiveTasksView .assignment-member-progress-track{
  width:100%!important;
  min-width:0!important;
  height:8px!important;
  margin:0!important;
  border-radius:999px!important;
  background:#e8ebf0!important;
  overflow:hidden!important;
}
#studentActiveTasksView .assignment-member-progress-fill{
  position:relative!important;
  display:block!important;
  height:100%!important;
  border-radius:inherit!important;
  overflow:hidden!important;
}
#studentActiveTasksView .assignment-member-progress-fill.is-animated::after{
  content:"";
  position:absolute;
  inset:0;
  border-radius:inherit;
  pointer-events:none;
  background-image:linear-gradient(
    135deg,
    transparent 0,
    transparent 25%,
    rgba(0,0,0,.11) 25%,
    rgba(0,0,0,.11) 50%,
    transparent 50%,
    transparent 75%,
    rgba(0,0,0,.11) 75%,
    rgba(0,0,0,.11) 100%
  );
  background-size:28px 28px;
  animation:eureka-student-progress-barberpole .85s linear infinite;
}
#studentActiveTasksView .assignment-member-progress-value{
  min-width:38px!important;
  width:38px!important;
  text-align:right!important;
}

/* UKOŃCZONE ZADANIA — exact listing model of Active assignment > Ukończyli zadanie:
   identity | grade + optional reaction/comment | actions. No progressbar. */
#studentClosedTasksView .assignment-member-progress{
  display:none!important;
}
#studentClosedTasksView .assignment-member-row.has-inline-grade{
  grid-template-columns:minmax(300px,1.2fr) minmax(280px,1fr) auto!important;
  gap:24px!important;
  align-items:center!important;
}
#studentClosedTasksView .assignment-inline-grade{
  justify-self:stretch!important;
  width:100%!important;
  min-width:0!important;
  max-width:none!important;
  padding:0!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  box-shadow:none!important;
  overflow:hidden!important;
  text-align:left!important;
}
#studentClosedTasksView .assignment-inline-grade:hover,
#studentClosedTasksView .assignment-inline-grade:focus,
#studentClosedTasksView .assignment-inline-grade:focus-visible{
  border:0!important;
  background:transparent!important;
  box-shadow:none!important;
  outline:0!important;
}
#studentClosedTasksView .assignment-inline-grade-topline{
  display:flex!important;
  align-items:center!important;
  gap:5px!important;
  width:100%!important;
}
#studentClosedTasksView .assignment-inline-grade .grade-reaction-inline{
  display:inline-block!important;
  width:auto!important;
  min-width:0!important;
  height:auto!important;
  margin:0 0 0 3px!important;
  padding:0!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  box-shadow:none!important;
  font-size:16px!important;
  line-height:1!important;
}
#studentClosedTasksView .assignment-inline-grade-summary{
  display:block!important;
  width:100%!important;
  max-width:100%!important;
  min-width:0!important;
  margin-top:4px!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  white-space:nowrap!important;
}

/* Same right-side action reserve and fade-only quick actions as assignment listings. */
#studentActiveTasksView .assignment-member-actions,
#studentClosedTasksView .assignment-member-actions{
  position:relative!important;
  width:auto!important;
  min-width:0!important;
  justify-self:end!important;
  justify-content:flex-end!important;
}
#studentActiveTasksView .assignment-member-quick-panel,
#studentClosedTasksView .assignment-member-quick-panel{
  transform:none!important;
  transition:opacity .12s ease,visibility 0s linear .12s!important;
}
#studentActiveTasksView .assignment-member-row.quick-open .assignment-member-quick-panel,
#studentClosedTasksView .assignment-member-row.quick-open .assignment-member-quick-panel{
  transform:none!important;
  transition:opacity .12s ease,visibility 0s linear 0s!important;
}
#studentActiveTasksView .assignment-member-quick-action,
#studentClosedTasksView .assignment-member-quick-action{
  transform:none!important;
  transition:background-color .14s ease,border-color .14s ease,color .14s ease,opacity .12s ease!important;
}

/* Pagination belongs to the same principal card. */
.student-context-tasks-pagination{
  margin-top:0!important;
  border-top:1px solid var(--line)!important;
}
.student-context-tasks-pagination[hidden]{
  display:none!important;
}

@media(max-width:1050px){
  #studentActiveTasksView .assignment-member-row,
  #studentClosedTasksView .assignment-member-row.has-inline-grade{
    grid-template-columns:1fr!important;
    gap:10px!important;
  }
  #studentActiveTasksView .assignment-member-progress{
    min-width:0!important;
    width:100%!important;
    grid-template-columns:minmax(0,1fr) 42px!important;
  }
  #studentClosedTasksView .assignment-inline-grade{
    min-width:0!important;
  }
  #studentActiveTasksView .assignment-member-actions,
  #studentClosedTasksView .assignment-member-actions{
    width:100%!important;
    justify-self:stretch!important;
    justify-content:flex-end!important;
  }
}


/* v410 — archived group + archived student context */

/* Static archive state in the archived group header. */
.group-archived-static-icon{
  width:28px;
  height:28px;
  display:inline-grid;
  place-items:center;
  flex:0 0 auto;
  color:#7a8495;
}
.group-archived-static-icon .dashicons{
  width:18px;
  height:18px;
  font-size:18px;
  line-height:18px;
}
.group-archived-status-badge{
  margin-left:2px;
}

/* No fake one-item submenu. Search occupies the canonical toolbar slot,
   with the same vertical rhythm as completed-assignment listings. */
.archived-group-members-toolbar-v410{
  display:flex!important;
  align-items:center!important;
  justify-content:flex-end!important;
  min-height:36px!important;
  margin:0 0 16px!important;
  padding:0!important;
}
.archived-group-members-toolbar-v410 .archived-group-students-search{
  width:min(320px,100%)!important;
  margin-left:auto!important;
}

/* Main archived-members box begins without redundant top padding. */
.archived-group-members-card-v410{
  padding-top:0!important;
  overflow:visible!important;
}
.archived-group-members-card-v410 .archived-group-students-table tbody tr:first-child td{
  border-top:0!important;
}
.archived-group-student-identity{
  display:flex!important;
  align-items:center!important;
  gap:12px!important;
}
.archived-group-student-identity .student-list-copy{
  min-width:0!important;
}

/* Pagination sits inside the main card. */
.archived-group-members-pagination{
  margin-top:0!important;
  border-top:1px solid var(--line)!important;
}

/* Archived student context is deliberately read-only. */
.archived-student-group-badge{
  margin-left:6px;
  vertical-align:middle;
}
.archived-student-readonly-actions{
  justify-content:flex-end!important;
}

/* Active group sorter — selected value has the same typographic weight
   as the corresponding controls in task listings. */
.group-members-toolbar .group-students-sort .select-control{
  font-weight:700!important;
}

@media(max-width:760px){
  .archived-group-members-toolbar-v410{
    align-items:stretch!important;
  }
  .archived-group-members-toolbar-v410 .archived-group-students-search{
    width:100%!important;
    max-width:none!important;
  }
}


/* v411 — corrected active-assignment breadcrumbs and student-in-active-group row geometry */

/* STUDENT IN ACTIVE GROUP / PRACA W TOKU
   Use the same layout logic as Teacher > Active assignment > Praca w toku:
   fixed identity lane, large elastic progress lane, actions on the far right.
   The hidden quick action gets its own reserved lane, so opening it never
   changes the progress width or pushes permanent actions vertically. */
@media(min-width:1051px){
  .student-context-tasks-card-v411 #studentActiveTasksView .assignment-member-row{
    grid-template-columns:
      minmax(350px,420px)
      minmax(220px,1fr)
      auto!important;
    gap:24px!important;
    align-items:center!important;
    justify-content:stretch!important;
  }

  .student-context-tasks-card-v411 #studentActiveTasksView .assignment-member-progress{
    width:100%!important;
    max-width:none!important;
    min-width:220px!important;
    justify-self:stretch!important;
    grid-template-columns:minmax(0,1fr) 42px!important;
  }

  .student-context-tasks-card-v411 #studentActiveTasksView .assignment-member-actions{
    position:relative!important;
    width:auto!important;
    min-width:0!important;
    padding-left:150px!important;
    display:flex!important;
    align-items:center!important;
    justify-self:end!important;
    justify-content:flex-end!important;
    gap:7px!important;
    overflow:visible!important;
  }

  .student-context-tasks-card-v411 #studentActiveTasksView .assignment-member-quick-panel{
    position:absolute!important;
    left:0!important;
    right:auto!important;
    top:50%!important;
    width:143px!important;
    max-width:143px!important;
    height:auto!important;
    margin:0!important;
    display:flex!important;
    flex-direction:row!important;
    align-items:center!important;
    justify-content:flex-end!important;
    gap:7px!important;
    transform:translateY(-50%)!important;
  }

  .student-context-tasks-card-v411 #studentActiveTasksView .assignment-member-row.quick-open .assignment-member-quick-panel{
    transform:translateY(-50%)!important;
  }

  .student-context-tasks-card-v411 #studentActiveTasksView .assignment-member-quick-action{
    margin:0!important;
    align-self:center!important;
    white-space:nowrap!important;
  }

  /* UKOŃCZONE ZADANIA
     Exact analogue of Active assignment > Ukończyli zadanie:
     task identity | grade/comment | action lane.
     The grade lane starts immediately after the fixed identity lane and
     never moves when the overflow action is revealed. */
  .student-context-tasks-card-v411 #studentClosedTasksView .assignment-member-row.has-inline-grade{
    grid-template-columns:
      minmax(350px,420px)
      minmax(280px,1fr)
      auto!important;
    gap:24px!important;
    align-items:center!important;
    justify-content:stretch!important;
  }

  .student-context-tasks-card-v411 #studentClosedTasksView .assignment-inline-grade{
    width:100%!important;
    max-width:none!important;
    min-width:280px!important;
    justify-self:stretch!important;
  }

  .student-context-tasks-card-v411 #studentClosedTasksView .assignment-member-actions{
    position:relative!important;
    width:auto!important;
    min-width:0!important;
    padding-left:150px!important;
    display:flex!important;
    align-items:center!important;
    justify-self:end!important;
    justify-content:flex-end!important;
    gap:7px!important;
    overflow:visible!important;
  }

  .student-context-tasks-card-v411 #studentClosedTasksView .assignment-member-quick-panel{
    position:absolute!important;
    left:0!important;
    right:auto!important;
    top:50%!important;
    width:143px!important;
    max-width:143px!important;
    height:auto!important;
    margin:0!important;
    display:flex!important;
    flex-direction:row!important;
    align-items:center!important;
    justify-content:flex-end!important;
    gap:7px!important;
    transform:translateY(-50%)!important;
  }

  .student-context-tasks-card-v411 #studentClosedTasksView .assignment-member-row.quick-open .assignment-member-quick-panel{
    transform:translateY(-50%)!important;
  }

  .student-context-tasks-card-v411 #studentClosedTasksView .assignment-member-quick-action{
    margin:0!important;
    align-self:center!important;
    white-space:nowrap!important;
  }
}

/* At intermediate widths we still preserve one horizontal action line;
   only the row itself collapses when the established portal breakpoint does. */
@media(min-width:901px) and (max-width:1050px){
  .student-context-tasks-card-v411 #studentActiveTasksView .assignment-member-row{
    grid-template-columns:
      minmax(280px,340px)
      minmax(250px,1fr)
      auto!important;
    gap:18px!important;
    align-items:center!important;
  }

  .student-context-tasks-card-v411 #studentClosedTasksView .assignment-member-row.has-inline-grade{
    grid-template-columns:
      minmax(280px,340px)
      minmax(250px,1fr)
      auto!important;
    gap:18px!important;
    align-items:center!important;
  }

  .student-context-tasks-card-v411 #studentActiveTasksView .assignment-member-actions,
  .student-context-tasks-card-v411 #studentClosedTasksView .assignment-member-actions{
    position:relative!important;
    width:auto!important;
    min-width:0!important;
    padding-left:150px!important;
    display:flex!important;
    align-items:center!important;
    justify-self:end!important;
    justify-content:flex-end!important;
    gap:7px!important;
  }

  .student-context-tasks-card-v411 #studentActiveTasksView .assignment-member-quick-panel,
  .student-context-tasks-card-v411 #studentClosedTasksView .assignment-member-quick-panel,
  .student-context-tasks-card-v411 #studentActiveTasksView .assignment-member-row.quick-open .assignment-member-quick-panel,
  .student-context-tasks-card-v411 #studentClosedTasksView .assignment-member-row.quick-open .assignment-member-quick-panel{
    position:absolute!important;
    left:0!important;
    right:auto!important;
    top:50%!important;
    width:143px!important;
    max-width:143px!important;
    margin:0!important;
    display:flex!important;
    align-items:center!important;
    justify-content:flex-end!important;
    transform:translateY(-50%)!important;
  }

  .student-context-tasks-card-v411 #studentActiveTasksView .assignment-member-progress,
  .student-context-tasks-card-v411 #studentClosedTasksView .assignment-inline-grade{
    width:100%!important;
    max-width:none!important;
    min-width:0!important;
    justify-self:stretch!important;
  }
}


/* v412 — archived group sorting + archived student read-only grade geometry */

/* Archived group uses sorting instead of search. */
.archived-group-members-toolbar-v412{
  justify-content:flex-end!important;
}
.archived-group-members-toolbar-v412 .archived-group-students-sort{
  margin-left:auto!important;
  display:flex!important;
  align-items:center!important;
  gap:8px!important;
}
.archived-group-members-toolbar-v412 .archived-group-students-sort > span{
  flex:0 0 auto!important;
}
.archived-group-members-toolbar-v412 .archived-group-students-sort .select-control{
  min-width:210px!important;
  font-weight:700!important;
}

/* Archived student: move grade/comment distinctly closer to the task name.
   There is no hidden overflow action in this historical view, so the right
   action lane only reserves space for Details. */
@media(min-width:1051px){
  .archived-student-context-card-v412 #studentClosedTasksView .assignment-member-row.has-inline-grade{
    grid-template-columns:
      minmax(270px,315px)
      minmax(320px,1fr)
      auto!important;
    gap:18px!important;
    align-items:center!important;
    justify-content:stretch!important;
  }

  .archived-student-context-card-v412 #studentClosedTasksView .assignment-inline-grade{
    width:100%!important;
    min-width:0!important;
    max-width:none!important;
    justify-self:stretch!important;
    overflow:visible!important;
  }

  .archived-student-context-card-v412 #studentClosedTasksView .assignment-member-actions{
    width:auto!important;
    min-width:0!important;
    padding-left:0!important;
    justify-self:end!important;
  }
}

@media(min-width:901px) and (max-width:1050px){
  .archived-student-context-card-v412 #studentClosedTasksView .assignment-member-row.has-inline-grade{
    grid-template-columns:
      minmax(230px,275px)
      minmax(260px,1fr)
      auto!important;
    gap:14px!important;
    align-items:center!important;
  }
}

/* Archived grade modal is view-only. */
.archived-student-grade-modal-actions{
  justify-content:center!important;
}
#studentContextGradeModal .grade-star-selector.is-readonly{
  pointer-events:none!important;
}
#studentContextGradeModal #studentContextGradeSummary[readonly]{
  cursor:default!important;
}

/* Reaction tooltip in the first completed row must remain fully visible above
   the first row instead of being swallowed by the card/list stacking context. */
.archived-student-context-card-v412,
.archived-student-context-card-v412 #studentClosedTasksView{
  position:relative!important;
  overflow:visible!important;
}
.archived-student-context-card-v412 #studentClosedTasksView .assignment-member-row{
  position:relative!important;
  overflow:visible!important;
}
.archived-student-context-card-v412 #studentClosedTasksView .assignment-member-row:first-child{
  z-index:30!important;
}
.archived-student-context-card-v412 #studentClosedTasksView .assignment-member-row:first-child .assignment-inline-grade{
  position:relative!important;
  z-index:31!important;
}
.archived-student-context-card-v412 #studentClosedTasksView .assignment-member-row:first-child .grade-reaction-inline[data-tooltip]{
  position:relative!important;
  z-index:32!important;
}
.archived-student-context-card-v412 #studentClosedTasksView .assignment-member-row:first-child .grade-reaction-inline[data-tooltip]::before,
.archived-student-context-card-v412 #studentClosedTasksView .assignment-member-row:first-child .grade-reaction-inline[data-tooltip]::after{
  z-index:1000!important;
}

@media(max-width:760px){
  .archived-group-members-toolbar-v412 .archived-group-students-sort{
    width:100%!important;
    display:grid!important;
    grid-template-columns:auto minmax(0,1fr)!important;
  }
  .archived-group-members-toolbar-v412 .archived-group-students-sort .select-control{
    width:100%!important;
    min-width:0!important;
  }
}

/* v413 — active-group student: reaction tooltip must escape the first row/card */
.student-context-tasks-card-v411,
.student-context-tasks-card-v411 #studentClosedTasksView{
  overflow:visible!important;
}
.student-context-tasks-card-v411 #studentClosedTasksView .assignment-member-row{
  position:relative!important;
  overflow:visible!important;
}
.student-context-tasks-card-v411 #studentClosedTasksView .assignment-inline-grade:has(.grade-reaction-inline[data-tooltip]){
  overflow:visible!important;
}
.student-context-tasks-card-v411 #studentClosedTasksView .assignment-member-row:first-child{
  z-index:20!important;
}
.student-context-tasks-card-v411 #studentClosedTasksView .assignment-member-row:first-child .assignment-inline-grade{
  position:relative!important;
  z-index:30!important;
  overflow:visible!important;
}
.student-context-tasks-card-v411 #studentClosedTasksView .assignment-member-row:first-child .grade-reaction-inline[data-tooltip]{
  z-index:40!important;
}
.student-context-tasks-card-v411 #studentClosedTasksView .assignment-member-row:first-child .grade-reaction-inline[data-tooltip]::before,
.student-context-tasks-card-v411 #studentClosedTasksView .assignment-member-row:first-child .grade-reaction-inline[data-tooltip]::after{
  z-index:1000!important;
}


/* v414 — grade modal header in student/group views uses the canonical teacher grading layout */
#studentContextGradeModal .student-context-grade-modal-v414{
  width:min(620px,calc(100vw - 32px))!important;
  text-align:center!important;
}
#studentContextGradeModal .finish-review-medal-icon{
  margin-left:auto!important;
  margin-right:auto!important;
}
#studentContextGradeModal .finish-review-kicker{
  text-align:center!important;
}
#studentContextGradeModal .finish-review-identity-row{
  justify-content:center!important;
  text-align:center!important;
}
#studentContextGradeModal .finish-review-group-row{
  justify-content:center!important;
  text-align:center!important;
}

/* Keep the existing form behavior, but visually align its grade block with
   the canonical assignment modal shown elsewhere in EUREKA. */
#studentContextGradeModal .finish-review-form{
  margin-top:22px!important;
}
#studentContextGradeModal .finish-review-form > .field:first-child{
  display:flex!important;
  flex-direction:column!important;
  align-items:center!important;
  text-align:center!important;
}
#studentContextGradeModal .finish-review-form > .field:first-child > label{
  width:100%!important;
  text-align:center!important;
}
#studentContextGradeModal .finish-review-form > .field:first-child .grade-star-selector,
#studentContextGradeModal .finish-review-form > .field:first-child .grade-star-selector-stars,
#studentContextGradeModal .finish-review-form > .field:first-child .grade-selector-meta{
  width:auto!important;
  justify-content:center!important;
  align-items:center!important;
}


/* v415 — teacher view of a student's task: context-specific permissions */
.teacher-task-realized-context .teacher-historical-grade-core{
  display:inline-flex!important;
}
.teacher-task-realized-context #teacherGradeClose,
.teacher-task-realized-context #studentTaskReportProblem,
.teacher-task-realized-context #studentTaskMoreToggle{
  display:none!important;
}

/* Archived group = pure historical preview. */
.teacher-task-archived-group-context #teacherGradeClose,
.teacher-task-archived-group-context #teacherEditGradeOverflow,
.teacher-task-archived-group-context #teacherEditClosedEvaluation,
.teacher-task-archived-group-context #studentTaskStepAction,
.teacher-task-archived-group-context #studentTaskReportProblem,
.teacher-task-archived-group-context #studentTaskMoreToggle,
.teacher-task-archived-group-context #teacherTaskNoteActions,
.teacher-task-archived-group-context #studentTaskConsultationWrite,
.teacher-task-archived-group-context #studentTaskResolveProblem,
.teacher-task-archived-group-context #studentTaskConsultationStepAction{
  display:none!important;
}
.teacher-task-archived-group-context #teacherClosedGradeValue{
  cursor:default!important;
}


/* v417 — student dashboard: canonical red status dot with soft echo/halo */
.student-dashboard-echo-dot,
.student-open-task-new-dot.student-dashboard-echo-dot,
.student-dashboard-notification-new .student-dashboard-echo-dot{
  width:7px!important;
  height:7px!important;
  flex:0 0 7px!important;
  display:inline-block!important;
  border-radius:50%!important;
  background:#d92d20!important;
  box-shadow:0 0 0 3px #fde9e7!important;
}

/* Keep enough air around the halo so it never touches the label glyphs. */
.student-open-task-new{
  gap:7px!important;
}
.student-dashboard-notification-new{
  gap:7px!important;
}


/* v419 — active group: row actions share one hard right edge */
#groupStudentsTable,
#groupPendingStudents .pending-group-students-table{
  width:100%!important;
  table-layout:fixed!important;
}

#groupStudentsTable td.actions-col,
#groupPendingStudents .pending-group-students-table td.actions-col{
  text-align:right!important;
}

/* Accepted students: the action flex must fill the whole actions cell.
   Without this, justify-content:flex-end only aligns inside its intrinsic width. */
#groupStudentsTable td.actions-col > .student-row-actions,
#groupStudentsTable .student-row-actions-v120{
  width:100%!important;
  max-width:none!important;
  margin-left:auto!important;
  display:flex!important;
  align-items:center!important;
  justify-content:flex-end!important;
  flex-wrap:nowrap!important;
}

/* Pending students: pin the fixed action stage to the right edge of its cell. */
#groupPendingStudents .pending-action-stage{
  display:block!important;
  margin-left:auto!important;
  margin-right:0!important;
}
#groupPendingStudents .pending-action-buttons,
#groupPendingStudents .pending-row-actions{
  width:100%!important;
  justify-content:flex-end!important;
}

/* Keep both local cards on exactly the same horizontal action baseline. */
#groupStudentsTable td.actions-col,
#groupPendingStudents .pending-group-students-table td.actions-col{
  padding-right:14px!important;
  box-sizing:border-box!important;
}

@media(max-width:1100px){
  #groupStudentsTable td.actions-col > .student-row-actions,
  #groupStudentsTable .student-row-actions-v120{
    width:100%!important;
    justify-content:flex-end!important;
  }
}


/* v420 — Create group modal follows the canonical EUREKA modal hierarchy */
.create-group-modal-head-v420{
  text-align:center!important;
  margin-bottom:18px!important;
}
.create-group-hero-icon{
  width:48px!important;
  height:48px!important;
  margin:0 auto 12px!important;
  display:grid!important;
  place-items:center!important;
  border-radius:9px!important;
  background:#eef3ff!important;
  color:#4f72b5!important;
}
.create-group-hero-icon .dashicons{
  width:24px!important;
  height:24px!important;
  font-size:24px!important;
  line-height:24px!important;
}
.create-group-kicker{
  margin:0!important;
  color:#4f72b5!important;
  font-size:11px!important;
  line-height:1.25!important;
  font-weight:800!important;
  letter-spacing:.035em!important;
  text-transform:uppercase!important;
}

/* The group avatar/name preview remains the next visual block under the kicker. */
.create-group-modal-head-v420 + .create-group-avatar-preview{
  margin-top:0!important;
}


/* v423 — teacher dashboard mobile polish.
   Desktop stays visually unchanged. */
.teacher-dashboard-task-group-pair{
  display:contents;
}
.teacher-dashboard-task-group-separator{
  display:inline;
}

@media(max-width:760px){

  /* ---------------- AKTYWNE ZADANIA ---------------- */

  /* Mobile rows are already fully clickable — no redundant chevron. */
  #dashboardActiveTasks .teacher-dashboard-row-chevron{
    display:none!important;
  }
  #dashboardActiveTasks .tasks-hub-row{
    grid-template-columns:minmax(0,1fr)!important;
    gap:0!important;
  }

  /* Halo dots align with the FIRST text line instead of centering against
     a wrapped two-line label. */
  #dashboardActiveTasks .tasks-hub-alert{
    align-items:flex-start!important;
  }
  #dashboardActiveTasks .tasks-hub-alert-dot{
    margin-top:4px!important;
  }
  #dashboardActiveTasks .tasks-hub-status{
    align-items:flex-start!important;
  }
  #dashboardActiveTasks .tasks-hub-status-dot{
    margin-top:5px!important;
  }

  /* Group icon + group name are an indivisible pair.
     If a task is active in more than one group, every additional group
     drops to a fresh line together with its icon. */
  #dashboardActiveTasks .teacher-dashboard-task-group-pair{
    display:inline-flex!important;
    align-items:center!important;
    white-space:nowrap!important;
  }
  #dashboardActiveTasks .teacher-dashboard-task-group-separator{
    display:none!important;
  }
  #dashboardActiveTasks .teacher-dashboard-task-group-pair:not(:first-of-type){
    flex-basis:100%!important;
    margin-left:0!important;
  }
  #dashboardActiveTasks .tasks-hub-status > span:last-child{
    align-items:center!important;
    row-gap:3px!important;
  }

  /* ---------------- AKTYWNE GRUPY ---------------- */

  #dashboardActiveGroups .teacher-dashboard-row-chevron{
    display:none!important;
  }
  #dashboardActiveGroups .group-list-row{
    grid-template-columns:minmax(0,1fr)!important;
    gap:0!important;
  }

  /* Icon on the left; content on the right.
     First content row: name + lock pinned to the end. */
  #dashboardActiveGroups .group-name-cell{
    display:grid!important;
    grid-template-columns:40px minmax(0,1fr)!important;
    gap:10px!important;
    align-items:center!important;
  }
  #dashboardActiveGroups .group-icon{
    grid-column:1!important;
    grid-row:1!important;
    align-self:center!important;
  }
  #dashboardActiveGroups .group-name-copy{
    grid-column:2!important;
    grid-row:1!important;
    min-width:0!important;
  }
  #dashboardActiveGroups .list-title-row{
    display:grid!important;
    grid-template-columns:minmax(0,1fr) auto!important;
    gap:8px!important;
    align-items:center!important;
  }
  #dashboardActiveGroups .list-title{
    min-width:0!important;
  }
  #dashboardActiveGroups .enrollment-lock{
    grid-column:2!important;
    margin-left:0!important;
    justify-self:end!important;
  }

  /* Remove the pending-students sentence. If there are pending students,
     leave only our red halo dot on the second line next to the student count. */
  #dashboardActiveGroups .group-name-attention{
    display:none!important;
  }
  #dashboardActiveGroups .list-meta{
    display:flex!important;
    align-items:center!important;
    gap:8px!important;
  }
  #dashboardActiveGroups .group-list-row[data-pending]:not([data-pending="0"]) .list-meta::after{
    content:""!important;
    width:7px!important;
    height:7px!important;
    flex:0 0 7px!important;
    display:inline-block!important;
    border-radius:50%!important;
    background:#d92d20!important;
    box-shadow:0 0 0 3px #fde9e7!important;
  }

  /* ---------------- OSTATNIE POWIADOMIENIA ---------------- */

  .teacher-dashboard-notifications-card .teacher-dashboard-notification-arrow{
    display:none!important;
  }
  .teacher-dashboard-notifications-card .teacher-dashboard-notification-item{
    grid-template-columns:40px minmax(0,1fr)!important;
    gap:12px!important;
  }

  /* On mobile "new" is communicated by the dot alone — no "Nowe" text. */
  .teacher-dashboard-notifications-card .student-dashboard-notification-new{
    width:7px!important;
    height:7px!important;
    margin-left:7px!important;
    gap:0!important;
    font-size:0!important;
    line-height:0!important;
    vertical-align:middle!important;
  }
  .teacher-dashboard-notifications-card .student-dashboard-notification-new .student-dashboard-echo-dot{
    margin:0!important;
  }
}


/* v424 — Teacher > Wszystkie zadania / mobile only */
@media(max-width:760px){

  /* Topbar: primary "Zleć nowe zadanie" becomes the same compact square
     control as the neighbouring overflow button. */
  .teacher-tasks-page .tasks-hub-top-actions #openTaskCatalogBtn{
    width:36px!important;
    min-width:36px!important;
    max-width:36px!important;
    height:36px!important;
    min-height:36px!important;
    padding:0!important;
    flex:0 0 36px!important;
    display:inline-grid!important;
    place-items:center!important;
    gap:0!important;
    font-size:0!important;
    line-height:0!important;
    box-sizing:border-box!important;
  }
  .teacher-tasks-page .tasks-hub-top-actions #openTaskCatalogBtn .dashicons{
    width:15px!important;
    height:15px!important;
    font-size:15px!important;
    line-height:15px!important;
    margin:0!important;
  }

  /* The task row itself is the mobile navigation target.
     Row-level Details / overflow actions are redundant and steal horizontal space. */
  .teacher-tasks-page .tasks-hub-card .tasks-hub-row-actions{
    display:none!important;
  }
  .teacher-tasks-page .tasks-hub-card .tasks-hub-row{
    grid-template-columns:minmax(0,1fr)!important;
    gap:0!important;
  }
  .teacher-tasks-page .tasks-hub-card .tasks-hub-main{
    min-width:0!important;
    width:100%!important;
  }
}


/* v425 — Teacher dashboard / mobile active groups:
   first content row = group name + lock + optional halo dot, all left-aligned. */
@media(max-width:760px){

  #dashboardActiveGroups .list-title-row{
    display:flex!important;
    flex-direction:row!important;
    flex-wrap:nowrap!important;
    align-items:center!important;
    justify-content:flex-start!important;
    gap:6px!important;
    min-width:0!important;
  }

  #dashboardActiveGroups .list-title{
    flex:0 1 auto!important;
    min-width:0!important;
    width:auto!important;
  }

  #dashboardActiveGroups .enrollment-lock{
    flex:0 0 auto!important;
    margin:0!important;
    justify-self:auto!important;
  }

  /* Pending state belongs in the first line, directly after the lock.
     Keep the canonical halo dot and hide only the explanatory sentence. */
  #dashboardActiveGroups .group-name-attention{
    display:inline-flex!important;
    flex:0 0 auto!important;
    align-items:center!important;
    gap:0!important;
    width:auto!important;
    min-width:0!important;
    margin:0!important;
  }
  #dashboardActiveGroups .group-name-attention-text{
    display:none!important;
  }
  #dashboardActiveGroups .group-name-attention-dot{
    width:7px!important;
    height:7px!important;
    flex:0 0 7px!important;
    margin:0!important;
  }

  /* Second row returns to just the student count. */
  #dashboardActiveGroups .list-meta{
    display:block!important;
  }
  #dashboardActiveGroups .group-list-row[data-pending]:not([data-pending="0"]) .list-meta::after{
    content:none!important;
    display:none!important;
  }
}


/* v426 — correction: Teacher > Wszystkie zadania / mobile CTA
   Keep icon + text; only increase touch geometry to match the [...] button. */
@media(max-width:760px){
  .teacher-tasks-page .tasks-hub-top-actions #openTaskCatalogBtn{
    width:auto!important;
    min-width:0!important;
    max-width:none!important;
    height:44px!important;
    min-height:44px!important;
    padding:0 14px!important;
    flex:1 1 auto!important;
    display:inline-flex!important;
    align-items:center!important;
    justify-content:center!important;
    gap:7px!important;
    font-size:12.5px!important;
    line-height:1!important;
    white-space:nowrap!important;
    box-sizing:border-box!important;
  }

  .teacher-tasks-page .tasks-hub-top-actions #openTaskCatalogBtn .dashicons{
    width:16px!important;
    height:16px!important;
    font-size:16px!important;
    line-height:16px!important;
    margin:0!important;
    flex:0 0 16px!important;
  }

  .teacher-tasks-page .tasks-hub-top-actions .v211-topbar-more-toggle,
  .teacher-tasks-page .tasks-hub-top-actions .mobile-topbar-more{
    height:44px!important;
    min-height:44px!important;
  }
}


/* v427 — teacher assignment listings: mobile-only reconstruction.
   Applies to active assignment and realized/completed assignment.
   Desktop geometry is intentionally untouched. */
@media(max-width:760px){

  /* ==========================================================
     TOPBAR
     ========================================================== */

  .assignment-topbar.teacher-global-topbar{
    position:sticky!important;
    display:flex!important;
    flex-direction:column!important;
    align-items:stretch!important;
    justify-content:flex-start!important;
    gap:8px!important;
    min-height:0!important;
    height:auto!important;
    padding:10px 16px 10px!important;
    overflow:hidden!important;
  }

  /* Hamburger goes back to the actual upper-right corner and no longer
     consumes a separate flex row. */
  .assignment-topbar.teacher-global-topbar > .dashboard-mobile-menu-toggle{
    position:absolute!important;
    top:10px!important;
    right:16px!important;
    z-index:6!important;
    order:initial!important;
    margin:0!important;
  }

  .assignment-topbar.teacher-global-topbar > .assignment-topbar-title{
    width:100%!important;
    max-width:none!important;
    padding-right:48px!important;
    margin:0!important;
    order:1!important;
  }

  .assignment-topbar .assignment-topbar-mainline{
    padding-right:0!important;
  }

  .assignment-topbar.teacher-global-topbar > .topbar-actions.assignment-topbar-actions{
    order:2!important;
    width:100%!important;
    margin:0!important;
    padding:0!important;
    display:flex!important;
    align-items:center!important;
    justify-content:flex-start!important;
    flex-wrap:nowrap!important;
    gap:8px!important;
  }

  /* Back / content are intentionally taller mobile touch targets.
     The overflow button uses the same height. */
  .assignment-topbar .assignment-topbar-actions > .v211-topbar-core{
    min-height:44px!important;
    height:44px!important;
    padding:0 13px!important;
    display:inline-flex!important;
    align-items:center!important;
    justify-content:center!important;
  }

  .assignment-topbar .assignment-topbar-actions > .v211-topbar-core:first-child{
    flex:1 1 42%!important;
  }

  .assignment-topbar .assignment-topbar-actions > .v211-topbar-core:nth-child(2){
    flex:1 1 50%!important;
  }

  .assignment-topbar .assignment-topbar-actions > .v211-topbar-more-toggle{
    width:44px!important;
    min-width:44px!important;
    height:44px!important;
    min-height:44px!important;
    flex:0 0 44px!important;
  }

  /* ==========================================================
     CONTENT / TOOLBAR
     ========================================================== */

  /* Kill legacy column-space distribution responsible for giant gaps.
     Tabs -> sorter -> card should read as one compact module. */
  .assignment-members-toolbar-v402,
  .archived-assignment-members-toolbar-v406{
    width:100%!important;
    min-height:0!important;
    height:auto!important;
    margin:0 0 8px!important;
    padding:0!important;
    display:flex!important;
    flex-direction:column!important;
    flex-wrap:nowrap!important;
    align-items:stretch!important;
    align-content:flex-start!important;
    justify-content:flex-start!important;
    gap:8px!important;
  }

  /* Active assignment tabs are left aligned and stay directly above sort. */
  .assignment-members-toolbar-v402 .assignment-members-local-nav{
    width:100%!important;
    min-height:36px!important;
    margin:0!important;
    padding:0!important;
    display:flex!important;
    align-items:stretch!important;
    justify-content:flex-start!important;
    gap:18px!important;
    align-self:stretch!important;
  }

  .assignment-members-toolbar-v402 .assignment-members-local-nav .view-segment{
    flex:0 0 auto!important;
    width:auto!important;
    white-space:nowrap!important;
  }

  /* Sort always occupies the next line, immediately below tabs. */
  .assignment-members-toolbar-v402 .assignment-detail-sort-control,
  .archived-assignment-members-toolbar-v406 .assignment-detail-sort-control{
    position:static!important;
    width:100%!important;
    min-height:44px!important;
    margin:0!important;
    padding:0!important;
    display:grid!important;
    grid-template-columns:auto minmax(0,1fr)!important;
    align-items:center!important;
    gap:8px!important;
  }

  .assignment-members-toolbar-v402 .assignment-detail-sort-control .select-control,
  .archived-assignment-members-toolbar-v406 .assignment-detail-sort-control .select-control{
    width:100%!important;
    min-width:0!important;
    height:44px!important;
    min-height:44px!important;
  }

  /* Listing begins right after sort. */
  .assignment-members-card,
  .archived-assignment-members-card{
    margin-top:0!important;
    padding-top:0!important;
  }

  /* ==========================================================
     COMMON MOBILE ROW MODEL
     ========================================================== */

  .assignment-members-card .assignment-member-row,
  .assignment-members-card .assignment-member-row.has-inline-grade,
  .archived-assignment-members-card .archived-assignment-member-row,
  .archived-assignment-members-card .archived-assignment-member-row.has-inline-grade{
    display:flex!important;
    flex-direction:column!important;
    align-items:stretch!important;
    justify-content:flex-start!important;
    gap:9px!important;
    min-height:0!important;
    padding:14px 0!important;
  }

  /* Row itself is the mobile target; remove all row buttons / ellipsis. */
  .assignment-members-card .assignment-member-actions,
  .archived-assignment-members-card .assignment-member-actions{
    display:none!important;
  }

  .assignment-members-card .assignment-member-identity,
  .archived-assignment-members-card .assignment-member-identity{
    width:100%!important;
    min-width:0!important;
    align-items:flex-start!important;
  }

  .assignment-members-card .assignment-member-copy,
  .archived-assignment-members-card .assignment-member-copy{
    min-width:0!important;
    flex:1 1 auto!important;
  }

  /* First line: avatar + student name (+ state flag where applicable). */
  .assignment-members-card .assignment-member-name-row,
  .archived-assignment-members-card .assignment-member-name-row{
    display:flex!important;
    align-items:center!important;
    justify-content:flex-start!important;
    flex-wrap:wrap!important;
    gap:5px 7px!important;
    min-width:0!important;
  }

  /* Activity/date remains directly below the name. Counter summary gets its
     own mobile line beneath that block. */
  .assignment-member-meta-v427{
    margin-top:2px!important;
    display:flex!important;
    flex-direction:column!important;
    align-items:flex-start!important;
    gap:4px!important;
    white-space:normal!important;
  }

  .assignment-member-meta-v427 .assignment-member-meta-primary,
  .assignment-member-meta-v427 .assignment-member-meta-counts{
    display:block!important;
    width:100%!important;
  }

  .assignment-member-meta-v427 .assignment-member-meta-separator{
    display:none!important;
  }

  .assignment-member-meta-v427 .assignment-member-meta-counts{
    color:#566276!important;
    font-size:10.5px!important;
    line-height:1.4!important;
  }

  /* ==========================================================
     PRACA W TOKU
     ========================================================== */

  #assignmentInProgressView .assignment-member-progress{
    order:3!important;
    width:100%!important;
    max-width:none!important;
    min-width:0!important;
    margin:1px 0 0!important;
    display:grid!important;
    grid-template-columns:minmax(0,1fr) 42px!important;
    align-items:center!important;
    gap:10px!important;
  }

  #assignmentInProgressView .assignment-member-progress-track{
    width:100%!important;
    min-width:0!important;
    height:8px!important;
  }

  #assignmentInProgressView .assignment-member-progress-value{
    width:42px!important;
    min-width:42px!important;
    text-align:right!important;
  }

  /* ==========================================================
     UKOŃCZYLI ZADANIE + ZREALIZOWANE
     ========================================================== */

  #assignmentClosedView .assignment-inline-grade,
  .archived-assignment-members-card .assignment-inline-grade{
    order:3!important;
    width:100%!important;
    max-width:none!important;
    min-width:0!important;
    margin:0!important;
    padding:1px 0 0!important;
    align-self:stretch!important;
    justify-self:stretch!important;
    overflow:visible!important;
    text-align:left!important;
  }

  /* Grade first, then FULL teacher comment. No ellipsis on mobile. */
  #assignmentClosedView .assignment-inline-grade-summary,
  .archived-assignment-members-card .assignment-inline-grade-summary{
    display:block!important;
    width:100%!important;
    max-width:none!important;
    margin-top:6px!important;
    overflow:visible!important;
    text-overflow:clip!important;
    white-space:normal!important;
    color:#566276!important;
    font-size:10.5px!important;
    line-height:1.5!important;
  }

  #assignmentClosedView .assignment-inline-grade-topline,
  .archived-assignment-members-card .assignment-inline-grade-topline{
    justify-content:flex-start!important;
  }

  /* Closed rows never carry a progress bar. */
  #assignmentClosedView .assignment-member-progress,
  .archived-assignment-members-card .assignment-member-progress{
    display:none!important;
  }
}


/* v428 — Teacher assignment listing / mobile spacing correction.
   Mobile only; desktop remains unchanged. */
@media(max-width:760px){

  /* ==========================================================
     REMOVE THE ARTIFICIAL VERTICAL AIR AROUND THE SORTER
     ========================================================== */

  /* The legacy toolbar accumulated several flex rules over time.
     On mobile we flatten it into the normal document flow:
     tabs -> sorter -> card. */
  .assignment-members-toolbar-v402,
  .archived-assignment-members-toolbar-v406{
    display:contents!important;
  }

  .assignment-members-toolbar-v402 .assignment-members-local-nav{margin:0 0 8px;align-items:stretch;}

  .assignment-members-toolbar-v402 .assignment-detail-sort-control,
  .archived-assignment-members-toolbar-v406 .assignment-detail-sort-control{
    width:100%!important;
    min-height:44px!important;
    height:44px!important;
    margin:0 0 10px!important;
    padding:0!important;
    position:static!important;
    display:grid!important;
    grid-template-columns:auto minmax(0,1fr)!important;
    align-items:center!important;
    gap:8px!important;
  }

  .assignment-members-toolbar-v402 .assignment-detail-sort-control .select-control,
  .archived-assignment-members-toolbar-v406 .assignment-detail-sort-control .select-control{
    width:100%!important;
    min-width:0!important;
    height:44px!important;
    min-height:44px!important;
    margin:0!important;
  }

  /* Card starts immediately after sorter. */
  .assignment-members-card,
  .archived-assignment-members-card{
    margin:0!important;
  }

  /* ==========================================================
     MOBILE ROW RHYTHM
     ========================================================== */

  .assignment-members-card .assignment-member-row,
  .assignment-members-card .assignment-member-row.has-inline-grade,
  .archived-assignment-members-card .archived-assignment-member-row,
  .archived-assignment-members-card .archived-assignment-member-row.has-inline-grade{
    gap:6px!important;
    padding-top:12px!important;
    padding-bottom:12px!important;
  }

  /* Avatar is 32px + 10px identity gap. Content that belongs "under"
     the textual part of the identity starts on the same x-axis. */
  #assignmentInProgressView .assignment-member-progress{
    width:calc(100% - 42px)!important;
    max-width:calc(100% - 42px)!important;
    min-width:0!important;
    margin:-1px 0 0 42px!important;
    align-self:flex-start!important;
    grid-template-columns:minmax(0,1fr) 42px!important;
  }

  /* Keep the bar visually close to the activity/counter copy. */
  #assignmentInProgressView .assignment-member-progress-track{
    margin:0!important;
  }

  /* Completed rows: stars and the full comment align with the name/date/
     counters column rather than with the avatar/card edge. */
  #assignmentClosedView .assignment-inline-grade,
  .archived-assignment-members-card .assignment-inline-grade{
    width:calc(100% - 42px)!important;
    max-width:calc(100% - 42px)!important;
    min-width:0!important;
    margin:0 0 0 42px!important;
    align-self:flex-start!important;
  }

  #assignmentClosedView .assignment-inline-grade-summary,
  .archived-assignment-members-card .assignment-inline-grade-summary{
    width:100%!important;
    max-width:100%!important;
    margin-top:4px!important;
  }
}

/* Alpha144 — allow a third, prominent action in the teacher's completed
   assignment topbar. Other mobile assignment headers keep their original
   two-button layout and the shared 44px touch targets. */
@media(max-width:760px){
  .assignment-topbar.teacher-global-topbar.eureka-teacher-assignment-topbar:has(.eureka144-assignment-archive-top) > .topbar-actions.assignment-topbar-actions{
    flex-wrap:wrap!important;
  }
}

/* Alpha323 — touchscreens retain :hover after a tap, so a completed/reopened
   team step could show a persistent grey gradient across its heading.
   Keep the hover affordance for mouse users only. */
@media (hover: none) {
  .teacher-unified-task-view .teacher-shared-task-step-list .unified-task-step-row:hover,
  .unified-task-view .unified-task-step-row:hover {
    background: transparent !important;
  }
}

/* Beta.282 — standard task confirmation overlays, including the editor exit guard. */
.eureka-root :is([data-eureka-own-task-delete-modal],[data-eureka-own-task-unsaved-modal])[hidden]{display:none!important}
:root[data-eureka-theme="dark"] body.eureka-root :is([data-eureka-own-task-delete-modal],[data-eureka-own-task-unsaved-modal]) .confirm-modal{
 background:#17243a;color:#eff5fd;border-color:#415877}
:root[data-eureka-theme="dark"] body.eureka-root :is([data-eureka-own-task-delete-modal],[data-eureka-own-task-unsaved-modal]) .eureka-confirm-head h2,
:root[data-eureka-theme="dark"] body.eureka-root :is([data-eureka-own-task-delete-modal],[data-eureka-own-task-unsaved-modal]) .eureka-confirm-modal>p{color:#eff5fd!important}


/* Beta.378 — sidebar navigation labels stay plain on hover and when active.
 * Do not change the accessibility option for underlining links in content. */
body.eureka-root .dashboard-adaptive-sidebar :is(
  .nav-link,.nav-link .nav-label,.eureka-nav-sub-link,.eureka-nav-sub-label,
  .teacher-profile-mini-link,.teacher-profile-copy,.dashboard-sidebar-logo-wrap
),
body.eureka-root .dashboard-adaptive-sidebar :is(
  .nav-link,.nav-link .nav-label,.eureka-nav-sub-link,.eureka-nav-sub-label,
  .teacher-profile-mini-link,.teacher-profile-copy,.dashboard-sidebar-logo-wrap
):is(:hover,:focus,:focus-visible,.active){
  text-decoration:none!important;
  text-decoration-line:none!important;
}
/* This is an icon-only hint, not a native browser tooltip. In normal desktop
 * and hover-expanded navigation the item's label is already visible. */
body.eureka-root .eureka-sidebar-compact-hint{
  position:fixed;
  z-index:12000;
  display:block;
  width:max-content;
  max-width:min(230px,calc(100vw - 24px));
  padding:7px 10px;
  border-radius:6px;
  border:1px solid rgba(255,255,255,.12);
  background:#20283d;
  color:#fff;
  box-shadow:0 6px 18px rgba(0,0,0,.22);
  font-size:12px;
  font-weight:500;
  line-height:1.35;
  text-align:left;
  white-space:normal;
  pointer-events:none;
}
body.eureka-root .eureka-sidebar-compact-hint[hidden]{display:none!important}
