.assignment-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.assignment-summary-card,
.assignment-dashboard-card,
.assignment-dashboard-item {
  border: 1px solid var(--panel-line);
  border-radius: var(--radius-card);
  background: var(--surface);
  box-shadow: var(--shadow-card);
}

.assignment-summary-card {
  position: relative;
  display: flex;
  gap: 14px;
  align-items: center;
  min-height: 112px;
  overflow: hidden;
  padding: 18px;
}

.assignment-summary-card::before {
  position: absolute;
  inset: 0 0 auto;
  height: 5px;
  background: var(--launcher-accent, var(--brand-cyan));
  content: "";
}

.assignment-summary-icon {
  display: grid;
  width: 50px;
  height: 50px;
  place-items: center;
  border-radius: 18px;
  color: var(--launcher-text, var(--brand-cyan-strong));
  background: var(--launcher-soft, var(--brand-cyan-soft));
}

.assignment-summary-icon .ui-icon {
  width: 23px;
  height: 23px;
  stroke-width: 2.3;
}

.assignment-summary-card strong {
  display: block;
  color: var(--text);
  font-size: 1.8rem;
  line-height: 1;
}

.assignment-summary-card span {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 900;
}

.assignment-summary-card.tone-orange {
  --launcher-accent: var(--accent-orange);
  --launcher-soft: var(--accent-orange-soft);
  --launcher-text: #7a4300;
}

.assignment-dashboard-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  min-width: 0;
  padding: 20px;
}

.assignment-dashboard-card > *,
.assignment-dashboard-controls,
.assignment-filter-row,
.assignment-dashboard-list,
.assignment-dashboard-item {
  min-width: 0;
}

.students-panel {
  display: grid;
  gap: 16px;
  border: 1px solid var(--panel-line);
  border-radius: var(--radius-card);
  padding: 20px;
  background: var(--surface);
  box-shadow: var(--shadow-card);
}

.assignment-dashboard-heading,
.assignment-filter-row,
.assignment-dashboard-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.assignment-dashboard-heading h2,
.assignment-dashboard-heading p {
  margin: 0;
}

.assignment-dashboard-count {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  border-radius: 999px;
  padding: 0 12px;
  color: var(--brand-cyan-strong);
  background: var(--brand-cyan-soft);
  font-size: 0.82rem;
  font-weight: 1000;
  white-space: nowrap;
}

.assignment-dashboard-controls {
  display: grid;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 14px;
  background: var(--surface-soft);
}

.assignment-dashboard-search {
  margin: 0;
}

.assignment-dashboard-search-wrap {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.assignment-dashboard-search-wrap small {
  color: var(--muted);
  font-size: 0.8rem;
}

.assignment-filter-row {
  align-items: flex-end;
}

.assignment-filter-row .filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
}

.assignment-student-filter {
  display: grid;
  gap: 7px;
  min-width: 230px;
  color: #394553;
  font-size: 0.88rem;
  font-weight: 1000;
}

.assignment-student-filter select {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius-control);
  padding: 0 12px;
  color: var(--text);
  background: #fff;
}

.assignment-student-filter select:focus-visible {
  outline: 3px solid rgba(24, 184, 216, 0.28);
  outline-offset: 2px;
}

.assignment-dashboard-list {
  display: grid;
  gap: 12px;
}

.assignment-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid var(--line);
  padding-top: 16px;
}

.assignment-pagination > div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.assignment-pagination > span {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 900;
}

.assignment-pagination-end {
  min-width: 96px;
  text-align: right;
}

.students-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.student-card {
  display: grid;
  gap: 14px;
  border: 1px solid var(--panel-line);
  border-radius: var(--radius-card);
  padding: 18px;
  background:
    linear-gradient(180deg, rgba(248, 251, 255, 0.74), rgba(255, 255, 255, 0.98)),
    var(--surface);
  box-shadow: var(--shadow-card);
}

.student-card-header {
  display: flex;
  gap: 12px;
  align-items: center;
  min-width: 0;
}

.student-card-header h3,
.student-card-header p {
  margin: 0;
}

.student-card-header h3 {
  font-size: 1.08rem;
}

.student-card-header p {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 850;
}

.student-avatar {
  display: grid;
  width: 50px;
  height: 50px;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 18px;
  color: var(--brand-cyan-strong);
  background: var(--brand-cyan-soft);
}

.student-avatar.large {
  width: 64px;
  height: 64px;
  border-radius: 22px;
}

.student-card-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.student-card-stats span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border-radius: 999px;
  padding: 0 10px;
  color: #536174;
  background: #eef2f7;
  font-size: 0.76rem;
  font-weight: 1000;
}

.student-active-list {
  display: grid;
  gap: 8px;
  min-height: 128px;
}

.student-active-list .eyebrow {
  margin-bottom: 0;
}

.student-active-list a {
  display: grid;
  gap: 3px;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 10px 12px;
  background: var(--surface-soft);
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease;
}

