﻿.startBtn{
    padding:14px 28px;
    font-size:18px;
    border:none;
    border-radius:12px;
    background:#2ecc71;
    color:#072114;
    cursor:pointer;
    transition:.18s;
    box-shadow: 0 12px 30px rgba(0,0,0,.25);
    min-width:160px;
  }
  .startBtn:hover{ transform:translateY(-2px); filter:brightness(1.03); }
  .startBtn:active{ transform:translateY(0px); }
  .startBtn.alt{ background:#38bdf8; color:#062236; }
  .chip{
    display:flex; align-items:center; gap:8px;
    padding:8px 10px;
    border-radius:999px;
    background:rgba(255,255,255,.08);
    color:rgba(234,242,255,.90);
    font-size:12px;
    cursor:pointer;
    user-select:none;
  }
  .chip input{ width:14px; height:14px; }


  #authModal{ position:fixed; inset:0; z-index:10000; }
  #authModal.hidden{ display:none !important; pointer-events:none !important; }
  #authModal[aria-hidden="true"]{ display:none !important; pointer-events:none !important; }

  .authBackdrop{
    position:absolute; inset:0;
    background: rgba(0,0,0,.45);
    backdrop-filter: blur(6px);
  }

  .authCard{
    position:absolute;
    left:50%; top:50%;
    transform: translate(-50%, -50%);
    width: min(560px, calc(100vw - 32px));
    background: rgba(12,24,36,.92);
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 18px;
    box-shadow: 0 20px 70px rgba(0,0,0,.5);
    overflow:hidden;
  }

  .authTop{ display:flex; align-items:center; justify-content:space-between; padding:16px 18px; border-bottom:1px solid rgba(255,255,255,.10); }
  .authKicker{ font-size:12px; letter-spacing:.45px; color: rgba(208,245,232,.85); }
  .authTitle{ font-size:20px; font-weight:700; color:#fff; margin-top:2px; }
  .authX{ border:none; background:transparent; color:rgba(255,255,255,.85); font-size:18px; cursor:pointer; padding:6px 8px; border-radius:10px; }
  .authX:hover{ background: rgba(255,255,255,.08); }

  .authBody{ padding:16px 18px 18px; }
  .authHint{ color: rgba(234,242,255,.85); margin-bottom:10px; }

  .authRoleRow{ display:flex; gap:10px; flex-wrap:wrap; }
  .authRole{
    flex:1 1 160px;
    background: rgba(255,255,255,.07);
    border: 1px solid rgba(255,255,255,.12);
    color:#fff;
    padding:12px 12px;
    border-radius:14px;
    cursor:pointer;
    transition:.18s;
    text-align:left;
  }
  .authRole:hover{ transform: translateY(-2px); background: rgba(255,255,255,.10); }

  .authMiniRow{ display:flex; align-items:center; justify-content:space-between; gap:10px; margin-bottom:12px; }
  .authBack{ background:transparent; border:none; color:#bfe8ff; cursor:pointer; padding:6px 8px; border-radius:10px; }
  .authBack:hover{ background: rgba(56,189,248,.12); }
  .authPill{ font-size:12px; padding:6px 10px; border-radius:999px; background: rgba(34,197,94,.14); border:1px solid rgba(34,197,94,.22); color:#dfffe9; }

  .authForm{ display:flex; flex-direction:column; gap:10px; }
  .authLabel{ font-size:12px; color: rgba(234,242,255,.80); display:block; margin-bottom:6px; }
  .authInput{
    width:100%;
    padding:12px 12px;
    border-radius:12px;
    border:1px solid rgba(255,255,255,.14);
    background: rgba(0,0,0,.18);
    color:#fff;
    outline:none;
  }
  .authInput:focus{ border-color: rgba(56,189,248,.55); box-shadow: 0 0 0 3px rgba(56,189,248,.18); }

  .authMsg{ min-height:20px; font-size:13px; color: rgba(255,255,255,.86); }
  .authMsg.err{ color: #ffd1d1; }
  .authMsg.ok{ color: #c6ffe0; }

  .authSubmit{
    margin-top:2px;
    padding:12px 14px;
    border:none;
    border-radius:12px;
    background:#2ecc71;
    color:#062013;
    font-weight:700;
    cursor:pointer;
    transition:.18s;
  }
  .authSubmit:hover{ transform: translateY(-1px); filter:brightness(1.03); }

  .authSwap{ display:flex; gap:8px; justify-content:center; align-items:center; margin-top:8px; color: rgba(234,242,255,.75); font-size:13px; }
  .authSwapBtn{ background:transparent; border:none; color:#38bdf8; cursor:pointer; font-weight:700; }
  .authSwapBtn:hover{ text-decoration:underline; }

/* =========================
   ADMIN MODE (Yetkili Paneli)
   ========================= */
#adminRoot{
  position:fixed;
  inset:0;
  z-index:9000; /* startScreen 9999, authModal 10000 */
  background: radial-gradient(1200px 700px at 20% 15%, rgba(56,189,248,.20), transparent 55%),
              radial-gradient(1200px 700px at 80% 85%, rgba(34,197,94,.20), transparent 55%),
              linear-gradient(135deg, #070a12, #0b1220);
  color:#eaf2ff;
  display:flex;
  flex-direction:column;
}
#adminRoot.hidden{ display:none !important; pointer-events:none !important; }
#adminRoot[aria-hidden="true"]{ display:none !important; pointer-events:none !important; }
#teacherRoot{
  position:fixed;
  inset:0;
  z-index:9000;
  background: radial-gradient(1200px 700px at 20% 15%, rgba(56,189,248,.18), transparent 55%),
              radial-gradient(1200px 700px at 80% 85%, rgba(16,185,129,.18), transparent 55%),
              linear-gradient(135deg, #070a12, #0b1220);
  color:#eaf2ff;
  display:flex;
  flex-direction:column;
}
#teacherRoot.hidden{ display:none !important; pointer-events:none !important; }
#teacherRoot[aria-hidden="true"]{ display:none !important; pointer-events:none !important; }
.teacherBadge{
  background: rgba(56,189,248,.16);
  border: 1px solid rgba(56,189,248,.28);
  color: rgba(223,246,255,.95);
}
.adminGrid2{
  grid-template-columns: minmax(320px, 420px) 1fr;
}
.adminGrid2 > *{
  min-width:0;
}
#teacherScreen_classes .adminGrid2,
#teacherScreen_library .adminGrid2{
  grid-template-columns: minmax(430px, .95fr) minmax(620px, 1.25fr);
  align-items:start;
}
@media (max-width: 1100px){
  .adminGrid2{ grid-template-columns: 1fr; }
  #teacherScreen_classes .adminGrid2,
  #teacherScreen_library .adminGrid2{
    grid-template-columns:1fr;
  }
  .teacherAssessmentTopGrid,
  .teacherAssessmentGrid,
  .teacherAssessmentStudentGrid,
  .teacherAssessmentSourceGrid,
  .teacherAssessmentWideForm,
  .teacherAssessmentSurveyChoiceGrid,
  .teacherAssessmentModuleGrid{
    grid-template-columns:1fr;
  }
  .teacherAssessmentReadingPickerGrid{
    grid-template-columns:1fr;
  }
  .teacherAssessmentLookupRow{
    grid-template-columns:1fr;
  }
}
.adminTextarea{
  min-height: 180px;
  resize: vertical;
  line-height: 1.5;
}
.contentWizard{
  display:flex;
  flex-direction:column;
  gap:12px;
}
.contentWizardHead{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
}
.contentWizardDots{
  display:flex;
  align-items:center;
  gap:8px;
  flex-wrap:wrap;
}
.contentWizardDot{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:34px;
  height:34px;
  padding:0 10px;
  border-radius:999px;
  background:rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.10);
  color:rgba(234,242,255,.80);
  font-size:12px;
  font-weight:800;
}
.contentWizardDot.active{
  background:rgba(56,189,248,.18);
  border-color:rgba(56,189,248,.35);
  color:#eaf2ff;
}
.contentWizardStep{
  display:flex;
  flex-direction:column;
}
.contentWizardNav{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  align-items:center;
}
.adminTextsFullWizard{
  display:grid;
  gap:12px;
}
.adminTextsWizardCard{
  padding:16px 18px;
}
.adminTextsWizardCard #adminComposerWrap{
  margin-top:12px;
}
.adminTextsWideForm{
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap:12px;
  align-items:start;
}
.adminTextsWideForm .authInput,
.adminTextsWideForm .pickerList{
  min-width:0;
}
.adminTextsWizardCard .adminTextarea{
  min-height:220px;
}
.adminTextsWizardCard .pickerList{
  min-height:58px;
}
.contentWizardGhost{
  background:rgba(255,255,255,.08);
  border:1px solid rgba(255,255,255,.14);
  color:#fff;
}
.contentWizardNav .authSubmit{
  margin-top:0;
}
.adminTextarea.smallArea{
  min-height: 110px;
}
.pickerList{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  min-height: 44px;
  padding:10px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.04);
}
.pickerChip{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:8px 10px;
  border-radius:999px;
  background: rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.10);
  color:#eaf2ff;
  cursor:pointer;
  user-select:none;
}
.pickerChip input{
  width:14px;
  height:14px;
}
.teacherClassCard{
  display:flex;
  flex-direction:column;
  gap:10px;
  min-width:0;
}
.adminTeacherCard{
  display:block;
  align-items:stretch;
  padding:14px 16px;
}
.adminTeacherMain{
  display:grid;
  grid-template-columns: minmax(260px, 1.15fr) minmax(220px, .62fr) minmax(340px, .98fr);
  gap:12px;
  align-items:flex-start;
}
.adminTeacherIdentity{
  min-width:0;
  display:grid;
  gap:5px;
}
.adminTeacherTitleRow{
  display:flex;
  align-items:center;
  gap:8px;
  flex-wrap:wrap;
}
.adminTeacherSubline,
.adminTeacherMetaLine{
  line-height:1.45;
}
.adminTeacherState{
  display:inline-flex;
  align-items:center;
  min-height:26px;
  padding:0 10px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.14);
  background:rgba(255,255,255,.05);
  color:rgba(234,242,255,.92);
  font-size:11px;
  font-weight:900;
}
.adminTeacherState.is-active{
  border-color:rgba(34,197,94,.32);
  background:rgba(34,197,94,.14);
  color:#dcfce7;
}
.adminTeacherState.is-idle{
  border-color:rgba(245,158,11,.28);
  background:rgba(245,158,11,.12);
  color:#fde68a;
}
.adminTeacherStats{
  display:grid;
  grid-template-columns: repeat(2, minmax(102px, 1fr));
  gap:6px;
  align-self:start;
}
.adminTeacherMini{
  display:grid;
  gap:4px;
  padding:9px 10px;
  border-radius:12px;
  background: linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.04));
  border:1px solid rgba(255,255,255,.10);
  min-width:0;
}
.adminTeacherMini span{
  font-size:11px;
  color: rgba(234,242,255,.72);
}
.adminTeacherMini b{
  font-size:15px;
  color:#fff;
}
.adminTeacherClasses{
  display:grid;
  gap:6px;
  margin-top:4px;
}
.adminTeacherSectionLabel{
  font-size:11px;
  font-weight:900;
  letter-spacing:.04em;
  text-transform:uppercase;
  color:rgba(234,242,255,.66);
}
.adminTeacherClassList{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}
.adminTeacherClassPill{
  display:inline-flex;
  align-items:center;
  min-height:28px;
  padding:0 10px;
  border-radius:999px;
  border:1px solid rgba(56,189,248,.24);
  background:rgba(56,189,248,.10);
  color:#d9f3ff;
  font-size:12px;
  font-weight:700;
}
.adminTeacherClassPill.is-empty{
  border-color:rgba(255,255,255,.12);
  background:rgba(255,255,255,.04);
  color:rgba(234,242,255,.74);
}
.teacherEngagementInline{
  display:grid;
  gap:7px;
  padding:10px 12px;
  border-radius:16px;
  border:1px solid rgba(255,255,255,.10);
  background:rgba(255,255,255,.04);
  align-self:stretch;
}
.teacherEngagementInline.tone-good{
  border-color: rgba(34,197,94,.24);
  background: rgba(34,197,94,.10);
}
.teacherEngagementInline.tone-warn{
  border-color: rgba(245,158,11,.24);
  background: rgba(245,158,11,.10);
}
.teacherEngagementInline.tone-risk{
  border-color: rgba(239,68,68,.26);
  background: rgba(239,68,68,.10);
}
.teacherEngagementInlineTop{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  flex-wrap:wrap;
}
.teacherEngagementInlineTop b{
  color:#fff;
  font-size:14px;
}
.teacherEngagementInlineMetrics{
  display:flex;
  flex-wrap:wrap;
  gap:6px;
}
.teacherEngagementInlineMetrics span{
  display:inline-flex;
  align-items:center;
  min-height:26px;
  padding:0 9px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.10);
  background:rgba(255,255,255,.07);
  color:rgba(234,242,255,.88);
  font-size:11px;
}
.teacherEngagementInlineMetrics span b{
  margin-right:5px;
  color:#fff;
}
.adminUserCard{
  align-items:flex-start;
}
.is-new-notice{
  border-color: rgba(239,68,68,.32) !important;
  box-shadow: 0 0 0 1px rgba(239,68,68,.14) inset, 0 12px 30px rgba(239,68,68,.08);
}
.teacherStudentRow{
  display:grid;
  grid-template-columns: minmax(0,1fr) auto;
  gap:10px;
  align-items:center;
  padding:10px 12px;
  border-radius:14px;
  background: rgba(255,255,255,.05);
  border:1px solid rgba(255,255,255,.10);
}
.teacherStudentActions{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  justify-content:flex-end;
}
#teacherClassesList,
#teacherTextsList{
  display:grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap:12px;
}
.teacherClassCard .adminList{
  display:grid;
  grid-template-columns:1fr;
  gap:10px;
}
.teacherClassCard > div:first-child,
.teacherStudentRow > div:first-child{
  min-width:0;
}
.teacherClassCard b,
.teacherClassCard .adminTiny,
.teacherStudentRow b,
.teacherStudentRow .adminTiny{
  overflow-wrap:anywhere;
}
.teacherTrackingShell{
  display:flex;
  flex-direction:column;
  gap:14px;
}
.teacherTrackingOverview{
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap:10px;
}
.teacherTrackingOverviewCard{
  padding:12px 14px;
  border-radius:16px;
  background: rgba(255,255,255,.055);
  border:1px solid rgba(255,255,255,.10);
}
.teacherTrackingOverviewValue{
  margin-top:6px;
  font-size:24px;
  font-weight:900;
  line-height:1.1;
}
.teacherTrackingToolbar{
  display:grid;
  grid-template-columns: minmax(0, 1.2fr) repeat(2, minmax(180px, .5fr));
  gap:10px;
}
.teacherTrackingInput{
  min-width:0;
}
.teacherTrackingSelect{
  min-width:0;
}
.teacherTrackingClasses{
  display:flex;
  flex-direction:column;
  gap:12px;
}
.teacherTrackingClassBlock{
  padding:14px;
  border-radius:18px;
  background: rgba(255,255,255,.045);
  border:1px solid rgba(255,255,255,.10);
  display:flex;
  flex-direction:column;
  gap:12px;
}
.teacherTrackingClassHead,
.teacherTrackingTaskHead,
.teacherTrackingStudentTop{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
  flex-wrap:wrap;
}
.teacherTrackingClassTitle{
  font-size:19px;
  font-weight:900;
  line-height:1.15;
}
.teacherTrackingTaskTitle{
  font-size:17px;
  font-weight:900;
  line-height:1.2;
}
.teacherTrackingTaskPills{
  display:flex;
  align-items:center;
  gap:8px;
  flex-wrap:wrap;
}
.teacherTrackingPill{
  padding:7px 10px;
  border-radius:999px;
  background: rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.12);
  color:#eaf2ff;
  font-size:12px;
  font-weight:800;
}
.teacherTrackingMiniGrid{
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap:8px;
}
.teacherTrackingMiniStat{
  padding:10px 12px;
  border-radius:14px;
  background: rgba(255,255,255,.04);
  border:1px solid rgba(255,255,255,.08);
  min-width:0;
}
.teacherTrackingMiniStat b{
  display:block;
  margin-top:4px;
  font-size:18px;
  font-weight:900;
}
.teacherTrackingMiniLabel{
  font-size:11px;
  color: rgba(234,242,255,.70);
  text-transform:uppercase;
  letter-spacing:.04em;
}
.teacherTrackingTaskCard{
  padding:12px;
  border-radius:16px;
  background: rgba(7,16,29,.30);
  border:1px solid rgba(255,255,255,.08);
  display:flex;
  flex-direction:column;
  gap:10px;
}
.teacherTrackingTaskLauncher{
  display:flex;
  flex-direction:column;
  gap:10px;
  padding:4px;
  border-radius:14px;
  cursor:pointer;
  transition: transform .16s ease, border-color .16s ease, background .16s ease;
}
.teacherTrackingTaskLauncher:hover{
  transform: translateY(-1px);
  background: rgba(9,20,34,.42);
}
.teacherTrackingTaskLauncher:focus-visible{
  outline: 2px solid rgba(56,189,248,.55);
  outline-offset: 2px;
}
.teacherTrackingDetailHint{
  display:inline-flex;
  align-items:center;
  padding:7px 10px;
  border-radius:999px;
  background: rgba(56,189,248,.14);
  border:1px solid rgba(56,189,248,.28);
  color:#dff4ff;
  font-size:12px;
  font-weight:900;
}
.teacherTrackingStudentCard{
  display:grid;
  grid-template-columns: minmax(0,1fr) auto;
  gap:10px;
  align-items:flex-start;
  padding:10px 12px;
  border-radius:14px;
  background: rgba(255,255,255,.05);
  border:1px solid rgba(255,255,255,.10);
}
.teacherTrackingState{
  display:inline-flex;
  align-items:center;
  padding:6px 10px;
  border-radius:999px;
  font-size:11px;
  font-weight:900;
  border:1px solid transparent;
}
.teacherTrackingState--pending{
  background: rgba(255,255,255,.06);
  border-color: rgba(255,255,255,.12);
  color:#eaf2ff;
}
.teacherTrackingState--support{
  background: rgba(239,68,68,.14);
  border-color: rgba(239,68,68,.30);
  color:#ffd7d7;
}
.teacherTrackingState--watch{
  background: rgba(245,158,11,.14);
  border-color: rgba(245,158,11,.28);
  color:#ffe6b3;
}
.teacherTrackingState--good{
  background: rgba(34,197,94,.14);
  border-color: rgba(34,197,94,.30);
  color:#d5ffe3;
}
.teacherTrackingInsightList{
  display:grid;
  gap:6px;
  padding:10px 12px;
  border-radius:14px;
  background: rgba(255,255,255,.035);
  border:1px dashed rgba(255,255,255,.10);
}
.teacherStudentDetailCard{
  max-width:min(980px, calc(100vw - 28px));
}
.teacherStudentDetailBody{
  display:flex;
  flex-direction:column;
  gap:14px;
}
.teacherStudentDetailTabs{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
}
.teacherStudentDetailTab{
  display:inline-flex;
  align-items:center;
  min-height:36px;
  position:relative;
  padding:0 42px 0 14px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.12);
  background:rgba(255,255,255,.05);
  color:rgba(234,242,255,.84);
  font-size:13px;
  font-weight:800;
  cursor:pointer;
  transition:background .18s ease, border-color .18s ease, transform .18s ease, color .18s ease;
}
.teacherStudentDetailTab:hover{
  background:rgba(255,255,255,.08);
  transform:translateY(-1px);
}
.teacherStudentDetailTab.active{
  background:rgba(56,189,248,.16);
  border-color:rgba(56,189,248,.34);
  color:#eef9ff;
}
.teacherStudentDetailPane{
  display:flex;
  flex-direction:column;
  gap:14px;
}
.teacherStudentDetailSubTabs{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  margin-bottom:10px;
}
.teacherStudentDetailSubTabsSecondary{
  margin-top:-2px;
}
.teacherStudentDetailSubTabsSecondary.hidden{
  display:none !important;
}
.teacherStudentDetailSubTab{
  display:inline-flex;
  align-items:center;
  min-height:32px;
  position:relative;
  padding:0 38px 0 12px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.10);
  background:rgba(255,255,255,.04);
  color:rgba(234,242,255,.78);
  font-size:12px;
  font-weight:800;
  cursor:pointer;
  transition:background .18s ease, border-color .18s ease, color .18s ease;
}
.teacherStudentDetailSubTab:hover{
  background:rgba(255,255,255,.08);
}
.teacherStudentDetailSubTab.active{
  background:rgba(34,197,94,.14);
  border-color:rgba(34,197,94,.30);
  color:#f0fdf4;
}
.teacherStudentDetailSubTabsSecondary .teacherStudentDetailSubTab{
  min-height:28px;
  padding:0 34px 0 10px;
  font-size:11px;
  background:rgba(255,255,255,.03);
}
.teacherStudentDetailSubTabsSecondary .teacherStudentDetailSubTab.active{
  background:rgba(56,189,248,.14);
  border-color:rgba(56,189,248,.30);
  color:#eef9ff;
}
.teacherStudentDetailSubTab .navNotifyBadge{
  min-width:20px;
  height:20px;
  padding:0 6px;
  right:8px;
  font-size:10px;
}
.exerciseSessionMetrics{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-top:8px;
}
.exerciseSessionMetric{
  display:inline-flex;
  align-items:center;
  gap:6px;
  min-height:28px;
  padding:0 10px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.10);
  background:rgba(255,255,255,.04);
  color:rgba(234,242,255,.88);
  font-size:12px;
  font-weight:700;
}
.exerciseSessionNote{
  margin-top:8px;
  color:rgba(234,242,255,.82);
  line-height:1.5;
}
.exerciseSessionLevels{
  margin-top:8px;
  color:rgba(234,242,255,.68);
  line-height:1.45;
}
.exerciseSessionMeta{
  color:rgba(234,242,255,.64);
  font-size:12px;
  margin-top:4px;
}
.teacherStudentDetailExerciseSummary{
  margin-bottom:10px;
}
.exerciseSummaryCard{
  padding:12px;
  border-radius:16px;
  background:rgba(255,255,255,.04);
  border:1px solid rgba(255,255,255,.10);
}
.exerciseSummaryTop{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:10px;
  flex-wrap:wrap;
  margin-bottom:10px;
}
.exerciseSummaryHint{
  color:rgba(234,242,255,.72);
  font-size:12px;
  line-height:1.45;
  max-width:54ch;
}
.exerciseSummaryMeta{
  color:rgba(234,242,255,.62);
  font-size:12px;
  white-space:nowrap;
}
.teacherStudentDetailStats{
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap:10px;
}
.teacherStudentDetailStats--compact{
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
}
.teacherStudentDetailSection{
  padding:12px;
  border-radius:16px;
  background: rgba(255,255,255,.045);
  border:1px solid rgba(255,255,255,.10);
}
.teacherStudentDetailSplit{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:12px;
}
.teacherStudentDetailRow{
  display:grid;
  grid-template-columns: minmax(0,1fr) auto;
  gap:10px;
  align-items:flex-start;
  padding:10px 12px;
  border-radius:14px;
  background: rgba(255,255,255,.05);
  border:1px solid rgba(255,255,255,.10);
}
.teacherStudentDetailRow.tone-good{
  border-color: rgba(34,197,94,.24);
  background: rgba(34,197,94,.10);
}
.teacherStudentDetailRow.tone-warn{
  border-color: rgba(245,158,11,.24);
  background: rgba(245,158,11,.10);
}
.teacherStudentDetailRow.tone-risk{
  border-color: rgba(239,68,68,.26);
  background: rgba(239,68,68,.11);
}
.teacherStudentDetailRow.tone-info{
  border-color: rgba(56,189,248,.18);
  background: rgba(56,189,248,.08);
}
.teacherStudentDetailTag{
  display:inline-flex;
  align-items:center;
  padding:6px 10px;
  border-radius:999px;
  background: rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.12);
  color:#eaf2ff;
  font-size:11px;
  font-weight:900;
}
.teacherStudentDetailTag.tone-good{
  border-color: rgba(34,197,94,.28);
  background: rgba(34,197,94,.16);
  color:#dcfce7;
}
.teacherStudentDetailTag.tone-warn{
  border-color: rgba(245,158,11,.28);
  background: rgba(245,158,11,.14);
  color:#fde68a;
}
.teacherStudentDetailTag.tone-risk{
  border-color: rgba(239,68,68,.34);
  background: rgba(239,68,68,.16);
  color:#ffe4e6;
}
.teacherStudentDetailTag.tone-info{
  border-color: rgba(56,189,248,.28);
  background: rgba(56,189,248,.14);
  color:#d9f3ff;
}
.analysisInsightCard{
  padding:12px 13px;
  border-radius:16px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.04);
  display:grid;
  gap:8px;
}
.analysisInsightCard.is-summary{
  background: linear-gradient(180deg, rgba(56,189,248,.12), rgba(255,255,255,.04));
}
.analysisInsightCard.tone-good{
  border-color: rgba(34,197,94,.28);
  background: rgba(34,197,94,.10);
}
.analysisInsightCard.tone-warn{
  border-color: rgba(245,158,11,.28);
  background: rgba(245,158,11,.10);
}
.analysisInsightCard.tone-risk{
  border-color: rgba(239,68,68,.30);
  background: rgba(239,68,68,.11);
}
.analysisInsightCard.tone-info{
  border-color: rgba(56,189,248,.24);
  background: rgba(56,189,248,.09);
}
.analysisInsightTop{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:10px;
}
.analysisInsightTitle{
  font-weight:900;
  color:#fff;
}
.analysisInsightBadge{
  display:inline-flex;
  align-items:center;
  padding:5px 9px;
  border-radius:999px;
  background: rgba(255,255,255,.14);
  border:1px solid rgba(255,255,255,.18);
  color:#fff;
  font-size:11px;
  font-weight:900;
  white-space:nowrap;
}
.analysisInsightText{
  color: rgba(234,242,255,.86);
  line-height:1.55;
}
.inlineAlertBadge{
  display:inline-flex;
  align-items:center;
  margin-left:8px;
  padding:3px 7px;
  border-radius:999px;
  background:#ef4444;
  color:#fff;
  font-size:10px;
  font-weight:900;
  vertical-align:middle;
}
.hasAlert{
  border-color: rgba(239,68,68,.38) !important;
  box-shadow: 0 0 0 1px rgba(239,68,68,.16) inset;
}
.navNotifyBadge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:24px;
  height:24px;
  padding:0 8px;
  position:absolute;
  right:10px;
  top:8px;
  border-radius:999px;
  background:#ef4444;
  color:#fff;
  font-size:11px;
  font-weight:900;
  box-shadow:0 10px 18px rgba(239,68,68,.24);
}
.studentInsightConfirmCard{
  width:min(560px, calc(100vw - 28px));
}
.teacherEngagementCard{
  margin-top:10px;
  padding:12px;
  border-radius:16px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.04);
}
.adminTeacherCard .teacherEngagementCard{
  margin-top:0;
}
.teacherEngagementCard.tone-good{
  border-color: rgba(34,197,94,.28);
  background: rgba(34,197,94,.10);
}
.teacherEngagementCard.tone-warn{
  border-color: rgba(245,158,11,.28);
  background: rgba(245,158,11,.10);
}
.teacherEngagementCard.tone-risk{
  border-color: rgba(239,68,68,.30);
  background: rgba(239,68,68,.10);
}
.teacherEngagementTop{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:10px;
  margin-bottom:10px;
}
.teacherEngagementTitle{
  font-weight:900;
  color:#fff;
}
.teacherEngagementBadge{
  display:inline-flex;
  align-items:center;
  padding:5px 9px;
  border-radius:999px;
  background: rgba(255,255,255,.14);
  border:1px solid rgba(255,255,255,.18);
  color:#fff;
  font-size:11px;
  font-weight:900;
}
.teacherEngagementGrid{
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap:8px;
}
.teacherEngagementMetric{
  padding:8px 10px;
  border-radius:12px;
  background: rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.10);
  display:grid;
  gap:4px;
}
.teacherEngagementMetric span{
  font-size:11px;
  color: rgba(234,242,255,.72);
}
.teacherEngagementMetric b{
  font-size:18px;
  color:#fff;
}
@media (max-width: 1100px){
  .adminTeacherMain{
    grid-template-columns:minmax(0, 1fr) minmax(220px, .75fr);
  }
  .teacherEngagementInline{
    grid-column:1 / -1;
  }
}
@media (max-width: 760px){
  .adminTeacherMain{
    grid-template-columns:1fr;
  }
  .adminTeacherStats{
    grid-template-columns:1fr 1fr;
  }
  .teacherEngagementInline{
    grid-column:auto;
  }
}
.miniSelect{
  min-width: 160px;
  padding:8px 10px;
  border-radius:10px;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.18);
  color:#fff;
}
.libraryReaderBody{
  margin-top:14px;
  padding:16px;
  border-radius:16px;
  background: rgba(255,255,255,.04);
  border:1px solid rgba(255,255,255,.08);
  white-space: pre-wrap;
  overflow-wrap:anywhere;
  word-break:break-word;
  max-width:100%;
  overflow-x:hidden;
  line-height: 1.75;
  color: rgba(234,242,255,.94);
}
.studentLibraryReaderShell{
  margin-top:6px;
  min-height:calc(100vh - 128px);
  display:flex;
  flex-direction:column;
  gap:10px;
  overflow:hidden;
}
.studentLibraryReaderTop{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
  flex-wrap:wrap;
}
.studentLibraryReaderShell.is-paused-reading-mode .studentLibraryReaderTop .grow{
  display:none;
}
.studentLibraryReaderTitle{
  font-weight:900;
  font-size:28px;
  line-height:1.15;
}
.studentLibraryReadingCard{
  margin-top:0 !important;
  padding:12px;
  background:rgba(0,0,0,.18) !important;
  display:flex;
  flex-direction:column;
  flex:1 1 auto;
  min-height:0;
  max-height:100%;
  overflow:hidden;
  position:relative;
}
.studentLibraryReaderHelper{
  margin-bottom:8px;
}
.studentLibraryInCardTitleWrap{
  margin-bottom:10px;
  padding:12px 14px;
  border-radius:18px;
  background:linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.04));
  border:1px solid rgba(255,255,255,.10);
  box-shadow:0 12px 26px rgba(2,8,20,.16);
}
.studentLibraryInCardKicker{
  font-size:11px;
  font-weight:900;
  letter-spacing:.08em;
  text-transform:uppercase;
  color:rgba(191,227,255,.82);
  margin-bottom:4px;
}
.studentLibraryInCardTitle{
  font-size:28px;
  line-height:1.12;
  font-weight:900;
  color:#f8fbff;
  text-shadow:0 0 22px rgba(125,211,252,.12);
}
.studentLibraryPageBar{
  margin-bottom:8px;
  padding:8px 10px;
  border-radius:16px;
  background:rgba(255,255,255,.045);
  border:1px solid rgba(255,255,255,.09);
}
.studentLibraryPageMeta{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  flex-wrap:wrap;
  color:rgba(234,242,255,.92);
  font-weight:800;
  margin-bottom:8px;
}
.studentLibraryPageRemain{
  color:rgba(191,227,255,.78);
  font-size:13px;
  font-weight:700;
}
.studentLibraryPageTrack{
  position:relative;
  height:10px;
  border-radius:999px;
  overflow:hidden;
  background:rgba(255,255,255,.07);
  border:1px solid rgba(255,255,255,.06);
}
.studentLibraryPageFill{
  width:0%;
  height:100%;
  border-radius:999px;
  background:linear-gradient(90deg, rgba(56,189,248,.88), rgba(34,197,94,.82));
  box-shadow:0 6px 16px rgba(14,165,233,.22);
  transition:width .18s ease;
}
.studentLibraryReaderBody{
  margin-top:0;
  font-size:18px;
  line-height:1.82;
  flex:1 1 auto;
  overflow:auto;
  white-space:pre-wrap;
  min-height:0;
  scrollbar-width:thin;
  scrollbar-color: rgba(56,189,248,.55) rgba(255,255,255,.06);
}
.studentLibraryReaderBody.is-paused-reading{
  overflow:hidden;
  white-space:normal;
  position:relative;
  pointer-events:none;
  user-select:none;
}
.pausedReadingFlow{
  display:block;
  min-height:100%;
  width:100%;
  position:relative;
  z-index:1;
}
.pausedReadingChunkHighlightHost{
  position:absolute;
  inset:0;
  z-index:0;
  pointer-events:none;
}
.pausedReadingChunkHighlight{
  position:absolute;
  z-index:0;
  border-radius:16px;
  border:1px solid rgba(191,227,255,.22);
  background:rgba(255,255,255,.08);
  box-shadow:0 10px 24px rgba(56,189,248,.10), inset 0 0 0 1px rgba(255,255,255,.04);
  pointer-events:none;
  opacity:0;
  transition:opacity .14s ease, transform .14s ease, left .14s ease, top .14s ease, width .14s ease, height .14s ease;
}
.pausedReadingWord{
  display:inline-block;
  padding:2px 4px;
  margin:0 1px 2px 0;
  visibility:hidden;
  opacity:0;
  transition:opacity .16s ease, color .16s ease, text-shadow .16s ease;
}
.pausedReadingWord.is-past{
  visibility:visible;
  opacity:.34;
  color:rgba(234,242,255,.68);
  text-shadow:none;
}
.pausedReadingWord.is-visible{
  visibility:visible;
  opacity:1;
  color:rgba(244,250,255,.98);
  text-shadow:0 0 18px rgba(125,211,252,.12);
}
.pausedReadingBreak{
  display:block;
  height:18px;
}
.studentLibraryReadingCard.is-paused-question .studentLibraryReaderBody,
.studentLibraryReadingCard.is-paused-question .studentLibraryReaderHelper{
  filter:blur(7px);
}
.studentPausedQuestionOverlay{
  position:absolute;
  inset:0;
  display:flex;
  align-items:center;
  justify-content:center;
  z-index:4;
}
.studentPausedQuestionShade{
  position:absolute;
  inset:0;
  background:rgba(2,8,20,.28);
  backdrop-filter:blur(10px);
}
.studentPausedQuestionCard{
  position:relative;
  z-index:1;
  width:min(560px, calc(100% - 28px));
  padding:22px 20px;
  border-radius:24px;
  background:linear-gradient(180deg, rgba(12,30,52,.96), rgba(8,23,42,.94));
  border:1px solid rgba(255,255,255,.14);
  box-shadow:0 28px 60px rgba(2,8,20,.35);
}
.studentPausedQuestionKicker{
  font-size:12px;
  font-weight:900;
  letter-spacing:.08em;
  text-transform:uppercase;
  color:rgba(191,227,255,.78);
  margin-bottom:10px;
}
.studentPausedQuestionText{
  font-size:24px;
  line-height:1.45;
  font-weight:900;
  color:#f8fbff;
}
.studentPausedQuestionHint{
  margin-top:10px;
  padding:10px 12px;
  border-radius:14px;
  background:rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.08);
  color:rgba(234,242,255,.86);
  line-height:1.55;
}
.studentPausedQuestionOptions{
  display:grid;
  grid-template-columns:1fr;
  gap:10px;
  margin-top:16px;
}
.studentPausedOption{
  width:100%;
  border:none;
  border-radius:18px;
  padding:14px 16px;
  text-align:left;
  font-weight:800;
  font-size:17px;
  color:#f8fbff;
  background:rgba(255,255,255,.08);
  border:1px solid rgba(255,255,255,.12);
  box-shadow:0 10px 24px rgba(2,8,20,.14);
}
.studentPausedOption:active{
  transform:translateY(1px);
}
.studentPdfViewer{
  display:flex;
  flex-direction:column;
  gap:16px;
  width:100%;
  padding:6px 2px 14px;
}
.studentPdfPage{
  display:flex;
  justify-content:center;
  width:100%;
  padding:14px;
  border-radius:20px;
  background:rgba(255,255,255,.04);
  border:1px solid rgba(255,255,255,.09);
  box-shadow:0 14px 28px rgba(2,8,20,.14);
}
.studentPdfCanvas{
  display:block;
  max-width:100%;
  height:auto;
  margin:0 auto;
  border-radius:12px;
  background:#ffffff;
}
.studentPdfLoading{
  padding:18px;
  border-radius:18px;
  background:rgba(255,255,255,.04);
  border:1px solid rgba(255,255,255,.09);
  color:rgba(234,242,255,.9);
}
.studentLibraryQuestionsWrap{
  margin-top:0 !important;
  background:rgba(5,16,28,.42);
  border:1px solid rgba(255,255,255,.10);
  border-radius:22px;
  padding:16px;
  flex:1 1 auto;
  min-height:0;
  max-height:100%;
  overflow:auto;
  scrollbar-width:thin;
  scrollbar-color: rgba(56,189,248,.55) rgba(255,255,255,.06);
}
.studentLibraryQuestionsWrap .authLabel{
  margin-top:0;
}
.studentLibraryFocusBar{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  padding-bottom:6px;
}
.studentPointsStar{
  display:inline-block;
  font-size:18px;
  line-height:1;
  color:#facc15;
  text-shadow:0 0 10px rgba(250,204,21,.28);
  vertical-align:-2px;
}
body.library-reading-prep .studentLibraryReadingCard{
  overflow:hidden;
}
body.library-reading-prep .studentLibraryReadingCard::after{
  content:"";
  position:absolute;
  inset:0;
  background:rgba(2,8,20,.18);
  pointer-events:none;
}
body.library-reading-prep .studentLibraryReaderBody{
  filter:blur(3px);
  opacity:.76;
  transition:filter .24s ease, opacity .24s ease;
}
body.library-reading-focus .topbar,
body.library-reading-focus .nav{
  display:none !important;
}
body.library-reading-focus{
  overflow:hidden;
}
body.library-reading-focus .wrap{
  grid-template-columns:1fr;
}
body.library-reading-focus .panel{
  padding:8px 10px;
  overflow:hidden;
}
body.library-reading-focus #screenLibraryReader{
  height:calc(100vh - 16px);
  display:flex !important;
  flex-direction:column;
  min-height:0;
  overflow:hidden;
}
.libraryQuestionList{
  display:flex;
  flex-direction:column;
  gap:10px;
  min-height:0;
}
.libraryQuestionItem{
  padding:18px;
  border-radius:22px;
  background: linear-gradient(180deg, rgba(255,255,255,.055), rgba(255,255,255,.03));
  border:1px solid rgba(255,255,255,.11);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04), 0 10px 24px rgba(2,8,20,.14);
}
.studentAnswerOption{
  display:grid;
  grid-template-columns:44px minmax(0,1fr) 22px;
  align-items:center;
  gap:12px;
  padding:14px 16px;
  border-radius:18px;
  background:linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.035));
  border:1px solid rgba(255,255,255,.09);
  cursor:pointer;
  transition:background .18s ease, border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}
