/* 대피 훈련 화면: 학생(대기·발령·도착)과 선생님(발령·반별 명단) */

/* ---------- 학생 ---------- */
.drill-page {
  max-width: 480px; margin: 0 auto; padding: 24px 16px;
  min-height: calc(100vh - 56px); display: flex; flex-direction: column;
}
.drill-state { text-align: center; margin: auto 0; }
.big-emoji { font-size: 76px; }
.big-emoji.warn { animation: shake 0.5s infinite; }
.warn-text { color: var(--danger); }
.drill-state h2 { font-size: 27px; margin: 10px 0; letter-spacing: -0.5px; }
.pulse-dot { margin-top: 20px; color: var(--muted); font-size: 14px; animation: pulse 1.4s infinite; }
.arrive-big {
  width: 100%; padding: 24px; margin-top: 26px; border: 0; border-radius: var(--r-lg);
  background: var(--safe); color: #fff; font-size: 23px; font-weight: 800;
  box-shadow: 0 8px 20px rgba(30, 142, 78, 0.4);
}
/* 발령 중에는 화면 전체에 긴급 느낌 */
body.drill-alert { background: var(--danger-soft); }

/* ---------- 선생님 ---------- */
.drill-page.teacher { display: block; }
.drill-control { text-align: center; margin-bottom: 18px; }
.end-big {
  width: 100%; padding: 18px; border: 0; border-radius: var(--r-md);
  background: var(--danger); color: #fff; font-size: 18px; font-weight: 800;
}
.summary { display: flex; gap: 10px; margin-bottom: 18px; }
.stat {
  flex: 1; background: #fff; border: 1px solid var(--line);
  border-radius: var(--r-md); padding: 16px 8px; text-align: center; box-shadow: var(--shadow-sm);
}
.stat strong { display: block; font-size: 28px; }
.stat:nth-child(1) strong { color: var(--safe); }
.stat:nth-child(2) strong { color: var(--danger); }
.stat:nth-child(3) strong { color: var(--blue); }
.stat span { font-size: 13px; color: var(--muted); font-weight: 600; }
.roster section { margin-bottom: 18px; }
.roster-title { font-size: 16px; margin: 0 0 8px; }
.roster-title.arrived { color: var(--safe); }
.roster-title.pending { color: var(--danger); }
.class-group {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 13px; margin-bottom: 8px; box-shadow: var(--shadow-sm);
}
.class-head { font-weight: 800; margin-bottom: 9px; font-size: 15px; }
.class-head em { color: var(--muted); font-style: normal; font-size: 13px; font-weight: 600; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.student-chip { padding: 6px 11px; border-radius: 999px; font-size: 13px; font-weight: 700; }
.student-chip.arrived { background: var(--safe-soft); color: var(--safe); }
.student-chip.pending { background: var(--danger-soft); color: var(--danger); }

/* 선생님 화면의 학생 비상 알림 목록 */
.emer-list { display: flex; flex-direction: column; gap: 10px; }