.student-active-list a:hover {
  border-color: rgba(24, 184, 216, 0.34);
  box-shadow: 0 12px 24px rgba(41, 69, 112, 0.1);
  transform: translateY(-1px);
}

.student-active-list span {
  color: var(--text);
  font-weight: 1000;
}

.student-active-list small {
  color: var(--muted);
  font-weight: 850;
}

.student-empty-work {
  display: flex;
  gap: 8px;
  align-items: center;
  min-height: 128px;
  border: 1px dashed var(--line);
  border-radius: 18px;
  padding: 12px;
  color: #16764a;
  background: var(--accent-green-soft);
  font-weight: 1000;
}

.student-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.student-detail-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.student-detail-stats span {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  border-radius: 999px;
  padding: 0 12px;
  color: var(--brand-cyan-strong);
  background: var(--brand-cyan-soft);
  font-size: 0.82rem;
  font-weight: 1000;
}

.student-detail-layout {
  display: grid;
  gap: 16px;
}

.student-quick-assign-card {
  background:
    linear-gradient(135deg, rgba(231, 249, 255, 0.86), rgba(255, 247, 214, 0.62)),
    var(--surface);
}

.student-quick-assign-heading {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 14px;
}

.student-quick-assign-heading h2,
.student-quick-assign-heading p {
  margin: 0;
}

.student-quick-assign-heading p:not(.eyebrow) {
  max-width: 720px;
  color: var(--muted);
  font-weight: 850;
}

.student-quick-assign-form select {
  max-width: 100%;
}

.student-quick-assign-grid {
  display: grid;
  grid-template-columns: minmax(190px, 0.45fr) minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.student-progress-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
}

.student-progress-card {
  display: grid;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 14px;
  background: var(--surface-soft);
}

.student-progress-card.is-empty {
  background: #fff;
}

.student-progress-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
}

.student-progress-card-top h3,
.student-progress-card-top p {
  margin: 0;
}

.student-progress-card-top h3 {
  font-size: 1rem;
}

.student-progress-card-top p {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 850;
  text-transform: uppercase;
}

.student-progress-card-top strong {
  color: var(--accent-green);
  font-size: 1.55rem;
  line-height: 1;
}

.student-progress-meter {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #e7edf5;
}

.student-progress-meter span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--brand-cyan), var(--accent-green));
}