.studentAnswerOption input{
  order:3;
  margin:0;
  width:18px;
  height:18px;
  accent-color:#38bdf8;
  justify-self:end;
}
.studentAnswerOption.active{
  background:linear-gradient(135deg, rgba(56,189,248,.28), rgba(34,197,94,.18));
  border-color:rgba(56,189,248,.58);
  box-shadow:0 14px 30px rgba(14,165,233,.18), inset 0 1px 0 rgba(255,255,255,.08);
  transform:translateY(-1px);
}
.studentAnswerOption.active .studentAnswerBadge{
  background:linear-gradient(135deg, rgba(56,189,248,.34), rgba(34,197,94,.28));
  border-color:rgba(56,189,248,.55);
  color:#ffffff;
  box-shadow:0 10px 20px rgba(14,165,233,.16);
}
.studentAnswerOption.active .studentAnswerText{
  color:#ffffff;
  font-weight:800;
}
.studentAnswerText{
  order:2;
  flex:1 1 auto;
  min-width:0;
  color:rgba(234,242,255,.95);
  font-size:17px;
  line-height:1.45;
}
.studentAnswerBadge{
  order:1;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:44px;
  height:44px;
  border-radius:14px;
  background:rgba(255,255,255,.08);
  border:1px solid rgba(255,255,255,.12);
  font-weight:900;
  color:rgba(234,242,255,.95);
}
.studentQuestionHead{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:10px;
  margin-bottom:10px;
  flex-wrap:wrap;
}
.studentQuestionNo{
  font-size:17px;
  font-weight:900;
}
.studentQuestionType{
  font-size:12px;
  padding:6px 10px;
  border-radius:999px;
  background:rgba(56,189,248,.12);
  border:1px solid rgba(56,189,248,.24);
  color:rgba(191,227,255,.92);
}
.studentBlankInput{
  min-height:52px;
}
.contentWizardNav{
  flex-wrap:wrap;
}
.composerHead{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom:10px;
  flex-wrap:wrap;
}
.composerHead .authSubmit{
  white-space:nowrap;
}
@media (max-width: 1180px){
  .adminTextsWideForm{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 760px){
  .adminTextsWideForm{
    grid-template-columns: 1fr;
  }
}
.surveyQuestionList{
  display:flex;
  flex-direction:column;
  gap:12px;
}
.surveySectionBlock{
  display:flex;
  flex-direction:column;
  gap:10px;
}
.surveySectionTitle{
  font-weight:900;
  font-size:15px;
  color:#fff;
}
.surveyQuestionCard{
  padding:14px;
  border-radius:18px;
  background: rgba(255,255,255,.045);
  border:1px solid rgba(255,255,255,.10);
}
.surveyQuestionHead{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:10px;
  flex-wrap:wrap;
  margin-bottom:10px;
}
.surveyQuestionTitle{
  font-weight:800;
  color:#fff;
  line-height:1.4;
}
.surveyQuestionHint{
  color:rgba(234,242,255,.72);
  font-size:12px;
}
.surveyScale{
  display:grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap:8px;
}
.surveyScaleOpt{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:6px;
  min-height:74px;
  padding:10px 8px;
  border-radius:16px;
  background: rgba(255,255,255,.04);
  border:1px solid rgba(255,255,255,.10);
  cursor:pointer;
  transition: transform .16s ease, background .16s ease, border-color .16s ease, box-shadow .16s ease;
  text-align:center;
}
.surveyScaleOpt:hover{
  transform:translateY(-1px);
  background: rgba(255,255,255,.06);
}
.surveyScaleOpt input{
  display:none;
}
.surveyScaleOpt b{
  font-size:18px;
  line-height:1;
}
.surveyScaleOpt span{
  font-size:11px;
  color:rgba(234,242,255,.76);
  line-height:1.25;
}
.surveyScaleOpt.active{
  background: linear-gradient(135deg, rgba(56,189,248,.24), rgba(34,197,94,.16));
  border-color: rgba(56,189,248,.42);
  box-shadow: 0 12px 28px rgba(14,165,233,.14);
}
.surveyInsightCard{
  padding:14px;
  border-radius:18px;
  background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.03));
  border:1px solid rgba(255,255,255,.10);
  color:rgba(234,242,255,.90);
}
.surveyInsightTop{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
  flex-wrap:wrap;
  margin-bottom:10px;
}
.surveyToneTag{
  display:inline-flex;
  align-items:center;
  padding:7px 10px;
  border-radius:999px;
  background: rgba(56,189,248,.14);
  border:1px solid rgba(56,189,248,.26);
  color:#dff4ff;
  font-size:12px;
  font-weight:900;
}
.surveyDimensionList{
  display:grid;
  gap:8px;
}
.surveyDimensionRow{
  display:grid;
  grid-template-columns: minmax(130px, 180px) minmax(0,1fr) auto;
  gap:10px;
  align-items:center;
}
.surveyDimensionLabel{
  color:rgba(234,242,255,.84);
  font-size:12px;
  font-weight:800;
}
.surveyDimensionTrack{
  position:relative;
  height:10px;
  border-radius:999px;
  overflow:hidden;
  background: rgba(255,255,255,.07);
  border:1px solid rgba(255,255,255,.08);
}
.surveyDimensionFill{
  height:100%;
  border-radius:999px;
  background: linear-gradient(90deg, rgba(56,189,248,.90), rgba(34,197,94,.80));
}
.surveyDimensionNorm{
  position:absolute;
  top:-2px;
  bottom:-2px;
  width:0;
  border-left:2px dashed rgba(255,255,255,.92);
  pointer-events:none;
  opacity:.95;
}
.surveyDimensionValue{
  font-size:12px;
  font-weight:900;
  color:#fff;
}
.surveyHistoryRow{
  display:grid;
  gap:6px;
  padding:10px 12px;
  border-radius:14px;
  background: rgba(255,255,255,.04);
  border:1px solid rgba(255,255,255,.08);
}
.surveyCompareUp{ color:#8ff0b2; font-weight:800; }
.surveyCompareDown{ color:#ffd0d0; font-weight:800; }
.surveyCompareFlat{ color:#dce8ff; font-weight:800; }
@media (max-width: 760px){
  .surveyScale{
    grid-template-columns: 1fr;
  }
  .surveyScaleOpt{
    min-height:62px;
    flex-direction:row;
    justify-content:space-between;
  }
  .surveyDimensionRow{
    grid-template-columns: 1fr;
  }
}

#signupWizard .surveyQuestionList{
  gap:6px;
}
#signupWizard .surveySectionBlock{
  gap:6px;
}
#signupWizard .surveyQuestionCard{
  padding:8px 10px;
  border-radius:12px;
}
#signupWizard .surveyQuestionTitle{
  font-size:14px;
  line-height:1.35;
}
#signupWizard .surveyQuestionHint{
  font-size:10px;
}
#signupWizard .surveyScale{
  grid-template-columns: repeat(5, minmax(44px, 56px));
  justify-content:space-between;
  gap:6px;
}
#signupWizard .surveyScaleOpt{
  min-height:38px;
  min-width:0;
  padding:2px 4px;
  border-radius:10px;
  gap:0;
}
#signupWizard .surveyScaleOpt b{
  font-size:14px;
}
#signupWizard .surveyScaleOpt span{
  display:none;
}
.teacherSurveyGrid{
  grid-template-columns: minmax(560px, 1.35fr) minmax(440px, .95fr);
  align-items:start;
}
.teacherAssessmentGrid{
  grid-template-columns: minmax(420px, 1fr) minmax(420px, 1fr);
  align-items:start;
}
.teacherAssessmentTopGrid{
  display:grid;
  grid-template-columns: minmax(520px, 1.25fr) minmax(340px, .75fr);
  gap:12px;
  align-items:start;
}
.teacherAssessmentStudentGrid{
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap:10px;
}
.teacherAssessmentSourceGrid{
  display:grid;
  grid-template-columns: minmax(300px, .95fr) minmax(340px, 1.05fr);
  gap:12px;
  align-items:end;
}
.teacherAssessmentWideForm{
  display:grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap:12px;
}
.teacherAssessmentSurveyChoiceGrid{
  display:grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap:12px;
}
.teacherAssessmentWizardCard{
  min-width:0;
}
.teacherAssessmentStepPane{
  display:block;
}
.teacherAssessmentStepPane.hidden{
  display:none !important;
}
.teacherAssessmentWizardNav{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  align-items:center;
  margin-top:16px;
}
.teacherAssessmentModuleGrid{
  display:grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap:12px;
}
.teacherAssessmentModeRow{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
}
.teacherAssessmentLookupRow{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:8px;
}
.teacherAssessmentModeBtn{
  margin-top:0;
  padding:10px 12px;
}
.teacherAssessmentModeBtnActive{
  background:rgba(56,189,248,.18);
  border:1px solid rgba(56,189,248,.35);
  color:#eaf2ff;
}
.teacherAssessmentToggleList{
  display:flex;
  flex-direction:column;
  gap:10px;
}
.teacherAssessmentToggle{
  display:flex;
  align-items:center;
  gap:10px;
  padding:12px 14px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.12);
  background:rgba(255,255,255,.04);
  color:#eaf2ff;
  cursor:pointer;
}
.teacherAssessmentToggle input{
  width:16px;
  height:16px;
}
.teacherAssessmentInfoRow{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}
.teacherAssessmentInfoPill{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:8px 10px;
  border-radius:999px;
  background:rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.10);
  color:#eaf2ff;
  font-size:12px;
}
.teacherAssessmentSurveyWrap{
  padding:14px;
  border-radius:18px;
  border:1px solid rgba(255,255,255,.10);
  background:rgba(255,255,255,.03);
}
.teacherAssessmentSurveyWrap.hidden{
  display:none !important;
}
.teacherAssessmentSurveyWrap .surveySectionBlock{
  background:rgba(255,255,255,.03);
}
.teacherAssessmentModuleList{
  display:grid;
  gap:10px;
}
.teacherAssessmentModuleItem{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:12px;
  align-items:start;
  padding:14px 15px;
  border-radius:16px;
  border:1px solid rgba(255,255,255,.10);
  background:rgba(255,255,255,.04);
  cursor:pointer;
  transition:transform .18s ease, border-color .18s ease, background .18s ease, box-shadow .18s ease;
}
.teacherAssessmentModuleItem:hover{
  transform:translateY(-1px);
  border-color:rgba(56,189,248,.24);
  background:rgba(56,189,248,.08);
}
.teacherAssessmentModuleItem.is-selected{
  border-color:rgba(34,197,94,.34);
  background:rgba(34,197,94,.12);
  box-shadow:0 10px 22px rgba(34,197,94,.10);
}
.teacherAssessmentModuleItem.is-fixed{
  cursor:default;
}
.teacherAssessmentModuleItem.is-fixed:hover{
  transform:none;
  border-color:rgba(255,255,255,.10);
  background:rgba(255,255,255,.04);
}
.teacherAssessmentModuleItem.is-fixed.is-selected:hover{
  border-color:rgba(34,197,94,.34);
  background:rgba(34,197,94,.12);
}
.teacherAssessmentModuleItem b{
  color:#fff;
}
.teacherAssessmentModuleItem span{
  color:rgba(234,242,255,.76);
  font-size:12px;
}
.teacherAssessmentModuleMeta{
  display:grid;
  gap:6px;
}
.teacherAssessmentModuleExtra{
  grid-column:1 / -1;
  margin-top:4px;
  padding:12px 13px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.10);
  background:rgba(7,18,34,.34);
}
.teacherAssessmentModuleNoteRow{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:10px;
  flex-wrap:wrap;
}
.teacherAssessmentReadingPickerGrid{
  display:grid;
  grid-template-columns:repeat(2, minmax(0, 1fr));
  gap:10px;
  margin-top:12px;
}
.teacherAssessmentReadingPicker{
  display:grid;
  gap:8px;
}
.teacherAssessmentReadingPicker span{
  color:#fff;
  font-size:12px;
  font-weight:800;
}
.teacherAssessmentReadingPicker .authInput{
  width:100%;
}
.teacherAssessmentPoolUpload{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  flex-wrap:wrap;
  margin-top:10px;
}
.teacherAssessmentPoolUploadBtn{
  cursor:pointer;
  user-select:none;
}
.teacherAssessmentModuleGroup{
  display:inline-flex;
  align-items:center;
  width:max-content;
  padding:5px 9px;
  border-radius:999px;
  background:rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.10);
  color:rgba(234,242,255,.78);
  font-size:11px;
  font-weight:800;
}
.teacherAssessmentModuleState{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:112px;
  padding:8px 10px;
  border-radius:999px;
  background:rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.12);
  color:#eaf2ff;
  font-size:12px;
  font-weight:900;
  white-space:nowrap;
}
.teacherAssessmentModuleState.tone-good{
  background:rgba(34,197,94,.18);
  border-color:rgba(34,197,94,.32);
  color:#dcfce7;
}
.teacherAssessmentModuleState.tone-info{
  background:rgba(56,189,248,.14);
  border-color:rgba(56,189,248,.28);
  color:#d9f3ff;
}
.teacherAssessmentModuleState.tone-warn{
  background:rgba(245,158,11,.16);
  border-color:rgba(245,158,11,.28);
  color:#fde68a;
}
.teacherAssessmentModuleState.tone-risk{
  background:rgba(239,68,68,.16);
  border-color:rgba(239,68,68,.28);
  color:#ffe4e6;
}
.teacherAssessmentActionCard{
  margin-top:12px;
  padding:12px 14px;
  border-radius:16px;
  border:1px solid rgba(56,189,248,.18);
  background:rgba(56,189,248,.08);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  flex-wrap:wrap;
}
.teacherAssessmentActionTitle{
  font-weight:900;
  color:#fff;
}
.teacherAssessmentActionRow{
  display:flex;
  align-items:center;
  gap:8px;
  flex-wrap:wrap;
}
.teacherAssessmentActionRow .authSubmit{
  margin-top:0;
}
.teacherAssessmentListRow{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
  padding:12px 14px;
  border-radius:16px;
  border:1px solid rgba(255,255,255,.10);
  background:rgba(255,255,255,.04);
}
.teacherAssessmentListMeta{
  display:grid;
  justify-items:end;
  gap:8px;
}
.teacherAssessmentListActions{
  display:flex;
  flex-wrap:wrap;
  justify-content:flex-end;
  gap:8px;
}
.teacherAssessmentListActionBlock{
  display:grid;
  gap:4px;
  justify-items:end;
}
.teacherAssessmentListBtn{
  margin-top:0;
}
.teacherAssessmentResumeHint{
  font-size:11px;
  color:rgba(234,242,255,.68);
  text-align:right;
}
.teacherAssessmentReportCard{
  width:min(1080px, calc(100vw - 32px));
}
.teacherAssessmentReportBody{
  display:grid;
  gap:14px;
  max-height:min(72vh, 760px);
  overflow:auto;
  overflow-x:hidden;
}
.teacherAssessmentReportStats{
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(160px, 1fr));
  gap:10px;
}
.teacherAssessmentReportStat{
  padding:12px 14px;
  border-radius:16px;
  border:1px solid rgba(255,255,255,.10);
  background:rgba(255,255,255,.04);
  display:grid;
  gap:6px;
}
.teacherAssessmentReportStat b{
  color:#fff;
  font-size:22px;
  line-height:1.1;
}
.teacherAssessmentReportStatLabel{
  font-size:11px;
  letter-spacing:.04em;
  text-transform:uppercase;
  color:rgba(234,242,255,.64);
}
.teacherAssessmentReportSplit{
  display:grid;
  grid-template-columns:repeat(2, minmax(0, 1fr));
  gap:12px;
}
.teacherSurveySideStack{
  display:grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap:12px;
}
.teacherSurveyGrid .adminCard{
  min-width:0;
}
#teacherSurveyProfileSummary{
  padding:12px;
}
#teacherSurveyProfileSummary .surveyInsightTop{
  gap:8px;
}
#teacherSurveyProfileSummary .surveyInsightTop > div > div:first-child{
  font-size:18px;
}
#teacherSurveyProfileSummary .adminTiny{
  font-size:12px;
}
#teacherSurveyProfileSummary .surveyDimensionList{
  display:grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap:8px 12px;
}
#teacherSurveyProfileSummary .surveyDimensionRow{
  grid-template-columns: 1fr;
  gap:6px;
  padding:8px 10px;
  border-radius:12px;
  background:rgba(255,255,255,.04);
}
#teacherSurveyProfileSummary .surveyDimensionLabel{
  font-size:11px;
}
#teacherSurveyProfileSummary .surveyDimensionValue{
  font-size:12px;
}
.teacherSurveyGrid #teacherSurveyBuilder{
  display:block;
}
.teacherSurveyGrid #teacherSurveyBuilder .surveySectionBlock{
  gap:12px;
}
.teacherSurveyGrid #teacherSurveyBuilder .surveyQuestionList{
  display:grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap:12px;
}
.teacherSurveyGrid #teacherSurveyBuilder .surveyQuestionCard{
  padding:12px;
  border-radius:16px;
}
.teacherSurveyGrid #teacherSurveyBuilder .surveyQuestionTitle{
  font-size:15px;
  line-height:1.35;
}
.teacherSurveyGrid #teacherSurveyBuilder .surveyQuestionHint{
  font-size:11px;
}
.teacherSurveyGrid #teacherSurveyBuilder .surveyScale{
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap:6px;
}
.teacherSurveyGrid #teacherSurveyBuilder .surveyScaleOpt{
  min-height:54px;
  padding:6px 4px;
  border-radius:12px;
}
.teacherSurveyGrid #teacherSurveyBuilder .surveyScaleOpt span{
  display:none;
}
.teacherSurveyGrid #teacherSurveyBuilder .surveyScaleOpt b{
  font-size:18px;
}
.teacherSurveySideStack .teacherStudentDetailSection{
  min-width:0;
}
.teacherSurveySideStack .adminList{
  margin-top:0;
}
.teacherSurveySideStack .surveyHistoryRow{
  padding:8px 10px;
  border-radius:12px;
  background:rgba(255,255,255,.04);
  border:1px solid rgba(255,255,255,.08);
}
.teacherSurveySideStack .adminTiny{
  font-size:12px;
}
.teacherSurveyCompareCard{
  display:flex;
  flex-direction:column;
  gap:10px;
}
.teacherSurveyCompareTop{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  flex-wrap:wrap;
}
.teacherSurveyCompareMeter{
  position:relative;
  height:12px;
  border-radius:999px;
  background:rgba(255,255,255,.08);
  overflow:hidden;
}
.teacherSurveyCompareMeter > span{
  position:absolute;
  inset:0 auto 0 0;
  border-radius:999px;
  background:linear-gradient(90deg, rgba(56,189,248,.85), rgba(34,197,94,.85));
}
.teacherSurveyCompareRows{
  display:flex;
  flex-direction:column;
  gap:8px;
}
.teacherSurveyCompareRow{
  display:grid;
  grid-template-columns: minmax(110px, 140px) minmax(0,1fr) auto auto;
  gap:10px;
  align-items:center;
}
.teacherSurveyCompareBar{
  position:relative;
  height:10px;
  border-radius:999px;
  background:rgba(255,255,255,.08);
  overflow:hidden;
}
.teacherSurveyCompareBar span{
  position:absolute;
  top:0;
  bottom:0;
  border-radius:999px;
}
.teacherSurveyCompareBar .parentBar{
  left:0;
  background:rgba(244,114,182,.9);
}
.teacherSurveyCompareBar .teacherBar{
  left:0;
  background:rgba(56,189,248,.92);
  opacity:.72;
}
.teacherSurveyCompareLegend{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  color:rgba(234,242,255,.78);
  font-size:12px;
}
.teacherSurveyCompareLegend span::before{
  content:'';
  display:inline-block;
  width:10px;
  height:10px;
  border-radius:999px;
  margin-right:6px;
  vertical-align:-1px;
}
.teacherSurveyCompareLegend .parentLegend::before{ background:rgba(244,114,182,.9); }
.teacherSurveyCompareLegend .teacherLegend::before{ background:rgba(56,189,248,.92); }
.teacherSurveyStageCard{
  display:flex;
  flex-direction:column;
  gap:12px;
}
.teacherSurveyStageMeta{
  display:flex;
  justify-content:space-between;
  gap:10px;
  align-items:center;
  flex-wrap:wrap;
}
.teacherSurveyStageMeta b{
  font-size:18px;
  color:#fff;
}
.teacherProfileActions .authSubmit{
  margin-top:0;
}
.teacherProfileSurveyMeta{
  justify-content:space-between;
}
#teacherProfilesList{
  display:grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap:12px;
}
.teacherProfileCard .surveyInsightCard{
  min-width:0;
}
.teacherProfileCard .teacherStudentDetailSplit{
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (max-width: 1180px){
  .teacherSurveyGrid{
    grid-template-columns:1fr;
  }
  .teacherSurveySideStack{
    grid-template-columns:1fr;
  }
  #teacherProfilesList{
    grid-template-columns:1fr;
  }
  #teacherClassesList,
  #teacherTextsList{
    grid-template-columns:1fr;
  }
}
@media (max-width: 720px){
  .teacherSurveyCompareRow{
    grid-template-columns:1fr;
  }
  .teacherSurveyGrid #teacherSurveyBuilder .surveyQuestionList{
    grid-template-columns:1fr;
  }
  .teacherProfileCard .teacherStudentDetailSplit{
    grid-template-columns:1fr;
  }
}
.teacherProfileCard{
  display:flex;
  flex-direction:column;
  gap:12px;
}
.teacherProfileTop{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
  flex-wrap:wrap;
}
.teacherProfileTitle{
  font-size:18px;
  font-weight:900;
  color:#fff;
}
.teacherProfileMeta{
  margin-top:4px;
  color:rgba(234,242,255,.72);
  font-size:13px;
}
.teacherProfileActions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}
.teacherProfileSurveyMeta{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  align-items:center;
}
.studentLibraryOpenLoading{
  position:fixed;
  inset:0;
  z-index:12000;
  display:flex;
  align-items:center;
  justify-content:center;
  background:rgba(3,11,22,.52);
  backdrop-filter:blur(10px);
}
.studentLibraryOpenLoadingCard{
  min-width:280px;
  max-width:420px;
  padding:22px 24px;
  border-radius:22px;
  background:linear-gradient(180deg, rgba(8,20,35,.94), rgba(10,26,44,.92));
  border:1px solid rgba(255,255,255,.12);
  box-shadow:0 24px 60px rgba(0,0,0,.28);
  text-align:center;
}
.studentLibraryOpenLoadingSpinner{
  width:40px;
  height:40px;
  margin:0 auto 14px;
  border-radius:50%;
  border:4px solid rgba(255,255,255,.14);
  border-top-color:rgba(56,189,248,.95);
  animation:studentLoadingSpin .9s linear infinite;
}
.studentLibraryOpenLoadingText{
  color:#fff;
  font-weight:800;
  line-height:1.4;
}
@keyframes studentLoadingSpin{
  to{ transform:rotate(360deg); }
}
.studentLibraryReaderBody::-webkit-scrollbar,
.studentLibraryQuestionsWrap::-webkit-scrollbar{
  width:10px;
}
.studentLibraryReaderBody::-webkit-scrollbar-track,
.studentLibraryQuestionsWrap::-webkit-scrollbar-track{
  background:rgba(255,255,255,.04);
  border-radius:999px;
}
.studentLibraryReaderBody::-webkit-scrollbar-thumb,
.studentLibraryQuestionsWrap::-webkit-scrollbar-thumb{
  background:linear-gradient(180deg, rgba(56,189,248,.72), rgba(34,197,94,.48));
  border-radius:999px;
  border:2px solid rgba(8,18,30,.55);
}
.studentLibraryReaderBody::-webkit-scrollbar-thumb:hover,
.studentLibraryQuestionsWrap::-webkit-scrollbar-thumb:hover{
  background:linear-gradient(180deg, rgba(56,189,248,.9), rgba(34,197,94,.62));
}
.questionBuilder{
  display:flex;
  flex-direction:column;
  gap:10px;
}
.questionCard{
  padding:12px;
  border-radius:16px;
  background: rgba(255,255,255,.05);
  border:1px solid rgba(255,255,255,.10);
}
.questionCardHead{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin-bottom:10px;
  flex-wrap:wrap;
}
.questionGrid{
  display:grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap:10px;
}
.libraryPdfFrame{
  width:100%;
  min-height:520px;
  height:62vh;
  border:none;
  border-radius:18px;
  background:#ffffff;
}
@media (max-width: 760px){
  .questionGrid{ grid-template-columns: 1fr; }
  .studentLibraryReaderTitle{ font-size:24px; }
  .studentLibraryReaderBody{ font-size:16px; }
  .libraryTaskResultGuideRow{ grid-template-columns:1fr; }
  .libraryTaskResultGuideImg{ width:68px; height:68px; }
  .libraryTaskResultStat{ width:100%; justify-content:flex-start; }
  .libraryPdfFrame{ min-height:420px; height:56vh; }
}
.previewTaskMeta{
  padding:10px 12px;
  border-radius:14px;
  background: rgba(255,255,255,.05);
  border:1px solid rgba(255,255,255,.08);
  color: rgba(234,242,255,.88);
}
#libraryPreviewModal,
#libraryTaskResultModal,
#teacherStudentDetailModal,
#teacherTaskDetailModal,
#teacherAssessmentReportModal,
#studentInsightReviewConfirmModal{
  position:fixed;
  inset:0;
  z-index:10001;
}
#libraryPreviewModal.hidden,
#libraryTaskResultModal.hidden,
#teacherStudentDetailModal.hidden,
#teacherTaskDetailModal.hidden,
#teacherAssessmentReportModal.hidden,
#studentInsightReviewConfirmModal.hidden{
  display:none !important;
  pointer-events:none !important;
}
#libraryPreviewModal[aria-hidden="true"],
#libraryTaskResultModal[aria-hidden="true"],
#teacherStudentDetailModal[aria-hidden="true"],
#teacherTaskDetailModal[aria-hidden="true"],
#teacherAssessmentReportModal[aria-hidden="true"],
#studentInsightReviewConfirmModal[aria-hidden="true"]{
  display:none !important;
  pointer-events:none !important;
  visibility:hidden !important;
}
.previewCard{
  position:absolute;
  left:50%;
  top:50%;
  transform:translate(-50%, -50%);
  width:min(860px, calc(100vw - 32px));
  max-height:calc(100vh - 48px);
  display:flex;
  flex-direction:column;
  background: rgba(12,24,36,.96);
  border:1px solid rgba(255,255,255,.12);
  border-radius:20px;
  box-shadow:0 20px 70px rgba(0,0,0,.5);
  overflow:hidden;
}
.libraryTaskResultCard{
  width:min(720px, calc(100vw - 32px));
}
.libraryTaskResultTop{
  flex:1 1 auto;
  text-align:center;
}
.libraryTaskResultGuideImg{
  width:84px;
  height:84px;
  object-fit:contain;
  flex:0 0 auto;
  filter:drop-shadow(0 10px 20px rgba(15,23,42,.24));
}
.libraryTaskResultMainTitle{
  margin-top:4px;
}
.libraryTaskResultSubTitle{
  margin-top:6px !important;
}
.libraryTaskResultBody{
  display:grid;
  gap:14px;
  max-height:min(62vh, 560px);
  overflow:auto;
  overflow-x:hidden;
}
.libraryTaskResultGuideRow{
  display:grid;
  grid-template-columns:64px 1fr;
  gap:12px;
  align-items:center;
}
.libraryTaskResultStats{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}
.libraryTaskResultStat{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:10px 14px;
  border-radius:999px;
  background:rgba(15,23,42,.42);
  border:1px solid rgba(255,255,255,.08);
  color:#eff6ff;
  font-weight:800;
  font-size:14px;
}
.libraryTaskResultStat.tone-gold{ border-color:rgba(250,204,21,.18); color:#fde68a; }
.libraryTaskResultStat.tone-green{ border-color:rgba(34,197,94,.18); color:#bbf7d0; }
.libraryTaskResultStat.tone-blue{ border-color:rgba(56,189,248,.18); color:#bae6fd; }
.libraryTaskResultGuideNote{
  padding:12px 14px;
  border-radius:16px;
  background:linear-gradient(180deg, rgba(56,189,248,.12), rgba(20,184,166,.08));
  border:1px solid rgba(125,211,252,.18);
  color:#dbeafe;
  line-height:1.55;
}
.libraryTaskResultSectionTitle{
  font-weight:900;
  font-size:18px;
  color:#f8fbff;
  margin-bottom:8px;
}
.libraryTaskResultErrors{
  display:grid;
  gap:10px;
}
.libraryTaskResultErrorRow{
  padding:12px 14px;
  border-radius:16px;
  background:rgba(239,68,68,.08);
  border:1px solid rgba(239,68,68,.14);
}
.libraryTaskResultErrorNo{
  color:#fda4af;
  font-weight:900;
  font-size:13px;
}
.libraryTaskResultErrorText{
  margin-top:4px;
  color:#f8fbff;
  font-weight:700;
  line-height:1.45;
}
.libraryTaskResultErrorMeta{
  margin-top:6px;
  color:#cbd5e1;
  font-size:13px;
}
.libraryTaskResultPerfect{
  padding:12px 14px;
  border-radius:16px;
  background:rgba(34,197,94,.12);
  border:1px solid rgba(34,197,94,.18);
  color:#dcfce7;
  font-weight:800;
}
.previewTop{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
  padding:16px 18px;
  border-bottom:1px solid rgba(255,255,255,.10);
}
.previewBody{
  padding:16px 18px;
  overflow:auto;
  overflow-x:hidden;
}
.previewFoot{
  padding:14px 18px;
  border-top:1px solid rgba(255,255,255,.10);
  display:flex;
  justify-content:flex-end;
}
#libraryReadingPrepOverlay{
  position:fixed;
  inset:0;
  z-index:10002;
  display:flex;
  align-items:center;
  justify-content:center;
}
#libraryReadingPrepOverlay .prepCard{
  position:relative;
  width:min(92vw, 420px);
  padding:24px 24px 20px;
  border-radius:26px;
  background:linear-gradient(180deg, rgba(7,16,28,.96), rgba(10,24,40,.94));
  border:1px solid rgba(255,255,255,.12);
  box-shadow:0 24px 60px rgba(0,0,0,.30);
  text-align:center;
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:10px;
}
#libraryReadingPrepOverlay .prepTitle{
  font-size:22px;
  font-weight:900;
  color:#fff;
}
#libraryReadingPrepOverlay .prepSub{
  color:rgba(234,242,255,.84);
  line-height:1.5;
  font-size:15px;
}
#libraryReadingPrepOverlay .prepBreath{
  color:rgba(255,255,255,.96);
  font-weight:900;
  font-size:16px;
  margin-top:2px;
}
#libraryReadingPrepOverlay.hidden{
  display:none !important;
  pointer-events:none !important;
}
.libraryPrepShade{
  position:absolute;
  inset:0;
  background:rgba(0,0,0,.34);
  backdrop-filter:blur(8px);
}
#adminTextsList,
#teacherTextsList,
#teacherClassesList,
#teacherTrackingList,
#adminTeachersList{
  min-width:0;
}
#adminTextsList .adminRow,
#teacherTextsList .adminRow,
#teacherClassesList .adminRow,
#teacherTrackingList .adminRow,
#adminTeachersList .adminRow{
  min-width:0;
  overflow:hidden;
}
#adminTextsList .adminTiny,
#teacherTextsList .adminTiny,
#teacherClassesList .adminTiny,
#teacherTrackingList .adminTiny,
#adminTeachersList .adminTiny{
  overflow-wrap:anywhere;
}

.adminTopbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:14px 16px;
  border-bottom:1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.18);
  backdrop-filter: blur(10px);
}
.adminBrand{
  display:flex; align-items:center; gap:10px;
  font-weight:900; letter-spacing:.4px;
}
.adminBadge{
  font-size:12px;
  padding:6px 10px;
  border-radius:999px;
  background: rgba(245,158,11,.16);
  border: 1px solid rgba(245,158,11,.28);
  color: rgba(255,231,185,.95);
}
.adminLogout{
  border:none;
  border-radius:12px;
  padding:10px 12px;
  cursor:pointer;
  background: rgba(255,255,255,.08);
  border:1px solid rgba(255,255,255,.14);
  color:#fff;
  font-weight:800;
}
.adminLogout:hover{ background: rgba(255,255,255,.12); transform: translateY(-1px); }

.adminMain{
  flex:1 1 auto;
  display:grid;
  grid-template-columns: 260px 1fr;
  min-height:0;
}
.adminSide{
  padding:12px;
  border-right:1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.16);
  min-height:0;
  overflow:auto;
}
.adminNavItem{
  position:relative;
  width:100%;
  text-align:left;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding:10px 44px 10px 12px;
  margin:0 0 8px;
  border-radius:14px;
  cursor:pointer;
  color: rgba(234,242,255,.92);
  background: rgba(255,255,255,.05);
  border:1px solid rgba(255,255,255,.10);
}
.adminNavItem:hover{ background: rgba(255,255,255,.08); transform: translateY(-1px); }
.adminNavItem.active{
  background: rgba(56,189,248,.14);
  border-color: rgba(56,189,248,.26);
}
.adminContent{
  padding:16px;
  min-height:0;
  overflow:auto;
}
.adminH1{ font-size:20px; font-weight:900; margin:0 0 10px; }
.adminMuted{ color: rgba(234,242,255,.72); font-size:13px; }
.adminGrid{
  display:grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap:12px;
  margin-top:14px;
}
@media (max-width: 1100px){
  .adminMain{ grid-template-columns: 220px 1fr; }
  .adminGrid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .teacherTrackingToolbar{ grid-template-columns:1fr; }
  .teacherTrackingStudentCard{ grid-template-columns:1fr; }
  .teacherStudentDetailSplit{ grid-template-columns:1fr; }
  .teacherAssessmentReportSplit{ grid-template-columns:1fr; }
}
@media (max-width: 760px){
  .adminMain{ grid-template-columns: 1fr; }
  .adminSide{ display:none; }
  .adminGrid{ grid-template-columns: 1fr; }
}
.adminCard{
  background: rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.12);
  border-radius:18px;
  padding:14px 14px;
  box-shadow: 0 18px 50px rgba(0,0,0,.35);
  min-width:0;
  overflow:hidden;
}
.adminStatLabel{ font-size:12px; color: rgba(234,242,255,.74); }
.adminStatValue{ font-size:26px; font-weight:900; margin-top:6px; }
.adminList{
  margin-top:12px;
  display:flex;
  flex-direction:column;
  gap:10px;
}
.adminRow{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding:10px 12px;
  border-radius:14px;
  background: rgba(255,255,255,.05);
  border:1px solid rgba(255,255,255,.10);
}
.adminRow b{ font-weight:900; }

