/* R8 — protected historical student activity access. Scoped to new controls. */
.historyLaunchBtn{width:100%;margin:10px 0 3px;padding:11px;border:1px solid #80bac5;border-radius:9px;background:#effafb;color:#155c69;font-size:12px;font-weight:800;cursor:pointer}
.historyLaunchBtn:hover{background:#e1f4f7}
.historySearchBar{display:flex;gap:8px;padding:12px 15px;border-bottom:1px solid #e4eaf0;background:#f8fafc}
.historySearchBar input{flex:1;min-width:0;height:39px;border:1px solid #cfd8e3;border-radius:9px;padding:0 10px;font-size:12px}
.historySearchBar button{border:1px solid #a4cbd1;border-radius:8px;background:#fff;color:#176977;padding:0 13px;font-weight:750;cursor:pointer}
.historyCount{font-size:11px;color:#576679;padding:4px 6px 8px}
.historySession{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:9px;border:1px solid #e1e7ee;border-radius:10px;padding:12px;background:#fff}
.historySession strong{display:block;font-size:13px;color:#17233a;overflow-wrap:anywhere}
.historySession small{display:block;margin-top:4px;color:#667085;font-size:10px;line-height:1.5}
.historySession button{border:1px solid #86b8c0;border-radius:8px;background:#effafb;color:#155965;padding:9px 11px;font-weight:750;font-size:11px;cursor:pointer}
.historySession button:disabled{opacity:.5;cursor:wait}
.historySession .liveTag{color:#067647;font-weight:800}
.historyUnavailable{margin:5px;border:1px solid #f1d6aa;border-radius:8px;background:#fff8eb;padding:11px;color:#8d4e14;font-size:11px}
@media(max-width:620px){.historySession{grid-template-columns:1fr}.historySession button{width:100%}}

.archiveHistoryReadOnly #teacherLiveView .teacherMainActions #lessonGradesBtn,.archiveHistoryReadOnly #teacherLiveView #manageRosterBtn,.archiveHistoryReadOnly #studentPreview #saveGradeBtn,.archiveHistoryReadOnly #studentPreview #saveOverallGradeBtn,.archiveHistoryReadOnly #studentPreview #saveAndNextStudentBtn,.archiveHistoryReadOnly #studentPreview #markupSaveBtn,.archiveHistoryReadOnly #studentPreview #workVersionsBtn{display:none!important}

.archiveHistoryReadOnly #studentPreview #previewCanvas{pointer-events:none!important}

.loadOlderHistoryBtn{width:100%;padding:11px;border:1px solid #90bec5;border-radius:9px;background:#f1fafb;color:#176977;font-size:11px;font-weight:800;cursor:pointer}.loadOlderHistoryBtn:disabled{opacity:.6;cursor:wait}