.student-progress-quick-stats,
.student-homework-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.student-homework-summary {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.student-progress-quick-stats span,
.student-homework-summary article {
  display: grid;
  gap: 3px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 9px 10px;
  background: #fff;
}

.student-progress-quick-stats small,
.student-homework-summary span,
.student-progress-more section > span {
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 900;
  text-transform: uppercase;
}

.student-progress-quick-stats strong,
.student-homework-summary strong {
  color: var(--text);
  font-size: 0.88rem;
  overflow-wrap: anywhere;
}

.student-progress-more {
  border-top: 1px solid var(--line);
  padding-top: 10px;
}

.student-progress-more summary {
  color: var(--brand-navy);
  cursor: pointer;
  font-size: 0.86rem;
  font-weight: 1000;
}

.student-progress-more-content {
  display: grid;
  gap: 10px;
  padding-top: 10px;
}

.student-progress-more section {
  display: grid;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 10px;
  background: #fff;
}

.student-progress-more section strong,
.student-progress-more section p {
  margin: 0;
}

.student-progress-more section ul {
  display: grid;
  gap: 5px;
  max-height: 150px;
  overflow: auto;
  margin: 0;
  padding: 0;
  list-style: none;
}

.student-progress-more section li {
  border-radius: 10px;
  padding: 7px 9px;
  background: var(--surface-soft);
  font-size: 0.88rem;
  font-weight: 850;
}

.student-progress-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.student-progress-badges small {
  border-radius: 999px;
  padding: 6px 9px;
  color: var(--brand-navy);
  background: #eaf8fb;
  font-weight: 900;
}

.student-assignment-list {
  display: grid;
  gap: 10px;
}

.student-assignment-row {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 12px 14px;
  background: var(--surface-soft);
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease;
}

.student-assignment-row:hover {
  border-color: rgba(24, 184, 216, 0.34);
  box-shadow: 0 12px 24px rgba(41, 69, 112, 0.1);
  transform: translateY(-1px);
}

.student-assignment-row div {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.student-assignment-row strong {
  color: var(--text);
}

.student-assignment-row span:not(.assignment-history-status) {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 850;
}

.student-level-progress-hero {
  align-items: center;
}

.student-level-hero-meter {
  display: grid;
  min-width: min(320px, 100%);
  gap: 8px;
  color: var(--text);
  font-weight: 1000;
}

.student-level-block-list {
  display: grid;
  gap: 16px;
}

.student-level-block-progress {
  display: grid;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 14px;
  background: rgba(255, 255, 255, 0.72);
}

.student-level-block-heading {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  justify-content: space-between;
}

.student-level-block-heading h3,
.student-level-block-heading p {
  margin: 0;
}

.student-level-block-heading > span {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  border-radius: 999px;
  padding: 0 10px;
  background: var(--brand-cyan-soft);
  color: var(--brand-cyan-strong);
  font-size: 0.8rem;
  font-weight: 1000;
}

.student-level-module-list {
  display: grid;
  gap: 10px;
}

.student-level-module-card {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(170px, 0.5fr) auto;
  gap: 12px;
  align-items: center;
  border: 1px solid rgba(63, 140, 255, 0.14);
  border-left: 5px solid var(--line-strong);
  border-radius: 18px;
  padding: 12px;
  background: var(--surface);
}

.student-level-module-card.status-completed {
  border-left-color: var(--accent-green);
}

.student-level-module-card.status-in-progress {
  border-left-color: var(--accent-purple);
}

.student-level-module-card.status-assigned {
  border-left-color: var(--brand-cyan);
}

.student-level-module-card.status-not-started {
  border-left-color: #cbd5e1;
}

.student-level-module-card.status-teacher-only {
  border-left-color: var(--accent-orange);
  background: rgba(255, 251, 235, 0.72);
}

.student-level-module-main {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.student-level-module-main > div {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.student-level-module-main h4,
.student-level-module-main p {
  margin: 0;
}

.student-level-module-main p {
  display: -webkit-box;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 800;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.student-level-module-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  align-items: center;
}

.student-level-module-meta > span:not(.assignment-history-status),
.student-level-module-meta a {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  border-radius: 999px;
  padding: 0 10px;
  background: var(--surface-soft);
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 950;
}

.student-level-module-meta a {
  color: var(--brand-cyan-strong);
}

.student-level-module-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.assignment-history-status.status-in-progress {
  background: rgba(237, 233, 254, 0.95);
  color: #5b21b6;
}

.assignment-history-status.status-not-started,
.assignment-history-status.status-teacher-only {
  background: rgba(241, 245, 249, 0.95);
  color: #475569;
}

.assignment-history-status.status-assigned {
  background: rgba(224, 242, 254, 0.95);
  color: #075985;
}

.assignment-dashboard-item {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.85fr);
  gap: 12px 18px;
  align-items: center;
  padding: 16px;
}

.assignment-dashboard-item.is-overdue {
  border-color: rgba(245, 158, 11, 0.38);
  background:
    linear-gradient(180deg, rgba(255, 244, 220, 0.38), rgba(255, 255, 255, 0.96) 42%),
    #fff;
}

.assignment-dashboard-main {
  display: flex;
  gap: 13px;
  align-items: center;
  min-width: 0;
}

.assignment-dashboard-main h3,
.assignment-dashboard-main p {
  margin: 0;
}

.assignment-dashboard-main h3 {
  font-size: 1.02rem;
}

.assignment-dashboard-main p:not(.eyebrow) {
  color: var(--muted);
  font-weight: 860;
}

.assignment-student-avatar {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 17px;
  color: #2367c7;
  background: var(--accent-blue-soft);
}

.assignment-dashboard-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.assignment-due-date {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border-radius: 999px;
  padding: 0 10px;
  color: #536174;
  background: #eef2f7;
  font-size: 0.76rem;
  font-weight: 1000;
  white-space: nowrap;
}

.assignment-due-date.is-overdue {
  color: #7a4300;
  background: var(--accent-orange-soft);
}

.assignment-dashboard-instructions {
  grid-column: 1 / -1;
  margin: 0;
  border-left: 4px solid var(--brand-cyan);
  border-radius: 12px;
  padding: 10px 12px;
  color: var(--muted);
  background: var(--brand-cyan-soft);
  font-size: 0.9rem;
  font-weight: 820;
}

.assignment-dashboard-actions {
  grid-column: 1 / -1;
  justify-content: flex-end;
  padding-top: 2px;
}

.button.ghost {
  border: 1px solid transparent;
  color: var(--muted);
  background: transparent;
}

.button.ghost:hover {
  border-color: var(--line);
  color: var(--text);
  background: var(--surface-soft);
}

.assignment-detail-hero,
.assignment-detail-card {
  border: 1px solid var(--panel-line);
  border-radius: var(--radius-card);
  background: var(--surface);
  box-shadow: var(--shadow-card);
}

.assignment-detail-hero {
  display: flex;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  padding: 20px;
}

.assignment-detail-hero.is-overdue {
  border-color: rgba(245, 158, 11, 0.38);
  background:
    linear-gradient(135deg, rgba(255, 244, 220, 0.58), rgba(255, 255, 255, 0.98) 52%),
    #fff;
}

.assignment-detail-main {
  display: flex;
  gap: 14px;
  align-items: center;
  min-width: 0;
}

.assignment-detail-main h2,
.assignment-detail-main p {
  margin: 0;
}

.assignment-detail-main h2 {
  font-size: clamp(1.25rem, 2.4vw, 1.9rem);
}

.assignment-detail-main p:not(.eyebrow) {
  color: var(--muted);
  font-weight: 900;
}

.assignment-detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: flex-end;
}

.assignment-detail-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.assignment-detail-card {
  display: grid;
  align-content: start;
  gap: 14px;
  padding: 20px;
}

.assignment-detail-card h2,
.assignment-detail-card p {
  margin: 0;
}

.assignment-detail-wide {
  grid-column: 1 / -1;
}

.assignment-detail-list {
  display: grid;
  gap: 10px;
  margin: 0;
}

.assignment-detail-list div {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  gap: 12px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 10px;
}

.assignment-detail-list div:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.assignment-detail-list dt,
.assignment-detail-list dd {
  margin: 0;
}

.assignment-detail-list dt {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 1000;
}

.assignment-detail-list dd {
  color: var(--text);
  font-weight: 900;
}

.assignment-timeline {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.assignment-timeline li {
  display: flex;
  gap: 12px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 12px;
  background: var(--surface-soft);
}

.assignment-timeline li > span {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 13px;
  color: #6b7685;
  background: #eef2f7;
}

.assignment-timeline li.is-active {
  border-color: rgba(47, 189, 116, 0.2);
  background: var(--accent-green-soft);
}

.assignment-timeline li.is-active > span {
  color: #16764a;
  background: #d7f4e3;
}

.assignment-timeline strong,
.assignment-timeline small {
  display: block;
}

.assignment-timeline small {
  color: var(--muted);
  font-weight: 850;
}

.progress-snapshot-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.progress-snapshot-stack {
  display: grid;
  gap: 14px;
}

.progress-snapshot-notice {
  display: grid;
  gap: 4px;
  border: 1px solid rgba(24, 184, 216, 0.22);
  border-radius: 18px;
  padding: 12px 14px;
  color: var(--brand-cyan-strong);
  background: var(--brand-cyan-soft);
}

.progress-snapshot-notice.is-warning {
  border-color: rgba(245, 158, 11, 0.24);
  color: #7a4300;
  background: var(--accent-orange-soft);
}

.progress-snapshot-notice strong,
.progress-snapshot-notice p {
  margin: 0;
}

.progress-snapshot-notice p {
  font-size: 0.9rem;
  font-weight: 850;
}

.progress-snapshot-item {
  display: grid;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 14px;
  background: var(--surface-soft);
}

.progress-snapshot-item span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 1000;
}

.progress-snapshot-item strong {
  color: var(--text);
  font-size: 1.15rem;
}

.progress-activity-list {
  display: grid;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 14px;
  background: var(--surface-soft);
}

.progress-activity-list h3 {
  margin: 0;
  font-size: 1rem;
}

.progress-activity-list div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.progress-activity-list span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  border-radius: 999px;
  padding: 0 10px;
  color: #16764a;
  background: var(--accent-green-soft);
  font-size: 0.8rem;
  font-weight: 1000;
}

.assignment-notes-form {
  display: grid;
  gap: 12px;
}

.assignment-notes-form label {
  display: grid;
  gap: 8px;
  color: #394553;
  font-size: 0.9rem;
  font-weight: 1000;
}

.assignment-notes-form textarea {
  width: 100%;
  min-height: 148px;
  resize: vertical;
  border: 1px solid var(--line);
  border-radius: var(--radius-control);
  padding: 14px;
  color: var(--text);
  background: #fff;
  line-height: 1.45;
}

.assignment-notes-form textarea:focus-visible {
  outline: 3px solid rgba(24, 184, 216, 0.28);
  outline-offset: 2px;
}

.assignment-notes-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: flex-end;
}

