
/* ── Students panel (Task #78 — per-student CSV export) ─────────
   Therapist roster + per-student tap log + IEP-data CSV export.
   Modal overlay; locks scroll while open. PILOT badge in header
   reminds therapist this is local-only until Stage 2 ships. */
.students-overlay{position:fixed;inset:0;background:rgba(20,20,20,0.55);
  z-index:9000;display:flex;align-items:center;justify-content:center;
  padding:1rem;overflow:auto}
.students-card{background:#fff;border-radius:14px;box-shadow:0 18px 60px rgba(0,0,0,0.3);
  width:100%;max-width:780px;max-height:92vh;display:flex;flex-direction:column;
  overflow:hidden}
.students-header{display:flex;align-items:center;justify-content:space-between;
  padding:1rem 1.25rem;border-bottom:1px solid #ECECEC;background:#FAF7F1}
.students-title{font-size:1.05rem;font-weight:700;color:#23211D}
.students-pilot-badge{display:inline-block;margin-left:0.4rem;padding:0.1rem 0.5rem;
  border-radius:999px;background:#FEEEC8;color:#7A4A00;font-size:0.65rem;
  font-weight:700;letter-spacing:0.04em;vertical-align:middle}
.students-close{background:transparent;border:0;font-size:1.6rem;line-height:1;
  cursor:pointer;color:#666;padding:0.2rem 0.6rem}
.students-close:hover{color:#000}
.students-active-bar{display:flex;align-items:center;gap:0.6rem;padding:0.7rem 1.25rem;
  border-bottom:1px solid #F1ECE2;background:#FFFCF5;flex-wrap:wrap}
.students-active-label{font-size:0.85rem;font-weight:600;color:#444}
.students-active-select{flex:1;min-width:180px;padding:0.45rem 0.6rem;
  border-radius:8px;border:1px solid #DCD3C0;background:#fff;font-size:0.9rem}
.students-body{display:flex;gap:0;flex:1;overflow:hidden;min-height:340px}
.students-roster{flex:0 0 240px;border-right:1px solid #ECECEC;display:flex;
  flex-direction:column;overflow:hidden}
.students-roster-head{padding:0.7rem 0.9rem;font-size:0.78rem;font-weight:700;
  color:#666;text-transform:uppercase;letter-spacing:0.06em;
  border-bottom:1px solid #F2EFE6}
.students-list{flex:1;overflow-y:auto;padding:0.3rem 0}
.students-list-row{padding:0.55rem 0.9rem;cursor:pointer;border-left:3px solid transparent}
.students-list-row:hover{background:#FAF7F1}
.students-list-row.active{background:#FFF4DC;border-left-color:var(--amber,#E8A838)}
.students-list-name{font-size:0.92rem;font-weight:600;color:#23211D}
.students-list-meta{font-size:0.72rem;color:#888;margin-top:0.1rem}
.students-add-btn{margin:0.6rem 0.7rem;padding:0.55rem 0.7rem;border:1px dashed #C8B98A;
  background:#FFFCF5;border-radius:8px;color:#7A4A00;font-weight:600;cursor:pointer;
  font-size:0.85rem}
.students-add-btn:hover{background:#FFF4DC}
.students-detail{flex:1;padding:1rem 1.25rem;overflow-y:auto;display:flex;
  flex-direction:column;gap:0.7rem}
.students-detail-name{font-size:1.2rem;font-weight:700;color:#23211D}
.students-detail-sub{font-size:0.78rem;color:#888}
.students-detail-privacy{padding:0.55rem 0.7rem;border-radius:8px;background:#F4F2EC;
  border:1px solid #E8E2D2;font-size:0.82rem;color:#444}
.students-detail-notes{padding:0.55rem 0.7rem;border-radius:8px;background:#FCFAF4;
  border:1px solid #F0EBDC;font-size:0.84rem;color:#333;white-space:pre-wrap}
.students-detail-actions{display:flex;flex-wrap:wrap;gap:0.45rem;margin-top:0.4rem}
.students-action-btn{padding:0.5rem 0.75rem;border-radius:8px;border:1px solid #DCD3C0;
  background:#fff;color:#23211D;font-weight:600;font-size:0.82rem;cursor:pointer}
.students-action-btn:hover{background:#FAF7F1}
.students-action-btn.primary{background:var(--amber,#E8A838);border-color:var(--amber,#E8A838);
  color:#fff}
.students-action-btn.primary:hover{background:var(--amber-dark,#C68A22)}
.students-action-btn.danger{color:#A22A2A;border-color:#E8C5C5}
.students-action-btn.danger:hover{background:#FAEDED}
.students-empty{padding:1rem;color:#888;font-size:0.86rem;font-style:italic}

/* QR overlay (per-student) */
.students-qr-overlay{position:fixed;inset:0;background:rgba(0,0,0,0.6);z-index:9100;
  display:flex;align-items:center;justify-content:center;padding:1rem}
.students-qr-card{background:#fff;border-radius:14px;padding:1.3rem 1.4rem;
  width:100%;max-width:380px;box-shadow:0 18px 60px rgba(0,0,0,0.35);text-align:center}
.students-qr-title{font-size:1.05rem;font-weight:700;margin-bottom:0.3rem}
.students-qr-sub{font-size:0.78rem;color:#555;margin-bottom:0.7rem;line-height:1.4}
.students-qr-box{display:flex;justify-content:center;align-items:center;
  min-height:230px;background:#FAF7F1;border-radius:10px;padding:0.5rem;margin:0.3rem 0}
.students-qr-url{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:0.7rem;
  color:#444;background:#F4F2EC;padding:0.45rem 0.5rem;border-radius:6px;
  word-break:break-all;margin:0.5rem 0 0.7rem}
.students-qr-actions{display:flex;gap:0.4rem;justify-content:center}

@media (max-width: 640px){
  .students-body{flex-direction:column;min-height:0}
  .students-roster{flex:0 0 auto;max-height:200px;border-right:0;
    border-bottom:1px solid #ECECEC}
  .students-detail{padding:0.8rem 0.9rem}
}

/* 2026-06-11 — DOM-view panels (panel-router showElement): same slot
   as the iframe, but a scrollable div (Classroom hub page). */
.builder-panel-domview{
  overflow:auto;background:#f1f5f9;padding:1.2rem 1rem 2rem;
  display:block;border:none;
}