/* Teacher screen layout overrides: keep these after generic .adminGrid rules */
#teacherScreen_classes .adminGrid.adminGrid2,
#teacherScreen_library .adminGrid.adminGrid2{
  grid-template-columns: minmax(430px, .95fr) minmax(620px, 1.25fr);
  align-items:start;
}
#teacherScreen_surveys .adminGrid.teacherSurveyGrid{
  grid-template-columns: minmax(560px, 1.35fr) minmax(440px, .95fr);
  align-items:start;
}
#teacherScreen_classes #teacherClassesList,
#teacherScreen_library #teacherTextsList{
  display:grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap:12px;
  align-items:start;
}
#teacherScreen_classes .teacherClassCard .adminList{
  display:grid;
  grid-template-columns:1fr;
  gap:10px;
}
#teacherScreen_classes .teacherStudentRow{
  display:flex;
  flex-direction:column;
  align-items:stretch;
  gap:10px;
}
#teacherScreen_classes .teacherStudentMeta{
  min-width:0;
}
#teacherScreen_classes .teacherStudentActions{
  max-width:none;
  width:100%;
  flex-wrap:wrap;
  align-items:center;
  justify-content:flex-start;
  margin-top:0;
}
#teacherScreen_classes .miniSelect{
  min-width:110px;
  max-width:140px;
}
#teacherScreen_classes .teacherStudentMeta b{
  display:block;
  overflow-wrap:normal;
  word-break:normal;
  line-height:1.2;
  font-size:16px;
}
#teacherScreen_classes .teacherStudentMeta .adminTiny{
  overflow-wrap:normal;
  word-break:normal;
}
@media (max-width: 1180px){
  #teacherScreen_classes .adminGrid.adminGrid2,
  #teacherScreen_library .adminGrid.adminGrid2,
  #teacherScreen_surveys .adminGrid.teacherSurveyGrid{
    grid-template-columns:1fr;
  }
  #teacherScreen_classes #teacherClassesList,
  #teacherScreen_library #teacherTextsList{
    grid-template-columns:1fr;
  }
}
.adminTiny{ font-size:12px; color: rgba(234,242,255,.70); }