/* Premium kids learning assignment/student refresh */
.assignment-summary-card,
.assignment-dashboard-card,
.assignment-dashboard-item,
.students-panel,
.student-card,
.assignment-detail-hero,
.assignment-detail-card {
  border-width: 2px;
  border-color: rgba(82, 122, 180, 0.18);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(247, 251, 255, 0.98)),
    #fff;
  box-shadow: var(--shadow-card);
}

.assignment-summary-card {
  min-height: 122px;
  border-radius: 28px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.98), var(--launcher-soft, var(--brand-cyan-soft))),
    #fff;
}

.assignment-summary-card::before {
  height: 9px;
  background: linear-gradient(90deg, var(--launcher-accent, var(--brand-cyan)), #fff);
}

.assignment-summary-icon,
.student-avatar,
.assignment-student-avatar {
  border: 1px solid rgba(255, 255, 255, 0.74);
  border-radius: 22px;
  background: linear-gradient(135deg, var(--brand-cyan-soft), #fff);
  box-shadow: 0 8px 0 rgba(20, 33, 61, 0.07), 0 14px 22px rgba(55, 83, 130, 0.12);
}

.assignment-summary-card strong {
  color: var(--text);
  font-size: 2rem;
}

.students-panel,
.assignment-dashboard-card,
.assignment-detail-card {
  border-radius: 30px;
  padding: clamp(18px, 2.2vw, 24px);
}

.student-card {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  padding: 20px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(222, 248, 255, 0.54)),
    #fff;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease;
}

.student-card::before {
  position: absolute;
  inset: 0 0 auto;
  height: 8px;
  background: linear-gradient(90deg, var(--brand-cyan), var(--brand-yellow), var(--accent-green));
  content: "";
}

.student-card:hover,
.assignment-dashboard-item:hover,
.student-assignment-row:hover,
.student-progress-card:hover,
.student-level-module-card:hover {
  border-color: rgba(25, 194, 230, 0.42);
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}

.student-card > * {
  position: relative;
}

.student-avatar {
  width: 56px;
  height: 56px;
  border-radius: 22px;
  color: var(--brand-cyan-strong);
  background: linear-gradient(135deg, var(--brand-cyan-soft), var(--kid-mint-soft));
}

.student-card-stats span,
.student-detail-stats span,
.assignment-dashboard-count,
.assignment-due-date,
.assignment-history-status {
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: 0 6px 14px rgba(55, 83, 130, 0.08);
}

.student-card-stats span:nth-child(1),
.student-detail-stats span:nth-child(1) {
  color: var(--brand-cyan-strong);
  background: var(--brand-cyan-soft);
}

.student-card-stats span:nth-child(2),
.student-detail-stats span:nth-child(2) {
  color: #16764a;
  background: var(--accent-green-soft);
}

.student-card-stats span:nth-child(3),
.student-detail-stats span:nth-child(3) {
  color: #5b3eb5;
  background: var(--accent-purple-soft);
}

.student-active-list a,
.student-assignment-row,
.student-progress-card,
.student-level-block-progress,
.student-level-module-card,
.progress-snapshot-item,
.assignment-timeline li,
.progress-activity-list {
  border-width: 2px;
  border-color: rgba(82, 122, 180, 0.14);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(247, 251, 255, 0.96)),
    #fff;
}

.student-empty-work {
  border-width: 2px;
  border-color: rgba(53, 201, 119, 0.26);
  border-style: solid;
  background:
    linear-gradient(135deg, var(--accent-green-soft), rgba(255, 255, 255, 0.88));
}

.student-quick-assign-card {
  border-color: rgba(25, 194, 230, 0.24);
  background:
    linear-gradient(135deg, rgba(222, 248, 255, 0.94), rgba(255, 244, 191, 0.7), rgba(241, 236, 255, 0.62)),
    #fff;
}

.student-progress-card {
  border-radius: 24px;
  padding: 16px;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease;
}

.student-progress-card-top strong {
  color: var(--accent-green);
  font-size: 1.8rem;
}

.student-progress-meter {
  height: 12px;
  border: 1px solid rgba(82, 122, 180, 0.1);
  background: #e9f0f8;
  box-shadow: inset 0 2px 4px rgba(20, 33, 61, 0.06);
}

.student-progress-meter span {
  background: linear-gradient(90deg, var(--brand-cyan), var(--accent-green), var(--brand-yellow));
}

.student-progress-quick-stats span,
.student-homework-summary article,
.student-progress-more section {
  border-width: 2px;
  border-color: rgba(82, 122, 180, 0.14);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(222, 248, 255, 0.38)),
    #fff;
}

.student-homework-summary article:nth-child(1) {
  background: linear-gradient(145deg, #fff, var(--brand-cyan-soft));
}

.student-homework-summary article:nth-child(2) {
  background: linear-gradient(145deg, #fff, var(--accent-purple-soft));
}

.student-homework-summary article:nth-child(3) {
  background: linear-gradient(145deg, #fff, var(--accent-green-soft));
}

.student-homework-summary article:nth-child(4) {
  background: linear-gradient(145deg, #fff, var(--accent-orange-soft));
}

.assignment-dashboard-item {
  border-radius: 26px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(226, 239, 255, 0.46)),
    #fff;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease;
}

.assignment-dashboard-instructions {
  border-left-color: var(--accent-purple);
  background:
    linear-gradient(135deg, var(--accent-purple-soft), rgba(255, 255, 255, 0.8));
}

.assignment-detail-hero {
  border-radius: 32px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(222, 248, 255, 0.62), rgba(255, 244, 191, 0.44)),
    #fff;
}

.assignment-detail-card {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(247, 251, 255, 0.98)),
    #fff;
}

.assignment-timeline li.is-active {
  border-color: rgba(53, 201, 119, 0.32);
  background:
    linear-gradient(135deg, var(--accent-green-soft), rgba(255, 255, 255, 0.9));
}

.progress-snapshot-notice {
  border-width: 2px;
  background:
    linear-gradient(135deg, var(--brand-cyan-soft), rgba(255, 255, 255, 0.86));
}

.progress-snapshot-item strong {
  color: var(--text);
  font-size: 1.06rem;
}

.student-level-block-progress {
  border-radius: 26px;
  padding: 16px;
}

.student-level-module-card {
  border-radius: 22px;
  border-left-width: 8px;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease;
}

.assignment-history-status.status-assigned {
  background: var(--brand-cyan-soft);
  color: var(--brand-cyan-strong);
}

.assignment-history-status.status-in_progress,
.assignment-history-status.status-in-progress {
  background: var(--accent-purple-soft);
  color: #5b3eb5;
}

.assignment-history-status.status-completed {
  background: var(--accent-green-soft);
  color: #16764a;
}

.assignment-history-status.status-canceled {
  background: #eef2f7;
  color: #687483;
}

/* Novakid-inspired assignment, student, and progress polish */
.assignment-summary-card,
.assignment-dashboard-card,
.assignment-dashboard-item,
.students-panel,
.student-card,
.assignment-detail-hero,
.assignment-detail-card,
.student-progress-card,
.student-level-block-progress,
.student-level-module-card,
.progress-snapshot-item,
.progress-activity-list {
  border-color: rgba(74, 47, 186, 0.2);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.99), rgba(246, 242, 255, 0.76) 56%, rgba(255, 251, 225, 0.48)),
    #fff;
  box-shadow:
    0 12px 0 rgba(36, 16, 111, 0.045),
    var(--shadow-card);
}

.assignment-summary-card {
  min-height: 132px;
  border-radius: 32px;
  background:
    radial-gradient(circle at 90% 10%, rgba(149, 244, 130, 0.18), transparent 24%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.99), var(--launcher-soft, var(--brand-cyan-soft)) 100%),
    #fff;
}

.assignment-summary-card::before,
.student-card::before {
  height: 10px;
  background: linear-gradient(90deg, var(--launcher-accent, var(--accent-purple)), var(--brand-yellow), var(--accent-green));
}

.assignment-summary-card.tone-cyan {
  --launcher-accent: var(--accent-purple);
  --launcher-soft: var(--brand-cyan-soft);
  --launcher-text: var(--brand-navy);
}

.assignment-summary-card.tone-green {
  --launcher-accent: var(--accent-green);
  --launcher-soft: var(--accent-green-soft);
  --launcher-text: #205f25;
}

.assignment-summary-card.tone-purple {
  --launcher-accent: var(--accent-purple);
  --launcher-soft: var(--accent-purple-soft);
  --launcher-text: var(--brand-navy);
}

.assignment-summary-card.tone-orange {
  --launcher-accent: var(--brand-yellow);
  --launcher-soft: var(--brand-yellow-soft);
  --launcher-text: var(--brand-navy);
}

.assignment-summary-icon,
.student-avatar,
.assignment-student-avatar {
  border: 2px solid rgba(36, 16, 111, 0.08);
  background: linear-gradient(135deg, var(--launcher-accent, var(--brand-yellow)), #fffbd6);
  color: var(--launcher-text, var(--brand-navy));
  box-shadow: 0 10px 0 rgba(36, 16, 111, 0.14), 0 20px 30px rgba(53, 36, 148, 0.14);
}

.assignment-summary-card strong {
  color: var(--brand-navy);
  font-size: clamp(1.9rem, 4vw, 2.35rem);
}

.assignment-summary-card span {
  color: var(--muted);
  font-weight: 1000;
}

.students-panel,
.assignment-dashboard-card,
.assignment-detail-card {
  border-radius: 34px;
  padding: clamp(20px, 2.6vw, 28px);
}

.assignment-dashboard-controls {
  border-color: rgba(74, 47, 186, 0.16);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(239, 232, 255, 0.7)),
    #fff;
  box-shadow: 0 10px 22px rgba(53, 36, 148, 0.08);
}

.assignment-dashboard-count,
.student-detail-stats span,
.student-card-stats span,
.student-level-block-heading > span,
.student-progress-badges small,
.assignment-due-date,
.assignment-history-status {
  border-color: rgba(74, 47, 186, 0.12);
  background: linear-gradient(135deg, #fff, var(--kid-lilac-soft, #f1ecff));
  color: var(--brand-navy);
  box-shadow: 0 7px 15px rgba(53, 36, 148, 0.08);
}

.student-card {
  border-radius: 34px;
  padding: 22px;
  background:
    radial-gradient(circle at 88% 14%, rgba(149, 244, 130, 0.16), transparent 24%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.99), rgba(239, 232, 255, 0.76) 62%, rgba(255, 247, 190, 0.52)),
    #fff;
}

.student-card:nth-child(3n + 1) {
  --launcher-accent: var(--brand-yellow);
  --launcher-text: var(--brand-navy);
}

.student-card:nth-child(3n + 2) {
  --launcher-accent: var(--accent-green);
  --launcher-text: var(--brand-navy);
}

.student-card:nth-child(3n + 3) {
  --launcher-accent: var(--accent-purple);
  --launcher-text: #fff;
}

.student-card:hover,
.assignment-dashboard-item:hover,
.student-assignment-row:hover,
.student-progress-card:hover,
.student-level-module-card:hover {
  border-color: rgba(106, 54, 216, 0.48);
  box-shadow:
    0 16px 0 rgba(36, 16, 111, 0.055),
    var(--shadow-hover);
  transform: translateY(-4px);
}

.student-active-list a,
.student-assignment-row,
.student-progress-card,
.student-level-block-progress,
.student-level-module-card,
.progress-snapshot-item,
.assignment-timeline li,
.progress-activity-list,
.student-progress-quick-stats span,
.student-homework-summary article,
.student-progress-more section {
  border-color: rgba(74, 47, 186, 0.14);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(246, 242, 255, 0.58)),
    #fff;
  box-shadow: 0 8px 18px rgba(53, 36, 148, 0.06);
}

.student-empty-work {
  border-color: rgba(149, 244, 130, 0.54);
  background:
    linear-gradient(135deg, var(--accent-green-soft), rgba(255, 255, 255, 0.9));
  color: var(--brand-navy);
}

.student-quick-assign-card {
  border-color: rgba(149, 244, 130, 0.36);
  background:
    radial-gradient(circle at 92% 10%, rgba(149, 244, 130, 0.2), transparent 24%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.99), rgba(255, 247, 190, 0.64), rgba(239, 232, 255, 0.72)),
    #fff;
}

.student-quick-assign-heading h2,
.assignment-dashboard-heading h2,
.assignment-detail-card h2 {
  color: var(--text);
  font-weight: 1000;
  letter-spacing: 0;
}

.student-progress-card {
  border-radius: 28px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.99), rgba(232, 255, 226, 0.45), rgba(239, 232, 255, 0.5)),
    #fff;
}

.student-progress-card-top strong {
  color: var(--brand-navy);
  text-shadow: 0 6px 18px rgba(149, 244, 130, 0.3);
}

.student-progress-meter {
  height: 14px;
  border: 1px solid rgba(74, 47, 186, 0.12);
  background: linear-gradient(135deg, #efe8ff, #fff);
}

.student-progress-meter span {
  background: linear-gradient(90deg, var(--accent-purple), var(--accent-green), var(--brand-yellow));
}

.student-homework-summary article:nth-child(1),
.student-progress-quick-stats span:nth-child(1) {
  background: linear-gradient(145deg, #fff, var(--brand-cyan-soft));
}

.student-homework-summary article:nth-child(2),
.student-progress-quick-stats span:nth-child(2) {
  background: linear-gradient(145deg, #fff, var(--accent-purple-soft));
}

.student-homework-summary article:nth-child(3),
.student-progress-quick-stats span:nth-child(3) {
  background: linear-gradient(145deg, #fff, var(--accent-green-soft));
}

.student-homework-summary article:nth-child(4) {
  background: linear-gradient(145deg, #fff, var(--brand-yellow-soft));
}

.assignment-dashboard-item {
  border-radius: 30px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.99), rgba(239, 232, 255, 0.68) 58%, rgba(255, 251, 225, 0.46)),
    #fff;
}

.assignment-dashboard-item.is-overdue,
.assignment-detail-hero.is-overdue {
  border-color: rgba(255, 182, 61, 0.5);
  background:
    radial-gradient(circle at 92% 10%, rgba(255, 235, 63, 0.22), transparent 24%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.99), rgba(255, 240, 204, 0.78)),
    #fff;
}

.assignment-dashboard-instructions {
  border-left-color: var(--accent-purple);
  background:
    linear-gradient(135deg, var(--accent-purple-soft), rgba(255, 255, 255, 0.9));
  color: var(--brand-navy);
}

.assignment-detail-hero {
  border-radius: var(--radius-panel);
  border-color: rgba(74, 47, 186, 0.22);
  background:
    radial-gradient(circle at 92% 10%, rgba(149, 244, 130, 0.18), transparent 24%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.99), rgba(239, 232, 255, 0.8), rgba(255, 247, 190, 0.58)),
    #fff;
  box-shadow:
    0 18px 0 rgba(36, 16, 111, 0.055),
    var(--shadow-panel);
}

.assignment-detail-list div,
.student-progress-more,
.assignment-history,
.assignment-timeline li {
  border-color: rgba(74, 47, 186, 0.14);
}

.assignment-timeline li > span {
  background: linear-gradient(135deg, #fff, var(--kid-lilac-soft, #f1ecff));
  color: var(--brand-navy);
}

.assignment-timeline li.is-active {
  border-color: rgba(149, 244, 130, 0.45);
  background:
    linear-gradient(135deg, var(--accent-green-soft), rgba(255, 255, 255, 0.92));
}

.assignment-timeline li.is-active > span {
  background: linear-gradient(135deg, var(--accent-green), var(--brand-yellow));
  color: var(--brand-navy);
}

.progress-snapshot-notice {
  border-color: rgba(106, 54, 216, 0.2);
  background:
    linear-gradient(135deg, var(--brand-cyan-soft), rgba(255, 255, 255, 0.9));
  color: var(--brand-navy);
}

.progress-snapshot-notice.is-warning {
  border-color: rgba(255, 182, 61, 0.42);
  background:
    linear-gradient(135deg, var(--brand-yellow-soft), rgba(255, 255, 255, 0.9));
  color: #6a3900;
}

.progress-snapshot-item strong,
.student-homework-summary strong,
.student-progress-quick-stats strong {
  color: var(--brand-navy);
}

.student-level-block-progress {
  border-radius: 30px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.99), rgba(255, 247, 190, 0.42), rgba(239, 232, 255, 0.5)),
    #fff;
}

.student-level-module-card {
  border-radius: 26px;
  border-left-color: var(--accent-purple);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.99), rgba(246, 242, 255, 0.62)),
    #fff;
}

.student-level-module-card.status-completed {
  border-left-color: var(--accent-green);
}

.student-level-module-card.status-in-progress {
  border-left-color: var(--accent-purple);
}

.student-level-module-card.status-assigned {
  border-left-color: var(--brand-yellow);
}

.student-level-module-card.status-teacher-only {
  border-left-color: var(--accent-orange);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.99), rgba(255, 240, 204, 0.64)),
    #fff;
}

.student-level-module-meta > span:not(.assignment-history-status),
.student-level-module-meta a {
  border: 1px solid rgba(74, 47, 186, 0.12);
  background: linear-gradient(135deg, #fff, var(--kid-lilac-soft, #f1ecff));
  color: var(--brand-navy);
}

.assignment-history-status.status-assigned {
  background: linear-gradient(135deg, var(--brand-yellow-soft), #fff);
  color: var(--brand-navy);
}

.assignment-history-status.status-in_progress,
.assignment-history-status.status-in-progress {
  background: linear-gradient(135deg, var(--accent-purple-soft), #fff);
  color: var(--brand-navy);
}

.assignment-history-status.status-completed {
  background: linear-gradient(135deg, var(--accent-green), #e8ffe2);
  color: var(--brand-navy);
}

.assignment-history-status.status-canceled,
.assignment-history-status.status-not-started,
.assignment-history-status.status-teacher-only {
  background: linear-gradient(135deg, #f4f2fb, #fff);
  color: var(--muted);
}

.assignment-due-date.is-overdue {
  background: linear-gradient(135deg, var(--brand-yellow), var(--accent-orange-soft));
  color: var(--brand-navy);
}

.assignment-student-filter select,
.assignment-notes-form textarea {
  border-color: rgba(74, 47, 186, 0.18);
  border-radius: var(--radius-control);
  color: var(--brand-navy);
  background: #fff;
  box-shadow: 0 8px 18px rgba(53, 36, 148, 0.06);
}

.assignment-notes-form textarea:focus-visible,
.assignment-student-filter select:focus-visible {
  outline-color: rgba(106, 54, 216, 0.28);
}

.student-search-panel {
  display: grid;
  gap: 7px;
  border: 2px solid rgba(74, 47, 186, 0.16);
  border-radius: var(--radius-card);
  padding: 16px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(239, 232, 255, 0.68)),
    #fff;
  box-shadow: 0 10px 22px rgba(53, 36, 148, 0.08);
}

.student-search-panel .search-label {
  color: var(--text);
  font-size: 0.98rem;
  font-weight: 1000;
}

.student-search-panel .search-wrap {
  min-height: 56px;
  border-color: rgba(74, 47, 186, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
}

.admin-students-directory {
  display: grid;
  gap: 18px;
}

.teacher-group-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.teacher-group-card {
  display: grid;
  gap: 18px;
  border: 2px solid rgba(74, 47, 186, 0.16);
  border-radius: 28px;
  padding: 18px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(36, 16, 111, 0.08);
}

.teacher-group-card-main,
.teacher-group-card-footer {
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  min-width: 0;
}

.teacher-group-card-main {
  justify-content: flex-start;
}

.teacher-group-card h3,
.teacher-group-card p {
  margin: 0;
}

.teacher-group-card h3 {
  color: var(--text);
  font-size: 1.25rem;
  line-height: 1.1;
}

.teacher-group-card p:not(.eyebrow) {
  color: var(--muted);
  font-weight: 800;
}

.teacher-group-card-unassigned {
  border-color: rgba(255, 184, 61, 0.38);
}

.teacher-group-card-footer .button {
  flex: 0 0 auto;
}

/* Cleaner Novakid-style student surfaces */
.students-panel,
.student-card,
.assignment-dashboard-card,
.assignment-detail-card,
.assignment-summary-card,
.student-progress-card,
.student-level-module-card {
  background: #fff;
  box-shadow: 0 12px 30px rgba(36, 16, 111, 0.08);
}

.student-card::before {
  height: 6px;
  opacity: 0.86;
}

.student-card:hover,
.assignment-dashboard-item:hover,
.student-assignment-row:hover,
.student-progress-card:hover,
.student-level-module-card:hover {
  box-shadow: 0 16px 36px rgba(36, 16, 111, 0.12);
}

.student-search-panel {
  background: #fff;
  box-shadow: 0 10px 24px rgba(36, 16, 111, 0.07);
}
